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
Check if the user is logged in
public function preDispatch() { parent::preDispatch(); if (!Mage::getSingleton('customer/session')->authenticate($this)) { $this->setFlag('', 'no-dispatch', true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function isUserLoggedIn() {}", "protected function isUserLoggedIn() {}", "public function loggedIn()\n {\n if($this->di->session->get('user'))\n {\n return true;\n }\n return false;\n }", "public function isLoggedIn()\n {\n return isset($_SESSION...
[ "0.8740533", "0.8740533", "0.8564388", "0.8421157", "0.8410339", "0.83837783", "0.837765", "0.8374241", "0.83621156", "0.83410144", "0.8335263", "0.831488", "0.8314218", "0.8310379", "0.83064747", "0.82900965", "0.82808197", "0.82570964", "0.82570964", "0.82475877", "0.821999...
0.0
-1
Display the list of saved cards
public function indexAction() { $this->loadLayout(); $this->_initLayoutMessages('customer/session'); $this->_initLayoutMessages('catalog/session'); $this->getLayout()->getBlock('head')->setTitle($this->__('My Saved Cards')); $this->renderLayout(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $cards = Card::all();\n\n return view('card.card', compact('cards'));\n }", "public function show(Card $card)\n {\n //\n }", "public function show(Card $card)\n {\n //\n }", "public function show(Card $card)\n {\n //\n }...
[ "0.6704915", "0.66653955", "0.66653955", "0.66653955", "0.66653955", "0.6584204", "0.65477234", "0.6513434", "0.6508328", "0.6490301", "0.64776397", "0.64429545", "0.6429528", "0.6379577", "0.63323474", "0.6314259", "0.62990457", "0.6295611", "0.62953407", "0.6269108", "0.625...
0.62310624
23
Switch the main functionality as a customer level
public function switchAction() { $value = $this->getRequest()->getParam('value'); if (is_null($value)) $value = 1; try { $customer = Mage::helper('mp_gateway')->getCustomer(); $customer->setData('enable_savedcards', $value)->save(); $this->_g...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function cust_lead(){\n }", "public function customer()\n {\n //try catch\n try {\n echo (\"\\n----------FACADE DESIGN PATTERN------------\\n\");\n echo (\"---------BEGIN TESTING FACADE PATTERN----------\\n\");\n echo (\"\\n\");\n //asking the user ...
[ "0.6144274", "0.61234736", "0.6094907", "0.5800198", "0.57832026", "0.57189184", "0.5658437", "0.5619734", "0.56148845", "0.56081945", "0.5595142", "0.5592124", "0.55812657", "0.5580458", "0.55785584", "0.5569308", "0.5567161", "0.5566123", "0.5541312", "0.5541312", "0.552714...
0.0
-1
Set the card entry specified in token as default
public function defaultAction() { $token = $this->getRequest()->getParam('token'); if (!$token || !($card = Mage::getModel('mp_gateway/card')->getCardByVaultId($token))) { $this->_getSession()->addError('Please select a card entry to set as default'); return $this->_redirectR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDefaultCard(?string $defaultCard): self\n {\n $this->defaultCard = $defaultCard;\n\n return $this;\n }", "public function default_card(Request $request) {\n\n $validator = Validator::make(\n $request->all(),\n array(\n 'card_id' =...
[ "0.6607148", "0.5953983", "0.58115923", "0.565794", "0.56404537", "0.5556458", "0.5509617", "0.54612297", "0.5452767", "0.54354423", "0.54179394", "0.5411092", "0.5402526", "0.53953683", "0.5335088", "0.5331888", "0.5327442", "0.5281987", "0.5245831", "0.5245831", "0.5226078"...
0.7625479
0
Remove the card entry specified in token
public function removeAction() { $token = $this->getRequest()->getParam('token'); if (!$token) { $this->_getSession()->addError('Please select a card entry to remove'); return $this->_redirectReferer(); } try { Mage::getModel('mp_gateway/vault')->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeAction()\n {\n /** @var Mage_Customer_Model_Session $session */\n $session = Mage::getSingleton('customer/session');\n\n if ($session->isLoggedIn()) {\n $customer = Mage::getModel('customer/customer')->load($session->getCustomerId());\n $customer\...
[ "0.7235823", "0.6776277", "0.6575148", "0.65642446", "0.6512117", "0.6345298", "0.6345298", "0.6345298", "0.6345298", "0.6301701", "0.62934774", "0.62905335", "0.62757635", "0.62338436", "0.6182004", "0.60913724", "0.60604966", "0.6019151", "0.6001497", "0.59845823", "0.59829...
0.79966116
0
Make a function for convenience
function getPDFPages($document) { $cmd = "pdfinfo.exe"; // Windows // Parse entire output // Surround with double quotes if file name has spaces exec("$cmd \"$document\"", $output); // Iterate through lines ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function aFunc()\n {\n }", "public function helper()\n\t{\n\t\n\t}", "public function publicFunction();", "public function temporality();", "function metodo() {\n // Funcion normal\n }", "function uopz_function($class, $function, $handler, $modifiers = NULL)\n{\n}", "function uo...
[ "0.6478525", "0.64279985", "0.6325586", "0.61822975", "0.61716044", "0.6083403", "0.6080519", "0.6069152", "0.6069152", "0.6069152", "0.6069152", "0.6045724", "0.5967387", "0.591629", "0.5884364", "0.58772725", "0.5856494", "0.5845735", "0.5838262", "0.5797393", "0.57886857",...
0.0
-1
Run the database seeds.
public function run() { \App\Models\Book::create([ 'code' => '0408951', 'name' => 'The History of Tom Jones, a Foundling', 'writer' => 'Henry Fielding', 'year' => '1954', ]); \App\Models\Book::create([ 'code' => '0408952', ...
{ "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
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "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() { return view('home'); }
{ "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
Comprueba que la franquicia completa funcione correctamente.
public function testFranquiciaCompleta() { $colectivo = new Colectivo(144,"RosarioBus",5); $tarjeta=new Tarjeta(2345); /** * Hay que hacerlo. */ $this->assertEquals(1,1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function complete();", "public function complete();", "public function complete();", "function completeCallback()\r\n { }", "abstract public function isComplete();", "public function completed() {\n\t}", "public function qualifyAsFinished(): bool;", "protected function complete($a = null)\n ...
[ "0.67257446", "0.6558684", "0.6558684", "0.6250089", "0.62099195", "0.5934974", "0.590402", "0.5867913", "0.5857607", "0.56540227", "0.5613888", "0.5596914", "0.55853313", "0.5563248", "0.5560541", "0.5495133", "0.54590577", "0.54439753", "0.54144484", "0.5372289", "0.5349181...
0.0
-1
Set the host index
public function setHostIndex($hostIndex): void { $this->hostIndex = $hostIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setHostIndex($host_index)\n {\n $this->hostIndex = $host_index;\n }", "public function setHostIndex($host_index)\n {\n $this->hostIndex = $host_index;\n }", "public function setHostIndex($host_index)\n {\n $this->hostIndex = $host_index;\n }", "public fu...
[ "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "0.8141259", "...
0.7541463
53
Get the host index
public function getHostIndex() { return $this->hostIndex; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getHostIndex(): int\n {\n return $this->hostIndex;\n }", "public static function _index()\n\t{\n\t\treturn self::$_index;\n\t}", "public function index(): int\n {\n return $this->index;\n }", "public function getGlobalHostInfo()\n {\n return $this->sendServ...
[ "0.86349565", "0.6608364", "0.63823986", "0.62896323", "0.6289402", "0.6251759", "0.6228367", "0.6191273", "0.61437666", "0.61437666", "0.61437666", "0.61437666", "0.61294436", "0.61153907", "0.61076367", "0.610235", "0.60911083", "0.6084486", "0.6083616", "0.6083616", "0.608...
0.87173223
52
Operation activate Activate Subscription
public function activate($id, $activate_subscription_request = null) { list($response) = $this->activateWithHttpInfo($id, $activate_subscription_request); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function simplenews_subscription_activate($snids, $status) {\n foreach (simplenews_subscriber_load_multiple($snids) as $subscriber) {\n $subscriber->activated = $status;\n simplenews_subscriber_save($subscriber);\n }\n}", "public function activateRequest($id, $activate_subscription_request = null)\n {...
[ "0.6994718", "0.6975532", "0.67382145", "0.6680621", "0.66453964", "0.6433421", "0.6394199", "0.633572", "0.6309074", "0.6309074", "0.62702835", "0.624622", "0.623014", "0.6210319", "0.61651057", "0.61602265", "0.6143279", "0.6077699", "0.6071658", "0.6045309", "0.6038755", ...
0.7650598
0
Operation activateWithHttpInfo Activate Subscription
public function activateWithHttpInfo($id, $activate_subscription_request = null) { $request = $this->activateRequest($id, $activate_subscription_request); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $optio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate($id, $activate_subscription_request = null)\n {\n list($response) = $this->activateWithHttpInfo($id, $activate_subscription_request);\n return $response;\n }", "public function activateRequest($id, $activate_subscription_request = null)\n {\n // verify the r...
[ "0.734406", "0.7328793", "0.6831005", "0.6231273", "0.59754366", "0.5896487", "0.5885638", "0.5812674", "0.57867754", "0.5752892", "0.57142", "0.5699355", "0.55921364", "0.5588363", "0.554243", "0.5541987", "0.553413", "0.553413", "0.5506023", "0.55049783", "0.54795253", "0...
0.6841277
2
Operation activateAsync Activate Subscription
public function activateAsync($id, $activate_subscription_request = null) { return $this->activateAsyncWithHttpInfo($id, $activate_subscription_request) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activate($id, $activate_subscription_request = null)\n {\n list($response) = $this->activateWithHttpInfo($id, $activate_subscription_request);\n return $response;\n }", "public function activateRequest($id, $activate_subscription_request = null)\n {\n // verify the r...
[ "0.6807843", "0.6767106", "0.65205956", "0.6504305", "0.63776153", "0.6334471", "0.631403", "0.631403", "0.631403", "0.6261604", "0.6229974", "0.6229974", "0.62122464", "0.619876", "0.6197827", "0.619014", "0.6184184", "0.6180788", "0.6162245", "0.61520815", "0.61448085", "...
0.64151543
4
Operation activateAsyncWithHttpInfo Activate Subscription
public function activateAsyncWithHttpInfo($id, $activate_subscription_request = null) { $returnType = '\OpenAPI\Client\Model\Payment'; $request = $this->activateRequest($id, $activate_subscription_request); return $this->client ->sendAsync($request, $this->createHttpClientOption...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function activateRequest($id, $activate_subscription_request = null)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when c...
[ "0.7151073", "0.6834833", "0.6807276", "0.6145896", "0.60893285", "0.59633756", "0.5814374", "0.56491", "0.564101", "0.5630786", "0.56085515", "0.5566156", "0.55550313", "0.55365723", "0.5529781", "0.5529781", "0.5517866", "0.5516164", "0.55137", "0.5501009", "0.5495675", "...
0.7096003
1
Create request for operation 'activate'
public function activateRequest($id, $activate_subscription_request = null) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling acti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerAndActivateUserRequest()\n {\n $this->registerUserRequest();\n\n return $this->get('/api/v2/user/activate/' . User::first()->activation_key);\n }", "public function activate(){\n\t\treturn $this->_sendPacketToController(self::ACTIVATE);\n\t}", "public function activa...
[ "0.7356226", "0.6713743", "0.66470397", "0.6592784", "0.6502758", "0.6493109", "0.63789636", "0.6340323", "0.63301605", "0.63301605", "0.63301605", "0.6326878", "0.6326878", "0.63202167", "0.6299813", "0.6299813", "0.6299715", "0.62956226", "0.62638783", "0.6226313", "0.61941...
0.65075934
4
Operation cancel Cancel Subscription
public function cancel($id, $cancel_subscription_request = null) { list($response) = $this->cancelWithHttpInfo($id, $cancel_subscription_request); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _cancelOperation() {}", "function cancel_subscription(){\n\t\t$sub_id = $this->input->post('sub_id');\n\t\tif(!empty($sub_id)){\n\t\t\\Stripe\\Stripe::setApiKey(\"sk_test_NSDNftNd6HhWAxCJczahG70h\");\n\t\t$subscription = \\Stripe\\Subscription::retrieve($sub_id);\n\t\t //return $subscription-...
[ "0.7753012", "0.72211236", "0.70904034", "0.70843655", "0.7048468", "0.70379084", "0.70379084", "0.6955153", "0.6921301", "0.68214417", "0.6737033", "0.6682137", "0.65387", "0.65023714", "0.6463595", "0.64536744", "0.64475876", "0.64368963", "0.6425385", "0.6416105", "0.64057...
0.0
-1
Operation cancelWithHttpInfo Cancel Subscription
public function cancelWithHttpInfo($id, $cancel_subscription_request = null) { $request = $this->cancelRequest($id, $cancel_subscription_request); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelRequest($id, $cancel_subscription_request = null)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calli...
[ "0.695495", "0.68179494", "0.6613098", "0.64016163", "0.6344411", "0.62848705", "0.6214668", "0.616522", "0.6113742", "0.61121696", "0.6112033", "0.60331535", "0.6009695", "0.60053074", "0.5994889", "0.5975372", "0.5962881", "0.58822674", "0.5871953", "0.5854071", "0.5815874"...
0.6632302
2
Operation cancelAsync Cancel Subscription
public function cancelAsync($id, $cancel_subscription_request = null) { return $this->cancelAsyncWithHttpInfo($id, $cancel_subscription_request) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _cancelOperation() {}", "public function cancel(): void;", "public function cancel();", "public function cancel()\n {\n }", "public function cancel()\n {\n }", "protected function cancel(): void\n {\n }", "function cancel() {\n if($this->request->isAsyncCall())...
[ "0.7692965", "0.69517905", "0.67626005", "0.6675706", "0.6675706", "0.66532636", "0.64392227", "0.64143974", "0.6355852", "0.6293415", "0.62430686", "0.6200272", "0.6191319", "0.61525214", "0.6113324", "0.60836667", "0.6081519", "0.6035006", "0.60084033", "0.6002759", "0.6002...
0.0
-1
Operation cancelAsyncWithHttpInfo Cancel Subscription
public function cancelAsyncWithHttpInfo($id, $cancel_subscription_request = null) { $returnType = '\OpenAPI\Client\Model\Subscription'; $request = $this->cancelRequest($id, $cancel_subscription_request); return $this->client ->sendAsync($request, $this->createHttpClientOption())...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function cancelRequest($id, $cancel_subscription_request = null)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calli...
[ "0.6539046", "0.62920797", "0.6250002", "0.623671", "0.6119566", "0.60108805", "0.5927491", "0.589252", "0.5783784", "0.5776062", "0.57478637", "0.56736225", "0.56557196", "0.56454897", "0.5631176", "0.5627461", "0.55665463", "0.5542984", "0.5515291", "0.55013835", "0.5501383...
0.6493573
1
Create request for operation 'cancel'
public function cancelRequest($id, $cancel_subscription_request = null) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling cancel' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _cancelOperation() {}", "public function actionCancel()\n {\n }", "public function cancel($params)\n { \n return $this->request(Resource::RESOURCE_ORDER_CANCEL, $params);\n }", "public function cancel();", "public function cancel(): void;", "public function can...
[ "0.7341362", "0.70861036", "0.7078121", "0.70541376", "0.701048", "0.6988759", "0.690553", "0.690553", "0.6712775", "0.6673656", "0.6614141", "0.6543088", "0.6530064", "0.6527233", "0.6495489", "0.6458284", "0.6427571", "0.6415554", "0.6371916", "0.6363306", "0.63475204", "...
0.6534386
12
Operation create Create Subscription
public function create($create_subscription_request) { list($response) = $this->createWithHttpInfo($create_subscription_request); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSubscription($request);", "public function create()\n {\n $subscription = new Subscription();\n\n return $subscription;\n }", "function createNewSubscription(array $data){\nreturn $this->post($data, \"/subscription\");\n}", "function create_subscription($subscription...
[ "0.78620964", "0.74412364", "0.71910346", "0.7108687", "0.7087301", "0.700485", "0.694343", "0.6895691", "0.6764189", "0.6710562", "0.66451645", "0.6636957", "0.6564832", "0.65515083", "0.6480991", "0.6454733", "0.6450996", "0.6395456", "0.63853854", "0.6379672", "0.6367608",...
0.6078584
43
Operation createWithHttpInfo Create Subscription
public function createWithHttpInfo($create_subscription_request) { $request = $this->createRequest($create_subscription_request); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); } catch ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSubscription($request);", "public function createRequest($create_subscription_request)\n {\n // verify the required parameter 'create_subscription_request' is set\n if ($create_subscription_request === null || (is_array($create_subscription_request) && count($create_subscri...
[ "0.6787618", "0.63246804", "0.62454414", "0.612119", "0.6012842", "0.5855699", "0.5843244", "0.56057495", "0.546624", "0.53863406", "0.5215567", "0.5215361", "0.52113795", "0.52106977", "0.5200128", "0.51342887", "0.513114", "0.5128389", "0.50850976", "0.5046759", "0.50391", ...
0.72404015
0
Operation createAsync Create Subscription
public function createAsync($create_subscription_request) { return $this->createAsyncWithHttpInfo($create_subscription_request) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSubscription($request);", "public function create()\n {\n $subscription = new Subscription();\n\n return $subscription;\n }", "public function createRequest($create_subscription_request)\n {\n // verify the required parameter 'create_subscription_request' is ...
[ "0.7494986", "0.73442197", "0.673031", "0.6701283", "0.66004896", "0.6591463", "0.65320283", "0.6472106", "0.6424054", "0.6403879", "0.6383709", "0.63482016", "0.6236066", "0.6219002", "0.6192785", "0.6143085", "0.60586184", "0.6057284", "0.6034366", "0.6026528", "0.5985806",...
0.70536435
2
Operation createAsyncWithHttpInfo Create Subscription
public function createAsyncWithHttpInfo($create_subscription_request) { $returnType = '\OpenAPI\Client\Model\Subscription'; $request = $this->createRequest($create_subscription_request); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSubscription($request);", "public function createWithHttpInfo($create_subscription_request)\n {\n $request = $this->createRequest($create_subscription_request);\n\n try {\n $options = $this->createHttpClientOption();\n try {\n $response ...
[ "0.67132217", "0.6611952", "0.64535356", "0.6451743", "0.600399", "0.59556895", "0.58881277", "0.5735445", "0.571406", "0.5318157", "0.53125125", "0.528297", "0.524467", "0.52340466", "0.5222019", "0.52152634", "0.5180291", "0.5180248", "0.51773584", "0.51756066", "0.5151299"...
0.6947793
0
Create request for operation 'create'
public function createRequest($create_subscription_request) { // verify the required parameter 'create_subscription_request' is set if ($create_subscription_request === null || (is_array($create_subscription_request) && count($create_subscription_request) === 0)) { throw new \InvalidArgu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create() {\n $this->operationsModel->create($_POST);\n $this->response('',200,'Success');\n }", "public function createRequest();", "public function createRequest();", "protected function getCreateRequest()\n\t{\n\t\t$url = $this->url();\n\t\t\n\t\t$url\n\t\t\t->getQuery()\n\...
[ "0.795575", "0.78607875", "0.78607875", "0.7826036", "0.7748363", "0.75838524", "0.75524616", "0.75524616", "0.75524616", "0.75524616", "0.752614", "0.751494", "0.751494", "0.74968624", "0.7489317", "0.7489317", "0.7489317", "0.74852437", "0.74852437", "0.74780756", "0.747605...
0.0
-1
Operation get Get Subscription
public function get($id) { list($response) = $this->getWithHttpInfo($id); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSubscriptions ()\n {\n try\n {\n $result = $this->apiCall('get',\"{$this->api['cms_manager_url']}/resources/subscriptions.json\",array(),'json');\n return $this->createResponse($result,'get My Subscriptions');\n } catch ( Exception $e ) {\n return $this->createResponse($e,'API ...
[ "0.7889973", "0.7785849", "0.7415316", "0.72852427", "0.7201232", "0.70981944", "0.69772583", "0.6903521", "0.6816838", "0.6806219", "0.67940885", "0.6790293", "0.6764741", "0.672417", "0.6671531", "0.66638666", "0.66221416", "0.65482485", "0.65398735", "0.6537851", "0.653276...
0.0
-1
Operation getWithHttpInfo Get Subscription
public function getWithHttpInfo($id) { $request = $this->getRequest($id); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); } catch (RequestException $e) { throw new ApiExc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSubscriptions ()\n {\n try\n {\n $result = $this->apiCall('get',\"{$this->api['cms_manager_url']}/resources/subscriptions.json\",array(),'json');\n return $this->createResponse($result,'get My Subscriptions');\n } catch ( Exception $e ) {\n return $this->createResponse($e,'API ...
[ "0.69722444", "0.68073857", "0.6535579", "0.63793206", "0.6360821", "0.6296219", "0.6172185", "0.6148372", "0.60534084", "0.6021172", "0.600231", "0.5975868", "0.5935178", "0.58376276", "0.5791245", "0.57028234", "0.56765276", "0.56465465", "0.557484", "0.5551144", "0.5543568...
0.68090624
1
Operation getAsync Get Subscription
public function getAsync($id) { return $this->getAsyncWithHttpInfo($id) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSubscriptions ()\n {\n try\n {\n $result = $this->apiCall('get',\"{$this->api['cms_manager_url']}/resources/subscriptions.json\",array(),'json');\n return $this->createResponse($result,'get My Subscriptions');\n } catch ( Exception $e ) {\n return $this->createResponse($e,'API ...
[ "0.7294289", "0.7208322", "0.6795358", "0.6730075", "0.66719186", "0.6574896", "0.6501247", "0.63747835", "0.63381654", "0.62213963", "0.62138355", "0.61616606", "0.60817415", "0.607804", "0.5999081", "0.5984607", "0.597904", "0.5940004", "0.5940004", "0.5940004", "0.5919047"...
0.0
-1
Operation getAsyncWithHttpInfo Get Subscription
public function getAsyncWithHttpInfo($id) { $returnType = '\OpenAPI\Client\Model\Subscription'; $request = $this->getRequest($id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($returnTyp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getSubscriptions ()\n {\n try\n {\n $result = $this->apiCall('get',\"{$this->api['cms_manager_url']}/resources/subscriptions.json\",array(),'json');\n return $this->createResponse($result,'get My Subscriptions');\n } catch ( Exception $e ) {\n return $this->createResponse($e,'API ...
[ "0.66120684", "0.6430841", "0.64088047", "0.6312208", "0.60517657", "0.5971194", "0.5970343", "0.5928071", "0.5783426", "0.57409406", "0.56164896", "0.56123966", "0.5522304", "0.551403", "0.5507932", "0.5494891", "0.54647666", "0.541186", "0.53250504", "0.52590114", "0.525901...
0.5880019
8
Create request for operation 'get'
public function getRequest($id) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling get' ); } $resource...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getGetRequest(): ParameterBag { return $this->get; }", "public function & GetRequest ();", "abstract public function get(Request $request);", "function get(Request &$request, Response &$response);", "public function get()\n {\n return $this->setMethod(__FUNCTION__)\n ->...
[ "0.7444611", "0.7054626", "0.6905653", "0.6869041", "0.68634444", "0.68248415", "0.68248415", "0.6792523", "0.6792523", "0.6792523", "0.6792523", "0.6792523", "0.6792523", "0.6792523", "0.6792523", "0.6585211", "0.6582826", "0.6556477", "0.65153414", "0.6487634", "0.6442366",...
0.0
-1
Operation pause Pause Subscription
public function pause($id, $pause_subscription_request = null) { list($response) = $this->pauseWithHttpInfo($id, $pause_subscription_request); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pause()\n\t{\n\t\t$this->data->directSet(\"state\", self::STATE_PAUSED);\n\t}", "public function pause() {\n $this->setRunningPaused( false, true );\n $this->pauseTime = $this->getCurrentTime();\n }", "public function pause();", "public function pauseRequest($id, $pause_subsc...
[ "0.6726247", "0.6502411", "0.6486787", "0.61510926", "0.58248305", "0.5818582", "0.5794448", "0.5743426", "0.573597", "0.5677816", "0.5671556", "0.557182", "0.54701775", "0.5368371", "0.5345109", "0.5306918", "0.52987945", "0.52874666", "0.5262701", "0.5169414", "0.5123887", ...
0.54035056
13
Operation pauseWithHttpInfo Pause Subscription
public function pauseWithHttpInfo($id, $pause_subscription_request = null) { $request = $this->pauseRequest($id, $pause_subscription_request); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pauseRequest($id, $pause_subscription_request = null)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling...
[ "0.6756621", "0.61223906", "0.5673755", "0.5652281", "0.532345", "0.5187231", "0.510628", "0.50011903", "0.49218845", "0.46801418", "0.46343336", "0.4616186", "0.4589907", "0.45407638", "0.45330092", "0.45278138", "0.4525527", "0.45158714", "0.44832748", "0.43955058", "0.4381...
0.6458646
1
Operation pauseAsync Pause Subscription
public function pauseAsync($id, $pause_subscription_request = null) { return $this->pauseAsyncWithHttpInfo($id, $pause_subscription_request) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pauseRequest($id, $pause_subscription_request = null)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling...
[ "0.61933154", "0.59582126", "0.587792", "0.58748496", "0.58618504", "0.5425835", "0.5238515", "0.5195129", "0.5186118", "0.5074992", "0.5062111", "0.5057064", "0.5037985", "0.5019289", "0.50024873", "0.49525195", "0.49365297", "0.48516017", "0.47931746", "0.47480434", "0.4719...
0.49185097
17
Operation pauseAsyncWithHttpInfo Pause Subscription
public function pauseAsyncWithHttpInfo($id, $pause_subscription_request = null) { $returnType = '\OpenAPI\Client\Model\Subscription'; $request = $this->pauseRequest($id, $pause_subscription_request); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pauseRequest($id, $pause_subscription_request = null)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling...
[ "0.6599905", "0.5760269", "0.5575559", "0.5264843", "0.51674086", "0.5154135", "0.50580347", "0.50436234", "0.50218236", "0.5010299", "0.47628224", "0.4694346", "0.4625178", "0.4536303", "0.44720948", "0.44598576", "0.44378605", "0.44342506", "0.43335363", "0.42906952", "0.42...
0.6421781
1
Create request for operation 'pause'
public function pauseRequest($id, $pause_subscription_request = null) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling pause' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function pause();", "public function pauseQueue()\n {\n return $this->sendrequest('pause', null);\n }", "public function pause()\n\t{\n\t\t$this->data->directSet(\"state\", self::STATE_PAUSED);\n\t}", "public function pause($id)\n {\n return $this->sendrequest('pause', $id);\n ...
[ "0.6467386", "0.64217275", "0.61979496", "0.6100976", "0.5795197", "0.57342404", "0.5722731", "0.5717618", "0.5704757", "0.56527936", "0.55319285", "0.54270554", "0.5346903", "0.5342334", "0.5334933", "0.5245182", "0.5153226", "0.51068974", "0.50671494", "0.5066141", "0.50572...
0.65315706
0
Operation resume Resume Subscription
public function resume($id) { list($response) = $this->resumeWithHttpInfo($id); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resume();", "public function resume(Request $request)\n {\n $customer = $request->user()->customer;\n $subscription = $customer->subscription;\n\n if ($request->user()->customer->can('resume', $subscription)) {\n $subscription->resume();\n }\n\n //...
[ "0.7350481", "0.72131974", "0.69684464", "0.6923316", "0.6608048", "0.6504486", "0.64773655", "0.64365953", "0.6429329", "0.6361147", "0.63473946", "0.60633546", "0.60632056", "0.59223115", "0.5916085", "0.58291566", "0.58211297", "0.56006455", "0.55965924", "0.5586956", "0.5...
0.55006653
23
Operation resumeWithHttpInfo Resume Subscription
public function resumeWithHttpInfo($id) { $request = $this->resumeRequest($id); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); } catch (RequestException $e) { throw new ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resumeRequest($id)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $id when calling resume'\n );\n }...
[ "0.63306177", "0.6313488", "0.6270723", "0.61454046", "0.58965796", "0.5741384", "0.5712917", "0.5666965", "0.56491536", "0.5569796", "0.5479918", "0.54406846", "0.53592277", "0.5305586", "0.5253017", "0.52213144", "0.5180112", "0.5179129", "0.5126218", "0.50806004", "0.50644...
0.633335
0
Operation resumeAsync Resume Subscription
public function resumeAsync($id) { return $this->resumeAsyncWithHttpInfo($id) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resume();", "public function resume(): void\n {\n $this->tonClient->request(\n 'net.resume'\n )->wait();\n }", "public function resume(Request $request)\n {\n $customer = $request->user()->customer;\n $subscription = $customer->subscription;\n\n ...
[ "0.7003484", "0.6769973", "0.6718481", "0.6544407", "0.63831425", "0.6188289", "0.6146563", "0.5991132", "0.59836096", "0.5920313", "0.5894094", "0.5859104", "0.5738698", "0.5611025", "0.5497404", "0.5497337", "0.5482257", "0.54737794", "0.5470183", "0.5383478", "0.52988034",...
0.48095116
28
Operation resumeAsyncWithHttpInfo Resume Subscription
public function resumeAsyncWithHttpInfo($id) { $returnType = '\OpenAPI\Client\Model\Subscription'; $request = $this->resumeRequest($id); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ->then( function ($response) use ($ret...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resume(): void\n {\n $this->tonClient->request(\n 'net.resume'\n )->wait();\n }", "public function resume(Request $request)\n {\n $customer = $request->user()->customer;\n $subscription = $customer->subscription;\n\n if ($request->user()->cus...
[ "0.6342882", "0.6201281", "0.61902463", "0.6163323", "0.5921444", "0.5770443", "0.570346", "0.5620795", "0.5535597", "0.5524534", "0.5472509", "0.5422426", "0.539874", "0.5199294", "0.5182203", "0.51572454", "0.5121586", "0.5101934", "0.506159", "0.50445884", "0.5023477", "...
0.5886483
5
Create request for operation 'resume'
public function resumeRequest($id) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling resume' ); } $re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function resume();", "public function resume(): void\n {\n $this->tonClient->request(\n 'net.resume'\n )->wait();\n }", "public function resumeQueue()\n {\n return $this->sendrequest('resume', null);\n }", "public function getResumeContextResponse();", "ab...
[ "0.69439363", "0.6853983", "0.64689094", "0.63917744", "0.6296846", "0.6267364", "0.61302215", "0.6105293", "0.6004747", "0.5732967", "0.5678388", "0.5663334", "0.5576243", "0.55747175", "0.5545097", "0.5511283", "0.5364658", "0.5262826", "0.52265817", "0.51964396", "0.519335...
0.6989134
0
Operation update Update Subscription
public function update($id, $update_subscription_request) { list($response) = $this->updateWithHttpInfo($id, $update_subscription_request); return $response; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateSubscription($request);", "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "function _updateSubscription(&$subscription) {\n\t\t$returner = ...
[ "0.82198447", "0.77688706", "0.77688706", "0.72326773", "0.71456295", "0.7139151", "0.69506", "0.69487906", "0.68895733", "0.6749014", "0.6696416", "0.66491455", "0.66464925", "0.6644341", "0.6602647", "0.65862894", "0.65109265", "0.6499283", "0.64878166", "0.64685255", "0.64...
0.0
-1
Operation updateWithHttpInfo Update Subscription
public function updateWithHttpInfo($id, $update_subscription_request) { $request = $this->updateRequest($id, $update_subscription_request); try { $options = $this->createHttpClientOption(); try { $response = $this->client->send($request, $options); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "public function updateSubscription($request);", "public function updateRequest($id, $update_subscription_request)...
[ "0.7103837", "0.7103837", "0.70533293", "0.66914254", "0.6451099", "0.63787127", "0.6062708", "0.60579354", "0.60464174", "0.6010428", "0.58038044", "0.5790607", "0.56669056", "0.5580175", "0.55344015", "0.551715", "0.5515798", "0.5436458", "0.54261744", "0.5408889", "0.53686...
0.6803221
3
Operation updateAsync Update Subscription
public function updateAsync($id, $update_subscription_request) { return $this->updateAsyncWithHttpInfo($id, $update_subscription_request) ->then( function ($response) { return $response[0]; } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateSubscription($request);", "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "public function update(Request $request, Subscription $subscription)\n {\n //\n }", "public function update()\n {\n return $this->putResour...
[ "0.7444646", "0.7097894", "0.7097894", "0.6890104", "0.68070495", "0.6716158", "0.64672345", "0.6388384", "0.628623", "0.62688124", "0.6259955", "0.616674", "0.6067797", "0.6029292", "0.5990102", "0.59377766", "0.59326804", "0.5918335", "0.5895007", "0.58866763", "0.58866763"...
0.0
-1
Operation updateAsyncWithHttpInfo Update Subscription
public function updateAsyncWithHttpInfo($id, $update_subscription_request) { $returnType = '\OpenAPI\Client\Model\Subscription'; $request = $this->updateRequest($id, $update_subscription_request); return $this->client ->sendAsync($request, $this->createHttpClientOption()) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateSubscription($request);", "public function updateRequest($id, $update_subscription_request)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n 'M...
[ "0.6731759", "0.66227084", "0.66135156", "0.66135156", "0.62097406", "0.6089385", "0.60654646", "0.5956002", "0.59049314", "0.58601135", "0.5717568", "0.5671041", "0.5559133", "0.55380934", "0.54909086", "0.5484493", "0.5366367", "0.53622746", "0.5355326", "0.5353226", "0.533...
0.650908
4
Create request for operation 'update'
public function updateRequest($id, $update_subscription_request) { // verify the required parameter 'id' is set if ($id === null || (is_array($id) && count($id) === 0)) { throw new \InvalidArgumentException( 'Missing the required parameter $id when calling update' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getUpdateRequest()\n\t{\n\t\t$url = $this->url();\n\t\n\t\t$url->getQuery()->setParameter('code', 200);\n\t\t\n\t\treturn new Api\\Request\\Update((string) $url);\n\t}", "public function update($request,$id) {\n \n\n }", "public function update(Request $req){\n\n }", "public functi...
[ "0.77520025", "0.6893688", "0.68338996", "0.682253", "0.67853606", "0.6754133", "0.6745293", "0.6745244", "0.6728395", "0.6728395", "0.6727146", "0.67198616", "0.67198616", "0.6713608", "0.66961724", "0.6678498", "0.66628087", "0.66628087", "0.66628087", "0.66628087", "0.6662...
0.0
-1
Create http client option
protected function createHttpClientOption() { $options = []; if ($this->config->getDebug()) { $options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a'); if (!$options[RequestOptions::DEBUG]) { throw new \RuntimeException('Failed to open the d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createHttpClientOption()\n{\n$options = [];\nif ($this->config->getDebug()) {\n$options[RequestOptions::DEBUG] = fopen($this->config->getDebugFile(), 'a');\nif (!$options[RequestOptions::DEBUG]) {\nthrow new \\RuntimeException('Failed to open the debug file: ' . $this->config->getDebugFile());\n...
[ "0.68757546", "0.67108804", "0.64613956", "0.6300258", "0.62856317", "0.61810327", "0.6174985", "0.6153127", "0.61101645", "0.6098676", "0.6098676", "0.6074991" ]
0.0
-1
$this>itemsObj = new Festival_Model_OrderItems();
public function init() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct() {\n $this->model = new Model_Jiafuyun_Order();\n\t}", "public function __construct()\n {\n parent::__construct();\n $this->bsodOrder = new BsodOrder();\n }", "function __construct()\n {\n $this->items = [];\n }", "public function __constru...
[ "0.6970815", "0.65818965", "0.6487226", "0.63998264", "0.63179785", "0.6308791", "0.6266799", "0.62652004", "0.62286776", "0.62286776", "0.62044525", "0.61947966", "0.6167838", "0.61582476", "0.60812825", "0.60708594", "0.60563695", "0.60502666", "0.60268563", "0.6020639", "0...
0.0
-1
Display a listing of the resource.
public function index() { $data = ProductCategory::all(); return response()->json($data,200); }
{ "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) { $validator = Validator::make($request->all(), [ 'name'=>'required|unique:product_category' ]); if($validator->fails()){ return response()->json($validator->messages(),200); } $pc = new Pro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.728708", "0.7144915", "0.7132209", "0.66401577", "0.66205436", "0.65682197", "0.6526531", "0.65085673", "0.6449452", "0.63749766", "0.63726056", "0.6364582", "0.6364582", "0.6364582", "0.6341498", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.634...
0.0
-1
Display the specified resource.
public function show($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) { // }
{ "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) { $validator = Validator::make($request->all(), [ 'name'=>'required|unique:product_category' ]); if($validator->fails()) { return response()->json($validator->messages(),200); } $mes...
{ "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
Check directory's and file's existence, create it, open it, and return the file object.
public function openFile() { // check directory $file_path and create the directory if it doesn't exist if (!file_exists($this->file_path)) { if (!mkdir($this->file_path, 0777, true)) { throw new Exception('Failed to create directory.'); } } //...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createFile(FileInterface $file, DirectoryInterface $parent): FileInterface;", "function mk_file( $filename ) {\n \n // if file doesn't exist, create file and close it\n if ( ! is_file( $filename ) ) {\n fclose( fopen($filename, 'x' ) );\n return true;\n }\n\n // file ...
[ "0.6155667", "0.60799193", "0.5949634", "0.58423984", "0.5794429", "0.5779763", "0.5759584", "0.57259077", "0.57169217", "0.55665475", "0.5522985", "0.55155593", "0.5502272", "0.5480802", "0.5453434", "0.5452252", "0.54452354", "0.54277015", "0.54112834", "0.5402143", "0.5392...
0.6540006
0
Close the file object.
public function closeFile($file_object) { $file_object = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function closeFile() {\n fclose($this->file);\n }", "protected function closeFile() {\n if ($this->handle) {\n fclose($this->handle);\n\n $this->handle = null;\n }\n }", "public function closeFile(){\n if(is_resource($this->_filePointer) === true){...
[ "0.8404209", "0.832272", "0.81840813", "0.8165709", "0.81120735", "0.8062449", "0.80460984", "0.7954119", "0.78923094", "0.7759818", "0.7759818", "0.7650321", "0.7650029", "0.7541118", "0.7528586", "0.74780625", "0.7477603", "0.7434033", "0.74227095", "0.7313574", "0.72810024...
0.7393602
19
Start logging current activity.
public function startLog($log_data, $log_path = null) { // specify file path and name $additional_path = null; $additional_name = null; if ($log_path !== null && is_array($log_path)) { $additional_path = implode('/', $log_path).'/'; $additional_name = implode...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function start() {\n if ($this->isLogging) {\n $this->tStart = gettimeofday();\n $this->tLast = $this->tStart;\n $this->log = \"<h1>Log: \" . $this->name . \"</h1>\\n<pre>Started: \" . gmdate(\"D, d M Y H:i:s T\", $this->tStart['sec']) . \"\\n &#916; Start ; &#916; Last ;\...
[ "0.7086521", "0.6382671", "0.6255514", "0.62346", "0.6180652", "0.6170296", "0.6146097", "0.6125242", "0.607057", "0.60679466", "0.60460776", "0.60316217", "0.6027603", "0.5867818", "0.5846256", "0.58232164", "0.5818103", "0.58176935", "0.58118844", "0.57783824", "0.5774136",...
0.0
-1
Add log to current activity.
public function addLog($log_data) { // open the file $log_file = $this->openFile(); // get current (last) line $log_file->seek($this->file_line); $this->file_line = $log_file->key() + 1; // write the log $time_of_day = gettimeofday(); $times...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function add_log($log) {\n $this->log .= \" \" . $log;\n }", "public function addLog($data);", "public function log()\n {\n $this->appendLog('log', \\func_get_args());\n }", "private function add_to_log($action) {\n if ($action) {\n $event = \\mod_simplece...
[ "0.6949899", "0.6786018", "0.64081633", "0.6330909", "0.62965894", "0.6278046", "0.6214957", "0.6186524", "0.61659294", "0.6150313", "0.60642064", "0.6049629", "0.6048209", "0.6039665", "0.6021442", "0.59698683", "0.5951873", "0.59339076", "0.5907722", "0.5890782", "0.5884637...
0.6091978
10
Run the database seeds.
public function run() { //Factory for the address CustomizePizza::create([ 'order_item_id' => 1, 'item_price_id' => 63, 'quantity' => '2', ]); CustomizePizza::create([ 'order_item_id' => 2, 'item_price_id' => 63, ...
{ "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.8014072", "0.7980389", "0.7977261", "0.79545176", "0.7951285", "0.7949779", "0.79447794", "0.79427236", "0.7938544", "0.7937133", "0.7933888", "0.7892658", "0.78813094", "0.7879304", "0.78790134", "0.7875582", "0.78718805", "0.7870327", "0.7851507", "0.78506047", "0.784165...
0.0
-1
Create new BaseFieldRepository instance.
public function __construct(ConfigHandler $config, CrudBaseController $controller, BaseForm $form, Field $field = null) { $this->config = $config; $this->controller = $controller; $this->form = $form; $this->field = $field; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct( $repo, $field )\n {\n $this->repo = $repo;\n $this->field = $field;\n }", "public function createRepository()\n {\n $schema = $this->getConnection()->getSchemaBuilder();\n\n $schema->create($this->table, function ($table) {\n $table->in...
[ "0.63967806", "0.6295707", "0.6184993", "0.6002979", "0.59320277", "0.59320277", "0.5928329", "0.58996564", "0.5894282", "0.5870929", "0.5858669", "0.5828895", "0.5789435", "0.5779005", "0.57713735", "0.5745175", "0.5724787", "0.5683236", "0.5672522", "0.56175005", "0.5560978...
0.0
-1
Fill attributes to model.
protected function fillAttributesToModel($model, array $attributes) { foreach ($this->form->getRegisteredFields() as $field) { if (! array_key_exists($field->id, $attributes)) { continue; } $fill = [$field->local_key]; if ($field instanceof Mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function fill(Identifiable $model, array $attributes);", "public function _fill($attributes)\n \t{\n \t\tforeach($attributes as $key => $value) {\n \t\t\t$this->$key = $value;\n \t\t}\n\n \t\treturn $this;\n \t}", "public function fillModelAttributes($model, $request, $fields)\n {\n...
[ "0.7153756", "0.6827598", "0.68242425", "0.67079157", "0.65219325", "0.6507535", "0.64191866", "0.6415359", "0.63912696", "0.6379667", "0.6346426", "0.6299038", "0.6296743", "0.6274215", "0.62564826", "0.62238854", "0.62231845", "0.6215017", "0.6213479", "0.61945474", "0.6157...
0.60723084
27
to show the name of the Author in the select
public function __toString(){ return $this->nom; // to show the id in the select // return $this->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAuthorname() {}", "public function getAuthor();", "public function getAuthor();", "public function getAuthor();", "function showAuthor()\n {\n $this->out->elementStart('div', 'author');\n\n $this->out->elementStart('span', 'vcard author');\n\n $attrs = array('href...
[ "0.7014085", "0.66192245", "0.66192245", "0.66192245", "0.66046005", "0.65311795", "0.65311795", "0.6528419", "0.65102595", "0.650702", "0.64678055", "0.64211965", "0.6418339", "0.64004564", "0.64004564", "0.64004564", "0.64004564", "0.64004564", "0.64004564", "0.6358231", "0...
0.0
-1
Resolves the components which calls their init methods automatically
public function initialiseComponentsAndServices() { $this->imager; $this->imageOptimize; $this->staticCache; $this->csrfInjection; $this->assetsPlatform; $this->cpAlerts; $this->redisDebug; $this->localDev; $this->feedMe; $this->blitz; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function init()\r\n {\r\n //Copy components to comps, so you can alter components properties\r\n //on init() methods\r\n $comps=$this->components->items;\r\n //Calls children's init recursively\r\n reset($comps);\r\n w...
[ "0.73128", "0.72632545", "0.6834717", "0.6830446", "0.67717636", "0.6696126", "0.6656841", "0.6632223", "0.66311395", "0.6588512", "0.6533613", "0.64981055", "0.6453846", "0.6427226", "0.6424599", "0.6388251", "0.6387867", "0.6387867", "0.6387867", "0.6387867", "0.63870287", ...
0.7182063
2
Create new Resource instance from HTTP response.
public static function createFromResponse(ResponseInterface $response, ApiProviderInterface $api, ApiResourceInterface $owner = null) { $data = json_decode((string) $response->getBody(), true); return new static($api, $data, $owner); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createResourceObject(array $response): BaseResource\n {\n return new Ticket($this->client, $response, $this->invoiceId);\n }", "public function deserializeResponse(string $response): Response;", "public static function create(\\GuzzleHttp\\Psr7\\Response $response)\n {\n // - ...
[ "0.6414738", "0.62786955", "0.6255751", "0.61802685", "0.6109917", "0.6070441", "0.603984", "0.60393196", "0.60125035", "0.6008985", "0.5992915", "0.5992591", "0.59395856", "0.59146154", "0.59108865", "0.58777547", "0.5871064", "0.5859848", "0.5851065", "0.58345413", "0.58154...
0.54384613
50
Display a listing of the resource.
public function CategoriesShow() { $allCategories = Categorie::all(); return view('articles.seeCategories', compact('allCategories')); }
{ "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 CategoriesCreate(CategoriesRequest $request) { $categorie = new Categorie; $categorie->name = $request->newCategorie; $categorie->validation = 1; $categorie->save(); return redirect()->route('showCategories'); }
{ "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(CategoriesRequest $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.728708", "0.7144915", "0.7132209", "0.66401577", "0.66205436", "0.65682197", "0.6526531", "0.65085673", "0.6449452", "0.63749766", "0.63726056", "0.6364582", "0.6364582", "0.6364582", "0.6341498", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.63412726", "0.634...
0.0
-1
Display the specified resource.
public function show($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) { // }
{ "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(CategoriesRequest $request, $id) { // }
{ "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 CategoriesDelete($id) { $categorie = Categorie::find($id); $categorie->delete(); return redirect()->route('showCategories'); }
{ "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
Returns information about this plugin.
public function pluginDetails() { return [ 'name' => 'acgp.flyingsite::lang.plugin.name', 'description' => 'acgp.flyingsite::lang.plugin.description', 'author' => 'Air Cadet Gliding Program', 'icon' => 'icon-plane', 'homepage' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function plugin_info()\n {\n }", "public function getInfo()\n {\n // Verschiedene Info-Parameter für Plugin-Manager.\n return array(\n 'version' => $this->getVersion(),\n 'label' => $this->getLabel(),\n 'author' => 'Net Invento...
[ "0.797724", "0.7922392", "0.77463794", "0.7735706", "0.76848036", "0.7645479", "0.76429296", "0.7587013", "0.75822604", "0.7577747", "0.75763935", "0.75526416", "0.75190413", "0.75190413", "0.75190413", "0.75190413", "0.75190413", "0.7480916", "0.7479124", "0.7478786", "0.746...
0.7459702
22
Display a listing of the resource.
public function index() { $user = "me"; $msgLimit = 1000; $client = getClient(); $service = getService($client); $listMessages = listMessages($service, $user, $msgLimit); $arrMessage = array(); $objClientController = new ClientCo...
{ "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
Authorize a resource action based on the incoming request.
public function authorizeResource($model, $name = null, array $options = [], $request = null) { $method = array_last(explode('@', with($request ?: request())->route()->getActionName())); $map = $this->resourceAbilityMap(); if (! in_array($method, array_keys($map))) { return new...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorizeAction();", "public function authorize($action, User $user, $entity);", "abstract public function authorize();", "abstract public function authorize();", "public function authorize();", "public function authorize();", "public function authorize () {\n if (!Resources::sec...
[ "0.7414513", "0.7130785", "0.6988308", "0.6988308", "0.67508465", "0.67508465", "0.6702631", "0.64158064", "0.64080954", "0.63223964", "0.6310805", "0.6292154", "0.62204945", "0.6216495", "0.6198458", "0.6140613", "0.6134039", "0.6133433", "0.6127485", "0.6030986", "0.5982879...
0.0
-1
Get the map of resource methods to ability names.
protected function resourceAbilityMap() { return [ 'index' => 'view', 'create' => 'create', 'store' => 'create', 'show' => 'view', 'edit' => 'update', 'update' => 'update', 'destroy' => 'delete', ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function resourceAbilityMap()\n {\n return [\n 'edit' => 'update',\n 'update' => 'update',\n 'destroy' => 'delete',\n ];\n }", "protected function resourceAbilityMap()\n {\n return [\n //\n ];\n }", "protected functi...
[ "0.8319399", "0.80452526", "0.71471304", "0.6754547", "0.6465148", "0.6369887", "0.6369881", "0.63488036", "0.63461006", "0.6160315", "0.6110951", "0.5977814", "0.59642", "0.5888764", "0.58881193", "0.58534116", "0.58451504", "0.58186066", "0.5796705", "0.57944775", "0.578187...
0.8250301
1
/ The following functions are defined in /include/util_functions.php is_extant( $some_value ) make_safe( $some_value ) verify_phone( $phone_number ) add_err( $some_error_message ) chk_regx_add_err( $value_to_check, $error_message_on_failure, $regular_expression ) get_insert_stmt( $table_name, $sql_statement ) get_updat...
function user_home() { $this->secure_page(); // Very important. global $site_globals; // To eliminate typing... $link = $site_globals['link']; $_REQUEST['item_type'] == 'found' ? $lost_flag = '1' : $lost_flag = '0'; $sql = "SELECT item_id,description,item_comment,reward,address,city,stat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function db_query($query, $link_id,$debug=false, $die_on_debug=true, $silent=false,$executedto=\"Local\") {\n if ($link_id!=\"mlks\"){\n\t\n \t\n \n\tif ($GLOBALS['DB_DEBUG']) {\n\t\techo \"<pre>\" . htmlspecialchars($query) . \"(\".$executedto.\")</pre>\";\nif ($die_on_debug&&$GLOBALS['DB_DIE_ON_DEBU...
[ "0.60461295", "0.59926385", "0.5912881", "0.5909245", "0.585579", "0.58307177", "0.5824334", "0.580395", "0.57913244", "0.5762837", "0.5760874", "0.5714867", "0.570937", "0.56582975", "0.564811", "0.5642686", "0.56323284", "0.5620333", "0.5620168", "0.5620168", "0.5596662", ...
0.0
-1
Returns multiple wishlist item id
public function getId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMultipleWishlistId();", "public function getWishlistItemId();", "public function getWishlistId();", "public function setMultipleWishlistId($id);", "public function setWishlistItemId(int $id);", "private function getWishlistId()\n {\n if (Tools::getIsset('id_wishlist')) {\n ...
[ "0.85623133", "0.7994373", "0.77892303", "0.69232863", "0.6614264", "0.65120983", "0.62209964", "0.60974455", "0.60883564", "0.6043183", "0.5988286", "0.59730417", "0.594972", "0.58625734", "0.5842688", "0.5821572", "0.57435393", "0.5737017", "0.57279104", "0.57151616", "0.57...
0.0
-1
Set multiple wishlist item id
public function setId($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setMultipleWishlistId($id);", "public function getMultipleWishlistId();", "public function setWishlistItemId(int $id);", "public function getWishlistItemId();", "public function setWishlistId(int $id);", "public function getWishlistId();", "function setWishlist(Request $request) {\n\n ...
[ "0.8082416", "0.7523229", "0.73613006", "0.68790865", "0.6877334", "0.6702284", "0.6358615", "0.6317094", "0.6284763", "0.6284763", "0.61774004", "0.5848828", "0.58404243", "0.57348657", "0.572533", "0.57148314", "0.5694598", "0.5668503", "0.56031334", "0.55534077", "0.554277...
0.0
-1
Returns main wishlist id
public function getWishlistId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getWishlistId()\n {\n if (Tools::getIsset('id_wishlist')) {\n return (int) Tools::getValue('id_wishlist');\n }\n\n if (Tools::getIsset('token')) {\n $wishlistData = WishList::getByToken(\n Tools::getValue('token')\n );\n\n ...
[ "0.7615724", "0.70116913", "0.6946382", "0.63400537", "0.61921054", "0.6171307", "0.61290824", "0.61071986", "0.60699147", "0.60571253", "0.6051647", "0.6051647", "0.60209024", "0.59611905", "0.5953613", "0.583613", "0.5831006", "0.5811685", "0.57815576", "0.5772033", "0.5762...
0.8193934
0
Set main wishlist id
public function setWishlistId(int $id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWishlistId();", "public function setWishlistItemId(int $id);", "public function setMultipleWishlistId($id);", "private function _setListId()\r\n { \r\n if (Mage::getSingleton('admin/session')->isLoggedIn()) {\r\n $storeId = Mage::app()->getRequest()->getParam('st...
[ "0.6935961", "0.6884278", "0.6682281", "0.6210829", "0.6176749", "0.6093338", "0.60390955", "0.5821634", "0.5596987", "0.55709", "0.55291283", "0.5509235", "0.5501592", "0.5496938", "0.5459576", "0.5439535", "0.5438677", "0.5411628", "0.5402319", "0.53761107", "0.5364364", ...
0.72476196
0
Returns multiple wishlist id
public function getMultipleWishlistId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWishlistId();", "public function getWishlistItemId();", "public function setMultipleWishlistId($id);", "private function getWishlistId()\n {\n if (Tools::getIsset('id_wishlist')) {\n return (int) Tools::getValue('id_wishlist');\n }\n\n if (Tools::getIsset...
[ "0.8252224", "0.74019974", "0.7289154", "0.6912871", "0.64536047", "0.6166625", "0.6153575", "0.61510456", "0.61022043", "0.6045225", "0.6008975", "0.5971688", "0.59576833", "0.5890235", "0.58724195", "0.5856227", "0.58141804", "0.57917124", "0.578789", "0.57647365", "0.57346...
0.90229326
0
Set multiple wishlist id
public function setMultipleWishlistId($id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMultipleWishlistId();", "public function setWishlistId(int $id);", "public function getWishlistId();", "public function setWishlistItemId(int $id);", "function setWishlist(Request $request) {\n\n $customerId = $request->request->get('customerId');\n $productId = $request->r...
[ "0.77833146", "0.72197264", "0.69523084", "0.68831176", "0.6870222", "0.6384421", "0.61836076", "0.58388215", "0.57524645", "0.57267416", "0.56855893", "0.5679268", "0.5678719", "0.56722623", "0.56636983", "0.5657316", "0.56506354", "0.56194264", "0.56169426", "0.5573204", "0...
0.8419035
0
Returns main wishlist item id
public function getWishlistItemId();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getWishlistId();", "private function getWishlistId()\n {\n if (Tools::getIsset('id_wishlist')) {\n return (int) Tools::getValue('id_wishlist');\n }\n\n if (Tools::getIsset('token')) {\n $wishlistData = WishList::getByToken(\n Tools::get...
[ "0.7601552", "0.7053714", "0.6650579", "0.65976834", "0.65189105", "0.64953774", "0.64953774", "0.64747316", "0.6419301", "0.64177823", "0.64134264", "0.62727946", "0.6252901", "0.6221871", "0.61860734", "0.6182731", "0.61710066", "0.61578333", "0.61578333", "0.61578333", "0....
0.7674961
0
Set main wishlist item id
public function setWishlistItemId(int $id);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setWishlistId(int $id);", "public function getWishlistItemId();", "public function getWishlistId();", "function setId_item($iid_item = '')\n {\n $this->iid_item = $iid_item;\n }", "function setId_item($iid_item)\n {\n $this->iid_item = $iid_item;\n }", "function ...
[ "0.6877439", "0.66611004", "0.6653046", "0.65225196", "0.64254946", "0.64254946", "0.6311617", "0.62746364", "0.6271517", "0.60921144", "0.59332615", "0.58026314", "0.5771222", "0.5767889", "0.57487905", "0.5683911", "0.55960083", "0.5576344", "0.55379796", "0.54939747", "0.5...
0.7443844
0
Retrieve existing extension attributes object or create a new one.
public function getExtensionAttributes();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getExtensionAttributes(): ?ItemRequestExtensionInterface;", "public function getExtensionAttributes(): ?ResultExtensionInterface;", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public function getAdditionalAttributes() {}", "public funct...
[ "0.6168628", "0.6096815", "0.5797734", "0.5797318", "0.5797318", "0.57972354", "0.57957065", "0.57957065", "0.57957065", "0.57957065", "0.5793629", "0.57655543", "0.57117134", "0.57117134", "0.57117134", "0.57117134", "0.57117134", "0.57117134", "0.57117134", "0.5482796", "0....
0.674368
13
Set an extension attributes object.
public function setExtensionAttributes(MultipleWishlistItemExtensionInterface $extensionAttributes);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAttributes();", "public function setExtensionAttributes(\\Magento\\Tax\\Api\\Data\\AppliedTaxExtensionInterface $extensionAttributes);", "public function setExtension($extension, $attributes = array()) {\n\t\t$this->connections [$this->active]->setExtension ( $extension, $attributes );\n\t}"...
[ "0.69624007", "0.6806445", "0.67975146", "0.6626065", "0.655601", "0.65525913", "0.6545836", "0.6514346", "0.65032536", "0.6427793", "0.64174604", "0.64086866", "0.6383069", "0.6383069", "0.6383069", "0.6330351", "0.63235587", "0.62166697", "0.61463314", "0.60595465", "0.6057...
0.54727167
77
/ e.g: $route['/home'] = array("controller"=>"user", "method"=>"get_user", "params"=> array("id", "name") );
private function uri_reroute() { $match = false; $uri = parse_url($_SERVER['REQUEST_URI']); if (isset($uri['path']) && $uri['path'] !== "/") { $_ = preg_split("|/|", $uri['path'], -1, PREG_SPLIT_NO_EMPTY); $i = 0; $route = null; $router...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function useRoute(){\n\t\t\t$routeParts = explode(\"@\", $this->matchingRoute->location);\n\t\t\treturn [\"controller\" => ucfirst($routeParts[0]), \"method\" => $routeParts[1]];\n\t\t}", "function route($url){\n\t$controller = stringFormat(array_shift($url), true);\n\t\t//var_dump('controller = '.$contro...
[ "0.65046793", "0.6400183", "0.62917715", "0.6287394", "0.62566066", "0.6255376", "0.61948305", "0.6175578", "0.6066843", "0.6040008", "0.6037414", "0.6014", "0.60030013", "0.5986194", "0.59634763", "0.5963272", "0.59119296", "0.59098446", "0.5908987", "0.58834106", "0.5872011...
0.0
-1
Used to upgrade (rehash) the user's password automatically over time.
public function getPassword($credentials): ?string { return $credentials['password']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_password()\n {\n }", "protected function changePassword() {}", "public function userPasswordUpdate() {\n $password = Hash::make($this->request->input(\"new_password\"));\n $updateArray = [\n \"password\" => $password\n ];\n $whereArray = [\n ...
[ "0.7278217", "0.7246388", "0.69614935", "0.6897919", "0.6891629", "0.68579644", "0.6855735", "0.6842724", "0.67941433", "0.6786965", "0.6777229", "0.67630225", "0.6754547", "0.67416", "0.6730419", "0.6711457", "0.6703955", "0.6691833", "0.66854537", "0.66777736", "0.66593385"...
0.0
-1
Override to control what happens when the user hits a secure page but isn't logged in yet. If request expects JSON => JsonResponse Else => Redirect to login page.
public function start(Request $request, AuthenticationException $authException = null) { if (($request->isXmlHttpRequest() && $this->acceptsAnyContentType($request)) || $this->wantsJson($request)) { return new UnauthorizedJsonResponse(); } return new RedirectResponse($this->getL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authenticationReqd(){\n\t\theader('HTTP/1.0 401 Unauthorized');\n\t\t$this['app']['hologram']->setModule(\"WWW\")->log(\\Bakery\\Utilities\\Hologram::NORMAL, \"Response: Page requires authentication\");\r\n\t\t\n\t\t$_SESSION['redirect_to'] = $this['request']['uri'];\n\t\t\n\t\tif($this->isJson()){...
[ "0.6698295", "0.6521197", "0.63815457", "0.61297345", "0.6099187", "0.604042", "0.59660673", "0.59342396", "0.5889052", "0.58647996", "0.5857175", "0.5794604", "0.5779036", "0.57702166", "0.576867", "0.5766504", "0.57534266", "0.5747338", "0.5703438", "0.570227", "0.5700319",...
0.53897434
82
Determine if the given request accepts any content type.
private function acceptsAnyContentType(Request $request): bool { $acceptable = $request->getAcceptableContentTypes(); return 0 === count($acceptable) || ( isset($acceptable[0]) && ('*/*' === $acceptable[0] || '*' === $acceptable[0]) ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function acceptableContentTypes() {\n\t\t$accept = $this->getHeader('Accept');\n\t\treturn $accept === null ? array() : self::parseNegotiation($accept);\n\t}", "public function accepts_content_type($name = '') {\n\t\treturn ($name == 'channel' || $name == 'grid');\n\t}", "public function accepts($conten...
[ "0.683211", "0.682815", "0.6751245", "0.6692486", "0.66710466", "0.66710466", "0.65680546", "0.65680546", "0.65680546", "0.65680546", "0.65558404", "0.64473057", "0.640529", "0.63946104", "0.639117", "0.63432777", "0.6325101", "0.63057965", "0.6302268", "0.6297111", "0.628489...
0.83254397
0
Determine if the given request is asking for JSON.
private function wantsJson(Request $request): bool { $acceptable = $request->getAcceptableContentTypes(); return isset($acceptable[0]) && $this->stringHelper->contains($acceptable[0], ['/json', '+json']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isJson()\n {\n return $this->request->isJson() || ($this->request->header('CONTENT_TYPE') === 'application/vnd.api+json');\n }", "public function isJson(){\n\t\t\n\t\treturn $this['request']['json'];\n\t\t\n\t}", "public function isJSON()\n {\n return isset($_SERVER['CONT...
[ "0.8129987", "0.8120368", "0.8093243", "0.7915585", "0.7902211", "0.78757536", "0.78375", "0.77246094", "0.76874", "0.7677085", "0.7469925", "0.743065", "0.7429612", "0.72422785", "0.7165114", "0.7027684", "0.69252205", "0.68939775", "0.6857359", "0.6857359", "0.6782393", "...
0.7839019
6
Generate an shop_asset path for the application.
function shop_asset($path, $secure = null) { $path = 'vendor/sunrise/laravel-wap-shop/' . $path; return app('url')->asset($path, $secure); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getAssetsPath() {\n return Yii::app()->assetManager->publish(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'assets');\n }", "public function functional_asset_path() {\n\n\t\t$log_path = WP_CONTENT_DIR . '/uploads/nginx-helper/';\n\n\t\treturn apply_filters( '...
[ "0.6387205", "0.6351781", "0.62962955", "0.6202298", "0.61916107", "0.6093497", "0.6089069", "0.60499847", "0.60439104", "0.59171784", "0.5914478", "0.58822405", "0.582918", "0.5805029", "0.5778988", "0.5775473", "0.5736072", "0.5722596", "0.5720527", "0.5709238", "0.57004327...
0.6779088
0
is a simple checksum formula used to validate a variety of identification numbers
private function verifyByLuhnAlgorithm($number){ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function calculateChecksum() {}", "public function calculateChecksum() {}", "function ean_checksum2($ean){\n $ean=(string)$ean;\n $even=true; $esum=0; $osum=0;\n for ($i=strlen($ean)-1;$i>=0;$i--){\n\tif ($even) $esum+=$ean[$i];\telse $osum+=$ean[$i];\n\t$even=!$even;\n }\n \n return (10-((3*$esum...
[ "0.75123715", "0.75123715", "0.7105643", "0.70976377", "0.7041343", "0.6958584", "0.6897897", "0.67599106", "0.6650287", "0.6634824", "0.65252453", "0.6513376", "0.6490912", "0.64551055", "0.642151", "0.6297981", "0.6272884", "0.62656474", "0.6232772", "0.6130845", "0.6112186...
0.6386734
15
Converts query entry to query.
public function getQuery();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function toQuery();", "public function query() {\n $this->field_alias = $this->real_field;\n if (isset($this->definition['trovequery'])) {\n $this->query->add_where('', $this->definition['trovequery']['arg'], $this->definition['trovequery']['value']);\n }\n }", "public static function par...
[ "0.6020657", "0.5705051", "0.53866863", "0.53828233", "0.53366524", "0.5314558", "0.53043824", "0.5262684", "0.5261943", "0.5250271", "0.5226067", "0.5226067", "0.52099454", "0.52002275", "0.5148248", "0.5147306", "0.51470685", "0.5107476", "0.51037675", "0.5099964", "0.50941...
0.0
-1
Decodes data in JSON format.
public function decode(string $json) { // max depth is 0+ for json_encode(), and 1+ for json_decode() $result = json_decode($json, $this->decodeObjectAsArray, $this->maxDepth + 1, $this->options); $this->checkLastError(); return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function decode($data) {\n return $this->encoder->decode($data->get('json_data'), \"json\");\n }", "protected function get_decoded_data() {\n return json_decode($this->get_data());\n }", "private function decode_data ( $data ) {\n $cleanedData = $this->security->xss_clean ( $d...
[ "0.79593325", "0.7648834", "0.7309458", "0.7107329", "0.7030947", "0.7030947", "0.7030947", "0.7030947", "0.7030947", "0.70048463", "0.700235", "0.6890588", "0.6737705", "0.67365205", "0.66814077", "0.6678059", "0.66742164", "0.6647703", "0.6641932", "0.6630736", "0.65989405"...
0.0
-1
Sets whether to decode objects as associative arrays. Defaults to `false`.
public function decodeObjectAsArray(bool $bool) : void { $this->decodeObjectAsArray = $bool; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function acf_is_associative_array($array)\n{\n}", "public function as_assoc();", "public function toAssociativeArray() {\n // TODO\n }", "public function toAssociativeArray() {\n // TODO\n }", "public function as_assoc()\n {\n $this->_as_object = false;\n\n ...
[ "0.597825", "0.58638114", "0.5831661", "0.5831661", "0.57627255", "0.5746595", "0.5720349", "0.56909347", "0.5568703", "0.5500757", "0.5433403", "0.54312265", "0.54312265", "0.54312265", "0.54312265", "0.54312265", "0.54312265", "0.5429051", "0.539046", "0.5358684", "0.534617...
0.62783515
0
Sets whether to decode large integers as strings. Defaults to `false`. `true` decodes large integers as strings `false` decodes large integers as floats
public function decodeBigIntAsString(bool $bool) : void { $this->setOption(JSON_BIGINT_AS_STRING, $bool); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function decodeInteger($integer);", "abstract public function decode(array $options = array());", "public function testDecodeIntegerOverflow()\n {\n $this->expectException(ParseException::class);\n $this->expectExceptionMessage('Invalid integer format or integer overflow');\n\n $value =...
[ "0.52045685", "0.49257323", "0.48524478", "0.4785425", "0.47731543", "0.47625807", "0.47625807", "0.47390553", "0.47157404", "0.47094858", "0.4672091", "0.4671966", "0.46702823", "0.4654155", "0.4602843", "0.46012262", "0.4599378", "0.4571371", "0.4551129", "0.45414078", "0.4...
0.6933729
0
Determine if the user is authorized to make this request.
public function authorize() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }", "public function authorize()\n {\n return $this->user() !== null;\n }"...
[ "0.8401071", "0.8377486", "0.8377486", "0.8344406", "0.8253731", "0.824795", "0.8213121", "0.8146598", "0.81115526", "0.8083369", "0.7991986", "0.79907674", "0.79836637", "0.79604936", "0.79516214", "0.79494005", "0.79265946", "0.7915068", "0.79001635", "0.7894822", "0.789145...
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'title' => 'required', 'description' => 'required', // 'image' => 'required', 'section_id' => 'required' ]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342797", "0.8013068", "0.79357624", "0.79257727", "0.7922943", "0.7903906", "0.7859204", "0.7789624", "0.7783409", "0.77624106", "0.773673", "0.7732383", "0.77094924", "0.7691624", "0.7684878", "0.7682184", "0.7682184", "0.7682184", "0.7682184", "0.7682184", "0.7682184", ...
0.0
-1