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
Set the application locale to $code.
public function setLanguage($code) { Session::set('locale', $code); return redirect()->back(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCode($code) {\n\t\tif (empty ($code)) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ($this->code != $code) {\n\t\t\t$this->messages= null;\n\t\t\t/*\n\t\t\t\t\t\tif (isset ($this->Session)) {\n\t\t\t\t\t\t\t$this->Session->write('Lang.Code', $code);\n\t\t\t\t\t\t}\n\t\t\t*/\n\t\t\t$this->code= $code;\n\t\t\t$this-...
[ "0.7743295", "0.7004598", "0.6840955", "0.67920136", "0.67087084", "0.67026204", "0.6624256", "0.66186404", "0.65658313", "0.65107757", "0.64037657", "0.633905", "0.62691325", "0.60949105", "0.60895807", "0.6085595", "0.60812926", "0.60785675", "0.6048093", "0.60208327", "0.6...
0.7194498
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() { MessagingAmqpService::declareSysQueues(); ExchangeService::bindAllExchanges(); MessagingAmqpService::listen( config('amqp.log_queue'), [ MessageService::class, 'consumeLog' ] ); }
{ "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
Validate the RPC caller context.
public function getSettings($params, $context) { $this->validateMethodContext($context, ["role" => OMV_ROLE_ADMINISTRATOR]); // Get the configuration object. $db = \OMV\Config\Database::getInstance(); $object = $db->get("conf.service.webdesk"); // Remove useless properties fr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }...
[ "0.6084363", "0.5932464", "0.5608582", "0.55777574", "0.5451368", "0.54418534", "0.54231936", "0.5422019", "0.5397647", "0.5388053", "0.5361162", "0.53166896", "0.530501", "0.5301431", "0.5282658", "0.52696484", "0.5256391", "0.5239617", "0.5213742", "0.5208621", "0.5175152",...
0.0
-1
Validate the RPC caller context.
public function setSettings($params, $context) { $this->validateMethodContext($context, ["role" => OMV_ROLE_ADMINISTRATOR]); // Validate the parameters of the RPC service method. $this->validateMethodParams($params, "rpc.webdesk.setsettings"); // Get the existing configuration object...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }...
[ "0.6084363", "0.5932464", "0.5608582", "0.55777574", "0.5451368", "0.54418534", "0.54231936", "0.5422019", "0.5397647", "0.5388053", "0.5361162", "0.53166896", "0.530501", "0.5301431", "0.5282658", "0.52696484", "0.5256391", "0.5239617", "0.5213742", "0.5208621", "0.5175152",...
0.0
-1
Validate the RPC caller context.
public function getLinkList($params, $context) { $this->validateMethodContext($context, ["role" => OMV_ROLE_ADMINISTRATOR]); // Get the configuration object. $db = \OMV\Config\Database::getInstance(); $objects = $db->get("conf.service.webdesk.link"); // Add additional link in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }...
[ "0.6084363", "0.5932464", "0.5608582", "0.55777574", "0.5451368", "0.54418534", "0.54231936", "0.5422019", "0.5397647", "0.5388053", "0.5361162", "0.53166896", "0.530501", "0.5301431", "0.5282658", "0.52696484", "0.5256391", "0.5239617", "0.5213742", "0.5208621", "0.5175152",...
0.0
-1
Validate the RPC caller context.
public function getLink($params, $context) { $this->validateMethodContext($context, ["role" => OMV_ROLE_ADMINISTRATOR]); // Validate the parameters of the RPC service method. $this->validateMethodParams($params, "rpc.common.objectuuid"); // Get the configuration object. $db =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }...
[ "0.6084363", "0.5932464", "0.5608582", "0.55777574", "0.5451368", "0.54418534", "0.54231936", "0.5422019", "0.5397647", "0.5388053", "0.5361162", "0.53166896", "0.530501", "0.5301431", "0.5282658", "0.52696484", "0.5256391", "0.5239617", "0.5213742", "0.5208621", "0.5175152",...
0.0
-1
Validate the RPC caller context.
public function setLink($params, $context) { $this->validateMethodContext($context, ["role" => OMV_ROLE_ADMINISTRATOR]); // Validate the parameters of the RPC service method. $this->validateMethodParams($params, "rpc.webdesk.setlink"); // Prepare the configuration object. $ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }...
[ "0.6084363", "0.5932464", "0.5608582", "0.55777574", "0.5451368", "0.54418534", "0.54231936", "0.5422019", "0.5397647", "0.5388053", "0.5361162", "0.53166896", "0.530501", "0.5301431", "0.5282658", "0.52696484", "0.5256391", "0.5239617", "0.5213742", "0.5208621", "0.5175152",...
0.0
-1
Validate the RPC caller context.
public function deleteLink($params, $context) { $this->validateMethodContext($context, ["role" => OMV_ROLE_ADMINISTRATOR]); // Validate the parameters of the RPC service method. $this->validateMethodParams($params, "rpc.common.objectuuid"); // Delete the configuration object. ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }...
[ "0.6084363", "0.5932464", "0.5608582", "0.55777574", "0.5451368", "0.54418534", "0.54231936", "0.5422019", "0.5397647", "0.5388053", "0.5361162", "0.53166896", "0.530501", "0.5301431", "0.5282658", "0.52696484", "0.5256391", "0.5239617", "0.5213742", "0.5208621", "0.5175152",...
0.0
-1
Validate the RPC caller context.
public function doRescan($params, $context) { $this->validateMethodContext($context, ["role" => OMV_ROLE_ADMINISTRATOR]); // Get the configuration object. $db = \OMV\Config\Database::getInstance(); $object = $db->get("conf.service.webdesk"); if (TRUE !== $object->get("enable"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validateWebhookCall()\n {\n // If the webhook was called with an invalid method, throw an error\n if($_SERVER['REQUEST_METHOD'] != 'POST'){\n die(json_encode([\n 'success' => false,\n 'error' => 'invalid_method',\n ]));\n }...
[ "0.6084363", "0.5932464", "0.5608582", "0.55777574", "0.5451368", "0.54418534", "0.54231936", "0.5422019", "0.5397647", "0.5388053", "0.5361162", "0.53166896", "0.530501", "0.5301431", "0.5282658", "0.52696484", "0.5256391", "0.5239617", "0.5213742", "0.5208621", "0.5175152",...
0.0
-1
/ Function to Mark and Display the Date that has Reservations $conn and $day as argument in this function to complete the operation
function getDateReserve($conn, $day, $current_month) { $current_year = date("y"); $select_all_dates = "SELECT * FROM reservation WHERE confirmation = 'Confirmed'"; $q_seleect_all_dates = $conn->query($select_all_dates); if($q_seleect_all_dates->num_rows > 0) { while($q_row = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function php_show_reservation_list($date) {\r\n\r\n $returnStatus['status'] = 'undefined';\r\n\r\n $uid = php_get_uid();\r\n\r\n //check the date format is valid\r\n if (!php_check_convert_resv_date($date, $d, $m, $y)) {\r\n $returnResult['status'] = 'Date format incorrect';\r\n return $r...
[ "0.620296", "0.619164", "0.5761321", "0.57592064", "0.57196337", "0.57176465", "0.57060397", "0.56374925", "0.5577489", "0.55640554", "0.555707", "0.5507494", "0.54930604", "0.54928577", "0.5492568", "0.5482267", "0.5481299", "0.54778254", "0.547304", "0.54701036", "0.5440296...
0.6941607
0
/ Functio to get determine the maximum number of reservation per day (10)
function maxCountLimit($conn, $day, $current_month) { $current_year = date("y"); $select_all_dates = "SELECT * FROM reservation"; $q_seleect_all_dates = $conn->query($select_all_dates); if($q_seleect_all_dates->num_rows > 0) { while($q_row = $q_seleect_all_dates->fetch_a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMaxDaysOnMarket();", "function maxWeddingReservation($conn, $day, $month) {\n\t\t\t\t\t\n\t\t\t\t\t$event = 'Wedding';\n\t\t\t\t\t\n\t\t\t\t\t$date = date(\"Y\") . \"-\" . $month . \"-\" . $day;\n\t\t\t\t\t\n\t\t\t\t\t$select_wed = \"SELECT * FROM reservation WHERE reserv_date = '$date' AND ev...
[ "0.64599305", "0.6252814", "0.5860589", "0.5843933", "0.5834099", "0.58009493", "0.5767756", "0.5679431", "0.5679431", "0.5649597", "0.5589756", "0.55835575", "0.55743355", "0.55072856", "0.5498549", "0.54798365", "0.5461858", "0.54602593", "0.545082", "0.53927004", "0.539270...
0.69595766
0
Function to Get Wedding Reservations for a day
function maxWeddingReservation($conn, $day, $month) { $event = 'Wedding'; $date = date("Y") . "-" . $month . "-" . $day; $select_wed = "SELECT * FROM reservation WHERE reserv_date = '$date' AND event_type = '$event' AND confirmation = 'Confirmed'"; $select_wed_query = $conn->query(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function schedulingsDay(Request $request)\n {\n $date = $request->input('date_scheduling');\n $schedulings = Scheduling::where('date_scheduling', $date)->get();\n foreach ($schedulings as $value) {\n $value->room->local;\n }\n\n return SchedulingResource::col...
[ "0.62732154", "0.60634863", "0.6062732", "0.58741355", "0.58535534", "0.5840862", "0.58329326", "0.57965505", "0.5705613", "0.5690353", "0.5682623", "0.5641847", "0.5586593", "0.55172485", "0.5515463", "0.551159", "0.54993033", "0.54981244", "0.5493283", "0.54828846", "0.5482...
0.5531961
13
Display a listing of the resource.
public function index(Request $request) { if ($request) { $query=trim($request->get('searchText')); $articulos=DB::table('articulo as a') ->join('categoria as c','a.idcategoria','=','c.idcategoria') ...
{ "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() { $categorias=DB::table('categoria')->where('condicion','=','1')->get(); return view('almacen.articulo.create',['categorias'=>$categorias]); }
{ "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(ArticuloFormRequest $request) { $articulo = new Articulo($request->all()); $articulo->estado='activo'; if (Input::hasFile('imagen')){ $file=Input::file('imagen'); $file->move(public_path().'/imagenes/articulos/',$file-...
{ "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) { return view('almacen.articulo.show',["articulo"=>Articulo::findOrFail($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) { $articulo=Articulo::findOrFail($id); $categorias=DB::table('categoria')->where('condicion','=','1')->get(); return view('almacen.articulo.edit',["articulo"=>$articulo,"categorias"=>$categorias]); }
{ "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(ArticuloFormRequest $request,$id) { $articulo = Articulo::find($id); $articulo->fill($request->all()); $articulo->save(); // flash::warning("categoria editada correctamente"); return Redirect::to('almacen/articulo'); ...
{ "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) { $articulo=Articulo::findOrFail($id); $articulo->estado='Inactivo'; $articulo->update(); return Redirect::to('almacen/articulo'); }
{ "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 resource.
public function index() { $posts = Post::where('user_id', Auth::id())->get(); return view('registred.posts.index', compact('posts')); }
{ "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() { $data = [ 'tags' => Tag::all(), ]; return view('registred.posts.insert', $data); }
{ "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) { $request->validate($this->validateRules); $data = $request->all(); $newPost = new Post; $newPost->title = $data['title']; $newPost->body = $data['body']; $newPost->slug = rand(1, 100) . '-' . Str::slug($newPost->titl...
{ "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($slug) { $post = Post::where('slug', $slug)->first(); return view('registred.posts.show', compact('post')); }
{ "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) { $data = [ 'post' => Post::find($id), 'tags' => Tag::all() ]; return view('registred.posts.edit', $data); }
{ "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,Post $post) { if (empty($post)) { abort(404); } if ($post->user->id != Auth::id()) { abort(404); } $request->validate($this->validateRules); $data = $request->all(); $post->title = $data['title']...
{ "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(Post $post) { if (empty($post)) { abort(404); } $post->tags()->detach(); $post->delete(); //no error only for color return redirect()->route('registred.posts.index')->with('error', 'Po...
{ "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 all possible states of printer
public static function getStates() { $db = Zend_Registry::get('dbAdapterReadOnly'); $select = $db->select() ->from(array('ps' => 'printer_states')) ->order('ps.id'); return $db->fetchAll($select); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPrintState() {}", "function printState() {\n\t\t$state = $this->getState();\n\t\techo $state;\n\n\t\n\t}", "public static function availableStates()\n {\n return array(\n self::STATUS_CLOSED,\n self::STATUS_MODERATED,\n self::STATUS_PUBLISHED,\n ...
[ "0.78884524", "0.61644274", "0.5958475", "0.587656", "0.580595", "0.5762199", "0.5739749", "0.57038975", "0.5654974", "0.5576311", "0.55649626", "0.5554681", "0.55470526", "0.5542125", "0.5538455", "0.54023296", "0.53825295", "0.53648686", "0.5346411", "0.5344111", "0.5333615...
0.69640666
1
Display a listing of the resource.
public function index() { return Player::all(); }
{ "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) { $request->validate([ 'name' => 'required', 'nationality' => 'required', 'rank' => 'required' ]); return Player::create($request->all()); }
{ "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) { return Player::find($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
Update the specified resource in storage.
public function update(Request $request, $id) { // $request->validate([ // 'name' => 'required', // 'nationality' => 'required', // 'rank' => 'required' // ]); $player = Player::find($id); $player->update($request->all()); return $player; ...
{ "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) { return Player::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
Conexion a la BD
public function __construct() { include('../Controlador/conexion.php'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function conectarDB(){\n\t\t$dsn = 'mysql:dbname='.self::nombre_db.' ;host='.self::servidor;\n\t\ttry {\n\t\t\t#metodo abstracto para la conexion a la bd\n\t\t\t$this->_conn = new PDO($dsn, self::usuario_db, self::pwd_db);\n\t\t \t\n\t\t } catch (PDOException $e) {\n\t\t \techo \"Falló la conexión: \".$e->...
[ "0.82985485", "0.8021048", "0.8020601", "0.7925399", "0.79222584", "0.78918356", "0.7837028", "0.7798241", "0.7781498", "0.7745928", "0.7728946", "0.77138495", "0.76894933", "0.760983", "0.7603191", "0.7562865", "0.7521866", "0.748938", "0.74585193", "0.7456362", "0.7439002",...
0.0
-1
Get y Set de $codigo
public function getcodigo() { return $this->codigo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setCodigo($codigo){\n $this->codigo = $codigo;\n }", "public function setCodigo($codigo)\n {\n $this->codigo = $codigo;\n }", "public function setCodigo($codigo)\n {\n $this->codigo = $codigo;\n }", "public function asignarCodigo($codigo){\n\t\t$this->codigo = ...
[ "0.79133844", "0.75222516", "0.75222516", "0.7259844", "0.70875806", "0.7014087", "0.69622695", "0.69622695", "0.6841414", "0.6664111", "0.6624511", "0.65522164", "0.6419159", "0.63785225", "0.63516206", "0.6350782", "0.6307545", "0.6307545", "0.6307545", "0.6305509", "0.6304...
0.6653165
11
Get y Set de $fecha
public function getfecha() { return $this->fecha; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "function getFecha(){\n\t\treturn $this->fecha;\n\t}", "function getFecha() {\r\n return $this->fecha;\r\n }", "public function setFecha($fecha) {\n $date = Funciones::gConvertirFecha($fecha, TRUE);\n $orden = $t...
[ "0.80408186", "0.75071865", "0.74781007", "0.7468652", "0.7069885", "0.7069885", "0.70468664", "0.7010231", "0.7010231", "0.69862115", "0.6923586", "0.6911116", "0.6856427", "0.67400396", "0.6726927", "0.67047626", "0.66677964", "0.6663142", "0.6579852", "0.657022", "0.640769...
0.75844604
1
Get y Set de $empleado
public function getempleado() { return $this->empleado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmpleado() {\r\n return $this->empleado;\r\n }", "public function empleado()\n {\n return \\App\\Models\\Empleado::where('user_id', $this->user_id)->first();\n }", "public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }", "public f...
[ "0.74684316", "0.6651155", "0.6545242", "0.646015", "0.6434012", "0.64185774", "0.637984", "0.62619704", "0.62619704", "0.6247043", "0.622682", "0.6135711", "0.6108316", "0.6107448", "0.6101456", "0.60973835", "0.602096", "0.59854954", "0.59677655", "0.5964302", "0.59473115",...
0.75943446
1
Consultar datos de una produccion
public function ConsultarDatosProduccion($codigo) { $objetoBD = new Conexion(); $objetoBD->conectar(); $mysqli = $objetoBD->cadenaconexion(); $consulta = "SELECT prod_id , prod_fecha, emp_nombres, emp_apellidos FROM empleados, produccion WHERE empleados.emp_id=producc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function consultarProyectos() {\n $cadena_sql = $this->sql->cadena_sql(\"consultaProyectos\",\"\");\n return $resultadoProyectos = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n }", "function consultar(){\n\n\n\t\t$this->db->select('p.NUMERO, p.FACULTAD, p....
[ "0.747568", "0.7167626", "0.69718736", "0.6929163", "0.6892436", "0.6863533", "0.68526465", "0.6843467", "0.67624694", "0.6757574", "0.6756848", "0.6712972", "0.66795474", "0.6673222", "0.6667948", "0.66446143", "0.66403365", "0.6614841", "0.65862846", "0.65782017", "0.657196...
0.69619346
3
Consultar detalles de una produccion
public function ConsultarDetalleProduccion($codigo) { $objetoBD = new Conexion(); $objetoBD->conectar(); $mysqli = $objetoBD->cadenaconexion(); $consulta = "SELECT deta_cantidad_materia_prima, mp_nombre FROM detalle_produccion, materia_prima WHERE materia_prima.mp_id=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function consultarProyectos() {\n $cadena_sql = $this->sql->cadena_sql(\"consultaProyectos\",\"\");\n return $resultadoProyectos = $this->ejecutarSQL($this->configuracion, $this->accesoOracle, $cadena_sql, \"busqueda\");\n }", "function afficherProduits(){\n\t\t$sql=\"SElECT * From paniers \";\n\t\t$d...
[ "0.68525565", "0.6644121", "0.6601485", "0.66014785", "0.65899247", "0.657516", "0.65255386", "0.6453339", "0.64483917", "0.6419183", "0.64122784", "0.63947666", "0.63836515", "0.6377999", "0.63537925", "0.6330314", "0.62709", "0.62630385", "0.6245447", "0.6244744", "0.624437...
0.6711395
1
Consultar codigo maximo de la produccion
public function CodigoProduccion() { $objetoBD = new Conexion(); $objetoBD->conectar(); $mysqli=$objetoBD->cadenaConexion(); $consulta="SELECT max(prod_id) as maximo FROM produccion "; $resultado=$mysqli->query($consulta); $maximo=""; while($fila=mysqli_fetch_ob...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function CodigoPedido()\r\n\r\n {\r\n $objetoBD = new Conexion();\r\n $objetoBD->conectar();\r\n $mysqli=$objetoBD->cadenaConexion();\r\n\r\n $consulta=\"SELECT max(ped_id) as maximo FROM pedidos \";\r\n $resultado=$mysqli->query($consulta);\r\n\r\n $maximo=\"\";\r\n whil...
[ "0.74850863", "0.7206991", "0.71918726", "0.7175867", "0.7147372", "0.7140071", "0.7140071", "0.7093192", "0.70545185", "0.7021588", "0.69857293", "0.6867222", "0.68574476", "0.6855183", "0.6839303", "0.6818563", "0.6815775", "0.6761565", "0.6754523", "0.6751725", "0.6620329"...
0.8060826
0
Consultar Pedidos de hoy
public function ReportesHoy() { $objetoBD = new Conexion(); $objetoBD->conectar(); $mysqli = $objetoBD->cadenaconexion(); $consulta = "SELECT COUNT(rep_id) AS Reportes from reporte where rep_fecha=CURDATE()"; $resultado = $mysqli->query($consulta); return $resu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function readPedidos(){\n $sql='SELECT IdEncabezado, u.Nombre, u.Apellido, Fecha, TipoEstado \n FROM encabezadopedidos en INNER JOIN usuarios u USING (IdUsuario) \n INNER JOIN estadopedidos es USING(IdEstadoPedido) ORDER by IdEncabezado ASC ';\n $params=array(null);\n retu...
[ "0.6686876", "0.6685819", "0.66687274", "0.6602002", "0.6558771", "0.65036404", "0.64841896", "0.64787143", "0.6473413", "0.6464244", "0.64489913", "0.64476746", "0.644637", "0.6438975", "0.6431052", "0.63749784", "0.63638145", "0.6336698", "0.6317326", "0.6291482", "0.628582...
0.0
-1
Registers settings and controls with the Customizer.
function thyme_customizer_register( $wp_customize ) { $childthemesettings = genesis_get_config( 'child-theme-settings' )[ GENESIS_SETTINGS_FIELD ]; $wp_customize->add_setting( 'thyme_link_color', [ 'default' => thyme_get_default_link_color(), 'sanitize_callback' => 'sanitize_hex_color', ] );...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function register_customization( $wp_customize ) {\n\tadd_settings( $wp_customize );\n\tadd_sections( $wp_customize );\n\tadd_controls( $wp_customize );\n}", "public function add_control( $wp_customize ) {}", "function settingsCustomizeRegister($wp_customize)\n{\n\t$wp_customize->add_section(\n\t\t'settings_se...
[ "0.7574842", "0.7336966", "0.7297163", "0.72384036", "0.7175507", "0.7070218", "0.7057177", "0.7046315", "0.70378554", "0.69862145", "0.69836956", "0.6966868", "0.6930361", "0.6923847", "0.69035375", "0.6893971", "0.68853354", "0.6882601", "0.68814313", "0.6879227", "0.686940...
0.0
-1
Displays a message if the entered width is not numeric or greater than 100.
function thyme_validate_logo_width( $validity, $width ) { if ( empty( $width ) || ! is_numeric( $width ) ) { $validity->add( 'required', __( 'You must supply a valid number.', 'thyme-theme' ) ); } elseif ( $width < 100 ) { $validity->add( 'logo_too_small', __( 'The logo width cannot be less than 100.', 'thyme-th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function checkWidth(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_numeric($this->_Width) && $this->_Width !== null && $this->_Width !== 0 ) {\n\t\t\t$inMessage .= \"{$this->_Width} is not a valid value for Width\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}", "public function ...
[ "0.6768302", "0.6681152", "0.63489157", "0.62193644", "0.61063486", "0.60746413", "0.6050299", "0.59691983", "0.590934", "0.5707985", "0.5596151", "0.5507725", "0.549055", "0.5427789", "0.5427789", "0.5427789", "0.5427789", "0.5427789", "0.5397178", "0.53710747", "0.535891", ...
0.6046882
7
get toolbar html for the specified position (top, left, right, bottom)
function get($pos, $mode='design') { $buf = ''; if (!empty($this->toolbars[$pos.'_'.$mode])) { if ($pos == 'top' || $pos == 'bottom') { // horizontal toolbar $tb_pos_start = '<table border="0" cellpadding="0" cellspacing="0" width="100%">'; $tb_pos_end = '</table>'; $tb_item_sep =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getToolbarHtml()\n {\n return $this->getChildHtml('toolbar');\n }", "public function getToolbarHtml()\n {\n return $this->getChildHtml('toolbar');\n }", "public function getToolbarHtml()\n {\n $cedToolbar = $this->getChildHtml('toolbar');\n return $ced...
[ "0.65845305", "0.65845305", "0.64955163", "0.6422428", "0.63536364", "0.61383647", "0.6106709", "0.59202605", "0.5895818", "0.58381754", "0.5827444", "0.57555646", "0.56374264", "0.56142807", "0.5558611", "0.55018055", "0.54461765", "0.5433783", "0.53984797", "0.53584814", "0...
0.7448759
0
get returns toolbar item html based on name and type
function getTbItem($name, $type, $attributes, $data) { switch($type) { case SPAW_TBI_IMAGE: $tbi = new SPAW_TB_Image($name, $this->lang, $this->editor, $this->theme, $attributes); $buf = $tbi->get(); break; case SPAW_TBI_BUTTON: $tbi = new SPAW_TB_Button($name, $this->lang, $this->ed...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getToolbarItems();", "public function render() {\n\t\t$this->addJavascriptToBackend();\n\t\t$this->addCssToBackend();\n\t\t$title = $GLOBALS['LANG']->getLL('toolbaritem', true);\n\n\t\t\t// toolbar item icon\n\t\t$menu[] = '<a href=\"#\" class=\"toolbar-item\"\">';\n\t\t$menu[] = '<input type=\"t...
[ "0.6842441", "0.64071155", "0.63748395", "0.62949187", "0.6261753", "0.6137785", "0.6137785", "0.60876954", "0.60102373", "0.59703726", "0.59043634", "0.5857361", "0.5816831", "0.57304776", "0.5725111", "0.5723343", "0.57177114", "0.56702965", "0.56334144", "0.56228024", "0.5...
0.5852124
12
getTbItem output toolbar html for the specified position (top, left, right, bottom)
function show($pos) { echo $this->get($pos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get($pos, $mode='design')\r\n\t{\r\n\t\t$buf = '';\r\n\t\tif (!empty($this->toolbars[$pos.'_'.$mode]))\r\n\t\t{\r\n\t\t\tif ($pos == 'top' || $pos == 'bottom')\r\n\t\t\t{\r\n\t\t\t\t// horizontal toolbar\r\n\t\t\t\t$tb_pos_start = '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">';\...
[ "0.66419727", "0.62184584", "0.6081764", "0.6010538", "0.6010538", "0.59614855", "0.59530634", "0.58817", "0.5866838", "0.58459294", "0.5840475", "0.58308464", "0.5825823", "0.5732892", "0.57314974", "0.5625061", "0.55560875", "0.5516693", "0.54597133", "0.5399503", "0.539249...
0.0
-1
prueba de query a.email, b.id, b.user_id, b.name, b.language, b.location, b.meta, b.courseware, b.gender, b.mailing_address, b.year_of_birth, b.level_of_education, b.goals, b.allow_certificate, b.country, b.city
public function queryUsuario($value) { $sql = 'select a.email, b.id, b.gender, b.mailing_address, b.year_of_birth, b.level_of_education, b.country f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_profile_details($user_id)\n {\n $sql = \"SELECT u.id as user_id, \n u.profile_code,\n u.bio_info,\n u.created_at as register_date,\n u.email,\n u.last_name,\n u.first_name...
[ "0.58548295", "0.5645524", "0.5643967", "0.5491457", "0.54728675", "0.54316914", "0.5397917", "0.5392841", "0.5347162", "0.53358644", "0.5305046", "0.5294009", "0.52716327", "0.52673393", "0.5241931", "0.5238648", "0.5210773", "0.52065235", "0.52040774", "0.5203182", "0.51964...
0.5079846
41
View Add user page
public function add(){ $outData['script']= CONTROLLER_NAME."/add"; $this->assign('output',$outData); $this->display(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function add_user() {\n $this->load->view('add_user');\n }", "public function getAdduser()\n\t{\n\t\treturn view('adduser');\n\t}", "public function action_add()\r\n\t{\r\n\t\tif ( Request::current()->method() == Request::POST )\r\n\t\t{\r\n\t\t\treturn $this->_add();\r\n\t\t}\r\n\t\t\r\n\t\t$...
[ "0.8204279", "0.8107981", "0.802444", "0.8009763", "0.7987004", "0.7943107", "0.78831613", "0.78745085", "0.78732204", "0.786503", "0.78275937", "0.7818517", "0.7815404", "0.7771804", "0.7755497", "0.77300614", "0.77295995", "0.77020645", "0.7672297", "0.766827", "0.7653434",...
0.0
-1
View edit user page
public function edit($id){ $outData['script']= CONTROLLER_NAME."/add"; $model = M('user'); $result = $model->field('id,username,email,realname')->where('id='.$id)->find(); $outData['info'] = $result; $this->assign("pageName",'编辑用户'); $this->assign('output',$outData); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit() \n\t{\n UserModel::authentication();\n\n //get the user's information \n $user = UserModel::user();\n\n\t\t$this->View->Render('user/edit', ['user' => $user]);\n }", "public function edit() {\n $token = $this->require_authentication();\n $user = $token->ge...
[ "0.874087", "0.8706978", "0.8660232", "0.84527194", "0.83909786", "0.8339164", "0.83279574", "0.8293682", "0.8235497", "0.8163366", "0.8139508", "0.8114504", "0.81055087", "0.8094688", "0.80829364", "0.8064787", "0.80417734", "0.8011118", "0.8007757", "0.799678", "0.79835624"...
0.0
-1
Create DATA URL from file
public function stringify($data, $prettyPrint = TRUE) { if (!$data instanceof Media) { throw new InvalidArgumentException( 'DataUrlMapper expects object of type Media, ' . (gettype($data)) . ' given' ); } return Filters::dataStream((string)$data, $data->getContentType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract function createUrl($file);", "public function getUrl( $file );", "abstract public function getUrl(File $file);", "function data_uri($contents, $mime)\n{\n// $contents = file_get_contents($file);\n $base64 = base64_encode($contents);\n return ('data:' . $mime . ';base64,' . $base...
[ "0.6943681", "0.61701906", "0.6150632", "0.6111693", "0.6106916", "0.61022675", "0.5892638", "0.5734917", "0.57236993", "0.5587094", "0.5506081", "0.54920715", "0.54522574", "0.54442763", "0.53932375", "0.53854686", "0.5354729", "0.5348345", "0.52889764", "0.52680093", "0.523...
0.0
-1
Convert client request data to array or traversable
public function parse($data) { $matches = Strings::match($data, "@^data:([\w/]+?);(\w+?),(.*)$@si"); if (!$matches) { throw new MappingException('Given data URL is invalid.'); } return new Media(base64_decode($matches[3]), $matches[1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function data2Array($data);", "public function toArray($request): array;", "public function getRequestData()\n {\n return json_decode($this->requestData);\n }", "public function _getData(): array\n {\n $result = [\n ];\n\n return parent::normalizeData($res...
[ "0.64819294", "0.63830215", "0.6057645", "0.59771353", "0.58957857", "0.5883464", "0.58632666", "0.5859249", "0.58590615", "0.5825441", "0.5825441", "0.58246523", "0.5822655", "0.58131915", "0.58131915", "0.58131915", "0.57781386", "0.5736341", "0.5736341", "0.5736341", "0.57...
0.0
-1
/ Retrieves the five most recent note postings for the indicated grou
function getStudyGroupNotes( $groupId, $userId, $sessionId ) { // Request the five most recent note postings for this group. $groupNotesXML = getStudyGroupNoteDAL( $groupId, 0, 0 ); $tags = array( 'UserId', 'SessionId', 'StudyGroupId' ); $values = array( $userId, $sessionId, $groupId ); return ins...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getLastDiscussions(){\n $sql = \"select * from discussions ORDER BY `id` DESC LIMIT 5\";\n return App::$db->query($sql);\n }", "function scrivilistapost($mese, $anno, $mese1, $anno1) { //top 10 per numero post\n\tconnetti($db);\n\t$query = \"SELECT username, count(*) post ...
[ "0.62769467", "0.6089584", "0.6052168", "0.60327053", "0.5960881", "0.59533364", "0.5912412", "0.5879507", "0.5784405", "0.5783184", "0.5778848", "0.5771238", "0.57567537", "0.57340366", "0.5717962", "0.5692854", "0.55937564", "0.5568941", "0.5544715", "0.5531405", "0.5507895...
0.53311354
37
Add header to the request
public function setHeader($name = NULL, $val = NULL) { if (empty ( $name )) return false; $this->request_headers [str_replace ( ' ', '-', ucwords ( str_replace ( '-', ' ', $name ) ) )] = $val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addHeader()\n {\n }", "public function add_header() {\n }", "public function addHeader($header);", "function httpHeader($header) {\r\n\t\t$this->customHeaders[] = $header;\r\n\t}", "public function addRequestHeader($key, $value)\r\r\n {\r\r\n $this->requestHeaders[$key] = $value;...
[ "0.77968377", "0.77728605", "0.7669406", "0.72939134", "0.72216576", "0.71436906", "0.71436906", "0.70582294", "0.7056862", "0.70178545", "0.7007909", "0.69837666", "0.69442624", "0.6941404", "0.6925629", "0.683224", "0.6816298", "0.68114066", "0.67551017", "0.67342883", "0.6...
0.0
-1
Add headers to the request
public function setHeaders($headers = NULL, $over = FALSE) { if ($over) { $this->request_headers = $headers; return true; } if (empty ( $headers )) return false; foreach ($headers as $name => $val) { $this->setHeader($name, $val); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addHeaders($headers) {}", "public function add_header() {\n }", "public function addHeader()\n {\n }", "public function addHeaders(array $headers) {}", "private function setHeaders() {\n // Data required for the token request\n $data = array(\n 'client_id' =>...
[ "0.75079584", "0.73494935", "0.73341805", "0.7037959", "0.70255077", "0.7019756", "0.6989091", "0.6977965", "0.689785", "0.68932885", "0.6891222", "0.68827003", "0.6816856", "0.68117565", "0.6798317", "0.6774763", "0.6764614", "0.6724314", "0.6658594", "0.6654305", "0.6632488...
0.0
-1
Set the body of the request
public function setBody($content = NULL) { if ($content == NULL) return false; $this->request_body = $content; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setBody($body) {}", "public function setBody($body);", "public function setBody($body);", "public function setBody($s) {$this->_body = $s;}", "public function setBody($data) {\n\t\t$this->body = $data;\n\t}", "public function setBody($body)\n {\n $this->_body = $body;\n $...
[ "0.7830462", "0.77219665", "0.77219665", "0.7701453", "0.76812726", "0.74854785", "0.746285", "0.7426456", "0.7397397", "0.73904854", "0.7322895", "0.73193663", "0.7290011", "0.7280289", "0.72525287", "0.7245517", "0.71940565", "0.7144568", "0.71223044", "0.70837826", "0.7007...
0.72361684
16
Send HTTP Head command
public function head($uri = NULL, $vars = NULL) { if (! empty ( $uri )) $this->uri = $uri; if (! empty ( $vars ) && is_array ( $vars )) $vars = http_build_query ( $vars ); if (empty ( $this->query )) $this->query = $vars; else if (! empty ( $vars )) $this->query .= "&" . $vars; if (! empty ( $this...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function Head( $uri )\r\n\t{\r\n\t\tif( $this->debug & DBGTRACE ) echo \"Head( $uri )\\n\";\r\n\t\t$this->responseHeaders = $this->responseBody = \"\";\r\n\t\t$uri = $this->makeUri( $uri );\r\n\t\tif( $this->sendCommand( \"HEAD $uri HTTP/$this->protocolVersion\" ) )\r\n\t\t\t$this->processReply();\r\n\t\treturn $t...
[ "0.7461538", "0.7296988", "0.70963156", "0.6997734", "0.6945581", "0.67486453", "0.6729904", "0.6685927", "0.65586793", "0.6470398", "0.6466655", "0.6453372", "0.642748", "0.6396482", "0.63562965", "0.6354607", "0.6329609", "0.6321134", "0.63198364", "0.63112676", "0.6295491"...
0.657626
8
Send HTTP Delete command
public function delete($uri = NULL, $vars = NULL) { if (! empty ( $uri )) $this->uri = $uri; if (! empty ( $vars ) && is_array ( $vars )) $vars = http_build_query ( $vars ); if (empty ( $this->query )) $this->query = $vars; else if (! empty ( $vars )) $this->query .= "&" . $vars; if (! empty ( $th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendDelete ()\n {\n curl_setopt($this->cURL, CURLOPT_CUSTOMREQUEST, \"DELETE\");\n\n return $this->handleQuery();\n }", "public function httpDelete()\n {\n return $this->method(\"DELETE\");\n }", "function delete()\n {\n $this->_api->doRequest(\"DELETE...
[ "0.8009198", "0.7753794", "0.7446787", "0.7446787", "0.74387246", "0.7275048", "0.71951824", "0.7187741", "0.7145095", "0.7139498", "0.7130761", "0.71209663", "0.7105295", "0.70149255", "0.69761986", "0.69761235", "0.6965969", "0.6965969", "0.69585145", "0.69583035", "0.69580...
0.0
-1
Send HTTP Trace command
public function trace($uri = NULL, $vars = NULL) { if (! empty ( $uri )) $this->uri = $uri; if (! empty ( $vars ) && is_array ( $vars )) $vars = http_build_query ( $vars ); if (empty ( $this->query )) $this->query = $vars; else if (! empty ( $vars )) $this->query .= "&" . $vars; if (! empty ( $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function send(): void\n {\n $requiredParams = [\n 'v' => $this->client->getVersion(),\n 'tid' => $this->client->getTrackingId(),\n 'cid' => $this->client->getClientId(),\n 't' => $this->getHitType(),\n ];\n $paramValues = array_merge(\n ...
[ "0.6137305", "0.57668316", "0.5636476", "0.5560851", "0.552449", "0.5448577", "0.5445526", "0.5422156", "0.53777486", "0.53771204", "0.5369932", "0.5302437", "0.53010446", "0.5284967", "0.5263454", "0.5203932", "0.5200767", "0.5186014", "0.51856947", "0.51807135", "0.5158325"...
0.60858446
1
Execute HTTP Get command
public function get($uri = NULL, $vars = NULL) { if (! empty ( $uri )) $this->uri = $uri; if (! empty ( $vars ) && is_array ( $vars )) $vars = http_build_query ( $vars ); if (empty ( $this->query )) $this->query = $vars; else if (! empty ( $vars )) $this->query .= "&" . $vars; if (! empty ( $this-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function executeGet()\n {\n throw new Frapi_Error('NO_GET');\n }", "public function sendGet()\n\t{\n\t\t$ch = curl_init(\"http://localhost/rest/index.php/book\");\n\t\t//a true, obtendremos una respuesta de la url, en otro caso, \n\t\t//true si es correcto, false si no lo es\n\t\tcurl_setopt(...
[ "0.72563386", "0.71358484", "0.6997599", "0.6935776", "0.6824523", "0.6818549", "0.67419994", "0.6656857", "0.66347086", "0.662011", "0.65927863", "0.65311676", "0.65162903", "0.6482472", "0.64604867", "0.6439043", "0.64382064", "0.6428101", "0.64267975", "0.6423339", "0.6404...
0.56706613
87
Send HTTP Post command
public function post($uri = NULL, $content = NULL, $files = NULL) { if (! empty ( $uri )) $this->uri = $uri; if (is_array ( $content ) && empty ( $files )) { $content = http_build_query ( $content, "", "&" ); $this->setHeader ( 'Content-Type', 'application/x-www-form-urlencoded' ); } if (! empty ( $fil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendPOST($cmd, array $postData = [])\n\t{\n\t\t?>\n\t\t<html>\n\t\t\t<head>\n\t\t\t</head>\n\t\t\t<body>\n\t\t\t\t<form method=\"post\" action=\"<?php echo $_SERVER['SCRIPT_URL'];?>\" style=\"display: none; visibility: hidden;\">\n\t\t\t\t\t<input type=\"hidden\" name=\"cmd\" value=\"<?php echo $cm...
[ "0.69076115", "0.67077464", "0.6646405", "0.6646405", "0.6646405", "0.6452217", "0.64284045", "0.641106", "0.63828456", "0.6366302", "0.6346021", "0.6265957", "0.626526", "0.62314343", "0.6225185", "0.6209064", "0.61996037", "0.6190611", "0.61761147", "0.6169231", "0.61487806...
0.0
-1
Send HTTP Put command
public function put($content = NULL) { if (is_array ( $content )) { $content = http_build_query ( $content ); $this->setHeader ( 'Content-Type', 'application/x-www-form-urlencoded' ); } $this->request_body = $content . self::CRLF . self::CRLF; $this->method = "PUT"; $this->send (); return $this->statu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function httpPut()\n {\n return $this->method(\"PUT\");\n }", "function send_put()\n { \n $send = new send($this->put('id'));\n\n $send->date_modified = date('Y-m-d H:i:s');\n $send->modifiedbypk = $this->get_user()->user_id;\n\n $this->response($thi...
[ "0.729601", "0.70240295", "0.70146644", "0.6990768", "0.69862604", "0.69650465", "0.68424386", "0.6828463", "0.68081", "0.6769454", "0.67590564", "0.67426735", "0.67394656", "0.67394656", "0.6710768", "0.6691312", "0.66561306", "0.6648924", "0.66027457", "0.6594067", "0.65780...
0.65515375
24
Get a specific response header
public function getHeader($key) { return $this->response_headers [$key]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getresponseheader($header = false){\n $headers = $this->getLastResponseHeaders();\n foreach ($headers as $head){\n if ( is_integer(strpos ($head, $header) )){\n $hstart = strpos ($head, \": \");\n $head = trim(substr($head,$hstart+2,100));\n return $head;\n ...
[ "0.8388776", "0.76455176", "0.7625671", "0.74722457", "0.73992115", "0.73992115", "0.73992115", "0.73697984", "0.73149204", "0.73149204", "0.72932607", "0.7280175", "0.727872", "0.72682583", "0.7249458", "0.722869", "0.7149517", "0.71481514", "0.7122165", "0.708909", "0.70822...
0.74412364
4
Get the response body
public function getBody() { return $this->response_body; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getBody()\n {\n return $this->response;\n }", "public function getBody(): string\n {\n return (string) $this->response->getBody();\n }", "public function getResponseBody(){\n\t\treturn $this->response->getBody();\n\t}", "public function body()\n {\n return ...
[ "0.86687535", "0.83989507", "0.83690834", "0.8364568", "0.82295823", "0.8155569", "0.81516486", "0.8134262", "0.8128192", "0.810733", "0.810733", "0.810733", "0.80813795", "0.8072837", "0.8011681", "0.7898121", "0.788991", "0.7790717", "0.76418024", "0.7593062", "0.7526165", ...
0.8775525
0
Get the response headers, associative array
public function getHeaders() { return $this->response_headers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getResponseHeaders();", "public function getResponseHeaders(): array\n {\n return $this->responseHeaders;\n }", "public function getResponseHeaders()\r\r\n {\r\r\n return $this->responseHeaders;\r\r\n }", "public function getResponseHeaders()\r\n\t{\r\n\t\treturn $this->head...
[ "0.85183316", "0.8369308", "0.8282445", "0.8233101", "0.8182282", "0.8182282", "0.8182282", "0.8182282", "0.8182282", "0.8182282", "0.8155921", "0.81542", "0.80748355", "0.806683", "0.806683", "0.806683", "0.806683", "0.806683", "0.806683", "0.806683", "0.806683", "0.806683...
0.8419528
1
Retrieve the HTTP raw request command
public function rawRequest() { return $this->raw_request; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRawRequest() {\n\t}", "public function getRequestCommand(){\n\t\treturn $this->requestCommand;\n\t}", "public function getRawRequest()\n {\n return $this->request;\n }", "public function getRequest(){\n\t\treturn $this->rpcRequest;\n\t}", "public function getRequest(): strin...
[ "0.731819", "0.7272361", "0.6769898", "0.6680565", "0.6512535", "0.6485122", "0.6470837", "0.64541173", "0.6442384", "0.6442384", "0.6442384", "0.6442384", "0.6442384", "0.6442384", "0.6442384", "0.6442384", "0.6424746", "0.6424746", "0.64113426", "0.64113426", "0.6409369", ...
0.73031974
1
Retrieve the HTTP raw response command
public function rawResponse() { return $this->raw_response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRawResponse();", "public function getRawResponse() {\n\t}", "public final function getRawResponse() {\n return $this->_rawresponse;\n }", "public function getRawResponse()\n {\n return $this->response;\n }", "public function getRawResponse()\n {\n return $this->rawRe...
[ "0.7950697", "0.77623415", "0.74395007", "0.74382854", "0.7362586", "0.73286855", "0.7291753", "0.7151916", "0.7125033", "0.71203494", "0.70840853", "0.7046797", "0.7006738", "0.6948402", "0.6948402", "0.6948402", "0.6948402", "0.6948402", "0.6948402", "0.6948402", "0.6948402...
0.7579191
2
Get the request status
public function status() { $obj->number = $this->status_code; $obj->msg = $this->status_msg; return $obj; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatus() {\n return isset($this->data['request']['status']) ? $this->data['request']['status'] : null;\n }", "public function status() {\r\n\t\treturn self::request(self::HTTP_GET, 'status');\r\n\t}", "public function GetLastRequestStatus() { return self::$status; }", "public fun...
[ "0.80751723", "0.7991346", "0.76163906", "0.74860024", "0.7441684", "0.73519826", "0.7349747", "0.7328504", "0.72239643", "0.72239643", "0.72239643", "0.72239643", "0.72239643", "0.72239643", "0.72239643", "0.72239643", "0.72239643", "0.72239643", "0.720805", "0.72053176", "0...
0.0
-1
Set wether the client should follow the server redirects or not
public function followRedirects($b, $n = NULL) { $this->follow_redirects = $b == true; if (! is_null ( $n ) && is_numeric ( $n )) $this->max_redirects = ( integer ) $n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function redirectsAreNotFollowedIfSwitchedOff() {\n\t\t$this->browser->setFollowRedirects(FALSE);\n\t\t$response = $this->browser->request('http://localhost/test/http/redirecting');\n\t\t$this->assertNotContains('arrived.', $response->getContent());\n\t\t$this->assertEquals(303, $response->getStatusCode());...
[ "0.7002679", "0.6954025", "0.654534", "0.6452268", "0.6452268", "0.6452268", "0.6452268", "0.64129025", "0.63723654", "0.63391715", "0.63081783", "0.6232422", "0.62266", "0.6199309", "0.6197309", "0.618166", "0.6134949", "0.6103013", "0.60705566", "0.6067812", "0.60384303", ...
0.5780647
39
Set the maximum number of redirects allowed
public function maxRedirects($n) { $this->max_redirects = $n; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function enableRedirects($limit = 20) {\n\t\t$this->autoFollow = TRUE;\n\t\t$this->maxRedirects = $limit;\n\t}", "public function getRedirectLimit()\n {\n return $this->redirectLimit;\n }", "public function setRedirectLimit($limit)\n {\n if (!is_int($limit)) {\n throw n...
[ "0.70849794", "0.6958898", "0.6317599", "0.62477607", "0.60702306", "0.5721445", "0.57055944", "0.5700763", "0.5634027", "0.56243676", "0.55495536", "0.5543812", "0.55404437", "0.5523527", "0.5514875", "0.5504248", "0.548563", "0.54801774", "0.5478438", "0.544919", "0.544919"...
0.8102085
0
Set credentials for BASIC authentication
public function basicAuth($usr, $pass) { $this->auth_type = "basic"; $this->auth_login = true; $this->auth_user = $usr; $this->auth_pass = $pass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setCredentials( $username, $password )\r\n\t{\r\n\t\t$hdrvalue = base64_encode( \"$username:$password\" );\r\n\t\t$this->addHeader( \"Authorization\", \"Basic $hdrvalue\" );\r\n\t}", "public function setBasicAuth()\n {\n $auth = $this->auth;\n\n if (null !== $auth['user']) {\n ...
[ "0.72711897", "0.7198962", "0.6907388", "0.6809925", "0.67533785", "0.67444545", "0.66875315", "0.6669436", "0.6646401", "0.6615387", "0.6575222", "0.6570403", "0.6557372", "0.6486739", "0.64802563", "0.64278656", "0.63766", "0.6344832", "0.63150865", "0.63139427", "0.6279276...
0.5753595
45
Set credentials for DIGEST authentication
public function digestAuth($usr, $pass = NULL) { $this->auth_type = "digest"; $this->auth_login = true; $this->auth_user = $usr; $this->auth_pass = $pass; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authenticateCredential()\n {\n $sessionToken = $this->login();\n $this->credential->setSessionToken($sessionToken);\n }", "public function setAuthentication($credential);", "public function setAuth($username, $password);", "public function setCredentials($v)\n { return ...
[ "0.66356593", "0.6340862", "0.6337779", "0.63289064", "0.6269046", "0.6181508", "0.61452657", "0.6106876", "0.61060655", "0.6073771", "0.6039731", "0.60038793", "0.59895945", "0.591274", "0.59061074", "0.58854043", "0.5884073", "0.58337957", "0.58134234", "0.5811428", "0.5793...
0.58113194
20
Close the socket connection
public function disconnect() { @fclose ( $this->socket ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function close() {\r\n\t\tfclose($this->socket);\r\n\t}", "private function close()\n {\n socket_close($this->socket);\n }", "function close(){\n $this->disconnect();\n stream_socket_shutdown($this->socket, STREAM_SHUT_WR);\n }", "public function close(): void\n\t{\n\t\tif ($thi...
[ "0.85838604", "0.83940923", "0.83538824", "0.8192945", "0.78796244", "0.7734852", "0.76023644", "0.7538474", "0.7515936", "0.73868537", "0.7337231", "0.7300188", "0.7292262", "0.723318", "0.7176649", "0.7168965", "0.7161359", "0.71482223", "0.7094895", "0.7089002", "0.7042309...
0.799906
4
Delete all cookies from specified host
public function eraseCookies($host = NULL) { if (empty ( $host )) $host = $this->host; unset ( $this->cookies [$host] ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function clear()\n\t{\n\t\t$this->connection()->delete('cookies');\n\t}", "public function deleteAllCookies($path = NULL){\n\n return self::$oCRNRSTN_ENV->oCOOKIE_MGR->deleteAllCookies($path);\n\n }", "public function clearCookies() {\n return $this->command('clear_cookies');\n }", "func...
[ "0.7039133", "0.6780181", "0.6738849", "0.67248607", "0.6691178", "0.6689007", "0.654711", "0.65395266", "0.65356797", "0.652454", "0.6488174", "0.64128196", "0.6347057", "0.63106966", "0.6305712", "0.62448144", "0.62144333", "0.6181253", "0.6114371", "0.6104434", "0.60938364...
0.7830467
0
Accept or deny cookies
public function acceptCookies($allow = true) { $this->accept_cookies = ($allow == true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cookieAction() {\n if($_COOKIE['tx_cookies_accepted'] && !$this->settings['showPermanent']) {\n return FALSE;\n }\n $this->view->assign('accepted', array_key_exists('tx_cookies_accepted', $_COOKIE) ? 1 : 0);\n $this->view->assign('disabled', array_key_exists('...
[ "0.7110154", "0.7033017", "0.70013547", "0.6641896", "0.6585246", "0.6525733", "0.6316425", "0.63133574", "0.63037705", "0.61769724", "0.6152476", "0.6134766", "0.61298144", "0.61202437", "0.60912067", "0.599352", "0.5947233", "0.59116936", "0.58696604", "0.5857955", "0.58058...
0.7717307
0
Obtain the complete log of communication, requests, responses and all redirects
public function getLogHistory() { return $this->log; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLog(){\n\t\t$request = $this->_sendPacketToController(self::GET_LOG);\n\t\tif ($request->getState() == self::STATE_OK) // If the packet is send sucefully\n\t\t\treturn $this->_getResponse(); // TODO mettre en forme la sortie\n\t\telse\n\t\t\treturn $request;\n\t}", "public function getRequestL...
[ "0.68939555", "0.66232497", "0.64386415", "0.6280042", "0.617632", "0.61559206", "0.6050675", "0.59692574", "0.59631634", "0.59365135", "0.583581", "0.5790306", "0.5711624", "0.5683979", "0.56790066", "0.5671785", "0.5671785", "0.5653999", "0.56329185", "0.5632093", "0.561827...
0.55580163
30
We get currencies from here
public function convert(array $conversions) { $currencies = []; $results = []; $currencies = array_map(function ($c) { //c[0] and c[1] are the first and second currencies return "{$c[0]}_{$c[1]}"; }, $conversions); //remove duplicate currency convers...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrencies();", "abstract protected function getSupportedCurrencies();", "public function getCurrencies() {\n\n $currencies= array();\n $date = '';\n \n $client = \\Drupal::httpClient();\n $request = $client->get(self::LESSON3_RATES_SERVICE);\n $resp...
[ "0.83623034", "0.7784647", "0.76352495", "0.7597692", "0.73817664", "0.73784786", "0.73784786", "0.73538476", "0.7341506", "0.734139", "0.72807246", "0.7268521", "0.72109413", "0.7207659", "0.7191892", "0.7125536", "0.7036746", "0.6969156", "0.69619566", "0.6957606", "0.69558...
0.0
-1
This doesn't belong in the Interface since it isn't directly related to currency conversion
protected function curlRequest($url) { //curl_init — Initialize a cURL session (Client URL Library) $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_URL, $url); return curl_exec($curl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCurrency();", "public function getCurrency();", "public function getCurrency(): string;", "public function getCurrency(): string;", "public function getCurrency(): Currency;", "public function getCurrencyCode();", "public function getCurrencyCode();", "public function getCurrencyCo...
[ "0.734371", "0.734371", "0.73244655", "0.73244655", "0.7263899", "0.7114252", "0.7114252", "0.7114252", "0.6978204", "0.6934234", "0.6910599", "0.6843412", "0.682999", "0.6708336", "0.66916305", "0.66807246", "0.66793644", "0.66021127", "0.65604734", "0.6492372", "0.64783424"...
0.0
-1
Run the database seeds.
public function run() { Model::unguard(); Plan::create([ 'name' => 'Gratuito', 'quantity_oportunities' => 1, 'price' => 0.0]); Plan::create([ 'name' => 'Básico', 'quantity_oportunities' => 10, 'price' => 99.0]); Plan::create([ 'name' => 'Premium', 'quantity_oportunities' => 50, ...
{ "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
Set the row id.
public function setId($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _set_row_id($id) {\r\n $this->row_id = $id;\r\n }", "public function setRowId($val) {\n if ($val === null || is_integer($val)) {\n $this->_row_id = $val;\n } else {\n require_once 'Scenario/Exception.php';\n throw new Scenario_Exception(...
[ "0.8491018", "0.7309407", "0.708107", "0.7065019", "0.68294895", "0.68294895", "0.6828085", "0.6723369", "0.67058754", "0.6705565", "0.6705443", "0.6705065", "0.66928566", "0.6685565", "0.6670974", "0.6669627", "0.66670966", "0.6665904", "0.6658738", "0.66505563", "0.6639112"...
0.0
-1
Get the row id.
public function getId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRowID() {\n return $this->_row_id;\n }", "public function getRowId() {\n return $this->_row_id;\n }", "public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}", "function getDataRowId()\n {\n return $this->idPrepend . $this->current_row_hash['id'...
[ "0.8508267", "0.8325835", "0.7667713", "0.76391095", "0.7615099", "0.7445898", "0.73740613", "0.72321683", "0.7228337", "0.7208054", "0.7196547", "0.7188324", "0.7135955", "0.7135955", "0.7124512", "0.7124512", "0.7115398", "0.7098186", "0.7091234", "0.7089761", "0.708549", ...
0.0
-1
Add a cell to the row.
public function addCell($key, Cell $cell);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addCell(Cell $cell)\n {\n $this->cells->add($cell);\n }", "public function addCell(Cell $cell)\n {\n if (!isset($this->kitCells[$cell->getPosition()])) {\n ExceptionFactory::positionOutOfRangeException($cell->getPosition());\n }\n\n if (!empty($this...
[ "0.7585231", "0.70532227", "0.67234623", "0.6705477", "0.66555446", "0.66047245", "0.65948236", "0.6496232", "0.6384709", "0.6384382", "0.63062847", "0.62880045", "0.6213451", "0.61820865", "0.61656547", "0.6119413", "0.5989856", "0.5945783", "0.5924645", "0.58909374", "0.588...
0.78364974
0
Alias for the addCell method.
public function cell($key, Cell $cell);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addCell($key, Cell $cell);", "public function addCell(Cell $cell)\n {\n $this->cells->add($cell);\n }", "public function addCell(Cell $cell)\n {\n if (!isset($this->kitCells[$cell->getPosition()])) {\n ExceptionFactory::positionOutOfRangeException($cell->getPos...
[ "0.75593454", "0.7028347", "0.6890411", "0.6387463", "0.634084", "0.622569", "0.6213007", "0.6130754", "0.6100125", "0.6086604", "0.6085811", "0.6024093", "0.58102614", "0.57630736", "0.5714475", "0.5646151", "0.5620156", "0.55966485", "0.5487881", "0.5481717", "0.5329711", ...
0.62312067
5
Add a new action to the row.
public function addAction(Action $action);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function addAction($action)\r\n {\r\n $this->_actions[] = $action;\r\n }", "public function addAction() {\r\n\t}", "public function addAction() {\n\t}", "public function addAction() {\n\t}", "public function addAction() {\n\t}", "public function addAction()\n {\n pa...
[ "0.7048781", "0.6678837", "0.65977454", "0.65977454", "0.65977454", "0.65888506", "0.6512476", "0.65097797", "0.6448389", "0.6434616", "0.64128155", "0.6382317", "0.6382317", "0.6382317", "0.6382317", "0.6382317", "0.6382317", "0.6370423", "0.63322836", "0.6303879", "0.627197...
0.7104265
0
Alias for the addAction method.
public function action(Action $action);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addAction() {\r\n\t}", "public function addAction() {\n\t}", "public function addAction() {\n\t}", "public function addAction() {\n\t}", "public function addAction(Action $action);", "public function addAction()\n\t{\n\n\t}", "public function addAction()\n {\n parent::addActio...
[ "0.8572171", "0.85700226", "0.85700226", "0.85700226", "0.84821975", "0.8360767", "0.78019094", "0.7735769", "0.7654127", "0.74775445", "0.74642897", "0.7377014", "0.7310956", "0.7284814", "0.71925026", "0.715849", "0.7151677", "0.7040616", "0.6988787", "0.6947414", "0.690964...
0.67180836
27
Return the row cells.
public function getCells();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCells()\n {\n return $this->cells;\n }", "public function cells();", "public function rows() {\n\t\treturn $this->row();\n\t}", "public function getRows();", "public function getRows();", "public function getCells()\r\n {\r\n return $this->cells ?: $this->cells =...
[ "0.7743921", "0.74654126", "0.74412096", "0.72640306", "0.72640306", "0.71391004", "0.7017703", "0.6995888", "0.6968887", "0.68359995", "0.6705278", "0.6705278", "0.6698613", "0.66919744", "0.6685413", "0.6664782", "0.6662402", "0.66118693", "0.6569146", "0.6536943", "0.65357...
0.7985553
0
Alias for the getCells method.
public function cells();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCells();", "public function getCells()\n {\n return $this->cells;\n }", "public function getCells()\r\n {\r\n return $this->cells ?: $this->cells = new \\Doctrine\\Common\\Collections\\ArrayCollection();\r\n }", "public function getCell()\n {\n return $t...
[ "0.8727427", "0.8186724", "0.7766314", "0.69713396", "0.6680871", "0.6562327", "0.6430758", "0.64172786", "0.63818663", "0.61682534", "0.6000105", "0.5709704", "0.563236", "0.5594752", "0.55761236", "0.55761236", "0.5542074", "0.5501382", "0.54954165", "0.5471345", "0.5471345...
0.7457208
3
Check if the row has any cells.
public function hasCells();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasCell(){\n return $this->_has(1);\n }", "public function hasRowContents(){\n return $this->_has(1);\n }", "abstract public function hasRow();", "public function hasRows()\n\t{\n\t\treturn count($this->getRows()) > 0;\n\t}", "protected function isRowEmpty( $row )\n {\n ...
[ "0.80122054", "0.73982966", "0.7139153", "0.69978046", "0.6850296", "0.67528754", "0.66993093", "0.66594356", "0.6638342", "0.6563785", "0.64876133", "0.64768803", "0.6441029", "0.64363277", "0.6412719", "0.6335578", "0.6329724", "0.63028026", "0.6232167", "0.6230197", "0.619...
0.77078974
1
Return the row actions.
public function getActions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRowActions() {\n\t\t\tif ( empty( $this->config ) ) {\n\t\t\t\treturn '';\n\t\t\t}\n\t\t\t$two_step = tve_leads_get_form_type( $this->config['l_id'], array( 'active_test' => true ) );\n\t\t\tif ( $two_step->active_test ) {\n\t\t\t\treturn sprintf(\n\t\t\t\t\t'<br>%s - <a href=\"%s\" target=\"_bl...
[ "0.71152955", "0.7068351", "0.7040198", "0.6969407", "0.6774387", "0.67601895", "0.6721968", "0.6718471", "0.66951615", "0.66910017", "0.6621339", "0.6602876", "0.65955544", "0.6574045", "0.6574045", "0.6574045", "0.6561137", "0.6546914", "0.6538931", "0.65266514", "0.6512708...
0.6968442
5
Alias for the row actions.
public function actions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rowsAction() {\n parent::rowsAction();\n }", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, ...
[ "0.7046582", "0.6722085", "0.6722085", "0.6722085", "0.6722085", "0.6722085", "0.6722085", "0.6565014", "0.648004", "0.6265145", "0.6241173", "0.6213028", "0.6057626", "0.59533507", "0.58780235", "0.58719194", "0.58207095", "0.58207095", "0.58207095", "0.58207095", "0.5819136...
0.5437084
35
Check if the row has any actions.
public function hasActions();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function hasAction()\n {\n return !is_null($this->_action);\n }", "public function hasChildActions() {}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn TRUE;\n\t}", "function Row_CustomAction($action, $row) {\n\n\t\t// Return FALSE to abort\n\t\treturn T...
[ "0.67897725", "0.6630516", "0.6602548", "0.6602548", "0.6602548", "0.6602548", "0.6602548", "0.6602548", "0.65875715", "0.6537966", "0.65269905", "0.6336686", "0.61716855", "0.6106606", "0.6068278", "0.6068278", "0.59005845", "0.5882754", "0.5804234", "0.5792341", "0.576818",...
0.74259025
0
Get the DomNode before which the signature should be injected. Return null if you want to append the signature to the root element
public function getAppendBeforeNode();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function locateSignature(\\DOMNode $node)\n {\n if ($node instanceof \\DOMDocument) {\n $doc = $node;\n $relativeTo = null;\n } else {\n $doc = $node->ownerDocument;\n $relativeTo = $node;\n }\n $xpath = new \\DOMXPath($doc);\...
[ "0.5607085", "0.5525356", "0.55004936", "0.5454933", "0.5420375", "0.5356876", "0.5345998", "0.51649314", "0.5077656", "0.50405127", "0.49136922", "0.48986927", "0.48958117", "0.48624435", "0.4853889", "0.47993562", "0.47023642", "0.46644646", "0.46635586", "0.4660301", "0.46...
0.63135946
0
Mock session and mock session attributes
protected function _mockSession($attributes) { $session = new \Cake\Http\Session(); foreach ($attributes as $field => $value) { $session->write($field, $value); } $this->Trait ->getRequest() ->expects($this->any()) ->method('getSessio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setMockSession() {\n if (!class_exists('\\RightNow\\Libraries\\MockSession')) {\n Mock::generate('\\RightNow\\Libraries\\Session');\n }\n $session = new \\RightNow\\Libraries\\MockSession;\n $this->realSession = $this->CI->session;\n $this->CI->session = $sess...
[ "0.77938175", "0.7670697", "0.7461096", "0.7238249", "0.72185946", "0.6994089", "0.6574466", "0.64606637", "0.64544934", "0.64388984", "0.64205575", "0.63227427", "0.63142717", "0.6296146", "0.62952757", "0.6292854", "0.629111", "0.62527335", "0.62133056", "0.61775184", "0.61...
0.72102016
5
Data provider for testU2User
public function dataProviderU2User() { $empty = []; $withRegistration = new User([ 'id' => '00000000-0000-0000-0000-000000000001', 'username' => 'user-1', ]); $withoutRegistration = new User([ 'id' => '00000000-0000-0000-0000-000000000002', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInfoUser()\n {\n }", "public function testCreateUser()\n {\n }", "public function testUserMeGet()\n {\n }", "public function data_user()\n {\n return new Data\\User;\n }", "public function testAddUserStore()\n {\n\n }", "public function testProfile...
[ "0.6698907", "0.6695186", "0.65961087", "0.65581626", "0.65578306", "0.651998", "0.64748776", "0.6473458", "0.63354295", "0.6325115", "0.6311413", "0.63069844", "0.6304938", "0.63031155", "0.628658", "0.62815475", "0.62808925", "0.6253458", "0.6239532", "0.6236414", "0.621947...
0.70196193
0
Data provider for testU2fRegisterRedirect
public function dataProviderU2fRegisterRedirect() { $empty = []; $withRegistration = new User([ 'id' => '00000000-0000-0000-0000-000000000001', 'username' => 'user-1', ]); return [ [$empty, ['action' => 'login']], [$withRegistration, [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testRegister()\n {\n }", "public function testRegistration(): void { }", "public function testRegistrationUITest()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/add_user')\n ->assertSee('Username')\n ->assertSee('F...
[ "0.6482484", "0.641024", "0.6299298", "0.6241206", "0.6165038", "0.6152605", "0.6110356", "0.60775757", "0.6065265", "0.6051713", "0.60439306", "0.60261595", "0.600683", "0.595628", "0.59555197", "0.59355533", "0.5912699", "0.59064656", "0.5904065", "0.588304", "0.58618695", ...
0.6888445
0
Data provider for testU2fAuthenticateRedirectCustomUser
public function dataProviderU2fAuthenticateRedirectCustomUser() { $empty = []; $withWhoutRegistration = new User([ 'id' => '00000000-0000-0000-0000-000000000002', 'username' => 'user-2', ]); return [ [$empty, ['action' => 'login']], [$...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testU2fAuthenticateRedirectCustomUser($userData, $redirect)\n {\n $request = $this->getMockBuilder('Cake\\Http\\ServerRequest')\n ->setMethods(['getSession', 'is'])\n ->getMock();\n $this->Trait->setRequest($request);\n $request->expects($this->any())\n...
[ "0.70283735", "0.635108", "0.63216746", "0.6110761", "0.600469", "0.5992375", "0.59776646", "0.59654975", "0.59325105", "0.5931807", "0.5931807", "0.59317535", "0.59316325", "0.59262073", "0.5856804", "0.5844002", "0.58393645", "0.5819625", "0.581078", "0.57959914", "0.579548...
0.7514791
0
Test u2fAuthenticate method redirect cases
public function testU2fAuthenticateRedirectCustomUser($userData, $redirect) { $request = $this->getMockBuilder('Cake\Http\ServerRequest') ->setMethods(['getSession', 'is']) ->getMock(); $this->Trait->setRequest($request); $request->expects($this->any()) ->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authenticateSecondFactor() {\t \t \t\t \n\t \n\t $module = $this->getModule();\n\t \n\t\t$authParams = array(\n\t\t\t'module' => $module,\n\t\t);\n\t\t\n\t\tif ($module == RublonMagentoModule::CONNECT) {\n\t\t $callbackUrl = $this->getCallbackUrl($connect = true);\n\t\t} el...
[ "0.6694131", "0.63728565", "0.63075703", "0.6301784", "0.6197498", "0.61473346", "0.6135565", "0.610654", "0.61054003", "0.608855", "0.5989024", "0.59842056", "0.5972112", "0.5935534", "0.5925416", "0.5920498", "0.5907273", "0.5906379", "0.58987844", "0.58984214", "0.58984214...
0.6421278
1
Test u2fAuthenticateFinish method with exception
public function testU2fAutheticateFinishWithException() { $saveUser = TableRegistry::getTableLocator() ->get('CakeDC/Users.Users') ->get('00000000-0000-0000-0000-000000000001'); $savedRegistration = $saveUser->u2f_registration; $this->assertNotNull($savedRegistration...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authenticateSecondFactor() {\t \t \t\t \n\t \n\t $module = $this->getModule();\n\t \n\t\t$authParams = array(\n\t\t\t'module' => $module,\n\t\t);\n\t\t\n\t\tif ($module == RublonMagentoModule::CONNECT) {\n\t\t $callbackUrl = $this->getCallbackUrl($connect = true);\n\t\t} el...
[ "0.6409867", "0.62959474", "0.6290672", "0.61401886", "0.607836", "0.6006887", "0.59911436", "0.59179646", "0.59041125", "0.5851945", "0.58415484", "0.5841146", "0.58029", "0.5773044", "0.57547253", "0.5733913", "0.57234365", "0.57096386", "0.56445163", "0.5633259", "0.563094...
0.6758325
0
Se verifica que el usuario ingresado exista en la base
function verificar_login($user,&$result) { $sql = "SELECT * FROM empleados WHERE nombre = '$user'"; $rec = mysql_query($sql); $count = 0; while($row = mysql_fetch_object($rec)) { $count++; $result = $row; } if($count == 1){ return 1; }else{ return 0; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function checkUserExistence() {\n\t\t\t\t$query = \"select count(email) as count from register where email='$this->email'\";\n\t\t\t\t$resource = returnQueryResult($query);\n\t\t\t\t$result = mysql_fetch_assoc($resource);\n\t\t\t\tif($result['count'] > 0) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tretu...
[ "0.7794566", "0.766299", "0.75452787", "0.7455723", "0.73666817", "0.73455405", "0.7342811", "0.7307983", "0.72979546", "0.7246181", "0.72416055", "0.72205603", "0.72183317", "0.72039676", "0.7191013", "0.717983", "0.71531373", "0.71491385", "0.7140143", "0.71374285", "0.7116...
0.0
-1
Handle an incoming request.
public function handle($request, Closure $next) { $agent = new Agent(); if ( \Auth::check() ) { Auditor::create([ 'user_id' => \Auth::user()->id, 'method' => $request->getMethod(), 'path' => $request->getPathInfo(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function handle_request();", "public function handleRequest();", "public function handleRequest();", "public function handleRequest();", "protected abstract function handleRequest();", "abstract public function handleRequest($request);", "abstract public function handleRequest(Request $...
[ "0.8299201", "0.8147294", "0.8147294", "0.8147294", "0.8127764", "0.7993589", "0.7927201", "0.7912899", "0.7899075", "0.76317674", "0.75089735", "0.7485808", "0.74074036", "0.7377414", "0.736802", "0.7294553", "0.72389543", "0.7230166", "0.72108", "0.71808434", "0.7170364", ...
0.0
-1
Register any application services.
public function register() { $this->setNamespace('plugins/wordpress-importer') ->loadAndPublishViews() ->loadAndPublishTranslations() ->publishAssets() ->loadRoutes(['web']); Event::listen(RouteMatched::class, function () { dashboard_menu(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function register()\n {\n $this->registerServices();\n }", "public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }", "public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n ...
[ "0.7879658", "0.7600202", "0.74930716", "0.73852855", "0.736794", "0.7306089", "0.7291359", "0.72896826", "0.72802424", "0.7268026", "0.7267702", "0.72658145", "0.7249053", "0.72171587", "0.7208486", "0.7198799", "0.7196415", "0.719478", "0.7176513", "0.7176227", "0.7164647",...
0.0
-1