query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { AutorisationPassageSalle::create([ "dateDemande" => $request->dateD, "motif" => $request->motif, "idDemandeur" => $request->demandeur, ]); return Redirect::route('autorisationPS')->with('success',"Personnel mis à j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.728708", "0.7144915", "0.7132209", "0.66401577", "0.66205436", "0.65682197", "0.6526531", "0.65085673", "0.6449452", "0.63749766", "0.63726056", "0.6364582", "0.6364582", "0.6364582", "0.6341498", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.634...
0.0
-1
Display the specified resource.
public function show(AutorisationPassageSalle $autorisationPassageSalle) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit(AutorisationPassageSalle $autorisationPassageSalle) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, AutorisationPassageSalle $autorisationPassageSalle) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy(Request $request) { $id = $request->idD; $auth = AutorisationPassageSalle::where('idAutorisationPS', $id); $auth->delete(); return Redirect::route('autorisationPS')->with('success',"Personnel mis à jour !"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Index Page for this controller.
public function index() { $this->load->view('portfolio/upload'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index() {\n\t\t$this->display('index');\n\t}", "public function index()\n {\n return \"INDEX PAGE\";\n }", "function index() {\n $this->renderView(\"index\");\n }", "public function index() {\n\t\t$this->title = 'Home';\n\t\t$this->pageData['pages'] = Page::getAll();\n\t\t$th...
[ "0.80328935", "0.799802", "0.7968166", "0.7937366", "0.78856695", "0.78396106", "0.7804043", "0.7796867", "0.77955467", "0.77955467", "0.7788991", "0.77724445", "0.77716136", "0.7765743", "0.7762971", "0.77405775", "0.77270085", "0.772581", "0.7725419", "0.7725419", "0.772541...
0.0
-1
Untuk proses upload foto
function proses_upload() { $config['upload_path'] = self::BASE_URL; $config['allowed_types'] = 'gif|jpg|png|ico'; $this->load->library('upload',$config); if ($this->upload->do_upload('userfile')) { $token = $this->input->post('token_foto'); $portfolioId = $this->inpu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function upload()\n {\n if (null === $this->file) {\n return;\n }\n\n // si on avait un ancien fichier on le supprime\n if (null !== $this->tempFilename) {\n $oldFile = $this->getUploadRootDir().'/'.$this->id.'.'.$this->tempFilename;\n if (file...
[ "0.7150409", "0.712675", "0.702388", "0.69782287", "0.694379", "0.6932427", "0.6898865", "0.6801231", "0.6682097", "0.66606563", "0.6573438", "0.65667576", "0.65554875", "0.65476775", "0.6542897", "0.65364295", "0.64918524", "0.6474866", "0.6448084", "0.6444474", "0.6439735",...
0.0
-1
Gets the private 'SyliusLabs\Polyfill\Symfony\Security\Core\User\UserChecker' shared service.
public static function do($container, $lazyLoad = true) { include_once \dirname(__DIR__, 4).'/vendor/symfony/security-core/User/UserCheckerInterface.php'; include_once \dirname(__DIR__, 4).'/vendor/sylius-labs/polyfill-symfony-security/src/Core/User/UserChecker.php'; include_once \dirname(__...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getSecurity_UserCheckerService()\n {\n return $this->services['security.user_checker'] = new \\Symfony\\Component\\Security\\Core\\User\\UserChecker();\n }", "public function checkUser(): CheckUser\n {\n return new CheckUser($this->_provider);\n }", "public function...
[ "0.8557529", "0.7071765", "0.68277824", "0.6815319", "0.6800699", "0.62390965", "0.6120594", "0.6120594", "0.6117745", "0.6101266", "0.61003095", "0.6052361", "0.60515046", "0.5947769", "0.58970433", "0.5891795", "0.58582926", "0.58564276", "0.5846788", "0.57710004", "0.57448...
0.5595906
28
Get the IDs for all ships in the game.
public function get_all_ships_id() { // only update if not already present in instance if( !isset($this->ships_id) ) { $sql = " SELECT s.id"; $sql = $sql . " FROM " . EVO_PREFIX . "_ships s"; if( $result = $this->db->query($sql) ) { while( $row = $result->fetch_object() ) { $this->ships_id[] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIds() {\n $sources = array();\n \n $sources[] = $this->id;\n \n foreach ($this->points as &$g) {\n $sources[] = $g->id;\n }\n foreach ($this->lines as &$g) {\n $sources[] = $g->id;\n }\n foreach ($this->polygons as &$g) {\n $sources[] = $g->id;\n }\n ...
[ "0.6975168", "0.693555", "0.687189", "0.672768", "0.672768", "0.65649474", "0.65089095", "0.64742446", "0.6384488", "0.6367635", "0.63421273", "0.63421273", "0.6331684", "0.63079023", "0.6291099", "0.62620395", "0.6208989", "0.61531484", "0.61500204", "0.6145507", "0.6134335"...
0.79472953
0
only update if not already present in instance
public function get_all_ships_name() { if( !isset($this->ships_name) ) { $sql = " SELECT s.name"; $sql = $sql . " FROM " . EVO_PREFIX . "_ships s"; if( $result = $this->db->query($sql) ) { while( $row = $result->fetch_object() ) { $this->ships_name[] = $row->name; } } else { $this->d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function update() {}", "protected function beforeUpdating()\n {\n }", "public function isUpdated() {}", "protected function _update()\n {\n \n }", "protected function _update()\n {\n \n }", "public function hasUpdate();", "protected function _update()\n\t{\n\t}...
[ "0.6686066", "0.6555916", "0.6448207", "0.6378547", "0.6378547", "0.6219484", "0.6183159", "0.61762214", "0.6150447", "0.60335714", "0.6032789", "0.6022982", "0.60217524", "0.5985839", "0.5982739", "0.5965921", "0.59492713", "0.59484667", "0.59202826", "0.58897036", "0.588218...
0.0
-1
/============================================= MOSTRAR ESTUDIANTES =============================================
static public function mdlMostrarEstudiantes($tabla, $item, $valor) { if ($item != null) { $stmt = Conexion::conectar()->prepare("SELECT * FROM $tabla WHERE $item = :$item"); $stmt->bindParam(":" . $item, $valor, PDO::PARAM_STR); $stmt->execute(); return $stm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function masodik()\n {\n }", "public function testTrasbordoMedio()\n {\n $tiempo = new TiempoFalso;//$tiempo = new TiempoFalso(0);\n $recargable = new Recargable();\n $tarjeta = new Medio(0, $tiempo,$recargable);\n $tiempo->avanzar(28800);\n $tarjeta->recargar(1...
[ "0.6149547", "0.61397153", "0.6094823", "0.58779687", "0.5828742", "0.5815464", "0.57474095", "0.57423836", "0.5725982", "0.5670262", "0.5654863", "0.56429464", "0.5642324", "0.56008613", "0.55736864", "0.5567582", "0.5546768", "0.55443275", "0.5515451", "0.5496021", "0.54812...
0.0
-1
/============================================= MOSTRAR ESTUDIANTES =============================================
static public function mdlMostrarCuentas($tabla, $item, $valor) { if ($item != null) { $stmt = Conexion::conectar()->prepare("SELECT * FROM $tabla WHERE $item = :$item"); $stmt->bindParam(":" . $item, $valor, PDO::PARAM_STR); $stmt->execute(); return $stmt->f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function masodik()\n {\n }", "public function testTrasbordoMedio()\n {\n $tiempo = new TiempoFalso;//$tiempo = new TiempoFalso(0);\n $recargable = new Recargable();\n $tarjeta = new Medio(0, $tiempo,$recargable);\n $tiempo->avanzar(28800);\n $tarjeta->recargar(1...
[ "0.6149547", "0.61397153", "0.6094823", "0.58779687", "0.5828742", "0.5815464", "0.57474095", "0.57423836", "0.5725982", "0.5670262", "0.5654863", "0.56429464", "0.5642324", "0.56008613", "0.55736864", "0.5567582", "0.5546768", "0.55443275", "0.5515451", "0.5496021", "0.54812...
0.0
-1
/============================================= MOSTRAR CUENTAS por cantidad existe o no cantidad comprada =============================================
static public function mdlMostrarCuentasbyCantidad($tabla, $item, $valor,$cantidad2) { $stmt = Conexion::conectar()->prepare("SELECT * FROM $tabla WHERE $item = :$item and numero_cuenta = :numero_cuenta"); $stmt->bindParam(":" . $item, $valor, PDO::PARAM_STR); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function existenNotasRegistradas($matricula){\n return false;\n }", "function verificarComprobante($fecha)\n {\n global $db;\n $sql = \" select count(dateReception) as total from almacen_reception\n where tipoTrans = 'A' and tipoComprobante = 'A';\n and ...
[ "0.6732057", "0.66543764", "0.66246176", "0.66104525", "0.65784615", "0.6522702", "0.64855176", "0.64738786", "0.64055705", "0.63621986", "0.6352149", "0.6350561", "0.63500655", "0.63459986", "0.63030237", "0.6269599", "0.6265317", "0.6264143", "0.6256823", "0.62175006", "0.6...
0.0
-1
/============================================= CREAR ESTUDIANTE =============================================
static public function mdlIngresarEstudiante($tabla, $datos) { $estado = 1; $perfil = "estudiante"; $stmt = Conexion::conectar()->prepare("INSERT INTO $tabla(cedula,nombres,email,password,estado,fecha_nacimiento,perfil,id_usuario) VALUES (:cedula,:nombres,:email,:password,:estado,:fecha_naci...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function crear()\n {\n //\n }", "public function create ($est){\r\n\r\n $sql = \"INSERT INTO ESTADO_USUARIO VALUES (\".$est->getCod_estado().\",\r\n '\".$est->getNom_estado().\"'\r\n );\";\r\n\r\n ...
[ "0.62506765", "0.6211004", "0.6123108", "0.60920113", "0.6043521", "0.6041231", "0.60353166", "0.60052633", "0.5982227", "0.5974737", "0.59564275", "0.59415185", "0.59415185", "0.59415185", "0.59415185", "0.59415185", "0.59415185", "0.59415185", "0.59415185", "0.59415185", "0...
0.0
-1
/============================================= MOSTRAR ESTUDIANTES =============================================
static public function mdlMostrarEstudiantesDatos($tabla, $item, $valor) { if ($item != null) { $stmt = Conexion::conectar()->prepare("SELECT * FROM $tabla WHERE $item = :$item"); $stmt->bindParam(":" . $item, $valor, PDO::PARAM_STR); $stmt->execu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function masodik()\n {\n }", "public function testTrasbordoMedio()\n {\n $tiempo = new TiempoFalso;//$tiempo = new TiempoFalso(0);\n $recargable = new Recargable();\n $tarjeta = new Medio(0, $tiempo,$recargable);\n $tiempo->avanzar(28800);\n $tarjeta->recargar(1...
[ "0.6149547", "0.61397153", "0.6094823", "0.58779687", "0.5828742", "0.5815464", "0.57474095", "0.57423836", "0.5725982", "0.5670262", "0.5654863", "0.56429464", "0.5642324", "0.56008613", "0.55736864", "0.5567582", "0.5546768", "0.55443275", "0.5515451", "0.5496021", "0.54812...
0.0
-1
/============================================= EDITAR ESTUDIANTE =============================================
static public function mdlEditarEstudiante($tabla, $datos){ $stmt = Conexion::conectar()->prepare("UPDATE $tabla SET nombres = :nombres,password=:password WHERE cedula = :cedula"); $stmt->bindParam(":password", $datos["password"], PDO::PARAM_STR); $stmt->bindParam(":nombres", $datos["nombres"], PDO::PARAM_STR);...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function editar()\n {\n }", "public function editar()\n {\n }", "public function edit_toko(){\n\t}", "public function changeToOrdine()\n {\n\n //crea la tabella degli ordini verso i fornitori\n //Rielabora\n $preventivatore = $this->getPreventivatore();\n ...
[ "0.6820104", "0.6616992", "0.6550951", "0.63217", "0.6244879", "0.6152273", "0.6134745", "0.6118316", "0.60912573", "0.6023165", "0.6005258", "0.60018367", "0.5948894", "0.59478533", "0.5943846", "0.5937781", "0.59112865", "0.5908812", "0.5907039", "0.58913213", "0.58528155",...
0.0
-1
fuck this language and its absurd type casting mechanics
function generate_search_data_fields($name, $dexnum, $type1, $type2, $region, $specialform, $tier) { $specialform = $specialform ? 'true' : 'false'; if ($type1 === 'No Secondary') { $type1 = 'notype'; } if ($type2 === 'No Secondary') { $type2 = 'notype'; } $fields = [ $name, "num=$dexnu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function cast($value);", "function variant_cast($variant, $type) {}", "function variant_cast($variant, $type)\n{\n}", "abstract protected function doActualConvert();", "public function convert();", "abstract protected function to_primitive($res);", "protected abstract function operatorT...
[ "0.68077475", "0.64475983", "0.6400663", "0.635397", "0.6213077", "0.6067659", "0.60024595", "0.5753651", "0.56979275", "0.5674237", "0.5651462", "0.56349117", "0.5631239", "0.5527329", "0.552566", "0.5512609", "0.5512609", "0.55092055", "0.5460991", "0.5427304", "0.5417172",...
0.0
-1
A general failure response.
public static function failed($errors=[]) { if (empty($errors)) { $errors[] = "Error... Something went wrong."; } return new static([ 'success' => false, 'errors' => $errors, 'messages' => [] ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function failAction()\n {\n //====================================================================//\n // Return Dummy Response\n return new JsonResponse(array('result' => 'Ko'), 500);\n }", "public static function GenericError() : self{\n\t\treturn new Response('Generic Error'...
[ "0.75202733", "0.7132964", "0.70373493", "0.69682187", "0.6959605", "0.68902504", "0.68663555", "0.6826185", "0.67923594", "0.671128", "0.6701976", "0.67001075", "0.6693851", "0.66055334", "0.6600343", "0.65877026", "0.6557552", "0.65394247", "0.65125144", "0.6489159", "0.648...
0.0
-1
A model was successfully saved.
public static function saved($model) { return new static([ 'success' => true, 'model' => $model->toArray(), 'redirect' => $model->editUrl(), 'messages' => [$model::singular(true)." Saved."], 'errors' => [] ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saved($model)\n\t{\n\t}", "public function saved($model)\n {\n }", "public function save()\n {\n }", "public function saving($model)\n\t{\n\t}", "public final function save() {\n }", "public final function save()\n {\n }", "public function save()...
[ "0.7462683", "0.7414533", "0.72579426", "0.72082055", "0.71551657", "0.71498823", "0.7147952", "0.7143249", "0.71144706", "0.70884293", "0.70881695", "0.7079255", "0.70765233", "0.70765233", "0.7074932", "0.70192057", "0.700564", "0.7002169", "0.7002169", "0.69926226", "0.699...
0.0
-1
A model was successfully updated.
public static function updated($model) { return new static([ 'success' => true, 'model' => $model->toArray(), 'messages' => [$model::singular(true)." Updated."], 'errors' => [] ]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updated($model)\n {\n }", "public function updateSuccess();", "function update(){\n\t\t$this->model->update();\n\t}", "abstract protected function updateModel();", "public function userupdatesuccessAction()\n {\n }", "public function updating($model)\n\t{\n\t}", "public func...
[ "0.7293938", "0.72700584", "0.7194819", "0.7080437", "0.70270646", "0.69970393", "0.69632465", "0.68982404", "0.68982404", "0.6895227", "0.6885548", "0.6880392", "0.68590057", "0.6856869", "0.6854064", "0.66571724", "0.6647182", "0.66444397", "0.6632053", "0.6626092", "0.6615...
0.0
-1
Creates a new instance of Column.
public function __construct(string $label, Closure $value = null, int $order = null, string $id = null) { $this->label = $label; $this->value = $value; $this->order = $order; $this->id = $id ?? sanitize_title($label); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newColumn($name)\n\t{\n\t\t// TODO: More options directly in this method\n\t\t\n\t\t$c = new Db_Descriptor_Column();\n\t\t$c->setColumn($name);\n\t\t\n\t\treturn $c;\n\t}", "protected function createColumn($column)\n {\n $c = new ColumnSchema(['name' => $column['name']]);\n $c->r...
[ "0.75155264", "0.7274471", "0.7261392", "0.7185623", "0.71745795", "0.7154282", "0.701625", "0.6856315", "0.68431383", "0.67249733", "0.6703769", "0.66525537", "0.66314745", "0.6611954", "0.65641856", "0.65140826", "0.64906704", "0.64806694", "0.64521646", "0.64431053", "0.63...
0.0
-1
Takes an array of column data and creates a new instance.
public static function fromArray(array $column): self { if(!isset($column['label'], $column['value'])) { throw new \RuntimeException('Column missing required data.'); } $instance = new Column($column['label'], $column['value'], $column['order'] ?? null, $column['id'] ?? null); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDataRowForColumns(){\n\t\t$DataRows = [];\n\t\tforeach (\\DB::select('show columns from ' . $this->model->getTable() ) as $column)\n\t\t\t$DataRows[] = (new DataRowColumn)->setModel($this->model)->setField($column->Field)->fillModel();\n\n\t\t$this->DataType->dataRows()->saveMany($DataRows);...
[ "0.63966584", "0.6380256", "0.60972196", "0.5992684", "0.5913707", "0.590453", "0.58901083", "0.5876562", "0.5876562", "0.5873225", "0.58632004", "0.58614594", "0.58480895", "0.58246523", "0.5824232", "0.5816025", "0.57794034", "0.5777736", "0.57092434", "0.5708185", "0.56897...
0.6842754
0
Returns the column order.
public function getOrder(): ?int { return $this->order; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrder()\n {\n return $this->orderingColumnOrder;\n }", "public function getOrderingColumn()\n {\n return $this->orderingColumn;\n }", "public function getOrderingColumn()\n {\n return $this->config->getOrderingColumn();\n }", "public function getOrder...
[ "0.81831944", "0.7801446", "0.7739505", "0.7678312", "0.71181333", "0.70799357", "0.68774176", "0.68359977", "0.68351185", "0.6787609", "0.6753849", "0.67522824", "0.67378414", "0.6699258", "0.6679569", "0.66058165", "0.6585208", "0.6585208", "0.6585208", "0.6578719", "0.6573...
0.0
-1
Sets the column order.
public function setOrder(int $index): self { $this->order = $index; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setOrder($order = Table::DIRECTION_DOWN)\n {\n $this->orderingColumnOrder = $order;\n }", "protected function setOrder() {\r\n if( $this->sqlOrderBy ) {\r\n $this->sql .= ' ORDER BY ' . $this->sqlOrderBy;\r\n }\r\n }", "function reOrderColumnHeaders() {\...
[ "0.7531586", "0.7265502", "0.7101967", "0.67907536", "0.66946363", "0.66946363", "0.66946363", "0.6681881", "0.66042536", "0.6518514", "0.64576155", "0.64575326", "0.64139986", "0.63967437", "0.638", "0.6366849", "0.631468", "0.63054633", "0.6223872", "0.62147725", "0.6214772...
0.0
-1
Returns the column label.
public function getLabel(): string { return $this->label; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColumnLabel(): ?string\n {\n return $this->getColumn('label', 'label');\n }", "public function getColumn(): string\n {\n return $this->column;\n }", "public function getColumn(): string\n {\n return $this->_column;\n }", "public function getName()\n ...
[ "0.8151404", "0.7262779", "0.719642", "0.7101251", "0.69556904", "0.6940042", "0.6903126", "0.69008285", "0.6894788", "0.6863639", "0.68242574", "0.68242574", "0.68211085", "0.6816247", "0.6783114", "0.6757429", "0.6741098", "0.67398757", "0.6736724", "0.6709092", "0.66947824...
0.654016
44
Sets the column label.
public function setLabel(string $label): self { $this->label = $label; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLabel() {\n }", "public function setLabel();", "function setLabel($value){\r\n\t\t$this->label = $value;\r\n\t}", "public function setLabel($newLabel);", "public function setLabel($label);", "public function setLabel($label);", "public function setLabel($label);", "public functi...
[ "0.6751301", "0.6693171", "0.64533335", "0.64484596", "0.6370388", "0.6370388", "0.6370388", "0.6370388", "0.6347332", "0.6328162", "0.6284325", "0.62298477", "0.6226629", "0.62103283", "0.62103283", "0.6196577", "0.61883533", "0.6136123", "0.6136123", "0.6136123", "0.6136123...
0.0
-1
Returns the column value.
public function getValue(int $postId = null): ?string { return ($this->value)($postId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toValue() {\r\n\t\treturn $this->PDOStatement->fetchColumn();\r\n\t}", "public function value($column)\r\n {\r\n $rs = (array) $this->first();\r\n return $rs[$column];\r\n }", "public function get_value() {\n\t\t$row = $this->get_row();\n\t\tif ($row) {\n\t\t\treturn current...
[ "0.795084", "0.7881384", "0.7824771", "0.7748278", "0.77036273", "0.77036273", "0.75437295", "0.75437295", "0.7415687", "0.7396312", "0.73746485", "0.73595566", "0.73350185", "0.73118204", "0.7217941", "0.7200185", "0.7197343", "0.7197343", "0.7177055", "0.7138899", "0.713270...
0.0
-1
Sets the column value.
public function setValue(Closure $value): self { $this->value = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($column,$value);", "public function setColumn($value)\n {\n return $this->set('Column', $value);\n }", "public function set($col, $value)\n {\n return $this->setCol($col, $value);\n }", "public function setValue($value){\n $this->_value = $value;\n }", ...
[ "0.7628463", "0.7017481", "0.6903162", "0.6889435", "0.68780696", "0.68778056", "0.6853138", "0.6838034", "0.67838335", "0.6763652", "0.67626435", "0.675329", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", ...
0.0
-1
Returns the column ID.
public function getId(): string { return $this->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_column_id()\n\t{\n\t\treturn $this->table.'.id';\n\t}", "public function getColumnId(): string\n {\n return $this->getColumn('id', 'id');\n }", "public function getIdColumn()\n {\n return $this->idColumn;\n }", "public function getId() {\r\n\t\t\treturn $this->co...
[ "0.91199213", "0.86454695", "0.8561973", "0.80958647", "0.7934403", "0.7632274", "0.7603112", "0.7603112", "0.7522099", "0.7487303", "0.7427385", "0.7398023", "0.7350211", "0.7302008", "0.73019546", "0.73019546", "0.7226985", "0.71879303", "0.7178384", "0.7141595", "0.7098506...
0.0
-1
Sets the column value.
public function setId(string $id): self { $this->id = $id; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($column,$value);", "public function setColumn($value)\n {\n return $this->set('Column', $value);\n }", "public function set($col, $value)\n {\n return $this->setCol($col, $value);\n }", "public function setValue($value){\n $this->_value = $value;\n }", ...
[ "0.7628463", "0.7017481", "0.6903162", "0.6889435", "0.68780696", "0.68778056", "0.6853138", "0.6838034", "0.67838335", "0.6763652", "0.67626435", "0.675329", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", "0.6679348", ...
0.0
-1
Sets both the label and the id.
public function setLabelAndId(string $label, string $id = null): self { $this->label = $label; $this->id = $id ?? sanitize_title($label); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setLabel();", "public function setLabel() {\n }", "public function setLabel($text) {\n $this->label = '<label for=\"'.$this->id.'\">'.$text.'</label>';\n }", "public function setLabel($text) {\n $this->label = '<label for=\"'.$this->id.'\">'.$text.'</label>';\n }", "p...
[ "0.7455625", "0.7341556", "0.7226832", "0.7226832", "0.7200102", "0.7200102", "0.7200102", "0.7200102", "0.7050635", "0.70392543", "0.70305914", "0.7026507", "0.7012464", "0.69931555", "0.6922623", "0.6922623", "0.6895909", "0.6895909", "0.6874644", "0.6861583", "0.6859517", ...
0.74659944
0
Returns the sorting type for this column.
public function getSortType(): ?string { return $this->sort; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetSortType() { return $this->SortType; }", "protected function _getSortType() {}", "protected function _getSortType() {}", "abstract protected function _getSortType();", "public function sortKeyType()\n {\n return 'string';\n }", "public function getSortColumn();", "functi...
[ "0.80381924", "0.7785531", "0.7785531", "0.75062954", "0.7378325", "0.715106", "0.69235426", "0.6666695", "0.6662741", "0.6662741", "0.66549665", "0.6606446", "0.6547571", "0.65450025", "0.6533791", "0.6516605", "0.64984816", "0.6490805", "0.64684963", "0.64593846", "0.643345...
0.7500402
4
Enables numeric sorting for the column
public function sortNumerically(): self { $this->sort = 'numeric'; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSortColumn();", "function getSort(){\n return 999;\n }", "function getSort(){\n return 999;\n }", "function getSort() {\n return 999;\n }", "function allowColumnReorder($val){\n\t\t$this->headerSortable=$val;\n\t}", "function getSort(){\n return 188;\n }", ...
[ "0.64901805", "0.63517815", "0.63517815", "0.63501436", "0.6155143", "0.6152494", "0.610165", "0.60191447", "0.59930325", "0.5990631", "0.5990631", "0.597924", "0.597924", "0.59197426", "0.58850086", "0.5874778", "0.5868976", "0.5854319", "0.58355474", "0.58338916", "0.581523...
0.65142155
0
Enables alphabetical sorting for the column
public function sortAlphabetically(): self { $this->sort = 'alpha'; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function columns_none_sort($name, $column, $sortedBy, $options)\n\t{\n return sprintf('<th>%s</th>', $name);\n\n\t}", "public function getSortBy();", "function sort_flag() {\n return SORT_STRING;\n }", "public function getSortColumn();", "public function getSort() { return ''; }", "function ge...
[ "0.68593705", "0.65733004", "0.6537151", "0.6531325", "0.6386906", "0.6304473", "0.62328166", "0.620391", "0.6197019", "0.6184468", "0.6163456", "0.61617386", "0.6155575", "0.61521417", "0.6150136", "0.6150136", "0.6123165", "0.6122692", "0.6115221", "0.6114876", "0.6101811",...
0.6525147
4
Carrega apenas o view
public function loadView($viewName, $viewData = array()){ extract($viewData); require 'views/'.$viewName.'.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderView()\n {\n //$_SESSION[\"info\"] zobrazuje vysledek operaci, paklize se nejake udaly\n if((isset($_SESSION[\"info\"])) && (!empty($_SESSION[\"info\"]))){\n $this->view_data[\"info\"] = $_SESSION[\"info\"];\n $_SESSION[\"info\"] = null;\n } ...
[ "0.74798447", "0.742407", "0.74161124", "0.7387573", "0.7310532", "0.7303607", "0.7303607", "0.71951866", "0.71613675", "0.71499014", "0.713502", "0.713502", "0.7122837", "0.7118574", "0.7118574", "0.7113065", "0.71075845", "0.71075845", "0.7083382", "0.7080822", "0.70719016"...
0.0
-1
Carrega o template e envia o nome da view, serve para chamar uma view ja com o template
public function loadTemplate($viewName, $viewData = array()){ require 'views/template.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function template()\n {\n\n include './views/template.php';\n\n }", "public function showTemplate(){\n\t\tinclude \"view/template.php\";\n\t}", "private static function view(): void\n {\n Debug::setBacklog();\n\n /**\n * Calls the methods to define and validate the ...
[ "0.70196015", "0.68985486", "0.682442", "0.6709101", "0.66901225", "0.6538646", "0.6522895", "0.6518747", "0.6484684", "0.6473666", "0.6470855", "0.6464034", "0.6424203", "0.6406", "0.63819045", "0.6364702", "0.63221955", "0.6302881", "0.6293217", "0.6267376", "0.6265975", ...
0.5780013
93
Funcao que eh usada dentro do template para carregar a view
public function loadViewInTemplate($viewName, $viewData = array()){ extract($viewData); require 'views/'.$viewName.'.php'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getViewTemplate();", "public function createView();", "public function pagina(){\n\t\t\tinclude \"views/template.php\";\n\t\t}", "public function view(){\r\n\r\n\t$this->registry->template->blog_heading = 'This is the blog heading';\r\n\t$this->registry->template->blog_content = 'This is the ...
[ "0.73227245", "0.71175975", "0.7071874", "0.69281733", "0.6892188", "0.6892188", "0.68459165", "0.6818729", "0.6818345", "0.68099254", "0.67483574", "0.67288315", "0.67270625", "0.67241764", "0.67196214", "0.67196214", "0.66971874", "0.6675243", "0.6671239", "0.6669104", "0.6...
0.0
-1
Does the name of the function. It gives errors back when fields are left open
function getErrorsForFields($firstname, $studentEmail, $items, $items2, $dateStart, $dateEnd) { $errors = []; if ($firstname == "") { $errors[] = 'Je voornaam moet worden ingevuld'; } if ($studentEmail == "") { $errors[] = 'E-mail moet worden ingevuld';...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function errorName($p_with_code = \\false)\n {\n }", "protected function areFieldChangeFunctionsValid() {}", "public function hasOrigFunctionName(){\n return $this->_has(2);\n }", "public function hasFunctionName(){\n return $this->_has(1);\n }", "function mb_fields()\n {\n...
[ "0.5812457", "0.57490844", "0.5734358", "0.5718965", "0.5703046", "0.57012093", "0.5682975", "0.55752873", "0.55601925", "0.5546294", "0.5501208", "0.54967654", "0.5463822", "0.5446084", "0.54434246", "0.5427436", "0.5427436", "0.53547716", "0.533913", "0.53384936", "0.533235...
0.0
-1
LOAD THE ADMIN CLASS THAT HAS ALL CUSTOM META BOXES WITH THIER RESPECTIVE FIELDS
function __construct(){ require_once('class-sp-theme-admin.php'); $this->admin = new SP_THEME_ADMIN; /* LOAD ASSETS */ add_action('wp_enqueue_scripts', array( $this, 'assets' ) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function rng_METANAME_metabox_init() {\n}", "public function render_admin_form_children() {\n\t\tforeach ( array_keys( bp_xprofile_get_field_types() ) as $field_type ) {\n\t\t\t$type_obj = bp_xprofile_create_field_type( $field_type );\n\t\t\t$type_obj->admin_new_field_html( $this );\n\t\t}\n\t}", "function wpf...
[ "0.6482728", "0.6467093", "0.63919216", "0.6364873", "0.63514346", "0.62811506", "0.62524366", "0.6238826", "0.62237245", "0.6218755", "0.6212163", "0.6177674", "0.6171645", "0.61686605", "0.6166991", "0.6164579", "0.6160224", "0.6147269", "0.6143425", "0.61410856", "0.613813...
0.0
-1
/ ENQUEUE STYLES AND SCRIPTS
function assets(){ wp_enqueue_style( 'sp-2020-styles', get_template_directory_uri() .'/assets/css/main.css', array(), SPUTZNIK_2020_THEME_VERSION ); wp_enqueue_script( 'sp-2020-js', get_template_directory_uri() . '/assets/js/main.js', array('jquery'), SPUTZNIK_2020_THEME_VERSION, true ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function enqueues() {\n\t\twp_register_style( 'ks-thematic-actions', plugin_dir_url( __FILE__ ) . 'style.css' );\n\t wp_enqueue_style( 'ks-thematic-actions' );\n\t}", "function prosody_plugin_queue_scripts ()\n{\n\n wp_enqueue_style(\n 'poem-css',\n plugin_dir_url( __FILE__ ) . 'css/poem.css'...
[ "0.73769635", "0.7035521", "0.6986426", "0.6782309", "0.67621404", "0.67035466", "0.66967154", "0.66765785", "0.6570002", "0.65351456", "0.65284204", "0.64622974", "0.6436084", "0.63961685", "0.6392321", "0.6336123", "0.6320562", "0.63121635", "0.6301375", "0.62939644", "0.62...
0.0
-1
Update the path below to your autoload.php,
public function message_generator($phone_number,$message){ // see https://getcomposer.org/doc/01-basic-usage.md require_once 'vendor/autoload.php'; // Find your Account Sid and Auth Token at twilio.com/console // DANGER! This is insecure. See http://twil.io/secure $sid = "AC4474a12ece60444185210...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function autoload()\r\n\t{\r\n\t\t\r\n\t}", "public function registerAutoloader() : void\n {\n require_once __DIR__ . '/../vendor/autoload.php';\n }", "function autoload($class)\n{\n // if file does not exist in LIBS_PATH folder [set it in config/config.php]\n //require dirname( __FIL...
[ "0.72007847", "0.6822587", "0.6821648", "0.6793958", "0.6736504", "0.6702249", "0.66262037", "0.6615376", "0.6569088", "0.65551937", "0.6464632", "0.64584136", "0.6457496", "0.6401018", "0.63932586", "0.6390734", "0.6388885", "0.6388023", "0.63872063", "0.63869464", "0.638685...
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('guest'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Display a listing of the resource.
public function index() { $pays = Payment::all(); return view('payment/list')->with('payments',$pays); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create(Request $request) { $pay = new Payment; $val = Crypt::decryptString($request->key); $str_arr = explode ("-", $val); $pay->event = $str_arr[0]; $pay->team_id = $str_arr[1]; $pay->trxid = $request->trxid; $pay->save(); alert()->su...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Show the form for editing the specified resource.
public function edit(Payment $payment) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78560394", "0.76944435", "0.7274738", "0.7242069", "0.7171281", "0.70639855", "0.7054131", "0.6983364", "0.69478005", "0.69461757", "0.69413805", "0.69277894", "0.690145", "0.68984276", "0.68984276", "0.68784773", "0.68642735", "0.68610847", "0.6857929", "0.684406", "0.683...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, Payment $payment) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy(Payment $payment) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Created by STOMT. User: philippzentner Date: 10.10.17 Time: 17:57
function STOMT($pagename, $widgetType = 'addTab', $position = 'right', $label = 'Quick Feedback', $colorText = '#ffffff', $colorBackground ='#000000', $colorHover = '#ccc') { // To keep it compatible with older PHP versions ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "final private function __construct(){\r\r\n\t}", "public function boleta()\n\t{\n\t\t//\n\t}", "public function serch()\n {\n }", "public function AggiornaPrezzi(){\n\t}", "private function __construct()\t{}", "public function obtener()\n {\n }", "private function __construct() {\r\n\t\t\r\...
[ "0.5521766", "0.5520962", "0.5476985", "0.54757386", "0.5425547", "0.5331972", "0.53310776", "0.5311436", "0.5307265", "0.53071475", "0.53071475", "0.53071475", "0.53071475", "0.53071475", "0.5298069", "0.5298069", "0.52970123", "0.5259339", "0.5259339", "0.5259339", "0.52508...
0.0
-1
function to load vendor un linked brands
function jx_ven_unavail_brands() { $output = array(); $ven_id = $this->input->post('ven_id'); $sql = "select a.id as brandid,a.name as brandname from king_brands a left join m_vendor_brand_link b on b.brand_id = a.id and vendor_id = ? where b.id is null and a.name != '' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadCarModelsBrands($p = null){\n\t\tinclude_once ('default/models/car/db_selCarBrand.php');\n\t\tinclude_once ('default/models/car/db_selCarModel.php');\n\t\t\n\t\t$carBrand = db_selCarBrand(array('orderby'=>array(array('col' => 'brandName'))\n\t\t\t\t\t\t\t\t\t\t));\n\t\t\n\t\t$carModel = false;...
[ "0.58492124", "0.5791945", "0.57474434", "0.5703574", "0.5648474", "0.56135535", "0.56101066", "0.55676603", "0.5511415", "0.5504593", "0.5469291", "0.54577994", "0.5443034", "0.543987", "0.5432565", "0.5369281", "0.53406143", "0.5329598", "0.5288102", "0.5236769", "0.5201613...
0.54783225
10
/ Dispay order list by status
function jx_orders_status_summary($type,$date_from,$date_to,$terrid,$townid,$franchiseid,$menuid,$brandid,$pg=0,$limit=25) { $this->load->model('erpmodel','erpm'); $this->erpm->auth(CALLCENTER_ROLE); //$type = $this->input->post('type'); $st_ts = strtoti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPendingOrders($status) {\r\n if($status != \"all\"):\r\n $orders = Mage::getModel('marketplace/commission')->getCollection();\r\n $orders->addFieldToSelect('*');\r\n $orders->addFieldToFilter('seller_id', Mage::getSingleton('customer/session')->getCustomer()->getId())...
[ "0.75429463", "0.71453923", "0.711628", "0.68196154", "0.67839295", "0.6780435", "0.67682993", "0.67540336", "0.6666592", "0.6629188", "0.6605217", "0.6590394", "0.6581168", "0.65691656", "0.6561719", "0.654481", "0.65218985", "0.64987457", "0.64894277", "0.64786834", "0.6466...
0.0
-1
/ function to pull brands of selected menuid
function jx_get_brandsbymenuid($menuid) { $this->erpm->auth(CALLCENTER_ROLE); $output = array(); // populate all towns in territory $brands_list_res = $this->db->query("select br.id,br.name from king_brands br join king_deals deal on deal.brandid=br.id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function particularbranch($id)\n\t{\n\t\t$getParsubbrand=\"SELECT * from brand where brand_id = $id\";\n\t\t$subbrand_data=$this->get_results( $getParsubbrand );\n\t\treturn $subbrand_data;\n\t}", "function getbrands(){\n\t\n\tglobal $connection;\n\t\n\t$get_brands = \"select * from brands\";\n\t$run_brands = my...
[ "0.70127296", "0.68719167", "0.68487257", "0.67890435", "0.661013", "0.66045904", "0.6590729", "0.64150435", "0.63814664", "0.6265182", "0.6215737", "0.61936855", "0.61742955", "0.61602193", "0.610981", "0.6065532", "0.60598123", "0.6058432", "0.60029256", "0.5959969", "0.594...
0.7438651
0
function to generate town list by territoryid
function jx_suggest_townbyterrid($terrid) { $this->erpm->auth(CALLCENTER_ROLE); $output = array(); // populate all towns in territory $town_list_res = $this->db->query("select id,town_name from pnh_towns where territory_id = ? order by town_nam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCapeTownSubs($municipality_id){\n\t\t\ttry{\n\t\t\t\t$query = \"SELECT s.*, m.municipality_name, m.municipality_code, \n\t\t\t\t\t\t m.municipality_id FROM suburbs s\n\t\t\t\t\t\t LEFT JOIN municipalities m\n\t\t\t\t\t\t ON s.municipality_id = m.municipality_id\n\t\t\t\t\t\t WHERE m.municipa...
[ "0.634468", "0.6283051", "0.62707174", "0.62085545", "0.6111767", "0.6037608", "0.6035851", "0.59927124", "0.5968131", "0.5932017", "0.57952356", "0.57940024", "0.5782449", "0.5763867", "0.5758971", "0.5716975", "0.57135296", "0.57072985", "0.569684", "0.5675119", "0.5670234"...
0.598663
8
Function to fetch all franchise under territory and town
function jx_suggest_fran($terrid=0,$townid=0) { // populate all franchise in town $this->erpm->auth(CALLCENTER_ROLE); // echo json_encode(array("status"=>"success","franchise"=>"$terrid,$townid")); $output = array(); $sql_terr =($terrid!=00) ? "...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function OptAllTowns()\n {\n $data = Town::find()->orderBy('region_id')->with('region')->all();\n $region = ArrayHelper::map($data,'region_id','region.name');\n\n $allarr = [];\n foreach ($region as $key=>$val)\n {\n $arr = [];\n foreach ($d...
[ "0.61430603", "0.5877647", "0.5869162", "0.58165276", "0.58022225", "0.5789314", "0.576254", "0.5747101", "0.5723037", "0.56967723", "0.5646376", "0.5639891", "0.5614719", "0.56086767", "0.56061924", "0.5593422", "0.5575992", "0.5575675", "0.55747765", "0.5563967", "0.5556775...
0.5889804
1
function to update mrp
function _update_product_mrp($prods) { $user = $this->erpm->auth(); $c=0; foreach($prods as $i=>$pdet_arr) { $pid = $pdet_arr['product_id']; $mrp= $pdet_arr['mrp']; if(empty($mrp)) continue; $c++; $pc_prod=$this->db->query("select * from m_product_info where product_id=? a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n\t\t$sql = \"UPDATE umgroup \n\t\t\t\tSET\tGpNameT=?, GpNameE=?, GpDesc=?, GpStID=? \n\t\t\t\tWHERE GpID=?\";\t\n\t\t\n\t\t \n\t\t$this->ums->query($sql, array($this->GpNameT, $this->GpNameE, $this->GpDesc, $this->GpStID, $this->GpID));\n\n\t}", "protected function update() {}", "abstract ...
[ "0.6158871", "0.61565965", "0.6156056", "0.6155426", "0.6147119", "0.6113745", "0.6113745", "0.6113745", "0.6113745", "0.61081016", "0.60367846", "0.6025543", "0.6023794", "0.6003153", "0.6003153", "0.59959185", "0.59959185", "0.598201", "0.59785944", "0.59640694", "0.5920121...
0.61411667
5
function to load imeino Activation form
function pnh_imei_activation_log($st=0,$en=0,$pg=0) { $user=$this->erpm->auth(CALLCENTER_ROLE); $limit = 25; $actv_cond = ''; $ordered_cond = ''; if($st && $en) { $actv_cond = ' and date(imei_activated_on) between date("'.$st.'") and date("'.$en.'") '; $ordered_cond = ' and date(from_uni...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate() {\n $installer = new Contact\\Form\\Installer();\n $installer->run();\n }", "function activation()\n {\t\n\t\t$data['fal'] = $this->fal_front->activation();\n\t\t$this->load->view($this->_container, $data); \n }", "public function ShowForm()\n\t\t{\n\t\t\tif (!...
[ "0.6101578", "0.6033629", "0.5974332", "0.5926866", "0.5802758", "0.5701768", "0.5684703", "0.5684703", "0.5653291", "0.56103325", "0.5595317", "0.55949944", "0.55943197", "0.55903244", "0.55843246", "0.5577149", "0.5551713", "0.5551708", "0.55474424", "0.55441654", "0.553685...
0.0
-1
function to load imeino Activation form
function pnh_franchise_activate_imei() { $user=$this->erpm->auth(CALLCENTER_ROLE); $data['fran_list'] = $this->db->query("select franchise_id,franchise_name from pnh_m_franchise_info where is_suspended = 0 order by franchise_name "); $data['page']="pnh_franchise_activate_imei"; $this->load->view("adm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate() {\n $installer = new Contact\\Form\\Installer();\n $installer->run();\n }", "function activation()\n {\t\n\t\t$data['fal'] = $this->fal_front->activation();\n\t\t$this->load->view($this->_container, $data); \n }", "public function ShowForm()\n\t\t{\n\t\t\tif (!...
[ "0.6101578", "0.6033629", "0.5974332", "0.5926866", "0.5802758", "0.5701768", "0.5684703", "0.5684703", "0.5653291", "0.56103325", "0.5595317", "0.55949944", "0.55943197", "0.55903244", "0.55843246", "0.5577149", "0.5551713", "0.5551708", "0.55474424", "0.55441654", "0.553685...
0.5462597
28
function to Validate IMEINO
function _validate_imeinoforactivation($imeino) { $franid = $this->input->post('franid'); if(!$imeino) return true; // Check for valid imei if(!$this->db->query("select count(*) as t from t_imei_no where imei_no = ? and status = 1 ",$imeino)->row()->t) { $this->form_validation->set_message...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate()\n {\n if (empty($this->outputString)) {\n return false;\n }\n \n if (ctype_alpha($this->outputString)) {\n return true;\n } else {\n if (ctype_digit(\"\".$this->outputString)) {\n return false;\n ...
[ "0.59579307", "0.59154624", "0.58529097", "0.58517414", "0.58369064", "0.582169", "0.5785013", "0.57597554", "0.5683889", "0.5612462", "0.5579503", "0.5535648", "0.54974717", "0.54894596", "0.5482759", "0.54721254", "0.54647005", "0.54557014", "0.5453508", "0.5443761", "0.543...
0.52667505
62
function to process imeino Activation form data
function pnh_process_franchise_imei_activation() { $user=$this->erpm->auth(CALLCENTER_ROLE); $this->load->library('form_validation'); $this->form_validation->set_rules('srch_no','Member ID or Mobileno','required'); $this->form_validation->set_rules('mem_type','Member Type','required'); $this->form_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function users_user_activation($args)\n{\n $code = base64_decode(FormUtil::getPassedValue('code', (isset($args['code']) ? $args['code'] : null), 'GETPOST'));\n $code = explode('#', $code);\n\n if (!isset($code[0]) || !isset($code[1])) {\n return LogUtil::registerError(__('Error! Could not activate ...
[ "0.58242166", "0.5817017", "0.5634698", "0.5492159", "0.5452691", "0.5451963", "0.54032314", "0.53925276", "0.53157526", "0.5289674", "0.5285802", "0.5241886", "0.5218608", "0.5201804", "0.5188081", "0.51855385", "0.51821166", "0.51805264", "0.51793313", "0.51778483", "0.5172...
0.6369037
0
function to get list of active franchises
function jx_getfranlist_active() { $output = array(); $fran_list_res = $this->db->query("select franchise_id,franchise_name from pnh_m_franchise_info where is_suspended = 0 order by franchise_name "); if($fran_list_res->num_rows()) { $output['fran_list'] = $fran_list_res->result_array(); $output['...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllFranchises(){\n $query = \"SELECT * FROM franchises ORDER BY name\";\n $result = $this->connection->query($query);\n $result = $result->fetchAll(PDO::FETCH_ASSOC);\n $franchises = [];\n foreach($result as $data){\n $franchises[] = new Franchise($d...
[ "0.65990883", "0.633748", "0.6222688", "0.6177583", "0.6048951", "0.60251456", "0.6008684", "0.5861369", "0.58149356", "0.5803274", "0.5763954", "0.5752842", "0.5705296", "0.57024753", "0.5684395", "0.5637807", "0.56044143", "0.56017274", "0.55761164", "0.55500686", "0.553602...
0.66685975
0
function to load form to add credits to franchise
function pnh_add_credits() { $user=$this->auth(PNH_ADD_CREDIT); $data['page']="pnh_add_credit"; $this->load->view("admin",$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function TrialSignupForm(){\n\t $cardType = array(\n\t \t\"visa\"=>\"<img src='themes/attwiz/images/visa.png' height=30px></img>\",\n\t \t\"mc\"=>\"<img src='themes/attwiz/images/mastercard.jpeg' height=30px></img>\",\n\t \t\"amex\"=>\"<img src='themes/attwiz/images/ae.jpeg' height=30px></img>\",\n\t ...
[ "0.66746294", "0.6554211", "0.65514016", "0.6541268", "0.64940536", "0.64511496", "0.64429426", "0.6276308", "0.6198137", "0.61611444", "0.614305", "0.6125022", "0.6123566", "0.6096374", "0.6080336", "0.60758895", "0.60680664", "0.6055621", "0.60537803", "0.60491437", "0.6040...
0.6850092
0
function to load last credit details of franchise
function jx_franchaise_det() { $output = array(); $fid = $this->input->post('fid'); $f_last_credit_info_res = $this->db->query("select b.franchise_id,b.pnh_franchise_id, b.franchise_name,b.login_mobile1,b.login_mobile2,d.territory_name,e.town_name, ifnull(a.credit_added,0) as credit_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_last_challan()\n {\n \treturn $this->db->select('challan_no')->order_by('sr_no',\"desc\")->limit(1)->get('challan_bills')->row(); \n }", "public function getBaseCredit(){\n return $this->creditAccount->getCredit();\n }", "public function info_blast_credit_balance() {\n ...
[ "0.6528249", "0.5925612", "0.5755856", "0.5736181", "0.5733274", "0.5691703", "0.5603221", "0.55238205", "0.5505252", "0.5491632", "0.54801995", "0.5475684", "0.5475327", "0.5472764", "0.54634327", "0.54633284", "0.5451763", "0.5440045", "0.5422332", "0.5420418", "0.5412018",...
0.57090247
5
function to load franchise list
function jx_get_franchiselist(){ $output = array(); $f_list_res = $this->db->query("select franchise_id,pnh_franchise_id,franchise_name from pnh_m_franchise_info a order by franchise_name asc "); if($f_list_res->num_rows()) { $output['f_list'] = $f_list_res->result_array(); $output['status'] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAllFranchises(){\n $query = \"SELECT * FROM franchises ORDER BY name\";\n $result = $this->connection->query($query);\n $result = $result->fetchAll(PDO::FETCH_ASSOC);\n $franchises = [];\n foreach($result as $data){\n $franchises[] = new Franchise($d...
[ "0.6357663", "0.5901439", "0.5850055", "0.57400507", "0.5691906", "0.56813353", "0.5621872", "0.55603766", "0.55548763", "0.55357313", "0.5534784", "0.55197006", "0.54610604", "0.5460174", "0.5458846", "0.5434322", "0.54171056", "0.53909004", "0.5381641", "0.5367861", "0.5352...
0.5910365
1
function to process add credit for franchise
function pnh_process_add_credit() { $output = array(); $user=$this->auth(PNH_ADD_CREDIT); $fid_list=$this->input->post("fid"); $new_credit_list=$this->input->post("new_credit"); $new_credit_reason=$this->input->post("new_credit_reason"); $total_fids = count($fid_list); $affected = 0; if($t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function credit()\n\t{\n\t\t\\IPS\\Dispatcher::i()->checkAcpPermission( 'invoices_edit' );\n\t\t\n\t\t/* Load Invoice */\n\t\ttry\n\t\t{\n\t\t\t$invoice = \\IPS\\nexus\\Invoice::load( \\IPS\\Request::i()->id );\n\t\t}\n\t\tcatch ( \\OutOfRangeException $e )\n\t\t{\n\t\t\t\\IPS\\Output::i()->error( 'node_err...
[ "0.7268769", "0.680201", "0.6776109", "0.67506945", "0.67468166", "0.6643849", "0.6624505", "0.6618088", "0.66051716", "0.6599066", "0.6582137", "0.6534474", "0.6506644", "0.6462883", "0.6451313", "0.6413367", "0.63835984", "0.6339024", "0.63164204", "0.6270241", "0.6234735",...
0.7478281
0
/ function to load generate account statement form
function pnh_gen_statement() { $this->auth(PNH_EXECUTIVE_ROLE|FINANCE_ROLE); $data['page']="pnh_gen_statement"; $this->load->view("admin",$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Form()\n {\n include(CONFIG\\PATH\\FORMS . 'Account_Create.php');\n }", "function makeAclOptions() {\n\t\tif($_POST['table'] && $_POST['fields']) {\n\t\t\treturn $this->_generator($_POST['table'],$_POST['fields']);\n\t\t}\n\t\telse { //TODO: localization\n\t \t$form = '<f...
[ "0.6126305", "0.57721317", "0.573115", "0.56949776", "0.5657511", "0.55702686", "0.55702686", "0.55691624", "0.5523805", "0.55152345", "0.55045104", "0.5491115", "0.5457079", "0.54495096", "0.54055095", "0.53826404", "0.53487283", "0.5317611", "0.53149635", "0.5302786", "0.52...
0.5512241
10
function to generate account statements by fid and date range
function pnh_process_gen_statment(){ $this->auth(PNH_EXECUTIVE_ROLE|FINANCE_ROLE); if($this->input->post('fids')) { $fids = $this->input->post('fids'); $from = $this->input->post('from'); $to = $this->input->post('to'); if(!$this->input->post('stat_type')) $this->erpm->do_pnh_dow...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_franchise_account_stat_byid($fid)\r\n\t{\r\n\t\t$det = array();\r\n\t\t\r\n\t\t$ordered_tilldate = @$this->db->query(\"select round(sum((i_orgprice-(i_coup_discount+i_discount))*b.quantity),2) as amt \r\n\t\t\tfrom king_transactions a \r\n\t\t\tjoin king_orders b on a.transid = b.transid \r\n\t\t ...
[ "0.5415364", "0.5286281", "0.52706563", "0.5095789", "0.50888735", "0.50003386", "0.4975569", "0.4974179", "0.49496004", "0.49301144", "0.48985308", "0.48889938", "0.48870105", "0.4867179", "0.48502856", "0.4845541", "0.4841107", "0.48386943", "0.48272648", "0.4808342", "0.48...
0.48867726
13
fucntion to cancel paf by id
function jx_cancel_paf() { $this->auth(PAF_ROLE); if(!$_POST) die(); $output = array(); $user = $this->auth(true); $id = $this->input->post('id'); $this->db->query('update t_paf_list set paf_status=3,cancelled_on=?,cancelled_by=? where id = ? and paf_status = 1',array(date('Y-m-d H:i:s'),$u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelMyReserved($id);", "public function cancel(): int;", "public function cancel();", "public function cancel(): void;", "public function cancel()\n {\n }", "public function cancel()\n {\n }", "protected function _cancelOperation() {}", "function cancel($watcherId);", ...
[ "0.7247415", "0.7072163", "0.70217675", "0.68087906", "0.66977906", "0.66977906", "0.6615284", "0.65608066", "0.6546815", "0.64921427", "0.64713097", "0.63652194", "0.6359299", "0.6290621", "0.62807256", "0.62585336", "0.6247205", "0.6216825", "0.62167186", "0.6194466", "0.61...
0.72249705
1
function to process create po and stock intake
function process_paf_stockintake() { $this->auth(PAF_ROLE); $paf_id = $this->input->post('paf_id'); $product = $this->input->post('product'); $mrp = $this->input->post('mrp'); $pprice = $this->input->post('pprice'); $qty = $this->input->post('qty'); $vendor = $this->input->post('vendor');...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function efi_create_job($job_id, $extra_job_data = array()){\n \n global $order_date, $delivery_date, $debug;\n \n $base_job_data['job']=$job_id;\n $base_job_data['customer']='SINALITE';\n $base_job_data['description']='SINALITE PRESSRUN '.$job_id;\n $base_job_data['description2']='Generated b...
[ "0.6328073", "0.6196381", "0.6145148", "0.6025238", "0.59385073", "0.5925035", "0.589729", "0.5808819", "0.5752372", "0.5748082", "0.574718", "0.5734007", "0.5725344", "0.57198685", "0.5707398", "0.5701608", "0.5692449", "0.5686974", "0.56323034", "0.56212014", "0.5605541", ...
0.7246061
0
fucntion to print paf products grouped by vendor
function print_paf($paf_id='') { $this->auth(PAF_ROLE); if(!$paf_id) { echo '<script>alert("Invalid paf / products not found in paf")</script>'; exit; } $sql = "select b.vendor_id,a.id as paf_id, handled_by, b.id as prod_paf_id, ifnull(c.vendor_name,'UNKNOWN') as vendor_na...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ShowVendorProducts()\n\t{\n\t\t$GLOBALS['BreadCrumbs'] = array(\n\t\t\tarray(\n\t\t\t\t'name' => GetLang('Vendors'),\n\t\t\t\t'link' => VendorLink()\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'name' => $this->vendor['vendorname'],\n\t\t\t\t'link' => VendorLink($this->vendor)\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t...
[ "0.6187101", "0.5901347", "0.58256215", "0.58122456", "0.5796795", "0.57607645", "0.5718415", "0.5700087", "0.56879133", "0.5641473", "0.56350726", "0.55831486", "0.55788594", "0.55715835", "0.5554738", "0.55457944", "0.55293894", "0.5508815", "0.5506461", "0.54908437", "0.54...
0.6702756
0
function to export paf file
function export_paf($paf_id) { $this->auth(PAF_ROLE); if(!$paf_id) { echo '<script>alert("Invalid paf / products not found in paf")</script>'; exit; } $sql = "select b.vendor_id,a.id as paf_id, handled_by, b.id as prod_paf_id, ifnull(c.vendor_name,'UNKNOWN') as vendor_name, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function export($file);", "function Exportar($Pft, $fullpath){\r\n global $Wxis,$xWxis,$db_path,$arrHttp,$msgstr,$separador,$wxisUrl;\r\n $query = \"&base=\" . $arrHttp[\"base\"] . \"&cipar=$db_path\".\"par/\".$arrHttp[\"cipar\"].\"&Formato=\".urlencode($Pft);\r\n if (isset($arrHttp[\"Mfn\"]) and...
[ "0.64054805", "0.60381836", "0.5853901", "0.5853901", "0.5853901", "0.5853901", "0.5853901", "0.57415956", "0.5606073", "0.5595431", "0.5586762", "0.5583956", "0.5513862", "0.5472924", "0.5464754", "0.54578006", "0.5340998", "0.53402", "0.5318776", "0.5310423", "0.53101146", ...
0.67591184
0
fucntion to get deal item stock details by item_id
function pnh_jx_dealstock_det($itemid='',$is_pnh=0) { $this->auth(true); if(!$itemid) exit; $is_pnh = $is_pnh?1:0; $item_stk = $this->erpm->do_stock_check(array($itemid),1,true); $output = array(); $arr = array_values($item_stk); if(!empty($arr)) { $output['itm_stk_de...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_by_item_id($id = FALSE)\n {\n if (!$id)\n {\n $query = $this->db->get('stock');\n return $query->result_array();\n }\n\n //$this->db->where('stock > 0');\n $this->db->where('itemID', $id);\n $this->db->where('stock >0');\n ...
[ "0.7097857", "0.6829964", "0.6623734", "0.66112304", "0.65977323", "0.65899444", "0.6569557", "0.65276575", "0.6500335", "0.64796704", "0.64355195", "0.6407495", "0.6362056", "0.6331726", "0.6314064", "0.62790823", "0.6278337", "0.62580943", "0.62124354", "0.62004894", "0.619...
0.6730605
2
/ function to generate empoloyee sales summary
function pnh_employee_sales_summary() { $this->erpm->auth(true); $data['page']='pnh_employee_sales_summary'; $this->load->view("admin",$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static public function ctrShowSumSales(){\n\n\t\t\t$tabla = \"productos\";\n\n\t\t\t$respuesta = ModelProducts::mdlShowSumSales($tabla);\n\n\t\t\treturn $respuesta;\n\n\n\t\t}", "function sys_sales($oConnect, $link, $startDate, $endDate,&$sys_log) {\n $sSQL = \"sp_report SalesByItemDetail show Text, Blank, Tx...
[ "0.6481419", "0.6378328", "0.62192327", "0.6071711", "0.5928184", "0.5878775", "0.58469397", "0.5843437", "0.58275443", "0.5825448", "0.58250666", "0.5808961", "0.57812566", "0.5773634", "0.5769763", "0.576303", "0.5742361", "0.573763", "0.57237196", "0.57158834", "0.57036203...
0.6368852
2
function to load franchise orders by selected date range or latest 20 orders by default
function jx_pnh_getfranchiseordersbydate() { $data['stat'] = $this->input->post('stat'); $data['fid'] = $this->input->post('fid'); $data['st_ts'] = strtotime($this->input->post('ord_fil_from').' 00:00:00'); $data['en_ts'] = strtotime($this->input->post('ord_fil_to').' 23:59:59'); $this->load->view("adm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_acquisition_qty_by_country(){\n \n $from_date = $_REQUEST['from_date'];\n $to_date = $_REQUEST['to_date'];\n\n $obj = new vintage_has_acquire();\n //$columns = \"DATE_FORMAT(acquire_date,'%b') as Month\";\n $columns = \" tblcountry.country, sum(trelVintageHasAcquire.qty) as qty\";\n ...
[ "0.6336686", "0.61514187", "0.5741036", "0.57206756", "0.5657554", "0.56507486", "0.5636839", "0.5635584", "0.562563", "0.55912733", "0.5562376", "0.55499804", "0.5542661", "0.5541682", "0.5536238", "0.5522547", "0.5513478", "0.55055106", "0.5503425", "0.543024", "0.54179657"...
0.620229
1
function to resend sms reply for the franchise by reply for id
function jx_pnh_fran_resendreply() { $reply_for = $this->input->post('resend_reply_for'); $output = array(); if($this->db->query("select sender from pnh_sms_log where id = ?",$reply_for)->num_rows()) { $sender = $this->db->query("select sender from pnh_sms_log where id = ?",$reply_for)->row()->sender;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function reply($id, $mobile, $message, $cost = 0);", "private function updateReply(){\n\t\t\t$con = Connection();\n\t\n\t\t\tif(!$con)\n\t\t\t{\n\t\t\t\t$arr_res = array();\n\t\t\t\t$arr_res['error'] = array(\"msg\" => \"no DB Connection\");\n\t\t\t\t$arr_res['result'] = array('status' => \"Failed\");\n\t\t\t\t...
[ "0.72732055", "0.65855855", "0.65391076", "0.6459644", "0.6455059", "0.634203", "0.633875", "0.6270709", "0.6245874", "0.62437516", "0.6189959", "0.6149713", "0.61323583", "0.594662", "0.59170544", "0.59053034", "0.5791205", "0.57869995", "0.5780228", "0.5777667", "0.57523537...
0.73693454
0
function to dynamically update product sourceable status from ajax
function jx_upd_prodsrcstatus() { $user = $this->auth(); $pid = $this->input->post('pid'); $stat = !$this->input->post('stat'); $output = array(); $this->db->query("update m_product_info set is_sourceable=? where product_id=? and is_sourceable != ? limit 1",array($stat,$pid,$stat)); $output['st...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_upd_bulkprodsrcstatus()\r\n\t{\r\n\t\t$user = $this->auth();\r\n\t\t$pid_list = $this->input->post('prod');\r\n\t\t$output = array();\r\n\t\tforeach($pid_list as $pid=>$stat)\r\n\t\t{\r\n\t\t\t$this->db->query(\"update m_product_info set is_sourceable=? where product_id=? and is_sourceable != ? limit ...
[ "0.72193104", "0.64969856", "0.6436644", "0.643072", "0.6412059", "0.6341568", "0.6247952", "0.6213275", "0.6212111", "0.61945695", "0.6194437", "0.6158009", "0.6101455", "0.60826474", "0.6053813", "0.60312027", "0.60291886", "0.6015308", "0.5997645", "0.5996406", "0.59837216...
0.75831574
0
function to dynamically update product sourceable status from ajax
function jx_upd_bulkprodsrcstatus() { $user = $this->auth(); $pid_list = $this->input->post('prod'); $output = array(); foreach($pid_list as $pid=>$stat) { $this->db->query("update m_product_info set is_sourceable=? where product_id=? and is_sourceable != ? limit 1",array($stat,$pid,$stat)); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_upd_prodsrcstatus()\r\n\t{\r\n\t\t$user = $this->auth();\r\n\t\t$pid = $this->input->post('pid');\r\n\t\t$stat = !$this->input->post('stat');\r\n\t\t\r\n\t\t$output = array();\r\n\t\t$this->db->query(\"update m_product_info set is_sourceable=? where product_id=? and is_sourceable != ? limit 1\",array(...
[ "0.75831574", "0.64969856", "0.6436644", "0.643072", "0.6412059", "0.6341568", "0.6247952", "0.6213275", "0.6212111", "0.61945695", "0.6194437", "0.6158009", "0.6101455", "0.60826474", "0.6053813", "0.60312027", "0.60291886", "0.6015308", "0.5997645", "0.5996406", "0.59837216...
0.72193104
1
function to get stock prod details by stock id
function jx_get_stkprobyid($stk_id=''){ $this->erpm->auth(true); $stk_prodet_res = $this->db->query("select * from t_stock_info where stock_id = ? ",$stk_id); $output = array(); if($stk_prodet_res) { $output['stkdet'] = $stk_prodet_res->row_array(); $output['status'] =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function showStock($id)\n\t{\n\t\treturn $this->stock->where('id',$id)->first();\n\t}", "private function stockData($id)\n {\n // ->join('products as b','b.product_id','=','a.product_id')\n // ->join('product_types as c','c.product_type_id','=', 'b.product_type_id')\n // ->join('pr...
[ "0.7516386", "0.75125945", "0.7352082", "0.73035884", "0.7269206", "0.7250248", "0.720682", "0.7191987", "0.70224494", "0.7000099", "0.69528866", "0.69482136", "0.69338804", "0.69070846", "0.6858231", "0.68441796", "0.6840211", "0.68335086", "0.6833229", "0.6809973", "0.67569...
0.7665815
0
function to update product stock barcode
function jx_upd_stkprodbc() { if(!$_POST) die(); $this->erpm->auth(); $stk_id = $this->input->post('stk_id'); $newbc = $this->input->post('newbc'); $output = array(); $newbc = trim(str_replace(' ','',$newbc)); $this->db->query("update t_stock_info...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _upd_product_stock($prod_id=0,$mrp=0,$bc='',$loc_id=0,$rb_id=0,$p_stk_id=0,$qty=0,$update_by=0,$stk_movtype=0,$update_by_refid=0,$mrp_change_updated=-1,$msg='')\r\n {\r\n $user = $this->erpm->auth();\r\n\r\n if(!$prod_id)\r\n show_error(\"Invalid product 0 given\");...
[ "0.6481253", "0.6449231", "0.618062", "0.6147988", "0.60788476", "0.60062224", "0.5834825", "0.58133227", "0.57609314", "0.57548195", "0.5747598", "0.5728756", "0.57149804", "0.5685567", "0.56854916", "0.56799173", "0.56768256", "0.5641709", "0.56387216", "0.56328493", "0.556...
0.678296
0
function to download pnh sales report
function export_pnh_sales_report() { $this->erpm->auth(PNH_EXECUTIVE_ROLE|FINANCE_ROLE); //ssql to generate franchise list $sql_f = "select pnh_franchise_id,franchise_id,login_mobile1,login_mobile2,franchise_name,b.territory_name,c.town_name from pnh_m_franchise_info a joi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ctrDownloadReport() {\n\n if (isset($_GET['report'])) {\n\n $table = 'sales';\n\n if(isset($_GET['startDate']) && isset($_GET['endDate'])) {\n\n $sales = SalesModel::mdlDateRangeSales($table, $_GET['startDate'], $_GET['endDate']);\n\n } else ...
[ "0.72400385", "0.68462276", "0.65632135", "0.6514911", "0.6476787", "0.642211", "0.6305458", "0.6254436", "0.6230703", "0.619383", "0.6189353", "0.61704755", "0.61249524", "0.6102935", "0.6089389", "0.608508", "0.607173", "0.607173", "0.602616", "0.6013088", "0.600055", "0....
0.7311653
0
function to generate stock unavailable report with order ageing for 10 days
function unavail_product_ageing_report() { $this->erpm->auth(UNAVAILABLE_PRODUCT_AGEING_REPORT); $unavail_prod_sql = "select brand_id,brand_name,product_id,product_name,category, order_date,sum(ttl_req_qty) as ttl_req_qty,mrp,purchase_cost,trans from ((select c.brand_id as brand_id,d.name as bran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function daylist_get() {\n $condition = \"\";\n $fromdate = $this->get('fromdate');\n $todate = $this->get('todate');\n $status = $this->get('status');\n $store = $this->get('store');\n $total_cost = 0.00;\n\n if ($status != \"\") {\n if ($status == \"Del...
[ "0.5493527", "0.532903", "0.52588546", "0.52577037", "0.5254502", "0.5205309", "0.5204789", "0.5194785", "0.5175344", "0.5170096", "0.50973374", "0.5087485", "0.50812554", "0.5060001", "0.5054281", "0.5049642", "0.50437415", "0.5042714", "0.50417477", "0.5039829", "0.50376964...
0.6398522
0
function to populate pending orders distinct brands
function jx_pendingorders_brands() { $this->erpm->auth(); $partner_id = $this->input->post('partner_id'); $output = array(); $brand_list_res = $this->db->query(" select d.id,d.name,count(distinct a.id) as total_orders from king_transactions t join king_orders a on t....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBrands()\n {\n $returned_brands = $GLOBALS['DB']->query(\"SELECT brands.* FROM stores\n JOIN stores_brands ON (stores.id = stores_brands.store_id)\n JOIN brands ON (stores_brands.brand_id = brands.id)\n WHERE stores.id = {$this->getId()};\"...
[ "0.60706526", "0.59680724", "0.5963219", "0.5942748", "0.58349323", "0.5697071", "0.5659399", "0.5615677", "0.5574053", "0.5523273", "0.55210966", "0.5520998", "0.5453636", "0.54381764", "0.53779984", "0.5366369", "0.52706957", "0.5221068", "0.52113545", "0.5179769", "0.51666...
0.6370465
0
function to load manifesto log by page
function jx_manifesto_log($pg=0) { $limit = 10; $output = array(); $output['ttl_rows'] = $this->erpm->get_partner_manifesto_log(-1); $manifesto_list = $this->erpm->get_partner_manifesto_log($pg,$limit); if($manifesto_list->num_rows()) $output['manifesto_log'] = $manifesto_list->result_array(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setHistorique($page)\n {\n if(file_exists(ROOT . Prefix_View . $page.'.php')){\n $histo = Session::getAttributArray(\"historique\");\n if(!Session::existeAttribut('historique')) Session::setAttributArray(\"historique\",[\"prev\"=>$this->url, \"current\"=>$this->url]...
[ "0.538696", "0.53126484", "0.5222398", "0.5212181", "0.521024", "0.51780784", "0.5167602", "0.5149236", "0.5145887", "0.5068041", "0.50423086", "0.5015762", "0.498672", "0.49609616", "0.49583206", "0.4934648", "0.49344862", "0.49309248", "0.49249843", "0.49113718", "0.4904273...
0.51744044
6
function to create thumbnail
function _createThumbnail() { $user=$this->auth(PNH_EMPLOYEE); $config['image_library']= 'gd'; $config['source_image']= './resources/employee_assets/image/'; $config['create_thumb']= TRUE; $config['maintain_ratio']= TRUE; $config['width']= 75; $config['height']=75; $this->image_lib->initiali...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function gen_thumbnail()\n {\n }", "public function gen_thumbnail()\n {\n }", "private function generateThumbnailImagick(){\n\t}", "private function generateThumbnailGD(){\n\t\t\n\t}", "function make_thumb($src,$dest) {\n try {\n // Create a new SimpleImage object\n $ima...
[ "0.84432244", "0.84432244", "0.8400885", "0.83529335", "0.76890373", "0.7677475", "0.7658095", "0.7641368", "0.76312274", "0.76301175", "0.75657076", "0.74753064", "0.7471089", "0.7466056", "0.74551684", "0.7410057", "0.7404378", "0.7380642", "0.73746455", "0.73549116", "0.73...
0.78078854
4
function to validate pnh employee username in add,edit forms
function _validate_pnhempusername() { $username = $this->input->post('username'); if($this->db->query('select count(*) as t from king_admin where username = ? ',$username)->row()->t) { $this->form_validation->set_message('_validate_pnhempusername','Username already available'); return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function usernameEntryIsValid() {\r\n \r\n //todo put logic here (same as email)\r\n // set the var equal to function call of username\r\n $username = $this->getUsername();\r\n // If the field is empty\r\n if ( empty($username) ) {\r\n // Will send it...
[ "0.75389373", "0.7535051", "0.725568", "0.7234101", "0.71935725", "0.7150276", "0.7110692", "0.69704133", "0.6940249", "0.6910839", "0.67968386", "0.6792455", "0.6763067", "0.6760781", "0.6736661", "0.67140836", "0.66918945", "0.66626203", "0.6603699", "0.6601927", "0.6600924...
0.71609855
5
process add_employee employee form details
function process_addemployee() { $user=$this->auth_pnh_employee(); $role_id=$this->get_jobrolebyuid($user['userid']); if($role_id<=3) { $this->load->library('form_validation'); $this->form_validation->set_rules('emp_name','Name','required'); $this->form_validation->set_rules('father_name',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_employee()\n\t{\n\t\t\n\t\n\t\t//this is calling the view page employee_details to insert the employee's details\n\t\t$this->load->view('employee_details');\n\t}", "public function addEmployee()\n {\n // if we have POST data to create a new employee entry\n if (isset($_POST[\...
[ "0.7664686", "0.76019883", "0.7343917", "0.7330824", "0.72096825", "0.7104306", "0.69161457", "0.66724074", "0.6614965", "0.6588678", "0.6579807", "0.6576093", "0.65407395", "0.65018773", "0.64903736", "0.64501107", "0.643891", "0.64350206", "0.64246905", "0.64158255", "0.639...
0.64303523
18
To get superior names by role_id
function get_superior_names($role_id) { $output = array(); if($role_id==6) { $role_id=$role_id-1; } if($role_id==7) { $role_id=$role_id-3; } if($role_id==8) { $role_id=$role_id-5; } else { $role_id = $role_id-1; } $emp_list = $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRolesNames ();", "function get_superior_emplist($role_id)\r\n\t{\r\n\t\t$output = array();\r\n\r\n\t\t$superior_role_id = $role_id-1;\r\n\r\n\t\t$emp_list = $this->common->get_empbyroleid($superior_role_id);\r\n\t\tif($emp_list)\r\n\t\t{\r\n\t\t\t$output['status'] = 'success';\r\n\t\t\t$output...
[ "0.6514006", "0.6411462", "0.62323594", "0.6093981", "0.60758543", "0.6048669", "0.5994861", "0.59700006", "0.59340835", "0.5890198", "0.58499354", "0.582848", "0.57586974", "0.57286125", "0.57199264", "0.5666924", "0.56639725", "0.56581575", "0.56547815", "0.56402", "0.56120...
0.79611504
0
END OF ADD EMPLOYEE EDIT EMPLOYEE Function to edit
function edit_employee($emp_id='') { //$user=$this->auth(); $user = $this->auth_pnh_employee(); if(!$emp_id) show_404(); $role_id=$this->get_jobrolebyuid($user['userid']); if(empty($role_id)) show_error("Access Denied"); if($role_id<=3) { $data['emp_details']=$this->erpm->get_empi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editAction()\n\t{\n\t\t$params = $this->data->getParams();\n\t\t$params = $this->valid->clearDataArr($params);\n\t\tif (isset($params['id']))\n\t\t{\n\t\t\t$this->employee->setFlag(true);\n\t\t}\n\t\tif (isset($_POST['submit']))\n\t\t{\n\t\t\t$action = $this->valid->clearDataArr($_POST);\n\t\t\t$th...
[ "0.75303274", "0.7461106", "0.73738635", "0.7352082", "0.7352082", "0.7352082", "0.7352082", "0.7352082", "0.7352082", "0.73053557", "0.72792476", "0.71253765", "0.71239966", "0.6987181", "0.6984926", "0.69448215", "0.69438094", "0.69089395", "0.68934035", "0.6863163", "0.684...
0.7101536
13
function to get superior emp list by role_id
function get_superior_emplist($role_id) { $output = array(); $superior_role_id = $role_id-1; $emp_list = $this->common->get_empbyroleid($superior_role_id); if($emp_list) { $output['status'] = 'success'; $output['emp_list'] = $emp_list; } else { $output['status'] = 'error'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_superior_names($role_id)\r\n\t{\r\n\t\t$output = array();\r\n\t\t\r\n\t\t\tif($role_id==6)\r\n\t\t\t{\r\n\t\t\t\t$role_id=$role_id-1;\r\n\t\t\t}\r\n\t\t\tif($role_id==7)\r\n\t\t\t{\r\n\t\t\t\t$role_id=$role_id-3;\r\n\t\t\t}\r\n\t\t\tif($role_id==8)\r\n\t\t\t{\r\n\t\t\t\t$role_id=$role_id-5;\r\n\t\t\t}...
[ "0.72895557", "0.6594664", "0.6348923", "0.59951365", "0.5962617", "0.59075963", "0.58651304", "0.57982105", "0.5668385", "0.56299514", "0.56148714", "0.56111234", "0.55897176", "0.5581067", "0.5575676", "0.55719405", "0.55576295", "0.5550171", "0.5550005", "0.5521551", "0.55...
0.79152757
0
END OF EDIT EMPLOYEE VIEW EMPLOYEE
function view_employee($emp_id='',$pg=0) { $this->task_status = $this->config->item('task_status'); $user=$this->auth(); $emp_details=$this->erpm->get_empinfo($emp_id); $isactive_territories=$this->erpm->isactive_territorylist(); $unactive_territories=$this->erpm->unactive_territorylist(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Emprendedore $emprendedore)\n {\n //\n }", "private function listEmployee()\n\t{\n\t\t$employees = $this->employee->getEmployee();\n\t\t$cnt = 1;\n\t\tforeach($employees as $key => $val)\n\t\t{\n\t\t\t$arr = array('CNT' => $cnt,\n\t\t\t\t\t\t 'EMPLOYEE_NAME' => $val['name_employ...
[ "0.6662981", "0.65365565", "0.6530049", "0.65231156", "0.65210754", "0.64028", "0.6346599", "0.6343136", "0.6341336", "0.6337431", "0.6337431", "0.6337431", "0.6337431", "0.6337431", "0.6337431", "0.63186556", "0.6307167", "0.6296957", "0.62889594", "0.62660664", "0.6263194",...
0.0
-1
END OF VIEW EMPLOYEE LIST EMPLOYEE
function list_employee($role_id=0,$territory_id=0,$pg=0) { $this->erpm->auth(); $cond=''; if($role_id) $cond.=' and a.job_title2='.$role_id; if($territory_id ) $cond.=' and c.territory_id='.$territory_id; $emp_list=$this->db->query("SELECT *,b.role_name AS fc,d.role_name FROM m_employee_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function listEmployee()\n\t{\n\t\t$employees = $this->employee->getEmployee();\n\t\t$cnt = 1;\n\t\tforeach($employees as $key => $val)\n\t\t{\n\t\t\t$arr = array('CNT' => $cnt,\n\t\t\t\t\t\t 'EMPLOYEE_NAME' => $val['name_employee'],\n\t\t\t\t\t\t 'EMPLOYEE_ID' => $val['id_employee'],\n\t\t\t\t\t\t 'EMPLOYE...
[ "0.7322527", "0.6663821", "0.6589908", "0.6564483", "0.65345645", "0.64541084", "0.6436646", "0.64243835", "0.6411209", "0.63854647", "0.6365831", "0.6363812", "0.63242686", "0.6323881", "0.6292835", "0.6277792", "0.6277058", "0.6266147", "0.6233671", "0.6232253", "0.62155104...
0.0
-1
END OF LIST EMPLOYEE Assignment History
function assignment_histroy() { $this->erpm->auth(); $assignment_histroy = $this->erpm->to_get_assignmnt_histroy(); $data['assignment_histroy']=$assignment_histroy; $data['page']="assignment_histroy"; $this->load->view("admin",$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function to_get_assignmnt_histroy(){\r\n\t\treturn $this->db->query('SELECT a.employee_id,c.role_name AS assigned_under,c.role_id AS assig_id,b.name,date_format(a.assigned_on,\"%d/%m/%y\") as assigned_on,date_format(a.modified_on,\"%d/%m/%y\") as modified_on,d.job_title,e.role_name,d.name AS emp_name\r\n\t\t\t\t\t...
[ "0.536072", "0.5344648", "0.5240014", "0.5174553", "0.51449955", "0.5087017", "0.50584096", "0.5039782", "0.50100696", "0.4985685", "0.4957446", "0.49371076", "0.4923537", "0.4912121", "0.4898182", "0.48927036", "0.48759475", "0.48640382", "0.4831894", "0.4829776", "0.4812344...
0.54132164
0
CALANDER function to add Employee Events in Calander
function calender() { $this->erpm->auth(); $user = $this->auth_pnh_employee(); $role_id=$this->get_jobrolebyuid($user['userid']); if($role_id<=3) { $role_id = $this->get_emproleidbyuid($user['userid']); $emp_id = $this->get_empidbyuid($user['userid']); $sub_emp_ids=$this->get_subordinate...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createEvents()\n {\n //\n\n return 'something';\n }", "function eventclass_staff_info()\n\t{\n\t\t$this->events[\"AfterAdd\"]=true;\n\n\n//\tonscreen events\n\n\n\t}", "private function add_events()\r\n {\r\n $events = $this->events;\r\n foreach ($events as ...
[ "0.5976879", "0.59497815", "0.5948231", "0.5918001", "0.5912413", "0.58962315", "0.5856768", "0.58224267", "0.580103", "0.5771251", "0.57572615", "0.57534283", "0.56868327", "0.5646124", "0.5624811", "0.56219506", "0.561353", "0.5576602", "0.55657715", "0.55318606", "0.553051...
0.59158623
4
function to load employee task via ajax
function jx_load_tasklist() { //$user=$this->auth('EMP_MANAGE_TASK'); $user=$this->auth_pnh_employee(); $role_id=$this->get_jobrolebyuid($user['userid']); if($role_id<=3) { $town_id=''; $territory_id=''; $tasklist=''; $town_id = $this->input->post('town_id'); $empid = $this->input->post(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajaxGetEmployeeDataById() {\n $employeeId = $_GET['employeeId'];\n $result = getEmployeeDataById($employeeId);\n echo json_encode($result);\n }", "function ajaxGetEmployeeStatusHistory() {\n $empId = $_GET['empId'];\n\n $employeeHistory = getEmployeeStatusHistory($e...
[ "0.6561764", "0.6012144", "0.600739", "0.60005504", "0.5889711", "0.5805075", "0.5778631", "0.57620305", "0.57379615", "0.5734553", "0.56572735", "0.5614691", "0.56126", "0.5597988", "0.5589005", "0.55844736", "0.55472475", "0.55333984", "0.5526589", "0.54773057", "0.5440028"...
0.6203715
1
function to load task based on emp_id
function jx_loadall_tasklist($st=0) { $output = array(); $task_status=array(); $task_status[1]='Pending'; $task_status[2]='Complete'; $task_status[3]='Closed'; $tr_id=$this->input->post('trid'); $tw_id=$this->input->post('twid'); $emp_id=$this->input->post('emp_id'); $co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_load_tasklist()\r\n\t{\r\n\t\t//$user=$this->auth('EMP_MANAGE_TASK');\r\n\t\t$user=$this->auth_pnh_employee();\r\n\t\t$role_id=$this->get_jobrolebyuid($user['userid']);\r\n\t\tif($role_id<=3)\r\n\t\t{\r\n\t\t$town_id='';\r\n\t\t$territory_id='';\r\n\t\t$tasklist='';\r\n\t\t$town_id = $this->input->post...
[ "0.66038924", "0.64200217", "0.6353875", "0.6247625", "0.6180351", "0.5793411", "0.5787771", "0.57230204", "0.56687516", "0.5612165", "0.5612165", "0.5575822", "0.5574028", "0.55686104", "0.5567231", "0.55544305", "0.5554005", "0.5554005", "0.5533063", "0.5513454", "0.5443093...
0.5621369
9
function to assign routes
function jx_add_route() { $route_name=$this->input->post('route_name'); $town=$this->input->post('towns'); $t=0; $sql="insert into pnh_routes(route_name,is_active,created_on)values(?,1,now())"; $this->db->query($sql,$route_name); $route_id=$this->db->insert_id(); foreach($town as $twn) {...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function declare_routes(){\n\n $this->routes = \\Chocolatine\\get_configuration( 'routes' );\n $view_manager = \\Chocolatine\\get_manager('view');\n\n /**\n * Declare all route\n */\n foreach ( $this->routes as $key => $current_route) {\n\n $this->rout...
[ "0.77271074", "0.7416632", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", "0.7385245", ...
0.0
-1
END OF TASK PRINT function load employees by terr or town id
function jx_getpnhemployees() { $terr_id = $this->input->post('terr_id')*1; $twn_id = $this->input->post('twn_id')*1; $cond = ''; if($terr_id) $cond .= " AND territory_id = ".$terr_id; if($twn_id) $cond .= " AND ( town_id = ".$twn_id." or...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_assigned_town_det($emp_id){\r\n\t\treturn $this->db->query('SELECT a.employee_id,d.name AS assigned_under,a.territory_id,a.town_id,b.town_name,a.created_on,a.modified_on\r\n\t\t\t\t\t\t\t\tFROM `m_town_territory_link` a\r\n\t\t\t\t\t\t\t\tJOIN `pnh_towns` b ON b.id=a.town_id\r\n\t\t\t\t\t\t\t\tJOIN `m...
[ "0.56961024", "0.56788975", "0.56522745", "0.5641252", "0.5530812", "0.5482359", "0.54567605", "0.5448232", "0.54176956", "0.53296304", "0.53244007", "0.53119963", "0.53105915", "0.52630156", "0.52371436", "0.5221603", "0.51883465", "0.51719695", "0.5170636", "0.51420224", "0...
0.57045406
0
function to build sub menu list by url
function build_menulistbyurl() { $url=$this->input->post('url'); // check if url set if(!$url) die("No referer found"); // get top most menu which has 0 has parent $menu_parent_id=''; while(true) { $menu_det=$this->erpm->get_menu_parent_id($url,$menu_parent_id); if($me...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function createMenu(){\n $perms = Security::getPermsFromConnectedUser() ?? [];\n\n $menuData = self::$_menuData;\n\n $actualUri = self::$_actualUri;\n $menuListBuilder = [];\n $html = '';\n foreach ($menuData as $link => $data) {\n if (!empty($data...
[ "0.67110264", "0.66582215", "0.6600716", "0.6529025", "0.64602435", "0.6443463", "0.64411664", "0.6439282", "0.64384586", "0.64258265", "0.64221513", "0.6420957", "0.64122534", "0.64101356", "0.6379865", "0.6377964", "0.6357019", "0.6354524", "0.62905896", "0.62745285", "0.62...
0.7673327
0
function to list all pnh invoice returns
function pnh_invoice_returns($pg=0) { $this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN); $data['pnh_inv_returns_ttl'] = $this->erpm->get_pnh_invreturns_ttl(); $data['pnh_inv_returns'] = $this->erpm->get_pnh_invreturns($pg); $this->load->library('pagination'); $config['base_url'] = site_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_getinvoiceorditems()\r\n\t{\r\n\t\t$this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN);\r\n\t\t$output = array();\r\n\t\t$invno = $this->input->post('scaninp');\r\n\t\t\r\n\t\t$fr_det = $this->db->query(\"select a.franchise_id,franchise_name from pnh_m_franchise_info a join king_transactions ...
[ "0.72788763", "0.6912859", "0.6848112", "0.6679983", "0.65959585", "0.6384296", "0.6374152", "0.6313009", "0.6304242", "0.62934154", "0.62787914", "0.6215827", "0.61764646", "0.6148969", "0.6142093", "0.6138864", "0.61263156", "0.6126152", "0.61091566", "0.60949135", "0.60942...
0.72021675
1
function to list products in service processed via pnh return
function pnh_return_service_log($pg=0) { $this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN); $data['prod_ttl'] = $this->erpm->get_pnh_product_service_ttl(); $data['prod_list'] = $this->erpm->get_pnh_product_service($pg); $this->load->library('pagination'); $config['base_url'] = site_url(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getProductInfosList(){\n return $this->_get(1);\n }", "public function getProductList(){\n\n $productModel = new ProductModel();\n $products = $productModel->getProductList();\n $this->JsonCall($products);\n }", "public function index()\n {\n return $thi...
[ "0.71880436", "0.7092316", "0.69085604", "0.6882331", "0.67385", "0.6737635", "0.67052865", "0.66972595", "0.66934", "0.6658059", "0.6605673", "0.6528668", "0.652588", "0.65003836", "0.64897037", "0.64876276", "0.6461308", "0.6457049", "0.6449126", "0.64436203", "0.6439777", ...
0.0
-1
function to add pnh invoice return
function add_pnh_invoice_return() { $this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN); $data['page'] = 'add_pnh_invoice_return'; $this->load->view('admin',$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function process_add_pnh_invoice_return()\r\n\t{\r\n\t\t$this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN);\r\n\t\t\r\n\t\t$prod_rcvd_pid = $this->input->post('prod_rcvd_pid');\r\n\t\t$prod_rcvd_qty = $this->input->post('prod_rcvd_qty');\r\n\t\t$prod_rcvd_pid_bc = $this->input->post('prod_rcvd_pid_bc');...
[ "0.76571614", "0.7058627", "0.69034654", "0.6902851", "0.68393725", "0.67609125", "0.67502713", "0.67379254", "0.6680675", "0.6649136", "0.66126376", "0.6594058", "0.63830376", "0.63729405", "0.6346238", "0.6338798", "0.63176924", "0.63136256", "0.6274048", "0.6242893", "0.62...
0.7888399
0