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
Get the error messages for the defined validation rules.
public function messages() { return [ 'title.required' => 'O título é obrigatório', 'description.required'=> 'A descrição é obrigatório', 'section_id.required'=>'A seção é obrigatório' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getValidationMessages();", "public function errorMessages()\n {\n return [\n self::RULE_REQUIRED => 'This field is required',\n self::RULE_EMAIL => 'This field must be a valid email address',\n self::RULE_MIN => 'Min length of this field must be {min}',\...
[ "0.82462656", "0.8072122", "0.79855305", "0.7869173", "0.7831077", "0.7776483", "0.7776483", "0.7589036", "0.75582355", "0.75402904", "0.75402904", "0.7525044", "0.75227535", "0.7516879", "0.7475822", "0.7457696", "0.7425241", "0.74180096", "0.7405273", "0.7405273", "0.740048...
0.0
-1
Get the posts for the pages.
public function companies() { return $this->hasMany('App\Company'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPages()\n {\n return $this->getPosts();\n }", "public function getPosts();", "public function getPosts();", "static function get_pages(){\n\t\tglobal $wpdb;\n\t\t$sql = \"SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'page' AND post_status = 'publish'\";\n\t\t\n\t\...
[ "0.79762226", "0.7587926", "0.7587926", "0.75838864", "0.7496552", "0.7429954", "0.7161099", "0.70881397", "0.70480144", "0.7034406", "0.7034406", "0.7034406", "0.6953173", "0.6936173", "0.6923194", "0.691767", "0.6909743", "0.68933684", "0.68912596", "0.68821144", "0.6879623...
0.0
-1
Get the item type that owns the item.
public function district() { return $this->belongsTo('App\DistrictOffice'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypeOfItem()\n {\n return $this->type;\n }", "public function getTipoItem()\n {\n return $this->tipo_item;\n }", "protected function _getItemType()\n {\n return $this->getItemType()\n ? $this->getItemType()\n : $this->getConfig()->get...
[ "0.82205683", "0.73993444", "0.737449", "0.7168789", "0.7143061", "0.711147", "0.6937231", "0.68404543", "0.66264707", "0.66264707", "0.66264707", "0.6625296", "0.6625296", "0.6625296", "0.6625296", "0.6625296", "0.6625296", "0.6625296", "0.6625296", "0.6625296", "0.6625296",...
0.0
-1
Get the item type that owns the item.
public function central() { return $this->belongsTo('App\CentralOffice'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypeOfItem()\n {\n return $this->type;\n }", "public function getTipoItem()\n {\n return $this->tipo_item;\n }", "protected function _getItemType()\n {\n return $this->getItemType()\n ? $this->getItemType()\n : $this->getConfig()->get...
[ "0.821994", "0.7398939", "0.73722017", "0.71682596", "0.71430695", "0.7111213", "0.69357187", "0.6839211", "0.6625035", "0.6625035", "0.6625035", "0.6623865", "0.6623865", "0.6623865", "0.6623865", "0.6623865", "0.6623865", "0.6623865", "0.6623865", "0.6623865", "0.6623865", ...
0.0
-1
/ Get office with admin
public static function getOfficesWithAdmin(){ $offices = self::all(); if(count($offices) > 0 ){ foreach($offices as $office){ $where = ['unit_id'=>$office->id,'role'=>3]; $office->head = TermRelation::findMyAdmin($where); $office->office_name =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getoffice()\n {\n return $this->office;\n }", "public function getOffice(){\r\n\t\t\treturn $this->office;\r\n\t\t}", "public function getOffice()\n {\n return $this->hasOne(MsOffice::className(), ['id' => 'office_id']);\n }", "public function show(Office $office)\n ...
[ "0.7151893", "0.70009077", "0.6762819", "0.6738008", "0.6738008", "0.67120373", "0.6674642", "0.6669353", "0.6448656", "0.642684", "0.6388795", "0.6348977", "0.6319506", "0.6291497", "0.6281836", "0.6202329", "0.6181629", "0.6121038", "0.61152744", "0.6013464", "0.59491885", ...
0.72466975
0
The HEREDOC terminator must not be indented TODO Can't use variables within HEREDOC for initializing class properties
public static function showHeader() { $title = (array_key_exists('headertitle', $_SESSION))? $_SESSION['headertitle']:""; echo "<!DOCTYPE html>\n"; echo "<html>\n"; echo "<head>\n"; echo "<title>$title</title>\n"; echo "</head>\n\t<body>\n"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function initialize () {\n $this->set_openingtag(\"<PRE[attributes]>\");\n\t $this->set_closingtag(\"</PRE>\");\n }", "public function __construct()\n {\n $this->result = '';\n $this->indent = 0;\n }", "function initialize () {\n $this->set_openingtag(\"\");\n\t$this->set_closingtag...
[ "0.6057925", "0.59777194", "0.5662421", "0.56376994", "0.5620864", "0.5604663", "0.56046057", "0.55005765", "0.54826176", "0.5477786", "0.5467602", "0.54026985", "0.5354833", "0.53276044", "0.5312626", "0.53105825", "0.5296456", "0.5291773", "0.5278873", "0.52639866", "0.5256...
0.0
-1
Creates a new rate.
public function __construct($value, \DateTimeInterface $date = null) { $this->value = (string) $value; $this->date = $date ?: new \DateTime(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function newRate(string $percentage, string $operator, int $amount): BookingRate\n {\n return $this->rates()->create([\n 'bookable_id' => static::getKey(),\n 'bookable_type' => static::class,\n 'percentage' => $percentage,\n 'operator' => $operator,\n ...
[ "0.7203546", "0.685958", "0.6459739", "0.6421608", "0.6408829", "0.64032394", "0.63497365", "0.63497365", "0.62897855", "0.62035644", "0.6171757", "0.61704195", "0.60858905", "0.60220295", "0.6018074", "0.60143894", "0.6000861", "0.5987628", "0.59868854", "0.5967426", "0.5952...
0.0
-1
Create a new controller instance.
public function __construct(HotelRepository $hotelRepo) { $this->middleware('auth'); $this->hotelRepo = $hotelRepo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82678324", "0.8173564", "0.78118384", "0.7706353", "0.76816905", "0.7659159", "0.74858105", "0.7406485", "0.7298472", "0.7253435", "0.7196091", "0.7174443", "0.7016074", "0.6989523", "0.69837826", "0.69728553", "0.69640046", "0.69357765", "0.6897687", "0.689282", "0.687757...
0.0
-1
Show the application dashboard.
public function index() { $search['q'] = request('q'); $hotels = $this->hotelRepo->findAll($search); return view('hotels.index',compact('hotels','search')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
Mostrar vista crear usuario
public function create() { return view('hotels.create'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function agregarUsuario(){\n \n }", "public function crearUsuario(){\n\t\t\n\t\t$fecha = date('dmYHis');\n\n\t\techo 'Ahora son las: ' . $fecha;\n\n\t\t/* User::create([\n\t\t\t'name' => 'Nombre ' . $fecha,\n\t\t\t'email' => 'email' . $fecha . '@gmail.com',\n\t\t\t'password' => Hash::make($fecha...
[ "0.75839585", "0.7326991", "0.7256162", "0.709685", "0.7095794", "0.7065498", "0.7061321", "0.7043238", "0.70100975", "0.6998299", "0.6977408", "0.69622916", "0.69339883", "0.6924712", "0.69102025", "0.688189", "0.68650466", "0.6856726", "0.68562114", "0.6850818", "0.6845967"...
0.0
-1
Mostrar vista editar usuario
public function edit($id) { $hotel = $this->hotelRepo->findById($id); return view('hotels.edit', compact('hotel')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function editar($id){\r\n $usuario = User::find($id);\r\n if(count($usuario)){\r\n if($_SESSION[\"inicio\"] == true){\r\n return Vista::crear('admin.usuario.crear',array(\r\n \"usuario\"=>$usuario,\r\n ));\r\n }\r\n ...
[ "0.76425356", "0.75540113", "0.7550991", "0.7330872", "0.73250073", "0.7286139", "0.7274534", "0.71942294", "0.71796405", "0.71678483", "0.71620935", "0.7159783", "0.7148923", "0.7128875", "0.7116304", "0.7106425", "0.7100442", "0.7096946", "0.70763", "0.7057084", "0.70560426...
0.0
-1
Show the application dashboard.
public function getHotels() { if(! request('q')) return []; $hotels = Hotel::Search(request('q'))->get()->all(); return $hotels; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77862287", "0.7761407", "0.7563901", "0.75170934", "0.746699", "0.74665695", "0.7367683", "0.73534966", "0.7348662", "0.7343759", "0.7328216", "0.73182577", "0.73092335", "0.728953", "0.72847724", "0.7275449", "0.7275449", "0.7275449", "0.7275449", "0.7253329", "0.7253329"...
0.0
-1
Display a listing of the resource.
public function index() { $user = auth()->user(); return view('modules.user.settings.index', compact('user')); }
{ "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) { // validation is done in the dedicated class. }
{ "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.8233183", "0.81894475", "0.6830127", "0.6498529", "0.6496276", "0.6469191", "0.64627224", "0.63619924", "0.6308743", "0.62809277", "0.6218707", "0.61915004", "0.617914", "0.6172935", "0.6137578", "0.6118736", "0.6107122", "0.6106576", "0.60931313", "0.60798067", "0.6046669...
0.0
-1
Show the form for editing the specified resource.
public function edit($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(UserSettingsRequest $request) { $input = $request->except(['_method', '_token']); foreach ($input as $key => $value) { setting()->set( $key, $value ); setting()->setExtraColumns(['user_id' => auth()->user()-...
{ "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) { // }
{ "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
Complete a word to known index (ex: lop => lopsem)
protected function completeWords() { $result = []; foreach ($this->words as $tokenizedWord) { $tokenizedWordAsObject = (object)$tokenizedWord; $word = $tokenizedWordAsObject->t; $wordLength = mb_strlen($word); if (!array_key_exists($word, $this->ind...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function manageWord($word, $index) {\n // normalize\n $word = mb_strtolower($word, $this->encoding);\n \n $termObj = new Term($word);\n\n // save the term\n if(!$this->uniqueMatchesStatus[$word]) {\n $termObj->save();\n $this->uniqueMatchesS...
[ "0.643471", "0.6247159", "0.6227434", "0.61774457", "0.61544365", "0.6124186", "0.60231775", "0.59879076", "0.5985807", "0.58367556", "0.56520677", "0.55810475", "0.5469587", "0.53566486", "0.533086", "0.5315547", "0.5313057", "0.53021646", "0.52767545", "0.52670574", "0.5262...
0.60038966
7
Look for exact exact word in our index
protected function searchForWords() { $result = []; foreach ($this->words as $tokenizedWord) { $tokenizedWordAsObject = (object)$tokenizedWord; $tokenizedWord = $tokenizedWordAsObject->t; if (array_key_exists($tokenizedWord, $this->index)) { forea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function lookupWord($word);", "function strposa($string, $words=array(), $offset=0) {\n $chr = array();\n //check by simlarity\n foreach($words as $word) {\n $res = checkExistanceBySimilarity($string,$word);\n if ($res !== false) $chr[$word] = $r...
[ "0.63369864", "0.62130415", "0.61996126", "0.6197496", "0.6181371", "0.6107627", "0.6095621", "0.60738146", "0.5880577", "0.5861435", "0.58369577", "0.5780188", "0.5767193", "0.57507014", "0.5737497", "0.5727895", "0.57134825", "0.57112896", "0.57068783", "0.5703456", "0.5695...
0.0
-1
Member/Volunteer membership number retrieval method
public function myaction() { $this->viewBuilder()->disableAutoLayout(); $this->viewBuilder()->setTemplate('take_action'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMemberInfo() {\n\n $memberModel = $GLOBALS[\"memberModel\"];\n // Get the member by the membership number\n $GLOBALS[\"member\"] = $memberModel->getOneByMemberNumber($_SESSION[\"MembershipNumber\"]);\n }", "public function getTotalMemberNo()\n\t{\n\t\t$sql = \"SELECT co...
[ "0.6867492", "0.6695405", "0.64711136", "0.64017874", "0.63812137", "0.63737786", "0.6300274", "0.6293497", "0.62851024", "0.6279738", "0.6233364", "0.61578727", "0.6136937", "0.6102325", "0.6046405", "0.5986256", "0.59737307", "0.594728", "0.59347445", "0.59347445", "0.59196...
0.0
-1
Member/Volunteer membership card retrieval method
public function myMembershipCard() { $this->viewBuilder()->disableAutoLayout(); $this->viewBuilder()->setTemplate('membership_card'); if ($this->getRequest()->is(['patch', 'post', 'put'])) { $data = $this->getRequest()->getData(); if (false === $this->Users->validat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_card(){ return $this->_card;}", "public function getAllMemberCards()\n {\n \n $query = \"SELECT MID, LoyaltyCardNumber FROM transactionsummary ORDER BY LoyaltyCardNumber ASC\";\n \n return parent::RunQuery($query);\n }", "public function getMemberInfo() {\n...
[ "0.6617146", "0.62462723", "0.6178876", "0.61483717", "0.61405957", "0.6075132", "0.6068445", "0.59874344", "0.59529984", "0.5936946", "0.5876473", "0.5847491", "0.584175", "0.5836236", "0.5801842", "0.57736886", "0.5764251", "0.56586176", "0.5656583", "0.5639343", "0.563605"...
0.66569173
0
Get Users By Id This function Get All Groups
function get_user_by_id($user_id) { // echo $user_id; die; $this->db->select("*", false); $this->db->where("id", $user_id); $query = $this->db->get($this->user_table); $result = $query->row_array(); // pr($result); die; return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listUsersOfGroup( $id)\n {\n\t\t$data = $this->call(array(), \"GET\", \"groups/\".$id.\"/users.json\");\n\t\t$data = $data->{'users'};\n\t\t$userArray = new ArrayObject();\n\t\tfor($i = 0; $i<count($data);$i++){\n\t\t\t$userArray->append(new User($data[$i], $this));\n\t\t}\n\t\treturn $userArray...
[ "0.77710325", "0.7619285", "0.73007435", "0.7285554", "0.7254269", "0.7220797", "0.7218185", "0.71800876", "0.71375525", "0.7124583", "0.7029133", "0.7028978", "0.7011046", "0.69891775", "0.6983566", "0.69533724", "0.6952207", "0.6948252", "0.6946043", "0.6940061", "0.6935926...
0.0
-1
/ Role Module Edit and Delete Made by Manish and Previous Module function name as edit as edit1 delete as delete 1 START
function viewData($id) { $res = $this->db->select("cr.*") ->from("cz_roles cr") ->where(array("cr.id" => $id)) ->get() ->row(); return $res; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getEditModule() {}", "function helpDesk_edit()\n {\n //create model object\n $helpDeskObj=new HelpDeskModel();\n \n // Check region valid code thorugh ajax\n if(isset($_REQUEST['ajaxCall']) && $_REQUEST['ajax...
[ "0.6732957", "0.6531685", "0.6470069", "0.6461191", "0.6456927", "0.6375099", "0.6358518", "0.63504994", "0.63504994", "0.6283216", "0.62545425", "0.6250286", "0.6235836", "0.6235738", "0.6235165", "0.622827", "0.622827", "0.6218546", "0.6218546", "0.6218546", "0.61921614", ...
0.0
-1
Create a new pagination instance.
public function __construct( protected QueryBuilder $query, protected PaginationParameters $parameters = (new PaginationParameters), protected ?PaginationColumns $columnsMap = null, protected array $headers = [] ) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function factory(array $config = array())\n\t{\n\t\treturn new Pagination($config);\n\t}", "public function createPaginationObject()\n {\n $adapter = new DoctrineDbalAdapter($this->deliverQueryObject(), function ($query) {\n $query->resetQueryParts(['groupBy', 'orderBy'])->sele...
[ "0.76954424", "0.7440678", "0.72468036", "0.69956094", "0.69608575", "0.6931889", "0.6864904", "0.6631564", "0.6631564", "0.65893376", "0.65145475", "0.6399691", "0.6383643", "0.62498474", "0.623786", "0.6231355", "0.6205589", "0.61730784", "0.61042404", "0.6088625", "0.60435...
0.0
-1
Returns the paginated query, with information on pages.
public function paginate(): array { $this->fetchRecords(); $this->fetchTotalRecordCount(); $this->setHeaders(); return [ 'data' => $this->data, 'total_records' => $this->totalRecords, 'current_page' => $this->parameters->getCurrentPage(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPaginated();", "public static function pagination()\n {\n $limit = (int) self::set(\"limit\");\n $offset = (int) self::set(\"offset\");\n\n $limit = Validator::intType()->notEmpty()->positive()->validate($limit)? $limit: false;\n $offset = Validator::intType()->notEmpty()->positiv...
[ "0.74140435", "0.7093016", "0.695601", "0.6922239", "0.68954295", "0.6866279", "0.68196595", "0.6817425", "0.68059605", "0.6802844", "0.672842", "0.67269826", "0.67122895", "0.67122895", "0.6660465", "0.6616792", "0.65994495", "0.6593966", "0.6587169", "0.6501885", "0.6458266...
0.6306259
43
Fetch the limited results for the current page.
protected final function fetchRecords() { $this->query->setLimit( (($this->parameters->getCurrentPage() - 1) * $this->parameters->getResultsPerPage()), $this->parameters->getResultsPerPage() ); $this->data = $this->query->execute()->getAssociative(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get( $limit = 10 );", "public function apiFetch( $limit, $offset );", "public function all($limit, $offset);", "function fetchList($limit, $offset);", "public function take($limit = 20);", "public function all($limit = 5, $offset = 0);", "public function all($limit = 5, $offset = 0);", ...
[ "0.7114474", "0.691118", "0.6677167", "0.6676789", "0.66713196", "0.6653808", "0.6653808", "0.6597848", "0.6597848", "0.65496635", "0.65357697", "0.6499749", "0.6499749", "0.6499749", "0.6499749", "0.6499749", "0.6495498", "0.6469914", "0.64226276", "0.64062303", "0.64061886"...
0.62943757
27
Fetch thw total number of results before limits. Uses MySQL found rows function to get count of records that would have been returned before the limit.
protected final function fetchTotalRecordCount(): void { $query = $this->query; $query->resetColumns() ->count() ->resetOrders() ->removeLimit(); $this->totalRecords = $this->query->execute()->getOne(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRowsCountBeforeLimitFilter()\n {\n $toReturn = $this->rowsCountBeforeLimitFilter;\n if ($toReturn == 0) {\n return $this->getRowsCount();\n }\n return $toReturn;\n }", "function getNumRows() {\r\n\t\t\tif($this->privateVars['resultset']) {\r\n\t\t\t...
[ "0.7462784", "0.6892318", "0.6880414", "0.67617273", "0.6711503", "0.6652498", "0.66465074", "0.66442", "0.66393024", "0.66270167", "0.6619477", "0.66177034", "0.65735036", "0.6518861", "0.6506373", "0.6478601", "0.6457412", "0.64372313", "0.6426371", "0.6414735", "0.64087915...
0.6594433
12
Sets the humanreadable headers. Set generated headers from the pagination dataset column titles, if no headers have been set.
protected function setHeaders(): void { if (empty($this->headers) === false || empty($this->data) === true) { return; } $headers = array_keys(reset($this->data)); array_walk($headers, fn(&$header) => $header = ucwords(str_replace("_", " ", $header))); $this->he...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function headers()\n {\n // Maintain URL params for pagination\n if (empty($this->params['pass'])) {\n $this->params['pass'] = array();\n }\n $options = array(\n 'url' => array_merge($this->tableOptions['url'], $this->params['named'], $this->params['pass']),\n ...
[ "0.6783362", "0.6602488", "0.651894", "0.63091165", "0.6286213", "0.6249624", "0.6249624", "0.61655015", "0.6113085", "0.6095158", "0.60897046", "0.60629344", "0.60140234", "0.5992673", "0.59707206", "0.59653866", "0.59479445", "0.5940407", "0.59194064", "0.5919009", "0.59087...
0.7106551
0
Adds a new filter condition to the query. When passing in the first query, the operation cam be set to null. Subsequent filters must provide a valid operation.
public function addFilter(string $searchTern, string $condition, string $column, ?string $operation): void { if (empty($this->columnsMap) === true) { $this->query->addFilter($searchTern, $condition, $column, $operation); return; } if ($this->getColumn($column)->isFil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addFilter(Filter $filter)\n {\n // Start with an empty AND composite filter\n if (!isset($this->filter)) {\n $this->filter = Filter::_and();\n }\n\n $this->checkFilter($filter);\n $this->filter = $this->filter->withAdded($filter);\n }", "functio...
[ "0.67890674", "0.676203", "0.67125326", "0.6012253", "0.5715738", "0.570245", "0.5677074", "0.565882", "0.5634796", "0.5632327", "0.5619332", "0.5617523", "0.5592255", "0.55638254", "0.55524576", "0.55404896", "0.553675", "0.551311", "0.5509672", "0.5506203", "0.54880255", ...
0.5948487
4
Fetch a given column from pagination column map.
protected function getColumn(string $column): Column { if ($this->columnsMap->get($column) === null) { throw new LogicException("The given column name '$column' is not known."); } return $this->columnsMap->get($column); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fetchColumn(int $column = 0);", "public function fetchColumn($columnIndex = 0);", "private function fetchColumn($table, $column) {\n\t\t$sql = 'select ' .$column .' from ' .$table;\n\t\t$query = $this->getDB()->prepare($sql);\n\t\tif(!$query->execute()) {\n\t\t\t$info = $query->errorInfo();\n\t...
[ "0.72089046", "0.66481227", "0.6470256", "0.63133883", "0.6229791", "0.6225132", "0.62251174", "0.61710507", "0.61617786", "0.61587", "0.6130535", "0.6110269", "0.601072", "0.59614164", "0.5954793", "0.59542084", "0.5906114", "0.58920354", "0.58838415", "0.587977", "0.5836539...
0.52472967
91
Adds order column to query.
public function addOrder(string $column, string $order = 'ASC'): void { if (empty($this->columnsMap) === true) { $this->query->addOrder($column, $order); return; } if ($this->getColumn($column)->isSortable() === false) { throw new LogicException("The give...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOrderColumn()\n {\n return 'order';\n }", "protected function setOrder() {\r\n if( $this->sqlOrderBy ) {\r\n $this->sql .= ' ORDER BY ' . $this->sqlOrderBy;\r\n }\r\n }", "public function addOrder($ord) {\n $this->sql .= \" ORDER BY $ord\";\n ...
[ "0.76830095", "0.7228716", "0.71566635", "0.70954823", "0.70034057", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857", "0.6784857",...
0.58141243
96
Get the current pagination request.
public function getRequest(): PaginationParameters { return $this->parameters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrentPage()\n {\n return $this->request->param('paging.' . $this->pagingType . '.page');\n }", "protected function getQueryCurrentPage($request)\n {\n $data = $request->query->all();\n if (isset($data['_page'])) {\n return ($data['_page']);\n }...
[ "0.7708109", "0.73574805", "0.7309714", "0.72296107", "0.7107274", "0.7085283", "0.70560074", "0.7054881", "0.70429474", "0.70305866", "0.69261926", "0.68236226", "0.68142265", "0.6813787", "0.66460735", "0.66460735", "0.66460735", "0.6645666", "0.6625889", "0.66227686", "0.6...
0.70009696
10
Get the pagination columns map if set.
public function getColumnsMap(): PaginationColumns|null { return $this->columnsMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function columnMaps();", "function mappingColumns()\n {\n $mapped_columns = array(\n \"id\" => 0,\n \"url\" => 2,\n \"iframe\" => false,\n \"preview\" => false,\n \"thumbs\" => 1,\n \"title\" => 3,\n...
[ "0.65263075", "0.6346436", "0.6327529", "0.61343306", "0.61223966", "0.6075078", "0.6067894", "0.5973507", "0.59717077", "0.5965933", "0.59626806", "0.5959635", "0.5931301", "0.58776164", "0.5875707", "0.58456033", "0.58279276", "0.5825386", "0.58237946", "0.58132446", "0.579...
0.8139857
0
Add a product from a requisition list to cart.
public function execute(CartInterface $cart, CartItemInterface $cartItem) { $product = $cartItem->getData('product'); $productOptions = $this->cartItemOptionProcessor->getBuyRequest($product->getTypeId(), $cartItem); $cart->addProduct($product, $productOptions); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addAction()\n {\n $cart = $this->_getCart();\n $params = $this->getRequest()->getParams();\n// qq($params);\n try {\n if (isset($params['qty'])) {\n $filter = new Zend_Filter_LocalizedToNormalized(\n array('locale' => Ma...
[ "0.6837725", "0.68042034", "0.6762044", "0.6730841", "0.6720118", "0.6691639", "0.6686748", "0.66257656", "0.6623876", "0.65297955", "0.6489165", "0.64818424", "0.6475925", "0.64712316", "0.6450172", "0.6448853", "0.6429642", "0.6410168", "0.6398312", "0.6350874", "0.6345695"...
0.0
-1
Display a listing of the resource.
public function index() { return GrupoResource::collection(Grupo::paginate()); }
{ "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
Store a newly created resource in storage.
public function store(Request $request) { $datosPOST = json_decode($request->getContent(), true); $user = $request->user(); if(!$user->isSuperAdmin()){ $datosPOST['creador'] = Auth::id(); } $grupo = Grupo::create($datosPOST); return new GrupoResou...
{ "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(Grupo $grupo) { return new GrupoResource($grupo); }
{ "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
Update the specified resource in storage.
public function update(Request $request, Grupo $grupo) { $grupo->update(json_decode($request->getContent(), true)); return new GrupoResource($grupo); }
{ "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.7423347", "0.70622426", "0.70568657", "0.6896551", "0.65835553", "0.64519453", "0.6348333", "0.6212436", "0.61450946", "0.6122591", "0.6114199", "0.6101911", "0.60876113", "0.60528636", "0.60177964", "0.6006609", "0.59725446", "0.594558", "0.59395295", "0.5938792", "0.5893...
0.0
-1
Remove the specified resource from storage.
public function destroy(Grupo $grupo) { $grupo->delete(); }
{ "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
Display a listing of the Vehiculo. Datatables by xs Templates
public function index(VehiculoDataTable $vehiculoDataTable) { return $vehiculoDataTable->render('vehiculos.index'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function Index() {\n\t\t\t$Plantilla = new NeuralPlantillasTwig('Tienda');\n\t\t\t$Plantilla->Parametro('Consulta', $this->Modelo->Listado());\n\t\t\t$Plantilla->Filtro('HexASCII', function ($Parametro) { return AppHexAsciiHex::ASCII_HEX($Parametro); });\n\t\t\techo $Plantilla->MostrarPlantilla('Proveedor/L...
[ "0.7048129", "0.69743997", "0.6927924", "0.6890032", "0.6877464", "0.6848848", "0.67900944", "0.6787231", "0.6717559", "0.6712006", "0.6702403", "0.66899073", "0.6624969", "0.6605613", "0.660341", "0.65929776", "0.65843385", "0.65459615", "0.6542696", "0.65392774", "0.6534394...
0.0
-1
Show the form for creating a new Vehiculo.
public function create() { $selectores = $this->selectoresComunes(); return view('vehiculos.create')->with(['selectores' => $selectores]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n\t{\n\t\treturn View::make('vehiculos.create');\n\t}", "public function create()\n {\n return view('contato.form');\n }", "public function create()\n {\n $page_title = 'Registrar Vehiculo';\n return view('cliente.vehiculo.create', ['page_title'=> $page_t...
[ "0.7784924", "0.77622896", "0.77344257", "0.7718348", "0.7717485", "0.7621918", "0.7590301", "0.75714934", "0.75567985", "0.75454026", "0.75291026", "0.75280094", "0.7516244", "0.7483173", "0.7470501", "0.7468153", "0.7467475", "0.7465244", "0.7458096", "0.74580663", "0.74520...
0.7392683
33
Store a newly created Vehiculo in storage.
public function store(CreateVehiculoRequest $request) { $input = $request->all(); $input['user_id'] = Auth::id(); $input['placa'] = strtoupper($request->placa); $vehiculo = $this->vehiculoRepository->create($input); Flash::success('Vehículo registrado correctamente.'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store(VehiculoCreateRequest $request)\n {\n Vehiculo::create($request->all());\n Session::flash('message','Vehiculo Creado Correctamente');\n return Redirect::to('/vehiculo');\n }", "public function store(){\n $validateactualite = $this->validate([\n '...
[ "0.6898949", "0.68969494", "0.6860854", "0.6747154", "0.67236966", "0.6691978", "0.6667118", "0.666706", "0.66650814", "0.6660805", "0.6653274", "0.6651254", "0.6650243", "0.662488", "0.6622043", "0.6597772", "0.65807134", "0.6558275", "0.65489846", "0.65489846", "0.65489846"...
0.69969994
0
Display the specified Vehiculo.
public function show($id) { $vehiculo = $this->vehiculoRepository->findWithoutFail($id); $documentos = $this->centralRepository->validar_documentos_vehiculo($id); $sim_gasto = SimuladorGasto::where('min', '<=', $vehiculo->capacidad) ->where('max', '>=', $vehiculo->capacidad)->first...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Colectivo $colectivo)\n {\n //\n }", "public function show(Vente $vente)\n {\n //\n }", "public function show(Ciclo $ciclo)\n {\n //\n }", "public function show(comercio $idcomercio)\n {\n //\n }", "public function show(Carrinho $carr...
[ "0.74154145", "0.74003047", "0.73906106", "0.7388134", "0.72750753", "0.7246162", "0.7242881", "0.72159284", "0.7202643", "0.7191979", "0.70558155", "0.70482373", "0.7041686", "0.7041634", "0.703082", "0.703082", "0.70301926", "0.699216", "0.6991406", "0.69889957", "0.6971843...
0.0
-1
Show the form for editing the specified Vehiculo.
public function edit($id) { $vehiculo = $this->vehiculoRepository->findWithoutFail($id); if (empty($vehiculo)) { Flash::error('Vehículo No se encuentra registrado.'); return redirect(route('vehiculos.index')); } $selectores = $this->selectoresComunes(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit($id_ejercicio)\n\t{\n\t\t//\n\t\treturn view('admin.ejercicios.createUpdate')->with('ejercicios', \\App\\Ejercicios::find($id_ejercicio));\n\t}", "public function edit(Vinicola $vinicola)\n {\n //\n $edit = true;\n $uvas= Uva::orderBy('title','asc')->get();\n r...
[ "0.78680384", "0.77241254", "0.7597861", "0.7463906", "0.7440688", "0.7434401", "0.74077845", "0.7400581", "0.7376437", "0.7372395", "0.7369678", "0.73598033", "0.73469", "0.7346142", "0.7326849", "0.73184943", "0.7307884", "0.7299717", "0.7298198", "0.7286557", "0.7285396", ...
0.0
-1
Update the specified Vehiculo in storage.
public function update($id, UpdateVehiculoRequest $request) { $vehiculo = $this->vehiculoRepository->findWithoutFail($id); if (empty($vehiculo)) { Flash::error('Vehículo No se encuentra registrado.'); return redirect(route('vehiculos.index')); } $input = $r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, $id) {\n //actualizamos el articulo\n //buscamos el producto\n try {\n $producto = \\App\\Producto::find($id);\n\n $producto->category_projects_id = $request->category_id;\n $producto->title = $request->title;\n ...
[ "0.6588939", "0.65573376", "0.64659107", "0.6450939", "0.6436887", "0.64128554", "0.63867676", "0.6374083", "0.63693124", "0.63629323", "0.6362914", "0.63430583", "0.6328835", "0.63190275", "0.6314574", "0.631033", "0.6308764", "0.63052374", "0.630153", "0.6284505", "0.628161...
0.0
-1
Remove the specified Vehiculo from storage.
public function destroy($id) { $vehiculo = $this->vehiculoRepository->findWithoutFail($id); if (empty($vehiculo)) { Flash::error('Vehículo No se encuentra registrado.'); return redirect(route('vehiculos.index')); } $this->vehiculoRepository->delete($id); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function eliminarImagenCarpeta($campo, $tabla, $idAsignacion, $carpeta)\n {\n $data=$this->analisisRiesgo->getNombreImagen($campo, $tabla, $idAsignacion);\n //Delete el nombre de la imagen de la base de datos\n $borrar=Array($campo => null);\n $this->analisisRiesgo->deleteImagen($bor...
[ "0.647394", "0.6430235", "0.6410976", "0.63926893", "0.63897043", "0.63566506", "0.6272069", "0.62652475", "0.6260194", "0.6242225", "0.622742", "0.6221773", "0.6188794", "0.61867654", "0.61486614", "0.6141093", "0.6132746", "0.6132355", "0.61164874", "0.61120534", "0.6093049...
0.0
-1
Gets price for a single pair
function getPrice ($api, $exchange, $pairSymbol) { if ($exchange=='binance') { $price = $api->price($pairSymbol); } elseif ($exchange=='kraken') { $price = $api->QueryPublic('Ticker', array('pair'=>$pairSymbol)); $price = $price['result'][$pairSymbol]['c'][0]; } return $price; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function price($pair) {\n\t\t\treturn (self::valid($prices = self::prices(array($pair)))) ? $prices->prices[0] : $prices;\n\t\t}", "abstract function getPriceFromAPI($pair);", "public function getPrice()\n {\n $price = Cache::tags([$this->exchange])->get($this->pair, function () {\n ...
[ "0.8449567", "0.7935346", "0.7338197", "0.6902439", "0.6815187", "0.6724694", "0.6718239", "0.6718239", "0.6718239", "0.6718239", "0.6708396", "0.66819745", "0.66590893", "0.66117144", "0.6608096", "0.6608096", "0.6575397", "0.65591764", "0.6557551", "0.6557551", "0.6557551",...
0.7234025
3
Gets price for multiple pairs
function getTicker ($api, $exchange, $folioArray) { $pairSymbols = array_column ($folioArray, 'pairSymbol'); if ($exchange=='binance') { // Binance gives all pairs, and this code gets the desired pairs from the result $ticker = $api->prices(); for($i=0; $i<count($pairSymbols)-1; $i++) { $price[$i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function price($pair) {\n\t\t\treturn (self::valid($prices = self::prices(array($pair)))) ? $prices->prices[0] : $prices;\n\t\t}", "abstract function getPriceFromAPI($pair);", "public function getPrices()\n {\n }", "private function getPrices () {\n\t\tlibxml_use_internal_errors(true);\n\...
[ "0.74964476", "0.71815735", "0.64932656", "0.63813025", "0.63105106", "0.6225467", "0.6199801", "0.6199788", "0.6105884", "0.6054909", "0.6054909", "0.6054909", "0.6054909", "0.6034928", "0.60301596", "0.6029374", "0.602507", "0.5968318", "0.5967422", "0.59259915", "0.5875442...
0.0
-1
/gets OHLC and runs it through the rekey function to get both exchanges giving compatible results
function getOHLC ($api, $exchange, $pairSymbol, $interval, $since) { if ($exchange=='binance') { $interval = $interval.'m'; $ohlc = $api->candlesticks($pairSymbol, $interval, $since, null, null, 1000); $ohlc = ohlcRekey ($ohlc); } elseif ($exchange=='kraken') { $ohlc = $api->QueryPublic('OHLC', arra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct(StockPrice $stockPrice)\n {\n\n\n\n //\n $belowYForOneMinute = false;\n $this->stockPrice = $stockPrice;\n $this->current_general = StockHelper::getCurrentGeneralPrice($this->stockPrice->tlong);\n if($this->current_general){\n $this->prev...
[ "0.5427624", "0.5237283", "0.52298105", "0.5043422", "0.50361115", "0.50041693", "0.4922948", "0.4891757", "0.48872188", "0.4846009", "0.48241416", "0.48167008", "0.47821417", "0.4779623", "0.47733432", "0.4761777", "0.47476357", "0.4739246", "0.46760303", "0.46565756", "0.46...
0.6582336
0
/ Install Hstory Per pair installs a rebalancePAIRhistory.json which stores list of all sell operations and the averageBuyPrice of the asset. rebalancemain.json includes a list of all assets, essentially the balance
function installHistory ($api, $moduleName, $folioArray, $installTime) { $pairSymbols = array_column ($folioArray, 'pairSymbol'); array_pop ($pairSymbols); $pairsString = implode(", ",$pairSymbols); global $exchange; $ticker = getTicker ($api, $exchange, $folioArray); $pairCount = count($folioArray)-1; fo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sellPotential ($api, $moduleName, $currentPercent, $folioEntry, $totalValue, $price, $unixTime, $threshold) {\n\t$filename = $moduleName. '-';\n\n\t$filepath = 'indic/' . $filename . $folioEntry['pairSymbol']. '-ohlcOld.json';\n\t$ohlcOld = file_get_contents($filepath);\n\t$ohlcOld = json_decode($ohlcOld,...
[ "0.5270505", "0.5177063", "0.5092866", "0.4989667", "0.49541387", "0.49124584", "0.48646542", "0.48317075", "0.48221484", "0.47898033", "0.47822908", "0.47066605", "0.46965504", "0.46854994", "0.4679103", "0.46619135", "0.4612151", "0.46062076", "0.4601263", "0.45802557", "0....
0.66171366
0
Gets OHLC of 1 pair and passes it to indic calculator
function installIndicCaller ($api, $unixTime, $pairSymbol, $moduleName, $interval) { $days = 30; $since = $unixTime-(60*60*24*$days); global $exchange; $ohlc = getOHLC($api, $exchange, $pairSymbol, $interval, $since); if (is_array($ohlc)) { $currentFile=$moduleName.'-'.$pairSymbol.'-'; $output = installIn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getOHLC ($api, $exchange, $pairSymbol, $interval, $since) {\n if ($exchange=='binance') {\n $interval = $interval.'m';\n $ohlc = $api->candlesticks($pairSymbol, $interval, $since, null, null, 1000);\n $ohlc = ohlcRekey ($ohlc);\n } elseif ($exchange=='kraken') {\n $ohlc = $api->QueryPublic('...
[ "0.6889895", "0.5771252", "0.56322235", "0.559364", "0.5588228", "0.5384905", "0.537162", "0.5356297", "0.5341666", "0.5331892", "0.5232272", "0.5232272", "0.52055407", "0.5136441", "0.51258624", "0.5108028", "0.50653046", "0.504553", "0.49625245", "0.49538302", "0.49537593",...
0.5813242
1
gets called by updateMain
function updateFunctions ($api, $folioArray, $targetPair, $interval, $date, $since, $unixTime, $intervalSec, $moduleName) { $ohlc = null; $rowTime = null; $pairName = $folioArray[$targetPair]['pairSymbol']; $currentFile =$moduleName.'-'.$pairName.'-'; $filepath = 'indic/' . $currentFile . 'emaSet.json'; $emaSe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update() {\n\n\t\t\t}", "function after_update() {}", "function update_start()\n {\n }", "protected function _update()\n\t{\n\t}", "protected function _preupdate() {\n }", "function update_end()\n {\n }", "protected function afterU...
[ "0.7119174", "0.697152", "0.6737771", "0.66504693", "0.6610527", "0.6555895", "0.65523845", "0.6518774", "0.6506705", "0.6492783", "0.63904524", "0.6382163", "0.6382163", "0.63783115", "0.63783115", "0.6335027", "0.62205553", "0.62111014", "0.6206732", "0.613728", "0.61096805...
0.0
-1
/ updatemain Checks each pair for updatedness and calls updateFunctions() which in turn calls indicUPR().
function updateMain ($api, $unixTime, $folioArray, $moduleName, $interval, $quickExt) { $pairCount = count($folioArray)-2; // last entry is USD $intervalSec = $interval*60; $intervalSec2 = $intervalSec*2; $date = date('Y-m-d', $unixTime); $since = $unixTime-5400; $compareTime = $unixTime-$intervalSec; if ($...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function update();", "abstract protected function update ();", "function updateFunctions ($api, $folioArray, $targetPair, $interval, $date, $since, $unixTime, $intervalSec, $moduleName) {\n\t$ohlc = null;\n\t$rowTime = null;\n\n\t$pairName = $folioArray[$targetPair]['pairSymbol'];\n\n\t$currentFile =$...
[ "0.62726885", "0.6203596", "0.6060833", "0.60435325", "0.60435325", "0.60222983", "0.59911776", "0.5937396", "0.58572555", "0.58572555", "0.58572555", "0.58572555", "0.5834429", "0.5817016", "0.57895195", "0.57885575", "0.5709447", "0.56913984", "0.5676525", "0.56166285", "0....
0.61921734
2
/ Buy Potential Asset has already been checked that it's below threshold. This function chooses whether it buys all or buys a bit. $folioEntry example: ``` $DOTUSD = array ( 'pairSymbol'=>'DOTUSD', 'coinSymbol'=>'DOT', 'targetPercent' => 5, ); ```
function buyPotential ($api, $moduleName, $currentPercent, $folioEntry, $totalValue, $price) { $filename = $moduleName. '-'. $folioEntry['pairSymbol'].'-'; $filepath = 'indic/' . $filename . 'ohlcOld.json'; $ohlcOld = file_get_contents($filepath); $ohlcOld = json_decode($ohlcOld, true); $filepath = 'indic/' . $f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function sellPotential ($api, $moduleName, $currentPercent, $folioEntry, $totalValue, $price, $unixTime, $threshold) {\n\t$filename = $moduleName. '-';\n\n\t$filepath = 'indic/' . $filename . $folioEntry['pairSymbol']. '-ohlcOld.json';\n\t$ohlcOld = file_get_contents($filepath);\n\t$ohlcOld = json_decode($ohlcOld,...
[ "0.6538791", "0.5978094", "0.5084909", "0.50661504", "0.4991182", "0.49791357", "0.49686983", "0.49271303", "0.49065572", "0.49030474", "0.48959696", "0.48240322", "0.4812633", "0.4795141", "0.4790744", "0.47311062", "0.46994248", "0.4686266", "0.46818075", "0.46815133", "0.4...
0.7070034
0
/ Sell Potential Asset has already been checked that it's above threshold. This function chooses whether it sells all or sells a bit. $folioEntry example: ``` $DOTUSD = array ( 'pairSymbol'=>'DOTUSD', 'coinSymbol'=>'DOT', 'targetPercent' => 5, ); ```
function sellPotential ($api, $moduleName, $currentPercent, $folioEntry, $totalValue, $price, $unixTime, $threshold) { $filename = $moduleName. '-'; $filepath = 'indic/' . $filename . $folioEntry['pairSymbol']. '-ohlcOld.json'; $ohlcOld = file_get_contents($filepath); $ohlcOld = json_decode($ohlcOld, true); $fil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function buyPotential ($api, $moduleName, $currentPercent, $folioEntry, $totalValue, $price) {\n\t$filename = $moduleName. '-'. $folioEntry['pairSymbol'].'-';\n\n\t$filepath = 'indic/' . $filename . 'ohlcOld.json';\n\t$ohlcOld = file_get_contents($filepath);\n\t$ohlcOld = json_decode($ohlcOld, true);\n\n\t$filepat...
[ "0.6861287", "0.56940365", "0.5029836", "0.49890214", "0.4963406", "0.48867038", "0.48828098", "0.484458", "0.47552383", "0.472395", "0.47031915", "0.4697599", "0.46971878", "0.4695357", "0.46872982", "0.46714625", "0.46508902", "0.4649354", "0.4631042", "0.4615618", "0.45940...
0.69471425
0
/ Balance Check Main checker function Path: Check account balance, decide if there is an opportunity to sell Everytime there is a buy, it recalculates the average price of the buy and when it sells it records profit Store average price at point of buy So there are two files: Average buy price for each item (main.json),...
function balanceCheck ($api, $moduleName, $folioArray, $threshold, $unixTime) { // get trade balance would go here // get current % of each coin and ema or other indicators $filepath = '' . $moduleName . '-main.json'; $main = file_get_contents($filepath); $main = json_decode($main, true); $pairSymbols = ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function checkBalance();", "function applyWallet($Adv,$amount,$lastrate,$transferAmount){ \r\n\t$wallet = Wallet::get(array(\"id_user\" => $_SESSION[\"gak_id\"]));\r\n\t$totalToman = $amount*$lastrate + $lastrate*$transferAmount;\r\n\tif ($wallet->amount < $totalToman){\r\n\t\t$_SESSION['result']=\" موج...
[ "0.623104", "0.6131377", "0.59933424", "0.58860695", "0.5863259", "0.586054", "0.5703325", "0.5697477", "0.56622493", "0.56587803", "0.56531745", "0.564827", "0.563078", "0.5592341", "0.5540358", "0.5524614", "0.5522887", "0.5509819", "0.55057406", "0.5504987", "0.5489582", ...
0.6858027
0
Returns a rendered input.
public function renderInput(): string { return FormFacade::textarea( $this->getKey(), $this->getInputValue(), $this->getInputAttributes(), )->toHtml(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderInput();", "public function renderInput()\n {\n $result = $this->renderHiddenInput();\n $result .= $this->renderFileInput();\n return $result;\n }", "public function renderInput(){\n $row = '';\n $row .= \"<input type=\\\"$this->type\\\" id=\\\"$th...
[ "0.8338876", "0.792744", "0.74798894", "0.7450018", "0.7447201", "0.71658176", "0.6783463", "0.6756269", "0.67187005", "0.66830474", "0.6638415", "0.66204995", "0.66123545", "0.66096616", "0.6600416", "0.6600416", "0.6600416", "0.6588928", "0.6564932", "0.6546373", "0.6546373...
0.72607315
5
Seed the application's database.
public function run() { // \App\Department::create(['dept'=>'CS','sec'=>'A','sem'=>1]); // \App\Department::create(['dept'=>'CS','sec'=>'B','sem'=>1]); // \App\Department::create(['dept'=>'IS','sec'=>'C','sem'=>2]); // \App\Subject::create(['subname'=>'CO','subcode'=>'4d56d']); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:seed');\n\t\t\t//Turn foreign key checks on\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=...
[ "0.8065584", "0.7848217", "0.76748335", "0.7244791", "0.7217673", "0.7133266", "0.70984626", "0.70752525", "0.7050456", "0.69926506", "0.6988436", "0.6985116", "0.69669306", "0.68992233", "0.68682885", "0.6847507", "0.6831097", "0.68208444", "0.68041754", "0.68041754", "0.680...
0.0
-1
Override the default authentication of passport
public function findForPassport($username) { return $this->where('username', $username)->first(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function signIsUsingPassport()\n {\n Passport::actingAs(factory(User::class)->create());\n }", "abstract protected function auth();", "public function authenticate() {}", "public function __construct(){\n //laravel passport api protection against unauthenticated users\n $thi...
[ "0.6610484", "0.64006037", "0.62985826", "0.6219269", "0.61618006", "0.6100052", "0.6067972", "0.6008136", "0.6008136", "0.6008136", "0.5884848", "0.5871231", "0.5860892", "0.585119", "0.5844856", "0.58335334", "0.5826608", "0.58125556", "0.58116984", "0.58102363", "0.5810236...
0.0
-1
Create the event listener.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addRequestCreateListener($listener);", "public function onEvent();", "private function init_event_listeners() {\n\t\t// add_action('wp_ajax_example_action', [$this, 'example_function']);\n\t}", "public function listener(Listener $listener);", "protected function setupListeners()\n {\n ...
[ "0.65685207", "0.62875676", "0.6221792", "0.6197413", "0.61627764", "0.6129312", "0.6096226", "0.6056844", "0.6051069", "0.6041841", "0.596228", "0.596194", "0.5957539", "0.59439605", "0.58821785", "0.58821785", "0.5874665", "0.5864387", "0.5856076", "0.584338", "0.5824244", ...
0.0
-1
Constructs new message container and clears its internal state
public function __construct() { $this->reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear()\n {\n $this->messages = [];\n }", "public function clear(){\r\n\t\t$this->_init_messages();\r\n\t}", "public function clearMessages()\n {\n $this->_messages = array();\n return $this;\n }", "public function clear(): void\n {\n $this->messages...
[ "0.6759655", "0.6694383", "0.6664635", "0.6585841", "0.65726465", "0.65234977", "0.64330304", "0.6162081", "0.6160057", "0.59145373", "0.5856848", "0.58269936", "0.5814096", "0.5718538", "0.5714013", "0.56949586", "0.56226987", "0.55620676", "0.55460143", "0.5533074", "0.5476...
0.0
-1
Clears message values and sets default ones
public function reset() { $this->values[self::PHONE] = null; $this->values[self::PASSWORD] = null; $this->values[self::EQUIPMENT] = null; $this->values[self::LOGIN_TYPE] = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reset()\n {\n $this->values[self::MESSAGE] = null;\n $this->values[self::SENDER_KEY] = null;\n }", "public function reset()\n {\n $this->values[self::CONVERSATION] = null;\n $this->values[self::SKMSG] = null;\n $this->values[self::IMAGE] = null;\n $this->values[se...
[ "0.7560076", "0.7473278", "0.72972125", "0.7258778", "0.7186456", "0.71419746", "0.70383257", "0.703493", "0.70287454", "0.7024615", "0.6990998", "0.69788265", "0.696552", "0.68270165", "0.68262357", "0.6796876", "0.6760336", "0.67443484", "0.6737045", "0.6725406", "0.6717753...
0.63803965
51
Sets value of 'phone' property
public function setPhone($value) { return $this->set(self::PHONE, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPhone($phone)\r\n {\r\n $this->_phone = $phone;\r\n }", "public function setPhone($phone)\r\n {\r\n $this->_phone = $phone;\r\n }", "public function setPhone($phone = \"\");", "public function setPhone($phone) {\n\t\t$this->phone = $phone;\n\t}", "public functio...
[ "0.85916305", "0.85916305", "0.85852236", "0.8515284", "0.8478999", "0.8478999", "0.8472571", "0.84721684", "0.8462871", "0.83023345", "0.8114955", "0.8097845", "0.79463154", "0.79031795", "0.7883486", "0.7883208", "0.7815018", "0.76725864", "0.76725864", "0.7582905", "0.7530...
0.78613734
17
Returns value of 'phone' property
public function getPhone() { $value = $this->get(self::PHONE); return $value === null ? (string)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_phone() {\r\n return $this->phone;\r\n }", "public function getPhone(){\r\n\t\t\treturn $this->phone;\r\n\t\t}", "public function getPhone()\n\t{\n\t\treturn $this->phone;\n\t}", "public function getPhone()\r\n {\r\n return $this->phone;\r\n }", "public function g...
[ "0.8726541", "0.8650274", "0.8628658", "0.8622545", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8600915", "0.8591774", "0.856373", "0...
0.84804475
27
Returns true if 'phone' property is set, false otherwise
public function hasPhone() { return $this->get(self::PHONE) !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function has_phone() {\r\n return ! empty( $this->phone );\r\n }", "public function hasPhone() : bool\n {\n return isset($this->phone);\n }", "public function hasPhone() {\n return $this->_has(5);\n }", "public function hasTelephone(): bool;", "private function isTelep...
[ "0.8533158", "0.8300502", "0.80001926", "0.79809445", "0.76274854", "0.7110881", "0.70665115", "0.7055936", "0.7042675", "0.6998693", "0.6919743", "0.6907155", "0.6872557", "0.6850821", "0.6850821", "0.6687706", "0.6687706", "0.6630803", "0.6630803", "0.6546263", "0.65451443"...
0.85411066
0
Sets value of 'password' property
public function setPassword($value) { return $this->set(self::PASSWORD, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setPassword($value);", "public function setPassword() {\n if ($this->Password) {\n $this->Password = \\app\\components\\Utilities::setHashedValue($this->Password);\n }\n }", "public function setPassword($p) {\n $this->_password = $p;\n }", "public function setP...
[ "0.8727944", "0.8627111", "0.84593546", "0.8450517", "0.84426105", "0.84285575", "0.84285575", "0.84285575", "0.8390966", "0.83799237", "0.83556235", "0.82557636", "0.81871444", "0.81649405", "0.8163036", "0.81613404", "0.8125801", "0.81038576", "0.8100105", "0.80496323", "0....
0.0
-1
Returns value of 'password' property
public function getPassword() { $value = $this->get(self::PASSWORD); return $value === null ? (string)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPassword() {\n return $this->getValue('password');\n }", "public function getPassword()\n {\n return $this->__get(\"password\");\n }", "public function getPassword() {\n return @$this->attributes['password'];\n }", "public function getPassword()\n {\n ret...
[ "0.8882296", "0.8716062", "0.8712735", "0.86666477", "0.86443835", "0.85650945", "0.8548693", "0.8506195", "0.84904456", "0.8482546", "0.8482546", "0.84752846", "0.84752846", "0.8468501", "0.8463195", "0.846075", "0.84455615", "0.84374374", "0.84371036", "0.84106845", "0.8410...
0.8493461
8
Returns true if 'password' property is set, false otherwise
public function hasPassword() { return $this->get(self::PASSWORD) !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasPassword() : bool;", "public function hasPassword()\n {\n return ($this->password !== null);\n }", "public function hasPassword()\n {\n return $this->definition->hasPassword($this);\n }", "public function isPassword($password);", "public function hasPasswd(){\n ...
[ "0.830581", "0.82117563", "0.81346875", "0.7750036", "0.7728643", "0.7728643", "0.7688435", "0.7688435", "0.7680248", "0.76726466", "0.76584375", "0.76144224", "0.7562214", "0.74715567", "0.7414661", "0.7413202", "0.7298486", "0.7288954", "0.7267807", "0.7217423", "0.71660894...
0.85238624
0
Sets value of 'equipment' property
public function setEquipment($value) { return $this->set(self::EQUIPMENT, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setEquipment($value) {\n if (empty($value))\n throw new InvalidArgumentException('An equipment cannot be empty');\n if (strlen($value) > 64)\n throw new Exception('An equipment cannot be longer than 64 characters');\n $this->equipment = $value;\n re...
[ "0.7307018", "0.67316765", "0.64434934", "0.63210505", "0.6241121", "0.6241121", "0.6099168", "0.6065673", "0.5974956", "0.58432096", "0.5737236", "0.5658813", "0.56544924", "0.56105804", "0.5593093", "0.5544235", "0.5533005", "0.5448461", "0.5375866", "0.5354048", "0.5304147...
0.7188809
1
Returns value of 'equipment' property
public function getEquipment() { $value = $this->get(self::EQUIPMENT); return $value === null ? (integer)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEquipmentRef()\n {\n return $this->equipmentRef;\n }", "public function get_equipment_type();", "public function getEquipmentName()\n {\n return isset($this->EquipmentName) ? $this->EquipmentName : null;\n }", "public function getEquipmentName()\n {\n re...
[ "0.75044477", "0.74099183", "0.725311", "0.725311", "0.71265334", "0.7118596", "0.7004367", "0.68406177", "0.6401796", "0.6281171", "0.62010264", "0.6175649", "0.61753607", "0.6145305", "0.6131653", "0.5876235", "0.5874623", "0.58564734", "0.5812939", "0.57632977", "0.5735072...
0.78620464
0
Returns true if 'equipment' property is set, false otherwise
public function hasEquipment() { return $this->get(self::EQUIPMENT) !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasEquipmentingItem()\n {\n return count($this->get(self::EQUIPMENTING_ITEM)) !== 0;\n }", "public function isEquipped() {\n return in_array(true, $this->equipped);\n }", "protected function checkEquipped()\r\n\t{\r\n\t\t$check = $this->db->getone(\"select count(*) as `co...
[ "0.7230235", "0.71762776", "0.62670135", "0.6013654", "0.59173244", "0.5907857", "0.5862923", "0.58472854", "0.5783906", "0.57758063", "0.5743426", "0.5733208", "0.5728458", "0.5723166", "0.5713287", "0.5712821", "0.56873256", "0.56662446", "0.5652115", "0.5634654", "0.561612...
0.8513972
0
Sets value of 'login_type' property
public function setLoginType($value) { return $this->set(self::LOGIN_TYPE, $value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAuthenticationType( $type ) {\n\t\t$this->_mAuthenticationType = $type;\n\t}", "public function getLoginType()\n {\n $value = $this->get(self::LOGIN_TYPE);\n return $value === null ? (integer)$value : $value;\n }", "public function setLogin($login);", "public function s...
[ "0.70229393", "0.6878211", "0.68520254", "0.68094367", "0.6724743", "0.65325505", "0.6500946", "0.63951683", "0.62962353", "0.6283707", "0.625432", "0.6154072", "0.61525506", "0.6132838", "0.6132838", "0.6132838", "0.6132838", "0.6132838", "0.6132838", "0.6132838", "0.6132838...
0.7849736
0
Returns value of 'login_type' property
public function getLoginType() { $value = $this->get(self::LOGIN_TYPE); return $value === null ? (integer)$value : $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getLoginUserType()\n {\n if (evo()->isFrontend() && evo()->session('webValidated')) {\n return 'web';\n }\n\n if (evo()->isBackend() && evo()->session('mgrValidated')) {\n return 'manager';\n }\n\n return '';\n }", "public function get_login...
[ "0.80059314", "0.6793492", "0.6742382", "0.6737393", "0.6735452", "0.6681333", "0.6672208", "0.65750283", "0.65750283", "0.6543746", "0.65138507", "0.6499645", "0.6496774", "0.6486381", "0.6464499", "0.6442073", "0.6442073", "0.64418757", "0.64418757", "0.643004", "0.6429309"...
0.85159534
0
Returns true if 'login_type' property is set, false otherwise
public function hasLoginType() { return $this->get(self::LOGIN_TYPE) !== null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isLogin()\n\t{\n\t\t$type = Bn::getValue('user_type');\n\t\treturn (!empty($type));\n\t}", "public static function isLogin() {\r\n\t\treturn (bool) Session::get('login', KumbiaAuthBase::$namespace);\r\n\t}", "function is_login ()\r\n {\r\n if (($this->get_login()) && ($this->get_id() ...
[ "0.8238207", "0.7340925", "0.73175305", "0.725217", "0.71797585", "0.71635807", "0.7144421", "0.71410424", "0.7123025", "0.70554125", "0.6856608", "0.68060654", "0.67815334", "0.6713117", "0.6655728", "0.6654279", "0.665373", "0.66517675", "0.6650071", "0.6605547", "0.6594105...
0.8692918
0
Create a new controller instance.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Get taxonomy list with all tags of the site.
public function get() { if (null === $this->taxonomylist) { $this->taxonomylist = $this->build(Grav::instance()['taxonomy']->taxonomy()); } return $this->taxonomylist; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTaxonomiesList() {\n return $this->_get(1);\n }", "public function get_taxonomies()\n {\n $terms = get_terms(array(\n 'hide_empty' => false\n ));\n\n return $terms;\n }", "public function getTaxonomyTerms();", "public function tags()\n {\n ...
[ "0.7617874", "0.7385423", "0.7351889", "0.71742433", "0.70958185", "0.70068365", "0.700656", "0.69835687", "0.69814444", "0.6963501", "0.694302", "0.694127", "0.6838572", "0.6815043", "0.68050724", "0.67874384", "0.6718938", "0.66819227", "0.6658688", "0.66490954", "0.6634464...
0.710471
4
Get taxonomy list with only tags of the child pages.
public function getChildPagesTags() { /** @var PageInterface $current */ $current = Grav::instance()['page']; $taxonomies = []; foreach ($current->children()->published() as $child) { if (!$child->isPage()) { continue; } foreach($th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTaxonomyTerms();", "public function tags()\n {\n $new = $this->postterms->filter(function($term)\n {\n return $term->termtaxonomy->taxonomy == 'post_tag';\n });\n\n return $new->map(function($term)\n {\n ...
[ "0.67813724", "0.6739332", "0.6729634", "0.6698302", "0.64633864", "0.642907", "0.6257175", "0.6256697", "0.62391734", "0.61943674", "0.6149934", "0.6148798", "0.6140939", "0.61370957", "0.60822314", "0.6059897", "0.6018438", "0.6011724", "0.60078555", "0.6004591", "0.5981970...
0.77187777
0
Insert Coupons. Generate Coupon Codes and insert with other info
public function insertCoupons($count, $amount, $distributiontag, $iscreditable, $promoname, $user, $status, $validfrom, $validto) { $model = new GenerationToolModel(); $connection = Yii::app()->db; $pdo = $connection->beginTransaction(); $firstquery = "INSERT INTO couponbatch (Cou...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createCoupon()\n {\n //wsw_coupon insert rows\n $entity_Coupon_base = new entity_Coupon_base();\n $entity_Coupon_base->uid = $this->memberInfo->uid;\n $entity_Coupon_base->coupon_money = $this->coupon_value;\n $entity_Coupon_base->coupon_status = service_Coupon...
[ "0.6500255", "0.6481464", "0.64752144", "0.6183799", "0.6021492", "0.5873916", "0.5847799", "0.5796635", "0.572389", "0.57140034", "0.56833386", "0.5629393", "0.56273854", "0.55982476", "0.55906457", "0.5547238", "0.55471885", "0.55090463", "0.5505506", "0.5503125", "0.543398...
0.6239052
3
put your code here
public function __construct() { parent::__construct(); $this->load->model('Crud'); $this->load->library('Excel'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n //\n \n }", "public function run()\n\t{\n\t\t//\n\t}", "public function preExecute(){\n\n\t\n\t}", "function script()\n {\n }", "public function run()\n {\n \n }", "public function run()\n {\n \n }", "public...
[ "0.60586566", "0.59289104", "0.5919654", "0.5899511", "0.5838488", "0.5838488", "0.58356965", "0.5814271", "0.5814271", "0.57796824", "0.5701954", "0.5700516", "0.5685669", "0.5684617", "0.5684617", "0.5684617", "0.5639208", "0.563027", "0.56278986", "0.56231225", "0.5620407"...
0.0
-1
Saves all values of settings
public function saveMultiple(array $settings, array $data, int $domain_id = null, int $language_id = null): bool { $transaction = \Yii::$app->db->beginTransaction(); try{ $success = $this->settingRepository->saveAll($settings, $data, $domain_id, $language_id); $transaction->c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function saveSettings()\n {\n if (empty($this->settings)) {\n $this->loadSettings();\n }\n \n $this->saveJSON($this->settings);\n }", "function save_settings() {\n\t\t$this->update_option( static::SETTINGS_KEY, $this->settings );\n\t}", "public function saveS...
[ "0.83556825", "0.82736516", "0.8228633", "0.81030506", "0.7841729", "0.7776874", "0.7728336", "0.77197254", "0.7717389", "0.75562406", "0.7543488", "0.7532312", "0.7467735", "0.7445014", "0.7379964", "0.73704976", "0.7356736", "0.72776884", "0.71897554", "0.71302223", "0.7119...
0.0
-1
Add needed css file includes for some component.
public function addIncludes($param) { if(is_array($param)) { foreach($param as $p) { array_push($this->needed_css_include, $p); } } else { array_push($this->needed_css_include, $param); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addCSSFiles()\n\t{\n\t\t$this->getContainer()->AddCSSFile(\"include/zoombox/zoombox.css\");\n\t}", "protected function addCSS() {\n foreach ($this->css_files as $css_file) {\n $this->header.=\"<link rel='stylesheet' href='\" . __ASSETS_PATH . \"/\" . $css_file . \"'/> \\n\";\n }...
[ "0.7482562", "0.73911756", "0.737888", "0.717975", "0.6895742", "0.68904936", "0.67401874", "0.6705795", "0.6695434", "0.6636185", "0.66056615", "0.6574081", "0.65594566", "0.65518844", "0.65243447", "0.651873", "0.6508076", "0.6494618", "0.64936703", "0.64838713", "0.6481581...
0.63872313
25
Render and return all includes of CSS.
public function renderIncludes($media = 'all') { $_ret = "\n"; $already_used = array(); foreach($this->needed_css_include as $i) { if (!in_array($i, $already_used)) { $_ret .= '<link rel="stylesheet" type="text/css" media="'.$media.'" href="'.$i.'" />'."\n"; array_push($already_used, $i); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function load_css () {\n $buffer = '';\n if (count($this->css_files)) {\n foreach ($this->css_files as $file) {\n $file = explode('/', $file);\n // TODO: use $this->config->item('modules_locations') for modules path\n $file = 'applicatio...
[ "0.7516488", "0.74296695", "0.72453046", "0.7021138", "0.7006917", "0.6997029", "0.6969767", "0.6952596", "0.69387275", "0.6932587", "0.6893932", "0.68303275", "0.6790006", "0.67844033", "0.67806375", "0.6774634", "0.6768249", "0.67516243", "0.6741047", "0.67305833", "0.67133...
0.6498804
31
Display a listing of the resource.
public function index() { $blogs = Blog::all(); return view('viewblog',compact('blogs')); }
{ "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() { return view('addblog'); }
{ "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) { $blog=Blog::create($this->Requestdata()); $this->storeImage($blog); return redirect('/admin/blog/create')->with('message','Blog Added'); }
{ "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(Blog $blog) { // }
{ "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.8233183", "0.81894475", "0.6830127", "0.6498529", "0.6496276", "0.6469191", "0.64627224", "0.63619924", "0.6308743", "0.62809277", "0.6218707", "0.61915004", "0.617914", "0.6172935", "0.6137578", "0.6118736", "0.6107122", "0.6106576", "0.60931313", "0.60798067", "0.6046669...
0.0
-1
Show the form for editing the specified resource.
public function edit(Blog $blog) { return view('editblog',compact('blog')); }
{ "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, Blog $blog) { $blog->update($this->Requestdata()); $this->storeImage($blog); return redirect('/admin/blog')->with('message','Blog Updated'); }
{ "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(Blog $blog) { $blog->delete(); return redirect('/admin/blog')->with('message','BLog Deleted'); }
{ "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
user defined cluster opduiken
static function getUserDefinedClusterValueObject() { $query = PdpActionQueries::getUserDefinedCluster(); $userDefinedClusterData = mysql_fetch_assoc($query); mysql_free_result($query); $clusterValueObject = PdpActionClusterValueObject::createWithData($userDefinedClusterData); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getClusterId()\n {\n }", "function create_cluster_sample(): void\n{\n // Create a client.\n $clusterManagerClient = new ClusterManagerClient();\n\n // Prepare any non-scalar elements to be passed along with the request.\n $cluster = new Cluster();\n\n // Call the API and hand...
[ "0.60760504", "0.57529956", "0.5207993", "0.5190976", "0.5080163", "0.5080134", "0.506632", "0.50360686", "0.5031988", "0.5028304", "0.49714053", "0.49014944", "0.4884136", "0.48678365", "0.48331514", "0.48330092", "0.48324466", "0.48275238", "0.4824771", "0.48185167", "0.481...
0.0
-1
/////////////////////////////////////////////////////////////////////////////////////////////////////// voor code completion:
static function getCluster($clusterId) { $query = PdpActionQueries::getCluster($clusterId); $clusterData = mysql_fetch_assoc($query); $clusterValueObject = PdpActionClusterValueObject::createWithData($clusterData); mysql_free_result($query); return $clusterValueObject; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _getNextCode() {}", "public static function getCode()\n\t{\n\t\tthrow new NotImplementedException;\n\t}", "function runkit_lint($code)\n{\n}", "static function completion(array &$donnees)\r\n {\r\n // ici le code\r\n }", "static function completion(array &$donnees)\r\n {\...
[ "0.6025495", "0.59206736", "0.59099007", "0.59035414", "0.59035414", "0.5814014", "0.57724404", "0.57593095", "0.56826013", "0.5643885", "0.5628723", "0.5612875", "0.5602389", "0.5575462", "0.55700773", "0.5565622", "0.5541479", "0.5526234", "0.55152476", "0.54744565", "0.541...
0.0
-1
START THEME OPTIONS custom theme options for user in admin area Appearance > Theme Options
function pu_theme_menu() { add_theme_page('Theme Option', 'Theme Options', 'manage_options', 'pu_theme_options.php', 'pu_theme_page'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function tsc_theme_options() {\n\tadd_theme_page( 'Theme Options', 'Theme Options', 'edit_theme_options', 'theme_options', 'tsc_theme_options_page' );\n}", "function themeoptions_admin_menu() {\n\tadd_theme_page ( \"Theme Options\", \"Theme Options\", 'edit_themes', basename ( __FILE__ ), 'themeoptions_page' );\...
[ "0.82513016", "0.77239287", "0.75141424", "0.7497059", "0.73338497", "0.72287863", "0.71937156", "0.71146613", "0.7084322", "0.70411", "0.69942826", "0.6983187", "0.6969877", "0.69619626", "0.6918007", "0.6892931", "0.6883487", "0.6881056", "0.6850881", "0.6848199", "0.684560...
0.7491769
4
Function to register the settings
function pu_register_settings() { // Register the settings with Validation callback register_setting('pu_theme_options', 'pu_theme_options'); // Add settings section add_settings_section('pu_text_section', 'Social Links', 'pu_display_section', 'pu_theme_options.php'); // Create textbox field $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register_settings()\n {\n }", "public function register_settings()\n {\n }", "function register_settings() {\n\tregister_setting(\n\t\t'StandardsReader_settings_group', // Option group\n\t\t'endpoint'); // Sanitize\n\t\n\tregister_setting(\n\t\t'StandardsReader_setti...
[ "0.9039385", "0.9038664", "0.8256201", "0.8089207", "0.8007179", "0.7896884", "0.7880476", "0.78517866", "0.78336895", "0.7806468", "0.77815473", "0.7763555", "0.77361536", "0.7711588", "0.77084935", "0.7682588", "0.76640034", "0.76427954", "0.76252705", "0.76181585", "0.7607...
0.0
-1
allow wordpress post editor functions to be used in theme options
function pu_display_setting($args) { extract($args); $option_name = 'pu_theme_options'; $options = get_option($option_name); switch ($type) { case 'text': $options[$id] = stripslashes($options[$id]); $options[$id] = esc_attr($options[$id]); echo "<input cla...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function posts_visual_editor_options() {\n\t\t// check user permissions\n\t\tif ( !current_user_can('edit_posts') && !current_user_can('edit_pages') ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// check if WYSIWYG is enabled\n\t\tif ( get_user_option('rich_editing') == 'true') {\n\t\t\tadd_filter( 'mce_css', array(...
[ "0.7599926", "0.74765104", "0.7338044", "0.7308103", "0.7191891", "0.7088848", "0.70305", "0.6955362", "0.6949286", "0.69245565", "0.6893485", "0.68541104", "0.684627", "0.68409765", "0.68390113", "0.6815728", "0.67988145", "0.6790772", "0.678992", "0.6748128", "0.67319655", ...
0.6784781
19
END THEME OPTIONS Load site scripts.
function bootstrap_theme_enqueue_scripts() { $template_url = get_template_directory_uri(); // jQuery. wp_enqueue_script('jquery'); // JS wp_enqueue_script('jquery-script', $template_url . '/js/jquery-1.10.2.js', array('jquery'), null, true); wp_enqueue_script('bootstrap-script', $template_ur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wp_footer() {\n SLPlus_Actions::ManageTheScripts();\n\t\t}", "function basetheme_scripts() {\n\n //DEREGISTER SCRIPTS\n wp_deregister_script('jquery');\n wp_deregister_script( 'wp-embed' );\n\n\twp_enqueue_style( 'basetheme-style', get_stylesheet_uri() );\n\n wp_enqueue_script( 'j...
[ "0.72363716", "0.72196704", "0.7158386", "0.7154502", "0.7134843", "0.7122297", "0.7066796", "0.70324147", "0.7001308", "0.69625986", "0.69625986", "0.6956656", "0.69507635", "0.69403106", "0.6934532", "0.6933436", "0.6916004", "0.69113433", "0.69112563", "0.69099724", "0.689...
0.0
-1
Replaces the excerpt "Read More" text by a link
function new_excerpt_more($more) { global $post; return ' <a class="read_more" href="' . get_permalink($post->ID) . '">[...]</a>'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpfme_replace_excerpt($content) {\n return str_replace('[...]',\n '<a class=\"readmore\" href=\"'. get_permalink() .'\">Continue Reading</a>',\n $content\n );\n}", "function new_excerpt_more( $more ) {\n\treturn '... <a class=\"read-more\" href=\"'. get_permalink( get_the_ID() ) . '\">' . __('Re...
[ "0.80780786", "0.797886", "0.7916905", "0.78647536", "0.78588927", "0.78242916", "0.7820188", "0.77927387", "0.7791788", "0.7789418", "0.7787512", "0.7784378", "0.77241176", "0.7721402", "0.7715685", "0.7703253", "0.77029073", "0.7692605", "0.7682849", "0.7664288", "0.7662811...
0.7657476
22
Retorna um array com o as etapas do censo que a escola disponibiliza. retornamos apenas as etapas que exista um aluno matriculo na mesma
public function getEtapasNaEscola() { $aEtapas = array(); $oDaoCensoEtapas = db_utils::getDao("censoetapamodal"); $sCamposEtapasNaEscola = "ed273_i_sequencia as codigo, "; $sCamposEtapasNaEscola .= "ed273_i_codigo as codigo_Seq, "; $sCamposEtapasNaEscola .= "ed273_i_modalida...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function tableauMatieres()\n\t\t{\n\t\t\t// On dit à mysql que l'on veut travailler en UTF-8\n\t\t\tmysqli_query($this->co,\"SET NAMES UTF8\");\n\t\t\t$result = mysqli_query($this->co,\n\t\t\t\t\t\t\t\t \"SELECT nom_matiere FROM matiere\")\n\t\t\tor die(\"Connexion impossible : Connexion tableauMatieres()...
[ "0.6620419", "0.63969326", "0.6340149", "0.6295867", "0.62428", "0.61065894", "0.59875625", "0.5971302", "0.59652627", "0.59237176", "0.5920678", "0.5897849", "0.58815765", "0.58411765", "0.58376676", "0.5827408", "0.5815303", "0.5807598", "0.5783372", "0.5779222", "0.5758152...
0.5853751
13
Retorna os telefones que a escola tem.
public function getTelefones() { $aTelefones = array(); $oDaoTelefones = new cl_telefoneescola(); $sCampos = "ed26_i_ddd as ddd, ed26_i_numero as numero, ed13_c_descr as tipo_telefone"; $sSqlTelefones = $oDaoTelefones->sql_query(null, $sCampos, "ed26_i_numero", "ed26_i_escola = {$this->iCodigo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTelefonos(){\n\t\t$socio\t\t\t= $this->mCodigo;\n\t\t$mArrTelefonos\t= array();\n\t\t$sql = \"SELECT\n\t\t\t\t\tTRIM(`socios_vivienda`.`telefono_residencial`) AS 'telefono'\n\t\t\t\tFROM\n\t\t\t\t\t`socios_vivienda` `socios_vivienda`\n\t\t\t\tWHERE\n\t\t\t\t\t(`socios_vivienda`.`socio_numero` =$socio)\...
[ "0.71565455", "0.68757594", "0.654493", "0.65406376", "0.6531317", "0.6508314", "0.6418184", "0.6213722", "0.62043756", "0.61502117", "0.6138295", "0.6011169", "0.598546", "0.5967378", "0.58932984", "0.58794475", "0.5833447", "0.58040017", "0.57950926", "0.5794389", "0.576247...
0.7341893
0