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
Delete a PFS folder
function cot_pfs_deletefolder($userid, $folderid) { global $db, $db_pfs_folders, $db_pfs, $cfg; $sql = $db->query("SELECT pff_path FROM $db_pfs_folders WHERE pff_userid=".(int)$userid." AND pff_id=".(int)$folderid." LIMIT 1"); if($row = $sql->fetch()) { $fpath = $row['pff_path']; // Remove files $sql = $db-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function deleteFolder();", "public function deleteFolder(){\r\n\t\t$folder_key = $this->uri->segment(3);\r\n\r\n\t\t//Check if the folder exists\r\n\t\tif(!$this->DataModel->folderExists(array('public_key' => $folder_key), $this->authentication->uid) == TRUE){\r\n\t\t\t//Folder doesn't exist. Redirect to dashboa...
[ "0.7798941", "0.70827353", "0.7049093", "0.6945274", "0.68058544", "0.6735048", "0.66564804", "0.6656304", "0.66138196", "0.6602093", "0.65329677", "0.6527285", "0.6527285", "0.6480294", "0.64106894", "0.64018613", "0.6392145", "0.63863206", "0.6385144", "0.6380662", "0.63650...
0.71326876
1
Delete all PFS files for a specific user. Returns number of items removed.
function cot_pfs_deleteall($userid) { global $db, $db_pfs_folders, $db_pfs, $cfg; if (!$userid || !is_int($userid)) { return 0; } $pfs_dir_user = cot_pfs_path($userid); $thumbs_dir_user = cot_pfs_thumbpath($userid); $sql = $db->query("SELECT pfs_file, pfs_folderid FROM $db_pfs WHERE pfs_userid=$userid"); wh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleted(User $user)\n {\n // delete all files\n }", "public function deleteAllForUser($userId);", "public function deleteAllForUser($userId);", "public function deleteFileInfo(User $user)\n {\n }", "public function delete_all_files($user){\n $data['acc_yr']...
[ "0.7186379", "0.68628603", "0.68628603", "0.67843044", "0.6757004", "0.665675", "0.66114825", "0.6603041", "0.64864606", "0.64622504", "0.6282791", "0.6076416", "0.6042093", "0.6027785", "0.60093176", "0.6000545", "0.5975668", "0.59659314", "0.5959334", "0.5893966", "0.584427...
0.77030516
0
Returns path to file relative from user's/system directory
function cot_pfs_filepath($id) { global $db, $db_pfs_folders, $db_pfs, $cfg; $sql = $db->query("SELECT p.pfs_file AS file, f.pff_path AS path FROM $db_pfs AS p LEFT JOIN $db_pfs_folders AS f ON p.pfs_folderid=f.pff_id WHERE p.pfs_id=".(int)$id." LIMIT 1"); if($row = $sql->fetch()) { return ($cfg['pfs']['pfsuserf...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_full_relative_path(){\n\t\treturn $this->dir . '/' . $this->get_full_name();\n\t}", "public function getLocalPath()\r\n\t{\r\n\t\t$accountNumber = $this->getAccountNumber();\r\n\r\n\t\t$file_dir = AntConfig::getInstance()->data_path.\"/$accountNumber/userfiles\";\r\n\t\t$file_dir2 = AntConfig...
[ "0.69055176", "0.69027007", "0.68939555", "0.687307", "0.6829995", "0.6775589", "0.67542493", "0.67542493", "0.6751884", "0.6690843", "0.6671286", "0.6670056", "0.66671604", "0.66572946", "0.6634951", "0.6634836", "0.662934", "0.65823036", "0.65779316", "0.6566234", "0.652504...
0.0
-1
Returns path to folder relative from user's/system directory
function cot_pfs_folderpath($folderid, $fullpath='') { global $db, $db_pfs_folders, $cfg; if($fullpath==='') $fullpath = $cfg['pfs']['pfsuserfolder']; if($fullpath && $folderid>0) { // TODO Clean up this mess and fix pff_path $sql = $db->query("SELECT pff_path FROM $db_pfs_folders WHERE pff_id=".(int)$folderi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function dirPath () { return (\"../../\"); }", "function dirPath() {return (\"../../../../\"); }", "function dirPath() { return (\"../\"); }", "public function getLocalPath()\r\n\t{\r\n\t\t$accountNumber = $this->getAccountNumber();\r\n\r\n\t\t$file_dir = AntConfig::getInstance()->data_path.\"/$accountNumber...
[ "0.7399993", "0.73861754", "0.7383157", "0.71432847", "0.70720494", "0.703621", "0.6965563", "0.68030715", "0.6775655", "0.67573196", "0.6731361", "0.66862786", "0.66735494", "0.6656249", "0.66267794", "0.6626765", "0.660271", "0.65980655", "0.6585902", "0.656657", "0.6561795...
0.0
-1
Create a new directory
function cot_pfs_mkdir($path, $feedback=FALSE) { global $cfg; if(substr($path, 0, 2) == './') { $path = substr($path, 2); } if(!$feedback && !file_exists($pfs_dir_user)) { cot_pfs_mkdir($pfs_dir_user, TRUE); } if(@mkdir($path, $cfg['dir_perms'])) { return TRUE; } else { return FALSE; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createDirectory() {}", "function createDirectory() {\n\t$fmpImporter = new FilemakerProImporter();\n\t$fmpImporter->createDirectory();\n}", "public function createDirectory(Directory $directory): void;", "public function createDirectory($path) {\n\n $parentPath = dirname($path);\n ...
[ "0.83172524", "0.7627738", "0.75388604", "0.7384499", "0.7381146", "0.73666817", "0.73175186", "0.72809327", "0.72737545", "0.7193673", "0.7177672", "0.7177558", "0.7124097", "0.7112226", "0.70990056", "0.70924807", "0.70917445", "0.7062571", "0.7056554", "0.70376134", "0.702...
0.0
-1
Returns PFS path for a user, relative from site root
function cot_pfs_path($userid) { global $cfg; if ($cfg['pfs']['pfsuserfolder']) { return($cfg['pfs_dir'].'/'.$userid.'/'); } else { return($cfg['pfs_dir'].'/'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cot_pfs_relpath($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($userid.'/');\n\t}\n\telse\n\t{\n\t\treturn('');\n\t}\n}", "protected function action_getUserMainDir() {}", "public function path()\n {\n return $this->user->path() . $this->slug;\n }", "...
[ "0.77711326", "0.6666445", "0.6565013", "0.65203464", "0.64711154", "0.6429615", "0.6420107", "0.63435465", "0.6265776", "0.61245036", "0.6090737", "0.6090737", "0.60855997", "0.6064823", "0.59834766", "0.59624964", "0.5937484", "0.5912007", "0.5903187", "0.59026796", "0.5901...
0.80595
0
Returns PFS path for a user, relative from PFS root
function cot_pfs_relpath($userid) { global $cfg; if ($cfg['pfs']['pfsuserfolder']) { return($userid.'/'); } else { return(''); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cot_pfs_path($userid)\n{\n\tglobal $cfg;\n\n\tif ($cfg['pfs']['pfsuserfolder'])\n\t{\n\t\treturn($cfg['pfs_dir'].'/'.$userid.'/');\n\t}\n\telse\n\t{\n\t\treturn($cfg['pfs_dir'].'/');\n\t}\n}", "public function getLocalPath()\r\n\t{\r\n\t\t$accountNumber = $this->getAccountNumber();\r\n\r\n\t\t$file_dir ...
[ "0.80103356", "0.6662947", "0.6594732", "0.64392906", "0.6302571", "0.62818074", "0.6245706", "0.61275065", "0.60601425", "0.6046632", "0.6027554", "0.6017885", "0.6003769", "0.5987012", "0.5976595", "0.5836177", "0.582765", "0.5824922", "0.58175373", "0.57843316", "0.5778683...
0.7798964
1
Upload one or more files, return parent folder ID
function cot_pfs_upload($userid, $folderid='') { global $db, $cfg, $sys, $cot_extensions, $gd_supported, $maxfile, $maxtotal, $db_pfs, $db_pfs_folders, $L, $err_msg; if($folderid==='') $folderid = cot_import('folderid','P','INT'); $ndesc = cot_import('ndesc','P','ARR'); $npath = cot_pfs_folderpath($folderid); /*...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function upload(){\r\n\t\t\tglobal $_POST;\r\n\t\t\t$_POST['folder'] = str_replace('/umeos','',$_POST['folder']);\r\n\t\t\t$_POST['folder'] = str_replace('/root/infinite-home/','',$_POST['folder']);\r\n\r\n\t\t\tif (!empty($_FILES)) {\r\n\t\t\t\tforeach($_FILES as $file){\r\n\t\t\t if (!empty($file['tmp_nam...
[ "0.64707035", "0.62114835", "0.6207102", "0.61252356", "0.6113334", "0.6100969", "0.6089091", "0.6024513", "0.5980981", "0.5977257", "0.5966816", "0.595665", "0.5955808", "0.59494936", "0.5914015", "0.5909059", "0.5904296", "0.5852198", "0.5837207", "0.58265305", "0.5792741",...
0.53806734
85
Renders PFS folder selection dropdown
function cot_selectbox_folders($user, $skip, $check, $name = 'folderid') { global $db, $db_pfs_folders, $R; $user = (int) $user; $sql = $db->query("SELECT pff_id, pff_title, pff_isgallery, pff_ispublic FROM $db_pfs_folders WHERE pff_userid=$user ORDER BY pff_title ASC"); $check = (empty($check) || $check == '/') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderLanguageSelect() {}", "public function renderFiles() {\r\n\t\tlist($name, $id) = $this->resolveNameID();\r\n\t\t$id .= \"-files\";\r\n\t\t$basePath = $this->basePath;\r\n\t\tif (is_array($basePath)) {\r\n\t\t\t$basePath = array_shift($basePath); // the first folder is selected by default\r\...
[ "0.6200747", "0.6182637", "0.61314505", "0.5855188", "0.5854801", "0.578314", "0.5747833", "0.5719784", "0.56854737", "0.56847996", "0.56728536", "0.56643105", "0.5659013", "0.5648083", "0.5641837", "0.5625889", "0.5616844", "0.5613469", "0.5562949", "0.5558662", "0.5546904",...
0.5717434
8
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'name' => 'required', 'trip_id' => 'required', 'supervisors' => 'required', 'going_date' => 'required|date', 'flight_days_no' => 'required', 'flight_hours_no' => 'required', 'from_count...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Tiene muchos Post atravez (hasManyThrough) de usuarios
public function posts() { return $this->hasManyThrough(Post::class, User::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function posts()\n {\n \treturn $this->hasMany(Post::class);\n \t//Con esto podemos acceder a todos los posts de un usuario\n \t//$posts = User::find(1)->comments()->where()->first()\n \t//Para acceder al usuario de un post debemos definir la relacion inversa\n }", "public function posts...
[ "0.6778668", "0.6754631", "0.6658929", "0.665259", "0.6620675", "0.661627", "0.6594387", "0.6563938", "0.6543209", "0.65389717", "0.64678735", "0.64118534", "0.64065987", "0.63933486", "0.63669914", "0.63547105", "0.63339067", "0.6293543", "0.6288058", "0.6276787", "0.626379"...
0.72227097
0
Returns the static model of the specified AR class.
public static function model($className=__CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function model()\r\n {\r\n return static::class;\r\n }", "public static function model() {\n return parent::model(get_called_class());\n }", "public static function model($class = __CLASS__)\n {\n return parent::model($class);\n }", "public static function model($cl...
[ "0.74850124", "0.73803526", "0.7154113", "0.71401674", "0.70629025", "0.703232", "0.69285315", "0.69285315", "0.6925706", "0.6902751", "0.6894916", "0.6894916", "0.68900806", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0.68698424", "0....
0.0
-1
Retrieves a list of models based on the current search/filter conditions.
public function search() { // Warning: Please modify the following code to remove attributes that // should not be searched. $criteria=new CDbCriteria; $criteria->compare('kode_anggota',$this->kode_anggota); $criteria->compare('tgl_aktivasi_anggota',$this->tgl_aktivasi_anggota,true); $criteria->compare('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getModels();", "public function getModels();", "public function findAll($model);", "public function getListSearch()\n {\n //set warehouse and client id\n $warehouse_id = ( !is_numeric(request()->get('warehouse_id')) ) ? auth()->user()->current_warehouse_id : request()->get('w...
[ "0.6743169", "0.6743169", "0.660761", "0.6479806", "0.63798267", "0.63454884", "0.6310211", "0.630157", "0.6253882", "0.62494963", "0.62494963", "0.6111013", "0.6077699", "0.60734916", "0.604629", "0.60349816", "0.60323626", "0.6014135", "0.5981404", "0.5979577", "0.59790176"...
0.0
-1
Show the form for creating a new resource.
public function create() { $roles = Role::pluck('name','name')->all(); $teams = Team::pluck('name','id')->all(); $teams = Arr::add($teams, "", "no team"); $positions = [ "0"=>"Team leader", "1"=>"Senior team member", "2"=>"Junior team member", ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $this->validate($request, [ 'name' => ['required', 'string', 'max:255'], 'lastname' => ['nullable', 'string', 'max:255'], 'username' => ['required', 'string', 'max:255', 'unique:users'], 'telephone' => ['required', 'nu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { $user = User::find($id); return view('users.show',compact('user')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { $user = User::find($id); $roles = Role::pluck('name','name')->all(); $userRole = $user->roles->pluck('name','name')->all(); $teams = Team::pluck('name','id')->all(); $teams = Arr::add($teams, "", "no team"); $userTeam = $user->team_id; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $this->validate($request, [ 'name' => ['required', 'string', 'max:255'], 'lastname' => ['nullable', 'string', 'max:255'], // 'username' => ['required', 'string', 'max:255', 'unique:users'], 'telephone' => ['requir...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { User::find($id)->delete(); return redirect()->route('users.index') ->with('success','User deleted successfully'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Get the divisions associated with the company.
public function division(){ return $this->hasOne(Division::class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function divisions(): array { return $this->divisions; }", "public function get_division()\n\t\t{\n\t\t\treturn $this->obj->find()->getBasics();\n\t\t}", "public function getDivisions(){\n $result_arr=[];\n $query=\"SELECT * FROM division ORDER BY div_name ASC\";\n $result=$thi...
[ "0.6746101", "0.6237434", "0.61890936", "0.6071855", "0.5963803", "0.5955723", "0.5888444", "0.58680296", "0.58475", "0.58084446", "0.57955754", "0.5790242", "0.57874036", "0.5723284", "0.5682274", "0.56602275", "0.5648566", "0.5638574", "0.56368625", "0.5608394", "0.5590801"...
0.5077277
63
PHP doesn't honor lazy matches very well, apparently, so add newlines
function dtwp_extract_styles( $contents ) { $contents[ 'contents' ] = str_replace( '}', "}\r\n", $contents[ 'contents' ] ); preg_match_all( '#.c(?P<digit>\d+){(.*?)font-weight:bold(.*?)}#', $contents[ 'contents' ], $boldmatches ); preg_match_all('#.c(?P<digit>\d+){(.*?)font-style:italic(.*?)}#', $contents[ 'con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _autop_newline_preservation_helper($matches)\n {\n }", "function _autop_newline_preservation_helper( $matches ) {\n\t\t\treturn str_replace(\"\\n\", \"<WPPreserveNewline />\", $matches[0]);\n\t\t}", "public function testMatchingSubstringsWithMismatchedLineEndingsAmount( $expected ) {\n\t\techo '...
[ "0.69772345", "0.5902786", "0.57552445", "0.56110317", "0.5601887", "0.55393374", "0.5503794", "0.54851204", "0.54764014", "0.5338859", "0.5321994", "0.52943504", "0.52696174", "0.51535815", "0.51488125", "0.51377285", "0.51341736", "0.512462", "0.5121618", "0.51114154", "0.5...
0.0
-1
Display the comments meta box
function dtwp_comments_meta_box( $post ) { $gdocID = get_post_meta( $post->ID, '_gdocID', true ); if( !empty( $gdocID ) ) { ?> <h5><a href="http://docs.google.com/document/d/<?php echo $gdocID; ?>/edit" target=_blank>Edit this doc</a></h5> <?php } else { ?> <h5>No doc attached.</h5> <?php } $comments = g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ubc_collab_comment_meta() {\n\techo apply_atomic_shortcode( 'comment_meta', '<div class=\"comment-meta comment-meta-data\"><cite>[comment-author]</cite> [comment-published] <span class=\"comment-action\">[comment-permalink before=\"\"] [comment-edit-link before=\"| \"] [comment-reply-link before=\"| \"]<s...
[ "0.7155159", "0.7092396", "0.70813", "0.69819075", "0.6650371", "0.66219574", "0.6549328", "0.6527401", "0.652701", "0.6492178", "0.6434591", "0.6390369", "0.63355786", "0.63287556", "0.6322764", "0.6295235", "0.62818354", "0.62800217", "0.62788796", "0.62673306", "0.6260664"...
0.7307501
0
Bib Generator from Database Have one specify database for one donation type running with Database Primary Key
public static function main(){ //do nothing }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toSql() // {{{\n {\n $out = \"\";\n $out .= \"-- This file was autogenerated by a Script With No Name\\n\";\n $out .= \"-- on \".date(\"Y-m-d\").\". It represents a set of BibTeX entries.\\n\\n\";\n $schema = $this->getParameterSet();\n $out .= \"-- Table schema\\n\";\n $out .= \...
[ "0.54284257", "0.5408602", "0.5388924", "0.53524673", "0.5341923", "0.524546", "0.522762", "0.5178627", "0.5108063", "0.51039094", "0.51026505", "0.5099203", "0.50718975", "0.5062826", "0.50535744", "0.5025577", "0.50252205", "0.5022597", "0.50024015", "0.4992005", "0.4991098...
0.0
-1
Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!
public static function model($className=__CLASS__) { return parent::model($className); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function model() {\n return parent::model(get_called_class());\n }", "public function model()\r\n {\r\n return static::class;\r\n }", "public static function model($className=__CLASS__) { return parent::model($className); }", "public static function model($className=__CLA...
[ "0.7574005", "0.7528819", "0.7270635", "0.7269363", "0.72611624", "0.7211197", "0.72105455", "0.7130912", "0.7127844", "0.7127844", "0.7101899", "0.7101899", "0.7101485", "0.70736724", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.70631427", "0.7063...
0.0
-1
Retrieves a list of models based on the current search/filter conditions. Typical usecase: Initialize the model fields with values from filter form. Execute this method to get CActiveDataProvider instance which will filter models according to data in model fields. Pass data provider to CGridView, CListView or any simil...
public function search() { // @todo Please modify the following code to remove attributes that should not be searched. $criteria=new CDbCriteria; $criteria->compare('id',$this->id); $criteria->compare('event_id',$this->event_id); $criteria->compare('ticket',$this->ticket,true); $criteria->compare('style'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id);\n\t\t//$criteria->compare('object_id',$this->object_id);\n\t\t$criteria->compare('object_type_id',$this->object...
[ "0.7212621", "0.7135736", "0.7093357", "0.70932513", "0.69849926", "0.6960267", "0.6947744", "0.6941827", "0.6933585", "0.69238573", "0.6910198", "0.69027245", "0.68983555", "0.6897855", "0.6892253", "0.68823045", "0.68791807", "0.68736356", "0.6849398", "0.6848704", "0.68356...
0.0
-1
Determine if the validation rule passes.
public function passes($attribute, $value) { return preg_match('/^[\u4E00-\u9FA5A-Za-z0-9_-]+$/', $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isValidationPassed();", "public function passes()\n {\n $validator = $this->validator->make($this->data, $this->rules, $this->messages);\n \n if($validator->fails())\n {\n $this->errors = $validator->messages();\n return false;\n }\n \n return true;\n }", "publi...
[ "0.8135265", "0.7998094", "0.7949586", "0.79207087", "0.7848346", "0.7822134", "0.7803216", "0.7624212", "0.7482484", "0.74785715", "0.7434167", "0.7372512", "0.7300044", "0.7276218", "0.7268265", "0.721696", "0.72142994", "0.7207063", "0.7206368", "0.7205338", "0.7192363", ...
0.0
-1
Get the validation error message.
public function message() { return '请输入正确的物流单号'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function message()\n {\n return 'The validation error message.';\n }", "public function message()\n {\n return 'The validation error message.';\n }", "public function message()\n {\n return 'The validation error message.';\n }", "public function message()\n {\...
[ "0.8368853", "0.8368853", "0.8368853", "0.8368853", "0.8368853", "0.8368853", "0.8207248", "0.8094182", "0.8061137", "0.80309856", "0.8023962", "0.79981095", "0.7994271", "0.79576373", "0.7955562", "0.7948321", "0.7938317", "0.7914095", "0.78989285", "0.78862643", "0.78477675...
0.0
-1
show user with data table
public function fetch_user() { //echo '<pre>';print_r($_POST);die; $fetch_data = $this->user_model->datatables(); $data = array(); // echo '<pre>';print_r($fetch_data);die; $i = 1; foreach ($fetch_data as $row) { $html = ''; $html .= '<button data-id="'.$row->id.'" type="button" class="btn btn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function showUserTable() {\n echo \"<table id='users'>\n <tr>\n <th></th>\n <th>Utilisateur</th>\n <th>Mail</th>\n <th>Date de naissance</th>\n <th>Note</th>\n <th>Voitures</th>\n <th>Commentaires</th>\n </tr>\";\n ...
[ "0.7484739", "0.73283046", "0.727887", "0.7092597", "0.70847654", "0.70797956", "0.6998374", "0.6978516", "0.6967578", "0.6910536", "0.6892313", "0.6871144", "0.6845147", "0.6806365", "0.67916447", "0.6791573", "0.6697287", "0.667456", "0.66441905", "0.66440296", "0.6635218",...
0.0
-1
showing of add form
public function create(){ $user = Auth::user()->admin; if($user == 0) { return redirect('home'); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function display_add() {\n $this->_addform->display();\n }", "public function addForm() {\n $this->view->displayForm();\n }", "public function renderAdd()\r\n\t{\r\n\t\t$this['tarifForm']['save']->caption = 'Přidat';\r\n\t}", "public function add()\n\t{\n\t\t$this->template('crud/add');\t...
[ "0.8637647", "0.85642475", "0.7751937", "0.7703067", "0.76892745", "0.76864004", "0.7684585", "0.7683317", "0.7649132", "0.7612327", "0.76013327", "0.7597881", "0.75277644", "0.7468245", "0.743779", "0.74364644", "0.74052405", "0.7366821", "0.7363904", "0.73630786", "0.734424...
0.0
-1
Get the fields/elements defined in this form.
function getRenderableElementNames() { // The _elements list includes some items which should not be // auto-rendered in the loop -- such as "qfKey" and "buttons". These // items don't have labels. We'll identify renderable by filtering on // the 'label'. $elementNames = array(); foreach ($thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fields() {\n\t\tif( !$this->fields ) {\n\t\t\t$this->fields = new Form/Fields( $this->id );\n\t\t}//end if\n\t\treturn $this->fields;\n\t}", "public function getFormFields()\n {\n return $this->form->getFields();\n }", "public function getFields()\n {\n return $this->getF...
[ "0.82295287", "0.7936218", "0.7923623", "0.7858325", "0.7518411", "0.7487265", "0.7440453", "0.7420648", "0.741438", "0.73881453", "0.7360514", "0.7327193", "0.7327193", "0.7317606", "0.73152393", "0.730696", "0.730696", "0.7304057", "0.7291822", "0.7291822", "0.72860646", ...
0.0
-1
single or multipie get base info
public static function get_base($id) { if (is_array($id)) { $records = \Base\Dao\UserTable::instance()->get($id, ['id', 'username', 'name']); $items = array(); foreach ($records as $item) { $item['id'] = intval($item['id']); $item['username'] = $item['username']; $item['name'] = $item['name']; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getBase ()\n {\n global $config;\n return $config->current['BASE'];\n }", "public function getBase() {\n\t\treturn $this->base;\n\t}", "public function getBase() {\n\t\treturn $this->base;\n\t}", "public function getBase() {\n\t\treturn $this->base;\n\t}", "public function getBa...
[ "0.6622459", "0.6515291", "0.6515291", "0.6515291", "0.6515291", "0.6515291", "0.650271", "0.6496372", "0.6479303", "0.6479303", "0.64761674", "0.64761674", "0.64761674", "0.6469816", "0.6469816", "0.6469816", "0.6412655", "0.64036596", "0.6349667", "0.6258757", "0.62438065",...
0.0
-1
Provide valid properties which must result in a PropertyProcessor
public function validPropertyProvider(): array { return [ 'array' => ['array', ArrayProcessor::class], 'boolean' => ['boolean', BooleanProcessor::class], 'integer' => ['integer', IntegerProcessor::class], 'null' => ['null', NullProcessor::class], '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function allowProperties() {}", "abstract protected function properties();", "function shouldSkipUnknownProperties() ;", "public function shouldSkipUnknownProperties() {}", "private function parseProperties(): void\n {\n $properties = $this->extractProperties();\n\n foreach ($properties as $p...
[ "0.66310084", "0.64890844", "0.62032616", "0.6128429", "0.5994572", "0.5977762", "0.59675634", "0.59599245", "0.59554213", "0.59212184", "0.5880668", "0.58369845", "0.5812428", "0.57343334", "0.57325906", "0.57187444", "0.56949794", "0.56873643", "0.5628341", "0.5628136", "0....
0.6949544
0
Display a listing of the resource.
public function index(Request $request) { if(Auth::user()->cannot('view.user')) { return view('errors.permission'); die; } $data = User::with('roles'); //## Filter By Column ####################################################################################...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { if(Auth::user()->cannot('create.user')) { return view('errors.permission'); die; } /*if(!accessIp(\Request::ip())) { return view('errors.blocked_ip'); die; }*/ $roles = Role::pluck('name', 'id'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { $input = $request->except('confirm-password', 'roles'); $messages = [ 'name.required' => trans('user.err_name_required'), 'email.required' => trans('user.err_email_required'), 'email.unique' => trans('user.err_email_uniqu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { if(Auth::user()->cannot('edit.user')) { return view('errors.permission'); die; } /*if(!accessIp(\Request::ip())) { return view('errors.blocked_ip'); die; }*/ $roles = new Role(); if(!Auth::u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $messages = [ 'name.required' => trans('user.err_name_required'), 'email.required' => trans('user.err_email_required'), 'email.unique' => trans('user.err_email_unique'), 'password.required' => trans('user.err_pas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { if(Auth::user()->cannot('delete.user')) { return view('errors.permission'); die; } /*if(!accessIp(\Request::ip())) { return view('errors.blocked_ip'); die; }*/ $ids = explode(',', $id); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Run the database seeds.
public function run() { $barang = [ ['nama'=>'Honda Vario', 'varian'=>'150CC', 'harga_beli'=>'23000000','harga_jual'=>'17000000'], ['nama'=>'Honda Beat', 'varian'=>'150CC', 'harga_beli'=>'22000000','harga_jual'=>'15000000'], ['nama'=>'Honda CRF', '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { $rules = [ 'title' => 'required|max:255|unique:categories,title,'.$this->route('category'), 'slug' => 'required|max:255|unique:categories,slug,'.$this->route('category') ]; switch($this->method()) { case 'PUT': case 'PATCH': $rule...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
WHMCS eNom price sync addon module Copyright (C) 2016 Duco Hosting This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program ...
function LogModuleCall($module, $action, $request, $response, $processedData, $replaceVars) { // STUB }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function plugin_fin_smscoin_install($action) {\r\n\r\n\tglobal $lang;\r\n\tif ($action != 'autoapply')\r\n\t\tloadPluginLang('fin_smscoin', 'config', '', '', ':');\r\n\t// Fill DB_UPDATE configuration scheme\r\n\t$db_update = array(\r\n\t\tarray(\r\n\t\t\t'table' => 'fin_smscoin_history',\r\n\t\t\t'key' => 'pr...
[ "0.6074926", "0.59945244", "0.57460475", "0.5733867", "0.57280225", "0.55935407", "0.5541372", "0.55338275", "0.54648745", "0.5446975", "0.54381377", "0.5393287", "0.53683424", "0.53604907", "0.5351857", "0.5310708", "0.53056484", "0.5279834", "0.5261923", "0.52479446", "0.52...
0.57243013
5
Listar usuarios no banco de dados static > cramos getList com Static para quando precisarmos chama lo fora do escopo
public static function getList(){ $sql = new sql(); return $sql->select("SELECT * FROM usuarios ORDER BY email;"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getlist(){\n $sql = new Sql();\n \n return $sql->select(\"SELECT * FROM tb_usuarios ORDER BY deslogin\");\n }", "public function ListarUsuarios()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios \";\n\tforeach ($this->dbh->query($sql) as $row)\n\...
[ "0.78709203", "0.7809892", "0.7750791", "0.77340674", "0.7728917", "0.7721335", "0.77068317", "0.77026314", "0.7698417", "0.7671685", "0.7664428", "0.76522464", "0.7580625", "0.7558152", "0.75075686", "0.75049686", "0.7485061", "0.7478444", "0.7450958", "0.7441594", "0.741572...
0.7913158
0
Obter dados do usuario autenticado
function login($email, $senha){// primeiro precisamos aceder os dados dos usuarios $sql = new sql(); $results = $sql->select("SELECT * FROM usuarios WHERE email = :email AND senha = :senha", array( ":email"=>$email, ":senha"=>$senha )); if(count($results) > 0){ $this->setDados($results[0]); }els...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function autenticar(){\n\n $query = \"select id, nome, email from pessoa where email = :email and senha = :senha\";\n $stmt = $this->db->prepare($query);\n $stmt->bindValue(':email',$this->__get('email'));\n $stmt->bindValue(':senha',$this->__get('senha'));\n $stmt->ex...
[ "0.7215789", "0.69144654", "0.683271", "0.68306917", "0.6830393", "0.68278795", "0.6798237", "0.67803365", "0.6729149", "0.6726594", "0.6704519", "0.6703103", "0.66902727", "0.66596544", "0.66516584", "0.66235393", "0.662221", "0.6577906", "0.6511042", "0.6509866", "0.6499398...
0.6074543
91
Get Key pieces for caching block content
public function getCacheKeyInfo() { return array( 'VES_PRODUCTCAROUSEL4_BLOCK_WIDGET_TAB', $this->getNameInLayout(), Mage::app()->getStore()->getId(), Mage::getDesign()->getPackageName(), Mage::getDesign()->getTheme('template'), Mage::getSing...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCacheKeyInfo()\n {\n // Get Magento's standard product list block cache key info\n $info = parent::getCacheKeyInfo();\n\n // Dispatch event so others can modfify cache key info of this block without modifying module\n Mage::dispatchEvent('st_productlistblockcache_c...
[ "0.70591486", "0.650009", "0.63922805", "0.6376948", "0.63757694", "0.60802513", "0.6075127", "0.6044646", "0.5977924", "0.59288204", "0.59132046", "0.58700424", "0.5869957", "0.58669734", "0.58633035", "0.5823115", "0.5804039", "0.5778641", "0.5770323", "0.5768616", "0.57583...
0.65895355
1
logMessage("INFO", "This is an info message."); logMessage("ERROR", "This is an info message.");
function logInfo($level, $message) { logMessage("INFO", "This is an info message.") . PHP_EOL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function logInfo($message) {\n\tlogMessage(\" INFO\", $message);\n}", "abstract public function log( $message );", "private static function log($message)\n\t{\n\t}", "public function log($message) {\n }", "public function log($message) {\n }", "public function log($message) {\n }", "function m...
[ "0.7300014", "0.69796664", "0.69163626", "0.67127705", "0.67127705", "0.67127705", "0.67086464", "0.66128373", "0.65810376", "0.6557299", "0.65423876", "0.65381086", "0.6509108", "0.64677715", "0.64386314", "0.6423879", "0.64109194", "0.63407415", "0.6285348", "0.6281318", "0...
0.66175246
7
Create a new User signup.
function __construct($user_signup_id = null, $email = null, $name = null, $school = null, $city = null, $exam = null) { parent::__construct(); $this->user_signup_id = $user_signup_id; $this->email = $email; $this->name = $name; $this->school = $school; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createAction()\r\n {\r\n $user = new User($_POST);\r\n\r\n if ($user->save()) {\r\n\t\t\t\r\n\t\t\tsession_regenerate_id(true);\r\n\r\n\t\t\t$_SESSION['user_id'] = User::getIdSavedUser($_POST['email']);\r\n\t\t\t\r\n\t\t\tIncome::saveDefaultIncomes($_SESSION['user_id']);\r\n\t\t\tE...
[ "0.79961836", "0.77646565", "0.77646565", "0.75228095", "0.75228095", "0.75228095", "0.75228095", "0.75188625", "0.7490532", "0.7429168", "0.73887247", "0.73157823", "0.7309529", "0.7301423", "0.72656256", "0.7247693", "0.7230459", "0.7227161", "0.71925914", "0.71906954", "0....
0.0
-1
Load a user by id.
public static function LoadById($user_signup_id) { $result = &get_instance()->db->get_where("UserSignup", array("user_signup_id" => $user_signup_id)); $result = $result->result(); return count($result) != 0 ? UserSignup_model::LoadWithData($result[0]) : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadFromId(){\r\n\t\t$id = $this -> getUserId();\r\n\t\tif(is_numeric($id))\r\n\t\t\t$this -> loadFromQuery(\"select * from UserTab where UserId=\".$id);\r\n\t }", "protected function loadUser($id = null) {\n if ($this->_model === null) {\n if ($id !== null)\n $...
[ "0.7790831", "0.7673898", "0.7507722", "0.74440145", "0.7401554", "0.7377561", "0.7366506", "0.7276919", "0.72493", "0.7241848", "0.72263557", "0.71842587", "0.71654654", "0.7155801", "0.71489716", "0.7134274", "0.7134274", "0.7123191", "0.7123191", "0.7123191", "0.7123191", ...
0.0
-1
Load a user with an object.
public static function LoadWithData($row) { return new Users_model( $row->user_signup_id, $row->email, $row->name, $row->school, $row->city, $row->exam ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadUser(ArenaAuthUser $user): ArenaAuthUser;", "public function __loadUser()\n {\n\t$facebook = $this->fb;\n\t$this->user = $facebook->api(\"/me\", \"GET\");\n\t$this->userid = $facebook->getUser();\n\treturn;\n }", "function load($oUser)\n {\n $this->p_oUser = $oUser;\n $this...
[ "0.7142054", "0.7139991", "0.67958266", "0.66745526", "0.6604551", "0.6586456", "0.6582294", "0.6531218", "0.6523283", "0.65032524", "0.6495473", "0.64742714", "0.6466221", "0.64643574", "0.6418366", "0.641464", "0.63526106", "0.632541", "0.631544", "0.62856746", "0.62679374"...
0.0
-1
This method is invoked right before an action is to be executed (after all possible filters.) It checks the existence of the db and mailer components.
public function beforeAction($action) { try { if (parent::beforeAction($action)) { $this->db = Instance::ensure($this->db, Connection::className()); $this->mailer = Instance::ensure($this->mailer, BaseMailer::className()); return true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function beforeAction () {\n\t}", "public function preDispatch()\n {\n $config = Mage::getModel('emailchef/config');\n /* @var $config EMailChef_EMailChefSync_Model_Config */\n\n if (!$config->isTestMode()) {\n die('Access Denied.');\n }\n\n return paren...
[ "0.66690224", "0.65766007", "0.63420904", "0.63256377", "0.6322047", "0.631757", "0.6311919", "0.6287897", "0.6272253", "0.6234409", "0.6213725", "0.6173399", "0.61450213", "0.6123049", "0.6122034", "0.611529", "0.6095443", "0.60484165", "0.60472876", "0.6037809", "0.60366553...
0.6172336
12
Returns new batch of emails.
public function getNewBatch($limit = 0) { try { if (!is_numeric($limit) || $limit <= 0) { $limit = $this->limit; } return (new Query)->from($this->queueTable)->where(['status' => Email::STATUS_PENDING])->orderBy(['id' => SORT_ASC])->limit((int)$limit)->all...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getAllEmails() {\n return getALL('SELECT * FROM mail');\n}", "public function retrieveAllMails()\n {\n $mails = new Collection();\n for($i = 1; $i <= $this->countAllMails(); $i++)\n {\n $mails->add($this->retrieveMail($i));\n }\n return $mails;\n }"...
[ "0.66733646", "0.6473951", "0.63431835", "0.622159", "0.62198263", "0.6171638", "0.60787576", "0.6068922", "0.60489345", "0.6030958", "0.6009459", "0.5984304", "0.59592617", "0.5939995", "0.5923181", "0.59166425", "0.5830269", "0.58290964", "0.5827383", "0.5813304", "0.578094...
0.53512585
64
Sends email using mailer component.
public function send($email, $fromName, $fromEmail) { try { $mailer = Yii::$app->mailer->compose(); $mailer->setFrom([$fromEmail => $fromName]); $mailer->setTo($email['email']); $mailer->setSubject($email['subject']); $mailer->setHtmlBody($email['c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function send_email() {\n $toemail = $this->params['toemail'];\n $subject = $this->params['subject'];\n $content = $this->params['content'];\n }", "public function sendEmail()\n {\n SendEmailMessage::dispatch($this->address, $this->messageString);\n }", "public funct...
[ "0.7576585", "0.74358463", "0.7267071", "0.71381867", "0.7133932", "0.70873487", "0.7065579", "0.7036964", "0.7033003", "0.6988103", "0.69720435", "0.6963289", "0.6961608", "0.6953657", "0.6953065", "0.6916175", "0.69086725", "0.6898545", "0.68729955", "0.6834305", "0.6828511...
0.0
-1
Tries to send email from queue and updates its status.
public function process($email, $fromName, $fromEmail, $maxAttempts) { try { if ($this->send($email, $fromName, $fromEmail)) { $this->db->createCommand()->update($this->queueTable, ['status' => Email::STATUS_SENT], ['id' => $email['id']])->execute(); return true; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function emailQueue() {\n\t\t$this->EmailQueue->processQueue(); exit;\n\t}", "public function sendNow() {\n if ($this->getStatus() != PhabricatorMailOutboundStatus::STATUS_QUEUE) {\n throw new Exception(pht('Trying to send an already-sent mail!'));\n }\n\n $mailers = self::newMailers(\n ...
[ "0.70376354", "0.7000127", "0.6796572", "0.678354", "0.66565245", "0.6585186", "0.65808666", "0.65264106", "0.649903", "0.64858735", "0.64756495", "0.6466599", "0.6459243", "0.64565337", "0.6268357", "0.62525076", "0.6237372", "0.6220499", "0.6189492", "0.61574066", "0.612343...
0.5607532
86
Checks the current status for the mail queue.
public function actionCheck() { $version = $this->module->version; $this->stdout("\nPodium mail queue check v{$version}\n"); $this->stdout("------------------------------\n"); $this->stdout(" EMAILS | COUNT\n"); $this->stdout("------------------------------\n"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkStatus()\n {\n $status = $this->autoTestController->checkStatus(Tools::getValue('queueItemId', 0));\n\n if ($status['finished']) {\n $this->autoTestController->stop(\n function () {\n return LoggerService::getInstance();\n ...
[ "0.75074786", "0.64759314", "0.6268933", "0.62673074", "0.6235321", "0.6205305", "0.6134021", "0.6037973", "0.6011117", "0.5996511", "0.5968188", "0.5931188", "0.5930255", "0.59029675", "0.5854616", "0.58477783", "0.5825312", "0.5803333", "0.57532495", "0.57344973", "0.571474...
0.72175175
1
Constructor method for TravelerInfoType
public function __construct(array $airTraveler = array(), array $specialReqDetails = array()) { $this ->setAirTraveler($airTraveler) ->setSpecialReqDetails($specialReqDetails); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct( $info ) {\n\t\t$this->info = $info;\n\t}", "public function __construct(array $info = array())\n {\n $this->info = $info;\n //\n }", "public function __construct(array &$info = array())\n {\n $this->_data =& $info;\n }", "function __construct() {\...
[ "0.6601762", "0.61173695", "0.59744793", "0.59528565", "0.5923678", "0.57771635", "0.56732047", "0.567051", "0.56564504", "0.5640343", "0.5640343", "0.5639698", "0.5628245", "0.5622265", "0.561935", "0.55848974", "0.55779254", "0.557342", "0.5572449", "0.55553937", "0.5514061...
0.0
-1
Add item to AirTraveler value
public function addToAirTraveler(\Devlabs91\GenericOtaHotelApiService\StructType\AirTraveler $item) { // validation for constraint: itemType if (!$item instanceof \Devlabs91\GenericOtaHotelApiService\StructType\AirTraveler) { throw new \InvalidArgumentException(sprintf('The AirTraveler p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function add_item();", "public function insertItem($item){\n\t\t$hour = date ( 'H', strtotime ( $item->list_time ) );\n\t\t$this->hours[$hour][DayShelfStrategy::HOUR_FIELD_ITEMLIST][] = $item;\n\t}", "public function add($item);", "public function add($item);", "public function addToRelated...
[ "0.58136964", "0.57763314", "0.5612819", "0.5612819", "0.5572279", "0.55448747", "0.5531788", "0.5530503", "0.5459225", "0.5439875", "0.5415185", "0.53940356", "0.5376895", "0.53649193", "0.53294164", "0.52387327", "0.5221672", "0.5210484", "0.5189986", "0.5168357", "0.515185...
0.6691463
0
Add item to SpecialReqDetails value
public function addToSpecialReqDetails($item) { // validation for constraint: itemType if (!false) { throw new \InvalidArgumentException(sprintf('The SpecialReqDetails property can only contain items of anyType, "%s" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addItemsDetails($description,$price,$quantity,$reference){\r\n\t\tif ( $this->_requestDetails==null )\r\n\t\t\t$this->_requestDetails = array();\r\n\t\t$nItem = count($this->_requestDetails);\r\n\t\tarray_push($this->_requestDetails, array(\"L_PAYMENTREQUEST_0_NAME\".$nItem=>$description,\"L_PAYMEN...
[ "0.6257337", "0.6117926", "0.5709238", "0.5603667", "0.5565306", "0.54787046", "0.54787046", "0.5448962", "0.54175395", "0.5417266", "0.54095626", "0.5386296", "0.5352028", "0.53457475", "0.5344383", "0.53223836", "0.52587044", "0.52325076", "0.51924473", "0.5169509", "0.5165...
0.78590995
0
Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
public static function __set_state(array $array) { return parent::__set_state($array); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function ExportObject() {\n // Init object\n $plugin = new stdClass();\n // Set values\n $plugin->Name = $this->Name;\n $plugin->Version = $this->Version;\n $plugin->Author = $this->Author;\n $plugin->About = $this->About;\n $plugin->Root = $this->Roo...
[ "0.69526446", "0.69239384", "0.6577118", "0.63774145", "0.6145065", "0.6124998", "0.6056139", "0.60397303", "0.5923542", "0.5923542", "0.5923542", "0.5923542", "0.5923542", "0.5859145", "0.5837572", "0.58124256", "0.5801868", "0.5717864", "0.5717454", "0.5713008", "0.56903183...
0.0
-1
Method returning the class name
public function __toString() { return __CLASS__; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClassName();", "public function getClassName();", "public function getClassName() ;", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName() {}", "public function getClassName()\n {\n ...
[ "0.87522393", "0.87522393", "0.8751158", "0.87397957", "0.87397957", "0.87397957", "0.87397957", "0.8731564", "0.8696754", "0.8673495", "0.8638432", "0.8615335", "0.8603119", "0.8566906", "0.8562364", "0.8555002", "0.85503733", "0.85503733", "0.85425884", "0.8533183", "0.8529...
0.0
-1
Get trade type config.
protected function getTradeType() { return 'MICROPAY'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPayloadConfig($type);", "abstract protected function getTradeType();", "public static function getConfig(string $type)\n\t{\n\t\tif (!isset(self::$config[$type])) {\n\t\t\tself::$config[$type] = Config::db($type) ?? Config::db('base');\n\t\t}\n\t\treturn self::$config[$type];\n\t}", "publi...
[ "0.6422", "0.638278", "0.63823605", "0.59242076", "0.59021795", "0.5893724", "0.583978", "0.58318454", "0.58126444", "0.5805928", "0.5707924", "0.56974876", "0.5642915", "0.5553107", "0.55371577", "0.55371577", "0.55371577", "0.55371577", "0.55371577", "0.55371577", "0.553715...
0.56521416
12
Gets the value of jobScheduler.
public function getJobScheduler() { return $this->jobScheduler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJob(SchedulerInterface $scheduler);", "public function getRemoteScheduler()\n {\n return $this->remoteScheduler;\n }", "public function getRemoteScheduler()\n {\n return $this->remoteScheduler;\n }", "public function getJob()\n {\n return $this->get(self...
[ "0.7225849", "0.6790756", "0.6790756", "0.6758146", "0.67573243", "0.6533129", "0.6533129", "0.6409407", "0.63870674", "0.63131", "0.62630975", "0.6262035", "0.6011149", "0.592905", "0.5880879", "0.5874512", "0.5828768", "0.576533", "0.5743308", "0.573874", "0.57279265", "0...
0.83196986
0
Sets the value of jobScheduler.
public function setJobScheduler(JobScheduler $jobScheduler) { $this->jobScheduler = $jobScheduler; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setScheduler() {}", "public function setJob(SchedulersJob $job)\n {\n $this->job = $job;\n }", "public function getJobScheduler()\n {\n return $this->jobScheduler;\n }", "public function setCommand(SchedulerCommand $command) {\n $this->command = $command;\n ...
[ "0.7628835", "0.6624116", "0.6425214", "0.6099231", "0.59361845", "0.59361845", "0.58539003", "0.57756466", "0.5680822", "0.56208795", "0.54188806", "0.5378278", "0.53535354", "0.53535354", "0.52828336", "0.5164766", "0.5161749", "0.51417303", "0.5100599", "0.5051072", "0.504...
0.6536229
2
Gets the value of maxProcesses.
public function getMaxProcesses() { return $this->maxProcesses; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxProcesses(): int\n {\n return $this->maxProcesses;\n }", "public function getMaxJobsPerProcess(): int\n {\n return $this->maxJobsPerProcess;\n }", "public function getMinProcesses(): int\n {\n return $this->minProcesses;\n }", "public function getM...
[ "0.8922041", "0.77285427", "0.70736605", "0.6827342", "0.6705074", "0.66877884", "0.65899014", "0.6569188", "0.6443798", "0.64368933", "0.6434681", "0.63893414", "0.6357359", "0.6356836", "0.633951", "0.6330948", "0.6294615", "0.6287439", "0.62839246", "0.62774795", "0.626615...
0.91522306
0
Sets the value of maxProcesses.
public function setMaxProcesses($maxProcesses) { $this->maxProcesses = $maxProcesses; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMaxProcesses(int $maxProcesses): void\n {\n $this->maxProcesses = $maxProcesses;\n }", "public function setMaxJobsPerProcess(int $maxJobsPerProcess): void\n {\n $this->maxJobsPerProcess = $maxJobsPerProcess;\n }", "public function getMaxProcesses(): int\n {\n ...
[ "0.8677376", "0.70779717", "0.70726836", "0.70328265", "0.63711935", "0.62363136", "0.62348264", "0.6233567", "0.62086964", "0.6094635", "0.5951544", "0.595038", "0.59419936", "0.58988464", "0.5826341", "0.576923", "0.5750858", "0.5725557", "0.5719905", "0.57037616", "0.56252...
0.7850646
1
Gets the value of name.
public function getName() { return $this->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNamedValue(): string {\n return self::$namedValues[$this->value];\n }", "public function get($name)\n {\n return $this->values[$name];\n }", "public function getName() {\n //return the value name\n return $this->Name;\n }", "function getName () {retu...
[ "0.75381005", "0.7405078", "0.7381985", "0.7282211", "0.7276208", "0.7266412", "0.7227739", "0.7189687", "0.7098494", "0.7092022", "0.70773", "0.7076518", "0.70735705", "0.70502377", "0.70491976", "0.70451844", "0.7038331", "0.7033327", "0.7031629", "0.7031629", "0.7031629", ...
0.0
-1
Sets the value of name.
public function setName($name) { $this->name = $name; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }", "public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }", "public function setName(?string $name): void\n {\n $this->name['value'] = $name;\n }", "public...
[ "0.86565363", "0.86565363", "0.86565363", "0.8521062", "0.84509873", "0.8440147", "0.841955", "0.841955", "0.8405379", "0.8386645", "0.8386294", "0.83700997", "0.8350948", "0.83488965", "0.8324642", "0.8321818", "0.83181703", "0.83170635", "0.83061904", "0.8300407", "0.830040...
0.0
-1
Gets the value of remoteScheduler.
public function getRemoteScheduler() { return $this->remoteScheduler; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJobScheduler()\n {\n return $this->jobScheduler;\n }", "public function setRemoteScheduler($remoteScheduler)\n {\n $this->remoteScheduler = $remoteScheduler;\n\n return $this;\n }", "public function setRemoteScheduler($remoteScheduler)\n {\n $this->...
[ "0.6188893", "0.60450715", "0.60450715", "0.58440465", "0.5839281", "0.5795439", "0.57819617", "0.55901086", "0.5466731", "0.5452755", "0.538558", "0.535038", "0.5342178", "0.5321049", "0.53181267", "0.5267654", "0.5266548", "0.52626693", "0.52548325", "0.52446395", "0.519122...
0.8206617
1
Sets the value of remoteScheduler.
public function setRemoteScheduler($remoteScheduler) { $this->remoteScheduler = $remoteScheduler; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setScheduler() {}", "public function getRemoteScheduler()\n {\n return $this->remoteScheduler;\n }", "public function getRemoteScheduler()\n {\n return $this->remoteScheduler;\n }", "public function addRemoteScheduler(\n RemoteScheduler $remoteScheduler\n )...
[ "0.69327307", "0.625823", "0.625823", "0.59188825", "0.5682513", "0.54953665", "0.53554296", "0.52054965", "0.5185135", "0.5155908", "0.51381963", "0.5079699", "0.50524247", "0.50249225", "0.5009302", "0.49716103", "0.49573696", "0.49493518", "0.4899536", "0.4789742", "0.4771...
0.70448786
1
Gets the value of replace.
public function getReplaceExisting() { return $this->replaceExisting; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function replaceContent() {\n \treturn $this->_doReplacement();\n\t}", "public function getReplace()\n {\n return $this->readOneof(4);\n }", "public function getReplacementText();", "public function get_replace()\n {\n return preg_replace('/^insert/', 'replace', $this->get_in...
[ "0.66474456", "0.61618227", "0.61497897", "0.6129005", "0.5872304", "0.58652705", "0.56982577", "0.5667266", "0.5596112", "0.5559531", "0.5470766", "0.54267204", "0.53907233", "0.5325346", "0.5324983", "0.5301073", "0.52974194", "0.52885115", "0.5230831", "0.5224544", "0.5222...
0.5592575
9
Sets the value of replace.
public function setReplaceExisting($replace) { $this->replaceExisting = $replace; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function replace($key, $value, $replacement);", "public function setValue($search, $replace, $limit = -1)\n {\n $pattern = '|\\$\\{([^\\}]+)\\}|U';\n preg_match_all($pattern, $this->_documentXML, $matches);\n foreach ($matches[0] as $value) {\n $valueCleaned = preg_repla...
[ "0.6478835", "0.6086138", "0.605601", "0.59226733", "0.5859709", "0.58564544", "0.5773983", "0.5718874", "0.57151866", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0.56689143", "0....
0.0
-1
Gets the value of spoolerId.
public function getSpoolerId() { return $this->spoolerId; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getShoptId()\n {\n return $this->getParameter('shop_id');\n }", "public function id()\n\t{\n\t\treturn $this->SqueezePlyrID ;\n\t}", "function getSId() {\n return $this->sId;\n }", "public function getSteamId() : string\n {\n return $this->steamId;\n }", ...
[ "0.6924408", "0.66728663", "0.66101444", "0.6495256", "0.6418618", "0.63752896", "0.63141745", "0.63072616", "0.6307243", "0.62718004", "0.62631947", "0.6237434", "0.62312007", "0.620991", "0.6207137", "0.61597025", "0.6155357", "0.61525714", "0.6122486", "0.610456", "0.61014...
0.8963735
0
Sets the value of spoolerId.
public function setSpoolerId($spoolerId) { $this->spoolerId = $spoolerId; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSpoolerId()\n {\n return $this->spoolerId;\n }", "function setDevId($value)\n {\n $this->_props['DevId'] = $value;\n }", "public function setShoeID($value) {\n\t\t$this->_shoe_id = $value;\n\t}", "public function setId($workerId)\n\t{\n\t\t$this->id = $workerId;\n\t}", ...
[ "0.7614699", "0.5765551", "0.5629419", "0.562274", "0.56028014", "0.5570891", "0.5570046", "0.5528579", "0.5524883", "0.5508818", "0.54853743", "0.5332341", "0.532547", "0.52503264", "0.5247285", "0.52160317", "0.5198355", "0.5178315", "0.5173086", "0.51405865", "0.513875", ...
0.74592406
1
Gets the value of ignoreRemoteSchedulers.
public function getIgnoreRemoteSchedulers() { return $this->ignoreRemoteSchedulers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setIgnoreRemoteSchedulers($ignoreRemoteSchedulers)\n {\n $this->ignoreRemoteSchedulers = $ignoreRemoteSchedulers;\n\n return $this;\n }", "public function getRemoteScheduler()\n {\n return $this->remoteScheduler;\n }", "public function getRemoteScheduler()\n ...
[ "0.69714403", "0.5693276", "0.5693276", "0.53177327", "0.5224337", "0.52107793", "0.5139619", "0.51013875", "0.5060054", "0.50352335", "0.49342975", "0.49088922", "0.487296", "0.4866089", "0.48356846", "0.47815722", "0.47778866", "0.47384715", "0.47315", "0.47205272", "0.4691...
0.8771035
0
Sets the value of ignoreRemoteSchedulers.
public function setIgnoreRemoteSchedulers($ignoreRemoteSchedulers) { $this->ignoreRemoteSchedulers = $ignoreRemoteSchedulers; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getIgnoreRemoteSchedulers()\n {\n return $this->ignoreRemoteSchedulers;\n }", "public function setRemoteScheduler($remoteScheduler)\n {\n $this->remoteScheduler = $remoteScheduler;\n\n return $this;\n }", "public function setRemoteScheduler($remoteScheduler)\n ...
[ "0.69477856", "0.48181123", "0.48181123", "0.457614", "0.45135045", "0.44640344", "0.4446317", "0.4367527", "0.43238932", "0.42298776", "0.4220765", "0.4196584", "0.41918296", "0.41889003", "0.41695395", "0.41565666", "0.41542816", "0.41542816", "0.41542068", "0.41521546", "0...
0.80260164
0
Add RemoteScheduler in remoteSchedulerCollection
public function addRemoteScheduler( RemoteScheduler $remoteScheduler ) { $this->remoteSchedulerCollection[] = $remoteScheduler; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setRemoteScheduler($remoteScheduler)\n {\n $this->remoteScheduler = $remoteScheduler;\n\n return $this;\n }", "public function setRemoteScheduler($remoteScheduler)\n {\n $this->remoteScheduler = $remoteScheduler;\n\n return $this;\n }", "public function g...
[ "0.6572373", "0.6572373", "0.6366768", "0.6366768", "0.5702534", "0.5109764", "0.5058318", "0.48950315", "0.47843176", "0.4772766", "0.47531956", "0.47453848", "0.47324267", "0.47270203", "0.47241023", "0.47124407", "0.4704427", "0.46833146", "0.4660502", "0.4655491", "0.4651...
0.7516411
0
Returns the name of the relation.
public static function getRelationName(): Name { return new Name('get the score'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRelationshipName();", "public function getRelationshipName() {\n\t\treturn self::RelationshipNamePrefix . $this->getToName() . self::RelationshipNameSuffix;\n\t}", "abstract protected function relationName(): string;", "public function getRelationName()\n {\n if ($this->_poll_nam...
[ "0.80709964", "0.79545003", "0.79404664", "0.7932364", "0.79135466", "0.7878098", "0.7878098", "0.782148", "0.7706934", "0.7662896", "0.76567113", "0.75715476", "0.75588477", "0.75062716", "0.7483293", "0.74785393", "0.7473711", "0.7423222", "0.73826665", "0.7370776", "0.7353...
0.76001465
11
verify that the account exists
function check_requirements() { if (!$this->obj_chart->verify_id()) { log_write("error", "page_output", "The requested account (". $this->id .") does not exist - possibly the account has been deleted."); return 0; } unset($sql_obj); // check the lock status of the account $this->locked = $this->ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isAccountExist()\n {\n $sessionId = \\Session::getId();\n $account = Account::where('session_id', $sessionId)->first();\n if (!$account) return false;\n\n return true;\n }", "public function checkUserExist($account){\n $query = \"select * from members w...
[ "0.7373562", "0.72912043", "0.724113", "0.71496433", "0.70607585", "0.7005978", "0.69454396", "0.6853333", "0.66357553", "0.6546905", "0.65416276", "0.6537872", "0.6524142", "0.64970344", "0.64891005", "0.6411819", "0.6387578", "0.63619477", "0.63420284", "0.6316622", "0.6315...
0.0
-1
/ Define form structure
function execute() { $this->obj_form = New form_input; $this->obj_form->formname = "chart_delete"; $this->obj_form->language = $_SESSION["user"]["lang"]; $this->obj_form->action = "accounts/charts/delete-process.php"; $this->obj_form->method = "post"; // general $structure = NULL; $structure["fiel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function readForm() {\n\t\t$this->FiscaalGroepID = $this->formHelper(\"FiscaalGroepID\", 0);\n\t\t$this->FiscaalGroupType = $this->formHelper(\"FiscaalGroupType\", 0);\n\t\t$this->GewijzigdDoor = $this->formHelper(\"GewijzigdDoor\", 0);\n\t\t$this->GewijzigdOp = $this->formHelper(\"GewijzigdOp\", \"\");\n\t}", "...
[ "0.7210571", "0.7209898", "0.71665543", "0.7095763", "0.68881524", "0.68881524", "0.6853783", "0.6790057", "0.67896426", "0.67896426", "0.6770245", "0.6731574", "0.67293286", "0.66824174", "0.66691154", "0.6665932", "0.6597495", "0.655978", "0.6554897", "0.65390325", "0.65242...
0.0
-1
Create a new command instance.
public function __construct() { parent::__construct(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun= true; }\n public function wasRun() { return self::$wasRun; }\n }');\n }", "pu...
[ "0.8010746", "0.7333379", "0.72606754", "0.7164165", "0.716004", "0.7137585", "0.6748632", "0.67234164", "0.67178184", "0.6697025", "0.6677973", "0.66454077", "0.65622073", "0.65437883", "0.64838654", "0.64696646", "0.64292693", "0.6382209", "0.6378306", "0.63773245", "0.6315...
0.0
-1
Execute the console command.
public function handle() { $locations = file_get_contents(public_path().'/locations.json'); $locations = json_decode($locations, true); foreach ($locations as $location) { $this->info("ID: ". $location['id']); Location::insert($location); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "public function handle()\n {\n //get us the Converter class instance and call the convert() meth...
[ "0.6469962", "0.6463639", "0.64271367", "0.635053", "0.63190264", "0.62747604", "0.6261977", "0.6261908", "0.6235821", "0.62248456", "0.62217945", "0.6214421", "0.6193356", "0.61916095", "0.6183878", "0.6177804", "0.61763877", "0.6172579", "0.61497146", "0.6148907", "0.614841...
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show(ArchivoCotizacion $archivoCotizacion) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit(ArchivoCotizacion $archivoCotizacion) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, ArchivoCotizacion $archivoCotizacion) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy(ArchivoCotizacion $archivoCotizacion) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Realiza o buffer dos dados
public function count() { $this->buffer(); // Armazena quantos registro possui o array $this->count = count($this->toArray()); // Retorna para o primeiro elemento $this->rewind(); // Retorna a quantidade de dados return $this->count; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBuffer() {}", "public function buffered();", "public function startBuffer(): void {\n\t\tob_start();\n\t}", "private function clearDataBuffer( )\n {\n $this->data_buffer = array( );\n $this->err_message = '';\n }", "public function dumpBuffer()\n {/*{{{...
[ "0.6636572", "0.6280948", "0.6265262", "0.6113599", "0.5974401", "0.59731996", "0.58970517", "0.5886489", "0.5856397", "0.5820174", "0.58147407", "0.5813713", "0.5813713", "0.5768977", "0.57487303", "0.57180756", "0.5679499", "0.56664276", "0.55921996", "0.5581137", "0.555707...
0.0
-1
Cuenta los articulos en el carrito
function CuentaUnidades($CardCode){ $Total_Articulos = 0; $Total_Pedido = 0; if($this->con->conectar()==true){ $Resultado = mysql_query("SELECT COUNT( * ) as NumItems FROM `Carrito` WHERE `CardCode` = '" .$CardCode. "'"); if($Resultado){ $Result = mysql_fetch_array($Resultado) ; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function articulos(){\n \n $articulos=Articulo::get();\n \n $pdf=PDF::loadview('pdf.articulos',compact('articulos'));\n return $pdf->stream('Articulos-SIS.pdf');\n }", "public function articulos()\n {\n return $this->hasMany('PlanificaMYPE\\Art...
[ "0.6288305", "0.6101461", "0.605242", "0.5989452", "0.59774977", "0.59338975", "0.5855319", "0.5849439", "0.5820192", "0.57838005", "0.5783316", "0.5770013", "0.57577187", "0.57519597", "0.571835", "0.56858397", "0.5685137", "0.5681337", "0.56791395", "0.5637577", "0.56313723...
0.0
-1
obtiene los datos del articulo a insertar en el rutero
function ConsultaDatosdeArituclo($CodArticulo){ try{ if($this->con->conectar()==true){ $NumPaginas ; $TotalFinalas; $result = mysql_query("SELECT * FROM `Articulos` where ItemCode='".$CodArticulo."'"); return $result; } } catch(Exception $e){ echo $e;} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function insertArticulo($etiqueta){\r\n\t$nombreimg = $_FILES[\"imagen\"]['name'];\r\n\t\r\n\t$articulo = new Articulo;\r\n\t$material = getMaterial($etiqueta->material);\r\n\t$acabado = getAcabado($etiqueta->acabado);\r\n\t\r\n\t$articulo->articuloId = getUltimoArticulo()+1;\r\n\t$articulo->nombre = $etiqueta->no...
[ "0.7235588", "0.7226794", "0.7207851", "0.71735936", "0.7156793", "0.71288794", "0.71061295", "0.70772624", "0.7052133", "0.7041039", "0.70211124", "0.6915088", "0.68896836", "0.688191", "0.6879282", "0.6879005", "0.68634254", "0.6849441", "0.6838387", "0.6830991", "0.6786887...
0.0
-1
cuando le dan enviar al pedido , se insertara el articulo al turero del cliente
function InsertarAlRutero($CodArticulo,$CardCode){ //consulta todos los datos del articulo $result=$this->ConsultaDatosdeArituclo($CodArticulo); if( $result) { while( $DatoRutero = mysql_fetch_array($result) ) { //inserta los datos al rutero $this->AgregalineaARutero($DatoRute...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function insertForosComentarios(){\n\t\tif($this->get_request_method() != \"POST\") $this->response('', 406);\n\n\t\t//get data sent\n\t\t$data = file_get_contents(\"php://input\");\n\t\t$parametros = $this->jsonDecode($data);\n\t\t$user = $parametros->user;\n\t\t$ses_id = $parametros->ses_id;\n\t\t$id_tema...
[ "0.7210985", "0.71000344", "0.7065209", "0.7060017", "0.69389707", "0.69246984", "0.68504465", "0.68451905", "0.68101484", "0.6780883", "0.6758263", "0.67288923", "0.6692599", "0.66860694", "0.6674472", "0.66703045", "0.6654263", "0.66345197", "0.66182727", "0.6604472", "0.65...
0.643746
44
consulta pedidos prontos a facturar
function CuentaPedidosProntoAFacturar($CardCode){ $Total_Pedido = 0; $NumPedido = 0; $FechaCreacion = 0; $FechaFin = 0; $Total = 0; $TotalGeneral = 0; if($this->con->conectar()==true){ $Resultado = mysql_query("SELECT * FROM `PedidosProntosAFacturar` WHERE `CardCode` = '" .$CardCod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function consultasPendientes(){\n\n\t\t$resultado = array();\n\t\t\n\t\t$query = \"SELECT count(C.idConsulta) as cantidadConsultas\n\t\t\n\t\t\t\t\t\tFROM tb_consultas AS C \n\t\t\t\t\t\t\n \t\t\t\tWHERE Not C.idConsulta IN (SELECT idTipoDetalle FROM tb_pago_factura_caja_detalle WHERE tipoDetalle = 'C...
[ "0.64708805", "0.6157248", "0.61484003", "0.6116223", "0.6113456", "0.6052083", "0.6030047", "0.60179204", "0.6017553", "0.6004943", "0.6003943", "0.59942424", "0.59890795", "0.59845006", "0.59797084", "0.59740126", "0.59704584", "0.59461904", "0.5944612", "0.5936868", "0.593...
0.0
-1
consulta pedidos prontos a facturar
function DetallePedidosProntoAFacturar($CardCode,$NumPedido){ if($this->con->conectar()==true){ $Resultado = mysql_query("SELECT * FROM `PedidosProntosAFacturar` WHERE `CardCode` = '" .$CardCode. "' and `NumPedido` = '" .$NumPedido. "'"); if($Resultado){ echo"<a class='ClassBotones' id='IrPago...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function consultasPendientes(){\n\n\t\t$resultado = array();\n\t\t\n\t\t$query = \"SELECT count(C.idConsulta) as cantidadConsultas\n\t\t\n\t\t\t\t\t\tFROM tb_consultas AS C \n\t\t\t\t\t\t\n \t\t\t\tWHERE Not C.idConsulta IN (SELECT idTipoDetalle FROM tb_pago_factura_caja_detalle WHERE tipoDetalle = 'C...
[ "0.64708805", "0.6157248", "0.61484003", "0.6116223", "0.6113456", "0.6052083", "0.6030047", "0.60179204", "0.6017553", "0.6004943", "0.6003943", "0.59942424", "0.59890795", "0.59845006", "0.59797084", "0.59740126", "0.59704584", "0.59461904", "0.5944612", "0.5936868", "0.593...
0.0
-1
suma el total del pedido de un cliente
function SumaTotal($CardCode){ $Total_Pedido = 0; if($this->con->conectar()==true){ $Resultado = mysql_query("SELECT `Total` FROM `Carrito` WHERE `CardCode` = '" .$CardCode. "'"); if($Resultado){ while( $Articulos = mysql_fetch_array($Resultado) ) { $Total_Pedido = $Total_Pedido ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function GetSaldoTotalClientes()\n {\n \t$q\t=\tDoctrine_Query::create()\n \t->from('Cliente c');\n \t\n \t$cli\t=\t$q->execute();\n \t$total = 0;\n \tforeach ($cli as $c)\n \t{\n \t\t\t$saldoActual\t=\t$c->GetSaldo();\n \t\t\t$c->SaldoAc...
[ "0.78377634", "0.7443144", "0.73047245", "0.68369436", "0.6812505", "0.6801924", "0.6795666", "0.6689438", "0.6674467", "0.6620387", "0.65996027", "0.6570822", "0.6554332", "0.6501052", "0.64981157", "0.6493565", "0.64752024", "0.643997", "0.64246446", "0.6399232", "0.6398141...
0.6429448
18
Elimina un articulo del carrito de un cliente
function VerificaArticuloRepetido($Cod_Articulo,$CardCode){ if($this->con->conectar()==true){ $Resultado = mysql_query("SELECT COUNT( * )as 'Existe',Cantidad FROM `Carrito` WHERE `CardCode` = '" .$CardCode. "' and `CodArticulo`='" . $Cod_Articulo."'"); return $Resultado; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarCliente(){\n\t\t$this->procedimiento='rec.ft_cliente_ime';\n\t\t$this->transaccion='REC_CLI_ELI';\n\t\t$this->tipo_procedimiento='IME';\n\t\t\t\t\n\t\t//Define los parametros para la funcion\n\t\t$this->setParametro('id_cliente','id_cliente','int4');\n\n\t\t//Ejecuta la instruccion\n\t\t$this->arm...
[ "0.7065953", "0.6748302", "0.67217517", "0.6690003", "0.6649191", "0.6579007", "0.65606564", "0.65549356", "0.6548986", "0.6543675", "0.65331125", "0.65161234", "0.65058947", "0.6495071", "0.6491683", "0.6472106", "0.6452594", "0.64426535", "0.63995934", "0.63963586", "0.6395...
0.0
-1
Agrega linea al RUTERO
function AgregalineaARutero($ItemCode,$codbarras,$ItemName,$existencia,$lotes,$Unidad,$precio,$PrchseItem,$SellItem,$InvntItem,$AvgPrice,$Price,$frozenFor,$SalUnitMsr,$VATLiable,$lote,$U_Grupo,$SalPackUn,$FAMILIA,$CATEGORIA,$MARCA,$CardCode,$Disponible,$U_Gramaje, $DETALLE_1,$LISTA_A_DETALLE,$LISTA_A_SUPERMERCADO,$LIST...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newLine()\n {\n\n $stock = $this->getStock();\n $randomIndexStock = mt_rand(0, (count($stock)-1));\n $this->line = array_values(array_slice($stock, $randomIndexStock, 1, true));\n unset($stock[$randomIndexStock]);\n $this->stock = array_values($stock);\n }", "private function bor...
[ "0.6354664", "0.62507415", "0.6205322", "0.61445916", "0.5861204", "0.58325744", "0.58082145", "0.5759924", "0.57483983", "0.57270235", "0.5657175", "0.563837", "0.56062865", "0.55931914", "0.55268854", "0.5525172", "0.55222684", "0.55101484", "0.55045736", "0.54924804", "0.5...
0.0
-1
Agrega un articulo al carrito de un cliente
function Agrega($Cod_Articulo,$Descripcion,$Cantidad,$Precio,$Total,$CardCode,$Agente,$ComdicionPago,$Fecha,$Impuesto,$MontoImpuesto,$Descuento,$MontoDescuento,$ItemCode,$codbarras,$ItemName,$existencia,$lotes,$Unidad,$precio,$PrchseItem,$SellItem,$InvntItem,$AvgPrice,$Price,$frozenFor,$SalUnitMsr,$VATLiable,$lote,$U_G...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function altaCliente ($cliente){\r\n $this->clientes[] = $cliente; /// Este es el ejemplo de altaCliente que ha echo Jesús.\r\n }", "public function obtenerArticulosPorTipo(){\n log_message('DEBUG', \"#TRAZA | #TRAZ-PROD-TRAZASOFT | Camion | obtenerArticulosPorTipo()\");\n $rsp = $this->Mater...
[ "0.6769", "0.59649086", "0.58116716", "0.5800471", "0.577389", "0.57515746", "0.5745015", "0.5744867", "0.5737675", "0.5699315", "0.56696576", "0.56408423", "0.56384176", "0.56308216", "0.56282836", "0.5620897", "0.5619113", "0.56161904", "0.5601222", "0.5597932", "0.55951416...
0.0
-1
al darle enviar al pedido a bourne , inica el proceso de recorrer el pedido del carrito y dividirlo en pedidos de 19 lineas asignar el consecutivo de cada pedido he insertarlo en las tablas de encabezado y detalle de pedido luego de dibidirlo se empieza a generar el archivo in_pedid ya con todos los datos de la linea d...
function AgregaRevisame() { try{ $nombre_archivo = 'Revisame/25.mbg'; $contenido="0"; fopen($nombre_archivo, 'a+'); //Asegurarse primero de que el archivo existe y puede escribirse sobre el. if (is_writable("Revisame/25.mbg")) { if (!$gestor = fopen($nombre_archivo, 'a')) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function importarDocentes($archivo=$this->archivo){\n //cargamos el archivo\n $lineas = file($archivo); \n //inicializamos variable a 0, esto nos ayudará a indicarle que no lea la primera línea\n $i=0; \n //Recorremos el bucle para leer línea por línea\n foreach ($lineas as $linea_num => $linea)\n...
[ "0.655863", "0.6434376", "0.6365461", "0.62790376", "0.6234492", "0.62033105", "0.6190452", "0.6166531", "0.61564916", "0.6148032", "0.613789", "0.61157817", "0.6113524", "0.61007047", "0.6095197", "0.6093179", "0.60905313", "0.6047786", "0.6042181", "0.6005371", "0.59960717"...
0.0
-1