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
This function exports each event to the icalendar format and forces a download Returns true
public function icalExport($id, $title, $description, $start_date, $end_date, $url=false) { if($url == 'undefined') { $url = ''; } else { $url = ' '.$url.' '; } $description_fn = $str = str_replace(array("\r","\n","\t"),'\n',$description);; // Build the ics file $ical = 'BEGIN:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function mozilla_download_campaign_events() {\n\n\tif ( ! is_admin() && in_array( 'administrator', wp_get_current_user()->roles, true ) === false ) {\n\t\treturn;\n\t}\n\n\t// Verify nonce.\n\tif ( ! isset( $_GET['nonce'] ) || false === wp_verify_nonce( sanitize_key( $_GET['nonce'] ), 'campaign-events' ) ) {\n\t\t...
[ "0.6581337", "0.65460986", "0.63673466", "0.6256241", "0.6250318", "0.6149812", "0.6135858", "0.6053935", "0.60329455", "0.6017706", "0.59442353", "0.5802154", "0.57442814", "0.56070924", "0.5575394", "0.5562215", "0.5552921", "0.5531787", "0.5449217", "0.5443482", "0.5424301...
0.6173165
5
This function retrieves calendar data Returns true
public function retrieve($id) { // Result Query $this->result = mysqli_query($this->connection, sprintf("SELECT * FROM $this->table WHERE id = %s", mysqli_real_escape_string($this->connection, $id))); if($this->result) { return mysqli_fetch_assoc($this->result); } else { return false; } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCalendarInfo()\n\t{\n\t\t\n\t\t//get URL to calendar page\n\t\t$url = $this->calendarLink;\n\t\t//Get the sourcecode\t\t\t\n\t\t$data = $this->curl->curlGetReq($url);\n\t\t//find all links to each person\n\t\t$query = \"//a\";\n\t\t$aTagNodes = $this->curl-> getDOMData($data,$query);\n\t\t\n\t\t...
[ "0.71011025", "0.6593999", "0.65906405", "0.6588293", "0.6550207", "0.65201557", "0.6475698", "0.6470893", "0.6431748", "0.63457507", "0.6331", "0.62963253", "0.6257198", "0.62567097", "0.62389606", "0.6159057", "0.60557157", "0.60310537", "0.60021603", "0.59925425", "0.59898...
0.0
-1
Constructs a new GeneralEventSubscriber object.
public function __construct() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createSubscriber();", "public function getEventSubscriber();", "public function __construct()\n {\n $this->events = new ArrayCollection();\n }", "public function __construct(EventDispatcherInterface $event_dispatcher) {\n\t\t$this->eventDispatcher = $event_dispatcher;\n\t}", "p...
[ "0.58353597", "0.5488686", "0.54777646", "0.54487735", "0.54380906", "0.5422542", "0.5388065", "0.5376544", "0.53708184", "0.53708184", "0.53546166", "0.5348943", "0.5299938", "0.5298156", "0.5282339", "0.52574533", "0.52402323", "0.52395093", "0.5233231", "0.5229198", "0.522...
0.0
-1
This method is called whenever the kernel.request event is dispatched.
public function doSomeAction(GeneralEvent $event) { // Get data drupal_set_message("Hello World : ".$event->getData()); $event->display(); $event->setData("Tanim"); // Get data drupal_set_message("Hello World again : ".$event->getData()); $event->display(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function kernelRequest(Event $event) {\n // \\Drupal::messenger()->addMessage('Event kernel.request thrown by Subscriber in module crm_awareness.', 'status', TRUE);\n }", "public function onRequest(KernelEvent $event)\n {\n $request = $event->getRequest();\n\n $this->stats->increment('...
[ "0.74203134", "0.7122821", "0.71184224", "0.70738137", "0.7025354", "0.7024038", "0.6975729", "0.6923722", "0.69152594", "0.68004674", "0.67894024", "0.6745407", "0.6720824", "0.6689098", "0.667314", "0.6662801", "0.66474056", "0.66225344", "0.6615988", "0.66123664", "0.65910...
0.0
-1
Translates CSS into XPath.
public function translateToXPath($locator) { if (!is_string($locator)) { throw new \InvalidArgumentException('The CssSelector expects to get a string as locator'); } $converter = new CssSelectorConverter(); return $converter->toXPath($locator); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function css2xpath($selector) {\r\n $selector_chunks = preg_split('/(?<!\\\\\\\\)\\s+/',$selector);\r\n $xpath_parts = array();\r\n foreach ($selector_chunks as $selector_chunk) {\r\n $selector_chunk = str_replace(',',' | //',$selector_chunk);\r\n # .class or #id (witho...
[ "0.722892", "0.6824658", "0.63888854", "0.62482035", "0.60923976", "0.5782222", "0.5629267", "0.5501703", "0.54797405", "0.54495203", "0.5244321", "0.52401775", "0.52350646", "0.5220085", "0.51993245", "0.5194798", "0.5166293", "0.50849533", "0.50797945", "0.50581247", "0.502...
0.586151
5
Display the specified resource.
public function index() { $todayPurchases=Purchase::whereDate('created_at', Carbon::today())->get(); $todaySells=Sell::whereDate('created_at', Carbon::today())->get(); return view('backend.dashboard.list',compact('todayPurchases','todaySells',)); }
{ "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
Display a listing of the resource.
public function index() { return Order::paginate(5); }
{ "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) { $this->validate($request,[ 'user_id'=>'required|exists:users,id', 'url'=>'nullable', 'product_id'=>'nullable|exists:products,id', 'delivery_date'=>'nullable', 'observation'=>'nullable' ]); $...
{ "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 Order::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) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { $this->validate($request,[ 'delivery_date'=>'nullable', 'observation'=>'nullable', 'status'=>'required|numeric' ]); $order = Order::find($id); $order->delivery_date = $request->input('delivery_date');...
{ "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) { $order = Order::find($id); $order->delete(); return response()->json(['status'=>true,'message'=>'Order successfully deleted','data'=>$order]); }
{ "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
show list of support ticket.
public function list() { $search = $this->input->get('all'); $status = $this->input->get('status'); $subject = $this->input->get('subject'); $order_new_message = $this->input->get('orderby'); $start = $this->input->get('start'); $length = $this->input->get('length'); $order = $this->input->get('order')[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function showTicketList()\n {\n $settings = Utils::getPersonalizedSettings($this->db);\n\n /*$user_id = $settings->enable_issues_created_by_me ? \n $settings->enable_issues_created_by_me :\n null;*/\n\n $param = array(\n 'user_id' => null,\n...
[ "0.77148557", "0.7486297", "0.73884565", "0.719795", "0.7174549", "0.7161791", "0.7054608", "0.70388305", "0.6990831", "0.6990831", "0.6990831", "0.6888967", "0.68311644", "0.67703485", "0.6736935", "0.6699577", "0.66964424", "0.66819096", "0.65624666", "0.65505373", "0.65500...
0.57480675
100
Change of support status "Active" or "Inactive"
public function change_support_status() { $support_id = $this->input->post('support_id'); $status = $this->input->post('status'); if($status == '1') { $status = '0'; }else{ $status = '1'; } $check = $this->crud->readData('support_id', 'support', array('support_id' => $support_id))->row_array(); i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_status();", "public function changeStatus()\n {\n }", "public function update_status()\n\t{\n\t\t$product_id = $this->input->post('product_id');\n\t\t$data = array('is_active' => $this->input->post('is_active'));\n\n\t\t$update = $this->products->update($product_id, $data);\n...
[ "0.6899651", "0.67604905", "0.66055274", "0.65746623", "0.65743214", "0.6554073", "0.6549192", "0.6450051", "0.64468056", "0.64077216", "0.6403157", "0.64026207", "0.6388788", "0.63466585", "0.6328455", "0.6310523", "0.6304346", "0.6302047", "0.62940884", "0.6284199", "0.6261...
0.70875853
0
Get reply modal content.
public function reply_modal() { $support_id = $this->input->post('support_id'); $data['support'] = $this->crud->readData('support.*, ', 'support', array('support_id' => $support_id),array())->row(); if(!empty($data['support'])) { $this->crud->updateData('support', array('is_new' => 1), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getModalContentBody()\n {\n $templateFileName = $this->getTemplateFile(\n 'Magento_PageBuilder::system/config/enable_field/modal_content_body.phtml'\n );\n\n return $this->fetchView($templateFileName);\n }", "function reply_content() {\n\tglobal $reply;\n\tr...
[ "0.7078273", "0.7041656", "0.6798865", "0.6631579", "0.657842", "0.65100986", "0.64817226", "0.6317518", "0.62810564", "0.6188799", "0.59307534", "0.59247816", "0.5888631", "0.5883036", "0.58692724", "0.5855755", "0.58387107", "0.5837274", "0.58166844", "0.5800107", "0.577179...
0.6022909
10
Reply to user by admin for open ticket.
public function reply() { if($this->form_validation->run('support_reply') === TRUE){ $support_id = $this->input->post('support_id'); $support = $this->crud->readData('support.*, ', 'support', array('support_id' => $support_id, 'status'=>1),array())->row(); if(empty($support)){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function wpscstReplyTicket() {\r\n global $current_user, $wpdb, $wpscSupportTickets;\r\n\r\n $devOptions = get_option(\"wpscSupportTicketsAdminOptions\");\r\n\r\n if (session_id() == \"\") {@session_start();};\r\n \r\n $is_an_admin_reply = false;\r\n\r\n if ( current_user_can('manage_wpsct_suppor...
[ "0.6484297", "0.6369256", "0.61528015", "0.5883872", "0.5872411", "0.58678937", "0.5809161", "0.5794101", "0.57347566", "0.57107645", "0.5683808", "0.56710976", "0.5633277", "0.5597513", "0.5595352", "0.5579982", "0.55794317", "0.5556452", "0.5550395", "0.5461393", "0.5436390...
0.53634197
37
get all navigation list by user id
public function getCountry() { try { $countries = CountryModel::get(); if(count($countries) > 0 ) $this->arrOutputData = $countries->toArray(); $intCode = Response::HTTP_OK; $strStatus = Response::$statusTexts[$intCode]; $strMessage = "OK"; return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getNavList($id)\n {\n $result = $this->app->DB->SelectArr(\"SELECT id, bezeichnung, bezeichnung_en, plugin, pluginparameter FROM shopnavigation WHERE parent=$id ORDER BY position\");\n foreach($result as $row){\n if($_SESSION['language']==\"en\") $bezeichnung = $row[\"bezeichnung_en\"]; else $...
[ "0.6735824", "0.6695779", "0.665307", "0.6589808", "0.65418136", "0.6450118", "0.6269849", "0.62559", "0.6228422", "0.6216239", "0.6181462", "0.6081785", "0.60037416", "0.6000656", "0.5981074", "0.59567785", "0.5893768", "0.58918756", "0.5869315", "0.5866398", "0.5851322", ...
0.0
-1
Function to send the reset passowrd link
public function sendResetPasswordLink(Request $request) { $intCode = Response::HTTP_NOT_FOUND; DB::beginTransaction(); try { $arrInput = $request->all(); $validator = Validator::make($arrInput, [ 'user_id' => 'required', ]); //check for validation ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendResetLink()\n {\n return $this->authService->sendPasswordResetLink(request()->input('email'));\n }", "function reset() {\n $this->wait();\n $viewret = $this->view();\n if($viewret == ''){\n return '';\n }\n //print $viewret.'<br>';\n ...
[ "0.7560574", "0.72121066", "0.71752656", "0.71688014", "0.71056616", "0.7083779", "0.7004348", "0.69691896", "0.69652706", "0.6869938", "0.68315375", "0.68219936", "0.6821198", "0.67872614", "0.67833716", "0.6773429", "0.67415506", "0.67028725", "0.66996944", "0.66967267", "0...
0.62925273
62
Function to reset the passowrd
public function resetPasswordRandom(Request $request) { $intCode = Response::HTTP_NOT_FOUND; $strStatus = Response::$statusTexts[$intCode]; $strMessage = "Something went wrong"; $arrOutputData = []; DB::beginTransaction(); try { $arrInput = $request->all(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_reset() {\n\n\t\tforeach($_POST as $key => $value){\n\t\t\tif((empty($value)) || (!$value) || (trim($value) == \"\") ){\n\t\t\t\t# Send them back to the login page\n\t\t\t\tRouter::redirect(\"/users/resetp/error\");\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t# Encrypt the password \n\t\t$_POST['password'] = s...
[ "0.70453155", "0.69919175", "0.69230074", "0.6883066", "0.6859035", "0.68589175", "0.6842821", "0.6791746", "0.6781446", "0.66822755", "0.6553418", "0.654132", "0.65290195", "0.65092534", "0.65085024", "0.6481047", "0.64545023", "0.64537406", "0.64519405", "0.6444821", "0.643...
0.0
-1
Function to reset the passowrd
public function resetPasswordByUser(Request $request) { $linkexpire = Config::get('constants.settings.linkexpire'); $intCode = Response::HTTP_BAD_REQUEST; DB::beginTransaction(); try { $arrInput = $request->all(); $arrMesssage = array( 'resettoken...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_reset() {\n\n\t\tforeach($_POST as $key => $value){\n\t\t\tif((empty($value)) || (!$value) || (trim($value) == \"\") ){\n\t\t\t\t# Send them back to the login page\n\t\t\t\tRouter::redirect(\"/users/resetp/error\");\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t# Encrypt the password \n\t\t$_POST['password'] = s...
[ "0.70453155", "0.69919175", "0.69230074", "0.6883066", "0.6859035", "0.68589175", "0.6842821", "0.6791746", "0.6781446", "0.66822755", "0.6553418", "0.654132", "0.65290195", "0.65092534", "0.65085024", "0.6481047", "0.64545023", "0.64537406", "0.64519405", "0.6444821", "0.643...
0.0
-1
Same as GetInventoryRequestFromOrder, but takes an order instead of an order id because in this scenario the order has not been saved yet.
public function execute(OrderInterface $order, array $requestItems): InventoryRequestInterface { $store = $this->storeManager->getStore($order->getStoreId()); $stock = $this->stockByWebsiteIdResolver->execute((int)$store->getWebsiteId()); $inventoryRequest = $this->inventoryRequestFactory->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getOrderItemRequest($order_id, $order_item_id)\n {\n // verify the required parameter 'order_id' is set\n if ($order_id === null) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $order_id when calling getOrderItem'\n ...
[ "0.6379038", "0.6123651", "0.58719796", "0.5861781", "0.5769552", "0.5767393", "0.5734697", "0.57249296", "0.5682758", "0.5615355", "0.55528337", "0.5546558", "0.55333215", "0.5515874", "0.54521513", "0.54434115", "0.5431882", "0.5403727", "0.5393102", "0.5393102", "0.5393102...
0.69458234
0
Create an address from an order
private function getAddressFromOrder(OrderInterface $order): ?AddressInterface { /** @var Address|null $shippingAddress */ $shippingAddress = $order->getShippingAddress(); if ($shippingAddress === null) { return null; } $region = $shippingAddress->getRegion() ===...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function getBillingAddress(array $order) {\n\n $address = array('address_book_id' => '',\n 'address_type' => 'bill',\n 'lastname' => $order['payment_lastname'],\n 'firstname' => $order['payment_firstname'],\n 'telephone' => $order['telephone'],\n ...
[ "0.7019301", "0.6902442", "0.6900675", "0.6790144", "0.668082", "0.6680139", "0.6593517", "0.6586189", "0.6566316", "0.6561159", "0.6544765", "0.6529932", "0.64988583", "0.6431571", "0.639301", "0.63531625", "0.63201207", "0.63076574", "0.621392", "0.6177371", "0.61326873", ...
0.6387313
15
Retourne la date avec la method >ago() Attribut : created_at
public function getCreatedAtAttribute($value) { return Date::parse($value)->ago(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTimeagoAttribute()\n\t{\n\t \t//$date = \\Carbon\\Carbon::createFromTimeStamp(strtotime($this->created_at))->diffForHumans();\n\n\t\tsetLocale(LC_TIME, 'Dutch');\n\t\t$date = Str::title($this->created_at->formatLocalized('%A %d %B %Y'));\n\n\t\treturn $date;\n\t}", "public function getDateAgo...
[ "0.7138978", "0.70996505", "0.69261926", "0.69261926", "0.6825132", "0.67564416", "0.6640944", "0.66181093", "0.6605557", "0.6605557", "0.6605557", "0.65466654", "0.6532427", "0.65139633", "0.64928555", "0.64928555", "0.6450287", "0.6450287", "0.6450287", "0.6450287", "0.6447...
0.67620474
5
Get the route key for the model.
public function getRouteKeyName() { return 'slug'; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRouteKey();", "public function getRouteKey();", "public function getRouteKey()\n {\n return $this->getAttribute($this->getRouteKeyName());\n }", "public function getRouteKey()\n {\n $slug = $this->slugField();\n\n return $this->$slug;\n }", "public functi...
[ "0.8337987", "0.8337987", "0.83334595", "0.8222846", "0.81179494", "0.8051136", "0.8051136", "0.78780574", "0.7855956", "0.7827925", "0.7806142", "0.7806142", "0.776334", "0.7720968", "0.7720968", "0.76632315", "0.76015264", "0.7569464", "0.7546984", "0.75191367", "0.75191367...
0.0
-1
Global variable for instance of Helpers
public function __construct() { $this->helper = new Helpers; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "public function getHelper()\n {\n }", "function helper(){\n // vde(Application::$helpers);\n foreach(func_get_args() as $helper)\n Application::$helpers->load($helper);\n // System::include_helper($helper);\n}", "public function get_app_script_h...
[ "0.74412096", "0.7223453", "0.688738", "0.6752653", "0.66440743", "0.6632808", "0.6629321", "0.66175544", "0.66028875", "0.64772516", "0.6397805", "0.6347579", "0.6345358", "0.6324378", "0.6294168", "0.62571734", "0.6193489", "0.6183346", "0.6183346", "0.61778986", "0.6171294...
0.6600512
12
Load Datatable for car Type
public function index(CarTypeDataTable $dataTable) { return $dataTable->render('admin.car_type.view'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function vehicle_type_datatable()\n\t\t{\n\t\t\t$list = $this->Vehicle_types->get_datatables();\n\t\t\t$data = array();\n\t\t\t$no = $_POST['start'];\n\t\t\t\n\t\t\tforeach ($list as $type) {\n\t\t\t\t$no++;\n\t\t\t\t$row = array();\n\t\t\t\t\n\t\t\t\t$row[] = '<div class=\"checkbox checkbox-primary pull-le...
[ "0.63674843", "0.60897183", "0.60765964", "0.604926", "0.5968728", "0.5926485", "0.5912403", "0.58885884", "0.58869547", "0.58661807", "0.5841627", "0.58214515", "0.57908726", "0.5785213", "0.57784694", "0.5774378", "0.5728509", "0.56949806", "0.56900156", "0.5665039", "0.566...
0.5511625
35
Add a New car Type
public function add(Request $request) { if(!$_POST) { $data['currency'] = Currency::codeSelect(); return view('admin.car_type.add', $data); } else if($request->submit) { // add car Type Validation Rules $rules = array( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addType($type);", "public function AddType($type) {\n $this->Types[] = $type;\n }", "function add_new_car(){\n }", "public function addMealType(){\n \t$id = $this->formValueForKey(\"mealTypeSelection\");\n \t\n \t$foundMealType = BLGenericRecord::recordMat...
[ "0.7399913", "0.6943997", "0.6550305", "0.6515944", "0.6415979", "0.64075035", "0.63153404", "0.6275732", "0.6260943", "0.6251364", "0.62326807", "0.6183176", "0.6181527", "0.6152221", "0.6105041", "0.6105041", "0.6105041", "0.6105041", "0.6105041", "0.6105041", "0.6105041", ...
0.0
-1
Update car Type Details
public function update(Request $request) { if(!$_POST) { $data['result'] = CarType::find($request->id); if($data['result']) { $data['currency'] = Currency::codeSelect(); return view('admin.car_type.edit', $data); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update($id) {\n //\n $car = $this->car->find($id);\n $car->make = Input::get('make');\n $car->model = Input::get('model');\n $car->registration_num = Input::get('registration_num');\n $car->mileage = Input::get('mileage');\n $car->location_id = Input...
[ "0.70294523", "0.645863", "0.63913524", "0.62216574", "0.61502844", "0.60782886", "0.60641414", "0.60627025", "0.60476637", "0.60476637", "0.6043263", "0.5975036", "0.59562373", "0.593038", "0.59282196", "0.59223896", "0.5917692", "0.58721834", "0.5845904", "0.58440006", "0.5...
0.61180174
5
Test that a GET request to /api/v3/groups returns an index of all group types.
public function testGroupTypeIndex() { $groupType = factory(GroupType::class)->create(); $groupNames = [ 'Batman Begins', 'Bipartisan', 'Brave New World', 'If I Never Knew You', 'San Dimas High School', 'Santa Claus', ];...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testIndexSurveyGroup()\n {\n SurveyGroup::factory()->create();\n\n $response = $this->json('GET', 'survey-group', [ 'survey_id' => 1]);\n $response->assertStatus(200);\n $this->assertCount(1, $response->json()['survey_group']);\n }", "public function retrieveGrou...
[ "0.7065929", "0.70122474", "0.69632614", "0.6889158", "0.6619172", "0.65793806", "0.656742", "0.65663224", "0.64721227", "0.64693934", "0.63997555", "0.63990784", "0.6363454", "0.633578", "0.632823", "0.63267523", "0.6314072", "0.6314072", "0.6282486", "0.61796093", "0.616601...
0.83885187
0
Test that a GET request to /api/v3/groups/:id returns the intended group type.
public function testGroupShow() { factory(Group::class, 5)->create(); // Create a specific group type to search for. $group = factory(Group::class)->create(); $response = $this->getJson('api/v3/groups/' . $group->id); $decodedResponse = $response->decodeResponseJson(); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testGroupTypeIndex()\n {\n $groupType = factory(GroupType::class)->create();\n $groupNames = [\n 'Batman Begins',\n 'Bipartisan',\n 'Brave New World',\n 'If I Never Knew You',\n 'San Dimas High School',\n 'Santa Clau...
[ "0.7119118", "0.6262377", "0.6208988", "0.6183744", "0.6143639", "0.60826683", "0.5996789", "0.592049", "0.5879053", "0.5852516", "0.5851302", "0.5813478", "0.5765282", "0.57357025", "0.5735214", "0.5711499", "0.5708045", "0.57007754", "0.5700645", "0.5681998", "0.56705654", ...
0.7539361
0
Get Dimension Iterator. Returns yielded value of \Magento\Framework\Indexer\Dimension
public function getIterator(): \Traversable;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDimension()\n {\n return $this->m_dimension;\n }", "function getDimensiones() {\n return $this->dimensiones;\n }", "public function getDimensionValues() {\n\t\treturn $this->dimensionValues;\n\t}", "public function getDimensions()\n {\n return $this->dimensi...
[ "0.6993152", "0.68433297", "0.6687145", "0.66590613", "0.6615716", "0.65758693", "0.65754175", "0.6410731", "0.6410731", "0.6328123", "0.6270346", "0.62381876", "0.6175697", "0.61700577", "0.6142712", "0.59454083", "0.5688509", "0.5676233", "0.5628207", "0.5585484", "0.554142...
0.0
-1
Constructor injects with DI container.
public function __construct(DIInterface $di, $posts, $post) { parent::__construct($di); $this->posts = $posts; $this->post = $post; $this->form->create( [ "id" => __CLASS__, "legend" => "Nytt inlägg" ], [ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n {\n $this->initializeSingleton();\n\n $this->container = new Container();\n\n $this->loadServices($this->container);\n }", "public function __construct()\n {\n // Dependencies automatically resolved by service container...\n }", "public fu...
[ "0.8381703", "0.79221326", "0.7920531", "0.79193985", "0.7750164", "0.774978", "0.77294093", "0.7719843", "0.7719843", "0.77072555", "0.76716495", "0.7655208", "0.76332486", "0.76279676", "0.7621189", "0.75731814", "0.75731814", "0.7566626", "0.7551493", "0.7531698", "0.75231...
0.0
-1
Callback for submitbutton which should return true if it could carry out its work and false if something failed.
public function callbackSubmit() { $subject = $this->form->value("subject"); $text = $this->form->value("text"); $tags = \preg_split('/[^\w]+/u', $this->form->value("tags")); $user = $this->di->get('user'); if ($this->post->authorId != $user->id && !$user->isLevel(UserLevel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function has_submit() {\n\t\treturn false;\n\t}", "public function callbackSubmit()\n {\n // Get values from the submitted form\n $text = $this->form->value(\"text\");\n\n if (!$this->di->get('session')->has(\"user\")) {\n $this->form->addOutput(\"Du behöver logga in\");...
[ "0.7385937", "0.6992123", "0.67844945", "0.67704105", "0.6735455", "0.67147654", "0.66795534", "0.6659425", "0.65880734", "0.6580627", "0.65261424", "0.6502209", "0.63878804", "0.6372571", "0.6261744", "0.62502605", "0.6248507", "0.620942", "0.620049", "0.61714935", "0.617006...
0.66654533
7
variables defined inside a function are local varaibles
function display(){ //never available in any language outside of the function $data = 20; echo("inside function Data is $data<br>"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function localVariable(){\n $a=15; //variable have to call inside of function\n echo $a;\n }", "function myTest2() {\n $y = 5; // local scope\n //echo \"<p>Variable y inside function is: $y</p>\";\n}", "function p(){\r\n\t//print_r($GLOBALS);\r\n\t$GLOBALS[\"a\"]=99;\r\n}", "function ...
[ "0.72429174", "0.6951951", "0.68801594", "0.646694", "0.63831073", "0.62059355", "0.61125034", "0.6094921", "0.60409397", "0.6039829", "0.60034776", "0.59634787", "0.595724", "0.5954155", "0.58010834", "0.57815605", "0.5781248", "0.5753782", "0.569062", "0.5680105", "0.561704...
0.4930842
93
Returns a shop page tree for the provided shop id.
public function getTree($shopId, $activeId) { $query = $this->getQuery($shopId); /** @var \PDOStatement $statement */ $statement = $query->execute(); $data = $statement->fetchAll(\PDO::FETCH_ASSOC); $menu = []; $links = []; foreach ($data as $site) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function create_tree($id,$select_root=false)\n\t{\n\t\trequire_lang('catalogues');\n\t\trequire_code('catalogues');\n\t\trequire_code('catalogues2');\n\n\t\t$name=$GLOBALS['SITE_DB']->query_value_null_ok('catalogue_categories','c_name',array('id'=>intval($id)));\n\n\t\t$pagelinks=get_catalogue_entries_tree($name,N...
[ "0.59948486", "0.57054496", "0.56205416", "0.5605812", "0.55774486", "0.5573227", "0.55603373", "0.5489561", "0.5476082", "0.54613745", "0.54456663", "0.5389796", "0.5364335", "0.5350877", "0.5341145", "0.53261054", "0.5309993", "0.5292475", "0.5288988", "0.52605766", "0.5251...
0.70085615
0
Checks if the provided menu contains already an entry for the provided site. If the provided site contains a mapping but the existing not, override the existing.
public function overrideExisting($menu, $key, $site) { return !empty($site['mapping']) && empty($menu[$key][0]['mapping']); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function amap_ma_check_if_map_menu_item($pluginname = null) {\n $maponmenu = trim(elgg_get_plugin_setting('maponmenu', $pluginname));\n if ($maponmenu === AMAP_MA_GENERAL_NO) {\n return false;\n }\n\n return true;\n}", "function bwsocial_maybe_has_menu( $args ) {\n\t\n\t// Check theme location...
[ "0.5592419", "0.55862105", "0.52133524", "0.5202112", "0.51521707", "0.50988966", "0.50951415", "0.50947547", "0.49818698", "0.49626768", "0.4960533", "0.49022618", "0.48806477", "0.48656315", "0.4865538", "0.48467898", "0.48449963", "0.47967693", "0.4777822", "0.47376022", "...
0.83390856
0
/ Init Form Function
public function init() { $this ->setAttribs(array( 'id' => 'filter_form', 'class' => 'global_form_box', 'style' => 'margin-bottom: 15px', 'method' => 'GET', )); //Text filter element $this->addElement('Text', 'search', array( 'label' => 'Search', )); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract function setupform();", "protected function initializeForm()\n {\n $this->form = new Form();\n $this->form->add(Element::create(\"FieldSet\",\"Report Format\")->add\n (\n Element::create(\"SelectionList\", \"File Format\", \"report_format\")\n ...
[ "0.81648314", "0.76193744", "0.7514939", "0.73476493", "0.72734684", "0.72596025", "0.7254341", "0.72518975", "0.7245789", "0.7227712", "0.72048545", "0.7196992", "0.71846384", "0.71741474", "0.7165248", "0.715889", "0.7155005", "0.7155005", "0.71358776", "0.7120371", "0.7118...
0.0
-1
Set toStatusNode. Provides a fluent interface.
public function setToStatusNode($value) { if (is_array($value)) { $value = new Carerix_Api_Rest_Entity_CRDataNode($value); } $this->toStatusNode = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setToNode(int $toNode): void {\n $this->toNode = $toNode;\n }", "function setStatus($inStatus) {\n\t\tif ( $inStatus !== $this->_Status ) {\n\t\t\t$this->_Status = $inStatus;\n\t\t\t$this->setModified();\n\t\t}\n\t\treturn $this;\n\t}", "public function setStatus(\\Dhl\\DataTypes\\Sta...
[ "0.5850999", "0.56363076", "0.5565451", "0.5497151", "0.5476659", "0.54601157", "0.5436845", "0.5430931", "0.5411277", "0.5397924", "0.5397924", "0.5397924", "0.5397924", "0.5397924", "0.5397924", "0.5397924", "0.5397924", "0.5397924", "0.53955996", "0.5392949", "0.5392949", ...
0.7095938
0
Set owner. Provides a fluent interface.
public function setOwner($value) { if (is_array($value)) { $value = new Carerix_Api_Rest_Entity_CRUser($value); } $this->owner = $value; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setOwner($owner) {\n\t\t$this->owner = $owner;\n\t}", "public function setOwner($owner) {\n\t\t$this->owner = $owner;\n\t}", "protected function setOwner($owner) {\r\n $this->owner = $this->create($owner);\r\n }", "function set_owner($owner)\n {\n $this->set_default_property(sel...
[ "0.85405165", "0.85405165", "0.8494596", "0.8388965", "0.7970405", "0.7929165", "0.78340584", "0.76226264", "0.75690395", "0.7545877", "0.75220704", "0.75220704", "0.75045514", "0.738666", "0.7341173", "0.69857645", "0.6898992", "0.6865203", "0.68310285", "0.68310285", "0.677...
0.70368683
15
Set users. Provides a fluent interface.
public function setUsers($values) { if (is_array($values)) { $values = new Carerix_Api_Rest_Collection($values, 'Carerix_Api_Rest_Entity_CRUser'); } $this->users = $values; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setUsers($users) {\n if (is_array($users)) {\n $users = implode(',', $users);\n }\n $this->users = $users;\n }", "protected function setUsers()\n {\n $this->users = new Users;\n $this->users->read();\n \n $this->data['users'] = $this->use...
[ "0.77227104", "0.7686088", "0.7556437", "0.73343295", "0.7254243", "0.71945846", "0.70487046", "0.7024779", "0.68048763", "0.6782246", "0.64843917", "0.629806", "0.6254473", "0.62379384", "0.618983", "0.61819524", "0.6164832", "0.6150325", "0.6150325", "0.61278856", "0.610824...
0.69570285
8
Compile SQL query to string.
function compile_sql_query(string $sql, array $bindings = []): string { $string = function ($string) { return '"'.str_replace('\\', '\\\\\\', (string) $string).'"'; }; foreach ($bindings as $binding) { // TODO: need to review all cases. switch (gettype($b...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function compile()\n {\n // 如果不是通过query执行的SQL,下面执行拼凑\n if ( empty($this->_sql)) \n {\n switch ($this->_type) \n {\n case db::SELECT:\n $this->_sql = $this->get_compiled_select();\n break;\n case...
[ "0.7490199", "0.71296406", "0.70593846", "0.6946641", "0.6889991", "0.68269163", "0.6814454", "0.67706144", "0.6747727", "0.6715124", "0.6659103", "0.66080207", "0.66020167", "0.6589977", "0.65709126", "0.65527517", "0.65272546", "0.6523507", "0.6503626", "0.64874196", "0.647...
0.7427334
1
Search the entire database.
function search_entire_database(string $find = ''): array { long_processes(); $results = []; $find = trim($find); if ($find === '') { return $results; } foreach (get_all_tables() as $table => $columns) { $query = DB::table($table); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function search(){}", "public function search();", "public function search();", "public function search()\n\t{\n\t\t\n\t}", "function search() {}", "function search()\n\t{}", "function search()\n\t{}", "public function queryAll();", "public function queryAll();", "public function queryAll(...
[ "0.69439495", "0.69255507", "0.69255507", "0.6649997", "0.659066", "0.6481166", "0.6481166", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", "0.6452336", ...
0.6393324
33
Adds a meta element to this view
public function addMeta(Meta $meta) { $this->meta[$meta->getName()] = $meta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addMeta() {\n foreach ($this->meta_info as $key => $meta) {\n $this->header.=\"<meta name='\" . $key . \"' content='\" . $meta . \"' /> \\n\";\n }\n }", "public function add_meta() {\n\t\techo \"\\n<meta data-plugin='a04_vertical_button' name='description' content=...
[ "0.7476044", "0.7396785", "0.7015766", "0.6928528", "0.68637645", "0.6859567", "0.6857608", "0.68487847", "0.68419904", "0.66743463", "0.66321707", "0.66318357", "0.6622988", "0.6616436", "0.6588643", "0.6567823", "0.65428126", "0.65345305", "0.64568186", "0.64463603", "0.644...
0.7227377
2
Gets the meta elements of this view
public function getMeta() { return $this->meta; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMeta();", "public function getMeta();", "public function getAllMeta()\n {\n return $this->meta;\n }", "public function getAllMeta()\n {\n return $this->meta;\n }", "public function getAllMeta() {\n return $this->meta;\n }", "public function getMetas()\n {\n...
[ "0.7888706", "0.7888706", "0.77914083", "0.7761544", "0.77297145", "0.77080387", "0.7600897", "0.7573752", "0.7484516", "0.747313", "0.74513257", "0.74434257", "0.7427415", "0.7427415", "0.7427415", "0.7427415", "0.7427415", "0.7379784", "0.73271304", "0.72901565", "0.7290156...
0.73758966
18
Add a inline javascript to this view
public function addInlineJavascript($script) { $this->inlineScripts[] = $script; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inline_js(){\n\n $this->render_js_vars();\n $js = file_get_contents(Helper::asset('client.js'));\n echo view('@AgreablePollPlugin/scripts.twig', [\n 'js_path' => Helper::asset('client.js'),\n 'js' => $js,\n ])->getBody();\n\n }", "public function injectJavascriptInV...
[ "0.73141223", "0.7228329", "0.7070994", "0.7029202", "0.7029202", "0.7029202", "0.69683343", "0.6927276", "0.6925", "0.6920953", "0.6793971", "0.6705043", "0.6701025", "0.6693179", "0.6669142", "0.6652153", "0.65704083", "0.65702343", "0.656078", "0.6550917", "0.6533128", "...
0.7056962
3
Get all the inline javascripts
public function getInlineJavascripts() { return $this->inlineScripts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJavaScripts();", "function media_theplatform_mpx_extract_all_js_inline($text) {\n $pattern = '/<script type\\=\\\"text\\/javascript\\\">(.*)<\\/script>/sU';\n preg_match_all($pattern, $text, $results);\n return $results[1];\n}", "public function getJavaScript() {}", "public function get...
[ "0.8323536", "0.7530434", "0.74513024", "0.72842747", "0.72279704", "0.71992034", "0.7174526", "0.71152717", "0.7101066", "0.70772254", "0.7072605", "0.7057949", "0.7017535", "0.6950267", "0.6937455", "0.68861836", "0.68314904", "0.68314755", "0.6830743", "0.6772545", "0.6766...
0.81287163
1
Add a javascript file to this view
public function addJavascript($file) { $this->scripts[$file] = $file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function ft_hook_add_js_file() {}", "public function add_js()\n\t{\n $args = func_get_args();\n foreach ( $args as $a ){\n if ( is_array($a) ){\n $data = $a;\n }\n else if ( is_string($a) ){\n $path = $a;\n }\n }\n if ( $r = $this->get_view(isset($path) ? $path : '',...
[ "0.78889", "0.75003594", "0.74805003", "0.7475663", "0.7395979", "0.73524535", "0.73080766", "0.73066115", "0.7276018", "0.7261991", "0.72474957", "0.7208052", "0.71724313", "0.7127518", "0.70106804", "0.7006104", "0.69307965", "0.6894975", "0.6887075", "0.6872101", "0.686196...
0.74685884
4
Get all the javascript files which are added to this view
public function getJavascripts() { return $this->scripts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_js_files()\n\t{\n\t\treturn $this->_js_files;\n\t}", "public function getJavascripts()\n {\n return array('/sfAssetsLibraryPlugin/js/main');\n }", "public function getJavaScripts();", "public function getJsFiles(): array\n {\n return $this->jsFiles;\n }", "public funct...
[ "0.79039705", "0.7790087", "0.7682491", "0.7637337", "0.7578021", "0.7541806", "0.7541325", "0.7507057", "0.7499605", "0.7453854", "0.7452601", "0.744658", "0.73386174", "0.73339075", "0.7325738", "0.7320446", "0.7241742", "0.71600795", "0.7141238", "0.7106122", "0.71018505",...
0.7629441
4
Remove a javascript file from this view
public function removeJavascript($file) { if (array_key_exists($file, $this->scripts)) { unset($this->scripts[$file]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeJavascript($file)\n {\n foreach ($this->getPositions() as $position)\n {\n unset($this->javascripts[$position][$file]);\n }\n }", "public function clearJavascripts()\n {\n foreach (array_keys($this->getJavascripts()) as $file)\n {\n $this->removeJavascript($file)...
[ "0.72234607", "0.6756457", "0.6645512", "0.63508743", "0.6339649", "0.6266325", "0.6000096", "0.5898586", "0.58851576", "0.58738893", "0.58722836", "0.58315843", "0.5804636", "0.5802033", "0.57701564", "0.57516664", "0.57277054", "0.5715704", "0.56961524", "0.56732684", "0.56...
0.7454065
0
Add a stylesheet file to this view
public function addStyle($file) { $this->styles[$file] = $file; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addStyleSheet($filePath) {\n $this->addToHead(\"<link rel=\\\"stylesheet\\\" href=\\\"\" . $filePath . \"\\\">\",\n Page::BOTTOM);\n }", "public function kiwip_stylesheet_add_file(){\n\t\t//register\n\t\tforeach($this->stylesheet as $key){\n\t\t\twp_register_style...
[ "0.74209785", "0.72146225", "0.67023665", "0.6606587", "0.6573182", "0.6565232", "0.6473815", "0.64718086", "0.63902175", "0.637433", "0.63452125", "0.6313398", "0.62525654", "0.6245409", "0.6227686", "0.62266123", "0.61867744", "0.6143693", "0.6140403", "0.6130965", "0.61239...
0.67250293
2
Get all the stylesheets which are added to this view
public function getStyles() { return $this->styles; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStyleSheets()\n {\n return $this->style_sheets;\n }", "function stylesheets() {\n $sheets = func_get_args();\n foreach($this->included_stylesheets as $name) $sheets[] = $name;\n return $this->context->stylesheet_links($sheets, $this->base_url().\"/stylesheets\");\n }", ...
[ "0.79530716", "0.76995593", "0.766699", "0.75939727", "0.7563336", "0.7419461", "0.74059296", "0.73964816", "0.7307007", "0.7290116", "0.72896236", "0.7287423", "0.72728515", "0.7216102", "0.71730214", "0.71503013", "0.7139887", "0.7135396", "0.7132574", "0.7116486", "0.71164...
0.68329865
36
Remove a stylesheet file from this view
public function removeStyle($file) { if (array_key_exists($file, $this->styles)) { unset($this->styles[$file]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete_stylesheet() {\n\t\t\t$css_file = $this->get_stylesheet();\n\t\t\tThemify_Filesystem::delete($css_file,'f');\n\t\t}", "public function removeStylesheet($file)\n {\n foreach ($this->getPositions() as $position)\n {\n unset($this->stylesheets[$position][$file]);\n }\n }", "functio...
[ "0.78082615", "0.73216236", "0.64740735", "0.6325558", "0.6304247", "0.63040656", "0.6276455", "0.61651343", "0.5964465", "0.59176934", "0.58843887", "0.57730395", "0.5752965", "0.57093364", "0.5691754", "0.56581485", "0.55812144", "0.5563267", "0.55349743", "0.5534532", "0.5...
0.70674926
2
Adds a piece of custom code for the head tag
public function addCustomCodeToHead($code) { $this->custom[] = $code; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_head_tag($tag)\n {\n $this->addHeadTag($tag);\n }", "function _h_add_custom_head_code() {\n echo get_option('h')['head_code'] ?? '';\n}", "public function add_head_marker() {\n\t\tglobal $wpUnited;\n\n\t\tif ($wpUnited->should_do_action('template-p-in-w') && (!PHPBB_CSS_FIRST)) {\n\t...
[ "0.7707688", "0.7655451", "0.72746676", "0.72465837", "0.7195105", "0.71850556", "0.717264", "0.7102131", "0.7080974", "0.70320994", "0.70233697", "0.7000502", "0.6971196", "0.694274", "0.6868145", "0.68008083", "0.6794638", "0.6778345", "0.6777739", "0.6758531", "0.67447233"...
0.7612502
2
Gets the pieces of custom code for the head tag
public function getCustomCodesForHead() { return $this->custom; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCustomHead() {\n return $this->_customHead;\n }", "function _h_add_custom_head_code() {\n echo get_option('h')['head_code'] ?? '';\n}", "function getHead() {\n\n $out = \"\";\n\n if ($this->meta_keywords) array_push($this->head, \"<meta name='keywords' content='{$this->meta_key...
[ "0.7698249", "0.7626888", "0.75008774", "0.7122702", "0.70747894", "0.7063835", "0.7018029", "0.6981523", "0.6964483", "0.69207364", "0.69128877", "0.68438053", "0.6839279", "0.68197775", "0.6790572", "0.67722774", "0.67722", "0.6757545", "0.67555445", "0.67346793", "0.672159...
0.7640648
1
Get the [case_uid] column value.
public function getCase_uid () { return $this->case_uid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_uid() {\n return $this->uid;\n }", "public function setCaseUid ($v)\n {\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (str...
[ "0.6281907", "0.62128747", "0.6191387", "0.61763954", "0.61763954", "0.61763954", "0.61763954", "0.61763954", "0.61763954", "0.6023335", "0.6023335", "0.5984115", "0.5977857", "0.59668976", "0.59668976", "0.59668976", "0.59668976", "0.59668976", "0.59668976", "0.59668976", "0...
0.83036083
0
Get the [id] column value.
public function getId () { return $this->id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn $v;\n\t}", "public function getId()\n\t{\n\t\t$column = self::COL_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (int)$v;\n\t\t}\n\n\t\treturn...
[ "0.8124387", "0.8124387", "0.7807448", "0.77355236", "0.772773", "0.763521", "0.7627111", "0.7618089", "0.7600506", "0.7553076", "0.7553076", "0.7530178", "0.7521293", "0.7520758", "0.75193983", "0.7497871", "0.7497871", "0.7486324", "0.74741113", "0.74741113", "0.7470637", ...
0.0
-1
Get the [app_uid] column value.
public function getAppUid () { return $this->app_uid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppUserId()\n {\n return $this->app_user_id;\n }", "public function getUserAppId()\n {\n return $this->user_app_id;\n }", "public function getUserId()\n\t{\n\t\t$column = self::COL_USER_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n...
[ "0.7681637", "0.68066365", "0.66009223", "0.66009223", "0.6503696", "0.6484153", "0.64565176", "0.6415891", "0.63976866", "0.6384268", "0.6375671", "0.635245", "0.635245", "0.635245", "0.635245", "0.635245", "0.635245", "0.6339589", "0.63087255", "0.6285383", "0.626478", "0...
0.79731596
0
Get the [del_index] column value.
public function getDelIndex () { return $this->del_index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDelIndex ($v)\n {\n // Since the native PHP type for this column is integer,\n // we will cast the input value to an int (if it is not).\n if ( $v !== null && !is_int ($v) && is_numeric ($v) )\n {\n $v = (int) $v;\n }\n if ( $this->del_inde...
[ "0.59909946", "0.5870489", "0.584753", "0.58252597", "0.58107185", "0.57142854", "0.56934345", "0.5625359", "0.5587772", "0.5506588", "0.54999703", "0.54920256", "0.5480029", "0.5450725", "0.54296905", "0.5419103", "0.54144347", "0.53947496", "0.53926545", "0.53926545", "0.53...
0.80787337
0
Get the [evn_uid] column value.
public function getEvnUid () { return $this->evn_uid; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUid() {\n return $this->get(self::UID);\n }", "public function getUid()\n {\n return $this->get(self::_UID);\n }", "public function getUid()\n {\n return $this->get(self::_UID);\n }", "public function getUid()\n {\n return $this->get(self::_UID...
[ "0.6568922", "0.651729", "0.651729", "0.651729", "0.651729", "0.651729", "0.651729", "0.6484795", "0.6461455", "0.6407591", "0.63988197", "0.6390153", "0.6368955", "0.6331113", "0.6321651", "0.63206303", "0.6320483", "0.632005", "0.632005", "0.632005", "0.632005", "0.631015...
0.7831955
0
Get the [optionally formatted] [app_evn_action_date] column value.
public function getAppEvnActionDate ($format = 'Y-m-d H:i:s') { if ( $this->app_evn_action_date === null || $this->app_evn_action_date === '' ) { return null; } elseif ( !is_int ($this->app_evn_action_date) ) { // a non-timestamp value was set external...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDateAction()\n\t{\n\t\treturn $this->dateAction;\n\t}", "public function setAppEvnActionDate ($v)\n {\n if ( $v !== null && !is_int ($v) )\n {\n $ts = strtotime ($v);\n //Date/time accepts null values\n if ( $v == '' )\n {\n ...
[ "0.6286818", "0.5773076", "0.56508654", "0.558286", "0.5560865", "0.55394167", "0.54542255", "0.5442508", "0.5433608", "0.5426284", "0.53575766", "0.5348453", "0.5333821", "0.53226584", "0.528872", "0.5282773", "0.52699447", "0.5249944", "0.5215744", "0.5203047", "0.519241", ...
0.6711454
0
Get the [app_evn_attempts] column value.
public function getAppEvnAttempts () { return $this->app_evn_attempts; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAppEvnAttempts ($v)\n {\n // Since the native PHP type for this column is integer,\n // we will cast the input value to an int (if it is not).\n if ( $v !== null && !is_int ($v) && is_numeric ($v) )\n {\n $v = (int) $v;\n }\n if ( $this->ap...
[ "0.6687987", "0.62998056", "0.6176414", "0.60767376", "0.60691804", "0.596933", "0.57716227", "0.56938535", "0.5674804", "0.56743336", "0.5590824", "0.5514374", "0.5507334", "0.5506413", "0.5492737", "0.5467823", "0.5457487", "0.5457114", "0.54447395", "0.54197896", "0.539825...
0.7980467
0
Get the [optionally formatted] [app_evn_last_execution_date] column value.
public function getAppEvnLastExecutionDate ($format = 'Y-m-d H:i:s') { if ( $this->app_evn_last_execution_date === null || $this->app_evn_last_execution_date === '' ) { return null; } elseif ( !is_int ($this->app_evn_last_execution_date) ) { // a non-t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getLastUpdateDatetime()\n {\n return $this->getValue('nb_icontact_prospect_last_update_datetime');\n }", "public function setAppEvnLastExecutionDate ($v)\n {\n if ( $v !== null && !is_int ($v) )\n {\n $ts = strtotime ($v);\n //Date/time accepts ...
[ "0.6083278", "0.5851053", "0.5808749", "0.56616837", "0.5584473", "0.5540644", "0.55307204", "0.5478757", "0.5451792", "0.5434653", "0.54306495", "0.53928006", "0.5359116", "0.5357998", "0.5347031", "0.5335617", "0.5307907", "0.5300346", "0.527414", "0.5251725", "0.52462876",...
0.6801601
0
Get the [app_evn_status] column value.
public function getAppEvnStatus () { return $this->app_evn_status; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStatus()\n\t\t{\n\t\t\t$status_id = $this->getStatusId();\n\t\t\t$asf = ECash::getFactory()->getReferenceList('ApplicationStatusFlat');\n\t\t\treturn $asf[$status_id];\n\t\t}", "public function setAppEvnStatus ($v)\n {\n // Since the native PHP type for this column is string,\n ...
[ "0.66413623", "0.6483983", "0.6400258", "0.626199", "0.61968076", "0.61120486", "0.6045009", "0.6000894", "0.59772646", "0.5966695", "0.5959991", "0.5950345", "0.5948258", "0.58743495", "0.58743495", "0.5851034", "0.58104134", "0.5799983", "0.57974786", "0.579051", "0.5789855...
0.8097862
0
Set the value of [app_uid] column.
public function setCaseUid ($v) { // Since the native PHP type for this column is string, // we will cast the input to a string (if it is not). if ( $v !== null && !is_string ($v) ) { $v = (string) $v; } if ( $this->case_uid !== $v || $v === '' ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAppUid ($v)\n {\n // Since the native PHP type for this column is string,\n // we will cast the input to a string (if it is not).\n if ( $v !== null && !is_string ($v) )\n {\n $v = (string) $v;\n }\n if ( $this->app_uid !== $v || $v === '' ...
[ "0.7911667", "0.6675318", "0.64028573", "0.61868995", "0.61354494", "0.6119592", "0.608567", "0.6005248", "0.5950398", "0.593859", "0.592064", "0.5909506", "0.59078777", "0.58962154", "0.5844759", "0.5836973", "0.5827482", "0.58266824", "0.5810793", "0.58075434", "0.58004", ...
0.5475747
51
Set the value of [app_uid] column.
public function setAppUid ($v) { // Since the native PHP type for this column is string, // we will cast the input to a string (if it is not). if ( $v !== null && !is_string ($v) ) { $v = (string) $v; } if ( $this->app_uid !== $v || $v === '' ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppUid ()\n {\n return $this->app_uid;\n }", "function setAppId($value)\n {\n $this->_props['AppId'] = $value;\n }", "public function set_uid($uid) {\n $this->uid = intval($uid);\n }", "public function getAppUserId()\n {\n return $this->app_user_id;\n ...
[ "0.6675318", "0.64028573", "0.61868995", "0.61354494", "0.6119592", "0.608567", "0.6005248", "0.5950398", "0.593859", "0.592064", "0.5909506", "0.59078777", "0.58962154", "0.5844759", "0.5836973", "0.5827482", "0.58266824", "0.5810793", "0.58075434", "0.58004", "0.5788791", ...
0.7911667
0
Set the value of [id] column.
public function setId ($v) { // Since the native PHP type for this column is integer, // we will cast the input value to an int (if it is not). if ( $v !== null && !is_int ($v) && is_numeric ($v) ) { $v = (int) $v; } if ( $this->id !== $v || $v === 0 ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function SetId($value) { $this->id=$value; }", "function setId($id) {\n\t\t$this->setData('id', $id);\n\t}", "public function SetId ($id);", "public function setId($id) {\n\t\t$this->id = (integer)$id;\n\t}", "private function setID($id) {\r\n\t\t$this->id = $id;\r\n\t}", "public function set_id( $id ) {...
[ "0.83708084", "0.81784374", "0.801446", "0.80073005", "0.7993056", "0.7965045", "0.7955535", "0.7953402", "0.7953283", "0.79352796", "0.793431", "0.7911952", "0.7905024", "0.78914374", "0.7879729", "0.7879729", "0.7876738", "0.7873571", "0.7872085", "0.78674203", "0.7867088",...
0.0
-1
Set the value of [del_index] column.
public function setDelIndex ($v) { // Since the native PHP type for this column is integer, // we will cast the input value to an int (if it is not). if ( $v !== null && !is_int ($v) && is_numeric ($v) ) { $v = (int) $v; } if ( $this->del_index !== $v || $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDelIndex ()\n {\n return $this->del_index;\n }", "public function dropIndex(): void;", "public function index_delete(){\n\t\t\n\t\t}", "function delete() {\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex =...
[ "0.6923502", "0.5982549", "0.5653151", "0.56495184", "0.56306607", "0.5611624", "0.55323356", "0.5515733", "0.5350494", "0.5272477", "0.52657866", "0.52362776", "0.51560026", "0.513075", "0.51267976", "0.5109978", "0.5104935", "0.508618", "0.5074032", "0.5051254", "0.50377476...
0.7473858
0
Set the value of [evn_uid] column.
public function setEvnUid ($v) { // Since the native PHP type for this column is string, // we will cast the input to a string (if it is not). if ( $v !== null && !is_string ($v) ) { $v = (string) $v; } if ( $this->evn_uid !== $v || $v === '' ) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_uid($uid) {\n $this->uid = intval($uid);\n }", "public function getEvnUid ()\n {\n return $this->evn_uid;\n }", "public function setUid(?string $uid): void\n {\n $this->uid['value'] = $uid;\n }", "public function setUid($uid);", "public function setCa...
[ "0.6724891", "0.65444225", "0.64442366", "0.6417814", "0.63301086", "0.62907016", "0.6241204", "0.6201708", "0.58835083", "0.58509815", "0.57947946", "0.57536495", "0.57536495", "0.57536495", "0.57536495", "0.57536495", "0.5750449", "0.57131606", "0.56642115", "0.5604832", "0...
0.79374015
0
Set the value of [app_evn_action_date] column.
public function setAppEvnActionDate ($v) { if ( $v !== null && !is_int ($v) ) { $ts = strtotime ($v); //Date/time accepts null values if ( $v == '' ) { $ts = null; } if ( $ts === -1 || $ts === false ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set_approved_date( $date ) {\n\t\t$this->set_prop( 'approved_date', $date ) ;\n\t}", "function setDateConfirmed($dateConfirmed) {\n\t\t$this->setData('dateConfirmed', $dateConfirmed);\n\t}", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setAppEvnLastEx...
[ "0.597596", "0.5876854", "0.5790782", "0.5709033", "0.5695033", "0.5660291", "0.5646161", "0.56354254", "0.56354254", "0.56084716", "0.5583073", "0.555792", "0.55329835", "0.55320424", "0.55165297", "0.5504279", "0.5502888", "0.544593", "0.5434708", "0.5429582", "0.54061484",...
0.7321438
0
Set the value of [app_evn_attempts] column.
public function setAppEvnAttempts ($v) { // Since the native PHP type for this column is integer, // we will cast the input value to an int (if it is not). if ( $v !== null && !is_int ($v) && is_numeric ($v) ) { $v = (int) $v; } if ( $this->app_evn_attempt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppEvnAttempts ()\n {\n return $this->app_evn_attempts;\n }", "public static function setNumberAttemptAllowed($nbAttempts){\n Configuration::where('id', 1)\n ->update(['number_attempt_allowed' => $nbAttempts]);\n }", "public function setAttempts($attempts) {...
[ "0.6841666", "0.5882498", "0.56658363", "0.5624586", "0.5402455", "0.5292575", "0.52580136", "0.51963264", "0.51921105", "0.5154462", "0.5153997", "0.51408875", "0.5090778", "0.50449646", "0.5024387", "0.49810103", "0.4947562", "0.49304426", "0.49194297", "0.4916018", "0.4893...
0.8138296
0
Set the value of [app_evn_last_execution_date] column.
public function setAppEvnLastExecutionDate ($v) { if ( $v !== null && !is_int ($v) ) { $ts = strtotime ($v); //Date/time accepts null values if ( $v == '' ) { $ts = null; } if ( $ts === -1 || $ts === false ) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setExecUpdateOnSave()\n {\n Configuration::updateValue('DF_UPDATE_ON_SAVE_LAST_EXEC', date('Y-m-d H:i:s'));\n }", "private function setLastUpdateDate( $date ) {\n Mage::getModel('core/config')->saveConfig('taxjar/config/last_update', $date);\n }", "public function set_last_paym...
[ "0.6258152", "0.5887838", "0.5440468", "0.5415056", "0.53982145", "0.53982145", "0.53367174", "0.5326514", "0.5304831", "0.5194009", "0.51885235", "0.51610875", "0.5157939", "0.51489913", "0.5135166", "0.5075836", "0.5044691", "0.50416535", "0.5040968", "0.500442", "0.4992624...
0.73747253
0
Set the value of [app_evn_status] column.
public function setAppEvnStatus ($v) { // Since the native PHP type for this column is string, // we will cast the input to a string (if it is not). if ( $v !== null && !is_string ($v) ) { $v = (string) $v; } if ( $this->app_evn_status !== $v || $v === 'OP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAppEvnStatus ()\n {\n return $this->app_evn_status;\n }", "public function setAppEvnAttempts ($v)\n {\n // Since the native PHP type for this column is integer,\n // we will cast the input value to an int (if it is not).\n if ( $v !== null && !is_int ($v) &...
[ "0.6810365", "0.62235457", "0.55110246", "0.5349153", "0.52273935", "0.5194796", "0.51861584", "0.51784617", "0.5086171", "0.508066", "0.50325924", "0.500517", "0.49678373", "0.4960664", "0.49433064", "0.49218237", "0.49185506", "0.49183473", "0.48998293", "0.48750058", "0.48...
0.8090609
0
Removes this object from datastore and sets delete attribute.
public function delete () { try { } catch (Exception $e) { throw $e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete()\n {\n persistableCollection::getInstance($this->resourceName)->deleteObject($this);\n }", "public function delete() {\r\n\t\t$this->getMapper()->delete($this);\r\n\t}", "public function deleteObject(){\n $qry = new DeleteEntityQuery($this);\n $this->getContex...
[ "0.7421696", "0.7121954", "0.7028182", "0.69343674", "0.682837", "0.68191266", "0.67467564", "0.67236525", "0.6648866", "0.64793926", "0.64615566", "0.6452498", "0.6446481", "0.64312124", "0.6410985", "0.6363036", "0.6355807", "0.6351563", "0.6339578", "0.6328758", "0.6319670...
0.0
-1
Stores the object in the database. If the object is new, it inserts it; otherwise an update is performed. This method wraps the doSave() worker method in a transaction.
public function save () { if ( $this->objMysql === null ) { $this->getConnection (); } try { if ( trim ($this->id) === "" ) { $this->objMysql->_insert ("workflow.APP_EVENT", [ 'APP_UID' => $this->app_uid, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store()\n {\n if (!$this->id) { // Insert\n $this->insertObject();\n } else { // Update\n $this->updateObject();\n }\n }", "public function store()\n {\n if( $this->isPersistent() )\n {\n $this->update();\n }\n ...
[ "0.72829974", "0.71142626", "0.69308805", "0.6889922", "0.68813497", "0.68620616", "0.67516905", "0.67391557", "0.6734537", "0.66250575", "0.65920484", "0.6550174", "0.6545704", "0.6525423", "0.6513051", "0.6477599", "0.64655304", "0.6442183", "0.6436824", "0.6412583", "0.639...
0.0
-1
Gets any ValidationFailed objects that resulted from last call to validate().
public function getValidationFailures () { return $this->validationFailures; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFailedValidators() {\n return $this->failedValidators;\n }", "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "public function getValidationFailures()\n\t{\n\t\treturn $this->validationFailures;\n\t}", "public function getValidationFailu...
[ "0.7626338", "0.7609587", "0.7609587", "0.7609587", "0.7609587", "0.7609587", "0.7609587", "0.7609587", "0.7609587", "0.7609587", "0.7609587", "0.76089877", "0.76089877", "0.76089877", "0.76089877", "0.76089877", "0.76089877", "0.76089877", "0.76089877", "0.76089877", "0.7608...
0.76035434
22
Validates the objects modified field values and all objects related to this table. If $columns is either a column name or an array of column names only those columns are validated.
public function validate () { $errorCount = 0; foreach ($this->arrayFieldDefinition as $fieldName => $arrField) { if ( $arrField['required'] === true ) { $accessor = $this->arrayFieldDefinition[$fieldName]['accessor']; if ( trim ($this->$access...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function validateColumns($columns) {\n\t\tif(is_object($columns)) {\n\t\t\tforeach($columns as $key => $val) {\n\t\t\t\tif(!is_string($val)) {\n\t\t\t\t\t$display = is_object($val) ? \"Object\" : \"$val\";\n\t\t\t\t\t$this->error(\"Expected a string description for column '$key', but got '$display'\");\n\t...
[ "0.68045676", "0.6746162", "0.6619875", "0.6584438", "0.65286416", "0.6470638", "0.645594", "0.6387298", "0.637272", "0.633569", "0.63316464", "0.63256836", "0.6325543", "0.6324869", "0.6318684", "0.6285085", "0.6253675", "0.62441295", "0.61508244", "0.61480737", "0.61015135"...
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.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Show the application dashboard.
public function landingFrontend() { return view('welcome'); }
{ "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
Checks the given error and performs the appropriate action based on whether it is an exemptable policy violation error.
private static function handleApiError( ApiError $apiError, $operationIndex, AdGroupAdOperation $operation ) { $isExemptableError = false; $policyViolationError = null; $expandedTextAd = $operation->getOperand()->getAd(); if ($apiError instanceof PolicyViolat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function error()\n {\n if ($error = static::$errorHandler) {\n admin_exit($error());\n }\n\n if (Helper::isAjaxRequest()) {\n abort(403, trans('admin.deny'));\n }\n\n admin_exit(\n Content::make()->withError(trans('admin.deny'))\n...
[ "0.60364276", "0.59688574", "0.57066256", "0.56906223", "0.55574155", "0.55488783", "0.552629", "0.5423934", "0.53613764", "0.5340949", "0.53058547", "0.53057426", "0.52850455", "0.5276642", "0.5238648", "0.52270603", "0.5217559", "0.52163756", "0.5183115", "0.515193", "0.514...
0.50885385
25
Generate a refreshable OAuth2 credential for authentication.
public static function main() { $oAuth2Credential = (new OAuth2TokenBuilder())->fromFile()->build(); // Construct an API session configured from a properties file and the // OAuth2 credentials above. // Partial failure behavior is also enabled in this example. $session = (ne...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function generateCredentials()\n {\n $key = $this->engine->config->get('roamtechapi.client_id');\n $secret = $this->engine->config->get('roamtechapi.client_secret');\n\n return [\n 'client_id' => $key,\n 'client_secret' => $secret,\n 'grant_type' => ...
[ "0.6612721", "0.6342794", "0.6247465", "0.6215174", "0.6096525", "0.60894436", "0.6012938", "0.60109615", "0.5994655", "0.59920985", "0.59594643", "0.5872086", "0.58474797", "0.5802247", "0.57926214", "0.5772155", "0.5734425", "0.5726165", "0.5723949", "0.5699175", "0.5683818...
0.0
-1
Array of property to type mappings. Used for (de)serialization
public static function openAPITypes() { return self::$openAPITypes; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypes()\n {\n $types = PropertyType::all();\n $values = [];\n foreach ($types as $key) {\n $values[] = $key->id;\n }\n return $values;\n }", "public function getTypes(): array\n {\n return $this->types;\n }", "public static fun...
[ "0.6779591", "0.6607671", "0.6598399", "0.65871716", "0.65820396", "0.6517233", "0.6510976", "0.6476572", "0.6432348", "0.6432348", "0.6432348", "0.6400341", "0.62290716", "0.6181703", "0.6181703", "0.6134249", "0.61259305", "0.6116482", "0.6116482", "0.61130923", "0.6104262"...
0.0
-1
Array of property to format mappings. Used for (de)serialization
public static function openAPIFormats() { return self::$openAPIFormats; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormats()\n {\n\t $format_field = $this->getValue('format');\n\t return wed_decodeJSON($format_field,true);\n }", "public function provideSetFormat()\n {\n return [\n 'json' => [\n 'format' => 'json',\n ],\n 'html' => [\n...
[ "0.6250112", "0.6181188", "0.612938", "0.60935354", "0.6042571", "0.60404164", "0.5926467", "0.5917114", "0.59049124", "0.5883796", "0.5882191", "0.58203566", "0.5803534", "0.5791693", "0.579118", "0.57909596", "0.5773587", "0.57419014", "0.5726583", "0.57192504", "0.5709573"...
0.0
-1
Array of attributes where the key is the local name, and the value is the original name
public static function attributeMap() { return self::$attributeMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function changedAttributesName(): array\n {\n $changedAttributes = [];\n $attributes = $this->toArray();\n foreach ($attributes as $key => $value) {\n if (isset($this->originals[$key]) && $value !== $this->originals[$key] && ! ((is_array($this->originals[$key]) || is_objec...
[ "0.73336", "0.68268436", "0.65760714", "0.65756506", "0.65030116", "0.6489458", "0.64807576", "0.6445652", "0.64143735", "0.63852084", "0.6381065", "0.6349757", "0.62795633", "0.6254031", "0.6254031", "0.6254031", "0.6254031", "0.62487864", "0.6192782", "0.61687446", "0.61621...
0.0
-1
Array of attributes to setter functions (for deserialization of responses)
public static function setters() { return self::$setters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setAttributes();", "public static function setters();", "public static function setters()\n {\n return [\n 'status' => 'setStatus',\n 'quota' => 'setQuota'\n ];\n }", "public function setAttributes(array $attributes);", "public function setAttribute...
[ "0.680262", "0.66679907", "0.6505545", "0.64688873", "0.64688873", "0.64688873", "0.64303744", "0.63683504", "0.63627255", "0.63459826", "0.63396704", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", "0.61683947", ...
0.0
-1
Array of attributes to getter functions (for serialization of requests)
public static function getters() { return self::$getters; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAttributes(): array\n {\n // Get all attributes using all the getters.\n $attributes = [];\n foreach(\\array_keys(\\get_object_vars($this)) as $attribute) {\n\n // Construct the getter name.\n $getter = \\lcfirst(\\str_replace('_', '', \\ucwords($att...
[ "0.7071254", "0.6628055", "0.6581621", "0.65085584", "0.65085584", "0.65085584", "0.65085584", "0.6499994", "0.64624524", "0.63637143", "0.6363414", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6315606", "0.6287656...
0.0
-1
The original name of the model.
public function getModelName() { return self::$openAPIModelName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOriginalName(): string\n {\n return $this->originalName;\n }", "public function getOriginalName(): string\n {\n\t\treturn $this->originalName;\n\t}", "public function getOriginalName();", "protected function getModelName()\n {\n $fullyQualifiedClassName = substr(s...
[ "0.8051171", "0.80107665", "0.7829159", "0.763725", "0.7625556", "0.7594126", "0.75220734", "0.75203615", "0.7520026", "0.74983907", "0.74457127", "0.7406896", "0.7395408", "0.7392189", "0.7380455", "0.73451596", "0.7309523", "0.7268473", "0.72646457", "0.7194995", "0.7167137...
0.0
-1
Show all the invalid properties with reasons.
public function listInvalidProperties() { $invalidProperties = []; return $invalidProperties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listInvalidProperties();", "public function listInvalidProperties()\n {\n $invalid_properties = parent::listInvalidProperties();\n\n return $invalid_properties;\n }", "public function listInvalidProperties() {\n\n $invalidProperties = [];\n\n /*\n * Any needed vali...
[ "0.7954126", "0.7814029", "0.7804116", "0.780055", "0.780055", "0.780055", "0.7795368", "0.77933925", "0.7785144", "0.7781625", "0.7781625", "0.77577174", "0.77577174", "0.77577174", "0.77577174", "0.77577174", "0.77577174", "0.7743693", "0.7742531", "0.77358544", "0.77358544...
0.763543
68
Validate all the properties in the model return true if all passed
public function valid() { return count($this->listInvalidProperties()) === 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate(){\n\t\t$valid = true;\n\t\t$ref = new ReflectionObject($this);\n\t\tforeach($ref->getProperties() as $prop){\n\t\t\tif(isset($this->_atributosMetadata[$prop->getName()])){\n\t\t\t\t$propMetadata = $this->_atributosMetadata[$prop->getName()];\n\t\t\t\tif($propMetadata->needValidate){\n\t\t...
[ "0.76944476", "0.7569596", "0.72817", "0.7234517", "0.7229663", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0.72219133", "0...
0.72507316
58
Returns true if offset exists. False otherwise.
public function offsetExists($offset) { return isset($this->container[$offset]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function offsetExists($offset): bool\n {\n return false;\n }", "public function hasOffset(){\n return $this->_has(1);\n }", "public function offsetExists($offset): bool;", "public function offsetExists($offset) {\n\t\t$result = false;\n\t\t\n\t\tif($this->_data[$offset]) {\n\t\t\t...
[ "0.8555834", "0.8536144", "0.84876734", "0.8325894", "0.8322583", "0.8300258", "0.821515", "0.81559885", "0.8143132", "0.8143132", "0.81348807", "0.81315136", "0.8130816", "0.8128181", "0.8118165", "0.81153667", "0.81060076", "0.8103301", "0.80874085", "0.80874085", "0.808201...
0.0
-1
Sets value based on offset.
public function offsetSet($offset, $value) { if (is_null($offset)) { $this->container[] = $value; } else { $this->container[$offset] = $value; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function set($offset, $value);", "public function set($offset, $value = null);", "function setOffset($value) {\n $this->offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $this->$offset = $value;\n }", "public function offsetSet($offset, $value)\n {\n $th...
[ "0.8670502", "0.84270954", "0.821386", "0.8191476", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "0.8170767", "...
0.0
-1
Gets the string presentation of the object
public function __toString() { return json_encode( ObjectSerializer::sanitizeForSerialization($this), JSON_PRETTY_PRINT ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}", "public function __toString() {\r\n\t\treturn $this->getPrint();\r\n\t}", "public function __toString() {\n\t\treturn $this->getPrint();\n\t}", "public function visualize()\n {\n \n return new StringWrapper('object('.$this->name(...
[ "0.78987753", "0.78987753", "0.78655267", "0.78240114", "0.7798868", "0.77837336", "0.77770287", "0.77690274", "0.77437395", "0.774057", "0.7733258", "0.7733258", "0.7733258", "0.7695146", "0.767794", "0.76635754", "0.76593804", "0.7630339", "0.76228136", "0.7610629", "0.7575...
0.0
-1
Customize the AZ Menu Search Query
function bb_customize_search_query ($query) { //$search_query = get_search_query(); // $meta_query = array( // array( // 'key' => 'editorial_style_definition', // 'value' => $search_query, // 'compare' => 'EXISTS' // ) // ); // Change the query parameters $query->s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _admin_search_query()\n {\n }", "public function search() {\n\t\t\tif (!empty($this->params['form']['query'])) {\n\t\t\t\t/* Get query */\n\t\t\t\t$query = Sanitize::escape($this->params['form']['query']);\n\t\t\t\n\t\t\t\t/* Get list of menu items filtered by query */\n\t\t\t\t$this->menuList = $...
[ "0.73103476", "0.6581206", "0.6565144", "0.65553755", "0.65425044", "0.6492736", "0.6479893", "0.6446495", "0.6411975", "0.6386118", "0.6304073", "0.62547296", "0.62332165", "0.61864233", "0.6155455", "0.61301756", "0.6113232", "0.6107137", "0.6099933", "0.60969055", "0.60805...
0.6569493
2
Run the database seeds.
public function run() { $teams = [ [ 'name' => 'Bevers', 'color' => 'red', ], [ 'name' => 'Welpen', 'color' => 'green', ], [ 'name' => 'Scouts', 'color' => 'orange', ], ...
{ "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
function __construct(array $servers, $retryDelay = 200, $retryCount = 3)
private function init(array $servers, $retryDelay = 200, $retryCount = 3) { $this->servers = $servers; $this->retryDelay = $retryDelay; $this->retryCount = $retryCount; $this->quorum = min(count($servers), (count($servers) / 2 + 1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct( $expiration = 3600 , array $servers )\n {\n $this->expiration = $expiration;\n\n foreach ($servers as $server)\n {\n $this->addserver( $server['host'] , $server['port']);\n }\n }", "public function __construct($servers = array())\n {\n ...
[ "0.70891106", "0.69684064", "0.68493754", "0.6552165", "0.6202517", "0.60619444", "0.601613", "0.58374655", "0.57273734", "0.57067716", "0.569852", "0.56865174", "0.56838316", "0.56604207", "0.56526023", "0.5569968", "0.5551987", "0.5534655", "0.5497464", "0.54514134", "0.544...
0.8327319
0
major holidays stock market is closed
function holidays () { $year = date("Y"); $p = date("N", strtotime("February 1, $year")) == 1 ? 'second' : 'third'; $easter = date("Y-m-d", easter_date($year)); $holday_descriptions = array( "January 1, $year", "January $year third Monday", "February $year $p Monday", "$easter - 2 days", "last Monday of ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_market_open ($date = NULL) {\n\t$date = $date ? $date : date('Y-m-d');\n\t\n\tif (date('N', strtotime($date)) == 6 || date('N', strtotime($date)) == 7) return FALSE;\n\n\tif (in_array($date, holidays())) return FALSE;\n\n\treturn TRUE;\n}", "public function isHoliday($date);", "public function getF...
[ "0.7540457", "0.68710005", "0.67568904", "0.66284907", "0.64751077", "0.63751566", "0.6349594", "0.63373524", "0.6130362", "0.6056824", "0.6007123", "0.59731513", "0.59731513", "0.5969112", "0.5918646", "0.5877866", "0.5862192", "0.5852467", "0.58164096", "0.5810485", "0.5793...
0.6111188
9
checks to see if stock market is open
function is_market_open ($date = NULL) { $date = $date ? $date : date('Y-m-d'); if (date('N', strtotime($date)) == 6 || date('N', strtotime($date)) == 7) return FALSE; if (in_array($date, holidays())) return FALSE; return TRUE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function inStock()\n {\n return $this->stockCount() > 0;\n }", "function is_in_stock() {\n\t\tif ($this->managing_stock()) :\n\t\t\tif (!$this->backorders_allowed()) :\n\t\t\t\tif ($this->stock==0 || $this->stock<0) :\n\t\t\t\t\treturn false;\n\t\t\t\telse :\n\t\t\t\t\tif ($this->data['stock_...
[ "0.71096724", "0.7091222", "0.6928047", "0.6633232", "0.6559893", "0.64291185", "0.6428357", "0.6421766", "0.64021784", "0.64021784", "0.64021784", "0.6343794", "0.63416123", "0.6259178", "0.6259178", "0.6237074", "0.62145877", "0.6213627", "0.6213418", "0.61888605", "0.61735...
0.7446101
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() { $arrayV = [ 'firstname' => 'required', 'lastname' => 'required', 'email' => 'email|required', 'region' => 'required', //'message' => 'required', 'post' => 'required', ]; if ('developer' == $thi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Retrieves the instance of the Dispatcher
public static function getInstance() { if (!is_null(self::$INSTANCE)) { return self::$INSTANCE; } $page = self::getPage(PhpBB::getInstance()->getRequest()); self::$INSTANCE = self::getDispatcherType($page); self::$INSTANCE->page = $page; self::$INSTANCE->controller = AController::getInstance($page); r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get() {\n\t\tstatic $singleton = NULL;\n\t\tis_null($singleton) && $singleton = new Dispatcher();\n\t\treturn $singleton;\n\t}", "protected function getDispatcher()\n {\n return $this->di->getShared('dispatcher');\n }", "public function getDispatcher() {\n return $thi...
[ "0.86186916", "0.85422665", "0.8116255", "0.79093355", "0.7761843", "0.7604902", "0.75404483", "0.7510182", "0.750087", "0.74935853", "0.73192215", "0.7276865", "0.7229206", "0.7153247", "0.7135323", "0.71182585", "0.71047336", "0.702295", "0.68422544", "0.6775233", "0.677364...
0.7549345
6