query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
a1fd23a34ba754d527d4dad0b2133ef8
Returns the defs array for this element
[ { "docid": "dd02dd514d9b7f6925901d42c6f2506e", "score": "0.78813744", "text": "protected function getDefs() {\n\t\t\treturn $this->defs;\n\t\t}", "title": "" } ]
[ { "docid": "c0fd2f7324e1b456eb6edffd5a24bb80", "score": "0.7847948", "text": "public function getDefs()\n {\n return $this->defs;\n }", "title": "" }, { "docid": "be55c924ecea19bc3fd4869b83bc49b9", "score": "0.6688473", "text": "public function definition()\n {\n ...
80fb6733d7e76cd40ecbd8109fcf53b7
Get the url parameter
[ { "docid": "cc0f0bc24d29dd1e75034fba0329cafd", "score": "0.0", "text": "public function getUrl()\n {\n return $this->url;\n }", "title": "" } ]
[ { "docid": "877f7dfe4c87cbca340ee37aa3da1f7e", "score": "0.72998637", "text": "public function getUrlArg(){\n\t\treturn $this->url_arg;\n\t}", "title": "" }, { "docid": "beb7fa0b4caada6a10b0ec3fb33a8c37", "score": "0.71885514", "text": "protected function getInquiryUrlParam() {\n\t\t...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "c21aff0371874e30c29e85d360a3e1f6", "score": "0.0", "text": "public function index()\n {\n $transaction = Transaction::latest();\n return $this->sendResponse(TransactionResource::collection($transaction->take(5)->get()), 'Total records: '. $transaction->count());\n }", ...
[ { "docid": "1d384f4e78f98647387c1b7298b0696a", "score": "0.7473819", "text": "public function index ()\n {\n $this->list();\n }", "title": "" }, { "docid": "4bed8c9cfd05d9666f1acd8791970421", "score": "0.7459576", "text": "public function index()\n {\n /** @var \...
96d383959f6c5b7e7fd5e5dbb3eca171
Stores frontend user data with values from the given array
[ { "docid": "b8d8e12941df94069639318a94c58f2d", "score": "0.57571614", "text": "public function storeUserData($dataArray) {\n \n \ttx_pttools_assert::isInstanceOf($GLOBALS['TSFE'], 'tslib_fe', array('message' => 'No TSFE found!'));\n \n\t\ttrace('[CMD] '.__METHOD__);\n\n // query preparat...
[ { "docid": "29f5e63dc85affcc94c86765781212d3", "score": "0.6649511", "text": "public function store(array $data);", "title": "" }, { "docid": "29f5e63dc85affcc94c86765781212d3", "score": "0.6649511", "text": "public function store(array $data);", "title": "" }, { "docid":...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "e3ec6010de8c757e39838fe2736c0459", "score": "0.0", "text": "public function edit(Payment $payment)\n {\n $suppliers = Supplier::all();\n return view('payment.edit', ['suppliers'=>$suppliers], compact('payment'))->with('success','transactions is edited successfully');\n }"...
[ { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.789207", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.78099495", ...
09a723e2032c2545b597e83c22472739
Method for getting browser language
[ { "docid": "c14f3b0f985bff49aa2c9efafbcb29a6", "score": "0.0", "text": "public static function asArray () {\n //include_once \"Zend/Locale.php\";\n\n $zend_locale = new Zend_Locale(Zend_Locale::BROWSER);\n $browser = array();\n $browser['language'] = $zend_locale->getLanguage...
[ { "docid": "27bdbcada0475a0a21676daf347552a5", "score": "0.85292953", "text": "function getLanguage();", "title": "" }, { "docid": "a7d138a140b548cd7792375f48c82e7e", "score": "0.8422929", "text": "public static function getBrowserLanguage()\n\t{\n\t\t$server = FilterServer::getInsta...
ad72b662397dea83bbfaa58afe0c7826
This function is used to compare the user given password to the password stored in the DB Along with this, the role is gotten in order to properly redirect the user on successful login Used in the loginfunctions file
[ { "docid": "e8d21ab38b86b5bacd801ea3ab3a93e6", "score": "0.6607391", "text": "function getUserAuth($username)\n {\n try\n {\n $dbObj = new Database();\n $db = $dbObj->getConnection();\n $query = \"Select Password, UserRole From Us...
[ { "docid": "c9f07eb230615c70bf69c9b53d0e9e15", "score": "0.7486189", "text": "public function check_login_credentials() {\n if (empty($_POST)) {\n return FALSE;\n }\n $this->db->where('email', $_POST['loginUserEmail']);\n $this->db->where('password_hash', sha1('adm...
c3813a6a4fa13d8be9566734913bd010
/ fonctions raccourcies allinone pour query / prepare Execute and return all value of a query Use PDO::query for exectute the query and PDOStatement::fetchAll() to return and array with all result
[ { "docid": "043353be8d96c7ec0b6a2416f170a0a9", "score": "0.0", "text": "public function queryAll($query)\n {\n\treturn $this->query($query)->fetchAll();\n }", "title": "" } ]
[ { "docid": "198b6e1f109b179ff70642665fb4de05", "score": "0.8037993", "text": "public function select_all(string $query)\n{\n $this->strquery = $query;\n $result = $this->conexion->prepare($this->strquery);\n $result->execute();\n $data = $result->fetchall(PDO::FETCH_ASSOC);\n return $data; \n}...
9676962e1097064c7b145dcbda46cad6
=========insert CSV file value======//
[ { "docid": "bbf5922c868753310c5b70edd84cbaa9", "score": "0.638829", "text": "function insert_csv($table, $data)\n\t{\n\t\t$this->db->where('type', $data['type']);\n\t\t$query = $this->db->get('industry_type');\n\t\t\n\t\tif($query->num_rows == 0)\n\t\t{\n\t\t\t$insrt = $this->db->insert($table, $data);\...
[ { "docid": "22ad75edbf88172d9d23cc2e6cd1d44a", "score": "0.7172326", "text": "function insertCSVData($file,$campaignID,$csvID)\n\t{\n\t\t$file = fopen($file,'r');\n\t\twhile(!feof($file))\n\t\t{\n\t\t\t//print_r(fgetcsv($file));\n\t\t\t$data = fgetcsv($file);\n\t\t\t\n\t\t\t$name = $data[0];\n\t\t\t$em...
997b2a1e9a77a0a0daa149cafa7fc34c
Creates data provider instance with search query applied
[ { "docid": "c27511d0f3a855ec13caceef5eda6c44", "score": "0.0", "text": "public function search($params)\n {\n $query = DataCatin::find();\n\n // add conditions that should always apply here\n\n $dataProvider = new ActiveDataProvider([\n 'query' => $query,\n ]);\...
[ { "docid": "2216a09ea2a298cb2a498017dbe896ef", "score": "0.71117353", "text": "public function search() {\n if (!$this->validate()) {\n // dummy answer instance of BaseDataProvider. Bad practice\n return new ArrayDataProvider([\n 'allModels' => []\n ...
f6b65fec16cecac7177a3888b449db38
Lee el catalogo de las plazas
[ { "docid": "4cfe71b2c2193defb8ccbe55bcf1d918", "score": "0.60476774", "text": "public function read() {\n $oConexion = $this->getConexion();\n\n // obtiene todas las plazas\n $sQuery = \"SELECT * \" .\n \"FROM plaza\";\n $aPlazas = $oConexion->query($sQuery);\n\n ...
[ { "docid": "5a817d1eb6dba96b11fafb732375ac21", "score": "0.65799916", "text": "public function get_catalogs()\n {\n return array();\n }", "title": "" }, { "docid": "ceef7dedc223e58de2aa12300d2c1bc3", "score": "0.65007454", "text": "public function consult_catalogue()\n ...
ee7213e3ac0eb65f2b572f60fcd4d94f
append list of contacts
[ { "docid": "a6bb9c78ee02fa405e3922c0953aefcb", "score": "0.6713547", "text": "public function append($myContacts) {\n foreach ($myContacts as $contact) {\n $this->sendContact($contact);\n }\n }", "title": "" } ]
[ { "docid": "e0573a99d4cf50b35951d641dcd86156", "score": "0.6757462", "text": "public function setList()\n {\n\n $this->OpenConnect();\n $sql=\"call spAllContacts()\";\n \n $result = $this->link->query($sql);\n while ($row = mysqli_fetch_array($result, MYSQLI_ASSOC))...
6a7665a0400b8d4ec2689948366c537c
Compiles the ext_emconf.php file
[ { "docid": "10ea379f17bcb7dc172369bc90eacbaf", "score": "0.7262027", "text": "function construct_ext_emconf_file ($extKey, $EM_CONF) {\n\t\t$fMsg = array(\n\t\t\t'version' => '\t// Don\\'t modify this! Managed automatically during upload to repository.'\n\t\t);\n\t\t\t// Clean version number\n\t\t$vDat ...
[ { "docid": "f79c0fa0a5acb7975de8921000024367", "score": "0.6479886", "text": "public function buildExtension() {\n\t \n\t // Generates the xml array\n\t $this->setXmlArray();\n\n\t\t// Generates the Configuration/TCA directory\n\t\t\\TYPO3\\CMS\\Core\\Utility\\GeneralUtility::mkdir_deep($this->extens...
9895c7d754d9ff52e37215753b6887d1
print Quotation in the preview page
[ { "docid": "446f8641e86bd009561f1ae4af889ad1", "score": "0.55439633", "text": "public function actionPrint($id)\n {\n $this->layout = 'print';\n\n $attachment = QuotationAttachment::find()->where(['quotation_id' => $id])->all();\n\n\n return $this->render('print', [\n ...
[ { "docid": "a1ba68d6c970982ab116dc0ef5250e97", "score": "0.6222244", "text": "function printQuote()\n{\n $arr_printing = getRandomQuote($GLOBALS['quotes']);\n $string_to_print = '';\n $string_to_print .= '<p class=\"quote\">' . $arr_printing['quote'] . ' </p>';\n $string_to_print .= '<p clas...
0e87ab3a032c56a056172e868019937d
Function to return an array of nested groups when given a group or list of groups. $searchedgroups is used for tail recursion and shouldn't be provided when called externally.
[ { "docid": "ec46c27636950f488df1bf8e45d0be2b", "score": "0.7602434", "text": "function searchNestedGroups( $groups, $searchedgroups = array( \"dn\" => Array(), \"short\" => Array() ) ) {\n\t\t$this->printDebug( \"Entering searchNestedGroups\", NONSENSITIVE );\n\n\t\t//base case, no more groups left to c...
[ { "docid": "56e14494c58e72057320246950b4ba88", "score": "0.6434403", "text": "private function getGroupGroups(string $groupName): array\n {\n $ldapConnection = $this->getConnection();\n $this->bindSystemUser($ldapConnection);\n\n $followReferrals = $this->config['follow_referrals...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "e0b04e672070d25c63b228ecce652174", "score": "0.0", "text": "public function __construct()\n {\n //\n }", "title": "" } ]
[ { "docid": "77e89b25c1d9a31d7126a81b36f2653a", "score": "0.80016077", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call('make:contro...
5285a8acad5df8494b37dfdfce5d611b
Register the application services.
[ { "docid": "da4db02d00021ab37bb38e5ef5b756c5", "score": "0.0", "text": "public function register()\n {\n\n }", "title": "" } ]
[ { "docid": "44600508cffb5884be0d7e50b7ec91ee", "score": "0.8183838", "text": "public function register()\n {\n // Register services\n }", "title": "" }, { "docid": "bf07a6ccbc1940e2be8abff91e94a2f6", "score": "0.72834975", "text": "public function register()\n {\n ...
671dc6b632025ec6cf6ae3b1f38c38d8
Auto login tenant admin if first time
[ { "docid": "852603e2c482bdc428366e9793824972", "score": "0.7963182", "text": "function doAutologin()\n {\n $user = App\\Models\\Tenant\\User::find(1);\n\n if (is_null($user))\n die('Admin user not found');\n else\n Auth::login($user);\n\n $this->remem...
[ { "docid": "edad43f80aeb993a9a36deb0faf90cdd", "score": "0.7360286", "text": "function doAutologin()\n {\n $user = User::find(1);\n\n if (is_null($user))\n die('Admin user not found');\n else\n echo \"fine\";\n // Remove this later and make change...
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.8377201", "text": "public function authorize()\n {\n return $this->user() !== null;\n }", "title": "" }, { "docid": "9fb39029db943b6c00f8b0416336e051", "score": "0.82638186", "text": "public function authorize()\...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "b273072538066e3117359bfed973e64c", "score": "0.0", "text": "public function show(Employee $employee, $id)\n {\n $this->authorize('showSalary', $employee);\n\n $salary = $employee->salaries()\n ->orderBy('to_date')\n ->skip($id - 1)\n ->take(1...
[ { "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 ...
e2f3c10b1e013ecce387961351ad2089
Set values to the query. The method can execute multiple times. The passed array require the same amount of elements, otherwise an exception will thrown.
[ { "docid": "a6322bd0687b67fff3c8dc5f15a0e3fd", "score": "0.549", "text": "public function values(array $values);", "title": "" } ]
[ { "docid": "f5827d2d1ede16059cacd103e98ca6d2", "score": "0.7120114", "text": "public function set($array);", "title": "" }, { "docid": "f9aee7fb2486cbf8fa6a61c0b6a9b12a", "score": "0.70793265", "text": "public function fill($array, $set = 'query')\n {\n $this->$set = $array...
e27d5f1ee09e154d12dd6b4ca67cbbbb
The search callback function for the handheld footer bar
[ { "docid": "30004ed0d7cf59c9b92934744e9621be", "score": "0.74659127", "text": "function storefront_handheld_footer_bar_search() {\n\t\techo '<a href=\"\">' . esc_attr__( 'Search', 'storefront' ) . '</a>';\n\t\tstorefront_product_search();\n\t}", "title": "" } ]
[ { "docid": "01510210bb56ad1f0146313384a22a17", "score": "0.63586646", "text": "function storefront_handheld_footer_bar() {\n\t\t$links = array(\n\t\t\t'my-account' => array(\n\t\t\t\t'priority' => 10,\n\t\t\t\t'callback' => 'storefront_handheld_footer_bar_account_link',\n\t\t\t),\n\t\t\t'search' => ...
c032e2c00ff1aa0df76a1399757b7279
get attribute type Either Extra for ExtraSegmentInfo or Vendor for VendorMessages.
[ { "docid": "8609a0d1e9b7d87feb63942c0f74727f", "score": "0.0", "text": "public function getType()\n\t{\n\t\treturn $this->type;\n\t}", "title": "" } ]
[ { "docid": "e7a7295803080e710e52c760d1e2e9be", "score": "0.6538766", "text": "protected function getAttributeType()\r\n {\r\n return $this->attributeType;\r\n }", "title": "" }, { "docid": "880b517720485bcfe9ad2b97ea1d62a1", "score": "0.60633653", "text": "public functio...
128c2c418b999cd5d739e28ef453e430
/PUBLIC METHODS Creates the node for the table, using the specified caption string. If a caption node already exists, the old one will be removed and a new one will be created with the new caption string.
[ { "docid": "1bb41ba3a7589045148d853c9573dc46", "score": "0.6101271", "text": "public function setCaption($caption) {\r\n\t\t//remove existing node\r\n\t\t$this->removeElementsByTagName('caption');\r\n\r\n\t\t$element = new Larc_Html_Element('caption', $caption, NULL, $this);\r\n\t\t$this->captionNode = ...
[ { "docid": "23d2fa0eb58a8abc6d431ae80de2c8aa", "score": "0.5282601", "text": "public function createNodeFromLabel($label);", "title": "" }, { "docid": "f08c88398e187e5c7a3fa7c3b89a1301", "score": "0.5140902", "text": "public function setCaption($caption);", "title": "" }, { ...
a3d40a1fa2cd2955ec4b879496516578
> Altera valores de nome/email/password
[ { "docid": "410087d54ab29584d5ed9cb101061e9d", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n\n $data = $request->all();\n\n if ($request->has('username')) {\n $user = User::whereIdUsers($id)->first();\n $user->username = $data['userna...
[ { "docid": "ca83b8e6c03fa90d46d368711b9bc091", "score": "0.6698508", "text": "public function getUserPassword();", "title": "" }, { "docid": "1178789e0245fbccf1388c7af35a45d5", "score": "0.6600641", "text": "function getPassword();", "title": "" }, { "docid": "5a295489938...
67125276834c5508c86f1cb94a92f7b4
Executes a PDO Statement Object an returns nultiple database record as an associative array
[ { "docid": "1c67fb0d049e884053b6051c9dd59644", "score": "0.623227", "text": "public function fetchAll()\n {\n $this->execute();\n return $this->dbStmt->fetchAll(PDO::FETCH_ASSOC);\n }", "title": "" } ]
[ { "docid": "bc469a1002e19d8e777f9c1215382afd", "score": "0.7099756", "text": "public function resultSet(){\n\t\t$this->execute();\n\t\treturn $this->stmt->fetchAll(PDO::FETCH_OBJ);\n\t}", "title": "" }, { "docid": "9b5ddbcf653f43472b7b6d6fc8bcf0e3", "score": "0.7073596", "text": "pub...
68d7860cc0651ef8b1e4745c0d2344f4
Sets the download version extractor callable.
[ { "docid": "3c1d26923f8439e7ed160e58e6d8c9a0", "score": "0.4909212", "text": "public function setExtractor($extract = null)\n {\n if ((null !== $extract) && (false === is_callable($extract))) {\n throw new InvalidArgumentException('The extractor is not callable.');\n }\n\n ...
[ { "docid": "1f520ff35d1c878fbd76ce06d09d0e7d", "score": "0.53043157", "text": "function fdf_set_version($fdfdoc, $version) {}", "title": "" }, { "docid": "0bf24e7f16bf0ba00cb0b757f4b20296", "score": "0.52579963", "text": "protected function assignVersion()\n {\n\n }", "titl...
8a444f977b441187d8e3ce6eee9941f1
Returns the current database name
[ { "docid": "ecc4ff20ec7762d70246897a7ec9f620", "score": "0.79001737", "text": "function getDatabaseName(){\n $result = false;\n $path = $this->getPath();\n if ($path != null) {\n $ext = $this->toExt();\n $result = basename($path, $ext);\n }\n return $result;\n }", "title": "" } ]
[ { "docid": "601762d5cd6e38ffcf1d957ff2266f1e", "score": "0.87758803", "text": "public function getDatabaseName() {\r\n\t\treturn $this->database;\r\n\t}", "title": "" }, { "docid": "1d16ac2a1ceb1461e02eb59364b2b2f5", "score": "0.8749449", "text": "public function getDatabaseName() {\...
6ed5a2998399666b7c90d923044fb2a1
Get the console command options.
[ { "docid": "a48b29169bd71933d89887358a5f0972", "score": "0.0", "text": "protected function getOptions()\n {\n return [\n [\n 'table',\n 't',\n InputOption::VALUE_OPTIONAL,\n 'Table',\n false\n ]\n ...
[ { "docid": "6e72713b6b229d5a69c8e2bfeb84bf52", "score": "0.780034", "text": "protected function getOptions() {\n return [\n ['env', null, InputOption::VALUE_OPTIONAL, 'The environment the command should run under.', null],\n ];\n }", "title": "" }, { "docid": "aea...
095fac8ed75b89959aeda691a7aecd04
Waits for Drupal to accept requests.
[ { "docid": "d0e0709ac0f1fa27c37acf8d4d134e11", "score": "0.6439613", "text": "protected function waitForDrupal()\n {\n return $this->taskExec('sleep 30s');\n }", "title": "" } ]
[ { "docid": "847f4ff4e2a8bd692543f1b1ca0fdb55", "score": "0.6170952", "text": "public function wait();", "title": "" }, { "docid": "b45e2196f47537915eeb867e9d614294", "score": "0.5888239", "text": "public function wait(){ }", "title": "" }, { "docid": "1347d3b52ebd2fcde06c...
d7a55a52fa73545cac80601cd7edccab
Metodo que sirve para registrar usuarios
[ { "docid": "5e47540cbe7773874c3b8ccb8b73f241", "score": "0.65210396", "text": "public static function registrar($usuario)\n {\n $query = \"INSERT INTO usuarios (nombre,email,usuario,password,privilegio) VALUES (:nombre,:email,:usuario,:password,:privilegio)\";\n\n self::getConexion();\n...
[ { "docid": "6bd305158ddc51facd264e98edd46be7", "score": "0.76911414", "text": "public function registrar(){\n\t\t$usuario = new Usuario();\n\t\t$usuario ->setTipoDocumento($_POST[\"tipoDocumento\"]);\n\t\t$usuario ->setNumeroDocumento($_POST[\"numeroDocumento\"]);\n\t\t$usuario ->setNombres($_POST[\"nom...
dfbb392171793aebf629a895652de43b
////////////////////////////////////////////////////////////////////////// getSliderValues (min_year, max_year, min_price, max_price)
[ { "docid": "91a04399b8c481cf8b07d5ee80216064", "score": "0.84450924", "text": "public function getSliderValues() {\n $sql = 'SELECT MIN(year) as min_year, MAX(year) as max_year, MIN(price_brut) as min_price, MAX(price_brut) as max_price ';\n $sql .= 'FROM {{%trans}} WHERE cat_id = ' .(int)...
[ { "docid": "59d84997043d05422f83477cf9ec7dfd", "score": "0.61829334", "text": "protected function getOptions() {\n try {\n $min = $this->getYear($this->getSetting('min'));\n }\n catch (\\Exception $e) {\n $min = 2000;\n }\n\n try {\n $max = $this->getYear($this->getSetting(...
09e505d20329f88f72cbd8f600fd5145
generateTestCode Get numeric index of last test with given id
[ { "docid": "263213a39de844ebf674b48e04ce7ac2", "score": "0.70860183", "text": "protected function getLastTestIndex($sTestId){\r\n\t\t\t\r\n\t\t\treturn isset($this->aTests[$sTestId]) ? count($this->aTests[$sTestId]) - 1 : 0;\r\n\t\t\t\r\n\t\t}", "title": "" } ]
[ { "docid": "9be834bcd77b76de67dd8268e4163727", "score": "0.68762267", "text": "function generateNextTestId($db)\n{\n\t$query = \"SELECT MAX(id) FROM tests\";\n\t$result = $db->query($query);\n\tif(!$result)\n\t\treturn $result;\n\t\n\t$row = $result->fetch_array();\n\t\n\t$maxId = $row[0] + 1;\n\t//$max...
284660cf202de72ce3e3f706ba353771
checks existence of properties and related components
[ { "docid": "f568f534324df4ac96eacf411009f8e2", "score": "0.0", "text": "public function hasRelation($fieldName)\n {\n if (isset($this->_data[$fieldName]) || isset($this->_id[$fieldName])) {\n return true;\n }\n return $this->_table->hasRelation($fieldName);\n }", ...
[ { "docid": "6f51105c485683b66e81e4ed1e0e7bf1", "score": "0.7448841", "text": "public function hasProperties();", "title": "" }, { "docid": "ec81a7505b979ac1d9f686a4b928ab46", "score": "0.721319", "text": "public function hasPropertyContent();", "title": "" }, { "docid": "...
0664a664f7c98a30d06e2a3ac2914c37
Get repositories by user id from github.
[ { "docid": "7cb42a634511c039d765d5711308e5ce", "score": "0.69328994", "text": "public function getRepositoriesContributedByUserId($userId)\n {\n //TODO: implement github api logic\n return [];\n }", "title": "" } ]
[ { "docid": "c0c1ecd6a67d5d3c87711605a20ee26e", "score": "0.6473688", "text": "public function list_repos($user)\n\t{\n\t\t$this->url = GH_REPO_API.'/show/'.$user;\n\n\t\treturn $this->connect();\n\t}", "title": "" }, { "docid": "c35df7e236e77a17e19e927986e981d1", "score": "0.6297946", ...
3f9146206e72c11a2f2c01194d623f9a
Collect Visitor information so we can store i with the visitor.
[ { "docid": "1ae5daaeb7b325515f5d01de547cf187", "score": "0.4563402", "text": "public function collect(): array\n {\n $request = request();\n \n return [\n 'ip' => $request->ip(),\n 'user_id' => $request->user()->id ?? 0,\n 'user_agent' => $request->user...
[ { "docid": "6172a8c8220f0fa1ef85710ef9979f45", "score": "0.609761", "text": "abstract public function getVisitor(): VisitorInterface;", "title": "" }, { "docid": "66b6334856921724ab9335bd4d39135d", "score": "0.60599923", "text": "static function getVisitors(){\n re...
393004b8e210143ee6bce2202845e2ab
(array( 'vars' => $vars, ))
[ { "docid": "1cbe0fbc7c8500e6a0780b4661b09d8c", "score": "0.0", "text": "protected function _getVarsItem($arr)\n\t{\n\t\tglobal $varsPluginAccountingAccount;\n\n\t\t$varsDepartment = $this->_getVarsDepartment(array(\n\t\t\t'numFiscalPeriod' => $varsPluginAccountingAccount['numFiscalPeriodCurrent'],\n\t\t...
[ { "docid": "2221b1770b8a5ba1153860d70a05f29f", "score": "0.6725795", "text": "function vars($vars = array(), $val = '')\n\t{\n\t\tif ($val != '' AND is_string($vars))\n\t\t{\n\t\t\t$vars = array($vars => $val);\n\t\t}\n\t\n\t\t$vars = $this->_sc_object_to_array($vars);\n\t\n\t\tif (is_array($vars) AND c...
7f88c13995c71a3e132da2be41c48bf8
Gets the maximum length of the field data.
[ { "docid": "30aa938f4b02e85a2733afa748627f5e", "score": "0.88352364", "text": "public function getMaxLength()\n {\n return $this->get(self::MAX_LENGTH);\n }", "title": "" } ]
[ { "docid": "e220592820c8de8a91b9a895af147609", "score": "0.8754096", "text": "public function getMaxLength() {\n return $this->maxLength;\n }", "title": "" }, { "docid": "747fbb8fc42f172dea102cfae3ca5eab", "score": "0.8713116", "text": "public function getMaxLength() {\n ...
05cef99a29f956eeec2c42a7ee779879
determine if the variable passed is currently in the list of variables to propagate deprecated, use inVarH>isInVarP for this
[ { "docid": "bfe182e2c2eb0efa8468cbcf1c0e434d", "score": "0.547526", "text": "function isInVarP($varName) {\n return in_array($varName, $this->inVarH->inVarPList);\n }", "title": "" } ]
[ { "docid": "e5ba32dfba0a546befb7ab1ceb874363", "score": "0.61924857", "text": "function isdeprecated($tag,&$ttag){\r\n\r\n\tif ($tag==\"FOR_FUN\"){\r\n\t\t$tag=\"FORFUN\";\r\n\t}\r\n\tif ($tag==\"BOTMASTER\"){\r\n\t\t$tag=\"MASTER\";\r\n\t}\r\n\tif ($tag==\"KIND_MUSIC\"){\r\n\t\t$tag=\"KINDMUSIC\";\r\n\...
7fc2835561135ae3ff4ce38e84ee7e03
Checks $_GET parameters 0 vars passed = check for existance of any $_GET params, returns true if populated 1 var passed = returns value of passed $_GET param, false if not found 2 vars passed = compares passed variables as a key value pair against $_GET params, true if found correct. 3+ throw error
[ { "docid": "b38b9ea3863b39e6d1b9ec1505b1ba95", "score": "0.59455913", "text": "public static function tdms_getParam()\n {\n $tdmsGetParameters;\n $urlParamString = 'tdms-get-params';\n $urlKVDelimiter = \"_\";\n $paramTypes = '';\n $vars = func_get_args();\n ...
[ { "docid": "c91afa4b45b904b19a379637ceb0a1f4", "score": "0.7474446", "text": "private function checkGet()\n {\n foreach ($_GET as $key => $value) {\n if (is_int($key)) {\n $key = $this->testInput($key);\n intval($key);\n } else {\n ...
de25fcb5638be7e4af8d3e1c2d893b3b
Destroy the image to free memory. Ruquay K Calloway made a better function to find the coordinates of the text bounding box so I used it.
[ { "docid": "edbf862b4770927cf640baf7ef8b0a63", "score": "0.48443502", "text": "function imagettfbbox_t($size, $text_angle, $fontfile, $text){\n // compute size with a zero angle\n $coords = imagettfbbox($size, 0, $fontfile, $text);\n \n\t// convert angle to radians\n $a = deg2rad($text_angle...
[ { "docid": "3cabdc3436f574c05daf2f462e43fbc1", "score": "0.6225843", "text": "public function __destruct()\n {\n imagedestroy($this->img);\n }", "title": "" }, { "docid": "1dd6d5500697fe8ada3f1b09627661fe", "score": "0.6205232", "text": "public function __destruct() {\n ...
5cf2d23ef8cf1c75293c221f98ffbfe8
Set the Iterator filter.
[ { "docid": "47c27af7502a7d6bdba50112d45d2fb4", "score": "0.7003987", "text": "public function setIteratorFilter($mask = 0, $filter = null)\n {\n $this->_filter = array();\n\n if ($mask) {\n $this->_filter['mask'] = $mask;\n }\n\n if (!is_null($filter)) {\n ...
[ { "docid": "6bf3a20056cc8cb9d974f211f2ff5f1c", "score": "0.69990116", "text": "abstract public function setFilters($aFilter);", "title": "" }, { "docid": "c5043cf4b5a7ae4c9924e47794eafcb2", "score": "0.6954877", "text": "public function setFilter($filter = NULL);", "title": "" ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.7592133", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "d57b314bf807713f346bc35fb937529e", "score": "0.68463326", "text": "public function render() {\n $this->_template->display($...
942823be1d8db0088c5cdd681f1033f3
completeAssociationMapping Validate and complete the mapping for entity associations. This ensures that simple mapping can be completed with defaults and exceptions are thrown where invalid association information is provided.
[ { "docid": "28916ad9ebd7630b140e76cd6c298d7b", "score": "0.6748797", "text": "protected function completeAssociationMapping(array $mapping)\n {\n $mapping['isOwningSide'] = true;\n\n if (! isset($mapping['fieldName'])) {\n throw new \\nvalidArgumentException('Relationship mapping must have a...
[ { "docid": "fd4a8388fe8b3c917d76651ef3a435c1", "score": "0.5527466", "text": "protected function _validateAndCompleteFieldMapping(array &$mapping)\n {\n // Check mandatory fields\n if ( ! isset($mapping['fieldName']) || strlen($mapping['fieldName']) == 0) {\n throw MappingExc...
c5fd5b19a959f96bae00e43ce0739116
Return query to load all entries.
[ { "docid": "1d65d1bb3b562469749d7b54ae961805", "score": "0.0", "text": "public function getFindAllQuery()\n {\n $query = $this->createQueryBuilder('e')\n ->select('e')\n ->orderBy('e.timestamp', 'DESC')\n ->getQuery();\n\n return $query;\n }", "ti...
[ { "docid": "13e913c9df80ba484e429ae7c98c8e18", "score": "0.73882234", "text": "public function queryAll(){\n\t\t$sql = 'SELECT * FROM tbl_time_entries';\n\t\t$sqlQuery = new SqlQuery($sql);\n\t\treturn $this->getList($sqlQuery);\n\t}", "title": "" }, { "docid": "96135fd3d77139987fac10c7c7e1a...
19b6f0ad1776d3fc29173af12f7c34b8
Deletes an existing Inscreve model. If deletion is successful, the browser will be redirected to the 'index' page.
[ { "docid": "f473275a7bf8bfd0f3246a8024039f0e", "score": "0.0", "text": "public function actionDelete($usuario_idusuario, $evento_idevento)\n {\n $this->findModel($usuario_idusuario, $evento_idevento)->delete();\n\n return $this->redirect(['index']);\n }", "title": "" } ]
[ { "docid": "ea050473ff181b2bd8065da3bcd26653", "score": "0.69924116", "text": "public function actionDelete() {\n $this->loadModel($id)->delete();\n\n // if AJAX request (triggered by deletion via admin grid view), we should not redirect the browser\n if (!isset($_GET['ajax']))\n $this->re...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "474888e8112faab32b13c234d2942338", "score": "0.0", "text": "public function create($group)\n {\n //\n $data=Group::where('groups.id',$group)\n ->join('schemes', 'schemes.id', '=', 'groups.schemes_id')->first();\n $count = Auction::where('group_id',$group)->...
[ { "docid": "600eb0f5f74407c7c69ac90b7d3e6f15", "score": "0.75996214", "text": "public function create()\n {\n return view('Resource/create');\n }", "title": "" }, { "docid": "c1a53014b3e8009982c57be36ab41329", "score": "0.75948673", "text": "public function create()\n ...
eccb39adf5eb86b1a7d4b578eaaac892
Print a human readability and localized time for a timestamp out of the internal data array. Behaves analogous to $this>asTime().
[ { "docid": "1f4aeb032da6f7d2d3307483566dfdfe", "score": "0.6118737", "text": "function printAsTime($key, $format = '') {\n\t\tprint $this->asTime($key, $format);\n\t}", "title": "" } ]
[ { "docid": "a1eb44106255ff792139d19a08d252f3", "score": "0.6380919", "text": "function timestamp() {\r\n return date('Y-m-d H:i:s') . '.' . self::msecond();\r\n }", "title": "" }, { "docid": "2a94e74f2677b898b6381ba33ab91069", "score": "0.6375795", "text": "function rendert...
df46f7d92c4b50b854bb1f795d5b3bdf
Create Subscription Period Builds expected XML for creating a subscription period
[ { "docid": "7bfea03e563e82329b34fecf1b6e9b5f", "score": "0.7367144", "text": "public static function createSubscriptionPeriod($data)\n {\n $dom = new DomDocument();\n\n $subscriptionPeriod = $dom->createElementNS('http://schema.yudu.com', \"subscriptionPeriod\");\n\n $dom->append...
[ { "docid": "769382d8a68e10b4aa7aeecdff8911e4", "score": "0.60592425", "text": "public static function updateSubscriptionPeriod($id, $data)\n {\n $dom = new DomDocument();\n\n $subscriptionPeriod = $dom->createElementNS('http://schema.yudu.com', \"subscriptionPeriod\");\n\n $subsc...
ce1cf6a521cbadd0eca2b0de514896ba
The main method getting called as pre/postUserFunc from the 'source' property of the RECORDS TS cObject rendering the Content Elements for a TV Column. Should return the tt_content entries of the first page which has this value set.
[ { "docid": "8670169b753399845fd16578662ff9c8", "score": "0.0", "text": "public function main(?string $content, array $conf): string\n {\n // phpcs:enable\n if (\n (isset($conf['overridePage']) && $conf['overridePage'])\n || (isset($conf['overridePage.']) && $conf['...
[ { "docid": "7f225a8cbad5c69d4569f9a84005f446", "score": "0.64942896", "text": "public function getContent(){\n\t\t\n\t\t$this-> c = parent::getPageContent();\n\t\t\n\t\treturn $this-> c;\n\t\t\n\t}", "title": "" }, { "docid": "5ad83e1d7e33a6506e4a0ec2fac2075f", "score": "0.6360704", ...
0353d03919fcc386eea125fd56b8b1db
$ANTLR end "variable" $ANTLR start "declarator" runtime/Php/test/Antlr/Tests/grammers/t018llstar.g
[ { "docid": "b948b32e6be05904d95c32881fae199c", "score": "0.708556", "text": "public function declarator(){\n try {\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n {\n $this->match($this->...
[ { "docid": "83f6c5288a1a2672cb25f403f135af5d", "score": "0.70147485", "text": "public function variable(){\n try {\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n // runtime/Php/test/Antlr/Tests/grammers/t018llstar.g\n {\n $this->pushFollow(se...
5a3188042fadc6c42429c1cb4370267a
RESET PASSWORD Incoming request to reset password Decode the token and get user details from DB Check if token is valid and hasnt expired Return user id to use on password reset form
[ { "docid": "501435fafb43a79551ca6737114db92e", "score": "0.68933535", "text": "public function ResetPassword($id, $token)\n {\n // DECODE THE TOKEN\n $decodedtoken = base64_decode($token);\n\n // GET USERS DETAILS FROM DB\n $user = $this->AuthModel->find($id);\n\n /...
[ { "docid": "0ce2fa6befb7e8282364701c442b86ff", "score": "0.7414067", "text": "public function passwordReset()\r\n {\r\n $f3 = \\Base::instance();\r\n $token = $this->inputfilter->clean( $f3->get('PARAMS.token'), 'alnum' );\r\n \r\n try {\r\n \r\n if (...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e3d0ccd4ada2dc88b7c57c5065e7e2e8", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n }", "title": "" } ]
[ { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.70093644", "text": "public function store()\n {\n return $this->storeResource();\n }", "title": "" }, { "docid": "0155000129669b2263a98f58d7370a8e", "score": "0.6865346", "text": "public function store()\n\t{\n\t...
5f16ae386ec542b9bf307ea1b8a885c8
Returns the salt that was originally used to encode the password. This can return null if the password was not encoded using a salt.
[ { "docid": "36d96eb7b51a707cc09a092f9e288da1", "score": "0.0", "text": "public function getSalt()\n {\n // TODO: Implement getSalt() method.\n }", "title": "" } ]
[ { "docid": "a7365bd8a0ce5c2cc8e3ed1fb46eb060", "score": "0.8368267", "text": "public function getSalt()\n {\n // you *may* need a real salt depending on your encoder\n // see section on salt below\n return null;\n }", "title": "" }, { "docid": "4a08b5ae241220193877...
0dada7442a19cd74ae43818d2376c4a2
Returns path of object. Tries to find path without first link. It may be useful when there are two folder in storage. One of them is accessible by symlink another one is accessible by real folder, but under symlink.
[ { "docid": "6e96ce5a748bd8d1907232dde47e3dc0", "score": "0.6774255", "text": "public function getPathWithoutFirstLink()\n\t{\n\t\t$path = null;\n\t\tif(!$this->parentId && !$path)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tif(isset($this->__tree[$this->parentId]))\n\t\t{\n\t\t\tif($this->__tree[$this->par...
[ { "docid": "7af127ed377a3f245ea3d4baac5bf0ad", "score": "0.6958181", "text": "public function getObjectPath() {\n\n \treturn $this->path;\n\n }", "title": "" }, { "docid": "f22c13dc1afcc1c9db517ca761dee1c6", "score": "0.69127035", "text": "final public function getPath()\n {\n ...
a7088cc53b48328b2cd2f0d1e4396c30
get redis key name
[ { "docid": "6fdf42bfd23730c348f507c1157071d9", "score": "0.79417664", "text": "protected function getRedisKeyName()\n {\n return $this->objectCacheTag . ':' . $this->getRedisFiltersKeyName();\n }", "title": "" } ]
[ { "docid": "53d0df13e1e89ba5742b76b7f455ec26", "score": "0.736256", "text": "public function getKeyName(): string\n {\n return $this->key_name;\n }", "title": "" }, { "docid": "958bb06e23dff61dbc78f50c38aacee2", "score": "0.72979003", "text": "public static function get_...
a8523bcb896b0463d83c616172ae8c5c
Dummy command for probing for redirects.
[ { "docid": "0ea4035fb6b1c558606a253704f32dbf", "score": "0.0", "text": "function get_submit($productName)\n{\n}", "title": "" } ]
[ { "docid": "c02aaca8deb5b14a756df9d2c16865c9", "score": "0.6278998", "text": "public function enableRedirects () {}", "title": "" }, { "docid": "b71baccca42597bcc908f6927b345662", "score": "0.57806355", "text": "public function handleRedirects()\n {\n $self = $this;\n ...
ee6b4cedef180d8cdcf30c204529bcec
Remove post from database
[ { "docid": "f3099b496013990a24ce3c7a1480d135", "score": "0.74754983", "text": "public function removePost($post)\n {\n // Remove post from database and apply changes\n $this->entityManager->remove($post);\n $this->entityManager->flush();\n }", "title": "" } ]
[ { "docid": "aa513127b1a4c93ae20e490e14b4033b", "score": "0.77470195", "text": "public function delete()\n {\n $post = Post::find(1);\n $post->delete();\n }", "title": "" }, { "docid": "60e22f32d7fbc63fc7895edcf8ebe71b", "score": "0.7585876", "text": "public functi...
860c3a88c8666c16bcee281118b3fcbd
Method For change password
[ { "docid": "5af62e601254392fb4496f25f718304c", "score": "0.0", "text": "public function changePassword(){\n $this->form_validation->set_rules('new-password', 'Password', 'trim|required|min_length[5]');\n if (!$this->form_validation->run() == FALSE)\n {\n $data=array(); \n $data['passw...
[ { "docid": "3e5dbbdb953747d0469d1915bb33be29", "score": "0.89878666", "text": "protected function changePassword()\n {\n // TODO: Implement ChangePassword() method.\n }", "title": "" }, { "docid": "3b72c9892046d80be81bf10dab4cf9bf", "score": "0.86020476", "text": "public...
3a0c8d60c2b66a262eca99576188651d
prepare_event_data Prepare the serialized array dataset
[ { "docid": "f73997e4c8aad63ba2cd769f5738e476", "score": "0.6173929", "text": "protected function _prepareEventData(array $events)\n {\n $data = array();\n foreach($events as $items)\n {\n $check = preg_split(\"/\\[([^\\]]*)\\]/\", $items['name']);\n if (is_a...
[ { "docid": "1225c7e9f6456581f283c68233eb694d", "score": "0.6645386", "text": "abstract function prepareData();", "title": "" }, { "docid": "93f3f7a526dba643c6eddfbb0006396c", "score": "0.6363134", "text": "public function prepareData()\n {\n }", "title": "" }, { "do...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "77320861bc823bc4d9e0c8b2d046de66", "score": "0.0", "text": "public function update(StorePost $request, $id)\n {\n //\n\n $request->validated(); //Validate Request\n\n //Handle image upload if request has file, else set cover_image to same as old\n if ($request-...
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)\n {\n }", "title": "" }, { ...
88bcdcce20c2ca86c42beb7b2d7e1700
/ File: output.inc.php Purpose:All functions including htmlcode
[ { "docid": "d1e05f337a36e5e1887e12ccd9189df9", "score": "0.0", "text": "function output_modules()\t\t\t\t\t\t\t\t\t// Output the modules frame\n\t{\n\t\t$modules = mod_listinstalled();\n\t\tforeach($modules as $mod => $name)\n\t\t/*{*/\n\t\t\tif(mod_checkisinstalled($mod)) \n\t\t\t\tif(mod_getadmin($mod...
[ { "docid": "81797d0f4bdc00b95ac14090039920e4", "score": "0.7183667", "text": "protected function outputHTML() {\n }", "title": "" }, { "docid": "e02921ab7eec9f4d900f08a24d398ce1", "score": "0.6899926", "text": "public function output_content();", "title": "" }, { "doci...
8ae6495f475c3928704ccd5ccc5e10eb
To download the photo associated with a Lead/Contact.
[ { "docid": "41d9c9737f455ae661634bf26227e982", "score": "0.52143884", "text": "public function download_photo($module, $id, $filename)\n {\n $url_path = $this::_DEFAULT_ZOHO_URL . $module . \"/\" . $id . \"/photo\";\n return $this->_download_file($url_path, array(), $filename);\n }",...
[ { "docid": "61dcfc47ebb282e63b62e7932c6e71e6", "score": "0.66655016", "text": "public function get_lead_image()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "8bd15b026d9fab98fbb5876e8c9063b8", "score": "0.64936036", "text": "public function download()\n\t{\n\t\t// Check if photo...
9d5c9cf2ead9d54b302871b47039041e
make a new shift
[ { "docid": "46f9855d16ddecb606fddf1d2b9b8568", "score": "0.5143386", "text": "public function createShift(){\n $diff = strtotime(request('shiftEnd')) - strtotime(request('shiftStart'));\n $hours = date('g', $diff);\n $min = date('i', $diff)/60;\n $total = $hours + $min;\n ...
[ { "docid": "45a5dfd3918ced7040770f36fc2b437d", "score": "0.8032615", "text": "public function shift();", "title": "" }, { "docid": "45a5dfd3918ced7040770f36fc2b437d", "score": "0.8032615", "text": "public function shift();", "title": "" }, { "docid": "45a5dfd3918ced704077...
10073c2a72d411689e42e0fa98ab1925
Returns the parameters class name.
[ { "docid": "157cebb9db9ff8c6c74ab9ae74cba0e8", "score": "0.67154366", "text": "public function getType()\n {\n return $this->toPhpReflectionParameter()->getClass()->getName();\n }", "title": "" } ]
[ { "docid": "f5e49360e43a9e38f87165a019d8ebbf", "score": "0.76573706", "text": "protected function getClassName(): string\n\t{\n\t\t$name = $this->params[0] ?? CLI::getSegment(2);\n\n\t\treturn $name ?? '';\n\t}", "title": "" }, { "docid": "e70d6fe5954d6eee1fb7adbf5da43485", "score": "0.7...
eed6fd1b40a873021a177c35d3a7a1bf
METHODS OF INTERFACE PROCEDURE
[ { "docid": "26c5da05a73723a94d0e035aa5d61cf2", "score": "0.0", "text": "public function validate($dni){\r\n $sql=\"SELECT idUser FROM table_users WHERE dni=?\";\r\n $rs=$this->db->conexion->prepare($sql);\r\n $rs->execute(array($dni));\r\n if($rs->rowCount()>0){\r\n ...
[ { "docid": "b57e9039d7065f0ec1e7ac909dfed229", "score": "0.6419023", "text": "public function Execute(Object\\IProcedure $Procedure);", "title": "" }, { "docid": "2022c2e17d9b13da2fc23526d1473194", "score": "0.6279553", "text": "public function implementMe();", "title": "" }, ...
d27ab4466957a53da4e805e0bd8e9f41
funcao construtor da classe
[ { "docid": "851c6d818be844291e4d2028ccfcda81", "score": "0.0", "text": "function cl_processoouvidoriaprorrogacao() { \n //classes dos rotulos dos campos\n $this->rotulo = new rotulo(\"processoouvidoriaprorrogacao\"); \n $this->pagina_retorno = basename($GLOBALS[\"HTTP_SERVER_VARS\"][\"PHP_S...
[ { "docid": "3eba9c555f66ff4fdfff258bf6b5829d", "score": "0.80764824", "text": "public function _construct()\n\t\t{\n\t\t\t\n\t\t}", "title": "" }, { "docid": "6bd592f13b99fdb628b00e1854be4490", "score": "0.8013261", "text": "public function _construct()\r\n\t{\r\n\r\n\t}", "title...
15dcb07d30c6c16cd432bb75167291e2
Change table auto increment value
[ { "docid": "8b33e4a260cd5a87d14f8ad825d6c5b9", "score": "0.7754965", "text": "public function changeTableAutoIncrement($tableName, $increment, $schemaName = null);", "title": "" } ]
[ { "docid": "6497a721e95dd857337a9e1a2d5f563b", "score": "0.7416221", "text": "public function resetAutoIncrement()\n {\n return DB::query('ALTER TABLE ' . $this->tablename . ' AUTO_INCREMENT = 1');\n }", "title": "" }, { "docid": "1d98b6f9e14079f715aea3da84ca56b9", "score": ...
ffbaec18562c98abbbb772559ca0b210
Call the composer for a given view.
[ { "docid": "dfeb856e7055af88e02bfc589a4453f4", "score": "0.8185059", "text": "public static function callComposer($view)\n {\n /** @var \\Illuminate\\View\\Factory $instance */\n $instance->callComposer($view);\n }", "title": "" } ]
[ { "docid": "3884a373b97e10bb9de743ad58324947", "score": "0.7254318", "text": "public function callComposer(View $view)\n\t{\n\t\tif(!$this->events || !is_object($this->events)) {\n\t\t\treturn false;\n\t\t}\n\t\t$this->events->fire('composing: '.$view->getName(), array($view));\n\t}", "title": "" ...
03ee53d308b532dc8a77e406ea0b50c4
/ ESTANCIA A CLASSE MODEL DE ACESSO A DADOS CHAMA O METODO CONSULTA RETORNANDO UM ARRAY COM OS DADOS VINDOS DO BANCO
[ { "docid": "733ad721a59b785de33213a2a4af05d2", "score": "0.0", "text": "public function consulta(){\n $dal = new \\App\\Models\\DAL\\Detalharprojeto();\n $dCurso = new \\App\\Models\\DAL\\Cadastrocurso();\n $dUsuario = new \\App\\Models\\DAL\\Cadastrousuario();\n $dSemestre =...
[ { "docid": "42b147a1035e8063a5b6faa805cb46e9", "score": "0.6143715", "text": "public function calcularlineamontecarlo(Request $request)\n {\n $tabla_pro_llegada = [];\n // crear una variable acumuladora que ira acumulando los valores de la probabilidad acumulada\n $acumulador_pro...
602b4ceea42cb7a877955de3eaf20442
/ Test loading a single configuration file.
[ { "docid": "7d5e8eebbdeb00903b24f8fae660670a", "score": "0.743114", "text": "public function testSingleLoad()\n\t{\n\t\t$loader = LoadManager::getInstance();\n\n\t\t$config1 = tempnam(\"./\", \"config1\"); // creates a temporary file\n\t\t$config2 = tempnam(\"./\", \"config2\");\n\t\t$handle1 = fopen($c...
[ { "docid": "e499d242c3e7151286e5010159ad5453", "score": "0.72194815", "text": "abstract public function loadConfig();", "title": "" }, { "docid": "d785b3f7b7ca5942252ea948f1148f57", "score": "0.71444404", "text": "public function testConfig() {\n\t\t$c = array();\n\t\t\n\t\t/* load o...
f5303ad1ec6e41d8bf9b5b343cd1e96a
Required. Unique identifier provided by the client within the parent scope. It must be between 1 and 128 characters and contain alphanumeric characters, underscores, or hyphens only. Generated from protobuf field string config_id = 2 [(.google.api.field_behavior) = REQUIRED];
[ { "docid": "59b171f661b91a606ff67fff3f42630b", "score": "0.66313696", "text": "public function setConfigId($var)\n {\n GPBUtil::checkString($var, True);\n $this->config_id = $var;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "c4a8a92307a8db4421b9df39b9b694c6", "score": "0.7082277", "text": "public function get_config_id() {\n\t\treturn $this->_config_id;\n\t}", "title": "" }, { "docid": "2c04f3111d251ee437b601c8e110ef19", "score": "0.700465", "text": "public function getConfigId()\n {\n ...
ce3273b0cf88257a9494f2dff27ffcf2
Returns the value of field tmmember_id
[ { "docid": "7ae9aca0ce3d649170938bfe07e46b6a", "score": "0.8558018", "text": "public function getTmmemberId()\n {\n return $this->tmmember_id;\n }", "title": "" } ]
[ { "docid": "12f808b0a2e2b68a11cd3c4007ba57e7", "score": "0.7336927", "text": "public function getMemberId()\n {\n return $this->member_id;\n }", "title": "" }, { "docid": "12f808b0a2e2b68a11cd3c4007ba57e7", "score": "0.7336927", "text": "public function getMemberId()\n ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "7409771d720600607923d5e9ca5b3d22", "score": "0.0", "text": "public function index()\n {\n return view('projects.index', ['projects' => Project::latest()->paginate()]);\n }", "title": "" } ]
[ { "docid": "401f14dad055920ac5aa27d774922113", "score": "0.7704874", "text": "public function index() {\n $resource_info = $this->Resources->find('all');\n\n $this->set('resource_info', $this->paginate($resource_info));\n }", "title": "" }, { "docid": "aaad0bca56bcca6a005037...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "a454f06f4bf85996d4e9b4354c269c9e", "score": "0.0", "text": "public function deleteBrand($id)\n { \n if (isset($id)) {\n $name = Brand::find($id)->toArray();\n if (Brand::where('id', $id)->delete()) { \n return redirect()->bac...
[ { "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 ...
10f29a80064a259772087bd9c9760512
Instantiate disk file storage.
[ { "docid": "5efe6c6db049dca0dc247a0c32c57b05", "score": "0.0", "text": "public function __construct(string $storageDirectory, string $appUrl, string $storageUri) {\n $this->storageDirectory = $storageDirectory;\n $this->appUrl = $appUrl;\n $this->storageUri = $storageUri;\n }", ...
[ { "docid": "9e7e556806900dc21b4d6e9eb9cc9bcc", "score": "0.72358096", "text": "protected static function diskStorage()\n {\n return resolve(DiskStorage::class)->setDiskName(static::diskName());\n }", "title": "" }, { "docid": "24a0c1642a1b8d83411748c21c8c45d7", "score": "0.7...
6bae02b047572a34908ad68818d5b459
Check if a code exists
[ { "docid": "9ff3a5bc918826283b7ef42099cd6e02", "score": "0.0", "text": "public function search($code)\n {\n return print_r($this->coupon->search($code));\n }", "title": "" } ]
[ { "docid": "d25c334a349432a49fda8a610a25cb0d", "score": "0.74470305", "text": "public function check_code($code){\n\n\t}", "title": "" }, { "docid": "e8b07296c931be44885789a2132710ca", "score": "0.71592194", "text": "function codeExists($code) {\n\t\tglobal $db;\n\t\t$result = $db->q...
076f6c8ac75ea2251916bb6ddb586554
Get all sites for a user which are not linked to the user.
[ { "docid": "002fa9f9d321b168d25db67741a0633f", "score": "0.7672501", "text": "public static function getUnlinkedSites($userid)\n\t{\n\t\t$userid = (int) $userid;\n\t\t$regat = GDO::table('WC_Regat')->getTableName();\n\t\treturn GDO::table(__CLASS__)->selectObjects('*', \"(IF((SELECT 1 FROM $regat WHERE ...
[ { "docid": "9ea3339e8c6e7c73502053eee77dcdd5", "score": "0.62604415", "text": "function getSites($user, $type = null);", "title": "" }, { "docid": "8f0ecc49c972daece2088d3bc7d64802", "score": "0.5971713", "text": "private function fetchUserSites() {\n $user_id = Session::getValue...
42aed8c33e0877d1152162058b05b9c5
/ TODO:use namespaces/classes to avoid nameclashes when calling more than one action
[ { "docid": "0178b099e2fb83086f2db992aba5879b", "score": "0.0", "text": "function _validate($request) {\n\t$from_time = strtotime($request['route'][0]);\n\t$till_time = strtotime($request['route'][1]);\n\tif (!$from_time) {\n\t\t$from = '1970.01.01';\n\t}\n\t$from = date('Y-m-d', $from_time);\n\n\tif (!$...
[ { "docid": "c695551d40acd10958264e3c52ada00a", "score": "0.7451655", "text": "abstract public function action();", "title": "" }, { "docid": "dfff0e2e5fa9f2c776044bd3ff0502c0", "score": "0.74020034", "text": "abstract protected function actions(): array;", "title": "" }, { ...
6a445e2db170890fba18b8c4388a134b
Bootstraps Strata by creating a Strata instance and saving it to the global scope.
[ { "docid": "044a0f2d31f12dc6227f7e85268c8832", "score": "0.6348632", "text": "public static function bootstrap(ClassLoader $loader)\n {\n $app = new Strata();\n $app->setClassLoader($loader);\n\n // Expose the app context to the current process.\n self::$reference = $app;\...
[ { "docid": "9d9818098a41f2c25dad0b29efaf48df", "score": "0.6028935", "text": "protected static function boot()\n {\n parent::boot();\n\n static::creating(function (Paste $paste) {\n $paste->slug = str_random(8);\n });\n }", "title": "" }, { "docid": "28c...
d8bb7fe72025affc2d6f6abe4c29a993
A basic feature test example.
[ { "docid": "9ceb750becd8ba6926f0ef2aa0e52498", "score": "0.0", "text": "public function testAcessarCadastroProdutos()\n {\n $usuario = User::where('id', '=', '1')\n ->first();\n $response = $this\n ->actingAs($usuario)->get('/cadastrarProduto')\n ->asser...
[ { "docid": "9b7ea451a8143b021a923413bdcc9d3a", "score": "0.7463382", "text": "public function testExample()\n {\n $this->visit('/')\n ->type('Test Fact', 'content')\n ->press('Add Fact')\n ->see(\"Test Fact\");\n }", "title": "" }, { "docid": "0fcd4...
29257a21908aac3f84047bb8a629063b
Manage instance usage of this class
[ { "docid": "54d333511819d9208fcb2f8bcd555723", "score": "0.0", "text": "public static function &getInstance() {\n\t\tglobal $adb;\n\t\tif (!isset($adb)) {\n\t\t\t$adb = new self();\n\t\t}\n\t\treturn $adb;\n\t}", "title": "" } ]
[ { "docid": "48ab1105260dff1fb9090734410b9c04", "score": "0.70068806", "text": "public function __construct() {\n\t\t//$this->instance = $instance;\n\t}", "title": "" }, { "docid": "1172322ac7cd097aab3cbe02d7eb40a8", "score": "0.68622494", "text": "public function __construct()\n {...
944ff8fc0159ca0305c48209ebcc0f7b
Gets the value of the first result with a matching key.
[ { "docid": "a9d9af1fe79f22c691b5b37446fb4b03", "score": "0.6676791", "text": "public function firstValue(?string $key): ?string\n {\n return ($first = $this->first($key))\n ? $first->getValue()\n : null;\n }", "title": "" } ]
[ { "docid": "d7108af2500244c4011c7d89e85f5ed2", "score": "0.77488333", "text": "public function getOne($key) {\n\t\tforeach($this->values as $oPair) {\n\t\t\tif ($oPair->getName() == $key) return $oPair->getValue();\n\t\t}\n\t\treturn null;\n\t}", "title": "" }, { "docid": "efae60cdc858d851c7...
9ec123255423e7ccb00a5303560c5618
Tags to be used, if required
[ { "docid": "fd4ba409bd7760e21d6eb7646f4dddb7", "score": "0.68043905", "text": "protected function getTags()\n {\n return [];\n }", "title": "" } ]
[ { "docid": "42d35539685a6864a92f0de933d0f3a7", "score": "0.7919781", "text": "private function _tags()\n\t{\n\t\tif (isset($this->ftags))\n\t\t{\n\t\t\t$tags = Tags::factory()\n\t\t\t\t->tagging($this->ftags, $this, $this->author, FALSE);\n\t\t}\n\t}", "title": "" }, { "docid": "a5e1187cc889...
86c0299fdb0a89a48a3fa352900c8d24
Adds a hidden field with the recommendation type.
[ { "docid": "7331e42f83948ee79fbe6814be42457c", "score": "0.67485243", "text": "function displayHiddenRecommendationType($PA, $fobj) {\n\t\t$name = $PA['itemFormElName'];\n\t\t$value = $PA['itemFormElValue'];\n\t\t\n\t\treturn '<input type=\"hidden\" name=\"' . $name . '\" value=\"' . $value . '\" />';\n...
[ { "docid": "73fd888e1354ecff26461319fba81634", "score": "0.60813653", "text": "public function addHidden() {\n parent::createHidden(\"id\");\n }", "title": "" }, { "docid": "2061c35a71a0016507c2f80695b9a2b2", "score": "0.59922904", "text": "function addHidden($name, $value)...
3b707e7c4fc3dcbcfa45cfaf91b308d6
Existing membership plan handler
[ { "docid": "2104c638de268189b4a9bd0446797d02", "score": "0.5947915", "text": "protected function existingMembershipHandler(&$account_info)\n {\n if ($this->planType == 'account'\n && !$this->newMembership\n && $account_info['Plan_ID']\n ) {\n $plan_using...
[ { "docid": "55a9412fd994e4f4c9615f32b59c0aa6", "score": "0.5599924", "text": "public function membership() {\n\n return new Engine_ProxyObject($this, Engine_Api::_()->getDbtable('membership', 'sitepageevent'));\n }", "title": "" }, { "docid": "efe6b35cd9e4ae66874717e86c92dea7", "scor...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e3d0ccd4ada2dc88b7c57c5065e7e2e8", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n }", "title": "" } ]
[ { "docid": "70f839d67344487e3780c8ca780ec59c", "score": "0.78113544", "text": "public function store(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.70093644", "text": "public function store()\n {\n r...
6f38c2af3ef15d88f62eb60b83950432
Admin get all Locations
[ { "docid": "307586bea82e9830aa745fdeaeaaed66", "score": "0.0", "text": "public function adminIndexAction(Application $app)\n {\n $locations = (new LocationFinder($app['db']))->findAll();\n\n return $app['twig']->render('admin_locations.html', array('locations' => $locations));\n }", ...
[ { "docid": "fc6922902ea405ed572e8ee07e182a73", "score": "0.8094578", "text": "public function listLocations();", "title": "" }, { "docid": "91f38bae54ce0fd4f7d71689f9b7c1ba", "score": "0.7973332", "text": "public function getLocations();", "title": "" }, { "docid": "91f38...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "8d8540f28b492a454cec2f193e88abdb", "score": "0.0", "text": "public function run(){\n\n \\DB::table('pets')->delete();\n\n \\DB::table('pets')->insert([\n 'name' => str_random(10),\n 'microchip_number' => str_random(10),\n 'breed_id' => 5,\n ...
[ { "docid": "3effe352cb75bfa3e7358363ac687bc0", "score": "0.7981595", "text": "public function run()\n {\n // Let's truncate our existing records to start from scratch.\n users::truncate();\n\n $faker = \\Faker\\Factory::create();\n $password = Hash::make('123456');\n ...
d66de4eb7e93e7c7f434c1253c5600d3
Send contacts to Dotdigital.
[ { "docid": "c35cd22aa922a0a617eb3a48f327417f", "score": "0.54923654", "text": "private function sendContacts($data, $websiteId)\n {\n $customerAddressBookId = $this->helper->getCustomerAddressBook($websiteId);\n $guestAddressBookId = $this->helper->getGuestAddressBook($websiteId);\n ...
[ { "docid": "64794baffb5564a6b08c577a84090c5c", "score": "0.72249717", "text": "public function sendToContacts() {\n foreach ($this->contactEmails[0] as $key => $value) {\n $contactargs = array(\n \"transform\"=>1,\n \"filter\"=>\"id,eq,\".$key\n ...
7cda68b0a845f62a775105b4bf3ae794
Convert all cells to array of elements.
[ { "docid": "ea4b6eae446e04d4bd35c4f805de5950", "score": "0.0", "text": "public static function toArray(array $cells, array $renamedProperties = null, array $additionalProperties = null): array\n {\n return self::map($cells, function ($cell) use ($renamedProperties, $additionalProperties) {\n ...
[ { "docid": "5e89902ac069619c1ac2eebfa9a28a69", "score": "0.6519968", "text": "protected function parseCells()\n {\n $i = 0;\n $parsedCells = array();\n\n try {\n // Set the cell iterator\n $cellIterator = $this->row->getCellIterator();\n\n // Igno...
eb867ea4ebb2c2896bc5f8f90b21e0bb
Llamado a la vista admin_instructornueva
[ { "docid": "b6dc3e72368af2c359fe8554a1dfa477", "score": "0.8140231", "text": "public function estadoAdmin_instructor()\n {\n $pp = new admin_instructor();\n\n if(isset($_REQUEST['correo']))\n {\n $pp = $this->model->obteneradmin_instructor($_REQUEST...
[ { "docid": "28e33eb1cb5ce88048bde24368c2deab", "score": "0.7937453", "text": "public function nuevoAdmin_instructor()\n {\n $pp = new admin_instructor();\n\n //Llamado de las vistas.\n require_once '../vista/header.php';\n require_once '../vista/admin_i...
936b9b614e65b53bacbd2cadbcd401d6
Recursively finds every view that is included inside this view
[ { "docid": "b94afa886b5f2f4f6d79179c51b75fab", "score": "0.60200214", "text": "public function findAllIncludedViews($viewPath, $ignore = [])\n\t{\n\t\t$content = $this->openViewPath($viewPath);\n\n\t\t$includes = $this->includeStatements($content);\n\n\t\t$ignore[] = $viewPath;\n\n\t\tforeach ($includes...
[ { "docid": "b93a77a02be1d7daccb98c779611fc2e", "score": "0.598411", "text": "public function getViews();", "title": "" }, { "docid": "b93a77a02be1d7daccb98c779611fc2e", "score": "0.598411", "text": "public function getViews();", "title": "" }, { "docid": "b02b6213b5057548...
ec1fae3cc548d2d91d67ec4c1daaea52
//////////////////////////////////////////////////////////////////////// = = = = = = = = = = FORMULAIRE NOUVEAU COMPTE = = = = = = = = = = = =// ////////////////////////////////////////////////////////////////////////
[ { "docid": "e6f1deca53b78a9b3525ce5825a73c9d", "score": "0.0", "text": "public function NewUser(Request $request, EntityManagerInterface $em)\n {\n $user = new User(); //Création d'un nouvel objet Utilisateur\n $form = $this->createForm(NewUserFor...
[ { "docid": "9bf4603e6bf53700da197b6569157709", "score": "0.5956663", "text": "public function getCvu() {\n\n\t}", "title": "" }, { "docid": "2927962fa0229f9102d1beafff541bfd", "score": "0.5920749", "text": "public function avec_valeur() {return (static::TYPE <> self::TYPE_COMPOSITE);...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "82273e5e3f07771656b88c20a0938fa2", "score": "0.0", "text": "public function create()\n {\n return view('experts.create');\n }", "title": "" } ]
[ { "docid": "cd749a934c696538b3e099b4d2ba0015", "score": "0.7627033", "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 ...
ab1d98bc0e1ddfaa7b1fe8c14ce876a6
/ Echo success label
[ { "docid": "07183957bb76bbc1076fcc55ef8e092c", "score": "0.66119623", "text": "function EchoDOMSuccess($innerTEXT)\n{\n echo (\"<div class=\\\"alert alert-success\\\">$innerTEXT</div>\");\n}", "title": "" } ]
[ { "docid": "0cd98355461d3dabfe86b7879aa6270c", "score": "0.77361566", "text": "function formSuccess() {\n\n // Template\n $this->r->text['back_url'] = suxFunct::getPreviousURL();\n $this->r->title .= \" | {$this->r->gtext['success']}\";\n\n $this->tpl->display('success.tpl');...
93863dadb9b7e5a002b28563d7ecd818
Network info about previously specified repo
[ { "docid": "cb63256ff6af48449e44c39096ccef3d", "score": "0.75295275", "text": "public function repo_network()\n\t{\n\t\t$this->url = GH_REPO_API.'/show/'.$this->repo_user.'/'.$this->repo_proj.'/network';\n\n\t\treturn $this->connect(TRUE);\n\t}", "title": "" } ]
[ { "docid": "8132783186dcfa7016d4ae38e9eda40f", "score": "0.69144326", "text": "abstract protected function getRepoInfo($repo);", "title": "" }, { "docid": "383ab2895445ce27da976aab90c71c23", "score": "0.66967", "text": "public function getRepositoryInfo();", "title": "" }, { ...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "b992215fdbd5e069215532ce90905509", "score": "0.0", "text": "public function destroy($id)\n {\n $typepallet = TypePallet::destroy($id);\n echo $typepallet;\n }", "title": "" } ]
[ { "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 }", ...
0f3cfc653e14313ce96cfe92a69da693
Sets the value of deleted.
[ { "docid": "ebcccc68013a8989b7bf525f41379851", "score": "0.63893473", "text": "public function setDeleted($deleted)\n {\n $this->deleted = $deleted;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "b92ecbb994460662c7bac630294dc2ac", "score": "0.82006085", "text": "public function setDeleted() {}", "title": "" }, { "docid": "b7d39e97f380cf17d7aa178bb81ee1cb", "score": "0.80366457", "text": "final public function set_to_delete(): void\n {\n $this->state_dele...
a7b7d991b698f6a57fcdcb5b68da603f
salah satu jenis property yang dibuat membuat method yang nantinya akan ditampilkan
[ { "docid": "54be43f281c27b40c57a9357e123ce92", "score": "0.0", "text": "public function detailMamalia()\n \t{\n /*\n fungsi dari strtoupper ialah menjadikan semua hurufnya menjadi kapital. ex = contoh => CONTOH\n fungsi dari ucwords ialah menjadikan huruf didepan ...
[ { "docid": "96f1f1db559b6ecdfc4c422f74ab4f20", "score": "0.62122035", "text": "function __set($prop_name, $prop_value) \r\n\t{\r\n\t\tif (method_exists ($this, \"set_\".$prop_name)) \r\n\t\t\t// llamar a la funcion de acceso\r\n\t\t\treturn call_user_method(\"set_\".$prop_name, $this, $prop_value);\r\n\...