query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
9d99fa4e49a6791a23aae607c67b81e2
Endpoint para renderizar la vista principal he inyectar filtros de las columnas a js
[ { "docid": "23b2602268107fc637a1e8e9eda69715", "score": "0.0", "text": "public function index()\n\t{\n\t\treturn view('tabla', ['columns' => $this->TableLibrary->getDataAllColumns()]);\n\t}", "title": "" } ]
[ { "docid": "25f851c5b05a22e1c0f9b4bc13242746", "score": "0.6866177", "text": "private function setFilters() {\n\t\t$columns = \"\";\n\t\tif ($this->hasfilter) {\n\t\t\t$columns = \"<tr class=\\\"filters\\\">\";\n\t\t\tfor($i = 0; $i < count ( $this->columns ); $i ++) {\n\t\t\t\tif(!empty($this->columns[...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "3433918f06442c40c6204b43a4484100", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "d752fd3972b546ef194ae14ab221ca30", "score": "0.78550774", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", ...
004337e1e97391decaaad4135393b173
Configure the command by defining the name, options and arguments
[ { "docid": "be50e154790a5a8284c9f64277f4c3f6", "score": "0.0", "text": "protected function configure(): void\n {\n $this->setDescription('Process bounced emails.')\n ->addOption(\n 'maxEmails',\n 'm',\n InputOption::VALUE_REQUIRED,\n ...
[ { "docid": "b9ef7cdc4cb2cc9a2a63571c12a3c9da", "score": "0.82549083", "text": "protected function configure()\n {\n $this\n ->setName(self::COMMAND_NAME)\n ->setDescription('Prints Hello \"name\" where a name is a dynamic parameter')\n ->addOption('name', null,...
5a71f1b3cae51a9f8d5071cf2740c179
Valide or invalidate a mindcraft map That will allow or not the student to consult the mindmap
[ { "docid": "5ce1e715556550b8268f789979719e27", "score": "0.6286767", "text": "function mindcraft_validate($id){\n global $DB, $USER;\n if (! $mindcraft_map = $DB->get_record(\"mindcraft_maps\", array(\"id\"=>$id))) {\n return false;\n }\n if($USER->id == $mindcraft_map->userid) {\n ...
[ { "docid": "c6d546619284cd45bc6dec0e64c87df1", "score": "0.57926947", "text": "function mindcraft_update_instance($mindcraft) {\n global $DB;\n $mindcraft->id = $mindcraft->instance;\n $mindcraft_old = $DB->get_record(\"mindcraft\", array(\"id\" => $mindcraft->id));\n if($mindcraft->nummap <...
9c03d95747baacee64ef13c66ab4748f
this is overridden to either take a namespace or an instantiated class. Doing it this way allows for a consistent approach to building forms including custom widgets.
[ { "docid": "afc0924bdb4bb9ad992f2deb615b9f4f", "score": "0.0", "text": "function &get($namespaceOrObject, $aConfig = null) {\n if (is_string($namespaceOrObject)) {\n $oValidator =& $this->getValidatorByNamespace($namespaceOrObject);\n } else {\n $oValidator = $namespa...
[ { "docid": "c285d0bc762d271de2c37c15137dbdc4", "score": "0.5570016", "text": "function initWidget() {\n if ( !is_null($this->widgetClassName) && class_exists($this->widgetClassName) ) {\n register_widget( $this->widgetClassName );\n }\n }", "title": "" }, { "docid": "45655d49c85d...
9390869bd708d0f0a498ae685fc2a4f1
Add filters to the filter.
[ { "docid": "220b9fb050c352d3d609b1a21aee1aa3", "score": "0.656537", "text": "public function addFilters(Collection $filters)\n\t{\n\t\tforeach ( $filters as $filter ) {\n\t\t\tif (!$this->filters->contains($filter)) {\n\t\t\t\t$this->filters->add($filter);\n\t\t\t\t$filter->setAccountFilter($this);\n\t\...
[ { "docid": "08b6a46993bc9b679115740906f90daf", "score": "0.8206877", "text": "public function addFilters() {\n\t\t$this->addFilter(new Generator\\Filters\\Upper);\n\t\t$this->addFilter(new Generator\\Filters\\Lower);\n\t\t$this->addFilter(new Generator\\Filters\\Date);\n\t\t$this->addFilter(new Generato...
4f7648c12791c8677e525b891c8c9eab
Edit an organisation's details
[ { "docid": "121aeb60dcd99b64229100e10dfd1f1d", "score": "0.79804516", "text": "public function editAction() {\n $form = new OrganisationForm();\n $form->submit->setLabel('Update organisation');\n $this->view->form = $form;\n if ($this->_request->isPost()) {\n $form...
[ { "docid": "c989971097e8fc101a55ef8d6315e460", "score": "0.82706994", "text": "public function edit(Organisation $organisation)\n {\n //\n }", "title": "" }, { "docid": "d4df908a9d336e223823d90ecf0e2aaa", "score": "0.7204878", "text": "public function edit(Corporate $cor...
8e680dc439f2ce9215ea521dadcb2873
Test to add two numbers
[ { "docid": "ac134aa8b115e96a51885ed536576540", "score": "0.7464503", "text": "public function testAdd() {\n\t\t$equals = $this->calculator->add(1, 2);\n\t\t$this->assertEqual(3, $equals);\n\t\t\n\t\t$equals = $this->calculator->add(-1, -2);\n\t\t$this->assertEqual(-3, $equals);\n\t\t\n\t\t$equals = $thi...
[ { "docid": "43a19a319d45da6807947357324f2dc6", "score": "0.7988629", "text": "public function testaddnumbers()\r\n {\r\n $no1=3;\r\n $no2=1;\r\n $res=addnumbers($no1, $no2);\r\n $this->assertEquals(3,$res);\r\n }", "title": "" }, { "docid": "d301a9de180495b4...
a0be0417ec9944f49ab7515685ff0291
Get a validator for an incoming registration request.
[ { "docid": "5c3cb181a3c186929c4aca7fbda04e07", "score": "0.0", "text": "public function showSignup()\n {\n\n $data['title'] = 'Create an account - Fulllance';\n return view('auth.register', ['data' => $data]);\n }", "title": "" } ]
[ { "docid": "36a8257885a3ff12838660c93e4db633", "score": "0.719754", "text": "protected function getValidatorInstance()\n {\n $factory = $this->container->make(Factory::class);\n\n if (method_exists($this, 'validator')) {\n return $this->container->call([$this, 'validator'], compact('factory'...
b55a86a6438999dd529300a1090abae1
PHP's standard parse_url( ) looks useful. It splits apart a URL and returns an associative array containing the scheme, host, path, and so on. It works well on simple URLs like " However, it has problems parsing complex URLs, like " It is confused by some relative URLs, such as "//example.com/index.htm". And it doesn't...
[ { "docid": "1a865fed1f51babfbdef9702778bad99", "score": "0.6258441", "text": "public function split_url($url, $decode = true)\n\t{\n\t\t$parts = [];\n\t\t$xunressub = 'a-zA-Z\\d\\-._~\\!$&\\'()*+,;=';\n\t\t$xpchar = $xunressub . ':@%';\n\n\t\t$xscheme = '([a-zA-Z][a-zA-Z\\d+-.]*)';\n\n\t\t$xuserinfo = '...
[ { "docid": "aab81f6b63a85a187dd9ac4380ad1c5b", "score": "0.76315045", "text": "public static function parse($url)\n {\n $options = [\n 'path' => null,\n 'query' => [],\n 'fragment' => '',\n ];\n\n // External URLs: not using parse_url() her...
01a515de0aff373825efd66bddd3f10b
draws everything that comes before the body content
[ { "docid": "5b21d404c128dbbe463683e20ddc66f4", "score": "0.56166047", "text": "function draw_top($title)\n{\n print \"<html>\\n<head>\\n\";\n print \"<title>$title</title>\\n\";\n print \"<link href='include/default.css' rel='stylesheet' type='text/css' />\\n\";\n print \"</head>\\n\\n<body>\\n\";\n...
[ { "docid": "538f8a97bda329675d65a173b5132206", "score": "0.6472899", "text": "function draw_bottom()\n{\n print \"</div>\\n</div>\\n</body>\\n\\n</html>\";\n}", "title": "" }, { "docid": "b23a73e68a7ba0a979eb2d615e3aef87", "score": "0.64679414", "text": "public function drawBody()\n...
4c7fddb0a24859d108522e2775bab393
Ajax call for Livraison List
[ { "docid": "daae5972a618ee276bed883cbcd3b6b5", "score": "0.0", "text": "public function index_json($id = 0)\n {\n $pagelength = $this->input->post('length');\n $pagestart = $this->input->post('start');\n\n $order = $this->input->post('order');\n $columns = $this->input-...
[ { "docid": "8845b9bfb33325a1d4d2d329c94e6eb9", "score": "0.6731118", "text": "public function listeConsultationsAjaxAction() {\n\t \n\t\t$output = $this->getConsultationTable ()->getListeConsultations();\n\t\treturn $this->getResponse ()->setContent ( Json::encode ( $output, array ( 'enableJsonExprFi...
4bba10d28ea02a1689c4208a6db552f1
/ Forms Delete form text.
[ { "docid": "0258e4644c13275cef2ee5f79bee0e89", "score": "0.7809928", "text": "function formsDeleteForm($text){\n array_push($text, array('key' => 'PARENT_FORMS_DELETE_FORM',\n 'parent' => '',\n 'text' => 'Forms ...
[ { "docid": "77a2426981ea0cb5dab70e3cdc963d36", "score": "0.77150893", "text": "function formsFormDeleteField($text){\n array_push($text, array('key' => 'PARENT_FORMS_FORM_DELETE_FIELD',\n 'parent' => '',\n 'text...
903e33307b953f04a77fe304521fd27e
get filtered orders for this seller
[ { "docid": "abc415ecdf6a2946ff9fc1b962ee596f", "score": "0.67161715", "text": "public function sellerOrderListFiltered(Request $request){\n $orders = \\App::call('App\\Http\\Controllers\\OrderController@viewBySeller', [$request->user()->seller->id]);\n return view('seller.order-list-data',...
[ { "docid": "c7da32ac106594c2869beb826b3beee4", "score": "0.65357584", "text": "public function getOrders($filter = array()) {\n return $this->getTable()->getOrders();\n }", "title": "" }, { "docid": "0f78ffb792d0e3cea51d6eb6ab4ad131", "score": "0.65243787", "text": "public ...
aac63630c81b9e497bdc10191a392b71
add a node to the head of the list
[ { "docid": "c32c4c93a0bf4625966511c8f654cad4", "score": "0.6438281", "text": "public function attach($head,$node){\n $node->setPrevious($head);\n $node->setNext($head->getNext());\n $head->getNext()->setPrevious($node);\n $head->setNext($node);\n }", "...
[ { "docid": "1eabbc6b2af459c540878f0ac2c94e7c", "score": "0.76509655", "text": "function addAtHead($val) {\n\t\t$new_node = new self($val);\n\t\t$new_node->next = $this->next;\n\t\t$this->next = $new_node;\n\t}", "title": "" }, { "docid": "7bfc097fe429f47709f19cd582b0eaa2", "score": "0.75...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "76d41b5ce0641a57166c8f9e54e2de28", "score": "0.0", "text": "public function run()\n {\n $stationary = Stationary::first();\n $stationary->stationary_pathological_anatomical()->create([\n 'autopsy_date' => now(),\n 'autopsy_protocol' => 787,\n ...
[ { "docid": "963776365fb19044e27fa4db733ae2fd", "score": "0.80740553", "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 ...
22503261743fa2f0f456ffd1e18c90d3
utils for dashbord change menu list. change labels && remove item form menu.
[ { "docid": "b553cc190bc674ac488da085e53a85af", "score": "0.6662935", "text": "function change_menulist() {\n global $menu;\n global $submenu;\n // var_dump($menu);\n // var_dump($submenu);\n // $menu[5][0] = 'ニュース'; // 投稿をニュースに変更\n // $submenu['edit.php'][5][0] = 'ニュース一覧'; // 投稿一覧をニュース...
[ { "docid": "8eb1b192f4a1c335063525d86a11b590", "score": "0.6706497", "text": "function crm_change_post_menu_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'Slides';\n\t$submenu['edit.php'][5][0] = 'Slides';\n\t$submenu['edit.php'][10][0] = 'Add Slides';\n\t$submenu['edit.php'][15][0] = ...
0b08abeba713499b49ddb47ba0e88f53
Remove the specified delivery from storage.
[ { "docid": "ca61b915048a086b3e97fdb6f8f99194", "score": "0.54564685", "text": "public function destroy($id)\n\t{\n\t\tDelivery::destroy($id);\n\n\t\treturn Redirect::route('deliveries.index');\n\t}", "title": "" } ]
[ { "docid": "2dc9e11fbde181fc5032076d53e632d2", "score": "0.7379445", "text": "public function destroy(Delivery $delivery)\n {\n\n }", "title": "" }, { "docid": "6aa8866a9822ed4bdf6c4993103f933d", "score": "0.6577091", "text": "public function destroy(DeliveryOrder $deliveryOrde...
d469c159edcdacd549f98bf53117b97f
echo "Excluindo tipo_Relacao ";
[ { "docid": "6288bb0bdb1bde73de58b56be00f5818", "score": "0.0", "text": "public function Delete(&$MsgErro){\r\n\t\t\t\t\t\t\r\n\t\t$query = 'DELETE FROM tipo_Relacionamento WHERE TP_Relacao = \"' . $this->TP_Relacao . '\"';\r\n\t\r\n\t\t$result = mysql_query($query);\r\n\t\tif (!($result && (mysql_affect...
[ { "docid": "ea9b0d39834c53a22272923fe3e886e8", "score": "0.68168664", "text": "function elimina(){\n\t\t$id = $this->uri->segment(4);\n\t\t$idnoco = $this->uri->segment(5);\n\t\t$dbid = $this->db->escape($id);\n\t\t$msql = \"DELETE FROM itnoco WHERE id=${dbid}\";\n\t\t$this->db->query($msql);\n\t\...
f7f5da676f102b809945c49672a23122
Defines the ending Gantt bar date value. The starting Gantt bar point is stored at TGanttSeries.StartValues StartValues and EndValues can be specified both as DateTime or double values. Both are standard TChartValueList components. That means you can access their values with same methods as you can access X or Y values...
[ { "docid": "150ed943aa69b8d6d69f9cd8f395de22", "score": "0.62216836", "text": "public function getEndValues()\r\n {\r\n return $this->endValues;\r\n }", "title": "" } ]
[ { "docid": "cba8377d465cb1298916633ed200c6fa", "score": "0.5878036", "text": "public function setEndDate($value)\n {\n return $this->set('EndDate', $value);\n }", "title": "" }, { "docid": "cba8377d465cb1298916633ed200c6fa", "score": "0.5878036", "text": "public function...
50bd51cfe20f43f5793d1511debb44a5
Returns properties of object as an array
[ { "docid": "05cf2c5e80cd2e1295df9a481a694d65", "score": "0.7532108", "text": "function toArray() {\n\t\treturn get_object_vars($this);\n\t}", "title": "" } ]
[ { "docid": "815924fdd7c47e00b4c7a3105bde965a", "score": "0.86150014", "text": "public function getPropertiesAsArray();", "title": "" }, { "docid": "815924fdd7c47e00b4c7a3105bde965a", "score": "0.86150014", "text": "public function getPropertiesAsArray();", "title": "" }, { ...
ec2457e403910f5421f5a0643da01183
getViewMode // Get the page title.
[ { "docid": "c69d9bfc81e7609a3a1f828c5f29d59b", "score": "0.7707876", "text": "public function getPageTitle () {\n\n return $this->page_title;\n\n }", "title": "" } ]
[ { "docid": "2a8d48816b51a76999060107b679289d", "score": "0.76851696", "text": "public function getPageTitle();", "title": "" }, { "docid": "2a8d48816b51a76999060107b679289d", "score": "0.76851696", "text": "public function getPageTitle();", "title": "" }, { "docid": "0f1d...
6943ca843f0499722ea80f2c0c2f508f
Found the place of a binary.
[ { "docid": "c345809c9a494396b97827d27ecd5729", "score": "0.5008909", "text": "public static function locate(string $binary)\n {\n if (isset($_ENV['PATH'])) {\n $separator = ':';\n $path = &$_ENV['PATH'];\n } elseif (isset($_SERVER['PATH'])) {\n $separato...
[ { "docid": "476c69c353059fce19a51c11de068e84", "score": "0.7096628", "text": "abstract public function findBinary($binary);", "title": "" }, { "docid": "facbaadcbf621a9ccc18097b93f9cb5c", "score": "0.56645745", "text": "public function is_binary($text)\n {\n }", "ti...
a8130f47c23aa4e50d9bf24533faacba
using STATIC to ammend variables permanently
[ { "docid": "a1d301edecc42ef9051053d6732605cb", "score": "0.0", "text": "function ageCount(){\n static $fAge = 22;\n echo \"$fAge <br>\";\n $fAge+=10;\n }", "title": "" } ]
[ { "docid": "14fd9f2a70526cb63e41acef1e442799", "score": "0.6447224", "text": "public function extraStatics() {}", "title": "" }, { "docid": "2b5c74f53ec3f40fb88f5449ad215d4e", "score": "0.6140889", "text": "public function makeStatic() {}", "title": "" }, { "docid": "2b5c...
8434129f65946572818d460a501242fc
Reserve the slug $this>slug/apply for the page named that
[ { "docid": "f0c490ae5926bd810dcc623995c6b2fc", "score": "0.0", "text": "function rewrite_apply_page( $rules ) {\n\t\t\n\t\t$my_rule = [];\n\t\t\t\n\t\t$my_rule[$this->slug.'/apply/?$'] = 'index.php?pagename='.$this->slug.'/apply'; \t\n\t\t\n\t\t//Put our rule first since its pretty specific and importan...
[ { "docid": "96fbc3e8001437cd644b18fe6bb36fbf", "score": "0.6365038", "text": "public function initializeSlug(){\n if(empty($this->slug)){\n $slugify = new Slugify();\n $this->slug = $slugify->slugify($this->name);\n }\n }", "title": "" }, { "docid": "fc...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "cd749a934c696538b3e099b4d2ba0015", "score": "0.7626235", "text": "public function create()\n {\n $fields = $this->getModelAttributes();\n return view('admin::resource.create', [\n 'fields' => $fields,\n 'model_name' => $this->modelName,\n ]);\n ...
75ae5fd46810921ba7bbe5148f3c67d5
Returns the number of related StudentAssignmentFile objects.
[ { "docid": "7d2b0b9dc01c32124914427c1cbb5136", "score": "0.619462", "text": "public function countStudentAssignmentFiles(Criteria $criteria = null, $distinct = false, PropelPDO $con = null)\n {\n $partial = $this->collStudentAssignmentFilesPartial && !$this->isNew();\n if (null === $thi...
[ { "docid": "fc483ddadb7c53d643a7a92556089070", "score": "0.6441312", "text": "public function count()\n {\n return count($this->files);\n }", "title": "" }, { "docid": "7664cea854b056f4013720b0d51ab40a", "score": "0.63947", "text": "public function count()\r\n {\r\n re...
6decfe0cbe310acf9450850f7d9f9e3a
Generate a sitemap only on an array of urls
[ { "docid": "9986d6ca8dff67c4ea35e9661b58cf70", "score": "0.0", "text": "public function articles() {\n\n $this->SitemapModel->output();\n }", "title": "" } ]
[ { "docid": "d42065b5e9b30ebfeb3f42f25c8d0d2d", "score": "0.700948", "text": "public function get_sitemap_xml($url_list)\n {\n }", "title": "" }, { "docid": "9fb2aeda9bbd8a53fecf24e654b18c32", "score": "0.69993085", "text": "public function actionBuildsitemap()\n\t{\n\t\...
c84e29c4351ddee4e29fffb2e814b9b2
Sets a new tenderResultCode BBIE Tender Result. Tender_ Result Code. Code A code signifying the result of the tendering process. 0..1 Tender Result Tender Result Code Code Code. Type
[ { "docid": "e97c41496cf1504f0dd9389aedf8dd68", "score": "0.6780601", "text": "public function setTenderResultCode(\\horstoeko\\ubl\\entities\\cbc\\TenderResultCode $tenderResultCode)\n {\n $this->tenderResultCode = $tenderResultCode;\n return $this;\n }", "title": "" } ]
[ { "docid": "e198e8cecad6807a3782b81f9a43f1f8", "score": "0.6783658", "text": "public function getTenderResultCode()\n {\n return $this->tenderResultCode;\n }", "title": "" }, { "docid": "148fd73a220321ab39a2a1adf8e68442", "score": "0.58756894", "text": "public function s...
11aaad46c48f540c3cc28a8b92ed5639
Proxy save logic to concrete value model(s)
[ { "docid": "90a89c1c8b3894700a8f9328e0bc7d62", "score": "0.69745386", "text": "public abstract function save();", "title": "" } ]
[ { "docid": "b4e54ba3183b388b77e84202fa9918a6", "score": "0.7082082", "text": "public function save($model, $value);", "title": "" }, { "docid": "02325d482754f1ff67a453105ba6d1be", "score": "0.69786996", "text": "abstract public function save();", "title": "" }, { "docid":...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "8f8305b77ba24d7063494b8fe030c15e", "score": "0.0", "text": "public function run()\n {\n $articles = Article::factory(100)->create();\n $tags = collect();\n foreach ($this->getTags() as $tag) {\n $tags->push(Tag::factory()->create(['name' => $tag]));\n ...
[ { "docid": "5a2cd3aba17d761d018ca18fe576b099", "score": "0.8065376", "text": "public function run()\n {\n $faker = Faker::create('id_ID');\n /**\n * Generate fake author data\n */\n for ($i=1; $i<=50; $i++) { \n DB::table('author')->insert([\n ...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2c98669cb323c6582467082f9265692a", "score": "0.0", "text": "public function create()\n {\n $categories = $this->cateService->getCategoryActive();\n\n if(empty($categories)) {\n $categories = [];\n }\n\n return view('admin.pages.product.add', compact(...
[ { "docid": "2aaf2ecaef4fe756e441fbe5133d649b", "score": "0.77659076", "text": "public function create()\n {\n return view('resource::create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()\n ...
76bf3ebba929d0c1172aa876b30bb46e
Method called when an object has been exported with var_export() functions It allows to return an object instantiated with the values
[ { "docid": "e90f5857b227b39d4cb8848587a50310", "score": "0.0", "text": "public static function __set_state(array $array)\n {\n return parent::__set_state($array);\n }", "title": "" } ]
[ { "docid": "6ed846527f9bfc76147d940acc1e90ef", "score": "0.69235533", "text": "protected function constructExportObject()\n\t{\n\t\t//default export is \"all public fields\"\n\t\treturn (object) Arrays::getPublicPropertiesOfObject($this);\n\t}", "title": "" }, { "docid": "7ef89210e6bb9490550...
32341fa1a414fa9acb7c4b315137abb6
/ To driver based report list using date
[ { "docid": "b477cf59d9dce2d03246db39e6e631c9", "score": "0.0", "text": "public function report_chart(Request $data) {\n\t\t$data_all = $data->all();\n\t\t$rules = array(\n\t\t\t'language' => 'required',\n\t\t\t'driver_id' => 'required',\n\t\t\t'token' => 'required',\n\t\t\t'search_date' => 'required',\n...
[ { "docid": "413fb8c60799a79bcf0aab778db413fc", "score": "0.63490313", "text": "public function dailyReport(){\n\t\t$this->checkYesterdayReport();\n\t\t$this->todayReport();\n\t}", "title": "" }, { "docid": "849ac94400ad6376b0cc58bd3a062329", "score": "0.613628", "text": "public funct...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "263762ba10891ce32463cb802f45d73f", "score": "0.0", "text": "public function destroy(Producto $producto)\n {\n if(Auth::user()==$producto->user || Auth::user()->tipo==1){\n $id = $producto->user->id;\n try{\n if($producto->foto1!=null && $product...
[ { "docid": "f1aaf41a7156fa1ddfcdb965f9ec5b59", "score": "0.77682966", "text": "public function remove($resource)\n {\n if($this->exist($resource)){\n unset($this->resources[$resource]);\n }\n }", "title": "" }, { "docid": "8b628383b34d63dd0eb00f58ca93193b", ...
81fa5e06ae16f29cb735ea68e423b522
Get the right value of the tile
[ { "docid": "b5235de757e95f31c678fffb84654724", "score": "0.52708256", "text": "public function getRight()\n {\n return $this->values[self::RIGHT];\n }", "title": "" } ]
[ { "docid": "ee7f052cdac5118e24142d07faa3416f", "score": "0.6922593", "text": "public function get_tile($tile) {\n\t\treturn $this->_data[$tile];\n\t}", "title": "" }, { "docid": "b03cb2fe2a633dc3d3e5cf07cc17ccde", "score": "0.6388917", "text": "function get_tile($tile)\n \t{\n \t$res...
7108ac32a562de07cdd5b881e3837388
Function used for sorting posts.
[ { "docid": "fe50d8a327de61bc40ed6ed7bbf2cf87", "score": "0.0", "text": "private static function compareTime($a, $b)\n {\n //From newest to oldest\n if(self::$SORTING == SORT_DESC) {\n return $b[\"created_at\"] - $a[\"created_at\"];\n } elseif(self::$SORTING == SORT_ASC...
[ { "docid": "18491067313323366f89a3e128510e39", "score": "0.7255636", "text": "public function sort_posts() {\n\t\t?>\n\t\t<style type=\"text/css\">\n\t\t#icon-reorder-posts {\n\t\t\tdisplay: none;\n\t\t\tbackground:url(<?php echo $this->icon; ?>) no-repeat;\n\t\t}\n\t\t</style>\n\t\t<div class=\"wrap\">...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "77fd56d562d3cdc85996bd20f85d3154", "score": "0.0", "text": "public function destroy($id)\n {\n $dt = Dosetype::find($id);\n $dt->delete();\n return redirect()->route('dosetype.index');\n }", "title": "" } ]
[ { "docid": "4b8255c05a264d5d61f546d7bcd507ce", "score": "0.6672584", "text": "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public functio...
e24f2754edc5f72c4f89dde5b6d8eb8c
/ Set Encoding type
[ { "docid": "b6d7369f65cbc487715a34c4aae7e64b", "score": "0.8292731", "text": "function setEncoding($type)\n {\n $this->enctype=$type;\n }", "title": "" } ]
[ { "docid": "8726a7683fd76f44cae657a29b739259", "score": "0.75140727", "text": "public function setEncoding(string $value) {\n $this->encoding = $value;\n }", "title": "" }, { "docid": "24e91ab33aaeac8e67d4a3139f9f2870", "score": "0.7200163", "text": "public function setEncoding($...
a0c807a713f9a59888ad512dc6a0976e
Returns the message Body, can be either html or text
[ { "docid": "b136b721e44b04767615d63bb4ab1f44", "score": "0.0", "text": "public function getBody() {\n\t\t$view = $this->createStandaloneView();\n\t\t$view->assignMultiple($this->templateData);\n\n\t\treturn $view->render();\n\t}", "title": "" } ]
[ { "docid": "0e0c46873dec8ff1e06a6ab27c27877e", "score": "0.772265", "text": "public function htmlBody() {\n\t\tif (!array_key_exists('html', $this->data[$this->alias]['msg'])) {\n\t\t\treturn '';\n\t\t}\n\t\treturn $this->data[$this->alias]['msg']['html'];\n\t}", "title": "" }, { "docid": "2...
cb0db63993b4f96c598f5765a15bcea2
view details of leave
[ { "docid": "5c0b7fc5f1fcb8c39b863100cfed8966", "score": "0.6975064", "text": "public function viewRequest($leave_id) \n\t{\n\t\t$this->db->where(\"id\", $leave_id);\n\t\t$query=$this->db->get('leave');\n\t\treturn $query->result();\t\t\n\t}", "title": "" } ]
[ { "docid": "21a390ab825cbcabf8c4a95d26a95e37", "score": "0.8421501", "text": "public function leavedetails(){\n\t\t\n\t\treturn view('leaves.leave_details');\n\t}", "title": "" }, { "docid": "8f6ddf63c288236b50b75bdf3336b0d0", "score": "0.8254925", "text": "public function leaveInfo(...
916041f1d19504a653603b34b8b99363
this function means withdraw from bank & deposit to locker
[ { "docid": "d19a6052d3b08e2f2c52fabec6d70de3", "score": "0.0", "text": "static function create_locker_bank_transaction(BankReceivePermission $bank_receive) {\n $data = [\n 'locker_id' => $bank_receive->locker_exchange_permission->fromLocker->id,\n 'account_id' => $bank_recei...
[ { "docid": "4c396215b030e47ece69708bb017ba21", "score": "0.77627593", "text": "function do_withdraw()\n\t{\n\t\t$this->ipsclass->input['points'] = str_replace( ',', '', $this->ipsclass->input['points'] );\n\t\t$this->ipsclass->input['pts'] = str_replace( '-', '', intval($this->ipsclass->input['points'])...
8a0a27153e7e284134aa799e043034f0
Called before Zend_Controller_Front enters its dispatch loop. During the dispatch loop, Zend_Controller_Front keeps a stack of Zend_Controller_Dispatcher_Token objects, and uses Zend_Controller_Dispatcher to dispatch the Zend_Controller_Dispatcher_Token objects to controllers/actions.
[ { "docid": "48acc6f9e266096f220b4da42adb5928", "score": "0.0", "text": "public function dispatchLoopStartup($action)\r\n\t{\r\n\t foreach ($this->_plugins as $plugin) {\r\n\t $action = $plugin->dispatchLoopStartup($action);\r\n\t }\r\n\t return $action;\r\n\t}", "title": "" } ]
[ { "docid": "b280601782705ae694e456ff6425237d", "score": "0.72887975", "text": "public function preDispatch(){\n\n parent::preDispatch();\n $controllerName = $this->getRequest()->getControllerName();\n $actionName = $this->getRequest()->getActionName();\n Zend_Registry::set('c...
9d25c2645f2350ed4e0e5f175242f878
Set up common test part
[ { "docid": "b1e83f1d98fc9174289680d2984c6e15", "score": "0.0", "text": "public function setUp()\n {\n $this->event = Phake::mock('FOS\\UserBundle\\Event\\FormEvent');\n $this->router = Phake::mock('Symfony\\Component\\Routing\\RouterInterface');\n\n $this->subscriber = new ResetP...
[ { "docid": "697bd3857cdc4614341778bb8331f133", "score": "0.78748685", "text": "abstract protected function setUp();", "title": "" }, { "docid": "e8a26c46c060842a2ef06064c53437a5", "score": "0.7697959", "text": "protected function setUp() {}", "title": "" }, { "docid": "e8...
381075b9e52e8d1954f31b7e78ce6288
Get options in "keyvalue" format
[ { "docid": "1e6c2a80cba4eed5f2fac813449c5b43", "score": "0.0", "text": "public function toArray()\n {\n $store_option_hash = $this->_getStoreOptionHash();\n $translated_store_option_hash = array();\n foreach($store_option_hash as $store_id => $store_name)\n {\n ...
[ { "docid": "9ec25384d76a8e2f2dd1bf5c7f2b1795", "score": "0.76220244", "text": "public function options()\n\t{\n\t\t$assoc_arr = json_decode($this->options);\n\n\t\treturn $assoc_arr;\n\t}", "title": "" }, { "docid": "e6c27343bca2aa7426bf11c9d26757b1", "score": "0.74756604", "text": "...
fcb394468651c4a9260a29d130040f0b
Export set Contenttype's records to the export file.
[ { "docid": "3ea1b0cc3d178c71185eab4e228eb1cd", "score": "0.7450762", "text": "public function exportContenttypesRecords()\n {\n if ($this->getError()) {\n return $this;\n }\n\n // Keep track of our export progress as some data formats require closing elements\n ...
[ { "docid": "8682afc156d8e5f2490725bcadeb9f0b", "score": "0.6630922", "text": "private function exportContenttypeRecords($contenttype, $last)\n {\n // Get all the records for the contenttype\n $records = $this->app['storage']->getContent($contenttype);\n $data = array();\n\n ...
cfc1269c83936225179f05b021c0d344
This function appears in the table if no objects are found.
[ { "docid": "9e167d80068815d3a8bcafedc071b325", "score": "0.0", "text": "function no_items() {\n\t\tesc_attr_e( 'No assessments found.' );\n\t}", "title": "" } ]
[ { "docid": "6127a22578d61553b13a4692237786cf", "score": "0.59200794", "text": "function noDataFound(){\n $this->tblOpen();\n $this->rowOpen(0, $this->rowColor[0]);\n $add_column = 0;\n if((isset($this->modes['add'][$this->mode]) && ($this->modes['add'][$this->mode])) ...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.7631773", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "b8b614ce042ab5ea8a3e6ef84e6e7778", "score": "0.713407", "text": "public function edit($id)\n {\n $res = Re...
67a28ecc130a26fcaf7c5a91b9ccc6f2
/ Operation getRangeTextOnline Reads range text from the document.
[ { "docid": "43daba70c9dcd9bb7b6e87763a345d33", "score": "0.7625971", "text": "public function getRangeTextOnline(Requests\\getRangeTextOnlineRequest $request)\n {\n try {\n list($response) = $this->getRangeTextOnlineWithHttpInfo($request);\n return $response;\n }\n...
[ { "docid": "120f7b2b371c6e52050d076813f27506", "score": "0.7686651", "text": "public function getRangeTextOnlineAsync(Requests\\getRangeTextOnlineRequest $request) \n {\n return $this->getRangeTextOnlineAsyncWithHttpInfo($request)\n ->then(\n function ($response) {\n ...
5ec3c50f8edd7fe917399714bfcf3377
remove unwanted dashboard widgets
[ { "docid": "22b141c6ece08b3133622d93685a7b6c", "score": "0.79536325", "text": "public function remove_dashboard_widgets()\n {\n // Quickpress\n remove_meta_box('dashboard_quick_press', 'dashboard', 'side');\n // WP News\n remove_meta_box('dashboard_primary', 'dashboard', '...
[ { "docid": "949a2883cf57456891377eedc420f62e", "score": "0.83561313", "text": "function essence_dashboard_widgets() {\n remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal');\n remove_meta_box('dashboard_plugins', 'dashboard', 'normal');\n remove_meta_box('dashboard_primary', 'dash...
9bc4d2090cc99f2dc70ac6a0a81391a2
Get an array of items that are not marked no_tax
[ { "docid": "ecd4d16babec201596ac415cd0b84753", "score": "0.63639116", "text": "public function taxable_items()\n\t{\n\t\t$items = array();\n\t\t\n\t\tforeach ($this->items as $item)\n\t\t{\n\t\t\tif ($item->is_taxable())\n\t\t\t{\n\t\t\t\t$items[$item->row_id()] = $item;\n\t\t\t}\n\t\t}\n\t\t\n\t\tretur...
[ { "docid": "f6f8c2cb7f7d50a2a1233cb943ce6f85", "score": "0.8030109", "text": "public function non_taxable_items()\n\t{\n\t\t$items = array();\n\t\t\n\t\tforeach ($this->items as $item)\n\t\t{\n\t\t\tif ( ! $item->is_taxable())\n\t\t\t{\n\t\t\t\t$items[$item->row_id()] = $item;\n\t\t\t}\n\t\t}\n\t\t\n\t\...
a6faa2cb12377d59776a7ca093e17c21
Removes obsolete files and folders
[ { "docid": "e6b10624f4cc9a2a1019e106066702d7", "score": "0.0", "text": "private function _removeObsoleteFilesAndFolders($akeebaRemoveFiles)\n\t{\n\t\t// Remove files\n\t\tJLoader::import('joomla.filesystem.file');\n\t\tif (!empty($akeebaRemoveFiles['files']))\n\t\t{\n\t\t\tforeach ($akeebaRemoveFiles['f...
[ { "docid": "6d7b5144c73e79f9675b8f0314cc27c5", "score": "0.81722486", "text": "private function _removeObsoleteFilesAndFolders()\n {\n // Remove files\n jimport('joomla.filesystem.file');\n if (!empty($this->AllEventsRemoveFiles['files'])) {\n foreach ($this->AllEvents...
bf2b5f0c76386108cd93f0e0bc638cd5
Persists this object to the database. If the object is new, it inserts it; otherwise an update is performed. All modified related objects will also be persisted in the doSave() method. This method wraps all precipitate database operations in a single transaction.
[ { "docid": "f5cf8038bc54437eb728ce455d5b8b21", "score": "0.5652773", "text": "public function save(ConnectionInterface $con = null)\n {\n if ($this->isDeleted()) {\n throw new PropelException(\"You cannot save an object that has been deleted.\");\n }\n\n if ($this->alr...
[ { "docid": "044f53336883ee5546515e5c63a02bd5", "score": "0.75490177", "text": "public function save()\n {\n if ($this->utx && !$this->utx->inTransaction()) {\n // do the operation in a short transaction\n $this->utx->begin();\n try {\n $this->obj...
5c772964289f4be035ab02e5b48866b2
I set what view/php file to display.
[ { "docid": "2fc11cd34241fdc907c0ba311d86d01f", "score": "0.66520077", "text": "public function setView( $view ){\n\t\t\n\t\t$this->view = $view;\t\n\t}", "title": "" } ]
[ { "docid": "a95f3001c1724e452cc5faf6f2c59411", "score": "0.78364795", "text": "public function setView()\n\t{\n\t\t$args = func_get_args();\n\t\t$path = implode('/', array_slice($args, 0, -1));\n\t\t$path .= 'view.' . end($args) . '.php';\n\t\t$this->view = $path;\n\t}", "title": "" }, { "do...
091754b4763bbba12de59dd63b8f509a
getHeader returns a header record for a given key
[ { "docid": "89007f9f04f3d775018ee83059ba5c14", "score": "0.70678085", "text": "function getHeader($key)\n {\n if (isset($this->_headerTable[$key])) {\n return $this->_headerTable[$key];\n }\n return false;\n }", "title": "" } ]
[ { "docid": "5292a17b165b54dcb4b3c3f5c142cc5c", "score": "0.8110817", "text": "public function getHeader($key);", "title": "" }, { "docid": "5292a17b165b54dcb4b3c3f5c142cc5c", "score": "0.8110817", "text": "public function getHeader($key);", "title": "" }, { "docid": "5292...
9bfcb1b9dcb392e9f5c870e64ebfc749
/End Client Data Insert Function /START CLIENT LISTING DATA FUNCTION
[ { "docid": "22454beea58c23c0a0687a231d07e81f", "score": "0.5029941", "text": "function clientGetValue($clientID=false)\r\n {\t\r\n\t\tif(isset($clientID) && !empty($clientID))\r\n \t\t{\r\n \t\t\t$retrieveList =$this->data['retrieveList']=$this->ClientModel->get(array('clientID'=>$clientID))...
[ { "docid": "03462bb0759a44234e70efa2dd82586f", "score": "0.654255", "text": "function insertClients() {\n\t/*\n\t1|Active\n\t5|Retested Negative\n\t10|Relocated\n\t3|Transfer Out\n\t6|Exits over 18yrs\n\t4|Deceased\n\t2|Lost to follow-up\n\t7|Transfer to LTP Centre\n\t8|Declined\n\t9|VCT\n\t*/\n\tglobal...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "79e867182f03a5f00ea5b5e034cafbeb", "score": "0.0", "text": "public function show(Request $request, $id)\n {\n $user = $request->user();\n return $this->experienceRepository->findByIdAndUser($user->id, $id);\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id ...
c11ec33ca5e423479ec5335f1fc14a4e
muestra todos los conceptos de la tabla novedades
[ { "docid": "39ac37473aca15b2695889ea3f6f8fa6", "score": "0.0", "text": "function catalogo_estudios(){\n\t global $conn,$odbc;\n\n\t $this->llenar_combo(\"select cod_est as COD_EST,nom_est as NOM_EST from estudios order by nom_est\",\"COD_EST\",\"NOM_EST\",true);\n\t }", "title": "" } ...
[ { "docid": "a42023d5a7873eb012c11d0d01275717", "score": "0.66093814", "text": "function get_lista_tablas_y_vistas()\n\t{\n\t\t$esquema = null;\n\t\tif (isset($this->schema)) {\n\t\t\t$esquema = $this->schema;\n\t\t}\t\t\n\t\treturn $this->get_lista_tablas_bd(true, $esquema);\t\n\t}", "title": "" }...
8f8f61b361f8c291e65838ac47515dab
Create a new password controller instance.
[ { "docid": "163fa9fc91dcab000220466fa78e6207", "score": "0.0", "text": "public function __construct (\n ResetPassword $reset_password_instance\n ) {\n $this->reset_password_instance = $reset_password_instance;\n $this->user_config = config('packages.SidneyDobber.User.user');\n ...
[ { "docid": "be3d8722f7ac78feae40073320d025b9", "score": "0.6859762", "text": "protected function createForgotPasswordController()\r\n {\r\n file_put_contents(\r\n path('app/Controllers/Auth/ForgotPasswordController.php'),\r\n $this->compileForgotPasswordControllerTemp()\r...
2ac94c9624dbb9db9926d2212152feba
Decides on the subject line. If template is a string then it is easy to match it. Failure emails use an array of templates, so we do it based on whether we have a bus reg entity
[ { "docid": "03203a10f63cd64138693c96d798abc2", "score": "0.6327496", "text": "private function getSubject()\n {\n $subject = 'email.ebsr-failed-no-bus-reg.subject';\n\n if (!is_array($this->template)) {\n $subject = 'email.' . $this->template . '.subject';\n } elseif (...
[ { "docid": "6228304adc45ea11c9782fec231b50ca", "score": "0.6244902", "text": "protected function buildEmailFromTemplate($fields,$template,$subject)\r\n {\r\n \r\n $body =file_get_contents(\"http://vps112595.ovh.net\".$template);\r\n foreach ($fields as $name => $content) {\r\n...
69f2d557e5a87957f7fdaf7a71e1cfe8
Some values must be encoded.
[ { "docid": "dbd64c7eb1bda8e681750d78a052cdf9", "score": "0.0", "text": "private function log(string $type, string $message, string $file = null, int $line = null, int $col = null): void\n {\n $message = strtr($message, self::ESCAPED_DATA);\n\n if (!$file) {\n // No file provi...
[ { "docid": "8b32aac104939a480e1a41f05fa834df", "score": "0.7597058", "text": "public function shouldEncode();", "title": "" }, { "docid": "5bfce763b677624a81808432dfe0f145", "score": "0.65162116", "text": "public function encodeEncodesCorrectlyDataProvider() {}", "title": "" },...
86b3c3606e65d8d6adeea60222214ba0
Generate a pie chart time of reservation per resource
[ { "docid": "b03febf8ff569f94c711893c477b697b", "score": "0.5321121", "text": "public function getCamembertTimeContent($month_start, $year_start, $month_end, $year_end, $numTotal) {\n $sql = 'SELECT DISTINCT resource_id FROM bk_calendar_entry WHERE start_time >=' . mktime(0, 0, 0, $month_start, 1,...
[ { "docid": "1923b059659dffb3edbc532d7e35991a", "score": "0.63012826", "text": "static function draw_pie_chart($year){\n \n // Draw pie chart (selected year)\n $pie_chart_query = \"SELECT metadata.Seg_Name AS segname, COUNT(*) AS head_count FROM google_chart_dev.sample_data\n ...
4b86cfe018c7d44454cd1de571987105
Check if email exist in db
[ { "docid": "60581aa83b6b4c98581e471afa0aa016", "score": "0.0", "text": "public static function checkEmail($email)\r\n {\r\n \r\n if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\r\n throw new NotValidEmailException('', NotValidEmailException::CODE_EMAIL_FORMAT);\r\n }...
[ { "docid": "17e33cab108fc59676780aa6f9eb01ef", "score": "0.838577", "text": "function email_exists($db,$email) {\n $query = \"SELECT email FROM kkUserTest WHERE email='$email'\";\n $result = $db->query($query);\n return ($result->num_rows > 0);\n}", "title": "" }, { "docid": "5d2d96c82196...
a21ed7f81b4e897300ca22c1ff40ebf4
Set Item from ArrayCollection.
[ { "docid": "779d7b7d50e4db7e58679f2168f90404", "score": "0.0", "text": "public function addChildren(ArrayCollection $collection);", "title": "" } ]
[ { "docid": "11c9e1869bdc3f8ad893a4d8cc4bff52", "score": "0.6378445", "text": "public function setArray(Array $Items) {\n $this->_collection = $Items;\n }", "title": "" }, { "docid": "f47a03c7d9070fc53ebac26ab018e23d", "score": "0.61511046", "text": "public function offsetSe...
b3dcb36b9bf7d9b86a164c64a6a3324b
TODO: Implement delete() method.
[ { "docid": "7838cf1437f9041bd5446da80856b24e", "score": "0.0", "text": "public function delete($path)\n {\n try{\n $client = new \\GuzzleHttp\\Client(['timeout' =>10]);\n $result = $client->get($this->baseUrl.\"/delete\", ['query' => ['path'=>$path]]);\n if (20...
[ { "docid": "af0643a44ddd78a45d8160d1456861e0", "score": "0.8416342", "text": "public function delete() {}", "title": "" }, { "docid": "573f58d57c5b1333e4a2ddf6048545ec", "score": "0.84131956", "text": "public function delete();", "title": "" }, { "docid": "573f58d57c5b133...
6c5040a4d4b730fb87cf3a6e5567634b
Check if 'ping_histogram_125' has a value
[ { "docid": "d6a2121b35aa0a8ee9ed3001bb277dd0", "score": "0.7782624", "text": "public function hasPingHistogram125()\n {\n return $this->ping_histogram_125 !== null;\n }", "title": "" } ]
[ { "docid": "254d25c44d38415ae3285c2b9d1889f6", "score": "0.7584216", "text": "public function hasPingHistogram75()\n {\n return $this->ping_histogram_75 !== null;\n }", "title": "" }, { "docid": "b9ed4dbb69a0a2001a1567a468ab96db", "score": "0.7508378", "text": "public fu...
63009f5c396e79b8d7bdf7a8f2560a30
Mengambil value dari form dengan method POST
[ { "docid": "05c8888c7a0cfe129dd3a2dc46b5fe63", "score": "0.0", "text": "public function store()\n {\n $name = $this->request->getPost('nama');\n $desc = $this->request->getPost('keterangan');\n $code = $this->request->getPost('pelayanan_id');\n\n\n // Membuat array collect...
[ { "docid": "fb91b896f598699a73cdc83d31fd6ce8", "score": "0.6523928", "text": "function ValorPost($nombreCampo, $valorPorDefecto='')\n{\n\tif (isset($_POST[$nombreCampo]))\n\t\treturn $_POST[$nombreCampo];\n\telse\n\t\treturn $valorPorDefecto;\n}", "title": "" }, { "docid": "5ca41556c2c2743f4...
532bbdb364a0c8dbd4afac2440e57f11
Update admin note from database
[ { "docid": "c2881b545029a0daa0add03a8c818267", "score": "0.5674615", "text": "public function updateNotes(Request $request)\n {\n Core::createAdminNote($request);\n if ($request->ajax()) {\n return response()->json();\n }\n flash(trans('admin.dashboard.note.upda...
[ { "docid": "c6214827cd5e053e6867bfb1c61cf17b", "score": "0.7130422", "text": "public function testUpdatePurchaseOrderNote()\n {\n }", "title": "" }, { "docid": "c5cef42b4205509baa801ecae9bef9b5", "score": "0.7001866", "text": "public function updateAdminNotes($params = []) {\n ...
d99c320b8f5eec4038c2452c1c3ef7f4
CRON FOR SUBSCRIBERS AND GUEST CONTACTS
[ { "docid": "dc2e4be795a688e289694794cb31db50", "score": "0.0", "text": "public function subscribersAndGuestSync()\n {\n //sync subscribers\n $subscriberModel = $this->_subscriberFactory->create();\n $result = $subscriberModel->sync();\n\n //sync guests\n $this->_gue...
[ { "docid": "2e0ca8db40522b4462b78dbf6b4130cc", "score": "0.615712", "text": "public function run()\n {\n// $this->createSubscribers(5000);\n// $this->createEmailInjections();\n// $this->createEmailDeliveries();\n// $this->createEmailOpens();\n// $this->createEmailCl...
f98a160d864e897c72c385750c8ee48a
Runs all validation rules in this set and returns a list of validation errors
[ { "docid": "873e5f9ff624cacee62f38dcfda985e0", "score": "0.0", "text": "public function validate($data, $isUpdate = false) {\n\t\t$this->reset();\n\t\t$this->_isUpdate = $isUpdate;\n\n\t\tif ($this->checkValidatePresent($this->field, $data)) {\n\t\t\treturn array(__d('cake', 'This field must exist in da...
[ { "docid": "a8e892189814c1d0355ae08bc5a0769b", "score": "0.7402724", "text": "public function validate() {\n $this->errors = [];\n\n // Add custom validations\n\n return $this->errors;\n }", "title": "" }, { "docid": "4ec40e8db7bbc3d8aec95f149f910ed2", "score": "0.7359727", ...
8803516dfe8eb39d16b32ddb03de9273
Returns passed in $locale, or environment variable $LANG if $locale == ''.
[ { "docid": "69c39a4606a7c94c8ba1eb9970b73c34", "score": "0.82748306", "text": "static function get_default_locale($locale='') {\n if ($locale == '') // emulate variable support\n return getenv('LANG');\n else\n return $locale;\n }", "title": "" } ]
[ { "docid": "5596ef843869cdd9ae7d4a5697350194", "score": "0.70598376", "text": "function pu_get_lang_locale( $locale = '' ) {\n\t$lang_locales = hreflang_tags_get_settings('supported_lang_code');\n\tif( $locale )\n\t\treturn ( isset( $lang_locales[$locale] ) ) ? $lang_locales[$locale] : false;\n\telse\n\...
bd45397877a7faf9f33c23b3f421ed11
Finds and displays a Requerimiento entity.
[ { "docid": "2e6bf84282cf8fe91c8a0b3bb3dca917", "score": "0.70328367", "text": "public function showAction($id)\n {\n $em = $this->getDoctrine()->getEntityManager();\n\n $entity = $em->getRepository('BackendBundle:Requerimiento')->find($id);\n\n if (!$entity) {\n throw ...
[ { "docid": "9c672519f9ff35aac5f31b16c663a39e", "score": "0.6948905", "text": "public function showAction()\n {\n $em = $this->getDoctrine()->getManager();\n\n $rubrique = $em->getRepository('MyAppEspritBundle:Rubrique')->findAll();\n\n return $this->render('MyAppEspritBundle:Rub...
a9159f25320872b152e4e61fcae55934
Functions for registering frontend stylesheet
[ { "docid": "58845d13bae496be76bebe2c0066aeaf", "score": "0.0", "text": "function tenup_fpc_frontend_styles()\n\t{\n\n\t\twp_enqueue_style('tenup-fpc-main-frontend', TENUP_FPC_PLUGIN_URL . '/assets/css/main-frontend.css', array(), TENUP_FPC_VERSION, 'all');\n\t}", "title": "" } ]
[ { "docid": "61dfc78e287e38cd8528477bce1e28af", "score": "0.7209195", "text": "public function register_styles() {\n }", "title": "" }, { "docid": "5fd408b1a02ce4e672fcd4da87953aa0", "score": "0.70981735", "text": "public function register_styles() {\n\t\t}", "title": "" }, ...
ef15bb1074082ac3a763d155dd7a0916
Parse an AMQP fieldarray value.
[ { "docid": "5b45f8fcb4a7da3ef33bcab8712c87c5", "score": "0.61694974", "text": "private function parseArray()\n {\n $length = $this->parseUnsignedInt32();\n $stopAt = strlen($this->buffer) - $length;\n $array = [];\n\n while (strlen($this->buffer) > $stopAt) {\n ...
[ { "docid": "e90a69891abe645717fc4e251487d347", "score": "0.5874806", "text": "public function makeArrayFieldValue($value)\n {\n $value = $this->_unserializeValue($value);\n if (!$this->_isEncodedArrayFieldValue($value)) {\n $value = $this->_encodeArrayFieldValue($value);\n ...
2d3f0470bd91f62533e7ae989d0f62c0
Collects & returns details required for ETA calculation.
[ { "docid": "8f324d519ed9e391a5285c39c01a101b", "score": "0.5060108", "text": "function getETAConfig()\r\n {\r\n $eta_cfg = array();\r\n $eta_cfg['bgp_details'] = $this->getDetails();\r\n $eta_cfg['timezone'] = Date_API::getPreferredTimezone($bgp_details[\"bgp_usr_id\"]);\r\n\r\n ...
[ { "docid": "de04920271fce8738c93ffedd0186841", "score": "0.5563681", "text": "function getETA($record_counter=0, $record_count=0, $cfg=null)\r\n {\r\n $eta = array();\r\n\r\n $utc_date = Date_API::getSimpleDateUTC();\r\n\r\n $records_left = $record_count - $record_counter;\r\n\r\...
35d70889afb5202e4d3451d65e95ecaa
Set up starting record parameters
[ { "docid": "ff02ff20d9e1ac49f21ce73fbd84c756", "score": "0.0", "text": "function SetUpStartRec() {\r\n\t\tif ($this->DisplayRecs == 0)\r\n\t\t\treturn;\r\n\t\tif ($this->IsPageRequest()) { // Validate request\r\n\t\t\tif (@$_GET[EW_TABLE_START_REC] <> \"\") { // Check for \"start\" parameter\r\n\t\t\t\t...
[ { "docid": "df48592ff857209b368b555fb8c5c218", "score": "0.649372", "text": "public function setupParameters() {\n $this->_paramInfo = array(\n array(\n 'name' => 'uiconfID',\n 'label' => 'UI Configuration ID',\n 'description' => 'The id of ...
fdc110bb7bee326366009d6b5fb22691
Change 'Posts' to 'Recipes' in WP Admin nav
[ { "docid": "214f6bf211c28c86c3e33a4864f665ea", "score": "0.69554454", "text": "function change_admin_post_label() {\n\tglobal $menu;\n\tglobal $submenu;\n\t$menu[5][0] = 'Recipes';\n\t$submenu['edit.php'][5][0] = 'Recipes';\n\t$submenu['edit.php'][10][0] = 'Add Recipe';\n\t$submenu['edit.php'][16][0] = ...
[ { "docid": "2dff9048b1c0f04c9368c412cf3610c7", "score": "0.6695356", "text": "function wooadmin_rename_post_menu() {\n\n global $menu;\n\n global $submenu;\n\n $menu[5][0] = 'Blog'; // Change Users to Customers main id\n\n $submenu['edit.php'][5][0] = 'Posts';\n\n $submenu['edit.php'][10]...
9029159a6fb9b9cab694a12845f1186d
Delete transients on multisite.
[ { "docid": "478ca0d22e024c503615bba4276341e3", "score": "0.7403247", "text": "protected function delete_network_transients(): void {\n\t\tglobal $wpdb;\n\n\t\t// phpcs:ignore WordPress.DB.DirectDatabaseQuery\n\t\t$transients = $wpdb->get_col(\n\t\t\t$wpdb->prepare(\n\t\t\t\t\"SELECT meta_key FROM $wpdb-...
[ { "docid": "33df7d36ace24f1fd83556f4be081a2f", "score": "0.74060875", "text": "function rock_star_flush_post_transients(){\n\tdelete_transient( 'rock_star_featured_content' );\n\n\tdelete_transient( 'rock_star_news_ticker' );\n\n\tdelete_transient( 'rock_star_featured_slider' );\n\n\tdelete_transient( '...
b72e1d07aed61e42e2a32c6a04e814a8
Set the password for a given user This causes the on disk password file to be updated
[ { "docid": "eb0e05c77ad9c315056c00c15ef46d40", "score": "0.6488093", "text": "static public function setPassword(string $sUsername,string $sOldPassword,string $sPassword): void\n\t{\n\t\t//Test old password\n\t\tif(!AuthPluginFile::login($sUsername,$sOldPassword,NULL,NULL)){\n\t\t\tthrow new Exception(\...
[ { "docid": "617c1c86b860638d634b87f96ec10c6c", "score": "0.7914088", "text": "public function setPassword(\\Gems_User_User $user, $password);", "title": "" }, { "docid": "fe9915cbdc5d91f885777a1fbc945808", "score": "0.71985865", "text": "public function testSetPassword()\n {\n ...
60e78142b0c61bc989a5c4bff029dd89
Checks if negative profit is allowed. If true, negative profit is not allowed
[ { "docid": "a81638ffaa3aa3ef3f77249b512d288f", "score": "0.78078276", "text": "private function isDisabledNegativeProfit()\n {\n return $this->_scopeConfig->getValue(\n 'cart2quote_advanced/negativeprofit/disable_negative_profit',\n \\Magento\\Store\\Model\\ScopeInterface...
[ { "docid": "c839deff69ccabd9f7a0dbddb19ef751", "score": "0.8158799", "text": "private function isDisabledNegativeProfit()\n {\n\t\tif(\\Cart2Quote\\License\\Model\\License::getInstance()->isValid()) {\n\t\t\treturn $this->scopeConfig->getValue(\n 'cart2quote_advanced/negativeprofit/disable...
17a1cab502f09bdc6246dde1d55291ec
Get customer defined field values
[ { "docid": "a1953e005f138fe4ac323ae6df1e37bd", "score": "0.0", "text": "public function getCustomerConfig();", "title": "" } ]
[ { "docid": "dccbf56e994e27fda8763a9f149e61e5", "score": "0.73167765", "text": "public function get_fields() {\n\t\treturn apply_filters( 'wpcd_get_custom_fields', $this->custom_fields );\n\t}", "title": "" }, { "docid": "3076dd75ce6a42e7258d222a7788488a", "score": "0.7312045", "text"...
f06054d0f13ece27d6d0397db34a8d4d
Detach the Profiler's event
[ { "docid": "54529d07c2010f9e6e3b5d42042edaba", "score": "0.6565555", "text": "public static function detach()\n\t{\n\t\tEvent::clear('laravel.done');\n\t\tEvent::clear('laravel.log');\n\t\tEvent::clear('laravel.query');\n\t}", "title": "" } ]
[ { "docid": "380b65a9f72b89aaff7f50746eaf71a2", "score": "0.63216215", "text": "public function detach()\n {\n }", "title": "" }, { "docid": "0def0dcd4095bca3c0d1141ea136e60d", "score": "0.62705815", "text": "public function detach(EventManagerInterface $events)\n {\n \tfo...
8e7cc7dc0f1c98aaa9c655f7a94bb9e0
Return the role of the user.
[ { "docid": "56dc5ee6d077b66d57e7610863d57cf6", "score": "0.0", "text": "public function getUserRole($user): array\n {\n if ($user instanceof WP_User && isset($user->{$this->database->getPrefix() . 'capabilities'}) === true) {\n $capabilities = (array) $user->{$this->database->getPre...
[ { "docid": "a7ecd8ef929d09a24fc87f365bfacd5a", "score": "0.8355274", "text": "public function getRole() {\n if($this->getUser() == true) {\n $this->_role = $this->getUser()->role;\n } \n return $this->_role;\n }", "title": "" }, { "docid": "d540f46f48b0785a...
d0e2566b1aaadb1423936c8613e6b7bc
Conditionally loads the OptinMonster optin based on the query filter detection.
[ { "docid": "e2b600052757812111754c9b9b60e3e6", "score": "0.70915", "text": "public function maybe_load_optinmonster() {\n\n\t\t// If a URL suffix is set to not load optinmonster, don't do anything.\n\t\t$bool = apply_filters( 'optin_monster_query_filter', false ); // Deprecated.\n\t\t$bool = apply_filte...
[ { "docid": "685b85d5e8e30405aed0e31726c180e7", "score": "0.7016712", "text": "public function load_optinmonster() {\n\n\t\t// Prepare variables.\n\t\tglobal $post;\n\t\t$post_id = get_queried_object_id();\n\t\tif ( ! $post_id ) {\n\t\t\tif ( 'page' == get_option( 'show_on_front' ) ) {\n\t\t\t\t$post_id ...
1b044833e389a1576dbcebe18b9c2056
standard config form function all field names must be prefixed by 'config_' which is stripped off in data received in block_news::instance_config_save()
[ { "docid": "1fa9ee146cf2b6fd90d91d492cdf2bc5", "score": "0.6029196", "text": "protected function specific_definition($mform) {\n $blockinstanceid=$this->block->instance->id;\n $bns=$this->block->bns;\n $urls_txt='';\n\n // set feeds for text area\n $frecs=$bns->get_fee...
[ { "docid": "390db43f0246ad7cccbeeefa5891c9f3", "score": "0.7717508", "text": "public function config_form();", "title": "" }, { "docid": "fd8993e4d3734fc7db0094aa367a6d1a", "score": "0.6869431", "text": "function config_form($frm) {\n global $CFG;\n\n $vars = array('enrol_dbhos...
119816ee0de2e6b7614d615d99ec4ece
in case of instance app login goto root db
[ { "docid": "bf802e9620993554782b44067a6be9dd", "score": "0.6140425", "text": "function verify_login() {\n\t\t$mydb = & GetGlobal('controller')->calldpc_method('database.switch_db use +1+1'); \n\t\n\t\t$db = GetGlobal('db'); \n \n\t\tif (($user=GetParam('cpuser')) && ($pwd=GetParam('cppass'))) {\n\t\n...
[ { "docid": "1ba83f90d590fe603fd86706a2a6160f", "score": "0.6446588", "text": "public function appLogin(){\n\t\t$this->home_model->appLogin();\n\t}", "title": "" }, { "docid": "39f2d5d2e821519f7c7e5dc57a2422c0", "score": "0.5966344", "text": "function db_login() \n\t{\n\t\tglobal $db_...
543071a666af87c4a84ba2b7b70793e5
The method to get the status
[ { "docid": "b9be382661e267e816a7656fa10d715e", "score": "0.0", "text": "public function getStatus()\n\t{\n\t\treturn $this->getKeyValue('status'); \n\n\t}", "title": "" } ]
[ { "docid": "1869fa791adf7f41954bacee528589b0", "score": "0.91299176", "text": "public function get_status()\n {\n }", "title": "" }, { "docid": "1869fa791adf7f41954bacee528589b0", "score": "0.91299176", "text": "public function get_status()\n {\n }", "...
096d31c3f482122bca4c09466b135af4
list data pejabat berwenang
[ { "docid": "92f242d92d736762ee829b356084e57a", "score": "0.6586572", "text": "public function list_data_pejabat_berwenang()\n {\n $data['admin'] = $this->db->get_where('admin', ['id_admin' =>\n $this->session->userdata('id_admin')])->row_array();\n $da...
[ { "docid": "7a41705da34a8144d57f0ab2559cbb54", "score": "0.7336063", "text": "public function listdataKeuAction() {\n $this->view->dataList = $this->adm_listdata_serv->getDataList('KEUANGAN');\n }", "title": "" }, { "docid": "e0289914cc5cfacf94b7fe8968454594", "score": "0.72149...
e73696de9a13aa4a26ae836c691ed21e
Recherche d'une agence avec son ID
[ { "docid": "bf0b9f5ab4193decb5573df6d1c9213c", "score": "0.637347", "text": "public static function findById($id) {\n /* Connexion à la base de données */\n $c = Database::getConnection();\n /* Préparation de la requête */\n $sql = \"select * from Agence where id_agence=$id\"...
[ { "docid": "cfdd0487abefc4dbef0fd1f63175650c", "score": "0.63494986", "text": "public function search ($id=null)\r\n {\r\n $this->Huespede->id = $id; \r\n \r\n $result = $this->Huespede->find('all');\r\n $huesp = $this->Huespede->find('all');\r\n $i = 0;\r\n foreach ($result as $res...
c888aab6f0e21d9e7f0ece3a70dc7f39
Sets a new gROUPCODE
[ { "docid": "9facfd0db9e545c0650234b801340343", "score": "0.6876894", "text": "public function setGROUPCODE($gROUPCODE)\n {\n $this->gROUPCODE = $gROUPCODE;\n return $this;\n }", "title": "" } ]
[ { "docid": "18974aa53e9881d7febf43e914f608a3", "score": "0.5593841", "text": "function setcode($code = '') {\n\t\t$this->ccode = $code;\n\t}", "title": "" }, { "docid": "1f9d92dc237f8fad82376f548a1b9c5b", "score": "0.5414292", "text": "function setCode($code);", "title": "" }, ...
db709c604dd2660685281576f8925165
Map icons panel in Location form
[ { "docid": "39fd94e4208438491ac78ab939097d92", "score": "0.7479961", "text": "function gmw_ps_location_form_map_icons_panel( $form ) {\n\n\t$addon_data = gmw_get_addon_data( $form->slug );\n\t$prefix = $addon_data['prefix'];\n\n\t// get saved icon\n\t$saved_icon = ! empty( $form->saved_location->map...
[ { "docid": "561d1f47612c5159be37fd0fc00ac0ab", "score": "0.6972551", "text": "function gmw_ps_location_form_map_icons_tab( $tabs ) {\n\n\t$tabs['map_icons'] = array(\n\t\t'label' => __( 'Map Marker ', 'gmw-premium-settings' ),\n\t\t'icon' => 'gmw-icon-map-pin',\n\t\t'priority' => 30,\n\t);\n\n\tr...
35612a4a37212eb0a7e30d0933c04952
post_type() Register our post type
[ { "docid": "d8baad77a0bb42e77237e82858357e2e", "score": "0.7851161", "text": "function post_type() {\n register_post_type( self::$post_type, array(\n 'labels' => array(\n 'name' => __( 'Downloads', 'sdw' ),\n 'singular_name' => __( 'Download', 'sdw' ),\n ...
[ { "docid": "0d172886812dc399b2026a1a2f65f879", "score": "0.91757303", "text": "public function register_post_type( ) {\n\n\t}", "title": "" }, { "docid": "3baf32c49b7376ee5fd5efc8f765d0d8", "score": "0.8789022", "text": "function register_post_type(){\n\t\tadd_action( 'init', array(...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "9b3d0080742372052954991d1abb1fc0", "score": "0.0", "text": "public function create()\n {\n $Catalogs= Catalog::get();\n return view('admin.product.form', compact('Catalogs'));\n }", "title": "" } ]
[ { "docid": "cb267e3ebbd54b9945858b4232a6e394", "score": "0.7782105", "text": "public function create()\n {\n return view('admin.resource.create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77260846", "text": "public function create()...
ba34f52b9d9a772e2b99142e0302b497
Get the product that the vine has.
[ { "docid": "9fb1105d7d0023833cc1ed05bff4e6ec", "score": "0.0", "text": "public function product()\n {\n return $this->belongsTo('App\\Models\\Product');\n }", "title": "" } ]
[ { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\n return $this->product;\n }", "title": "" }, { "docid": "86ec48ff0b67c56084c5628907543780", "score": "0.7780213", "text": "public function getProduct()\n {\...
0b5143e598fb8a6d7545931b46419d00
Fonction pour appliquer la TVA
[ { "docid": "37351ef1402cf86c0db5df48b78ed74d", "score": "0.0", "text": "function applique_tva($nombre)\n{\n return $nombre * 1.2;\n}", "title": "" } ]
[ { "docid": "1589dcc4992c0a4318eeb93946143160", "score": "0.6788683", "text": "public function vente();", "title": "" }, { "docid": "75554ce57638b2a50a6401f4c7c28345", "score": "0.6266401", "text": "function __construct(){\n\n\t\t$this->vt = new veritabani();\n\t}", "title": "" ...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "ac4d4a9f7aea04b62486d6937b94c52a", "score": "0.0", "text": "public function store(Request $request)\n { \n $id=Auth::user()->id;\n // dd($request->menu[0]);\n // $nav=new Navigation;\n\n // for ($i=0; $i <count($request->menu) ; $i++) { \n // $nav->na...
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7149016", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.669261", "text": "public function store ()\n {\n ...
ab0456da6ae68ed94bd2c52224830ef5
Inline the module css.
[ { "docid": "bd4a9748d4ffa33f3a2c0ce5d2218c83", "score": "0.62515515", "text": "function toolbelt_styles( $module ) {\n\n\tif ( defined( 'TOOLBELT_DISABLE_STYLES' ) ) {\n\t\treturn;\n\t}\n\n\t$css_filter = sprintf( 'toolbelt_hide_%s_styles', $module );\n\n\tif ( apply_filters( $css_filter, false ) ) {\n\...
[ { "docid": "9f33ef69fc3fd0ec8f085ed709744b79", "score": "0.74298674", "text": "public function insert_inline_css() {\n }", "title": "" }, { "docid": "9f33ef69fc3fd0ec8f085ed709744b79", "score": "0.74298674", "text": "public function insert_inline_css() {\n }", "title": "" ...
22c6c28ebe59d10d2b1dd64a7640fe13
Function that fetches all the collections
[ { "docid": "b300484db3b6d0856004b1f30b990ad9", "score": "0.67880094", "text": "public function get_collections()\n {\n $this->db->trans_start();\n $this->db->select('*');\n $this->db->from('event_collection_info');\n $this->db->join('event_collection_bridge', 'event_collec...
[ { "docid": "a436d4092dde5c7d3eebeea3380af4c7", "score": "0.76813585", "text": "public function collections();", "title": "" }, { "docid": "4e553de68a6b31a008feaee469f7e1fc", "score": "0.7532959", "text": "public function fetchAll() {\n return Collections::getAll()->collections...
e21fe9231020ea4b4f15c76b2e96b41b
Fetch only one record
[ { "docid": "bee90387eb9a19cb1a24879ef0d99be1", "score": "0.0", "text": "public function getOne($where)\n\t{\n\t\t$select = $this->getSelectObject();\n\t\t$select->from($this->table);\n\t\t\n\t\tif ($where instanceof \\Closure) {\n\t\t\t$where($select);\n\t\t} elseif ($where !== null) {\n\t\t\t$select->w...
[ { "docid": "f372f5782aeb71d4286e8bbf3229143e", "score": "0.7882956", "text": "public function fetchOne() {\n $this->limit = 1;\n $result = $this->fetch();\n if ($result) {\n return $result[0];\n }\n }", "title": "" }, { "docid": "e97169e7e371c80d110d...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.80206203", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.7422284", "text": "abstract protected function makeDisplayFrom...