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
function to get invoice order detials
function jx_getinvoiceorditems() { $this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN); $output = array(); $invno = $this->input->post('scaninp'); $fr_det = $this->db->query("select a.franchise_id,franchise_name from pnh_m_franchise_info a join king_transactions b on a.franchise_id = b.franc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoiceOrder();", "function get_invoicedet_forreturn($invno)\r\n\t{\r\n\t\t$invdet = array();\r\n\t\t\r\n\t\t$sql = \"select a.invoice_no,b.id as order_id,b.itemid,c.name,b.quantity,d.packed,d.shipped,d.shipped_on,\r\n\t\t\t\t\t\ta.invoice_status \r\n\t\t\t\t\tfrom king_invoice a\r\n\t\t\t\t...
[ "0.7359912", "0.6576653", "0.6554218", "0.64295375", "0.64172435", "0.63711554", "0.637113", "0.6313796", "0.62798184", "0.61926246", "0.61925244", "0.6156233", "0.6150567", "0.61460197", "0.61433816", "0.6136656", "0.6134757", "0.6097577", "0.60937417", "0.6077393", "0.60569...
0.6558584
2
function to check if the entered barcode is valid for the product
function jx_chkvalidprodbc() { $this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN); //get product and barcode from post $prod_id = $this->input->post('pid'); $prod_bc = $this->input->post('bc'); $output = array(); // check stock entry for barcode against product $is_availa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validate(){\n\t\treturn true; //use this to bypass barcode validation\n\n\t\t$value = preg_match($this->REGEX, $this->code);\n\t\tif($value != 1)\n\t\t{\n\t\t\t$this->error = 'The barcode <strong>'.$this->code.'</strong> is not valid';\n\t\t}\n\n\t\treturn $value;\n\t}", "private function guardBarcode (...
[ "0.75424755", "0.73131865", "0.7235476", "0.7024356", "0.69597924", "0.67651737", "0.67591274", "0.6683641", "0.66543853", "0.6650458", "0.6421123", "0.6359724", "0.6334771", "0.6251411", "0.61583966", "0.6155124", "0.6150372", "0.61100155", "0.61082524", "0.60883236", "0.607...
0.71282434
3
function to load transaction by order id
function load_transbyoid($order_id='') { $transid = $this->db->query("select transid from king_orders where id = ? ",$order_id)->row()->transid; redirect('admin/trans/'.$transid); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function loadOrder()\n {\n $brqOrderId = $this->getOrderIncrementId();\n\n //Check if the order can receive further status updates\n $this->order->loadByIncrementId((string) $brqOrderId);\n\n if (!$this->order->getId()) {\n $this->logging->addDebug('Order could not...
[ "0.68934673", "0.67989475", "0.67529047", "0.65793645", "0.65621173", "0.64903814", "0.6448774", "0.64029217", "0.6336961", "0.63313603", "0.6320575", "0.62873423", "0.6271253", "0.6261886", "0.6231575", "0.62228686", "0.6213092", "0.6196174", "0.61870366", "0.6171634", "0.61...
0.7519763
0
function to process add new return against invoice
function process_add_pnh_invoice_return() { $this->erpm->auth(PNH_INVOICE_RETURNS|PNH_ADD_INVOICE_RETURN); $prod_rcvd_pid = $this->input->post('prod_rcvd_pid'); $prod_rcvd_qty = $this->input->post('prod_rcvd_qty'); $prod_rcvd_pid_bc = $this->input->post('prod_rcvd_pid_bc'); $prod_rcvd_pid_imei = $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function 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$data['page'] = 'add_pnh_invoice_return';\r\n\t\t$this->load->view('admin',$data);\r\n\t}", "public function create_return() {\n\t\t$company = $this->CompanyModel->view();\n\n\t\t$return = array(...
[ "0.7567816", "0.701819", "0.6916455", "0.6811845", "0.675869", "0.671827", "0.66797423", "0.65157175", "0.6467296", "0.64265716", "0.64243484", "0.6324978", "0.6301752", "0.6299113", "0.6285518", "0.62597674", "0.62477285", "0.6231822", "0.6216149", "0.6215006", "0.61903834",...
0.7905089
0
function to load return page by return product id
function pnh_product_returnbyid($rp_id) { $this->erpm->auth(PNH_INVOICE_RETURNS); $return_id = $this->db->query('select return_id from pnh_invoice_returns_product_link where id = ? ',$rp_id)->row()->return_id; if(!$return_id) show_error("invalid return in reference"); redirect('admin/view_pnh_invo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function lb_show_single_product_page_action() {\n\t$product_id = esc_html( $_GET['id'] );\n\n\tlb_show_templates(\n\t\tarray(\n\t\t\t'name' => 'single_product',\n\t\t\t'products' => lb_get_products_data( 5 ),\n\t\t\t'this_product' => lb_get_product_data_by_id( $product_id ),\n\t\t\t'category' => lb...
[ "0.6691942", "0.64440584", "0.6419799", "0.64150363", "0.6395514", "0.6199198", "0.61810535", "0.61598146", "0.6135658", "0.6063861", "0.60549843", "0.6051855", "0.59858745", "0.59797746", "0.5971196", "0.59407324", "0.59256303", "0.5920173", "0.5916724", "0.59158534", "0.588...
0.68814635
0
function to print return receipt
function print_return_receipt($invoice_no='',$return_prod_id=0) { $this->erpm->auth(PNH_INVOICE_RETURNS); $this->load->plugin('barcode'); $data['fran_det'] = $this->erpm->get_frandetbyinvno($invoice_no); $data['return_proddet'] = $this->erpm->get_returnproddetbyid($return_prod_id); // check if the ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function __print_receipt()\n {\n\t//Assuming range\n\t$ret = $this->__view_receipt();\n\t$receipthead = $this->__receipt_head_html();\n\t$receiptfoot = $this->__receipt_foot_html();\n\t\n\t$receipts = $receipthead. sprintf(\"\n\t<div id=\\\"receiptrow1\\\" class = \\\"receiptcolumn1\\\">%s</div><div id=\\\...
[ "0.8067882", "0.77035546", "0.7236554", "0.6885528", "0.67871964", "0.6640702", "0.6586075", "0.656854", "0.656854", "0.63602877", "0.63401335", "0.6326078", "0.63222325", "0.63028294", "0.62791646", "0.62620705", "0.6259574", "0.62492526", "0.624689", "0.62180585", "0.621657...
0.7926659
1
function to get return product list by franchise id
function jx_getreturnprodsbyfid($pg=0) { $this->erpm->auth(); $fid = $this->input->post('fid'); $return_srch_kwd = trim($this->input->post('return_srch_kwd')); $return_on = $this->input->post('return_on'); $return_on_end = $this->input->post('return_on_end'); $cond = ''; if($return_sr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function particularproductlist($id)\n\t{\n\t\t$getParproduct=\"SELECT * from product_category where ptdcatgry_id = $id\";\n\t\t$product_data=$this->get_results( $getParproduct );\n\t\treturn $product_data;\n\t}", "function getFeatureProducts(){\n \n $itemonpage = !empty($_GET['per_page'])?$_GET['per...
[ "0.7386624", "0.6878422", "0.6872563", "0.68253684", "0.6767257", "0.6762238", "0.67546606", "0.67398083", "0.6735172", "0.673473", "0.6722747", "0.67183006", "0.6709884", "0.67095166", "0.6706197", "0.66984886", "0.6694194", "0.6673595", "0.6670203", "0.66679823", "0.66438",...
0.0
-1
function to mark return product as packed for processing for shipping
function pnh_markreturnpacked($return_prod_id=0) { $user = $this->erpm->auth(PNH_INVOICE_RETURNS); $rp_det_res = $this->db->query("select * from pnh_invoice_returns_product_link where id = ? ",$return_prod_id); if($rp_det_res->num_rows()) { $rp_det = $rp_det_res->row_array(); if($rp_det['i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function isPacked($id_product)\n {\n }", "public function box_shipping($package)\n {\n\n $this->items_temp = new \\DVDoug\\BoxPacker\\ItemList();\n\n //$bulkq = 1;\n\n $quantity = 1;\n\n $this->items_to_ship['no_drop'] = $this->get_items_to_ship($package);\n\n ...
[ "0.6481333", "0.6471088", "0.64665174", "0.64592403", "0.61899924", "0.6167526", "0.6065947", "0.6052935", "0.6033406", "0.6006228", "0.595188", "0.59402907", "0.5922816", "0.584229", "0.579906", "0.5794808", "0.57607144", "0.5738605", "0.5721872", "0.57016516", "0.5645328", ...
0.7734225
0
Ajax function to load pnh sms log details by type and territory
function jx_getpnh_exsms_log($type='def',$terr_id='0',$emp_id='0',$pg=0) { $limit = 25; // check if territory is set $cond = $terr_id?' 1 and d.territory_id = "'.$terr_id.'"':''; $cond = $emp_id?' and a.emp_id = "'.$emp_id.'"':''; $cond1 = $emp_id?' and assigned_to = "'.$emp_id.'"':''; /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_activity_log(){\n $this->ajax_checking();\n\n echo json_encode( $this->admin_model->get_activity_log() );\n }", "public function ajax_get_membership_logs() {\n\t\t$member_id = $this->input->get('member_id');\n\t\t$logs = $this->Member_Model->get_memberships_by_member_id($member_id);...
[ "0.60233015", "0.57721853", "0.5692674", "0.5687364", "0.55705655", "0.54599065", "0.5436502", "0.5284497", "0.5279934", "0.5243756", "0.51380795", "0.51269525", "0.51165307", "0.5116294", "0.5076133", "0.5047274", "0.50420535", "0.5025594", "0.49918854", "0.49873787", "0.495...
0.59315026
1
Ajax function to load pnh calls log details by type and territory
function jx_getpnh_calls_log($p1,$p2,$c,$pg=0) { //$this->json_error_show("$p1,$p2,$c,$pg"); $presql=''; $limit = 25; $tbl_total_rows=0; // if($p1=='callsmade') { //$presql=" join m_em...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function fetch_log_ajax() { \n\n\t// Only for LOG tab\n\tglobal $pn4p_active_tab;\n\tif (TAB_LOG != $pn4p_active_tab) {\n\t\treturn;\n\t}\n\n\t?>\n\t<script type=\"text/javascript\" >\n\n\tvar fetchLog = function() {\n\n\t\tvar data = {\n\t\t\t'action': 'fetch_log_action'\n\t\t};\n\n\t\t// since 2.8 ajaxurl is alw...
[ "0.6177288", "0.5918219", "0.5747426", "0.5645216", "0.5577776", "0.53787714", "0.53591716", "0.5287439", "0.52807784", "0.5144978", "0.51068", "0.5106795", "0.50995463", "0.5097111", "0.5064219", "0.50391847", "0.49997532", "0.49872708", "0.49731556", "0.4970796", "0.4943906...
0.5710788
3
/ function for bulk update
function pnh_deals_bulk_update() { $user=$this->auth(DEAL_MANAGER_ROLE); if($_FILES) { $this->erpm->do_pnh_deals_bulk_update(); } $data['page']="pnh_deals_bulk_update"; $this->load->view("admin",$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function my_update_record( $table_name , $primary_key , $data_id , $datas ){\r\n\r\n\tglobal $connection;\r\n\r\n\t$build_query = \" UPDATE `\".$table_name .\"` SET \" ;\r\n\tforeach( $datas as $field => $value ){\r\n\t\r\n\t\t$build_query .= \"`\".$field .\"` = \". $value . \", \";\r\n\t\r\n\t}\r\n\t\r\n\t$que...
[ "0.7152264", "0.7084715", "0.70560557", "0.7034757", "0.69949144", "0.6965863", "0.6908537", "0.6820765", "0.6774705", "0.67503744", "0.6718241", "0.6663739", "0.66381294", "0.6618178", "0.6617697", "0.6608788", "0.6603712", "0.65833616", "0.6571904", "0.657043", "0.65598655"...
0.6685577
11
get the invoices numbers by manifesto log id
function get_invoices_nos_by_manisfestoid() { $user=$this->auth(KFILE_ROLE); $manifesto_log_id=$this->input->post('manifesto_id'); //get the territory name by invoices nuber $territories_details=$this->erpm->get_terriory_name_by_invoice($manifesto_log_id); //get the driver list $dri...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_manifesto_send_invoices_det($manifesto_log_id)\r\n\t{\r\n\t\t//$invoices_nos_det=$this->db->query(\"select invoice_nos from pnh_manifesto_log where id=?\",$manifesto_log_id)->result_array();\r\n\t\t$invoices_nos_query=\"select a.invoice_nos,GROUP_CONCAT(b.sent_invoices) as sent_invoices from pnh_manif...
[ "0.6856261", "0.6061547", "0.60600287", "0.59914535", "0.5945989", "0.58130777", "0.5791308", "0.57643795", "0.5717199", "0.56949013", "0.5646014", "0.56297934", "0.5585482", "0.55497795", "0.5532682", "0.55297005", "0.552851", "0.55272305", "0.55130035", "0.5511016", "0.5495...
0.53509444
38
get manifesto sent summary
function get_manifesto_sent_summary() { $user=$this->auth(KFILE_ROLE); $manifesto_id=$this->input->post('manifesto_id'); $mainfesto_sent_det=$this->erpm->get_manifesto_sent_log($manifesto_id); if($mainfesto_sent_det) { echo '<table cellpadding="5" cellspacing="0" id="manifes...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSummary(): string {\n return $this->body['summary'] ?? \"none\";\n }", "public function getSummary(): string;", "public function getSummary();", "public function getGuildSummary()\n {\n return $this->get(self::_GUILD_SUMMARY);\n }", "public function getSummary()\n ...
[ "0.64064574", "0.62948257", "0.61942726", "0.611729", "0.60647255", "0.6052512", "0.5984121", "0.5984121", "0.5984121", "0.5984121", "0.5984121", "0.5984121", "0.5984121", "0.59839916", "0.59839916", "0.598397", "0.5923562", "0.5912373", "0.59024024", "0.5787771", "0.57817286...
0.61775714
3
/ function to get panel alerts
function get_panel_alerts() { // check for role $user = $this->erpm->auth(); $process = 1; if($this->erpm->auth(true,true)) $process = 0; else if(!$this->erpm->auth(CALLCENTER_ROLE,true)) $process = 0; if($user['userid'] == 6) $process = 1; $output = array(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function printAlert() {\n $result = [];\n foreach(self::$stores as $key => $store) {\n $alert = self::getAlertStoreByStatus($key) ? self::getAlertStoreByStatus($key) :\n Yii::$app->session->getFlash($store);\n if(!empty($alert)) {\n $r...
[ "0.66565466", "0.634332", "0.6138798", "0.61273676", "0.6082924", "0.60683954", "0.586681", "0.57875365", "0.57783395", "0.5778015", "0.5767931", "0.5765031", "0.5718603", "0.5695478", "0.56928056", "0.5688218", "0.5685166", "0.5672081", "0.5643264", "0.5639736", "0.56388324"...
0.71367645
0
remove the pnh deal linked product
function remove_pnhdeal_linked_prd($item_id,$prd_id,$is_sit=0) { $this->erpm->auth(true); $user_det=$this->session->userdata("admin_user"); $site=0; if($is_sit) $site=1; $sql="select p.mrp,l.product_id,l.qty,p.product_name from m_product_deal_link l join m_product_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeProduct(Product $product){\n $product->allergieëns()->detach();\n $product->delete();\n return redirect()->back();\n }", "function remove($pr_id) {\n\t\t$db=htvcenter_get_db_connection();\n\t\t$rs = $db->Execute(\"delete from \".$this->_db_table.\" where pr_id=$pr_id\")...
[ "0.6406044", "0.62533635", "0.6187095", "0.61339176", "0.6119527", "0.6010591", "0.59720004", "0.5942687", "0.5920473", "0.59194773", "0.58745545", "0.58689094", "0.586678", "0.5829946", "0.5827373", "0.58036506", "0.5784006", "0.5747023", "0.57296205", "0.5720087", "0.570475...
0.68958217
0
function to generate Sales report for Tally Import
function export_salesfortally() { $this->erpm->auth(FINANCE_ROLE); $stdate=$this->input->post('stdate')?$this->input->post('stdate'):date('Y-m-d'); $endate=$this->input->post('endate')?$this->input->post('endate'):date('Y-m-d'); $sales_by = $this->input->post('endate')?$this->input->post('sales_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function export_pnh_sales_report()\r\n\t {\r\n\t \t\r\n\t \t$this->erpm->auth(PNH_EXECUTIVE_ROLE|FINANCE_ROLE);\r\n\t \t\r\n\t \t//ssql to generate franchise list \r\n\t \t$sql_f = \"select pnh_franchise_id,franchise_id,login_mobile1,login_mobile2,franchise_name,b.territory_name,c.town_name \r\n\t \t\t\t\t\t\tfro...
[ "0.65144795", "0.6255664", "0.6240254", "0.6183103", "0.61596286", "0.5998267", "0.587753", "0.58712065", "0.5865768", "0.58563197", "0.5786004", "0.57806337", "0.57733816", "0.5725992", "0.56913275", "0.5675122", "0.5665626", "0.56595063", "0.5657926", "0.5642404", "0.562780...
0.67149615
0
get the executives and field cordinators by territory
function get_executives_and_fc() { $trr_id=$this->input->post('territory_id'); $executives_list=$this->erpm->get_executives_by_territroy($trr_id); echo '<select name="excutives_list">'; echo '<option value="Choose">Choose</option>'; if($executives_list) { foreach($executives_lis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTerritoryList() {\n return $this->_get(5);\n }", "public function coordinators()\n {\n return $this->morphedByMany('App\\Models\\Event\\Person\\EventCoordinator', 'persona', 'pivot_persona_org', 'organization_id', 'persona_id');\n }", "function allTerritorytoCombo() {\n ...
[ "0.56701225", "0.5297701", "0.52123994", "0.51520705", "0.51316935", "0.50128686", "0.48896948", "0.48695415", "0.48312867", "0.4819271", "0.48146635", "0.4781961", "0.47754675", "0.47743878", "0.47599015", "0.47384953", "0.46861884", "0.46793073", "0.46690792", "0.46084243", ...
0.44615874
31
to load all brands
function jx_getallbrands() { $output=array(); $allbrands_res=$this->db->query("select * from king_brands order by name asc"); if($allbrands_res->num_rows()) { $output['brand_list']=$allbrands_res->result_array(); $output['status']='success'; }else { $output['status']='error'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getBrandsAll()\n {\n $pdo = Database::getPDO();\n $sql = \"SELECT * FROM `\". static::$table .\"` \n WHERE `order` > 0\n ORDER BY `order` ASC \";\n \n $statement = $pdo->query( $sql );\n ...
[ "0.7152925", "0.7055756", "0.69775206", "0.69612", "0.68907475", "0.6811314", "0.6758433", "0.675786", "0.6710599", "0.66913044", "0.6632615", "0.6606813", "0.66023374", "0.66015697", "0.65141654", "0.6388845", "0.6277482", "0.6224461", "0.6159822", "0.6157033", "0.60912776",...
0.6113094
20
to load all catagory
function jx_getallcategory() { $output=array(); $allcats_res=$this->db->query("select * from king_categories order by name asc"); if($allcats_res->num_rows()) { $output['cat_list']=$allcats_res->result_array(); $output['status']='success'; }else { $output['status']='error'; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _loadCategories()\n {\n try {\n $this->_categories = Doctrine_Core::getTable('Category')->findAll(Doctrine_Core::HYDRATE_ARRAY);\n } catch (Exception $e) {\n echo $e->getMessage();\n }\n }", "public static function getAllCatagory(){\n\t\t\t$value=...
[ "0.71056175", "0.68918014", "0.6387619", "0.6347891", "0.6318265", "0.6310128", "0.62184054", "0.619982", "0.6161672", "0.60940343", "0.60881263", "0.60809577", "0.6069182", "0.6038017", "0.6003446", "0.59954613", "0.5976438", "0.5970639", "0.59666395", "0.5957555", "0.595306...
0.0
-1
function to load catagory list based on brand selection
function loadcat_bybrand($brandid=9999999999) { $brandid =(!is_numeric($brandid))?9999999999:$brandid; $output=array(); $cat_list=$this->db->query("SELECT a.catid,a.brandid,b.name AS brand_name,c.name AS category_name FROM king_deals a JOIN king_brands b ON b.id=a.brandid ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function brandcategories()\n\t\t{\n\t\t\t$logger = Logger::getLogger(__CLASS__);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$taskCode = \"brandcategories\";\n\t\t\t\t$this->LogAccess($taskCode);\n\t\t\t\t$authResult = $this->Authorize($taskCode);\n\t\t\t\tif ($authResult == \"LOGIN\")\n\t\t\t\t{\n\t\t\t\t\treturn $this->...
[ "0.6457086", "0.6367317", "0.6304288", "0.6224897", "0.61723065", "0.6168534", "0.6039173", "0.59678704", "0.59648347", "0.59638655", "0.5921519", "0.58791137", "0.5835465", "0.58012253", "0.5699558", "0.5687521", "0.55666745", "0.5553727", "0.55521864", "0.5522143", "0.55166...
0.6485433
0
function to load brands based on category selection
function loadbrand_bycat($catid='') { $catid =(!is_numeric($catid))?9999999999:$catid; $output=array(); $brand_list=$this->db->query("SELECT a.catid,a.brandid,b.name AS brand_name,c.name AS category_name FROM king_deals a JOIN king_brands b ON b.id=a.brandid JOIN king_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_load_allbrandsbycat($catid=0)\r\n\t\t{\r\n\t\t\t$output=array();\r\n\t\t\t$cond='';\r\n\t\t\t/*if($menuid)\r\n\t\t\t\t$cond.='and menuid='.$menuid;*/\r\n\t\t\tif(\t$catid)\r\n\t\t\t\t\t$cond.='and catid= '.$catid;\t\t\t\r\n\t\t\t$brandlist_res=$this->db->query(\"SELECT DISTINCT menuid,brandid,b.name,ca...
[ "0.72367775", "0.7172952", "0.6883191", "0.6747276", "0.6415899", "0.6258205", "0.6248111", "0.6245574", "0.62322074", "0.6193215", "0.6129597", "0.6095282", "0.59525853", "0.5889241", "0.5885238", "0.58364433", "0.5830066", "0.57956535", "0.5786344", "0.5783455", "0.5766438"...
0.68632835
3
get the details pnh invoices transit status
function shipments_transit_log() { $this->erpm->auth(PNH_SHIPMENT_MANAGER|CALLCENTER_ROLE); $data['page']='pnh_shipments_transit_log'; $this->load->view('admin',$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getInvoiceStatus() {\r\n\t\t$status = array();\r\n\t\t\t$status[0] = array('id' => 0, 'name' => 'Completed'); //done, can not be edited, but not retured\r\n\t\t\t$status[1] = array('id' => 1, 'name' => 'Unfinished'); //still open, can be edited\r\n\t\t\t$status[2] = array('id' => 2, 'name' => 'Retu...
[ "0.6775086", "0.66005117", "0.64669764", "0.6406999", "0.6402926", "0.6323655", "0.62051356", "0.6184946", "0.61267734", "0.6071808", "0.6025452", "0.59835476", "0.5953158", "0.59255075", "0.5900485", "0.5888614", "0.58754784", "0.58645576", "0.5860231", "0.5850841", "0.58470...
0.0
-1
function to load all brands of selected menu
function jx_load_allbrandsbycat($catid=0) { $output=array(); $cond=''; /*if($menuid) $cond.='and menuid='.$menuid;*/ if( $catid) $cond.='and catid= '.$catid; $brandlist_res=$this->db->query("SELECT DISTINCT menuid,brandid,b.name,catid FROM `king_deals`a JOI...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getBrands() {\n $cat = $_POST['cat'];\n echo(json_encode($this->Trader_mdl->getBrands($cat)));\n }", "function getBrands()\n\t{\n\t\tglobal $con;\n\t\t\t\n\t\t//echo var_dump($con);\n\t\t$get_brands = \"select * from brands\";\n\t\t$run_brands = mysqli_query($con, $get_brands);\n\t\twhi...
[ "0.6536119", "0.63693637", "0.629554", "0.6151177", "0.6134957", "0.6112869", "0.6078276", "0.5971432", "0.5960224", "0.59505", "0.59499335", "0.5941558", "0.5916085", "0.590905", "0.5851594", "0.58341026", "0.5815917", "0.58069414", "0.5794481", "0.57833856", "0.5769054", ...
0.6355118
2
function to all categorys of selected menu and brand
function jx_load_allcatsbymenu($menuid=0,$catid=0) { $output=array(); $cond=''; if($menuid) $cond.=' and menuid='.$menuid; if($catid ) $cond.=' and catid='.$catid; $catlist_res=@$this->db->query("SELECT DISTINCT catid,brandid,menuid,c.name,b.name as brandname FRO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function brandcategories()\n\t\t{\n\t\t\t$logger = Logger::getLogger(__CLASS__);\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$taskCode = \"brandcategories\";\n\t\t\t\t$this->LogAccess($taskCode);\n\t\t\t\t$authResult = $this->Authorize($taskCode);\n\t\t\t\tif ($authResult == \"LOGIN\")\n\t\t\t\t{\n\t\t\t\t\treturn $this->...
[ "0.6807258", "0.67083406", "0.66521215", "0.66164696", "0.6506312", "0.6431867", "0.6345896", "0.6345896", "0.63162917", "0.6258416", "0.6257292", "0.6255752", "0.6249713", "0.62402135", "0.623468", "0.62255406", "0.62164474", "0.6213101", "0.61836326", "0.6176546", "0.617441...
0.6258995
9
function to load all menu by territories
function get_franchisemenuby_terrid($territory_id=0) { $user=$this->auth_pnh_employee(); if(!$territory_id) { $territory_id=$this->input->post('territoryid'); if(is_array($territory_id)) $territory_id=implode(',',$territory_id); if(!$territory_id) $territory_id=0; } $fr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function menustoreAction() {\n $panel_pages = array();\n $menut = Model_Menu::getInstance();\n $panel_names = $menut->panels();\n $pages = array();\n // at this point have selected all the menus of all active modules\n // return a tree of pages from each top level p...
[ "0.68344533", "0.67152226", "0.6658494", "0.6393473", "0.6321419", "0.6243714", "0.6218072", "0.614049", "0.6135628", "0.6109261", "0.60958904", "0.60409987", "0.6028417", "0.6013344", "0.6007617", "0.5995226", "0.59457886", "0.594426", "0.594426", "0.59258723", "0.59109616",...
0.0
-1
load all franchise by menuid and territory
function get_franchisebymenu_id($menu_id=0,$territory_id=0,$townid=0) { $cond=''; if(!$territory_id) { $territory_id=$this->input->post('territoryid'); if($territory_id) if(is_array($territory_id)) $territory_id=implode(',',array_filter($territory_id)); } if(!$tow...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_loadfranby_menuid($menuid)\r\n\t\t{\r\n\t\t\t$output=array();\r\n\t\t\t$allfranby_menuid_res=$this->db->query(\"SELECT fid,b.franchise_name\r\n\t\t\t\t\t\t\t\t\t\t FROM `pnh_franchise_menu_link`a\r\n\t\t\t\t\t\t\t\t\t\tJOIN `pnh_m_franchise_info`b ON b.franchise_id=a.fid\r\n\t\t\t\t\t\t\t\t\t\tWHERE me...
[ "0.65506107", "0.6002868", "0.5887196", "0.5652802", "0.55986524", "0.5532974", "0.55253905", "0.5515713", "0.5444885", "0.54271924", "0.53805035", "0.5325165", "0.5283626", "0.5277398", "0.52509457", "0.5250588", "0.51953256", "0.51805246", "0.51296157", "0.5098212", "0.5094...
0.6753269
0
function to load all franchisee based on selected menu
function jx_loadfranby_menuid($menuid) { $output=array(); $allfranby_menuid_res=$this->db->query("SELECT fid,b.franchise_name FROM `pnh_franchise_menu_link`a JOIN `pnh_m_franchise_info`b ON b.franchise_id=a.fid WHERE menuid=? AND STATUS=1 AND b.is_suspended=0",$menuid); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n $menus=[\n [\"parent_menu\" => 0,\"nombre\" => \"Catalogo\",\"url\" => \"javascript:;\",\"orden\" => 1,\"icono\" => \"fas fa-clipboard-list\"],\n [\"parent_menu\" => 0,\"nombre\" => \"Ventas\",\"url\" => \"javascript:;\",\"orden\" => 2,\"icono\" => \"fas ...
[ "0.6219073", "0.619501", "0.6029596", "0.57159233", "0.57020265", "0.5698484", "0.56914705", "0.56377643", "0.5636066", "0.5620045", "0.5615567", "0.5613678", "0.55784076", "0.5550195", "0.55459785", "0.553834", "0.55330086", "0.55222243", "0.55101144", "0.5507898", "0.549921...
0.6166591
2
function to load add_bankdetails view page
function add_bankdetails() { $data['page']='add_bankdetails'; $this->load->view('admin',$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function viewbloodbank(){\n $bloodbank_table = TableRegistry::get('Bloodbank');\n $bloodbanks = $bloodbank_table->find(); \n $this->set('bloodbanks', $bloodbanks);\n $this->viewBuilder()->setLayout('backend');\n \n }", "function load_bank_form()\n\t{\n\t\tlog_messag...
[ "0.70436907", "0.69049835", "0.67733717", "0.6652277", "0.6646724", "0.6631518", "0.66180927", "0.66094196", "0.65987843", "0.6591968", "0.6575412", "0.6575412", "0.6575412", "0.65583986", "0.655696", "0.6549919", "0.65103376", "0.6492236", "0.6434847", "0.64253783", "0.64136...
0.8402462
0
Ajax function to load receipt details
function jx_load_receiptdet() { $output=array(); $receipt_id=$this->input->post('receipt_id'); $process_id=@$this->db->query("select deposited_reference_no as process_id from pnh_m_deposited_receipts where receipt_id=?",$receipt_id)->row()->process_id; if($process_id) $receipt_details=$this->db->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function DisplayReceipt()\n\t\t\t{\n\t\t\t\tglobal $dbObj,$common;\n\t\t\t\t$action \t\t\t\t\t= $common->replaceEmpty('action','');\n\t\t\t\t$user_email\t \t\t\t \t= $common->replaceEmpty('email','');\t\n\t\t\t\t$user_password\t \t\t \t= $common->replaceEmpty('password','');\n\t\t\t\t$receipt_id\t \t\t ...
[ "0.6643045", "0.6643045", "0.64961016", "0.63872", "0.62408686", "0.6098351", "0.60952467", "0.6093646", "0.60393995", "0.6032919", "0.6014994", "0.6014732", "0.6006594", "0.5901818", "0.5896653", "0.5887432", "0.5843035", "0.58121985", "0.5801204", "0.5789346", "0.57569575",...
0.6433911
3
function to submit the uploaded files
function upload_depositedslips() { $user=$this->auth(FINANCE_ROLE); $config['upload_path'] = 'resources/employee_assets/image'; $config['allowed_types'] ='jpg|jpeg|png'; $config['max_size'] = '50000'; $config['max_width'] = '50024'; $config['max_height'] = '50728'; $this->load->lib...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function uploadFiles () {\n\n}", "public function uploadfiles(){\n\t\tif($this->request->isPost()){\n\t\t\t//die(\"kkk\");\n\t\t\tif($this->processfile()){\n\t\t\t\t\n\t\t\t\t\tif($this->Upload->save($this->data,array('validate'=>true))){\n\t\t\t\t} else {\n\t\t\t\t\t// didn’t validate logic\n\t\t\t\t\t$errors =...
[ "0.7841744", "0.76701844", "0.7604594", "0.7407068", "0.7345738", "0.72793704", "0.7258411", "0.72433984", "0.71695095", "0.7143221", "0.71282375", "0.71141905", "0.70878816", "0.7085831", "0.7055828", "0.70131254", "0.70025915", "0.69395787", "0.693398", "0.693209", "0.69311...
0.0
-1
Ajax function to load uploaded details
function jx_load_depositeddetails() { $user=$this->auth(FINANCE_ROLE); $receipt_id=$this->input->post('deposited_receiptid'); $process_id=@$this->db->query("select deposited_reference_no as process_id from pnh_m_deposited_receipts where receipt_id=?",$receipt_id)->row()->process_id; $deposited_detail...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ajax_load() {\n\t\t$wrapper = new netxRestWrapper();\n\t\t$netx = $wrapper->getNetx();\n\t\t$cats = $netx->getCategoryTree();\n\t\t$options = get_option('netx_options');\n\t\t?>\n\t\t<form id=\"netx-form\" class=\"media-upload-form validate\" action=\"<?php echo get_bloginfo(\"url\"); ?>/wp-admin/m...
[ "0.6963914", "0.68096477", "0.66850275", "0.66850275", "0.65367", "0.6479875", "0.6420335", "0.6333662", "0.62409645", "0.6236035", "0.61830825", "0.6177591", "0.61472887", "0.6124162", "0.6108484", "0.6095506", "0.60785145", "0.5998228", "0.5983065", "0.5973375", "0.59613615...
0.5314376
89
Ajax function to load franchise info cancel receipt
function load_frandet_ofcanreceipt() { $output=array(); $receipt_id=$this->input->post('receipt_id'); $franreceipt_info=$this->db->query("select b.franchise_name,a.receipt_id,a.instrument_no from pnh_t_receipt_info a join pnh_m_franchise_info b on b.franchise_id=a.franchise_id where receipt_id=?",$receip...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_invoice_for_canceling()\r\n\t{\r\n\t\t$student_no =NULL;\r\n\t\t$student_id = NULL;\r\n\t\textract($_POST);\r\n\t\t\r\n\t\t//print_r($_POST); die;\r\n\t\tif($student_no != NULL){\r\n\t\t\t$data['list'] = $this->My_model->canceling_current_issue_style_2($student_no);\r\n\t\t\t}\r\n\t\tif($studen...
[ "0.60268754", "0.5973111", "0.5966263", "0.5852633", "0.5756889", "0.57437015", "0.5731759", "0.5731014", "0.5729495", "0.5719488", "0.5704921", "0.5673698", "0.5651669", "0.56288373", "0.5627865", "0.5623531", "0.5595389", "0.5571562", "0.55531067", "0.55480075", "0.55406475...
0.570959
10
function for get the pending shipments list;
function pick_list_for_pending_shipments($id) { $user=$this->erpm->auth(); $sql="select a.id,b.invoice_no,c.tray_name,g.town_name,f.franchise_name from pnh_m_manifesto_sent_log a join shipment_batch_process_invoice_link b on b.inv_manifesto_id=a.manifesto_id join m_tray_info c on c.tray_id=b.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pnh_outscan_pending_shipents($id)\r\n\t\t{\r\n\t\t\t$user=$this->erpm->auth(PNH_SHIPMENT_MANAGER);\r\n\t\t\t$sql=\"select a.id,b.invoice_no,c.tray_name,g.town_name,f.franchise_name from pnh_m_manifesto_sent_log a\r\n\t\t\t\t\t\tjoin shipment_batch_process_invoice_link b on b.inv_manifesto_id=a.manifesto_i...
[ "0.6652308", "0.6544895", "0.6489623", "0.6354954", "0.62755764", "0.6216895", "0.6193827", "0.6173984", "0.6145513", "0.61395365", "0.6100724", "0.60983944", "0.60839677", "0.60197717", "0.60041827", "0.5989535", "0.5985287", "0.59806156", "0.5972523", "0.59498405", "0.59482...
0.7264813
0
get the shipments for out scan
function pnh_outscan_pending_shipents($id) { $user=$this->erpm->auth(PNH_SHIPMENT_MANAGER); $sql="select a.id,b.invoice_no,c.tray_name,g.town_name,f.franchise_name from pnh_m_manifesto_sent_log a join shipment_batch_process_invoice_link b on b.inv_manifesto_id=a.manifesto_id join m_tray_info c ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_pnh_unshiped_inv_by_tray()\r\n\t{\r\n\t\t$outcan_summdet=array();\r\n\t\t$outcan_summdet['outscan_summ']='';\r\n\t\t$outcan_summdet['ttl_penpak']='';\r\n\t\t/*$sql=\"select a.invoice_no,a.tray_id,b.tray_name,count(*) as ttl from shipment_batch_process_invoice_link a\r\n\t\t\t\t\tjoin m_tray_info b on ...
[ "0.65734655", "0.58393174", "0.58336115", "0.57772255", "0.5726565", "0.5703473", "0.5621017", "0.56113976", "0.55983347", "0.5534997", "0.5486981", "0.5472022", "0.54336375", "0.5424815", "0.54226637", "0.54088724", "0.53555673", "0.5348424", "0.5323392", "0.52602834", "0.52...
0.6715752
0
update the pending shipments status to ship status
function update_pnh_pending_shipmets() { $user=$this->erpm->auth(); $invoices=$this->input->post('invoices'); $send_log_id=$this->input->post('manifesto_nu'); $pr_remark=$this->input->post('part_ps_manifesto'); if($invoices) { //if any changes affected in pending shipments grou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPendingShipped($value)\n {\n return $this->set(self::pending_shipped, $value);\n }", "private function shipping_batch()\n\t{\n\t\t// load the sync db\n\t\tee()->sync_db = ee()->load->database('sync_db', true);\n\n\t\t// find the most recent unprocessed shipments\n\t\t$query = ee()...
[ "0.6666619", "0.663131", "0.6518302", "0.64687836", "0.6462571", "0.6400726", "0.63970315", "0.62704855", "0.62661433", "0.62444663", "0.618562", "0.6145284", "0.61450905", "0.61278886", "0.6081221", "0.607905", "0.6006843", "0.59813964", "0.5973551", "0.5961967", "0.59585094...
0.6765167
0
display pnh packed summary in outscan page
function jx_pnh_packedsumm_by_tray() { $this->erpm->auth(); $packedsumm_Det=$this->erpm->get_pnh_unshiped_inv_by_tray(); $output = array(); $output['packedsumm_Det'] = $packedsumm_Det['outscan_summ']; $output['ttl_penpak'] = $packedsumm_Det['ttl_penpak']; $output['invoices'] = $packedsumm_Det...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function printSummary () {\n foreach ($this->ids as $i) {\n $this->link[$i]->printSummary();\n }\n }", "public function display_summary() {\n // FIXME\n }", "public function okr_summary()\n\t{\n\t\tif ($this->session->userdata('status') !== 'admin_logged_in') {\n\t\t\tredirect('pages/Log...
[ "0.60780185", "0.60256004", "0.5992724", "0.58505213", "0.5787653", "0.5644362", "0.56209916", "0.56006616", "0.5569142", "0.5503621", "0.5459416", "0.53272486", "0.53111374", "0.5309992", "0.5294742", "0.52719074", "0.52635676", "0.52559054", "0.5233741", "0.5233741", "0.522...
0.49837118
49
update the vehicle details,and update shipted on status,and sent sms
function update_driver_details_in_sent_manifesto() { $user=$this->erpm->auth(); if(!$_POST) die; $send_sms=array(); $manifesto_sentid=$this->input->post('manifesto_sent_id'); $start_km=$this->input->post('start_km'); $amount=$this->input->post('amount'); $send_sms[]=$territory_manage...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateBookingStatus(){\n $command = Yii::$app->db->createCommand();\n $id= Yii::$app->request->bodyParams[\"booking2\"];\n\n try {\n $command->update('car', ['pendingTime' => 'on', 'inUse' => 'pending'], 'id = '.$id)->execute();\n } catch (Exception $e) {\...
[ "0.66285044", "0.6550044", "0.64669436", "0.6445275", "0.641601", "0.6269133", "0.6240364", "0.6223068", "0.6209333", "0.61434907", "0.6124454", "0.60846245", "0.6083257", "0.60691655", "0.60191834", "0.5965353", "0.59337056", "0.5932488", "0.592579", "0.5924129", "0.59186345...
0.6903949
0
PNH Franchise Sales analytical report
function pnh_exp_franchise_orders_stat() { $this->erpm->auth(true); $fran_list_res = $this->db->query("select franchise_id,franchise_name,is_suspended,territory_name,town_name from pnh_m_franchise_info a join pnh_m_territory_info b on a.territory_id = b.id join pnh_towns c on c.id = a.town_id order by franc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function export_pnh_sales_report()\r\n\t {\r\n\t \t\r\n\t \t$this->erpm->auth(PNH_EXECUTIVE_ROLE|FINANCE_ROLE);\r\n\t \t\r\n\t \t//ssql to generate franchise list \r\n\t \t$sql_f = \"select pnh_franchise_id,franchise_id,login_mobile1,login_mobile2,franchise_name,b.territory_name,c.town_name \r\n\t \t\t\t\t\t\tfro...
[ "0.754209", "0.6379721", "0.61500365", "0.60807693", "0.6053126", "0.5967826", "0.5815149", "0.5690723", "0.5659583", "0.565607", "0.5602755", "0.5596659", "0.5593674", "0.5584996", "0.55808675", "0.5552259", "0.55203104", "0.5493898", "0.5482115", "0.547561", "0.54656315", ...
0.63292855
2
functions for tray management
function pnh_tray_management() { $this->erpm->auth(); $sql="select a.*,if(b.is_active=1,'2','1') as tray_status,c.hub_name as territory_name from m_tray_info a left join pnh_t_tray_territory_link b on b.tray_id = a.tray_id and is_active=1 left join pnh_deliveryhub c on c.id=b.territory_id"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function messages_notifier() {\n\tif (elgg_is_logged_in()) {\n\t\t$class = \"elgg-icon elgg-icon-mail\";\n\t\t$text = \"<span class='$class'></span>\";\n\t\t$tooltip = elgg_echo(\"messages\");\n\t\t\n\t\t// get unread messages\n\t\t$num_messages = (int)messages_count_unread();\n\t\tif ($num_messages != 0) {\n\t\t\...
[ "0.53603375", "0.5357405", "0.52886534", "0.5250332", "0.5230722", "0.5148791", "0.5147498", "0.5122444", "0.50806755", "0.50691664", "0.5061132", "0.5033128", "0.5023779", "0.50182766", "0.5015737", "0.5015737", "0.49956155", "0.49712875", "0.49562228", "0.49392855", "0.4938...
0.61882645
0
function to validate tray name used while processing tray add/edit form
function _valid_trayname($str) { $this->erpm->auth(); // used for checking valid tray name while editting $tray_id = $this->input->post('tray_id'); if($tray_id) $cond = ' and tray_id != '.$tray_id; else $cond = ''; $tray_name =$this->input->post('tray_name'); if($this->db->query...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function validateName()\n {\n global $inName, $validForm, $nameErrMsg;\t\t//Use the GLOBAL Version of these variables instead of making them local\n $nameErrMsg = \"\";\t\t\t\t\t\t\t\t//Clear the error message.\n if($inName==\"\")\n {\n $validForm =...
[ "0.62239665", "0.6162085", "0.6139146", "0.6122493", "0.60953015", "0.60304856", "0.5984701", "0.5948444", "0.5860856", "0.578517", "0.57749933", "0.57602423", "0.5756849", "0.5747248", "0.5727542", "0.57251894", "0.57058984", "0.56837356", "0.5681057", "0.56653076", "0.56534...
0.76080847
0
function to add new tray via ajax request
function jx_pnh_addtray() { $user=$this->erpm->auth(); // output data hanlded for processing in client end $output = array(); // validate form inputs tray name and max allowed entries $this->load->library('form_validation'); $this->form_validation->set_rules('tray_name','Tray Name','requir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ajax_add()\n {\n\t\n }", "public function ajax_background_add()\n {\n }", "function wp_ajax_add_menu_item()\n {\n }", "public function add()\n {\n $data=$this->M_mtk->add();\n echo json_encode($data);\n }", "public function onTickettypesAdd()\n\t{\n\t\...
[ "0.6018237", "0.5736207", "0.5645063", "0.5541807", "0.548241", "0.53861755", "0.537517", "0.5359166", "0.5353186", "0.52528197", "0.523209", "0.5224651", "0.52111506", "0.51878697", "0.5172201", "0.51540315", "0.51360327", "0.5130437", "0.51229423", "0.5120352", "0.5104053",...
0.68101776
0
function to edit tray details via ajax request
function jx_pnh_edittray() { $user=$this->erpm->auth(); // output data hanlded for processing in client end $output = array(); // validate form inputs tray name and max allowed entries $this->load->library('form_validation'); $this->form_validation->set_rules('tray_id','Tray ID','required'); $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function laodForEditUnite()\n {\n $this->layout->assign('unite', $this->Unite->get_by('uniid', $this->input->idUnite));\n $contentAjax = $this->layout->ajax('unite' . DS . 'ajax' . DS . 'edit');\n echo json_encode(['modalBody' => $contentAjax]);\n }", "public function edit($id)\...
[ "0.59987485", "0.5997727", "0.58375597", "0.58170515", "0.58087415", "0.5805696", "0.5790268", "0.57876277", "0.57065314", "0.568955", "0.56316966", "0.5613399", "0.5589082", "0.55774", "0.5559698", "0.5550494", "0.55459803", "0.55213654", "0.550786", "0.5497045", "0.5494832"...
0.69317013
0
function to get tray detatails by id
function jx_get_traydetbyid($tray_id=0) { $user=$this->erpm->auth(); $output = array(); // Query to get tray details from tray id $this->db->where('tray_id',$tray_id); $tray_det_res = $this->db->get('m_tray_info'); if($tray_det_res->num_rows()) { $output['status'] = 'success'; $outpu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function detalhes($id){\n\t\t\n\t\t$dados = array();\n\t\t$r = new Relatorios();\n\t\t$dados['ordem'] = $r->getOrdem($id);\n\t\t$dados['funcionario'] = $r->getFuncionario($dados['ordem']['id_f']);\n\t\t$dados['cliente'] = $r->getCliente($dados['ordem']['id_c']);\n\t\t\n\t\t// var_dump($dados['cliente']);\n\...
[ "0.6497408", "0.64314", "0.6226727", "0.6132385", "0.6121052", "0.5937937", "0.5925725", "0.5924592", "0.5891741", "0.5832296", "0.5811385", "0.57906264", "0.57830554", "0.57711345", "0.5739706", "0.5729573", "0.57211107", "0.5697526", "0.5650683", "0.5643444", "0.5626884", ...
0.76728433
0
function for manage the transportaion
function pnh_transport_management() { $user=$this->erpm->auth(); $sql="select * from pnh_transporter_info a"; $transporters_details=$this->db->query($sql)->result_array(); $data['page']="pnh_transport_management"; $data['transporters_details']=$transporters_details; $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function trasnaction(){\n\n\t}", "function transport($param1 = '', $param2 = '', $param3 = '')\n {\n if ($this->session->userdata('teacher_login') != 1)\n redirect('login', 'refresh');\n \n $page_data['transports'] = $this->db->get('transport')->result_array();\n ...
[ "0.64245117", "0.622261", "0.62000626", "0.6187188", "0.6182854", "0.6092922", "0.5994268", "0.59216136", "0.5912841", "0.5748302", "0.5736648", "0.56712884", "0.5641221", "0.56397724", "0.56353766", "0.5622823", "0.5607985", "0.5601995", "0.55721474", "0.5561257", "0.5545191...
0.66386044
0
function to validate tray name used while processing tray add/edit form
function _valid_transportername($str) { $this->erpm->auth(); $transporter_id = $this->input->post('transporter_id'); if($transporter_id) $cond = ' and id != '.$transporter_id; else $cond = ''; $transp_name =$this->input->post('name');; if($this->db->query("select count(*) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _valid_trayname($str)\r\n\t{\r\n\t\t$this->erpm->auth();\r\n\t\t\r\n\t\t// used for checking valid tray name while editting \r\n\t\t$tray_id = $this->input->post('tray_id');\r\n\t\tif($tray_id)\r\n\t\t\t$cond = ' and tray_id != '.$tray_id;\r\n\t\telse \r\n\t\t\t$cond = '';\r\n\t\t\r\n\t\t$tray_name =$this...
[ "0.76080847", "0.62239665", "0.6162085", "0.6139146", "0.6122493", "0.60953015", "0.60304856", "0.5984701", "0.5948444", "0.5860856", "0.578517", "0.57749933", "0.57602423", "0.5756849", "0.5747248", "0.5727542", "0.57251894", "0.57058984", "0.56837356", "0.5681057", "0.56653...
0.5653414
21
function for add a transporter details
function jx_pnh_addtransporter() { $user=$this->erpm->auth(); // output data hanlded for processing in client end $output = array(); // validate form inputs tray name and max allowed entries $this->load->library('form_validation'); $this->form_validation->set_rules('name','name...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function pnh_transport_management()\r\n\t\t{\r\n\t\t\t$user=$this->erpm->auth();\r\n\t\t\t\r\n\t\t\t$sql=\"select * from pnh_transporter_info a\";\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t$transporters_details=$this->db->query($sql)->result_array();\r\n\t\t\t\r\n\t\t\t$data['page']=\"pnh_transport_management\";\r\n\t\t\t$data...
[ "0.58556265", "0.57233024", "0.5596714", "0.55773044", "0.55773044", "0.5565505", "0.5548811", "0.5544512", "0.5487403", "0.54688543", "0.5441077", "0.53956515", "0.5334711", "0.5316156", "0.5263887", "0.52491736", "0.52263844", "0.521542", "0.5200347", "0.51955", "0.518639",...
0.63972837
0
function for get transporter details
function jx_get_transporterdetbyid($tranporter_id=0) { $user=$this->erpm->auth(); $output = array(); // Query to get tray details from tray id $this->db->where('id',$tranporter_id); $transport_det_res = $this->db->get('pnh_transporter_info'); if($transport_det_res->num_rows()) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function transporter() {\n if(is_null($this->transporter)){\n $this->transporter = Transporter::getByIdentifier($this->transporter_id);\n }\n return $this->transporter;\n }", "public function getTransportation()\n {\n return $this->_transportation;\n }", "...
[ "0.72594774", "0.6462943", "0.62684995", "0.6250289", "0.6156471", "0.61039805", "0.6091639", "0.6045185", "0.5996716", "0.5981023", "0.59258115", "0.5923327", "0.5870512", "0.58647144", "0.581636", "0.58116204", "0.5802793", "0.5798861", "0.5787254", "0.5772659", "0.576121",...
0.6922335
1
function for update transporter details
function jx_pnh_edittransporter() { $user=$this->erpm->auth(); $output = array(); // validate form inputs tray name and max allowed entries $this->load->library('form_validation'); $this->form_validation->set_rules('name','name','required|callback__valid_transportername'); $this->fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionUpdateTraderInfo()\n {\n TSInit::$app->trader->updateTraderInfo();\n if ($returnUrl = TSInit::$app->request->get('returnUrl')) {\n $this->redirect($returnUrl);\n }\n }", "public function testUpdateExternalShipment()\n {\n }", "private function s...
[ "0.607415", "0.6036647", "0.5959732", "0.5836849", "0.5634261", "0.55991983", "0.55273", "0.5510775", "0.54981995", "0.5474642", "0.5446168", "0.5445734", "0.5391943", "0.5386288", "0.5378526", "0.5365646", "0.5362974", "0.5349814", "0.53433746", "0.53054035", "0.52813643", ...
0.624912
0
function for manage transporter destinations address
function pnh_manage_trans_desc_address($tranport_id=0) { $user=$this->erpm->auth(); $transporter_details=$this->db->query("select name,allowed_transport from pnh_transporter_info where id=?",$tranport_id)->row_array(); $trans_desc_address=$this->db->query("select * from pnh_transporter_dest_add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ShipToAddress()\r\n\t{\r\n\t\r\n\t}", "public function allowDeliveryAddress()\n {\n $this->_data['DireccionEnvio'] = 1;\n }", "protected function _setDestinationAddress($address) {\n\t\t//$shippingAddress = $quote->getShippingAddress();\n\t\t//$street = $address->getStreet();\n\t\t$street...
[ "0.6504791", "0.6145623", "0.60633105", "0.601053", "0.591487", "0.5881446", "0.5881446", "0.5828236", "0.5814643", "0.5793995", "0.57817894", "0.5779505", "0.5755212", "0.5734958", "0.5704034", "0.5674516", "0.56555533", "0.56378", "0.5626751", "0.5626586", "0.55998164", "...
0.6131366
2
function for get the territory and towns by invoices
function jx_get_territory_by_invoices() { $user=$this->erpm->auth(PNH_SHIPMENT_MANAGER); $invoices=$this->input->post('invoices'); $manifesto_id=$this->input->post('manifesto_id'); $output=array(); $sql="select group_concat(distinct a.invoice_no) as invoice_no,d.territory_name,e.t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTaxInvoiced();", "function get_terriory_name_by_invoice($manifesto_log_id)\r\n\t{\r\n\t\t$sql=\"select a.invoice_no,territory_id,territory_name,d.franchise_name,c.transid \r\n\t\t\t\t\t\tfrom king_invoice a\r\n\t\t\t\t\t\tjoin king_orders b on a.order_id = b.id \r\n\t\t\t\t\t\tjoin king_transa...
[ "0.6387782", "0.628142", "0.6053587", "0.5841348", "0.56784165", "0.5593852", "0.55643183", "0.5550323", "0.55477077", "0.5504358", "0.550272", "0.54802465", "0.54663473", "0.5431439", "0.54299057", "0.541804", "0.5402756", "0.53910303", "0.5386862", "0.5353281", "0.5349014",...
0.6828973
0
get the bus tranport destination address by bus id in ajax request
function jx_get_bustrs_des_address() { $user=$this->erpm->auth(); $bus_id=$this->input->post('bus_id'); $transport_type=$this->input->post('transport_type'); $output=array(); $output['dest_address_list']=$this->db->query("select * from pnh_transporter_dest_address where transpoter_id=? and f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_bus_transport_details()\r\n\t\t{\r\n\t\t\t$user=$this->erpm->auth();\r\n\t\t\t$bus_id=$this->input->post('bus_id');\r\n\t\t\t$dest_id=$this->input->post('dest_id');\r\n\t\t\t$manifesto_id=$this->input->post('manifesto_id');\r\n\t\t\t\r\n\t\t\t$sql=\"select a.name,a.address,a.contact_no ,b.short_name,b....
[ "0.66003287", "0.5963392", "0.5955173", "0.5861278", "0.5856796", "0.5856796", "0.56938255", "0.56141347", "0.5606706", "0.5606706", "0.5602509", "0.5556963", "0.5475913", "0.54668754", "0.54300153", "0.5378551", "0.53670406", "0.5342001", "0.53309864", "0.5319597", "0.531596...
0.6957747
0
get the bus transport details
function jx_bus_transport_details() { $user=$this->erpm->auth(); $bus_id=$this->input->post('bus_id'); $dest_id=$this->input->post('dest_id'); $manifesto_id=$this->input->post('manifesto_id'); $sql="select a.name,a.address,a.contact_no ,b.short_name,b.address as d_address,b.contact_no as d_c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTransport()\n {\n return $this->getCurrentTranslation()->getTransport();\n }", "public function getTransportType()\n\t{\n\t\treturn $this->transport_type;\n\t}", "public function getTransportRef()\n {\n return $this->transportRef;\n }", "public function getTra...
[ "0.6768643", "0.6404951", "0.6376491", "0.63495606", "0.6334747", "0.6188801", "0.61779076", "0.61040694", "0.60199034", "0.60177183", "0.599181", "0.5954241", "0.590977", "0.5812062", "0.5802907", "0.57816625", "0.5760186", "0.575411", "0.5747917", "0.57460004", "0.57352966"...
0.66356784
1
get the vehicle details
function jx_vehicle_details() { $user=$this->erpm->auth(PNH_SHIPMENT_MANAGER); $manifesto_id=$this->input->post('manifesto_id'); $output=array(); $output['vehicle_details']=$this->db->query("select hndleby_vehicle_num,start_meter_rate,amount from pnh_m_manifesto_sent_log where id=?",$manifesto_id)->r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function VehicleDetails(){\n\t\tparent::getVehicleDetails();\n\t\t$this -> addVehicleDetails();\n\t}", "public function carDetails(){\n $details = \"Vehicle Type - \" . $this->getType() . \"<br>\";\n $details .= \"Wheels - \" . $this->getWheels() . \"<br>\";\n $details .= \"Engine - \" . $th...
[ "0.7688516", "0.7310972", "0.68565655", "0.6781801", "0.67387664", "0.6664811", "0.6613678", "0.6612785", "0.6491711", "0.646726", "0.64095074", "0.63956195", "0.63883257", "0.6358696", "0.63536286", "0.62775564", "0.62114817", "0.62042546", "0.6198383", "0.61725795", "0.6163...
0.6878016
2
function for get the invoices by tray
function jx_get_invbytray() { $user=$this->erpm->auth(); $tray_id=$this->input->post('tray_id'); $output=array(); $sql="select group_concat(distinct b.invoice_no) as invoice_nos,h.hub_name as territory_name,g.town_name from pnh_t_tray_territory_link a join pnh_t_tray_invoice_link b on b....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function whmcs_get_invoices($params = array()) {\n\t\t$params['action'] = 'GetInvoices';\n\t\t// return Whmcs_base::send_request($params);\n $load = new Whmcs_base();\n return $load->send_request($params);\n\t}", "function jx_getinvoiceorditems()\r\n\t{\r\n\t\t$this->erpm->auth(PNH_INVOICE_RETURNS|P...
[ "0.67375815", "0.65742683", "0.65542185", "0.63945115", "0.6391422", "0.6343278", "0.62784714", "0.6272858", "0.6265299", "0.6233212", "0.6232564", "0.62276185", "0.6197275", "0.618176", "0.6180794", "0.6175555", "0.61113095", "0.6092844", "0.60889256", "0.6069618", "0.606847...
0.66053003
1
function to load franchises list in ajax
function jx_getfranchiseslist($type=0,$alpha=0,$terr_id=0,$town_id=0,$pg=0) { $this->erpm->auth(); $user=$this->erpm->getadminuser(); if(!$type) { $type = $this->input->post('type'); $alpha = $this->input->post('alpha'); $terr_id = $this->input->post('terr_id'); $town_id = $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function jx_get_franchiselist(){\r\n\t\t$output = array();\r\n\t\t \r\n\t\t$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 \");\r\n\t\tif($f_list_res->num_rows())\r\n\t\t{\r\n\t\t\t$output['f_list'] = $f_list_res->result_a...
[ "0.69157004", "0.651166", "0.649717", "0.64378726", "0.62526006", "0.620227", "0.6164022", "0.6140719", "0.6116715", "0.6061797", "0.6061723", "0.6051042", "0.6047695", "0.6029876", "0.6027779", "0.60120344", "0.59932756", "0.5986027", "0.59762806", "0.5969302", "0.596525", ...
0.54586077
82
function get the buses list
function jx_get_buses_list() { $this->erpm->auth(); $output=array(); $transport_type=$this->input->post('tranport_type'); $buses_details=$this->db->query("select distinct b.id,b.name,b.contact_no from pnh_transporter_dest_address a join pnh_transporter_info b on b.id=a.transpoter_id ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBuses()\n {\n return $this->hasMany(Bus::className(), ['id' => 'bus_id'])->viaTable('driver_bus', ['driver_id' => 'id']);\n }", "function get_other_buses($stopcode)\n{\n\n\t$url = \"http://api.bus.southampton.ac.uk/stop/\" . $stopcode . \"/buses\";\n\t$data = json_decode(file_get_...
[ "0.715696", "0.7076647", "0.6617967", "0.6531946", "0.6520295", "0.6406942", "0.63842523", "0.63835585", "0.6363734", "0.63128", "0.6279105", "0.61007524", "0.6074391", "0.6035156", "0.6030994", "0.6012371", "0.5977373", "0.5975716", "0.5964855", "0.5960564", "0.5947533", "...
0.68099797
2
update office pick details
function update_office_pick_up_details() { $this->erpm->auth(); if(!$_POST) { redirect('admin/view_manifesto_sent_log'); } $office_pick_ups=$this->input->post('office_pick_up'); $manifesto_id=$this->input->post('manifesot_id'); $param=array(); $param['office_pickup_empid']=implode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_office_info()\n {\n $this->model->update_office_info();\n }", "public function edit(Office $office)\n {\n //\n }", "function updatePoi(){\n\t\t$data['id'] = $this->uri->segment(4);\n\t\tif($data['id']){\n\t\t\t$data['poi'] = $this->pois_model->getPoi($data['id']);\n\t\...
[ "0.7545021", "0.6444988", "0.61822826", "0.61448", "0.61448", "0.5926634", "0.57919246", "0.56696063", "0.56692815", "0.5651332", "0.55987155", "0.5593529", "0.5523591", "0.55056757", "0.55035216", "0.54779065", "0.5451857", "0.54145736", "0.54135984", "0.53996795", "0.537828...
0.7120518
1
function to get hub details
function jx_gethubdet($hub_id) { $hub_id = $hub_id*1; $output = array(); if($hub_id) { $output['hubdet'] = $this->db->query("select hub_name from pnh_deliveryhub a join pnh_deliveryhub_town_link b on a.id = b.hub_id where b.is_active = 1 and hub_id = ? ",$hub_id)->row_array(); } $output[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function requestBridgeInfo() {\n $conn = new ApiConnection;\n $result = $conn->sendGetCmd(\"config\");\n return $result;\n }", "public function getFirstHub()\n {\n if (!empty($this->m_hubs))\n {\n return array_values($this->m_hubs)[0];\n...
[ "0.5934724", "0.5921928", "0.5919796", "0.58350444", "0.5799817", "0.57619077", "0.57259536", "0.5703767", "0.56812394", "0.56010234", "0.5591518", "0.55531573", "0.55458575", "0.55194104", "0.55174255", "0.5515595", "0.5498846", "0.5475083", "0.542363", "0.5423248", "0.54198...
0.56254745
9
function to generate delivery label print by manifesto id
function print_deliverylabel($man_id) { $sql="select b.name as pick_up_name,b.contact_no as pick_up_contact,c.short_name,c.contact_no,c.address from pnh_m_manifesto_sent_log a join m_employee_info b on b.employee_id=a.pickup_empid join pnh_transporter_dest_address c on c.id = a.bus_destinati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function order_action_print_label( $actions ) {\n global $theorder;\n\n // add custom action\n $dbh = new Database_Handler();\n $label = $dbh->get_labels_by_order_id($theorder->get_id(),false);\n if($label != null){\n $actions['print_label'] = __( 'Print shipping label', 'dhl_parcel_iberia_wo...
[ "0.6348149", "0.61451745", "0.5988094", "0.59181505", "0.5807167", "0.57436544", "0.5729752", "0.5667343", "0.5615311", "0.5611039", "0.55917984", "0.5588249", "0.54552954", "0.5445222", "0.5428234", "0.53882205", "0.5337025", "0.5310321", "0.53062665", "0.5285372", "0.528524...
0.6539814
0
invoices adding to existing manifesto
function add_inv_to_existing_manifesto() { $user=$this->auth(KFILE_ROLE); $user_det=$this->session->userdata("admin_user"); //get the data throught a post $manifesto_id=0; $manifesto_id=$this->input->post("manifesto_list"); $invoices_no=$this->input->post("invoice_nos"); $manifesto_detail...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function _add()\n {\n $type_code = post_param_string('type_code');\n $object = find_product($type_code);\n\n $amount = post_param_string('amount', '');\n if ($amount == '') {\n $products = $object->get_products(false, $type_code);\n $amount = $products[$t...
[ "0.6560175", "0.64885145", "0.63696456", "0.63075095", "0.61201173", "0.59174037", "0.59055394", "0.58386284", "0.579589", "0.5794939", "0.57626504", "0.56474346", "0.56217974", "0.5592367", "0.55923283", "0.5587608", "0.5575681", "0.5571258", "0.5555332", "0.5550289", "0.554...
0.7005036
0
function for cancel the manifesto
function cancel_manifesto($manifesto_id=0) { $user=$this->erpm->auth(); $user_det=$this->session->userdata("admin_user"); if($manifesto_id) { $manifesto_details=$this->db->query("select * from pnh_m_manifesto_sent_log where id=? and status=1",$manifesto_id)->row_array(); if($manifesto_details) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancel();", "public function cancel()\n {\n $this->confirmationArchived = false;\n }", "public function cancel(): void;", "public function cancel()\n {\n }", "public function cancel()\n {\n }", "protected function cancel(): void\n {\n }", "function cancela...
[ "0.7518928", "0.7328387", "0.7211463", "0.71538574", "0.71538574", "0.6984535", "0.6855523", "0.67396164", "0.65833884", "0.6477223", "0.64647454", "0.64647454", "0.6449559", "0.6342189", "0.63171", "0.6244952", "0.6214759", "0.62118334", "0.6203545", "0.6203545", "0.6203545"...
0.6106577
23
function for update the employee sms status
function jx_update_emp_sms_status() { $this->erpm->auth(); if(!$_POST) die(); $status=$this->input->post('status'); $emp_id=$this->input->post('emp_id'); $output=array(); $this->db->query("update m_employee_info set send_sms=? where employee_id=?",array($status,$emp_id)); if($this->db...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatestatus() {\n global $_lib;\n\n $dataH = array();\n $dataH['ID'] = $this->transaction->ID;\n $dataH['RemittanceSequence'] = $this->transaction->RemittanceSequence;\n $dataH['RemittanceDaySequence'] = $this->transaction->...
[ "0.68388486", "0.67585546", "0.665401", "0.6643668", "0.66205424", "0.6612317", "0.65668976", "0.65451497", "0.65344644", "0.64984065", "0.6472582", "0.64691365", "0.6457557", "0.6448544", "0.64454156", "0.6308579", "0.63050723", "0.629244", "0.6269744", "0.62378967", "0.6236...
0.8086177
0
update the courier transport invoices status to delivered
function jx_mark_delivered_status_for_courier_traspost() { $user=$this->erpm->auth(); if(!$_POST) die(); $send_log_id=$this->input->post('send_log_id'); $invoices_list=$this->input->post('delivered'); $received_by=$this->input->post('received_by'); $received_on=$this->input->post('receiv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updatestatus() {\n global $_lib;\n\n $dataH = array();\n $dataH['ID'] = $this->transaction->ID;\n $dataH['RemittanceSequence'] = $this->transaction->RemittanceSequence;\n $dataH['RemittanceDaySequence'] = $this->transaction->...
[ "0.70443416", "0.61377186", "0.61340195", "0.6069863", "0.60240716", "0.5989139", "0.58421284", "0.5818222", "0.57530475", "0.57178587", "0.5690724", "0.5677663", "0.56636596", "0.56548005", "0.5653012", "0.564399", "0.5630567", "0.56112504", "0.56058055", "0.5603058", "0.559...
0.71849394
0
function for check the invoice delivered status
function jx_check_invoice_dlvrstatus() { $user=$this->erpm->auth(); if(!$_POST) die(); $invoices=$this->input->post('invoices'); $invoice_det=array(); $output=array(); foreach(explode(',',$invoices) as $invoice) { $already=0; $check_status=$this->db->query("select count(*) as ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkInvoiceStatus($id)\n {\n $data = $this->checkInvoice($id);\n if (!is_array($data)) {\n Mage::throwException(\n Mage::helper('bitcoin')->__(\n \"We're sorry, an error has occurred while completing your request. Please refresh the pag...
[ "0.70497084", "0.7006439", "0.6815037", "0.6617641", "0.6611842", "0.65788996", "0.65592456", "0.6536965", "0.64965427", "0.643897", "0.6423825", "0.6410878", "0.63925236", "0.63650423", "0.6361908", "0.63598585", "0.62923044", "0.6291578", "0.6261231", "0.6252721", "0.622489...
0.6579621
5
function for remove the invoice from packed list
function pnh_remove_invoice_in_packed_list() { $user=$this->auth(ADMINISTRATOR_ROLE); if(!$_POST) die(); $invoices=$this->input->post('invoice_nos'); if($invoices) { $inv=implode(',',$invoices); $this->db->query("update shipment_batch_process_invoice_link set tray_id=0,packed_by=0,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ciniki_writingfestivals_sapos_cartItemDelete($ciniki, $tnid, $invoice_id, $args) {\n\n if( !isset($args['object']) || $args['object'] == '' \n || !isset($args['object_id']) || $args['object_id'] == '' ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.writingfestivals.131', '...
[ "0.6616473", "0.6252962", "0.6094162", "0.6013569", "0.59456366", "0.5905915", "0.58943796", "0.5848317", "0.58464396", "0.5846323", "0.5844391", "0.5796129", "0.5796129", "0.5796129", "0.5796129", "0.5748455", "0.57166684", "0.56815696", "0.5673328", "0.5655097", "0.56191427...
0.7661262
0
function update the delivered invoice acknowledgement
function pnh_scan_delivery_akw() { $data['page']='pnh_scan_delivery_akw'; $this->load->view('admin',$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static function acknowledgeInvoice($invoice_id) {\n global $wpdb;\n $returnval = $wpdb->update(\n \"wp_invoice\",\n array( 'acknowledged_date' => current_time('mysql', 1) ),\n array( 'id' => $invoice_id ) );\n \n if(false === $returnval) {\n t...
[ "0.69912845", "0.6841259", "0.6836105", "0.6800884", "0.67105794", "0.64617264", "0.6446211", "0.6354714", "0.6341379", "0.6287053", "0.62515336", "0.62351197", "0.61310786", "0.6124587", "0.60767764", "0.606482", "0.60582584", "0.60263586", "0.6001036", "0.59982896", "0.5983...
0.0
-1
function for scan the delivery acknowledgement
function scan_delivery_akw() { $user=$this->erpm->auth(); if(!$_POST) die(); $invoice_no=$this->input->post('invoice_no'); $inv_exist=$this->db->query("select count(*) as ttl from shipment_batch_process_invoice_link where invoice_no=? and invoice_no!=0",$invoice_no)->row()->ttl; if(!$inv_ex...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function notifySmsDeliveryReceipt($correlator,$deliveryStatus){\r\n\t\t\tglobal $timeStamp;\r\n\t\t\tglobal $subReqID;\r\n\t\t\tglobal $traceUniqueID;\r\n\t\t\t\r\n\t\t\t//variables to be saved in a database or processed\r\n\t\t\t$msg_timeStamp=$timeStamp;\r\n\t\t\t$msg_subReqID=$subReqID;\r\n\t\t\t$msg_traceUniq...
[ "0.6223751", "0.6109457", "0.60026175", "0.58885807", "0.5706784", "0.56586975", "0.5626172", "0.5618896", "0.55474365", "0.5442786", "0.5419029", "0.5382745", "0.5264099", "0.52538455", "0.5227286", "0.5184797", "0.5181483", "0.5176562", "0.5167817", "0.51226187", "0.5121935...
0.64416564
0
function to give cash back to franchise if sales is acheived
function pnh_superscheme_give_cash_back() { $user=$this->auth(FINANCE_ROLE); $super_scheme_logid=$this->input->post('super_scheme_logid'); $logids=explode(',', $super_scheme_logid); foreach($logids as $logid) { $super_scheme_processed=0; $super_scheme_sales=$this->db->query("SELECT f.pnh_fran...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function sellTrasactionAddsMoney(){\n\n }", "public function sales_complete()\n {\n $sales_no = trim($this->input->post('sales_no'));\n $sales_date = date_to_db(trim($this->input->post('sales_date')));\n\n $sales = $this->MSales_master->get_by_sales_no($sales_no);\n $thi...
[ "0.6311712", "0.62355465", "0.6177954", "0.61641", "0.61561126", "0.6104031", "0.60873663", "0.6061131", "0.60094905", "0.5991793", "0.59903574", "0.5963348", "0.59463626", "0.5940721", "0.59344655", "0.5910889", "0.5897743", "0.58922344", "0.5883283", "0.5873832", "0.5873363...
0.57385993
36
function to check member id / mobileno for imeino activation
function jx_checkmemberbyidmob() { $output = array(); $srch = $this->input->post('srch'); //check if srchno is mobile or member_id $srch_type = 0; if(strlen($srch) == 10) $srch_type = 1; else if(strlen($srch) == 8) $srch_type = 2; if($srch_type != 0) { if($srch_type == 1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function memberIdCheck ()\r\n {\r\n $member_id = $this->getMember_id(true);\r\n return $this->getMapper()->memberIdCheck($member_id);\r\n }", "function checkIncompleteInfoById($userid)\r\n\t{\r\n\t\t$userid = funcs::check_input($userid);\r\n\r\n\t\t$sql = \"SELECT country, state, city,...
[ "0.6518543", "0.59505343", "0.5924968", "0.59174645", "0.58634245", "0.5803928", "0.57030225", "0.5696905", "0.5651238", "0.5630463", "0.56200004", "0.5610776", "0.56093276", "0.5580813", "0.557862", "0.5556833", "0.5536786", "0.5516614", "0.5514652", "0.5493935", "0.54911155...
0.6172755
1
function for generate a employee activity log
function pnh_employee_sms_activity_log() { $this->erpm->auth(true); $data['page']="pnh_employee_activity_log"; $this->load->view("admin",$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function log_activity() {\n \n \n $CI =& get_instance();\n $CI->load->library('audit_trail');\n // Start off with the session stuff we know\n $data = array();\n $data['user_id'] = $CI->session->userdata('user_id');\n \n // Next up, we want to know what...
[ "0.639036", "0.59248555", "0.58541256", "0.583838", "0.58195925", "0.5819442", "0.5810076", "0.5797888", "0.5795516", "0.5785615", "0.5773491", "0.5731917", "0.57297117", "0.57177657", "0.57076603", "0.5701643", "0.56805533", "0.5664725", "0.5662565", "0.5645248", "0.5622839"...
0.5804534
7
Responsavel por renderizar todos os layout
public function renderLayout($view = null, $param = array()) { if (!empty($param)) { $this->setParam($param); } if (!empty($view)) { $this->setView($view); } include_once(DIRREQ . "app/view/template/Layout.php"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function contenidoLayout(){\n ob_start();\n include_once Application::$ROOT_DIR . \"/views/layouts/principal.php\";\n return ob_get_clean();\n }", "public function renderLayout();", "public function index()\n\t{\n\t\t$this->layout->render();\n\t}", "public function indexAct...
[ "0.73408467", "0.724657", "0.7170631", "0.70458907", "0.7013339", "0.69646966", "0.69572663", "0.69369745", "0.68751776", "0.68239516", "0.6807073", "0.67967635", "0.6720481", "0.66753125", "0.6674481", "0.66666454", "0.66270524", "0.6620173", "0.660391", "0.6594929", "0.6567...
0.0
-1
adiciona caracteristicas especificas head
public function addHead() { if (file_exists(DIRREQ . "app/view/{$this->getDir()}/head.php")) { include(DIRREQ . "app/view/{$this->getDir()}/head.php"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function head() {}", "function getHead($coment){\r\n\t\tif(isset($this->Head[$coment])) return $this->Head[$coment];\r\n\t\treturn '';\r\n\t}", "abstract function getheadings();", "function headSpecial($body,$coment){\r\n\t\t$this->Head[$coment] = $body;\r\n\t}", "public function head()\n {\n ...
[ "0.6021299", "0.5977316", "0.5970502", "0.5952424", "0.5875292", "0.5786013", "0.5769724", "0.5758263", "0.57275975", "0.5619355", "0.5615731", "0.55701524", "0.55521023", "0.5513228", "0.55071026", "0.5382828", "0.53801453", "0.5372176", "0.5341403", "0.5254072", "0.5241244"...
0.0
-1
adiciona caracteristicas especificas header
public function addHeader() { if (file_exists(DIRREQ . "app/view/{$this->getDir()}/header.php")) { include(DIRREQ . "app/view/{$this->getDir()}/header.php"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHeader();", "public function getHeader();", "public function getHeader();", "public function getHeaderData() {}", "protected function makeHeader()\n {\n }", "public function buildHeaderFields() {}", "public static function headers() {\n $listado = array('Nombre', 'Email'...
[ "0.69030744", "0.69030744", "0.69030744", "0.6876758", "0.6696301", "0.6492778", "0.6492568", "0.64592075", "0.6442075", "0.63861793", "0.63416165", "0.6335188", "0.6324749", "0.6312564", "0.63020355", "0.6299406", "0.62979573", "0.6297948", "0.6293508", "0.62644064", "0.6264...
0.0
-1
adiciona caracteristicas especificas main
public function addMain() { if (!empty($this->getParam())) { //extract variable extract($this->getParam()); } //Se existir view especifica chamada ela, senão chama view padrao if (!empty($this->getView())) { if (file_exists(DIRREQ . "app/view/{$t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function main(){\n\t\t\t\n\t\t}", "function main() {\n\t\t$this->out(__('I18n Shell', true));\n\t\t$this->hr();\n\t\t$this->out(__('[E]xtract POT file from sources', true));\n\t\t$this->out(__('[I]nitialize i18n database table', true));\n\t\t$this->out(__('[H]elp', true));\n\t\t$this->out(__('[Q]ui...
[ "0.7060625", "0.68786526", "0.67359173", "0.67285633", "0.671635", "0.6639422", "0.6548041", "0.64802384", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", "0.6441415", ...
0.0
-1
adiciona caracteristicas especificas footer
public function addFooter() { if (file_exists(DIRREQ . "app/view/{$this->getDir()}/footer.php")) { include(DIRREQ . "app/view/{$this->getDir()}/footer.php"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function footer();", "abstract protected function footer();", "protected function makeFooter()\n {\n }", "public function getFooter();", "public function getFooter();", "protected function footer()\n {\n\n }", "public function footer() {\n\t}", "public function do_foote...
[ "0.8047332", "0.8047332", "0.8021848", "0.79597807", "0.79597807", "0.76647115", "0.75750506", "0.75178736", "0.75178736", "0.7444552", "0.74281436", "0.74164355", "0.73987764", "0.7378607", "0.7301774", "0.7289805", "0.72761464", "0.72660935", "0.72620946", "0.7255044", "0.7...
0.685807
84
Get the value of dir
public function getDir() { return $this->dir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDirectoryVar();", "public function dir() {\n\t\treturn dirname($this->_path) . '/';\n\t}", "public function getDir(): string;", "public function getDir();", "public function getDir() {\n\t\treturn $this->_dir;\n\t}", "function dir_name() {\n\t\treturn $this->_dir_name;\n\t}", "protec...
[ "0.7331517", "0.7207131", "0.70461625", "0.6941972", "0.69042706", "0.6707697", "0.66868544", "0.66568935", "0.66209394", "0.6579641", "0.65522563", "0.6529492", "0.6476728", "0.64124715", "0.640183", "0.6392178", "0.6370478", "0.6367645", "0.6367645", "0.63525033", "0.634958...
0.69769
6
Set the value of dir
public function setDir($dir) { $this->dir = $dir; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDir($dir);", "public function setDir($dir) {\n $this->dir = $dir;\n }", "public function setDir($dir)\n {\n $this->dir = $dir;\n }", "public function setDir($dir)\n {\n $this->dir = $dir;\n }", "private function setCurrent($dir)\n\t{\n\t\t$this->current_dir ...
[ "0.8230644", "0.7812625", "0.7552312", "0.7552312", "0.72433686", "0.7141446", "0.7038134", "0.6962073", "0.68782383", "0.6809338", "0.67109907", "0.66843516", "0.6641729", "0.65984684", "0.6548162", "0.654254", "0.6517586", "0.6513289", "0.64928263", "0.6477911", "0.6451075"...
0.6253125
25
Get the value of title
public function getTitle() { return $this->title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTitle()\n {\n return $this->getValue('title');\n }", "public function getTitle()\n {\n return $this->getValue();\n }", "public function get_title () {\r\n\t\treturn $this->get_info()['title'];\r\n\t}", "public function title()\n {\n return $this->{static...
[ "0.82988554", "0.82910424", "0.8203295", "0.8115684", "0.81088006", "0.809423", "0.809423", "0.8090471", "0.80671996", "0.80638623", "0.8059543", "0.80397165", "0.8037792", "0.8022542", "0.80166066", "0.8011158", "0.80089283", "0.80089283", "0.80089283", "0.80089283", "0.8008...
0.0
-1
Set the value of title
public function setTitle($title) { $this->title = $title; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTitle($value)\n {\n $this->_title = $value;\n }", "public function setTitle($value)\n {\n $this->title = $value;\n }", "function set_title($title){\r\n\t\t$this->_title = $title;\r\n\t}", "function setTitle($title)\n {\n $this->m_title = $title;\n }", "func...
[ "0.8617192", "0.8556605", "0.8322929", "0.8255466", "0.82530844", "0.82464516", "0.82464516", "0.82444715", "0.82316023", "0.821708", "0.8215294", "0.82145464", "0.8211219", "0.82073224", "0.8198277", "0.81962633", "0.8189961", "0.81880856", "0.8186093", "0.8182676", "0.81706...
0.0
-1
Get the value of description
public function getDescription() { return $this->description; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDescription() {\n\t\t$field = $this->getDescriptionField();\n\t\treturn $field ? $field->getValue() : '';\n\t}", "public function getDescription() \n {\n return $this->_fields['Description']['FieldValue'];\n }", "function getDescription() {\n\t\treturn $this->data_array['descrip...
[ "0.8238399", "0.81778616", "0.81324804", "0.77900994", "0.7778838", "0.7768252", "0.7744329", "0.7730452", "0.7730452", "0.7707788", "0.77073026", "0.7706035", "0.7690056", "0.7690056", "0.7685078", "0.7683124", "0.76829314", "0.76829314", "0.76829314", "0.7665716", "0.766571...
0.0
-1
Set the value of description
public function setDescription($description) { $this->description = $description; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "function setDescription( $value )\r\n {\r\n $this->Description = $value;\r\n }", "function setDescription( &$value )\n {\n if ( $this->State_ == \"Dirty\" )\n $this->get( $this->ID )...
[ "0.86422676", "0.86422676", "0.8273937", "0.8108182", "0.8098586", "0.8075687", "0.80177945", "0.79993784", "0.7984087", "0.7984087", "0.7984087", "0.7984087", "0.7984087", "0.7984087", "0.7984087", "0.7984087", "0.79072237", "0.78942883", "0.78819287", "0.7872474", "0.787161...
0.0
-1
Get the value of keywords
public function getKeywords() { return $this->keywords; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getKeywords();", "public function get_keywords()\n\t{\n\t\treturn $this->keywords;\n\t}", "abstract function getKeywords();", "public function getKeywords(): string\n {\n return $this->keywords;\n }", "public function getKeywords() \r\n { \r\n return $this->_keywo...
[ "0.7638266", "0.75063676", "0.74516374", "0.74308026", "0.73733276", "0.7371341", "0.7326703", "0.7311397", "0.72294825", "0.72228074", "0.7194979", "0.71781653", "0.71781653", "0.7165092", "0.7069474", "0.7069474", "0.7039552", "0.6956282", "0.6886149", "0.6886149", "0.68443...
0.71090955
16
Set the value of keywords
public function setKeywords($keywords) { $this->keywords = $keywords; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setKeywords($keywords)\n {\n $this->keywords = (array)$keywords;\n }", "public function setKeywords(string $keywords)\n {\n $this->keywords = $keywords;\n }", "public function setKeywords($keywords, $encoding = 'UTF-8') {}", "protected function setKeywords() {\r\n\t\...
[ "0.8152592", "0.79315513", "0.7712507", "0.7697953", "0.76085913", "0.75589365", "0.74766225", "0.7372432", "0.73598415", "0.7345759", "0.73259264", "0.7186599", "0.7083738", "0.70423025", "0.7006566", "0.7003472", "0.69327784", "0.6856205", "0.67000705", "0.6697921", "0.6688...
0.6286079
31
Get the value of newView
public function getView() { return $this->view; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_data() {\n return $this->_view;\n }", "public function getViewValue()\n {\n return Page::get()->byID((int) $this->owner->Value);\n }", "protected function _getCurrentView()\n {\n return db_get_row(\"SELECT * FROM ?:views WHERE user_id = ?i AND object = ?s\",...
[ "0.63403606", "0.62908435", "0.6132377", "0.60749775", "0.60745764", "0.6052204", "0.6037892", "0.60298413", "0.6014726", "0.60017407", "0.5959021", "0.5918863", "0.5918863", "0.58805156", "0.5859428", "0.5844229", "0.583782", "0.583782", "0.5836372", "0.5826567", "0.58103365...
0.55345273
54
Set the value of newView
public function setView($view) { $this->view = (substr($view, -4) == ".php") ? rtrim(str_replace(".php", "", $view)) : $view; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setView($value) {\r\n $this->view = $value;\r\n }", "function testSetViewExpectsViewReplaced() {\n\t\t// Arrange\n\t\t$newView = new \\StdClass;\n\t\t$form = new TestNumberField();\n\n\t\t// act\n\t\t$form->set_view($newView);\n\n\t\t// Assert\n\t\t$this->assertInstanceOf('StdClass', $form->View...
[ "0.724619", "0.6744682", "0.6599704", "0.6455185", "0.63270205", "0.6227497", "0.62100536", "0.61751086", "0.61255896", "0.61052704", "0.61049145", "0.60138977", "0.60069346", "0.6006508", "0.5978145", "0.5960479", "0.5956029", "0.59558344", "0.59510773", "0.58642083", "0.583...
0.0
-1
Get the value of param
public function getParam() { return $this->param; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getParam() {\n\n\t}", "public function getParam($param);", "public function getParameter();", "public function getParameter();", "public function getParameter()\n\t{\n\t\treturn $this->parameter;\n\t}", "public function getParameter($param)\n {\n return $this->params[$par...
[ "0.81962824", "0.7995385", "0.79745066", "0.79745066", "0.78472334", "0.7724873", "0.73969626", "0.7346573", "0.7346573", "0.7346573", "0.73188716", "0.73188716", "0.722116", "0.720345", "0.7188405", "0.71843433", "0.7163673", "0.7151998", "0.7121484", "0.7121484", "0.7121484...
0.7937907
4
Set the value of param
public function setParam($param) { $this->param = $param; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setParam($param, $value);", "public function setParam($name, $value);", "public function setParameter($name, $value);", "public function setParam($key, $value);", "public function set($parameter, $value);", "public function __set($param, $value);", "public function __set($param, $value)...
[ "0.81007755", "0.7869542", "0.77629465", "0.77265894", "0.7589843", "0.75190246", "0.750907", "0.742872", "0.7345162", "0.73161316", "0.72781336", "0.7251788", "0.7248604", "0.7245834", "0.71854484", "0.71633047", "0.7138322", "0.712891", "0.7119354", "0.7113629", "0.7057456"...
0.0
-1
Setup the different protocols
public function __construct() { $this->protocolList = array( 'imap' => __NAMESPACE__ . '\IMAP', 'pop3' => __NAMESPACE__ . '\POP', 'nntp' => __NAMESPACE__ . '\NNTP', ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createProtocol()\n {\n }", "private function setProtocol()\n {\n $urlE = $this->explodedUrl;\n\n $this->protocol = substr($urlE[0], 0, -1);\n }", "public function setup()\n {\n\n $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);\n socket_set_option(...
[ "0.62133414", "0.60787326", "0.60057926", "0.5945491", "0.5943242", "0.59173834", "0.59041536", "0.58473516", "0.5835035", "0.58276814", "0.58060354", "0.5802868", "0.5799337", "0.5782756", "0.5697311", "0.5694129", "0.56842935", "0.567643", "0.5625459", "0.5617639", "0.56092...
0.66132206
0
Custom panel pane to show user products.
function kms_pands_products_render($subtype, $conf, $args, $contexts) { $form = drupal_get_form('kms_pands_product_list_form'); $block = new stdClass(); $block->content = drupal_render($form); return $block; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $user = Product::all();\n return view(\"backend.ProductsPage\",compact(\"user\"));\n }", "public function index()\n {\n return view('seller.product.index')->with([\n 'products' => Auth::user()->products\n ]);\n }", "public functio...
[ "0.638038", "0.62798506", "0.6252675", "0.6207223", "0.6204437", "0.6198666", "0.6179023", "0.60874933", "0.6079998", "0.6040613", "0.60323316", "0.6024273", "0.5997606", "0.5979092", "0.5943528", "0.5939741", "0.58993983", "0.58911496", "0.5865617", "0.58430976", "0.5821279"...
0.0
-1
create a log channel
public function __construct(Container $container) { $this->log = new Logger('file_stream'); $this->container = $container; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function channelCreate(ChannelInterface $channel);", "function channel(): Channel\n {\n return new Channel();\n }", "public function channel()\n {\n }", "public function __construct()\n {\n $log_enhancer_channel_name = config('logging.bkstar123_log_enhancer.channel_name');\n ...
[ "0.7015066", "0.6224386", "0.61569715", "0.603004", "0.5990329", "0.5896908", "0.58731997", "0.5843572", "0.5802516", "0.57735425", "0.5719883", "0.5713936", "0.5641321", "0.5640319", "0.5632027", "0.56256783", "0.56192446", "0.5616062", "0.5552506", "0.5550374", "0.5548135",...
0.0
-1
What we do once the event is captured
public function onKernelController(FilterControllerEvent $event) { $controller = $event->getController(); /* * $controller passed can be either a class or a Closure. * This is not usual in Symfony but it may happen. * If it is a class, it comes in array format */ if (!is_array($controller)) { r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onEvent();", "public function event_joined()\r\n\t{\r\n\t\r\n\t}", "public function postEventDel();", "public static function __events () {\n \n }", "function capture_do(){\n \t}", "public function onEventAdd()\n\t{\n\t\t$this->onTaskAdd();\n\t}", "public function handles_e...
[ "0.712318", "0.6244682", "0.62038845", "0.60532904", "0.5898998", "0.589704", "0.58935636", "0.58706313", "0.5835617", "0.583533", "0.579223", "0.5769489", "0.5738783", "0.5655718", "0.56458414", "0.5643815", "0.5612735", "0.5601623", "0.55999774", "0.5589579", "0.5569202", ...
0.0
-1
We declare the event we wish to follow or capture
public static function getSubscribedEvents() { return array( KernelEvents::CONTROLLER => 'onKernelController', ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function onEvent();", "function eventclass_offeraride()\n\t{\n\t\t$this->events[\"BeforeMoveNextList\"]=true;\n\n\n//\tonscreen events\n\n\t}", "function setEventType()\n {\n $this->_eventType = 12;\n }", "function setEventType() // OK\n {\n }", "abstract function HookEvents();", ...
[ "0.63461864", "0.6070638", "0.6012455", "0.5814528", "0.57526165", "0.5703919", "0.5703919", "0.55452234", "0.5528893", "0.54810196", "0.54559785", "0.5398096", "0.5364038", "0.534351", "0.53374445", "0.53347784", "0.5309396", "0.52944237", "0.52874094", "0.5273479", "0.52724...
0.0
-1
Se eligio filter_var en lugar de filter_input
private static function get_value($field, $filter, $options = null) { // por la posibilidad que da de realizar test de unidad if (! isset($_POST[$field])) { return false; } return trim(filter_var($_POST[$field], $filter, $options)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function filter($input);", "public function getFilterInput();", "public function getInputFilter();", "function filter_input($type, $variable_name, $filter = /* .constant 'FILTER_DEFAULT' */, $options = /* .constant 'FILTER_FLAG_NONE' */) {\r\n if(is_array($options)) {\r\n \t$flags = 0;\r...
[ "0.7603559", "0.7590606", "0.7552659", "0.724046", "0.70254153", "0.69951093", "0.69793415", "0.68211824", "0.67740273", "0.6582723", "0.65332", "0.6530301", "0.6525372", "0.6524646", "0.65060323", "0.6490704", "0.64730203", "0.6446054", "0.642091", "0.640849", "0.6391697", ...
0.0
-1
Defaults as specified by assemble()
function smarty_function_zurl($params, &$smarty) { $urlParams = array(); $name = null; $reset = false; $encode = true; // Capture the module if (isset($params['module'])) { $urlParams['module'] = $params['module']; unset($params['module']); } // Capture the controller ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _setDefaults() {}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "public function applyDefaultValues()\n\t{\n\t}", "final protected function _defaults(){\n if(! $this->_defaults) return;\n foreach($this->_defaults as $conf => $default_valu...
[ "0.69074494", "0.68623817", "0.68623817", "0.68623817", "0.67980295", "0.6780243", "0.663235", "0.6630929", "0.6596971", "0.6569364", "0.6521795", "0.65194505", "0.6508832", "0.6502008", "0.6502008", "0.64860433", "0.648185", "0.6466988", "0.64622885", "0.64441866", "0.644363...
0.0
-1
Register a new account.
function register() { $controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control"); $controlrow = mysql_fetch_array($controlquery); if (isset($_POST["submit"])) { extract($_POST); $errors = 0; $errorlist = ""; if (strlen($password1) >...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerAccount($key, Account $account);", "public function register_new() {\n\t\t$fields = array(\n\t\t\t'address1', 'address2', 'city', 'comment', 'country', 'email', 'fax_src', 'first_name',\n\t\t\t'gender', 'insertion', 'company_name', 'lang', 'last_name', 'middle_name', 'mobile_src',\n\t\t\t...
[ "0.7697031", "0.71245104", "0.7014911", "0.69144136", "0.6827581", "0.6676551", "0.66657346", "0.66468936", "0.66287434", "0.6608814", "0.64363015", "0.6426078", "0.6400164", "0.63912696", "0.63700706", "0.636918", "0.6358176", "0.63568825", "0.6345655", "0.6335601", "0.63202...
0.0
-1
thanks to arto dot PLEASE dot DO dot NOT dot SPAM at artoaaltonen dot fi.
function mymail($to, $title, $body, $from = '') { $controlquery = doquery("SELECT * FROM {{table}} WHERE id='1' LIMIT 1", "control"); $controlrow = mysql_fetch_array($controlquery); extract($controlrow); $from = trim($from); if (!$from) { $from = '<'.$controlrow["adminemail"].'>'; } $rp ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _i() {\n }", "public function _strings_for_pot()\n {\n }", "public function helper()\n\t{\n\t\n\t}", "function fix() ;", "public function extra_voor_verp()\n\t{\n\t}", "public function boleta()\n\t{\n\t\t//\n\t}", "public function AggiornaPrezzi(){\n\t}", "public funct...
[ "0.56017315", "0.55888027", "0.55135936", "0.54957974", "0.5437108", "0.53803", "0.53712845", "0.532074", "0.5316354", "0.52762276", "0.5268121", "0.52433014", "0.51886207", "0.5176665", "0.5148197", "0.5140169", "0.5130826", "0.51288795", "0.5124826", "0.5109066", "0.5104950...
0.0
-1
Check if all session variables are set
function login_check() { if (isset($_SESSION['user_id'], $_SESSION['user'], $_SESSION['login_string'],$_SESSION['time'])) { $user_id = $_SESSION['user_id']; $login_string = $_SESSION['login_string']; $username = $_SESSION['user']; $time=$...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function hasAttributes() {\n\t return (!empty($_SESSION));\n\t}", "public function hasVars()\n {\n return !empty($this->varsNames);\n }", "function checkSessionAll(){\r\n \tif($this->Session->check('User')){\r\n \t\t//the user is logged in, allow the wiki edit featur\r\n ...
[ "0.697461", "0.672311", "0.6674519", "0.6598479", "0.6598479", "0.6526977", "0.6490664", "0.6490664", "0.6461166", "0.6428636", "0.64197034", "0.6411508", "0.6398165", "0.63720334", "0.6356545", "0.6349689", "0.6348289", "0.63324195", "0.6328243", "0.6316072", "0.6305822", ...
0.0
-1
Shows a pager as a frontend plugin
public function showAction() { // Do not show pager when nothing to page. if ($this->pagerCollection->getItemCount() <= 0) { return ''; } $pager = $this->pagerCollection->getPagerByIdentifier($this->pagerIdentifier); $this->view->assign('pagerCollection'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function showPager() {\n\tglobal $pager,$abs;\n\tprint '<span class=\"sp-pager-area no-print\">';\n\t$pager->printPager();\n\tprint '</span>';\n}", "public function pager()\n {\n $pager = $this->getPublisher()->getPagination()['pager'];\n $html = \"\\n<nav>\\n <ul class=\\\"pager\\\">\";\n\n ...
[ "0.75803494", "0.63794273", "0.6281182", "0.6258769", "0.62368417", "0.61469704", "0.61268014", "0.607215", "0.6053932", "0.60456765", "0.60193217", "0.5983425", "0.5979024", "0.59631133", "0.59630173", "0.59615654", "0.5934937", "0.5924197", "0.58920527", "0.58920527", "0.58...
0.647806
1
Returns an initialized pager object
protected function getPagerCollectionInstance() { $pagerCollection = $this->dataBackend->getPagerCollection(); $pagerCollection->setItemCount($this->dataBackend->getTotalItemsCount()); return $pagerCollection; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPagerObject() {\n\n\t\t/** @var $pager \\TYPO3\\CMS\\Vidi\\Persistence\\Pager */\n\t\t$pager = GeneralUtility::makeInstance('TYPO3\\CMS\\Vidi\\Persistence\\Pager');\n\n\t\t// Set items per page\n\t\tif (GeneralUtility::_GET('iDisplayLength') !== NULL) {\n\t\t\t$limit = (int) GeneralUtility::_GET...
[ "0.80898124", "0.7152123", "0.6800001", "0.670996", "0.66210496", "0.65533954", "0.64288104", "0.6375628", "0.63182306", "0.629759", "0.6254763", "0.6226744", "0.6219426", "0.6115893", "0.6109825", "0.6079256", "0.6055752", "0.60475224", "0.60136575", "0.6000167", "0.5999341"...
0.5953027
27
Call the Model constructor
function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this ->model = $this ->makeModel($this ->model());\n }", "function __construct () {\n\t\t$this->_model = new Model();\n\t}", "function __construct()\n {\n // 呼叫模型(Model)的建構函數\n parent::__construct();\n \n }", "function __construc()...
[ "0.8196736", "0.8080118", "0.8054001", "0.7839992", "0.78184336", "0.78158236", "0.7770901", "0.773286", "0.7704549", "0.7701882", "0.7701882", "0.7701882", "0.7701882", "0.76811564", "0.76426494", "0.75779855", "0.75710344", "0.75621206", "0.7518676", "0.75171185", "0.751711...
0.0
-1