query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
4f7b712f12a0c823b6bda8ad9eaab07d
Get information about the category
[ { "docid": "7582e2cb4189f75187df005e29d6283e", "score": "0.0", "text": "public function getCategoryDetails($categ_id)\n {\n\n $response = $this->client->request('GET', $this->_getCategoriesUrl($categ_id));\n if ($response->getStatusCode() != 200 && $response->getStatusCode() != 304)\n ...
[ { "docid": "71473b8f21aef80fad5e5f00f46cbfe4", "score": "0.77899337", "text": "function category() {\n $category = $this->jsonData->entry->category[1]->{'label'};\n return $category;\n }", "title": "" }, { "docid": "9c900424e5793607de8378fb3869de74", "score": "0.76242125...
61088460e3f4183f97507b65a541e4e1
Initialize method for model.
[ { "docid": "6dcfc39b0b76ce733a829e411bca1bc5", "score": "0.0", "text": "public function initialize()\n {\n $this->setSource(\"admin_auth_user\");\n $this->hasOne('role_id', 'DbAuthRole', 'id', ['alias' => 'role']);\n }", "title": "" } ]
[ { "docid": "1bddff8749d1475cf2de10510e1129ce", "score": "0.80905974", "text": "public function initialize()\n {\n $this->model = new \\Anax\\Weather\\WeatherModel;\n }", "title": "" }, { "docid": "b1e7f94a763395d5e16551c4dbc0a404", "score": "0.7734291", "text": "protecte...
88cec764fee5a39b3dc858e002e2b010
Show for User dontpay
[ { "docid": "1cbae6d8a2c831aba136a6ca53cbde65", "score": "0.0", "text": "public function dontbuy_full()\n\t{\n\t\t$sql = $this->pdo->prepare(\"SELECT * FROM basket_tbl where status='0' \");\n\t\t$sql->execute();\n\t\t$row = $sql->fetchAll(PDO::FETCH_OBJ);\n\t\treturn $row;\n\t}", "title": "" } ]
[ { "docid": "c3e05456499b317859ea25f1dbcfd5c0", "score": "0.69277096", "text": "public function paymentUnchecked()\n {\n return view('admin.report.paymentUnchecked');\n }", "title": "" }, { "docid": "d84325c8b0a37b4ca4499c5952869090", "score": "0.62920564", "text": "funct...
519a61a5dfa8f44bd678d684e52f8148
/ | | Update your password |
[ { "docid": "b2ebafb9aea800d950d7fba2a27bc181", "score": "0.0", "text": "public function ChangeAdminPassword(Request $request)\n {\n $this->validate($request, [\n 'old_password' => 'required',\n 'new_password' => 'required'\n ]);\n \n if (Auth::guard...
[ { "docid": "ecee0d153cab099e510b94e54a74cc37", "score": "0.79452163", "text": "public function change_pw()\r\n {\r\n\r\n }", "title": "" }, { "docid": "ce16db70b6f85d4b3907931a2caf4a56", "score": "0.7705677", "text": "public function change_password(){\n change_passw...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n ...
06d3c3c285d03a183e2c21ffcdbb30d6
TODO: Change the autogenerated stub
[ { "docid": "379f6543955be99ca9b57f8752016a54", "score": "0.0", "text": "public function rules()\n {\n return array_merge(\n parent::rules(),\n [\n [['deposit', 'price'], 'number'],\n [['gift_integral', 'amount'], 'integer'],\n ...
[ { "docid": "aba5f350840af3d465df1f1ef29523b7", "score": "0.60862815", "text": "public function __contsruct()\n {\n //\n }", "title": "" }, { "docid": "e4984a37af5708fa4445fbd3164161b3", "score": "0.6008328", "text": "function __constract()\n\t\t{\n\t\t\t}", "title": ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "2c55b7a977e0c3e1a22f3067a1a7cb8e", "score": "0.0", "text": "public function update(RecipeRequest $request, Recipe $recipe)\n {\n $data = $request->all();\n $recipe->name = $data['name'];\n foreach ($data['ingredients'] as $order => $ingredient) {\n $food = ...
[ { "docid": "b8af9491d409a852eeea996523d9e2fa", "score": "0.7264271", "text": "protected function updateResource()\n {\n $this->context->resource->fill($this->context->input);\n $this->applyHooks(BeforeUpdate::class);\n $this->applyHooks(BeforeSave::class);\n $this->context...
8aa330dec7345b20babfcc3a7211438d
Move service up or down
[ { "docid": "0b28168ea360dbf050305718b1b0fe19", "score": "0.6164995", "text": "protected function _moveByDirection( $dir )\r\n\t{\r\n\t\t$response = Art_Ajax::newResponse();\r\n\r\n\t\t//Load service\r\n\t\t$service_1 = new Service(Art_Router::getId());\r\n\r\n\t\tif( $service_1->isLoaded() && $service_1...
[ { "docid": "ffa1f27cd1e73b0e51a315b22cda1d53", "score": "0.6089054", "text": "public function moveUp()\n {\n // check passanger in queue where destination UP\n }", "title": "" }, { "docid": "841d947aba7c43906f546722ae313c59", "score": "0.599618", "text": "public function...
007791f2b98e8779e07448a95a046bb5
/ GetFriendlyName() This can return any string, preferably a localized name of the module. This is the name that"s shown in the Admin Menus and section pages (if the module has an admin component). See the note on localization at the top of this file.
[ { "docid": "644c0a5d28ab1c3c33ea9e8a18cda46e", "score": "0.7436825", "text": "function GetFriendlyName()\r\n\t{\r\n\t\treturn $this->Lang(\"friendlyname\");\r\n\t}", "title": "" } ]
[ { "docid": "f13a9fdf1201a3e3a180743bf8b7cc47", "score": "0.7401829", "text": "protected function getModuleName()\n {\n return strtolower(str_replace('Admin', '', get_class($this)));\n }", "title": "" }, { "docid": "dc5decf787dc36cfae59cc3bc5ed2b75", "score": "0.72146183", ...
cd74707003d64695476f1b731ccc548e
Add content in form setting tab panel
[ { "docid": "4b357e10e4e36880c40e6ca25d9add63", "score": "0.749108", "text": "function add_from_tab_content () {\n require_once dirname(__FILE__).'/templates/form-tab-content.php';\n }", "title": "" } ]
[ { "docid": "986f75f516c150dba110b9fb8274f907", "score": "0.7276013", "text": "public function optionsdemo_settings_content() { ?>\n <div class=\"wrap\">\n <div id=\"icon-themes\" class=\"icon32\"><br/></div>\n <h1>Options Demo</h1>\n <form action=\...
b9547493cb6b8d7a77a940e458fc5387
/ Check first the Redmine database for more dependencies! DELETE FROM groups_users WHERE group_id = (SELECT id FROM users WHERE lastname = :gid AND type = \'Group\') DELETE FROM users WHERE lastname = :gid AND type = \'Group\'
[ { "docid": "2d9da152a679904dfb1162b3fd05dd45", "score": "0.0", "text": "public function addToGroup($uid, $gid) {\n if(!$this->rm_db_connected) {\n return false;\n }\n \n return false;\n }", "title": "" } ]
[ { "docid": "a59e5cb051b5489e730dc2119f8f97a6", "score": "0.72558415", "text": "function delete(){\n $status = false;\n if(cb_connect()){\n $query = \"UPDATE users SET user_group = (SELECT id FROM user_group ORDER BY id ASC LIMIT 0,1) WHERE user_group = \"...
00d2a5a88997dddb122568701e15b557
Destroys the class when no longer needed.
[ { "docid": "7bbf70f1e66857fd10372efb57c086a5", "score": "0.0", "text": "public function __destruct()\n {\n $this->url = '';\n $this->method = 'GET';\n $this->postData = array();\n $this->headers = array();\n $this->options = array();\n }", "title": "" } ]
[ { "docid": "d999715c5841dcdc2475bdd228db4893", "score": "0.7627372", "text": "public function destroy($class)\n\t{\n\t\tif (isset($this->reflections[$class]))\n\t\t\t$this->reflections[$class] = null;\n\t}", "title": "" }, { "docid": "3e622a61d332e50d1134f66a56046dfe", "score": "0.753933...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "3d89e1ab9749103d9e20588193df1959", "score": "0.0", "text": "public function show($id)\n {\n $helper = DataHelpers::getInstance();\n $buku = Buku::find($id);\n $ulasan = $helper->ulasanObject();\n $favorit = FavoritBuku::where([\n ['user_id',Auth::use...
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8233183", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.81894475", "text": "public function show(...
d94152aa9f56252c472bb34664bd00dc
set request component name
[ { "docid": "2aedfa8cfaf933ada559e67b7cfe4347", "score": "0.0", "text": "public function setRequestServise(string $serviceName)\n {\n $request = \\app\\App\\Base::getService($serviceName);\n $this->setRequest($request);\n }", "title": "" } ]
[ { "docid": "7af9ebaa79601d3cd03632b61fe48d14", "score": "0.6577966", "text": "public function setName()\n {\n $post = $this->postParams();\n\n $this->name = @$post['name'];\n }", "title": "" }, { "docid": "0c2d7cb63723632a4f38833eae3919c5", "score": "0.61636174", ...
be06258d9249abbc2747a4e65bb75164
END ==> script_MB_twelve_service Construct Metabox
[ { "docid": "151ca430a5c82dcb3ea6a85f4f29a43a", "score": "0.0", "text": "function MB_twelve_service($POST){\n\n\t$titre_twelve_service = get_post_meta($POST->ID, 'titre_twelve_service', true);\n\t$display_twelve_service = get_post_meta($POST->ID, 'display_twelve_service', true);\n\t$repeat_twelve_servi...
[ { "docid": "4018dd4d608ef1282b75a7d56bf00ead", "score": "0.6002713", "text": "function di_business_post_meta_box_first_func() {\n new Di_Business_Post_Meta_Box_Main_Class();\n}", "title": "" }, { "docid": "8bd38fb16eeab0764d923ccd69c24d50", "score": "0.599661", "text": "function D...
de469329e87454d9b067d5afbf450774
Created by package 'LogEnvelope' Run the migrations.
[ { "docid": "f1a19cbe8854af2d5b0bba83341ed871", "score": "0.6511826", "text": "public function up()\n {\n if (!Schema::hasTable('exceptions')) {\n Schema::create('exceptions', function (Blueprint $table) {\n $table->increments('id');\n\n $table->string('...
[ { "docid": "1c2cd1f48082cfaf704e3a6fc8fede39", "score": "0.68749624", "text": "public function up()\n {\n DB::statement(\"DELETE FROM activity_log WHERE properties = '{\\\"attributes\\\":[],\\\"old\\\":[]}'\");\n DB::statement(\"UPDATE activity_log SET log_name='login-success' WHERE des...
9be02a12ec4e36511169fd5dce327b9b
Set the update type.
[ { "docid": "82455cc69616d30e062f9fe539661221", "score": "0.7590514", "text": "public function updateType($update_type) {\n $this->data['attachment']['payload']['update_type'] = $update_type;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "16dc7c52a2b99a9e0e0158a049876f9f", "score": "0.7050965", "text": "public function setType($var)\n {\n GPBUtil::checkEnum($var, \\Lnrpc\\ChannelEventUpdate_UpdateType::class);\n $this->type = $var;\n\n return $this;\n }", "title": "" }, { "docid": "e42e4...
37ea7eca487eca7dd81743ca79ced763
Get the value of subcategoryId
[ { "docid": "8c6b6fe47a8b3e8d52e5fb3787f5f03b", "score": "0.8007236", "text": "public function getSubcategoryId()\n {\n return $this->subcategoryId;\n }", "title": "" } ]
[ { "docid": "e72365567b91d008796715e73efa2a5b", "score": "0.7115153", "text": "public function getSubcategory()\n {\n return $this->subcategory;\n }", "title": "" }, { "docid": "d836bec46ce30eccb1bc66f8c2d41b50", "score": "0.7086446", "text": "public function getId()\n ...
f19da9f75140f9d380ae3ef01ecd91c8
Build a generic log command
[ { "docid": "d61decfd2a3b64fe0f5fc04c8e7464ae", "score": "0.47828522", "text": "public function showAllLog($ref, $path = null, $limit = null, $offset = null)\n {\n $this->clearAll();\n\n $this->addCommandName(self::GIT_LOG);\n $this->addCommandArgument('-s');\n $this->addCo...
[ { "docid": "695bd0e8ec34275fdd6b60f6fe6441a4", "score": "0.6332694", "text": "function logCMD($command, $type) {\n\t\t$ip = $_SERVER['REMOTE_ADDR'];\n\t\t$logFile = fopen($this->logDir['cmd'], 'a');\n\t\t$commandString = date('Y-m-d H:i:s ') . \"($ip) - [\" . strtoupper($type) . \"] => $command\\n\";\n\...
e0233dcc597916a3a673b28532b1b672
Finds the IndikatorNilai model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
[ { "docid": "08c6ba5f1e1ce6811cd7c41066a140cd", "score": "0.6905206", "text": "protected function findModel($id) {\n if (($model = IndikatorNilai::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist...
[ { "docid": "560f49087bfe824723963d59ae06702f", "score": "0.6742936", "text": "protected function findRequestedModel()\n\t{\t\t$slug = $this->params('slug');\n\t\tif ($slug) {\n\t\t\t$model = $this->getQuantumMapper()->findBySlug($slug);\n\t\t\tif (!$model) {\n\t\t\t\t$this->flashMessenger()->addErrorMes...
70da8b7c4c627e54acb1bb7396f14b56
Encode array from latin1 to utf8 recursively
[ { "docid": "1dbade1dec030903910d635e956c7357", "score": "0.6955755", "text": "public static function convert_from_latin1_to_utf8_recursively($dat)\n {\n if (is_string($dat)) {\n return utf8_encode($dat);\n } elseif (is_array($dat)) {\n $ret = [];\n foreach ($dat as $i...
[ { "docid": "e1760811be34c76764251db6e816024a", "score": "0.79379874", "text": "private function encodeUtf8Array($array) {\n // Walk trough every entries\n\t\t\tforeach($array as $element) {\n\t\t\t\t// Check if it's an array and call recursively\n\t\t\t\tif(is_array($element)) {\n\t\t\t\t\t$t...
6f2be61418dc49c187e6a956fcc0c394
Create a new ItemList with $list.
[ { "docid": "eb5231a253fdbf9c987811f8b118c4b3", "score": "0.56691086", "text": "public function __construct(array $list = array())\n {\n $this->list = array_values($list);\n }", "title": "" } ]
[ { "docid": "0d727c887a3e7486a754e3b831aefb07", "score": "0.71142375", "text": "public function setItem_list($item_list)\r\n {\r\n $this->item_list = $item_list;\r\n\r\n return $this;\r\n }", "title": "" }, { "docid": "0072d5aba6d4f0e761a8f07de3f82d8d", "score": "0.700...
07b94efe3feb7b642f67b99aef47ae1f
Index view Page Ends Here blog view Page starts Here
[ { "docid": "ccbdd58d9b04eda2f1b9ccf47af217d8", "score": "0.6936167", "text": "public function blog(){\n $this->load->view('user/header');\n $this->load->view('user/blog');\n $this->load->view('user/footer');\n }", "title": "" } ]
[ { "docid": "15783bd6ea3bf200dd1b9250d9449310", "score": "0.8225443", "text": "public function index()\n\t{\n\n\t\t\n\n\n\t\texit('这里是blog主页');\n\t}", "title": "" }, { "docid": "6500a4781770d3fda671de6bf82eb441", "score": "0.8068799", "text": "public function index() {\n\t\t\tredirect...
8467169566c10b704caaa889be4a2f0d
Function to get all usernames from the database
[ { "docid": "f9ea263c0512aba1aa2966e057771027", "score": "0.84330004", "text": "function get_all_usernames(){\n\t\t\t\n\t\t\t$this->db->select('username');\n\t\t\t$this->db->from($this->table);\n\t\t\t$q = $this->db->get();\n\t\t\t\n\t\t\treturn $q->result_array();\n\n\t\t}", "title": "" } ]
[ { "docid": "e607a2654f3aa5f287cbbe2e1889022a", "score": "0.8124855", "text": "function getAllUserName()\n{\n\t$log = LoggerManager::getInstance();\n\t$log->debug(\"Entering getAllUserName() method ...\");\n\t$adb = PearDatabase::getInstance();\n\t$query = \"select * from vtiger_users where deleted=0\";\...
2bfa294e75bbdb56bfaef3b5308add59
Connexion a la base des donnees en retournant un objet PDO
[ { "docid": "fa8eeaa9ff8d830e194b3a17ba03f8fd", "score": "0.0", "text": "function dbConnect(){\n try{\n $db = new PDO('mysql:dbname=contacts_db;host=localhost', 'root', '');\n }catch (PDOException $e){\n die('Erreur due à : '.$e->getMessage());\n }\n\n return $db;\n}", "titl...
[ { "docid": "6df18f0be35f2c20d4561bff66253c9c", "score": "0.81005204", "text": "public function getConnection(){\n $this->_connexion = null;\n\n // Trying to connect to the base\n try{\n $this->_connexion = new PDO(\"mysql:host=\" . $this->host . \";dbname=\" . $this->db_n...
33bc0a6209c6ce44e5826a5b71fbb476
Data provider for testFloor
[ { "docid": "72a09a2514ce38170bcc3db530a4bb47", "score": "0.45106727", "text": "public function casesFloor()\n\t{\n\t\treturn array(\n\t\t\tarray(2, 7, true, false, 0, null, true),\n\t\t\tarray(2, 7, true, false, 6, 6, false),\n\t\t\tarray(2, 7, true, false, 7, 6, false),\n\t\t\tarray(2, 7, true, false, ...
[ { "docid": "8ffda469f81dc52946422af1e14650a2", "score": "0.6100799", "text": "public function show(Floor $floor)\n {\n //\n }", "title": "" }, { "docid": "c43217c5972efff154a7e8c3dd0933e4", "score": "0.60936975", "text": "public function __construct(FloorRepository $floo...
7627a6564d331b6398442cb0f0cc0f13
/ Eine NavigationspunktSeite editieren / bearbeiten
[ { "docid": "d8ee8b333de6ec8acfb74c75c31941f2", "score": "0.0", "text": "public function save_navi_page($seiten_id) {\r\n global $db, $general;\r\n $update = 'UPDATE ' . $this->mPrefix . 'seiten SET';\r\n $update .= ' kurztitel=\"' . $db->escape($_POST['kurztitel']) . '\",';\r\n ...
[ { "docid": "290162f6eee598845b26949acd1fd53d", "score": "0.73492956", "text": "public function edit();", "title": "" }, { "docid": "53adc442fed1dc21c37a56983fb62ecf", "score": "0.7339442", "text": "public function edit()\n\t{\n\t\t//\n\t}", "title": "" }, { "docid": "9259...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "7d56ba702b0f53bfb287a0a271448f5e", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update...
5f91fd064a8ee2ed7e3267560df43e7f
Edit the student ragabas
[ { "docid": "e13b66bb545da2816d04fe07b10a6859", "score": "0.66202754", "text": "public function edit_ragaba(Request $request)\n {\n $this->validate($request, [\n 'school' => 'bail|array'\n ]);\n \n $student = Student::where('s_number', auth()->user()->email)->fir...
[ { "docid": "60d2f5acde15b1eb78b8072add007958", "score": "0.71498716", "text": "public function edit($id)//edit existing students info\n {\n }", "title": "" }, { "docid": "f97578f795daca76846af46e2fae16d7", "score": "0.7006006", "text": "public function edit(Student $student)\n ...
09045e2fff00e0903f613550a8c536d9
//////////////////////////////////////////////////////////////////////////////// ///////////////////////////////Post Frontend functions////////////////////////// ////////////////////////////////////////////////////////////////////////////////
[ { "docid": "d496598d0abb09eee47634ea4fbdb547", "score": "0.0", "text": "public function published_posts($limit){\n\t\t$res = $this->where_query(\"posts\",\"status\",\"=\",\"Published\",\"\",\"\",\"\",\"\",\"id\",\"DESC\",$limit);\n\t\treturn $res;\n\t}", "title": "" } ]
[ { "docid": "02a181c060bbff94b7f4a29fcfd5f8c5", "score": "0.74376726", "text": "protected function _postAction()\n {\n }", "title": "" }, { "docid": "1f20e7c9afabce2dc03c85afb1baf61b", "score": "0.7415251", "text": "public function _post() { }", "title": "" }, { "doc...
944b7895075963495445e26219723e8b
Resolve a JSON Reference for a Schema
[ { "docid": "d5d3b5a3d64ceebefa89dd002743fa78", "score": "0.6590854", "text": "protected function doResolve(Reference $reference)\n {\n $referencedSchema = $this->resolveSchema($reference, $reference->getCurrentSchema());\n\n if ($reference->hasFragment()) {\n $schema = $this-...
[ { "docid": "f8fc8e09ba58016c8269b17cb997b42f", "score": "0.6669931", "text": "protected function resolveJSONPointer(Reference $reference, $schema)\n {\n $pointer = $reference->getFragment();\n\n if (empty($pointer)) {\n return $schema;\n }\n\n // Separate pointe...
547a75b9eb5a3efebf193153f75e4197
/ ./History Register / History Lawyer Get all Lawyer JSON
[ { "docid": "6cfff3f3d95e084dff194d0463ee318c", "score": "0.71329635", "text": "function _getHistorylawyerjson(){\n\t\t$sql = \"SELECT lawyer.lawyer_id, information.information_name, information.information_lastname, \n\t\t\t\tinformation.information_idcard, information.information_phonenumber,\n\t\t\t\t...
[ { "docid": "22c5eca8d2ea4fe1a6661e5e50c6c6d0", "score": "0.64422536", "text": "function _getLawyer70json(){\n\t\t$now = unix_to_human(now('+7'),TRUE,'eu');\n\t\t$age = date('Y-m-d', strtotime('-25537 day', strtotime($now)));\n\t\t$age = \"'\".$age.\"'\";\n\t\t$date = \"'\".(date('Y')-2).'-10-01'.\"'\";\...
ca7df8d7a3cbbfff250a7081ba3d03a6
Send data in blocks
[ { "docid": "5d230fd9872acf291d0572a657972535", "score": "0.0", "text": "function maxdb_send_long_data($param_nr, $data)\n{\n}", "title": "" } ]
[ { "docid": "e588590cdce74a747db55e02ccfa2f02", "score": "0.725496", "text": "abstract protected function sendChunk($data);", "title": "" }, { "docid": "6e43a0d3a3eaaff1a7a346fa1d0f9c82", "score": "0.6557765", "text": "abstract public function send(array $data);", "title": "" },...
a2d80c52730e5083d13270c32ead8204
Store a new form entry
[ { "docid": "6108367737e64556388fdb79a2e881e2", "score": "0.5711041", "text": "public function store($input)\n\t{\n\t\t$opt_in = ( isset($input['email_opt_in']) ) ? 1 : 0;\n\t\tContactForm::create([\n\t\t\t'name' => $input['name'],\n\t\t\t'email' => $input['email'],\n\t\t\t'message' => $input['message'],...
[ { "docid": "00733e03504895d2859e85726c665f72", "score": "0.63633364", "text": "public function store(KeyEntry $keyEntry);", "title": "" }, { "docid": "4772a85cb2249483c07698a97c98eb4d", "score": "0.63315654", "text": "public function action_gform_after_submission( $entry, $form ) {\n...
b74a978d810c63c3cf6bde539f3e103a
/ ACTUALIZA EL ID A 1=OCUPADA Y COLOCA LA COMANDA COMO REFERENCIA
[ { "docid": "f440033844eb8774be51f711004b15d0", "score": "0.0", "text": "function update_mesa_est1_ref($idCom,$idMesa){\n $q11 = \"UPDATE mesa SET mesa_estado = 1 , ref = '$idCom' WHERE idMesa = '\".$idMesa.\"' ;\";\n $this->db->query($q11);\n }", "title": "" } ]
[ { "docid": "0e47318c914aff51a8933b71e8bbeb83", "score": "0.6527399", "text": "Function DevuelvoIdOrigenTitulo($cual,&$id){\r\n\t\trequire(\"UsarGestion.php\");\r\n\t\t$consulta=\"SELECT Id FROM origentitulo WHERE Descripcion='\".$cual.\"'\";\r\n\t\t//echo ($consulta);\r\n\t\t$hacerconsulta=mysql_query($...
669f33473665c616e381c490ce6d96ee
Determine if given post is valid
[ { "docid": "c2871d266cd661ef2ee97a9c94442972", "score": "0.0", "text": "protected function validatePost($title, $slug, $id = null)\n {\n $rules = array(\n 'title' => 'required',\n 'slug' => 'required|unique:posts,slug'\n );\n\n if ($id)\n {\n ...
[ { "docid": "9eb3dcf37fd2038ecab1f3404e979d04", "score": "0.8095333", "text": "private function requested_post_is_valid(){\n if(isset($_GET['post_id']) && $this->is_valid_token()){\n //does the requested post_id match the requested post_type\n if(get_post_type((int)$_GET['post_id']) !=...
fc478748c729f24c37df51b2c000cd69
set defaults for new users
[ { "docid": "2576aeeb732b9f18ff1610e845fbe49b", "score": "0.0", "text": "public function __construct()\n\t{\n\t\t$this->user_level = 'client';\n\t}", "title": "" } ]
[ { "docid": "b2e9751c2a6efb1f10262706801ec9ad", "score": "0.7521935", "text": "private function addDefaultUserMeta(): void\n {\n NewUser::addLoginUserMeta(\\get_current_user_id(), $this->getIp());\n }", "title": "" }, { "docid": "e039d6528a83103c96ff7fca68f19398", "score": "0...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "735e465640db5c659ac193ab8af1f08c", "score": "0.75662816", "text": "public function createAction ()\n\t{\n\t\t$this->view->form = $this->_form;\n\t}", "title": "" }, { "docid": "c22dae1333d29c28ed855dcb7f069232", "score": "0.74913496", "text": "public function create()\n ...
ef0c9ebfb00372255a01456db63a0b06
/ find the next article id for article info
[ { "docid": "2232a07deec5246a441b79839fb57a68", "score": "0.66595125", "text": "public function getNextId($id)\n {\n $next = Article::where('status', '1')->where('id' , '>' , $id)->min('id');\n return $next;\n }", "title": "" } ]
[ { "docid": "12fdedddbe5d922c063abc01612c6f2b", "score": "0.7147364", "text": "public function nextRecord()\n {\n return Article::visible()\n ->where('id', '>', $this->id)\n ->orderBy('id')\n ->first();\n }", "title": "" }, { "docid": "9bc1d2b85cd...
bb2b4d845789960974f081576a35358f
/ liens : cette fonction est appelee automatiquement a chaque affichage de la page privee du Couteau Suisse
[ { "docid": "4014f3ec6315c243990abd721848e3a9", "score": "0.0", "text": "function insertions_installe() {\r\n\tif(!defined('_insertions_LISTE')) return;\r\ncs_log(\"insertions_installe()\");\r\n\t// on decode la liste entree dans la config\r\n\t$liste = preg_split(\"/[\\r\\n]+/\", trim(_insertions_LISTE)...
[ { "docid": "79c182c887f83acdcc79c9bf05704c8c", "score": "0.69758344", "text": "public function affichePiedPage()\n\t\t{\n\t\t//appel de la vue du pied de page\n\t\trequire 'Vues/piedPage.php';\n\t\t}", "title": "" }, { "docid": "0dd2852c65f94c09d579c15b74ddda3f", "score": "0.683551", ...
dba5d91bc24a48a6c70d7fdac16390b1
Loads the list of coupons.
[ { "docid": "d53a59a7e1b551de405d0f85806d75d0", "score": "0.5287251", "text": "public function index()\n\t{\n\t\t$this->set_page_title(_l('coupons'));\n\n\t\tif (!has_permissions('coupons', 'view'))\n\t\t{\n\t\t\t$this->access_denied('coupons', 'view');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$data['coupons'] = $...
[ { "docid": "ce3fc2f1af9a6d0afaa5dcd1dc885196", "score": "0.69606537", "text": "function getCoupons()\r\n {\r\n // TODO Attempt to set this if it is empty\r\n if(@$this->_coupons)\r\n return $this->_coupons;\r\n else\r\n return array();\r\n }", "title"...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.7593495", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "d57b314bf807713f346bc35fb937529e", "score": "0.6845801", "text": "public function render() {\n $this->_template->display($t...
e8b10bca3d0c14ebd0e8337c47b601ef
Display a form to edit a task
[ { "docid": "b8d047ca5532ae0e19da7bfada2ba215", "score": "0.0", "text": "public function edit(array $values = array(), array $errors = array())\n {\n $task = $this->getTask();\n $project = $this->project->getById($task['project_id']);\n\n if (empty($values)) {\n $values...
[ { "docid": "6593cfdb18f1cef76f37b77910191c1a", "score": "0.8341696", "text": "public static function edit()\n {\n $record = todos::findOne($_REQUEST['id']);\n\n self::getTemplate('edit_task', $record);\n\n }", "title": "" }, { "docid": "b4bcae16b256bb23707dba844fd207b0", ...
d4d4b0ddb470d98c375c8cad0b925cfd
It is a method to delete a list.
[ { "docid": "a9dd654191c08acfaa241de5c6bbc0fb", "score": "0.6541585", "text": "public function deleteList(int $list_id): bool\n {\n if ($list_id < 1) throw new ORMException('ID of list have to be set');\n\n $params = ['list_id' => $list_id];\n $this->makeRequest('deleteList', $par...
[ { "docid": "21e105ee1a8b33228dd05a8fddb89364", "score": "0.760111", "text": "public function deleteList($listID){\r\n\t\t//require_once '../../csrest_lists.php';\r\n\t\t$wrap = new CS_REST_Lists($listID, $this->getAuth());\r\n\t\t$result = $wrap->delete();\r\n\t\treturn $this->returnResult(\r\n\t\t\t$re...
d30ae562d3a9c1b9a47f023690974138
string Sets POS Lane Code.
[ { "docid": "cc2da1e74756a11eb14f6fe463672f6b", "score": "0.6310935", "text": "public function setPosLaneCode($value)\n\t{\n\t\t$this->PosLaneCode = $value;// return $this;\n\t}", "title": "" } ]
[ { "docid": "e6bed652ae799276ede6b8cc8d54a585", "score": "0.5971328", "text": "public function setCode(string $code) {\n $this->originalCode = $code;\n $xCode = trim($code);\n $len = strlen($xCode);\n\n if ($len !== 0) {\n for ($x = 0 ; $x < $len ; $x++) {\n ...
78621b0b5b5c9d23649791a119c20ca5
Sets the API to use for communication
[ { "docid": "6ad7dcda520850912913d42aaad8a770", "score": "0.0", "text": "public function __construct (LiquidApi $api)\n {\n $this->api = $api;\n }", "title": "" } ]
[ { "docid": "e24a488251ff60ff12537cd0bc01f19b", "score": "0.7260512", "text": "public function setApi($api);", "title": "" }, { "docid": "7f20914b8e3c0a990577140897a3065f", "score": "0.7126853", "text": "public function setApi($api): void\n\t{\n\t\t$this->api = $api;\n\t}", "title...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "0589c2e94a3ca5851d74feeafc70cbd8", "score": "0.0", "text": "public function create($id)\n {\n $users = User::findorfail($id);\n $coursetab = Coursetab::where('admin_id', $id)->get();\n // dd($coursetab);\n return view('auth.tempCoursesData.create', compact('use...
[ { "docid": "f8bba5517a2cb6f46311a24713a6bef2", "score": "0.8125342", "text": "public function create()\n {\n return view('admin.resource.new');\n }", "title": "" }, { "docid": "20ef26ca996d9360798f2ecc07198092", "score": "0.7804094", "text": "public function create()\n\t...
8bea50579a4069179335281d0d687fb8
check slug is uniquee or not.
[ { "docid": "b0bb514135fc12d163c2f2a0ac13cf41", "score": "0.6650151", "text": "function slug_exist($text,$tablename,$fieldname)\r\n{\r\n $CI =& get_instance();\r\n $checkSlug = $CI->db->get_where($tablename,array($fieldname=>$text))->num_rows(); \r\n if($checkSlug > 0)\r\n {\r\n return true;\r\n ...
[ { "docid": "417e65a8cf4781c3d0e68fc6817dbb0b", "score": "0.79364383", "text": "public function hasSlug(): bool;", "title": "" }, { "docid": "46dbf2577e536e4e17c603038cf84011", "score": "0.7933901", "text": "public function _unique_slug ($str)\n\t{\n\t\t// UNLESS it's the slug for the...
7a4b7a29b90b1cbfe2e57518458bbe71
Display the specified resource. [GET]
[ { "docid": "12af0dd6781c0be908af1f410a2b7ceb", "score": "0.0", "text": "public function show($ids) {\n\n $name = static::$modelName;\n $idArray = explode(',', $ids);\n $models = $name::whereIn('id', $idArray)->get();\n\n if (count($models) == 0) {\n throw new Reso...
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.7898653", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "fa12d91e9349fafc5fadd2869e01afe7", "score": "0.78710073", "text": "public function show(Resource $resource) {\...
c4fee7d512a28a08feb096a893bf1d07
TODO: Your mock expectations here
[ { "docid": "820982360d272c1c054338750836fd8c", "score": "0.0", "text": "public function testAnalyze833()\n{\n\n // Traversed conditions\n // if (!\\getid3_lib::intValueSupported($info['filesize'])) == false (line 24)\n // if (\\substr($id3v1tag, 0, 3) == 'TAG') == true (line 33)\n // if ($id...
[ { "docid": "9d23b793c460954ad744bba6a9ed0333", "score": "0.658122", "text": "protected function before() {}", "title": "" }, { "docid": "9d23b793c460954ad744bba6a9ed0333", "score": "0.658122", "text": "protected function before() {}", "title": "" }, { "docid": "875d18a05a...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a9f3087c670394bb8a38b026be8427f2", "score": "0.0", "text": "public function edit($movieId, $linkId)\n {\n $link = Link::findOrFail($linkId);\n return view('admin.movies.links.edit', compact('link'));\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", ...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "67cdbb29541c9da230a2fe9b86b87ebd", "score": "0.0", "text": "public function create()\n\t{\n\t\t//\n\t\t//check if user is logged in\n\t\tif(!\\Auth::check())\n\t\t{\n\t\t\treturn redirect('welcome');\n\t\t}\n\n\t\t$drivers = array();\n\t\t$drivers_query = \\DB::table('drivers')->get();\n\n\t...
[ { "docid": "a5a742c5eb76d32c32823659c256e71f", "score": "0.78349334", "text": "public function actionCreate() {\n $this->render('resource_create');\n }", "title": "" }, { "docid": "246a2b1ff9c2e296275420128d62692d", "score": "0.7763876", "text": "public function create()\n ...
7c2c864cd35796ac8af34f6ccdd955a7
returns true if domain is AVAILABLE, else returns false
[ { "docid": "46b91ac3dcacd7b4ecc9d39e9f927dce", "score": "0.693865", "text": "function CheckByWhois($host){\n //generate a set of semi-false results based purely on ping\n sleep(0.1);\n return TRUE;\n\n if($this->DAC1->isAvailable($host)){\n echo \"\\nDomain $host is...
[ { "docid": "8d3714d38cb55fb6382430eaf42c726e", "score": "0.744256", "text": "public function hasDomain()\n {\n return isset($this->domain);\n }", "title": "" }, { "docid": "615269dd0aafa44380ea26c517e92732", "score": "0.7275711", "text": "public function isDomainAvailibl...
89f86d46093caf8edcc282077a1d3cc6
Created by PhpStorm. User: YangYu Date: 2019/5/15 Time: 8:39
[ { "docid": "430a56e1bde193c1d130347354c6598c", "score": "0.0", "text": "function arr_mr($arr){\n $qi=[];\n $ou=[];\n foreach ($arr as $v){\n if ($v%2==0){\n $ou[]=$v;\n }else{\n $qi[]=$v;\n }\n }\n return array_merge($qi,$ou);\n}", "title": "...
[ { "docid": "ce8f7feb7f13592cb15ad9d893be0b4a", "score": "0.60798556", "text": "public function __construct()\n\t{\n\t\t;\n\t}", "title": "" }, { "docid": "2cc59f62bc7e5ec3bcad82dff8fdcb15", "score": "0.6047781", "text": "public function refuel() {\n\t}", "title": "" }, { ...
f8b8bda42ec190710697faeedd72270e
Creates a string representation of this object
[ { "docid": "4e98e3984f4097a4e3f749904eedfee3", "score": "0.0", "text": "public function toString() {\n return sprintf(\n \"%s(%s)@{\\n\".\n \" [lastModified] %s\\n\".\n \"}\",\n $this->getClassName(),\n $this->name,\n xp::stringOf($this->mod)\n );\n ...
[ { "docid": "7230ca27271772c6e4d22d6e0c9f7a00", "score": "0.8449173", "text": "public function __toString() {\n\n\t\treturn $this->create();\n\t}", "title": "" }, { "docid": "e3735896ef5c5ebd84301ff40b38f246", "score": "0.8213938", "text": "public function __toString( )\n {\n ...
a4a5b8cea35b533b3be3a15914df19e7
Get a seeder instance from the container.
[ { "docid": "b62c53868a416250e713796260b09911", "score": "0.6360712", "text": "protected function getSeeder()\n {\n $class = $this->app->make('Bookworm\\Database\\Install');\n\n return $class->setContainer($this->app)->setCommand($this);\n }", "title": "" } ]
[ { "docid": "6f3cac183ad72a395e75c29b16f37e7d", "score": "0.7024345", "text": "protected function getSeeder()\n {\n $class = $this->input->getOption('class') === 'DatabaseSeeder'\n ? 'App\\\\Domains\\\\Core\\\\Database\\\\Seeds\\\\DatabaseSeeder'\n : $this->domainNamespace...
ddbd8457c6e138cbc7c09fb555b20470
Deauthorization of the student
[ { "docid": "d88c767bb8f4832449e633e7ac7e8344", "score": "0.71956134", "text": "public function deauthorizeStudent(): bool\n {\n return $this->cookie->destroyCookie('auth_token');\n }", "title": "" } ]
[ { "docid": "6ee0e80aaf30bee9b5a5a686852650be", "score": "0.69822276", "text": "public function destroy(student $student)\n {\n //\n }", "title": "" }, { "docid": "75033f647f56bc5b643fbab18536bbf8", "score": "0.69202495", "text": "public function deauthorize($uid)\n {\...
0d3359ceac90c6577cd32dbf094742f4
Does a var_dump on the last response (and any args passed to this method). This will exit the script.
[ { "docid": "6df14e16788e3f628e74d26cdf92c2d5", "score": "0.7278397", "text": "public function dumpLastResponse(){\r\n\r\n $args = func_get_args();\r\n if( !empty($args) ){\r\n \\Altumo\\Utils\\Debug::dump( $this->last_response, $args );\r\n }else{\r\n \\Altumo\...
[ { "docid": "cd55f5aed06ef763c0221cd65f5c5ad5", "score": "0.6449957", "text": "function exit_script(string $msg = \"\", bool $success = true, $payload = null)\n{\n //http_response_code($errorCode);\n\n /* \n * Clean the output to ensure that we're returning valid Json,\n * however we still ...
f13ea3ccedcb8a3184b822b1d4cca9ac
Create a new message instance.
[ { "docid": "dedb807562672781270b294aa1847865", "score": "0.0", "text": "public function __construct(String $msg)\n {\n $this->message = $msg;\n }", "title": "" } ]
[ { "docid": "8af2eead2111483fe56ea3cd706d916a", "score": "0.8313891", "text": "public function createMessage();", "title": "" }, { "docid": "8af2eead2111483fe56ea3cd706d916a", "score": "0.8313891", "text": "public function createMessage();", "title": "" }, { "docid": "6134...
4d9bbbf3cba6fa1bb4cdc7717913bd37
Determine if the user is authorized to make this request.
[ { "docid": "8eebf425ce52b4bb228e70caffb79698", "score": "0.0", "text": "public function authorize()\n {\n return true;\n }", "title": "" } ]
[ { "docid": "4c4fbdb895548c0ca03ecf5e521e4d5e", "score": "0.8377486", "text": "public function authorize()\n {\n return $this->user() !== null;\n }", "title": "" }, { "docid": "adc35a96694d73041eb8bde60a1a3a34", "score": "0.8355789", "text": "public function authorize()\n...
30cb1dc5fd2196311b678bf2a22d3661
add a custom cron schedule three minutes
[ { "docid": "8783d47b8e336636a1d2f3d7d3a57055", "score": "0.7476231", "text": "function custom_cron_schedules($param) {\n\t\t return array('five_minutes' => array(\n\t\t\t 'interval' => 300, // seconds\n\t\t\t 'display' => __('Every 5 minutes') \n\t\t ));\n\t}", "title": "" } ]
[ { "docid": "0c79e2e610f24308d03307a9a2c6c66e", "score": "0.76408786", "text": "function busha_add_cron_interval($schedules)\n{\n\t$schedules['thirty_mim'] = array(\n 'interval' => 1800,\n 'display' => esc_html__( 'Every Thirty Minute' ),\n );\n \n return $schedules;\n}", "title"...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "460d379e6c4401880562d2397c3a426c", "score": "0.0", "text": "public function run()\n {\n if (config('admin.admin_name')) {\n $randomImage = new RandomImage();\n $imageName = $randomImage->genImage('human', 'admin');\n User::firstOrCreate(\n ...
[ { "docid": "026cbaddf68d6d6a45da6661bc9c4127", "score": "0.79270625", "text": "public function run() {\n\n $this->call([\n CategorySeeder::class,\n ColorSeeder::class,\n SubCategorySeeder::class\n ]);\n// $products = Product::factory()->count(1000)\n...
3887d0a2849c8d5175b701dffc43d7ce
$oDiscount = $this>getMock( 'oxdiscount', array( 'getAbsValue') );
[ { "docid": "b3671a7d87af11cc9019b010034b6377", "score": "0.6408027", "text": "public function testApplyDiscounts()\n {\n //$oDiscount->expects( $this->any() )->method( 'getAbsValue')->will( $this->returnValue( 13 ) );\n\n $oDiscount = new oxdiscount();\n $oDiscount->oxdiscount__o...
[ { "docid": "3024f59c43c2cfce39bdc8e8b32d1148", "score": "0.68920505", "text": "public function testGetArticleDiscounts()\n {\n // just simulating article\n $oArticle = new oxArticle();\n $oArticle->xxx = 'yyy';\n\n $aDiscounts[0] = $this->getMock( 'oxdiscount', array( 'isF...
26999f6ed251850dfbf4d8a7900e2c13
delete_location( $name ) Find and delete an existent location
[ { "docid": "64a6ef2502b309293ec6317123a189eb", "score": "0.8043399", "text": "function delete_location( $name ) {\n $name = sanitize_title( $name );\n $locations = array_values( get_option( self::$location_key ) );\n for( $i = 0; $i < count( $locations ); $i++ )\n if( $lo...
[ { "docid": "27631ee313b7bb8e6f49888895f6599a", "score": "0.714791", "text": "public function remove(string $location): void;", "title": "" }, { "docid": "726b01ffc59a82ab6aff7db28bd435ba", "score": "0.70116043", "text": "function deleteLocation($id) \n\t{\n\t\t\n\t\t $this->db->where...
ba2a78d49b2f5c142bae3fb957b7bc87
Scope the query for the given type.
[ { "docid": "94f05323eba1281b22743e2315a85e32", "score": "0.0", "text": "protected function whereType(Builder $query, $type): self\n {\n $query->when($type, static function ($query, $type) {\n return $query->where('type', $type);\n });\n\n return $this;\n }", "ti...
[ { "docid": "2076ae54e14c76feba700a7ac6b12290", "score": "0.8109204", "text": "public function scopeType($query, $type)\n {\n return $query->whereType($type);\n }", "title": "" }, { "docid": "54f9a64e7b4ae3f5beebea878140bce3", "score": "0.7969236", "text": "public functio...
f036bb1ca5cf1c89504da131e154ef15
Permet d'afficher le tableau des mois
[ { "docid": "d5f1a39041ee142f57c1b665064f5840", "score": "0.0", "text": "function affichageTableau($tab,$tabColor,$key){\n $j=1;\n $s=1;\n $x=0;\n echo '<table class=\"tab\">';\n for($i=1;$i<=4;$i++){//affichage des lignes\n ...
[ { "docid": "6a33bfdaec0c8230278f851b1ef79669", "score": "0.6514752", "text": "public function tabMois()\n\t\t\t\t{\n\t\t\t\t\treturn $this->_Mois;\n\t\t\t\t}", "title": "" }, { "docid": "396a20c01fdea7ef791bd49aa101b6b2", "score": "0.61923647", "text": "function giveMois($mois){\n\t\...
4fdedf6ed7bd9f9c0c088965f2bb9794
Fetch a field name in a result
[ { "docid": "a137a3b9924a045bc21f8364b2877347", "score": "0.66909903", "text": "public function fieldName($query = false, $offset)\r\n {\r\n $result = $this->resCalc($query);\r\n return $result->fetch_field_direct($offset);\r\n }", "title": "" } ]
[ { "docid": "640819c5fb72fa2fe1daba64bb3c77d8", "score": "0.77990395", "text": "public function get_field($name);", "title": "" }, { "docid": "57772f3acddd011f23dd85a93ab6dd57", "score": "0.77832484", "text": "function udm_get_res_field($res, $row, $field) {}", "title": "" }, ...
bf29ca7a2faf0939dd711c27011384cc
Set the user logged in without password check.
[ { "docid": "d80d5ef896dd7e6c4a0fcc3d182679c2", "score": "0.0", "text": "public function forceLogin($user_login=null) {\n // echo \"user_login: $user_login\\n\";\n if ( empty($user_login) ) $user_login = $this->user_login;\n $user = get_user_by( 'login', $user_login );\n if ( ...
[ { "docid": "2dd003b502154b56390d3f1ee842a617", "score": "0.733294", "text": "public function _setRealUser() {\n\t\t$user = $this->Auth->user();\n\t\t$user['id'] = $user['real_user_id'];\n\t\tunset($user['real_user_id']);\n\n\t\t$this->Auth->login($user);\n\t}", "title": "" }, { "docid": "56e...
15970107918ed07610433a8f45c23a66
Set the value of total
[ { "docid": "abc8b3e74d0e821e64f54e6a2b18540d", "score": "0.6276", "text": "public function setTotal($total)\n {\n $this->total = $total;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "d055c4a24ced3304c8eb407f6f719a58", "score": "0.81792873", "text": "public function setTotal($total);", "title": "" }, { "docid": "17a4af2a603dd6519f1b6a817f16d8aa", "score": "0.79070795", "text": "public function set_total($total) {\n $this->_state['total'] = $tota...
ac3b46b37ab5a3a865114eb58a6b2563
This is a nonstandard function. It outputs JS code to render the module preview in the new Divi 3 frontend editor. Return value of the JS function must be full HTML code to display.
[ { "docid": "2e4bbe3e0bc016b4c5e7e49eb6450086", "score": "0.6851869", "text": "function js_frontend_preview() {\n ?><script>\n window.<?php echo $this->slug; ?>_preview = function(args) {\n return '<section class=\"custom_header_shapes et_pb_fullwidth_header\">' +\n ' <...
[ { "docid": "8fa61ae3d7b9f4ab7a4a69dd791364d5", "score": "0.72193617", "text": "public function render()\n {\n\n $result = '';\n if ($this->getModuleLoader()->hasPlugin('imageEditor')) {\n\n $result = sprintf('<script type=\"text/javascript\" src=\"%s\"></script>\n\t\t\t\t<a h...
f20c101a4d16fcc55738d2bcf7710164
Set the value of namespace AppBundle/Entity;
[ { "docid": "6a3e935ee890870b1c9c500ca6af91f3", "score": "0.0", "text": "public function setName($name)\n {\n $this->name = $name;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "07c1b6bd273cda558e367080d0cd1249", "score": "0.70928264", "text": "public function setEntity($entity) {\n $this->entity = $entity;\n }", "title": "" }, { "docid": "ca0a45948bdecabe33271f4a24f6a691", "score": "0.7062306", "text": "abstract protected function setEntity(...
87a2acd16b993b119ba213e35bd59728
This function is used to get the activity details through ajax to show in the activity modal popup form
[ { "docid": "b738e0a37ffe9112a43668b28bbd843c", "score": "0.6909772", "text": "public function get_activity_details()\n\t\t{\n\t\t\t$data = array();\n\t\t\tif($this->input->post('id'))\n\t\t\t{\n\t\t\t\t$data = $this->admin_model->commonGetData(\"*\" , 'fixed_day_activity_details_id = '.$this->input->pos...
[ { "docid": "c410815e2b457c70eaa795d96e7942ad", "score": "0.6932136", "text": "public function getActivityDetails() {\n $incomingData = $this->readHttpRequest();\n $id = json_decode($incomingData);\n\n $activityDet = $this->ActivityFaculty_model->getActivityDetails($id);\n\n e...
ad700c9ceba356d346a9df22907fbd8b
Returns a time to live left for a given key, in milliseconds. If the key doesn't exist, FALSE is returned.
[ { "docid": "0db97cc207a60733943f11dd2e43c485", "score": "0.0", "text": "public function pttl($key) {}", "title": "" } ]
[ { "docid": "ae67c59793039bae3c5831d468af1cd6", "score": "0.70474964", "text": "public static function GetTimeRemaining($sesskey)\n {\n //NOTE: This function is called by IsValidSession so it may not use it to validate the session.\n global $SESSDB;\n \n $q = $SESSDB->prepa...
4063f977cac2609fd203a845bdac9d8e
Get the last unpaid subscription, if any.
[ { "docid": "8aca988689af138a3de902f5327af0bd", "score": "0.89533335", "text": "public function lastUnpaidSubscription()\n {\n return $this->subscriptions()->latest('starts_on')->notCancelled()->unpaid()->first();\n }", "title": "" } ]
[ { "docid": "9995943b412864a3057fed9cbdb19757", "score": "0.79382926", "text": "public function lastDueSubscription()\n {\n if (! $this->hasSubscriptions()) {\n return;\n }\n\n if ($this->hasActiveSubscription()) {\n return;\n }\n\n $lastActiveS...
89701ca85e0cd04c7a926aed96011c36
Use this method to forward messages of any kind. On success, the sent Message is returned.
[ { "docid": "eda64c30ab88477a3b0bff8584fd7d76", "score": "0.6863224", "text": "public function forwardMessage($parameters)\n {\n $response=$this->endpoint(\"forwardMessage\", $parameters);\n\n /** @var Message $object */\n $object=$this->mapper->map($response->result,new Message()...
[ { "docid": "e495b10cf88da6629727e848b04f1430", "score": "0.67567784", "text": "public function forwardMessage(array $params)\n {\n return $this->client->request('forwardMessage', $params);\n }", "title": "" }, { "docid": "a00cb6526f71aa7b4d0be867781d10bc", "score": "0.666003...
9934de49294944fdf5bfdbc6bfc2e091
/ checkLoginUser() purpose : verify user and add login entry
[ { "docid": "47ecc9f5bb901f95b276b6509d661ea6", "score": "0.0", "text": "public function checkLoginUser()\n {\n $data = $this->session->userdata;\n if(empty($data)){\n redirect(site_url().'auth');\n }\n\n $this->load->library('user_agent');\n $browser = $this->agent->brow...
[ { "docid": "25117c081fd89595db828832617a378a", "score": "0.71840185", "text": "public function checkLogin() {\n\t\t$user_ok = false;\n\t\t$user_id = \"\";\n\t\t$log_usename = \"\";\n\t\t$category = \"\";\n\t\tif (isset($_SESSION['user_id']) && isset($_SESSION['username'])) {\n\t\t\t$user_id = preg_repla...
b222cf9abb84f9dc680477968f85a2b2
Cadastro de novas Universidades
[ { "docid": "ed3be300038a40d7e9a81d0acd99ea39", "score": "0.0", "text": "public function novoAction() {\n $form = new Application_Form_Universidade();\n if ($this->getRequest()->isPost()) {\n if ($this->getRequest()->getPost('cancelar') == \"\") {\n $formData = $th...
[ { "docid": "acabae6cdb9ad58a0b2fcbc12c84cff2", "score": "0.6681799", "text": "public function getUniversitas()\n {\n return $this->universitas;\n }", "title": "" }, { "docid": "28d64fa21e04b03db397cfa65c3a7fb1", "score": "0.6545384", "text": "public function listarUnidad...
0c63b48cfd30ae3a53769d01a298cb54
configure external properties ( pointers) from other objects
[ { "docid": "51ffdd3f301d779b3597c3d3093ec355", "score": "0.53738534", "text": "public function Module_configExternalPointers(&$mod, $objREQ)\n {\n foreach($objREQ AS $key=>$propName)\n {\n if (is_string($key)) {\n # atunci se cere obiectul cu numele key si cu p...
[ { "docid": "38636781a315385ead0cd1a699f7e2ea", "score": "0.6424241", "text": "abstract public function initialize_properties();", "title": "" }, { "docid": "5e2b7056b98861b7600f2ecc5c1c2b6a", "score": "0.6351953", "text": "abstract public function loadotherProperties();", "title"...
1000c4778b265969fea03ed0cc501e60
Tells whether the public suffix has a matching rule in a Public Suffix List ICANN Section.
[ { "docid": "90ff7a3a798fbaaae3ab44fcb297e5ba", "score": "0.65814966", "text": "public function isICANN(): bool\n {\n return $this->publicSuffix->isICANN();\n }", "title": "" } ]
[ { "docid": "810aec6bced1ddee6fe08dbb79e72879", "score": "0.6281759", "text": "public function isKnown(): bool\n {\n return $this->publicSuffix->isKnown();\n }", "title": "" }, { "docid": "e47afaba2b65cfe63c2cf0615e046089", "score": "0.5556494", "text": "public function h...
98eefd715647754bfc8e2ca4f413f581
Grocery crud de grupos registrados
[ { "docid": "40840b2b2b6ce808ed9200f19f315f97", "score": "0.7016868", "text": "public function grupos()\n {\n try\n {\n $this->db->schema = 'sistema';\n //pr($this->db->list_tables()); //Muestra el listado de tablas pertenecientes al esquema seleccionado\n\n ...
[ { "docid": "7e90853002888ad5dccb8b696895d171", "score": "0.68966526", "text": "public function getGruposController(){\n\t\t$informacion = Crud::vistaXTablaModel(\"grupos\");//ejecucion del metodo del modelo\n\t\tif(!empty($informacion)){\n\t\t\t//si el resultado no esta vacio, imprimir los datos de los ...
07ec6b9762bcc45a46e2d4c657dbe164
run the external command, break output into lines
[ { "docid": "e9280214cd843e39c2dd03a1df9dec2e", "score": "0.0", "text": "function ipscan($host){\n$macAddr=false;\n$arp=exec('arp -a '.$host.'');\n$lines=explode(\"\\n\", $arp);\n#look for the output line describing our IP address\nforeach($lines as $line)\n{\n$cols=preg_split('/\\s+/', trim($line));\nif...
[ { "docid": "3c0fe4c5f1768fc58b0c399ab69cceea", "score": "0.5944374", "text": "function runCommand($cmd)\n{\n $proc = popen($cmd, 'r');\n while (!feof($proc))\n {\n echo fread($proc, 4096);\n @ flush();\n }\n pclose($proc);\n}", "title": "" }, { "docid": "99dc9ada...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "292dce0fb25f89abb8c64bf979c1cafd", "score": "0.0", "text": "public function __construct()\n {\n $this->middleware('auth');\n }", "title": "" } ]
[ { "docid": "f2a8a6dabb56f39daaf63fa047807979", "score": "0.82668066", "text": "protected function createController()\n {\n $this->createClass('controller');\n }", "title": "" }, { "docid": "533144d4d648d293dbbc6fe3cf27bbc4", "score": "0.8173394", "text": "protected funct...
e831e6c8bf0a26a6add194331f77dba6
For now we just go with the empty display.
[ { "docid": "1eca6a699d6d9ab35a21dcf1d33c14f6", "score": "0.5906717", "text": "function get_default_display($bundle, $view_mode) {\n // @todo come up with a better default display.\n return parent::get_default_display($bundle, $view_mode);\n }", "title": "" } ]
[ { "docid": "b2cd2ec7a25d30381879591d18fac92c", "score": "0.7683858", "text": "function print_nothing_to_display(){\r\n global $OUTPUT;\r\n $this->print_initials_bar();\r\n\r\n echo $this->wrap_html_start();\r\n\r\n echo $OUTPUT->heading(get_string('nothingtodisplay'));\r\n\r\...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "e5f89b340007243f55dd3b8717bd6fa1", "score": "0.0", "text": "public function run()\n {\n DB::table('movimientos')->insert([\n\t\t\t'detalle' => 'prueba 1',\n\t\t\t'importe' => '10000',\n\t\t\t'user_id'\t=> '1',\n\t\t\t'tipo'\t\t=> 'ingreso',\n\t\t\t'estado'\t=> 'confirmado...
[ { "docid": "f74cb2c339072d43cd3b96858a89c600", "score": "0.8112784", "text": "public function run()\n {\n $this->seeds();\n }", "title": "" }, { "docid": "8d9ddbc23166c0cafca145e7a525c10a", "score": "0.8003396", "text": "public function run()\n {\n // $this->ca...
812f4b8facedaa495c0dfbdc77465062
Constructor with authentication and configuration parameters
[ { "docid": "3d286154cc39926f34f5985f75f55768", "score": "0.66757643", "text": "public function __construct(\n $basicAuthUserName = null,\n $basicAuthPassword = null\n ) {\n Configuration::$basicAuthUserName = $basicAuthUserName ? $basicAuthUserName : Configuration::$basicAuthUser...
[ { "docid": "3d16cf94cccd178157c558ff916e54fc", "score": "0.7800952", "text": "public function __construct()\n {\n $this->authentication = new Authentication(\n getenv('AUTH_DOMAIN'),\n getenv('AUTH_CLIENT_ID'),\n getenv('AUTH_CLIENT_SECRET'),\n geten...
6449286e7147becac172d7a7ff9a356b
Initializes the apps paths by creating the paths and writing them into the apps config.
[ { "docid": "e7bc99cccc62d90d3d0966a60e7c25a7", "score": "0.69460523", "text": "protected function initPaths(array $exclude_dirs = [])\n {\n $apps_dir = $this->core->config->get('Core', 'dir.apps');\n $apps_url = $this->core->config->get('Core', 'url.apps');\n\n // Set path proper...
[ { "docid": "15f3b9f472ca7674ad8750f4caba4223", "score": "0.71180636", "text": "private static function setAppPath() {\n\t\tif(!empty(self::$list)) {\n\t\t\tforeach(self::$list as $key => $val) {\n\t\t\t\tself::$list[$val] = self::$appDir . $val . DS;\n\t\t\t\tunset(self::$list[$key]);\n\t\t\t}\n\t\t}\n\...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "49df21ea3038931494d543ddc766a813", "score": "0.0", "text": "public function update(UpdatecategoryRequest $request, Category $category)\n {\n $category->update([\n 'category' => $request->category\n ]);\n\n session()->flash('success', 'category updated s...
[ { "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 ...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "c3c91d3235f8265b5d1c71432941c57e", "score": "0.0", "text": "public function destroy($id)\n {\n $action = Author::find($id);\n $action->delete();\n $action->books()->detach($id);\n if (!$action) return App::abort(400);\n\n return response()->json([\n ...
[ { "docid": "9e3888bdb250b09daf6881b2c953ce96", "score": "0.7387755", "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 }", ...
f8e7a53e66eae12d81b6c6b06a1a37cf
Works to get the first Elt of most any query that is done... Inefficient but reusablity of code is going to kill me here...
[ { "docid": "87b2265cbe1ff571a1c8a04661e67063", "score": "0.49479476", "text": "function getAnElt($choice){\n\tif( $choice == 1){\n\t\t$query = \"SELECT IID, COUNT(DISTINCT SID) as totalStudents\n FROM students\n GROUP BY IID\n ORDER BY totalStudents ASC\n LIMIT 1;\n\t\";\n\t} else if ($choic...
[ { "docid": "af52b88facbf3ad442141459903a00c7", "score": "0.5741275", "text": "function query_first($result = -1) {\n if ($result != -1) {\n $query = $this->query($result);\n }\n $out = $this->fetch_array($query);\n $this->free_result($query);\n return $out;\n ...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "222e9115cc335be3350461ebbeced7c2", "score": "0.0", "text": "public function store($uuid, Request $request)\n {\n $type = Type::create($request->all());\n return response()->json($type, 201);\n }", "title": "" } ]
[ { "docid": "08bf051ddd8fb321ee757b920958e19f", "score": "0.70976067", "text": "public function save()\n {\n if($this->saved()) $this->client->put($this->router->path($this->_id), $this->attributes);\n else {\n // create the resource\n $response = $this->client->pos...
dfb8d0b6d53e876acbbe13457bb2d880
api to refresh current token
[ { "docid": "500aabfb4b84f79d4dbcf24967401c28", "score": "0.7105788", "text": "public function refreshToken_post() {\n extract($_POST);\n\n $Token_data['userId'] = $user_id;\n $Token_data['appId'] = $app_id;\n $Token_data['time'] = time();\n\n // GENERATE TOKEN METHOD\n...
[ { "docid": "60549dad24f2de6972c03146c9478f5e", "score": "0.8322422", "text": "public function refresh(){\n \treturn $this->respondWithToken($this->guard()->refresh(), \"Token refreshed Successfully\");\n }", "title": "" }, { "docid": "34c1ef0ab8be9e70046e8e20cd27db5b", "score": "0....
0357e9b2bb69722e04d9bcc3ee0f7091
Set child entity Adds the $child entity as a child element at $position. Does not replace any entities. Instead, an entity at $position and all following entities are moved down.
[ { "docid": "89b2fcb0dc6a02d6f143b4a10af31308", "score": "0.8085297", "text": "public function setChild($position, AeInterface_Xml_Entity $child)\n {\n $type = AeType::of($position);\n\n if ($type != 'integer') {\n throw new AeXmlEntityElementException('Invalid value passed: e...
[ { "docid": "7357b30c70cdc6959c662dd822aebf37", "score": "0.6692254", "text": "public function setchild(&$tree,$idx=-1)\r\n {\r\n if($idx<0)$idx=$this->key();\r\n $item = &$this->items[$idx];\r\n $item[$this->childfieldidx]=$tree->handle;\r\n $tree->parentc=$this->handle;\r\n $tree->paren...
386dd7c13a4b0d0378d5336f2253e1f1
constructor de la clase
[ { "docid": "02ca5f1ddb5ee070348f60a4161f7469", "score": "0.0", "text": "function __construct($id_pedido, $id_prod, $fecha_pedido, $hora_pedido, $num_prod, $estado_prod)\r\n\t{\r\n\t\t$this->id_pedido=$id_pedido;\r\n\t\t$this->id_prod=$id_prod;\r\n\t\t$this->fecha_pedido=$fecha_pedido;\r\n\t\t$this->hora...
[ { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a22e1391e856014d86b33d263150b", "score": "0.8488861", "text": "private function __construct(){}", "title": "" }, { "docid": "406a...
677143e0b7191dbfc4de7242a517b0fa
Returns information about the client and specified connection Returns information about the client and specified connection
[ { "docid": "a7e15989792ace3cd8f9a10b93e7121d", "score": "0.68388116", "text": "function sqlsrv_client_info($conn): array {}", "title": "" } ]
[ { "docid": "36c71fe695ddab7e990b0831c5a5fc25", "score": "0.7245311", "text": "function db2_client_info($connection)\n{\n}", "title": "" }, { "docid": "23cab41a0b0e914f17bcfbfddf461e03", "score": "0.6849589", "text": "public static function getClientInfo() {\n\t\treturn self::_getAdap...
ac7573a26684a04365ad5ecb1717220a
charge le contenu dans un dom
[ { "docid": "5aecee4117932e6070583c6a349846b0", "score": "0.0", "text": "function saveRhizomeContent($content){\n\t\t\n\t}", "title": "" } ]
[ { "docid": "062f1546ba6aa357065f5514dbe44acb", "score": "0.616463", "text": "public function afficher(){\n\n\n\n echo <<<END\n<!DOCTYPE html>\n<html lang=\"fr\">\n<head>\n <meta charset=\"UTF-8\">\n <title>$this->title</title>\n <link rel=\"stylesheet\" href=\"/css/style.css\">\n</head>\...
8480952e51835876d31f278847ca4b2f
Check if "Delete leading and trailing silent blocks" is set to "No" and set the $deductedPoints and return false if it fails.
[ { "docid": "5c5dd0810a13e288e4a04bfde98731c7", "score": "0.60882944", "text": "protected function checkSilentBlockDeletion(): bool\n {\n $assertion = false;\n $result = $this->parser->data['options']['read_options']['delete_leading_trailing_silent_blocks'];\n $check = self::DELET...
[ { "docid": "03faababd63fdc9c876ac571a9975440", "score": "0.5206235", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('video.component_block_detail_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" }, { "docid": "e2539c18f972cb08714377a9e6dfe8c9", "score": ...
f3a30b9d3ddc0f8ae396eb253dd08624
KOMENTARAI del saugumo, kad neprikodintu i laukus
[ { "docid": "d67722ed8587de8e0728bbca7f3b2821", "score": "0.0", "text": "function createKomentaras($vardas, $komentaras) { // naujo gydytojo sukurimas\n\t$vardas = mysqli_real_escape_string(getConnection(), $vardas); // uzkoduoja spec simbolius \" ' /n /t <>\n\t$komentaras = mysqli_real_escape_string(get...
[ { "docid": "654f8bb59148c504a0f6f18ba999d655", "score": "0.6954442", "text": "public function syarikat() \n\t{\n\t\t$this->papar->medan = $this->tanya->paparMedan('mdt_rangka14');\n\t\t//echo '<pre>$this->papar->medan:<br>'; print_r($this->papar->medan); \n\t\t$url = dpt_url();\n\t\t$this->papar->url = ...
504b228589fa8ffb812a35cf747123bb
Purges data for the given URL.
[ { "docid": "3c19b8d3cbeb95890e3ce172adf8332d", "score": "0.645499", "text": "public function purge($url)\n {\n\n $request = Request::create($url);\n\n $this->_client->createConnection();\n\n $digest = $this->generateDigestKey($request);\n $digestKeys = $this->_client->keys...
[ { "docid": "6c551edfb0597dd27252f6cf6972f185", "score": "0.7137633", "text": "public function purgeUrl($url);", "title": "" }, { "docid": "b6766f95c33eb33de744b12428903bb4", "score": "0.7119626", "text": "public function purge($url)\n {\n }", "title": "" }, { "docid...
6f32a2347fbc4a75945dd625054aed97
Journal Functions save_journal() : Saves the data that the user enters get_the_journal_form : Displays the form to save a Journal Entry get_the_journal_form_popup : Displays the form to save a Journal Entry via Popup get_all_journal() : Returns all the Journals entry of the Logued in user get_some_journal() : Returns t...
[ { "docid": "3dfa2318bc7b01d66138b6e158f063c5", "score": "0.625281", "text": "function get_the_journal_form($lesson)\n{\n global $post;\n $user_id = get_current_user_id();\n $theoutput = '<form action=\"' . esc_url( $_SERVER['REQUEST_URI'] ) . '\" method=\"post\" id=\"journal_form\">'\n ...
[ { "docid": "29f333b58cf7b2366d7ec944efce76c9", "score": "0.6667404", "text": "function Add()\r\n\t{\r\n\t\t$strJournalSubject = \"\";\r\n\t\t$strJournalBody = \"\";\r\n\t\t$strJournalCategory = \"\";\r\n\t\t\r\n\t\tif(isset($_POST['Subject']))\r\n\t\t{\r\n\t\t\t$strJournalSubject = $_POST['Subject'];\r\...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "952e1f5e7fa5f11996cf979a35a2e529", "score": "0.0", "text": "public function index(Request $request)\n {\n $rules = ['id' => 'required|integer'];\n $messages = ['id.required' => 'The id parameter is required'];\n $request->validate($rules, $messages);\n\n $resta...
[ { "docid": "5861cea867a044b99c733c7fc0cf842d", "score": "0.7446777", "text": "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n ...