query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
b3e60fb14c1060b79aea096060e52184
Returns the static model of the specified AR class.
[ { "docid": "42b5c838d92fc6430769ae648eea0d9e", "score": "0.0", "text": "public static function model($className=__CLASS__){\n\t\treturn parent::model($className);\n\t}", "title": "" } ]
[ { "docid": "b0057b95cf2481a9838c948c81d83bc7", "score": "0.72562826", "text": "public function as(string $class): Model\n {\n return $class::findOrFail($this->getKey());\n }", "title": "" }, { "docid": "073363dc113f71889d87b7e22db515e1", "score": "0.7241839", "text": "pu...
65e840c8f1b6d4da4d81597c187f6307
Get all data for a given id
[ { "docid": "352374bbfe0e280e8085d89e6f2b3bef", "score": "0.0", "text": "public static function getComment($id)\n {\n return (array)BackendModel::getContainer()->get('database')->getRecord('SELECT i.*, UNIX_TIMESTAMP(i.created_on) AS created_on,\n\t\t\t p.id AS product_id, p.title AS product_ti...
[ { "docid": "2a056fd9dfc7d1c7371c289e24a3021f", "score": "0.8203524", "text": "public function getData($id=null)\n {\n if($id !== null) {\n return $this->model->find($id);\n }\n return $this->model::all();\n }", "title": "" }, { "docid": "15d41566ca726fc2...
644d9059aada2185f5beaf4b925da6e0
Method to check whether this connector is enabled or not
[ { "docid": "8161a420c701a930112b9b904ed9a707", "score": "0.67880636", "text": "public function isEnabled()\n\t{\n\t\treturn $this->checkComponent('com_akeebasubs');\n\t}", "title": "" } ]
[ { "docid": "145b46a0473db5323c6f8134a8996e30", "score": "0.7731778", "text": "public function isConnectEnabled()\n {\n return craft()->charge_connect->getConnectEnabledStatus();\n }", "title": "" }, { "docid": "d5221e144a4f43462a5cc8010be3936a", "score": "0.7309763", "te...
d44768dc39112d55ad6be4f4262a68a5
The function checks if the product exists in $items and return the position in $items or 1 if the product doesn't exist.
[ { "docid": "e76a7bd35b4b395c60b3828f8b33ebc3", "score": "0.7808392", "text": "private function existsInItems($productName) {\n $pos = -1;\n if($this->numItems == 0)\n return $pos;\n $arr = $this->items;\n for($i = 0; $i < count($arr); $i++) {\n if($arr[$...
[ { "docid": "4bfd10837b90c84b5fdaa918cf8c0205", "score": "0.6641367", "text": "function check_item($product_item_id) {\r\n\t\r\n\t\t$products = $this->Session->read('Cart'); \r\n\t\tif (isset($products[$product_item_id])) {\r\n\t\t\treturn $products[$product_item_id];\r\n\t\t}\r\n\t\telse {\r\n\t\t\tretu...
514b245bbea54b68fcd2c3d5365f78c8
Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domainwide authority. (delegates.create)
[ { "docid": "9bdf4c082d1556110d1fb64f26c04664", "score": "0.4925558", "text": "public function create($userId, Delegate $postBody, $optParams = [])\n {\n $params = ['userId' => $userId, 'postBody' => $postBody];\n $params = array_merge($params, $optParams);\n return $this->call('create', [$para...
[ { "docid": "75344a4ba96b58776058e713f6fcba4e", "score": "0.6018199", "text": "public function addDelegations() {\n $manager = $this->input->post('manager_id', TRUE);\n $delegate = $this->input->post('delegate_id', TRUE);\n if (($this->user_id != $manager) && ($this->is_hr === FALSE)...
0649df9976766086b17a0dbb6021cba0
We'll set the base value to whatever is in our Event Parameters
[ { "docid": "75f75ecc2331d9872bf55f661eb0f86b", "score": "0.46832326", "text": "protected function ParseEventParameters()\n\t{\n\t\t$this->_value = DIunescape($this->_eventParameters[strtolower($this->Name)]);\n\n\t\tif (is_set($this->_value))\n\t\t{\n\t\t\tif (is_array($this->_value) == false)\n\t\t\t{\...
[ { "docid": "453a8c02c9d5c4e1835559f38dbcc3dc", "score": "0.72171867", "text": "function event_buffer_base_set($bevent, $event_base)\n{\n}", "title": "" }, { "docid": "9a54b30f0d9aa4f3397e4d305a7dfa13", "score": "0.58900565", "text": "function setBase ($base) {\r\n $this->BASE ...
695c04b2527e3cb54e8ab27a5421a3c7
Add elements to form
[ { "docid": "ec58e006e9f013e79810d6955b993057", "score": "0.6057305", "text": "public function definition() {\n global $CFG, $DB;\n \n $mform = $this->_form; // Don't forget the underscore! \n\n add_contact_info_elements_to_form($mform); \n add_profile_elements...
[ { "docid": "446a67884fa68de219fb12845be0cca1", "score": "0.7769082", "text": "protected function addElements()\n {\n// // Add \"author\" field\n// $this->add([\n// 'type' => Text::class,\n// 'name' => 'author',\n// 'attributes' => [\n// 'i...
3c97210fa146e00b7efc6f9bd797ef19
get food item details
[ { "docid": "b4dd50b7b9cf9043ec855c24e9fabfa9", "score": "0.7255568", "text": "public function getFoodItemDetails(Request $request){\n $food_id = $request->input('food_id');\n // executing query into menu_items table using food_id for food details\n $result = MenuItemsModel::where('i...
[ { "docid": "23e3a1b071ced7250f67532b4e84750c", "score": "0.7190272", "text": "function item_get(){\n $id = $this->get('id');\n if(!$id)\n $result = $this->supplies->all();\n else\n $result = $this->supplies->get($id);\n \n\n if ($result != null)\...
39a082fcd98a7d62072e76981efb5728
Selected Un Read the specified resource from storage.
[ { "docid": "289b8c64c98ba478b3fb3857df4dd0a2", "score": "0.0", "text": "public function selectedUnread(Request $request)\n {\n DB::table('mail_inboxes')\n ->whereIn('id', $request->ids)\n ->update(['read_at' => null]);\n\n return response()->json();\n }", "t...
[ { "docid": "6f6cd93fc05e76993ef09e7e4fb7b8a6", "score": "0.6138642", "text": "public function unRead()\n {\n $this->isRead = false;\n }", "title": "" }, { "docid": "0b20fdf57aef3a2bd7143b5fdaea43fb", "score": "0.5244679", "text": "public function storage(StorageSelection $select...
d01723bf272821476e9f3277983e3c0e
Returns HTTP Response headers
[ { "docid": "4256fd3a6fcde148733003cec618e624", "score": "0.74205357", "text": "public function getHeaders() {\n return $this->headers;\n }", "title": "" } ]
[ { "docid": "517439460851a0196d49a2d726c72253", "score": "0.87092555", "text": "public function getResponseHeaders();", "title": "" }, { "docid": "d3be37a405e0706def8b27b31d0fcf03", "score": "0.8634461", "text": "private function headers()\n\t{\n\t\treturn $this->response->getHeaders(...
fd221c7486623bc71e4fe5f0207e9d02
/ create a comment
[ { "docid": "5c0af4c07a2c149f9e1fd5d8d3ac0680", "score": "0.6789914", "text": "function create_comment($content,$event_id,$user_id){\n\t\t\n\n\t\t$posttime = date('Y-m-d H:i:s');\n\t\t\n\t\t$link = mysql_connect(DB_SERVER,DB_USER,DB_PASSWORD) or die('connect to sql fail');\n \tmysql_select_db('freefoo...
[ { "docid": "06498289bbcace62ca9a7b3f4181cf04", "score": "0.7952415", "text": "public function creates_comment()\n {\n $this->blogpost_model->insert_comment( array(\n 'type' => $this->input->post('new_comment'),\n 'comment_id' => $this->input->post('comment_...
5afc77b257454ad5b7af7a5c43eeb659
this up() migration is autogenerated, please modify it to your needs
[ { "docid": "db02d3a38b5d31922cdb69968b5e5ec1", "score": "0.0", "text": "public function up(Schema $schema): void\n {\n $this->addSql('CREATE TABLE news (id INT AUTO_INCREMENT NOT NULL, title VARCHAR(255) NOT NULL, short_description LONGTEXT NOT NULL, long_description LONGTEXT DEFAULT NULL, dat...
[ { "docid": "dacd77429801b640bb247388f20f28e1", "score": "0.8078592", "text": "public function migrationUp()\n {\n // TODO: Implement migrationUp() method.\n }", "title": "" }, { "docid": "20b3078116cca0d8f0cbce1a8d663632", "score": "0.79145443", "text": "abstract public ...
c7eaa0e1577f71a69888b0001bab9cfc
Displays a removal confirmation for the names provided.
[ { "docid": "58be259a663d2696a60f593da9c4a653", "score": "0.0", "text": "public function getRemove(array $getData)\n {\n if (!$this->checkForPermission('Administrator'))\n {\n return;\n }\n \n $entities = $this->crudRepository->getListByFriendlyNames($getD...
[ { "docid": "31848af045ebeba5ee8ef7d7bb1db245", "score": "0.6601196", "text": "public function confirmRemoveFromList()\n\t{\n\t\t// Only registered users allowed here\n\t\tFoundry::requireLogin();\n\n\t\t$ajax \t= Foundry::ajax();\n\n\t\t// Get the target id.\n\t\t$id \t= JRequest::getInt( 'id' );\n\n\t\...
0d3fea1b68a25a53350b28ddbd181c69
HTML GENERATION FUNCTIONS FOR PAYMENT FORM
[ { "docid": "b21ea846894baf07fbe236673a973b59", "score": "0.73720926", "text": "function getPaymentHTML() {\n\t\t\n\t\t$grand = $this->_invoice->getVar('grand');\n\t\t\n\t\t$feepercentile = 0;\n\t\tif ($GLOBALS['xoopsModuleConfig']['feecomphensate']) {\n\t\t\t$invoice_transaction_handler = xoops_getmodul...
[ { "docid": "7c35905e9ade647062dfa0e99f8dd451", "score": "0.71582156", "text": "function print_direct_payment_form($amount = 0, $description = '', $merchantid = '', $currency = '', $customencrypted = '', $returnurl = '', $vars = array(), $no_ship = 1)\n {\n global $ilpage, $ilconfig...
c1c810af60de9e60524bcbf0816e3364
Return details of products searched by various types
[ { "docid": "b9c4338853273e31fd1a3f29d9fedc38", "score": "0.6416771", "text": "public function searchProducts($search, $category, $searchType = \"UPC\", $searchNode=\"\")\n\t{\n\t\t// Set class vars.\n\t\t$this->searchString = $search;\n\t\t$this->category = $category;\n\t\t$this->searchType = $searchTyp...
[ { "docid": "c4911c8b2b651a9ab7257cfb61fbc131", "score": "0.7079248", "text": "public function search_by_type($id){\n\t\t$data=Product::where(['type'=>$id])\n\t\t->Where('status','=',1)\n\t\t->get();\n\t\treturn view('product_list',compact('data'));\n\t}", "title": "" }, { "docid": "90e598dde...
754ab2d3a813a43b14fb53e6ecf286ca
Don't make any changes; instead, try to predict some of the changes that may occur.
[ { "docid": "e45374ea9d59640b0a5494b636a26c32", "score": "0.0", "text": "public function check();", "title": "" } ]
[ { "docid": "ee7def663c495c55c0b44156199bc338", "score": "0.5909309", "text": "public function testFundingPredicted()\n {\n }", "title": "" }, { "docid": "906895303209a79f5e69a279bbd1a636", "score": "0.5818394", "text": "private function verifyChanges()\n {\n $r = new ...
c90c0d2f4f8b721cf7dea79ffc5203f4
convert number to day
[ { "docid": "e7aebd3885bea64f64d00590db90616b", "score": "0.7355396", "text": "function numberToDay($number) \n {\n switch ($number) {\n case 1:return 'senin';break;\n case 2:return 'selasa';break;\n case 3:return 'rabu';break;\n case 4:return 'kamis'...
[ { "docid": "b5caebe3d5dd50dc66945a1732bf48e4", "score": "0.651738", "text": "function dayToNumber($day) {\n switch ($day) {\n case 'senin':return 1;break;\n case 'selasa':return 2;break;\n case 'rabu':return 3;break;\n case 'kamis':return 4;break;\n ...
6bf013878e936962f288d3fd5b68a893
/ Test delete all transactions:test: keys
[ { "docid": "4cf0622d01b3a0ea8bad448335527ab8", "score": "0.8780205", "text": "public function testDeleteTransactions(){\n\n // Fetch all transactions:test:* keys from redis\n $transaction = Redis::command('keys', ['transaction:test:*']);\n\n foreach( $transaction as $value ){\n\n ...
[ { "docid": "660f4f777073480ea5917b4b9402fa73", "score": "0.7255227", "text": "public function testDeleteAllAccounts()\r\n {\r\n }", "title": "" }, { "docid": "d99d8b03ba93b1dcaf7270a076e4a4a2", "score": "0.7016919", "text": "public function testKycChecksDelete()\n {\n }",...
30bf7d420d72fcb38fc66ce11270a514
Add a new element to
[ { "docid": "acdd7a0c18a1aca3f607a3c9b646b72d", "score": "0.0", "text": "public function addName(\\obiba\\mica\\LocalizedStringDto $value) {\n return $this->_add(3, $value);\n }", "title": "" } ]
[ { "docid": "82d18be85289929083bce42e8680ad4d", "score": "0.83009696", "text": "public function add($element);", "title": "" }, { "docid": "82d18be85289929083bce42e8680ad4d", "score": "0.83009696", "text": "public function add($element);", "title": "" }, { "docid": "82d18b...
4dd646fb4cf0354569dd6417f1d4b977
get region by circle id
[ { "docid": "25f12a35be8f4d18f6e99cc8f4529f23", "score": "0.68139374", "text": "function fetch_region()\n\t{\n\t if($this->input->post('circle_id'))\n\t {\n\t echo $this->site->fetch_region($this->input->post('circle_id'));\n\t }\n\t}", "title": "" } ]
[ { "docid": "c137bad64fe8fe8610f43def50c80c9d", "score": "0.67431056", "text": "function getRegion();", "title": "" }, { "docid": "34b18ede17d0bb1c23a079727cdf3124", "score": "0.66251487", "text": "function get_region_by_id($id)\n {\n if(!$this->base)\n return fal...
c00868c957d8728314e8d50ce8eb21cc
update accessor with data from current record
[ { "docid": "4763414b17c4b3160be17f36ec6e3abc", "score": "0.0", "text": "public function updateRowData()\n\t\t{\n\t\t\t$this->row = array();\n\n\t\t\t// check that cursor points to valid record\n\t\t\tif( $this->cursor < count($this->rows) && $this->cursor > -1 )\n\t\t\t{\n\t\t\t\t// fill record values w...
[ { "docid": "c26680f866550a96641bbbb3c6829211", "score": "0.65179765", "text": "public function update() {\r\n\t\t$this->getMapper()->update($this);\r\n\t}", "title": "" }, { "docid": "aa86becd0272f2a05d7ff80a9acc6a6e", "score": "0.63346255", "text": "function update() {\r\n CRUD::...
d47e1b22e35ca6b4ed3e49a5715e56ce
Affiche image + texte OK
[ { "docid": "29e0790d32bc7e1460d85871c219ef3e", "score": "0.6397625", "text": "function ok($msg) {\n\techo \"<br /><br /><br /><br /><br /><br /><br /><h2><img src=\\\"./images/ok.gif\\\" alt=\\\"\\\" /><br /><br />$msg</h2><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br...
[ { "docid": "b4bf09ea2843dcd0a54e914b8ae7a7f3", "score": "0.6996417", "text": "public function afficheImage()\n {\n \t\techo \"<br><img src=\\\"\".$this->filename.\"\\\"\\>\";\n\t\n }", "title": "" }, { "docid": "5d363abe451adae1537d35ec30a1b8da", "score": "0.66921103", "text...
755bc6f0ffdc3510d59f1d0d99d725ee
Get the Service Type From Service Model.
[ { "docid": "e010fb1e6aab0af110d983e6343d6bee", "score": "0.0", "text": "public function servicetype()\n {\n return $this->hasOne('App\\Model\\Service','id','service_id');\n }", "title": "" } ]
[ { "docid": "1668d06d5b4b58fc9fb27650fcbfee77", "score": "0.771929", "text": "public function getServiceType()\n {\n return $this->serviceType;\n }", "title": "" }, { "docid": "f60ccf7fc48dd9785730f6a6d2f701b0", "score": "0.719883", "text": "function getServiceType($servi...
51624938b1c69254ae8ff7ef3e6732a7
Gets the array version of the object.
[ { "docid": "74908f7385613ccdcc5ecbc6dfa77022", "score": "0.0", "text": "public function serialize(): array\n {\n return \\array_merge(parent::serialize(), [\n 'checkSum' => $this->hasChecksum() ? (string) $this->checkSum : null,\n 'index' => $this->index,\n ]);\n ...
[ { "docid": "9a500148c9b868c29de1867549747a29", "score": "0.73602587", "text": "public function getArray()\n\t{\n\t\treturn $this->array;\n\t}", "title": "" }, { "docid": "30a3fd6be8ac91f044658922d2c9ef9d", "score": "0.7342175", "text": "public function getArray();", "title": "" ...
1921fc71be113efca4042e15aa793f70
Get all the sections assigned to this page
[ { "docid": "d0cb48d91077921df06d822a5a3f9c75", "score": "0.75460434", "text": "public function getSections()\n\t{\n\t\treturn $this->_sections;\n\t}", "title": "" } ]
[ { "docid": "8de68092f84cac14f0eeefa4bebf0772", "score": "0.7944956", "text": "public static function getsections() {\n\t\n\t}", "title": "" }, { "docid": "88ff08807accd43e60d0b675256ab2bf", "score": "0.7920959", "text": "public function all()\n {\n return $this->sections;\n...
7927c597629a7f6a4988235953a94f25
Filter a header value Ensures CRLF header injection vectors are filtered. Per RFC 7230, only VISIBLE ASCII characters, spaces, and horizontal tabs are allowed in values; only one whitespace character is allowed between visible characters.
[ { "docid": "4bec95afa2907ff0286f1043186d2b06", "score": "0.5740243", "text": "public static function filter($value)\n {\n $value = (string) $value;\n $length = strlen($value);\n $string = '';\n for ($i = 0; $i < $length; $i += 1) {\n $ascii = ord($value[$i]);\n...
[ { "docid": "7ba63882cc2f593c6e74db1cddcb002e", "score": "0.72286695", "text": "public static function filter($value)\n {\n $result = '';\n $tot = strlen($value);\n\n // Filter for CR and LF characters, leaving CRLF + WSP sequences for\n // Long Header Fields (section 2....
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "69f76b5d62aa195ecad064fb60ea5e3a", "score": "0.0", "text": "public function show($userID)\n {\n $user = User::find($userID);\n return view('pages.common.profile')\n ->with('user', $user);\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.8019291", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.74223363", "text": "abstract protected function makeDisplayFrom...
697e61492d5bebfe8bd6bc41a6055cd0
Sorts indexes by priority
[ { "docid": "58e41bfacf0f7d5fd68d9acf14d3b5e6", "score": "0.6003776", "text": "public function sortIndexesByPriority(array $aIndexes): array\n {\n usort(\n $aIndexes,\n fn(Index $a, Index $b) => $a::getPriority() <=> $b::getPriority()\n );\n return $aIndexes;...
[ { "docid": "9db3253c9de6351911651054fcb12130", "score": "0.7105264", "text": "protected function sort() {\r\n\t\tif (! $this->dirtyIndex) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$newIndex = array ();\r\n\t\t$index = 0;\r\n\t\t\r\n\t\tforeach ( $this->pages as $hash => $page ) {\r\n\t\t\t$order = $pag...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "774643a562c38e01f422de634fe9333d", "score": "0.0", "text": "public function store(SubjectStoreRequest $request)\n {\n $subject = new Subject();\n $subject->setAttribute('course_name', $request->input('course_name'));\n $subject->setAttribute('course_code', $request->i...
[ { "docid": "d2d5025c41b1d2624f860d8ceab9e2ab", "score": "0.7168782", "text": "public function store()\n {\n // Use the parent API to save the resource\n $object = $this->api()->store();\n\n // Redirect back with message\n return $this->redirect('created', ['id' => $object-...
3faeaccb4052f8d0e471e71e6d599f3d
added to "init" action
[ { "docid": "82fe44177eccb928e9fa6016234601ff", "score": "0.0", "text": "static function init() {\n\t\tif (is_admin()) {\n\t\t\t// Load up $cdn_scripts with list from cdnjs\n\t\t\tself::$cdn_scripts = (get_option('cdn_scripts')) ? get_option('cdn_scripts') : self::get_cdn();\n\t\t\t// add submenu item fo...
[ { "docid": "4a98f6204951ea91a54e0cdc9fa7de03", "score": "0.84763324", "text": "abstract public function action_init();", "title": "" }, { "docid": "191bf4d26dffbfff5d16c531efde1810", "score": "0.83268166", "text": "protected function _init(){ /* Implement this function in final contr...
921742383fc5996dedc767af94535850
Obtains the property list.
[ { "docid": "b8b515da6166b185ce20f45e12f9c1db", "score": "0.648416", "text": "public function getProperties() {\n\t\treturn parent::getProperties() + array('Phones', 'Fax', 'Email', 'WebSite', \n\t\t\t'Coordinates');\n\t}", "title": "" } ]
[ { "docid": "207547b76eb105bde60d08a1e487e0c7", "score": "0.76533747", "text": "public function getProperties() {\n return array($this->_property);\n }", "title": "" }, { "docid": "784e5e600df6088f280b6b2025c36aa7", "score": "0.7641538", "text": "public function getProperties ()\n...
def7f2191a0c44e41335f5afec362120
Sets the query to the database object
[ { "docid": "1aaaa9ad9e440fc1670015a813036bf6", "score": "0.0", "text": "public function setQuery( $sql, $limit = 0, $offset = 0 )\r\n\t{\r\n\t\tif (! $sql ) return false;\r\n\t\t\r\n\t\tif ( is_integer( $limit ) ) {\r\n\t\t\t// Be sure to reset arguments\r\n\t\t\t$this->_arguments\t=\tarray();\r\n\t\t\t...
[ { "docid": "2e9c2eed3b038072b4ea5b434e30947e", "score": "0.7390128", "text": "public function setQuery() : void;", "title": "" }, { "docid": "55918c2f9e52bb3f218ee4af83699884", "score": "0.71202105", "text": "protected function createQueryObject()\n {\n $this->query = Zig_Model_Q...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\t...
c02a8a681fe86cf1ccc82eec5eb3b92e
Remove file links related to the entity, but leave the entity and file(s) intact.
[ { "docid": "97a0a87601f864ce7fed1e634b787e2f", "score": "0.62985504", "text": "function releaseFiles ($entity_realm, $entity_id)\n{\n\tusePreparedDeleteBlade ('FileLink', array ('entity_type' => $entity_realm, 'entity_id' => $entity_id));\n}", "title": "" } ]
[ { "docid": "df2e90d77b533bb49bb0f76bd81770ad", "score": "0.63496244", "text": "public function cleanFiles()\n {\n foreach($this->uploadAttributes() as $attr)\n {\n /** @var $file File */\n if($file = File::model()->findByPk($this->owner->getAttribute($attr)))\n ...
15509910e5f6b3eeb728e50cb9d50cdd
Recupere et format les donnees pour la generation du graph
[ { "docid": "e632ff83d2f11826c52c57f665254f67", "score": "0.0", "text": "public function ajaxGraphiByCategorieAction(){\n\n $Date = array();\n $Date['month'] = $this->app->HTTPRequest->getData('month');\n $Date['year'] = $this->app->HTTPRequest->getData('year');\n $CumulTicket...
[ { "docid": "9798d9388902dd6f7bba4eaccff49897", "score": "0.64755577", "text": "function __toString(){\n\t\t// TODO all are string values, maybee som should be decimal\n\t\t//$x=$this->attributes['fp'][0]+$this->attributes['offset'];\n\t\t//$y=$this->attributes['fp'][0]-$this->attributes['offset'];\n\n\t...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "06e434a25256d2880f15c79bc7a67416", "score": "0.0", "text": "public function __construct()\n {\n parent::__construct();\n\n $this->middleware('auth');\n }", "title": "" } ]
[ { "docid": "ea40e59e4f2b1da24be65a9e57cbc305", "score": "0.7549227", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n $controller = str_replace(\"Service\", \"\", $controller);\n\n $this->call('gemboot:make...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "5afe42cee9487e1dfde171b65fe2c5cf", "score": "0.0", "text": "public function __construct()\n {\n $this->disk = app()->environment(['prod']) ? 'cdn' : 'public';\n }", "title": "" } ]
[ { "docid": "bd1ee0eb805b9537f7b5fffd7bc75869", "score": "0.7934717", "text": "protected function createController()\n\t{\n\t\t$this->createParentControllerIfNotExists();\n\n\t\t$this->create('Controller', $this->data->get('controller.path'), [\n\t\t\t'name' => $this->data->get('controller.name'),\n...
eacd7f1b35aa4f04a3a5223e5b09fd79
Get decimal brightness value
[ { "docid": "73615d6c061213769bf803bb500bcac0", "score": "0.68088514", "text": "public static function get_brightness($hex) {\n\n\t\t $hex = str_replace('#', '', $hex);\n\n\t\t $c_r = hexdec(substr($hex, 0, 2));\n\t\t $c_g = hexdec(substr($hex, 2, 2));\n\t\t $c_b = hexdec(substr($hex, 4, 2));\n\n\t\t ret...
[ { "docid": "d9a289b4df75e30ceb2e57bba89c3f64", "score": "0.75222886", "text": "function get_brightness($hex) {\n\n// strip off any leading #\n$hex = str_replace('#', '', $hex);\n\n$c_r = hexdec(substr($hex, 0, 2));\n$c_g = hexdec(substr($hex, 2, 2));\n$c_b = hexdec(substr($hex, 4, 2));\n\nreturn (($c_r ...
f4d0955c44f0c9289e5a9eacc636a8a9
Set the response model to use for this API action.
[ { "docid": "87b6e26451e3747a1f1f088bc398a48d", "score": "0.6846061", "text": "public function setResponse(\\Klevu\\Search\\Model\\Api\\Response $response_model)\n {\n $this->response = $response_model;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "ddbedee92580acf1897c7cbcc5dc745b", "score": "0.71075505", "text": "public function setResponse(Klevu_Search_Model_Api_Response $response_model) \n {\n $this->response = $response_model;\n\n return $this;\n }", "title": "" }, { "docid": "7df7b2e8744bb876f77dce7...
d8c7fba305658d869a7a9a0167151d90
/ Register a Module with his system function on defined section
[ { "docid": "3092393c471ea095e19729b4e490c78f", "score": "0.7598839", "text": "public function\n\tregister(\n\t\tint $section,\n\t\tcallable $systemFunction\n\t) : void\n\t{\n\t\tif(!property_exists($this, 'systemFunctionList'))\n\t\t{\n\t\t\t$this -> systemFunctionList = [];\n\t\t}\n\n\t\t$this -> syste...
[ { "docid": "018e7dd914d66d9c0fba7fdc2ffa67db", "score": "0.6927167", "text": "public static function register() {\n\t\tself::register_module();\n\t}", "title": "" }, { "docid": "3ad14bb8c56adcb542afd0b318060fd4", "score": "0.67800283", "text": "function register() {}", "title": "...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.0", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7570922", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7570922", "text": "public function create()\n\t{\n\t\tre...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e3d0ccd4ada2dc88b7c57c5065e7e2e8", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n }", "title": "" } ]
[ { "docid": "45903628ff69251019708b230944f6f0", "score": "0.6915523", "text": "public function store(StoreResourceRequest $request)\n {\n\n $data = $request->input();\n\n if ( empty($data['teacher_id']) ) {\n $data['teacher_id'] = null;\n }\n\n DB::transaction(function() use ($request, ...
f771ef2f75f97a864a4928502823eb2b
Gets the reviewedDateTime property value. The reviewedDateTime property
[ { "docid": "10559c646366723fb0b636c376d29563", "score": "0.6546578", "text": "public function getReviewedDateTime(): ?DateTime {\n $val = $this->getBackingStore()->get('reviewedDateTime');\n if (is_null($val) || $val instanceof DateTime) {\n return $val;\n }\n thro...
[ { "docid": "e985016a2328a99e0e48d8476f4ede87", "score": "0.828692", "text": "public function getReviewDateTime() : \\DateTime {\n\t\treturn ($this->reviewDateTime);\n\t}", "title": "" }, { "docid": "a9cefcccb3ab3e9494a58232b1c0d46c", "score": "0.76030153", "text": "public function ge...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "03e52612019e0ff77a21db95b3c64500", "score": "0.0", "text": "public function run()\n {\n //\n for ($i = 1; $i <=20; $i++) {\n $question = new Question();\n $question->fill([\n 'title' => 'question title ' . ' ' . $i,\n 'text...
[ { "docid": "fe865198b7339ada0253770db050b45a", "score": "0.7975537", "text": "public function run()\n {\n $this->call(ContinentSeeder::class);\n $this->call(GenreSeeder::class);\n $this->call(RoleSeeder::class);\n DB::table(\"equipes\")->insert([\n \"nom\" => \"...
ad8b90a12a6133db51040bb6482db9cc
Get the Client associated with the Timer
[ { "docid": "26da8a3c1a787e8c6149cbecedc461e9", "score": "0.0", "text": "public function client()\n {\n return $this->hasOneThrough(Client::class, Project::class, 'client_id', 'id');\n }", "title": "" } ]
[ { "docid": "9e8c94fb5c9b81431d6b8e988a0ab2aa", "score": "0.6801139", "text": "public function client() {\n return $this->_client;\n }", "title": "" }, { "docid": "0da52b592fdf7c1c6cd6162710095b4b", "score": "0.6694582", "text": "public function client()\n {\n retu...
a7437cf91e24e15cc21164eaa0125f48
/ OLD NOT WORKING Gives the last status of the bin
[ { "docid": "cd7b910a7ca2af862be1403a1d48ab9e", "score": "0.6589805", "text": "public function getLastBinStatus($id) {\n\t\t$data = array();\n\t\t$sql = \"SELECT h.height, h.total_height, weight, time\n\t\t\t\tFROM bin_height AS h\n\t\t\t\tJOIN bin_weight AS w ON \n\t\t\t\tWHERE bin_id = ? AND time = (\...
[ { "docid": "6728d447a364cb398644359f61fd0868", "score": "0.6899179", "text": "public function getLastStatus();", "title": "" }, { "docid": "3dbbd6498f141792366d3b4292a55e68", "score": "0.6470702", "text": "function get_status() {\n\n\t\t\tif($this->debug)\n\t\t\t\techo \"* drive::get...
838b24a8ab87447820feddbf2ac9acc2
Load users from file (csv)
[ { "docid": "f747ee48b13fdfa0145d65023b49436e", "score": "0.7869458", "text": "static function load_users($file)\n\t\t{\n\t\t\tdebug(\"Load users from {$file}\");\n\t\t\t$d = read_csv($file);\n\t\t\t$result = array();\n\t\t\tforeach($d as $user)\n\t\t\t{\n\t\t\t\t$result[$user['profile']] = $user;\n\t\t\...
[ { "docid": "d45afd84e22ed4aba2b8106a6a186c60", "score": "0.7643244", "text": "private function loadUsers() {\n\t\t$this->usersFile = new \\common\\model\\PHPFileStorage(\"data/users.php\");\n\n\t\t$usersArray = $this->usersFile->readAll();\n\n\t\tforeach ($usersArray as $key => $userString) {\n\t\t\t$us...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "d3046dfedc647b5f7c0c46993df29c5c", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n // 执行修改更新\n // dd($request->all());\n // ----------------阿里云 OSS 上传 start------------------- \n if ($request->hasFile('thumb')) { // 1.检测是否有文件...
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.76002145", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7425105", "text": "public function updateShopifyResource() {\n ...
15dc8b512055d2c4bc697d974a93755c
Proxy the method call to the process supervisor.
[ { "docid": "40179c6f966e9c99edc683e4c7b87701", "score": "0.0", "text": "public function __call(string $name, array $arguments)\n {\n return $this->proxyAction(Instruction::TYPE_CALL, $name, $arguments);\n }", "title": "" } ]
[ { "docid": "0fdee3176ab6fbe13d9f1c4dc9b3426b", "score": "0.61099404", "text": "public function handleMethod($request) {\n parent::handleMethod($request);\n return 'doProcess';\n }", "title": "" }, { "docid": "68d1b7deb3cb7c4892a28568a7939cc5", "score": "0.57067174", "tex...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "28c1c58c9ff4ab4d4298beab0a021d7c", "score": "0.0", "text": "public function index(Request $request)\n {\n $productTypes = ProductType::all();\n if ($request->has('filter')) {\n if ($request->has('filter_name')) {\n $productTypes = $productTypes->fil...
[ { "docid": "619215bb4339ad93d666260778b90bfe", "score": "0.7755139", "text": "public function index()\n {\n $fields = $this->parseFields();\n $filter = $this->parseFilters();\n $sort = $this->parseOrders();\n $paging = $this->parsePaging();\n $data = $this->listReso...
09e290561745fa62f376f632f9f3cf51
END: version 2 process for the guide info form DEPRECATED PROCESS
[ { "docid": "f64107f52a4bf1004e136a9e2a7bba96", "score": "0.0", "text": "private function newProcessStepOneForm(Request $request)\r\n\t{\r\n\t\t$infoForm = $request->request->all();\r\n\t\t// echo \"<pre>\";\r\n\t\t// var_dump($infoForm);\r\n\t\t// exit;\r\n\r\n\t\t$localAuthor = $this->get('security.con...
[ { "docid": "eb7f55d19fc81503b7fea1c06484602f", "score": "0.5937231", "text": "function plugin_cbEnhancedInfo_upgrade () {\n\tcbEnhancedInfo_check_upgrade ();\n\treturn false;\n}", "title": "" }, { "docid": "3360a5fa7be0cc2bec035e8f92094d54", "score": "0.5781089", "text": "function he...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "f94053e48c6c32e748a16cac4600d55c", "score": "0.0", "text": "public function store(Request $request)\n {\n \t$request->validate([\n \t\t'name'\t\t\t\t=> [ 'required', 'min:2', 'unique:leagues' ],\n \t\t'series_id'\t\t\t=> [ 'required', 'exists:series,id' ],\n \t\t'generate_toke...
[ { "docid": "79da2146a3794a65b80951c7ea2a2404", "score": "0.66211367", "text": "public function save()\n {\n $this->storage->save();\n }", "title": "" }, { "docid": "f934191a4b4b75a1fb96952dd934d298", "score": "0.6508264", "text": "public function store()\n {\n ...
b30f19ff0307cede306076f757c43a11
Gets the unit decorator.
[ { "docid": "b5eafa65b61892f0da89ea0ea34760ed", "score": "0.8663806", "text": "public function getUnitDecorator(): UnitDecorator\n {\n return $this->unitDecorator;\n }", "title": "" } ]
[ { "docid": "fd7985e9dc6e1c2b558c1ccd2df0eae0", "score": "0.7109482", "text": "public function getUnit()\n {\n return $this->unit;\n }", "title": "" }, { "docid": "fd7985e9dc6e1c2b558c1ccd2df0eae0", "score": "0.7109482", "text": "public function getUnit()\n {\n ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "d7a708e26aa5014b5b414174dfa1dbbc", "score": "0.0", "text": "public function index(){\n $vendors = Vendor::orderBy(\"name\", \"asc\")->paginate(10);\n return view(\"vendors.index\")->with(\"vendors\", $vendors);\n }", "title": "" } ]
[ { "docid": "a2c82e645f33199ca3af4df01daa0da0", "score": "0.73454344", "text": "public function listAction()\n {\n $this->view->headTitle('Book Listing ','PREPEND');\n $this->view->books = $this->bookService->listService();\n }", "title": "" }, { "docid": "2ecb35785c4b9e88...
d9239f66423cc9278dd5d4ba05721f1c
Lists all Dmpaper models.
[ { "docid": "26865a3ddfd31374fd1abc8789cf02ef", "score": "0.5996055", "text": "public function actionIndex()\n\t{\n\t\t$searchModel = new DmpaperSearch;\n\t\t$dataProvider = $searchModel->search($_GET);\n\n\t\treturn $this->render('index', [\n\t\t\t'dataProvider' => $dataProvider,\n\t\t\t'searchModel' =>...
[ { "docid": "2c6c1101ff3f8d3ecdc9baedf810caf2", "score": "0.6846517", "text": "public function getModelsList(){\n return $this->_get(1);\n }", "title": "" }, { "docid": "5c5084da01a3d18e3878dff9220c3a43", "score": "0.6794154", "text": "public function getModels();", "title"...
12c4361e5a4806a3e8103510de8273c2
Update new order data fields.
[ { "docid": "4a77e3e5880a95f1334fd4a635b15c98", "score": "0.0", "text": "public function setDataFields($websiteId, $typeId, $storeName)\n {\n $orderModel = $this->orderFactory->create()\n ->loadByIncrementId($typeId);\n\n $this->setDefaultDataFields(\n $orderModel->...
[ { "docid": "d2544c4bd8b06948168bcd83a08933ba", "score": "0.7667398", "text": "public function updateOrders();", "title": "" }, { "docid": "bfee52eda45b90fbda062ce0086a5417", "score": "0.7425365", "text": "public function testUpdateAnOrder()\n {\n }", "title": "" }, { ...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "10e5b920b787eefa7c07465d7ff538b8", "score": "0.0", "text": "public function run()\n {\n //\n DB::table('d_estados')->insert([\n 'c_estado' => '04',\n 'd_estado' => 'Campeche',\n ]);\n DB::table('d_estados')->insert([\n 'c_estado...
[ { "docid": "963776365fb19044e27fa4db733ae2fd", "score": "0.80741113", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // factory(App\\User::class, 1001)->create()->each(function ($user) {\n // $user->roles()->attach([4]);\n // });\n\n ...
be1a3558e81a79752f4d270bbf7499b0
function for inserting the children at given path
[ { "docid": "af2385d702952b5dbc10969d4fc82445", "score": "0.597984", "text": "public function insert_into(&$array, array $keys, $value) {\n foreach ($keys as $key) {\n $array = &$array[$key];\n }\n $array['children'] = $value;\n}", "title": "" } ]
[ { "docid": "6ae3dc6c45b38fa659c52f4d25d476e0", "score": "0.6164592", "text": "function _fillPath() {\n\t\t$db = &$this->_getDb();\n\t\t$parentTaskId = $this->headTask->id;\n\t\twhile ($parentTaskId != NULL && count($this->path) <= 3) {\n\t\t\t$rs = $db->query(\"\n\t\t\t\tSELECT id, name, parent\n\t\t\t\...
93f9660c472195461272513df184cd3f
$obj = new Application();
[ { "docid": "e6521783e56af0d8f907315d16848595", "score": "0.0", "text": "public function test___construct() {\n\t\t}", "title": "" } ]
[ { "docid": "1e68b6949d253fd9e59d08ce13c1ffff", "score": "0.7142825", "text": "public function __construct() {\n $this->app = Application::getInstance();\n }", "title": "" }, { "docid": "0abe082172f1d9fa6657a75bb2e619ff", "score": "0.66969556", "text": "function ApplicationObj()\n...
ce6b5ce42844d63285c3a3c9fad64835
Check if directory is empty
[ { "docid": "a77d25dcc3fae2c6cfb55eebd07bc0b0", "score": "0.8317669", "text": "function is_empty($path) {\n if (count(scandir($path)) > 2) {\n return 0;\n } else {\n return 1;\n }\n }", "title": "" } ]
[ { "docid": "cab9b1f945e81a9fceca0ba76a23bfaf", "score": "0.7974787", "text": "function is_dir_empty($path) {\n if (!is_readable($path))\n trigger_error(\"path is not readable: $path\");\n\n $d = opendir($path);\n while ($entry = readdir($d))\n if ($entry != '.' && $entry != '..')\...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "de0928b6c2c42d91f30ad486fafb8823", "score": "0.0", "text": "public function destroy($id)\n {\n try{\n $this->pdoObject=DB::connection()->getPdo();\n $this->id=(int) htmlentities(htmlspecialchars($id));\n $this->pdoObject->beginTransactio...
[ { "docid": "9e3888bdb250b09daf6881b2c953ce96", "score": "0.7387817", "text": "protected function removeImageFromStorage (HCResources $resource)\n {\n $path = $this->uploadPath . $resource->id;\n\n if (Storage::has ($path)) {\n Storage::delete ($path);\n }\n }", ...
3b6c4f1575ba564bdc6ee9e761b56c5a
Remove Voluntarydegree from storage.
[ { "docid": "a6b7d14772f33eb01186548f3f3176da", "score": "0.5501238", "text": "public function destroy($id)\n {\n if (! Gate::allows('voluntarydegree_delete')) {\n return abort(401);\n }\n $voluntarydegree = Voluntarydegree::findOrFail($id);\n $voluntarydegree->d...
[ { "docid": "2538f44eda21f137128f5169be2be40e", "score": "0.59685093", "text": "public function diminuir_vol()\r\n {\r\n if($this->get_ligada())\r\n {\r\n if($this->get_volume() > 0)\r\n {\r\n $this->volume--;\r\n }\r\n }\r\n }", ...
1d47fa2136b758d786b0cebb627805e7
check we have a project
[ { "docid": "0e1d8112efb99f337632ed9d70bb7ed1", "score": "0.0", "text": "function run_upgrade_1_0($task, $args)\r\n{\r\n if (!file_exists('symfony') && !file_exists('SYMFONY'))\r\n {\r\n throw new Exception('You must be in a symfony project directory');\r\n }\r\n\r\n // upgrade propel.ini\r\n _up...
[ { "docid": "e1fd60ec8b840df442892bf193f0daad", "score": "0.81110525", "text": "public function hasProject(){\n return $this->_has(1);\n }", "title": "" }, { "docid": "103501298ee1afb3a1a47725dabc741f", "score": "0.7958403", "text": "public function hasProject(){\n return...
471f68653331ef40cb57686adadc4f1a
addPath() Add path to repositories where Action_Helpers could be found.
[ { "docid": "0642d64345275f133a85aa716dbb80b5", "score": "0.5033882", "text": "static public function addPath($path, $prefix = 'Zend_Controller_Action_Helper')\n {\n self::getPluginLoader()->addPrefixPath($prefix, $path);\n }", "title": "" } ]
[ { "docid": "107c1106ad6aef93908eda28e725cd38", "score": "0.6458003", "text": "function _initActionHelpers(){\n Zend_Controller_Action_HelperBroker::addPath(APPLICATION_PATH . '/controllers/helpers', 'My_Action_Helper');\n }", "title": "" }, { "docid": "3563b33a96365b879837b5c02e7e8...
830be66a11d9c48bb1bab3d4e641a591
Gets an array of EmailTemplate objects which contain a foreign key that references this object. If this collection has already been initialized with an identical Criteria, it returns the collection. Otherwise if this Person has previously been saved, it will retrieve related EmailTemplates from storage. If this Person is new, it will return an empty collection or the current collection, the criteria is ignored on a new object.
[ { "docid": "468568e6c555624b6205be64059fc52a", "score": "0.7484462", "text": "public function getEmailTemplates($criteria = null, PropelPDO $con = null)\n\t{\n\t\tif ($criteria === null) {\n\t\t\t$criteria = new Criteria(PersonPeer::DATABASE_NAME);\n\t\t}\n\t\telseif ($criteria instanceof Criteria)\n\t\...
[ { "docid": "7557c7ac8dff58a07c6432576d06e39f", "score": "0.56942505", "text": "static function listTemplates() {\n $query = EmailmarketingTemplates::select('et.id as id', 'et.name as name', 'et.from as emailfrom', 'et.to as emailto')\n ->from('template_emails as et');\n $result = $query->get()-...
c321eb21e43f224abfebd1ef6601898b
Static function handles exceptions that are not caught in a try catch block.
[ { "docid": "91805242af3fa5bb7ea22de8358c0e3d", "score": "0.5536198", "text": "static public function handleException(\\Exception $ex)\n\t{\n\t\t//TODO: Check for stop propagation from event\n\n\t\t$event = new \\Framework\\Events\\CExceptionEvent($ex);\n\n\t\t//Send event to the listeners\n\t\t$listener...
[ { "docid": "11f585680773b1609f2c01636e549b9b", "score": "0.69070655", "text": "function handler_for_exception(Exception $ex) {}", "title": "" }, { "docid": "76e0994bd9f3f53fdba11229f4f67993", "score": "0.6691165", "text": "abstract public function handle (Exception $e);", "title"...
9a9287f46fe9aae3652b1a787f7eaa41
filter jadwal guru berdasarkan sekolah dan kelas
[ { "docid": "7d03c0fa07cf2c13888d37108e14a61d", "score": "0.0", "text": "public function SelectJadwalGuru(Request $request){\n $id =Auth::user()->ugrId;\n $skl=decrypt_url($request->skl);\n $kelas=decrypt_url($request->kelas);\n\n if (Cache::has('SelectJadwalGuru'.$id.$skl.$kelas)){ $data = C...
[ { "docid": "5f859378096f7056fcfe67e5df98879d", "score": "0.71109", "text": "public function filter();", "title": "" }, { "docid": "5f818ee7bb2d11f44cbf5753e1933c47", "score": "0.6807388", "text": "public function filteri(){\n $_SESSION['datum_od'] = null;\n $_SESSION['d...
e5aef6b21e55df9cff5aec4601ae294e
Boot the amountable trait for this model.
[ { "docid": "a8c3aab788731561f34176040f7eec7c", "score": "0.58733267", "text": "public static function bootAmountable()\n {\n static::extend(function ($model) {\n $model->rules = array_merge($model->rules, [\n 'amount_exact' => 'numeric|min:0',\n 'amount...
[ { "docid": "9dd1312663ac1fc9c73d7b6e2214e03b", "score": "0.6934198", "text": "protected static function boot()\n {\n static::bootTraits();\n }", "title": "" }, { "docid": "9dd1312663ac1fc9c73d7b6e2214e03b", "score": "0.6934198", "text": "protected static function boot()\...
03ec3e98c4802b34e5432e2ef114f91d
Get wind weather for a given zip code
[ { "docid": "526ff702f081f59056df73a05d8025b1", "score": "0.6833316", "text": "public function show(string $zipCode): Response\n {\n /** @var array $wind */\n $wind = $this->weatherService\n ->forZip($zipCode)\n ->wind();\n\n return new Response($wind);\n ...
[ { "docid": "eabd1f5d1bfece16af030b5b29bd7ffb", "score": "0.7241024", "text": "public function getWeatherForZipCode($zip, $countryCode)\n {\n $zip .= ',' . $countryCode;\n\n $query = ['q' => $zip];\n\n return $this->request(self::ENDPOINT_WEATHER, ['query' => $query]);\n }", ...
1f15c439e44ed23c2b3eb2546bf56a05
Returns the currently resolved layout or null if no layout was resolved.
[ { "docid": "f7bb5794cb8f73ef7e8d09f2956a61ed", "score": "0.73433167", "text": "public function getLayout(): ?Layout\n {\n $layoutView = $this->getLayoutView();\n if (!$layoutView instanceof LayoutViewInterface) {\n return null;\n }\n\n return $layoutView->getLay...
[ { "docid": "e08af59cf686ab0bc382fc33b9693997", "score": "0.76948726", "text": "public function getLayout(): ?string\n {\n return $this->_layout;\n }", "title": "" }, { "docid": "2598af2bd090728f1f61e737d37a22c3", "score": "0.7184735", "text": "public function get_layout(...
81e0237f62b1822fb442851763f4fd54
Returns an array of events this subscriber wants to listen to.
[ { "docid": "01708e04575fd942c3c4f106217486c9", "score": "0.0", "text": "function getSubscribedEvents()\n {\n return array(Events::postLoad);\n }", "title": "" } ]
[ { "docid": "d08ad6768332caba3c46278b88a4fe55", "score": "0.83220315", "text": "public static function getSubscribedEvents()\n {\n return array();\n }", "title": "" }, { "docid": "20cf3874ff28211c98329e9913cb271b", "score": "0.81721705", "text": "public static function ge...
a7e7cd389d7d3d10a259fdcce10c7959
Create the new consumer if not exists and return the ID
[ { "docid": "200f03eace879135d923f2d6c433a92a", "score": "0.66944164", "text": "private function getRestConsumerId()\n {\n $consumer = Mage::getModel('oauth/consumer')\n ->getCollection()\n ->addFieldToFilter('name', self::TITLE)\n ->getFirstItem();\n if ...
[ { "docid": "4661742779c053932334acd7bc36749a", "score": "0.6405012", "text": "public function getConsumerId(): ?string {\n return $this->consumer;\n }", "title": "" }, { "docid": "3afc217696af703ace027708b3dc35e5", "score": "0.62689614", "text": "public function getConsumerInstan...
bb7b18c7842c3f5289d2c9e07c5e5aba
Creates a form to edit a GrhTypeFiche entity.
[ { "docid": "fa6cd89fb94c051c921768dd99f893d8", "score": "0.84269565", "text": "private function createEditForm(GrhTypeFiche $entity) {\r\n $form = $this->createForm('Loonins\\GrhBundle\\Form\\GrhTypeFicheType', $entity, array(\r\n 'action' => $this->generateUrl('grhtypefiche_update', a...
[ { "docid": "4ea630e0b625ec65ba063ecec3682f90", "score": "0.72308165", "text": "private function createCreateForm(GrhTypeFiche $entity) {\r\n $form = $this->createForm('Loonins\\GrhBundle\\Form\\GrhTypeFicheType', $entity, array(\r\n 'action' => $this->generateUrl('grhtypefiche_create')...
27c2304eb41f64eac89238cc37c174a8
Marks the specified subtask complete
[ { "docid": "e9512c5e0ec5842a3e766d273e19c42f", "score": "0.63510185", "text": "public function complete($subtaskId)\n {\n $subtask = Subtask::find($subtaskId);\n\n $subtask->is_complete = 1;\n\n $subtask->save();\n\n return $subtask;\n }", "title": "" } ]
[ { "docid": "4adfdaf33403e14c7c6eb25b97700738", "score": "0.67135066", "text": "public function completeTask(Task $task, User $user)\n {\n // Remove the user from the list of users. If afterwards there's\n // no users assigned, then we mark it as complete. \n $index = array_search...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "995658e79be6624118d520d72cd5c6e3", "score": "0.0", "text": "public\n\tfunction update(\n\t\tRequest $request, $id\n\t) {\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.76002145", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resour...
f6a81e7daf5cb4203819cae07192e3a0
Get one database information for a set of template IDs. We assume that the underlying database information is the same for all IDs.
[ { "docid": "ecd4e7ee26b5fe904760b19f392c802a", "score": "0.71246827", "text": "public function get_templ_db(array $templids) {\n assert(!empty($templids));\n\n // We take the last entry, presumably the most current\n $query = $this->db\n ->select('dbname,dbpropname,qoname...
[ { "docid": "483c504d665f5bde1cef4548abbfd08f", "score": "0.58744615", "text": "function getTemplateID() {\n Database::connect();\n\n $sql = \"SELECT templateID FROM templates WHERE name = :template\";\n $stmt = Database::$db->prepare($sql);\n \n $stmt->bindValue(':template', TEMPLATE);\n ...
77fa04ca17b0832feeeb9135899ba90a
Select Character Width ====================== $size: string (double / normal)
[ { "docid": "26a11b30b04f2f86005863769b9d460f", "score": "0.802485", "text": "function Width($size = \"double\"){\n if($this -> handle == false) return false;\n \n switch($size){\n case \"double\":\n $set = kbyte(32);\n brea...
[ { "docid": "9338d61f1b28824291cd70545ee4fd10", "score": "0.6905367", "text": "static function getSize($size) {\n\n //TRANS: list of unit (o for octet)\n $bytes = [__('o'), __('Kio'), __('Mio'), __('Gio'), __('Tio')];\n foreach ($bytes as $val) {\n if ($size > 1024) {\n ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "700ae1eb76d3e0bcef3c4cd15c66b898", "score": "0.0", "text": "public function __construct() {\n $this->middleware(['permission:read-sellers-app'])->only('index');\n $this->middleware(['permission:create-sellers-app'])->only('accept');\n }", "title": "" } ]
[ { "docid": "e5e7384bd73dca78941fcbd89a202b70", "score": "0.7997081", "text": "public function action_listing() {\n\t\t$this->_content('listing', $this->_instances(), true);\n\t}", "title": "" }, { "docid": "5843220cf684a1a73c04dea06b179c98", "score": "0.77250284", "text": "public fun...
a4512ce19222b578452277f3cc71acd5
Created by PhpStorm. User: admin Date: 28/05/14 Time: 5:28 PM encapsulate connection stuff in a function. // When called this function returns a reference // to a PDO Database connection object.
[ { "docid": "46ef8c254a9c42fa42c9262acf81c4da", "score": "0.719462", "text": "function getConnection(){ // Connection details\n\n\n\t/**\n PLEASE DONT CHANGE THIS VALUES, THEY SHOULD BE COMMENTED, NOT CHANGED.\n \n //SERVER HOST\n // $dbhost = \"localhost\";\n //$dbName = \"eConference\...
[ { "docid": "7f2ac154f743ec026dc07474c7c0cd44", "score": "0.7859319", "text": "function get_db_connection(){\r\n\r\n\tglobal $db_host, $db_name, $db_user, $db_pass, $db_charset;\r\n\r\n\t$dsn = \"mysql:host=$db_host;dbname=$db_name;charset=$db_charset\"; // siehe https://en.wikipedia.org/wiki/Data_source...
18ee50c9646b948055726d1c8440efe5
Returns the fully qualified name of the class that this mapper maps.
[ { "docid": "256208a578fcdaafda683fd1dfecbb5d", "score": "0.0", "text": "public function mapFor()\n {\n return Password::class;\n }", "title": "" } ]
[ { "docid": "158665724eda3adc39df99e4a6a0788b", "score": "0.7725857", "text": "public function get_class_name();", "title": "" }, { "docid": "a31ba09e8b988178c63ac1d7c99b49a7", "score": "0.76001453", "text": "public function getNameClass() : string\n {\n return get_class($th...
766145d062e4b04224d1b80bd412b4d5
$text = preg_replace("//s", "", $text) ? : $text;
[ { "docid": "91558682bd770ff1e8360bc35b46d981", "score": "0.0", "text": "public function removeImageFromDesc($text)\n {\n $text = strip_tags($text);\n return $text;\n }", "title": "" } ]
[ { "docid": "42ab83292e15d4c36276245314c33df0", "score": "0.65103126", "text": "function whitespace_clean($text)\r\n{\r\n\t$otext = $text;\r\n\t$text = preg_replace('/\\s\\s+/', ' ', $text);\r\n\t\r\n\trunDebug( __FILE__, __FUNCTION__, __LINE__, \"In: $otext Out:$text\",4);\r\n\t\r\n\treturn trim($text);...
e6693e1b6c4c714aad6f29c573a9c157
Inscription pour le chauffeur et le client
[ { "docid": "9b8f17b775b26453b295652ded3833db", "score": "0.5914114", "text": "public function inscription(){\n if(Input::get('type') == 'driver') Session::put('inscription_driver', 'true');\n return view('customer.inscription_commune');\n }", "title": "" } ]
[ { "docid": "e5ae6a71056d788ef42e9fc1f5b89ab1", "score": "0.70025307", "text": "public function inscription () {\n if (key_exists('inscriptionEnCours', $_SESSION)) {\n $constructeur = new ConstructeurUtilisateur($this->utilisateurs, $_SESSION['inscriptionEnCours'][GestionAuthentification::DONNEES...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "fb7a297f6ec70199027244d655812441", "score": "0.0", "text": "public function edit(Setting $setting)\n {\n return view('admin.settings.edit', ['settings' => $setting]);\n }", "title": "" } ]
[ { "docid": "5a5e25617e1019b0143435d1dcee143b", "score": "0.7874048", "text": "public function edit(Resource $resource) {\n $resource = Resource::find($resource->id);\n return view('resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "d752fd3972b546ef194ae1...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "a9e5e1e472a583973d842c5ab7383d94", "score": "0.0", "text": "public function run()\n {\n \\Illuminate\\Support\\Facades\\DB::table('users')->insert([\n 'name' => '梁李良',\n 'email' => 'liang569874@163.com',\n 'password' => bcrypt('Linux3306'),\n ...
[ { "docid": "f74cb2c339072d43cd3b96858a89c600", "score": "0.8112695", "text": "public function run()\n {\n $this->seeds();\n }", "title": "" }, { "docid": "8d9ddbc23166c0cafca145e7a525c10a", "score": "0.80032176", "text": "public function run()\n {\n // $this->c...
b19218303e9548e50615a86e940ec0b1
Test that if the store insert query fails an exception is thrown.
[ { "docid": "a9e525765bdd21793078f34a41381ba6", "score": "0.79429877", "text": "public function testFailedStoreQueryThrowsException()\n {\n $mock = new Mock();\n $pdo = $mock->PDO();\n\n $analyser = new Analyse();\n $analyser->setPdoConnection($pdo);\n $analyser->set...
[ { "docid": "94c0c4c88934ab376c4a9d90e3fcee30", "score": "0.7335975", "text": "public function testCreateNewTransactionThrowsExceptionIfInsertFails()\n {\n $mockInsert = $this->getMockBuilder('\\MongoDB\\InsertOneResult')\n ->disableOriginalConstructor()\n ->setMethods(['i...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "3c84ada6b5a8d5af726332ddbbb9c053", "score": "0.0", "text": "public function create()\n {\n $user = Auth::user();\n if (!$user->is_admin){\n return response()->json(['message'=>'Only administrators can create a new skill.', 'code'=>403],403);\n }\n\n ...
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7148004", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.6693617", "text": "public function store ()\n {\n ...
0ff910974d63645c64947083ef0e47db
Return how many artworks this file is part of
[ { "docid": "d083da461360af66e2cf97a47d914a64", "score": "0.7188781", "text": "public function countParentArtworks()\n {\n return count($this->_parentartworks);\n }", "title": "" } ]
[ { "docid": "35f86e9c12202f2c8c97900151a761a3", "score": "0.64777946", "text": "public function count() {\n return count($this->_parts);\n }", "title": "" }, { "docid": "b57965a52ba21c78920134b3c0e913a0", "score": "0.63956785", "text": "protected function getPartsNumber()\n {\n...
466d87eee4a079ab819b9f3db6620b84
defines the relationship of a loan having many defaultors
[ { "docid": "893f2d122c261d3a8f9395c16e2aeeda", "score": "0.57534593", "text": "public function loanDefauters()\n {\n return $this->hasMany('App\\LoanDefaulter');\n }", "title": "" } ]
[ { "docid": "bead731c5cb1aea15e85e94b84584d00", "score": "0.59555084", "text": "public function initialize()\n {\n $this->hasMany('groep_id', 'Gebruikers', 'groep_id', array('alias' => 'Gebruikers'));\n $this->hasMany('groep_id', 'Groep_permissies', 'groep_id', array('alias' => 'Groep_pe...
0e7dfdd1760c2dc416a7f2f7c863fc80
Shortcode : sm_social_icon Function for displaying typer texts.
[ { "docid": "91ba991ce6accdffcadd80efcbb28e80", "score": "0.6905787", "text": "function sam_martin_theme_functions_shortcode_sm_social_icon( $atts ){\n\textract( shortcode_atts( array (\n\t\t'facebook_link' => '',\n\t\t'twitter_link' => '',\n\t\t'dribbble_link' => '',\n\t\t'vimeo_link' => '',\n\t\t'p...
[ { "docid": "cc198bb1563a479708e089fe2f5817c8", "score": "0.7430841", "text": "function twitter_sc($atts){ \n return social_link_sc('Twitter', 'http://twitter.com/', $atts, 'images/icons/social/white/twitter_alt.png' );\n}", "title": "" }, { "docid": "eef272a2e8520752ed0c882655ff7991", ...
ef9af59e784546b613d9325b836deba1
to call the show function the url is index.php?page=task&action=show
[ { "docid": "a4432ab9cb796cc30e376e2c7ac3fd1a", "score": "0.0", "text": "public static function show()\n {\t\t\n\t\tsession_start();\n\t\t$userID = $_SESSION[\"userID\"];\n\t\t$record = useraccounts::findOne($userID);\n self::getTemplate('show_account', $record);\n }", "title": "" } ]
[ { "docid": "e33d5823c21a1a13b2cb807b110c1468", "score": "0.6911961", "text": "public function show(Task $task)\n {\n\n }", "title": "" }, { "docid": "1c17a048467bdd4665dff5a0b022922b", "score": "0.68796736", "text": "function ShowAction()\n\t\t{\n\t\t\t//retrieve post details\n...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "65c7e51c557119c4523c305976c470bc", "score": "0.80575514", "text": "public function create()\n {\n return view('Admin.acl.resource.form');\n }", "title": "" }, { "docid": "bb87b5e7b03ebf8127b27e4ff14ee77c", "score": "0.7914315", "text": "public function create...
77b556382f5e1210f17ad13921fc5171
Offers a 200 HTTP code to prove the service is still working.
[ { "docid": "624aab028293e9b7908479d2c0ab9c81", "score": "0.0", "text": "public function health(): Response\n {\n $response = new Response();\n $response->setStatusCode(Response::HTTP_OK);\n $response->headers->set('Content-Type', 'text/html');\n\n return $response;\n }"...
[ { "docid": "1b3428d6da5ab88a330dcc9122edd427", "score": "0.71367055", "text": "public function getResponseCode()\n {\n return 200;\n }", "title": "" }, { "docid": "08bb49c0f72beae214bd695a882e2657", "score": "0.6793052", "text": "public function seeResponseCodeIsSuccessf...
73881d013e3ee6a2156f9056da0a56af
/function to get all clients
[ { "docid": "8ebb188d7f274497a2c33aea630720ae", "score": "0.0", "text": "public function getClientsAll(){\n \n $client_analysts=DB::table('analyst_client')->get();\n \n $client_analyst_array=array();\n foreach($client_analysts as $key=>$value){\n ...
[ { "docid": "45612e4162c77218c2aa341a79cbfefb", "score": "0.82563645", "text": "public function getAllClients()\n {\n return $this->model->getAllClients();\n }", "title": "" }, { "docid": "17246954c27f5ef36d59e44ba9491b9d", "score": "0.8179964", "text": "public function g...
d36b11f32a222543b5b884e6d0625711
Get the value of updatedat
[ { "docid": "a120cb9a388a629ef1460c57c9c5a2ca", "score": "0.0", "text": "public function getUpdated()\n {\n return Carbon::parse($this->updated_at, 'Europe/Paris')->locale('fr_FR')->diffForHumans();\n }", "title": "" } ]
[ { "docid": "f8c261c43f3b74dec8f233449f09c3b7", "score": "0.8232281", "text": "public function getUpdateAt()\n {\n return $this->update_at;\n }", "title": "" }, { "docid": "f8c261c43f3b74dec8f233449f09c3b7", "score": "0.8232281", "text": "public function getUpdateAt()\n ...
d41ac44759a9a1fa1ed93544d2f26f97
Get the value of payer_selected
[ { "docid": "c6f042710dcda0e796f539d7c0137fa8", "score": "0.8761905", "text": "public function getPayer_selected()\n {\n return $this->payer_selected;\n }", "title": "" } ]
[ { "docid": "edd3711b2eb7c60128f8f7f4cfff9dc6", "score": "0.6767744", "text": "function getValue() {\n return $this->selected;\n }", "title": "" }, { "docid": "40469d99d3878eef8e482af31a0df6bb", "score": "0.6476162", "text": "public function get_value() {\n return $this->ge...
cbda7f50fd2205643c6e0ce3a16e5644
Returns a new EventocontrareciboQuery object.
[ { "docid": "2549f7f7838adf45e918e5ff2e02ec05", "score": "0.6213115", "text": "public static function create($modelAlias = null, $criteria = null)\n {\n if ($criteria instanceof EventocontrareciboQuery) {\n return $criteria;\n }\n $query = new EventocontrareciboQuery(nu...
[ { "docid": "d396fa5e6e2f18f62afdd986f0d8dff8", "score": "0.5837009", "text": "public function obterReservasEventosCanceladosInfra() {\n \n $data = date(\"Y-m-d\");\n \n $sql = \"\n SELECT \n *,\n p.nome AS pessoaNome,\n ...
5a2e39b605ef3024b173f89ee9576d5c
[fetch get all the reservations from the given user from the database based on the $when variable]
[ { "docid": "60527487e4efd54fde0ecdccdc71f8fd", "score": "0.66060203", "text": "public function fetch($code = null,$when) {\n if($when === 'expired'){\n $fetch = $this->_db->query(\"SELECT * FROM reservations WHERE ov = ? AND date < ? order by date\", array($code, date(\"Y-m-d\")));\n ...
[ { "docid": "1e429ec3d873fee6b775b2f673ba986e", "score": "0.62347203", "text": "public function reservations() {\n $this->template->content = View::instance(\"v_reservations_reservations\");\n $this->template->title = \"Reservations\";\n\n # Build the query to get all the users\n // $q = \"S...
99fedfc072e294877e0168c1b37b92a9
/ Usage: auth_pop3_ssl('username', 'password', 'pop3.example.com') If the host is using SSL, prepend $popserver with "ssl://" Original code from: Modified by Lord Matt: Updates and fixes by Andrew Peng: This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see
[ { "docid": "225c91f7897b5ba25317a83676c9fe05", "score": "0.87244534", "text": "function auth_pop3_ssl($username, $password, $popserver)\n\t{\n\n\t\t$isSSL = 0;\n\n\t\tif(substr($popserver, 0, 6) == \"ssl://\")\n\t\t{\n\t\t\t$isSSL = 1;\n\t\t}\n\n\t\tif(trim($username)=='')\n\t\t{\n\t\t\treturn false;\n\...
[ { "docid": "d7aade9807ba6d51d7a8da282d200e6a", "score": "0.68369836", "text": "private function authSecurePOP3($theMailserver, $theUsername, $thePassword)\n\t{\n\t\t/* check if the input for $theMailserver is blank */\n\t\tif( $theMailserver!=\"\" )\n\t\t{\n\t\t\t/* input for $theMailserver is not blank...
68c80ac76bc202448bb43e572b7d140d
Provide support for website id filter
[ { "docid": "b455fc06ab7e5505f12fc52cdef85ddd", "score": "0.0", "text": "public function addFieldToFilter($field, $condition = null)\n {\n if ($field == 'website_ids') {\n return $this->addWebsiteFilter($condition);\n }\n\n if ($field == 'customer_ids') {\n r...
[ { "docid": "43ceaa8e4eb0461436dc96664eb60667", "score": "0.65592295", "text": "public function getWebSiteId();", "title": "" }, { "docid": "fef95a1a0ea98b88437d6158f781df6a", "score": "0.61742526", "text": "function add_id_to_ucfhb($url) {\n if ( (false !== strpos($url, 'bar/js/un...
0cb806c02c6a7b818fab4c4926635a73
Convenient way to add query parameters.
[ { "docid": "db6df5bb23869997999d4d017e59b5e7", "score": "0.0", "text": "private function addParameters($aggregation, array $parameters): void\n {\n foreach ($parameters as $key => $parameter) {\n $aggregation->addParameter($key, $parameter);\n }\n }", "title": "" } ]
[ { "docid": "39f6cf473facfbcf54488118c84e7238", "score": "0.8101697", "text": "function addQueryParam($key, $value);", "title": "" }, { "docid": "2f39178de32007ea9920a6f63cf8509b", "score": "0.7324299", "text": "public function addParametersToUrl(){\n if(sizeof($this->parameter...