query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
33ea2ed23a84e359e632b276f2b392bd
The original name of the model.
[ { "docid": "ed14eee39283bce678a925fe505729c2", "score": "0.0", "text": "public function getModelName()\n {\n return self::$swaggerModelName;\n }", "title": "" } ]
[ { "docid": "dfb124bdcf6a52293205375885ded54b", "score": "0.81750536", "text": "public function getOriginalName()\n {\n return $this -> name;\n }", "title": "" }, { "docid": "65707f3edb771eb4a04be9390831c83a", "score": "0.8089734", "text": "public function getOriginalName...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "1a5a3f26c87a6b11a2f7701d125bf7a0", "score": "0.0", "text": "public function index()\n {\n $data = array();\n $Actor = Auth::user()->actor;\n $data['Actor'] = $Actor;\n // CARGAR NOTIFICACIONES\n $data['notificaciones'] = Notificacion::where(\"Actor_cedul...
[ { "docid": "d4a0ecd8566af1bfd9231147ca1e458f", "score": "0.7474345", "text": "public function list()\n {\n try {\n $result = $this->get_all();\n $this->response($result);\n } catch (Exception $e) {\n $this->response(array(\n \"message\" =>...
8efa34130680d85a61ee50b3d3d1f680
Check if the user has the specific role.
[ { "docid": "60e8f0062a627ddb4f2cfd9fd9c8811e", "score": "0.0", "text": "public function hasRole($roles)\n {\n if (!is_array($roles)) {\n $roles = [$roles];\n }\n\n foreach ($this->roles as $role) {\n if (in_array($role->slug, $roles) !== false) {\n return true;\n }\n }...
[ { "docid": "f4f5dd5da694bd29076d3bd40823fa46", "score": "0.842958", "text": "public function hasRole($user, $role): bool;", "title": "" }, { "docid": "3cb31c7f8e4e0a63cb8a4b59a876e39b", "score": "0.82155895", "text": "public function hasRole(Role $role): bool;", "title": "" }, ...
3754fd5b8e7d441bccda060aba54b57b
Checks if a controller is private or not
[ { "docid": "a7209928db7a9d2df89f151f372f37ac", "score": "0.738988", "text": "public function isPrivate($controllerName)\n {\n return isset($this->_privateResources[$controllerName]);\n }", "title": "" } ]
[ { "docid": "6736656e57095cdcd84e442d70fde8f9", "score": "0.7354169", "text": "public function isPrivate($controllerName)\n {\n return isset($this->privateResources[$controllerName]);\n }", "title": "" }, { "docid": "1e89a2bb7ee0e6d39c919fe82ca5cb20", "score": "0.70342803", ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "03cce66815a5d62b8039fa9733e02b12", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'nama_level' => ['required'],\n 'deskripsi_level' => ['required'],\n ]);\n $level = Level::find($id);\n ...
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "01534868cb4f609380c1221841e980b3", "score": "0.7055208", "text": "public function testUpdateResource()\n {\n\n }", "title": "" }, {...
e0e173e3386f4ff42d70d5722843fb9d
Display a listing of Abuse.
[ { "docid": "4b3db47de7fd1eb0f0c0f5c8005e5cf5", "score": "0.75842494", "text": "public function index()\n {\n if (! Gate::allows('abus_access')) {\n return abort(401);\n }\n $abuses = Abuse::all();\n\n return view('abuses.index', compact('abuses'));\n }", ...
[ { "docid": "0489bfbbc7660661cac769a848fa06eb", "score": "0.6989255", "text": "public function index()\n {\n $this->Amer->hasAccessOrFail('list');\n\n $this->data['Amer'] = $this->Amer;\n $this->data['title'] = $this->Amer->getTitle() ?? mb_ucfirst($this->Amer->entity_name_plural)...
5b63fe9575ea776b2e17b6fd80d32e56
Combine this Validation Result with the ValidationResult given in other. It will be valid if both this and the other result are valid. This object will be modified to contain the new validation information.
[ { "docid": "54160aff1abcbf35513365f7d6836428", "score": "0.7273464", "text": "function combineAnd(ValidationResult $other) {\n\t\t$this->isValid = $this->isValid && $other->valid();\n\t\t$this->errorList = array_merge($this->errorList, $other->messageList());\n\t}", "title": "" } ]
[ { "docid": "9f988eaf6ba20f056c6db0624899b00b", "score": "0.6555362", "text": "public function testCombineResults()\n {\n $result = new ValidationResult();\n $anotherresult = new ValidationResult();\n $yetanotherresult = new ValidationResult();\n $anotherresult->addError(\"...
bfcfc76d45a2ad59c7b1ca42b42ab21c
Build array from get url. TODO: it's probably faster to use PHP buildin function (array_merge...)
[ { "docid": "c49e1d2f774747fa7b9a28ed95c6311f", "score": "0.57152367", "text": "function PU_BuildGETArray(array $myGET, $includeInGet = null, $excludeFromGet = null)\n{\n\tif (!is_null($includeInGet)) {\n\t\tif (!is_array($includeInGet))\n\t\t\t$includeInGet = array($includeInGet);\n\t\tforeach ($include...
[ { "docid": "127077b4b8d7f1cfd5416b178dfb6215", "score": "0.67832327", "text": "private function get_array() {\n\t\t$resultArray = array(\n\t\t\t\"URL\" => \"$this->queryURL\"\n\t\t);\n\n\t\tif ($this->queryData == \"all\" || $this->queryData == \"webserver\") {\n\t\t\t$resultArray[\"Web server\"] = $thi...
b635910a26740ef5d8e689b61d3b1a0b
Retrieves a list of models based on the current search/filter conditions.
[ { "docid": "5b76e919c6bcb7ac922620b35509a401", "score": "0.0", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id',$this->id,true);\n\t\t$criter...
[ { "docid": "ff5e87c8f9141be857ec5fd136de381a", "score": "0.6968434", "text": "function _getFilteredListOfModels() {\n\t\t\n\t\t// If we have a whitelist then we will use that. If there is no whitelist,\n\t\t// then we will start with the complete list of models in the application.\n\t\tif (Configure::re...
dca7d72b1e795fd8b0f98f92b8b4490e
Returns value of 'consumed' property
[ { "docid": "693d68200fb6a3c37c0a72774b53edc6", "score": "0.79053587", "text": "public function getConsumed()\n {\n return $this->get(self::CONSUMED);\n }", "title": "" } ]
[ { "docid": "47af0f108d844e8a53296f445bf8111e", "score": "0.70599234", "text": "public function IsConsumed() {\n\t\t\treturn $this->_IsConsumed;\n\t\t}", "title": "" }, { "docid": "fcf615411f8ff437ba934d62fcc0e10c", "score": "0.64329547", "text": "public function getConsumption() {\n\...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "97dcf0aa1283887cc2fb4e16924681f8", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n $data = [\n 'game_id' => 'numeric',\n 'chapter' => 'numeric',\n 'number' => 'numeric',\n 'content' => 'string'\n ];\n\...
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)\n {\n }", "title": "" }, { ...
b37e4729bf86264a544576a4cd992b5d
Alignements en HTML (Oldstyle, preferer CSS) Cette fonction cree le paragraphe s'il n'existe pas (texte sur un seul para)
[ { "docid": "bbdc16d894ba8b26c08caa9fe60521bf", "score": "0.76927537", "text": "function aligner($letexte, $justif='') {\n\t$letexte = trim($letexte);\n\tif (!strlen($letexte)) return '';\n\n\t// Paragrapher proprement\n\t$letexte = paragrapher($letexte, true);\n\n\t// Inserer les alignements\n\tif ($jus...
[ { "docid": "dbe74698e2653906f904c4596af5c83a", "score": "0.655014", "text": "function reemplazar($cual){\n\t$cual = str_replace('<p align=\"justify\">', \"\" , $cual);\n\treturn $cual;\n}", "title": "" }, { "docid": "a661446eeb837fe0c042d349ee3d943e", "score": "0.6172739", "text": "f...
fc73720be2d483252ea84cfcbd691059
/ Function will create folder
[ { "docid": "f33a7c039b77587acefeba5f8167fdaa", "score": "0.6849642", "text": "function createFolderWithFile($folder=\"\", $manufacturer_id)\n{\n\tif( !isDirExists( $folder ) )\n\t{\n\t\tmkDirectory( $folder );\t\t\n\t\t\n\t\t$source = BASE_DIR . \"index.php\";\n\t\t$dest = BASE_DIR . $folder. \"/index.p...
[ { "docid": "ba7e8d352b2ec866991b096b51909c38", "score": "0.82858616", "text": "public function createFolder()\n {\n mkdir($this->_directory, 0777);\n }", "title": "" }, { "docid": "daed930637587b027778b6fc8633c987", "score": "0.82826114", "text": "abstract function creat...
6f7eb3818653fcd24eee147dfba9b107
event: adminhtml_cms_page_edit_tab_meta_prepare_form in: Mage_Adminhtml_Block_Cms_Page_Edit_Tab_Meta::_prepareForm()
[ { "docid": "440bb23718a8261bd0dc7d696677b03f", "score": "0.60353696", "text": "public function addFieldsToCmsMetaTagForm(Varien_Event_Observer $event)\n {\n $isElementDisabled = Mage::getSingleton('admin/session')->isAllowed('cms/page/save') ? false : true;\n\n $form = $event->getForm()...
[ { "docid": "11aa64740f291af38c26789701c2cd17", "score": "0.74952275", "text": "protected function _prepareForm()\n\t{\n\t\tparent::_prepareForm();\n\t\t\n\t\t$fieldset = $this->getForm()->addFieldset('splash_page_meta', array(\n\t\t\t'legend'=> $this->helper('adminhtml')->__('Meta Data'),\n\t\t\t'class'...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "5e8960abb8bdf3af84097448b429e9c3", "score": "0.0", "text": "public function create()\n {\n return view('cars.create');\n }", "title": "" } ]
[ { "docid": "06ec3b32b9b222f39c5dee97c3ecbb36", "score": "0.7940849", "text": "public function create()\n\t{\n\t\treturn view('admin.resource.create');\n\t}", "title": "" }, { "docid": "1e65cd3b7532e9fb4c8629f59550be03", "score": "0.7736471", "text": "public function create()\n\t{\n\t...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "65d2939b8cc2deedb3c2ef899635dc8a", "score": "0.0", "text": "public function rules()\n {\n $actual=Carbon::now();\n switch ($this->method()) {\n case 'GET':\n \n case 'POST': {\n return [\n 'evento'=>'required|max:200|...
[ { "docid": "9b89453638fa0d4bc780cfdebb220131", "score": "0.8036255", "text": "public function rules()\n {\n $rules = [];\n\n if ( $this->method() === 'POST' || $this->method() === ' PUT' ) {\n $this->getFormRules();\n }\n\n return $rules;\n }", "title": "...
ee9a1553157a4e4907af0501da6bb2a6
Changes facility name for this lab configuration
[ { "docid": "6f8e9ed5fb7e62da1f84dc45d95d7495", "score": "0.56834704", "text": "public function changeName($new_name)\n {\n global $con;\n $new_name = mysql_real_escape_string($new_name, $con);\n $saved_db = DbUtil::switchToGlobal();\n $query_string =\n \"UPDATE ...
[ { "docid": "73d5cea1c8da039bdc5f696f23d0932a", "score": "0.609939", "text": "function setName($new_name)\n {\n $this->schoolName = $new_name; \n }", "title": "" }, { "docid": "01d46fc8c245219608638987eaa60905", "score": "0.6081522", "text": "public function setName($v...
acc8590656edcfa8ca6ebca5be01f335
Function to check filters for record.
[ { "docid": "a342ac40bce39a1fb1a467e777a61079", "score": "0.6119173", "text": "public function checkFiltersForRecord($recordId)\n\t{\n\t\t$key = $this->getId() . '_' . $recordId;\n\t\tif (\\App\\Cache::staticHas(__METHOD__, $key)) {\n\t\t\treturn \\App\\Cache::staticGet(__METHOD__, $key);\n\t\t}\n\t\tVti...
[ { "docid": "4f95969ee33e5fc02745a5596fcabf39", "score": "0.73315734", "text": "public function isRecordToBeFiltered(array $record);", "title": "" }, { "docid": "073fe7f2b4cd999aad10700b3ae31330", "score": "0.7162729", "text": "function CheckFilter() {\n\n\t// Check feedmill popup fil...
e9f8f98539680eded068391d1e9c29f7
Drops a database and all its related data.
[ { "docid": "77c618b19fed5d233b05b2377c5239e2", "score": "0.6133163", "text": "public function drop(ConnectionInterface $db)\n {\n $database = $db->getDatabase();\n\n $collection = $database->selectCollection($this->table);\n\n $collection->drop();\n }", "title": "" } ]
[ { "docid": "db0139535304c8a376232d3cf304b8e3", "score": "0.7823579", "text": "public function dropDatabase()\n {\n\n try {\n // clone the connection and load the database name\n $connection = clone $this->getEntityManager()->getConnection();\n $dbname = $connec...
0ad62648b35156e199cd4bc5a4efbb2a
Public method to delete the asociated account
[ { "docid": "3ec502acb1b302fe36b680476bf0271e", "score": "0.72767854", "text": "public function delete_account($id) {\n\t\t$result = $this->db->delete('investorgroups_accounts', array('id' => $id));\n }", "title": "" } ]
[ { "docid": "bb45b95ce6373e0e3f4ec99886a00b94", "score": "0.7821971", "text": "public function deleteAccount() {\r\n //create a connection to the database\r\n require_once dirname(__FILE__).'/Connection.php';\r\n $connection = new Connection();\r\n try {\r\n //connect to the database\r\n...
3697bfeb425d34913fa5d104e33311ce
Destroys this session and removes all data from storage and memory
[ { "docid": "ebc79a91879b1741098af91303fbb578", "score": "0.0", "text": "public function destroy();", "title": "" } ]
[ { "docid": "3183dfe6e4c1843d2bb0a87e00d9e905", "score": "0.839983", "text": "public function destroy()\n {\n $_SESSION = array();\n session_destroy();\n }", "title": "" }, { "docid": "56e9a99822912df6632dcd314a72e16d", "score": "0.83444947", "text": "public functi...
fccd382ae3782c6396b39758a0125454
Build method for URLs This method is meant to transform the query parameters into a more human readable form. It is only executed when SEF mode is switched on.
[ { "docid": "03151ae53af8f8c5aff91cc9d0296dfe", "score": "0.0", "text": "public function build(&$query);", "title": "" } ]
[ { "docid": "187866338ac03a1d948e2c20ac5a30b8", "score": "0.6949756", "text": "private function build_params()\n {\n if($this->is_rewrite)\n {\n return;\n }\n\n $url_parts = parse_url('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);\n $split_at_sl...
8ef242df6ad03ea33f54ee76ecc344c0
Bootstrap any application services.
[ { "docid": "23a2ab1b330edc2327f9486d76fe537f", "score": "0.0", "text": "public function boot()\n {\n //\n Schema::defaultStringLength(191);\n // view()->composer('layout.user.groups', function($view){\n // $view->with('groups', \\App\\Group::archives());\n // })...
[ { "docid": "dd827255a6e69b004782c9f976252ee1", "score": "0.7510709", "text": "public function boot()\n {\n //\n $this->applicationService();\n $this->processService();\n $this->roleService();\n }", "title": "" }, { "docid": "7b69f34798c3586d32aa17c5cda0b563"...
9162ee4a7cb50bab1cabdf617058061f
Email login credentials to a newlyregistered user Overwriters the function in wpincludes/pluggable.php
[ { "docid": "688e09c333c674b4e81a15a40ae2d71a", "score": "0.7106098", "text": "function wp_new_user_notification($user_id, $plaintext_pass = '') {\n\t$user = get_userdata( $user_id );\n\n\t// The blogname option is escaped with esc_html on the way into the database in sanitize_option\n\t// we want to rev...
[ { "docid": "84a8fd8f5bf47589ed6e9a1f99b3298b", "score": "0.71549916", "text": "function wp_new_user_notification($user_id, $plaintext_pass = '') {\n $user = get_userdata( $user_id );\n $user_login = stripslashes($user->user_login);\n $user_email = stripslashes($user->user_email);\n\n // The blogname ...
f245b4901e2f609e966851723e918152
/ unset login regenerate session id
[ { "docid": "2ada34ef6fc4f29c62055f789d296b6e", "score": "0.7362478", "text": "public function logout() : void\n {\n unset($_SESSION['login']);\n session_regenerate_id(true);\n }", "title": "" } ]
[ { "docid": "41912fa352ed709414b98dc99e20eaec", "score": "0.7943995", "text": "private function removeLoginUserInfo()\n {\n session_regenerate_id(true);\n http()->removeSession('login_user');\n }", "title": "" }, { "docid": "71be70dc7f831e17376395fe9fa22834", "score": ...
00143a0037cc0bdc1f005d07d2627597
Clears out the collFriendsRelatedByFriendId collection This does not modify the database; however, it will remove any associated objects, causing them to be refetched by subsequent calls to accessor method.
[ { "docid": "4c5c15a9c4859f2b0db5eaf52e5c86bd", "score": "0.8549436", "text": "public function clearFriendsRelatedByFriendId()\n {\n $this->collFriendsRelatedByFriendId = null; // important to set this to null since that means it is uninitialized\n $this->collFriendsRelatedByFriendIdPart...
[ { "docid": "e8c27569ffc6a3ccefe89c89906a0201", "score": "0.769683", "text": "public function clearFriendsRelatedByUserId()\n {\n $this->collFriendsRelatedByUserId = null; // important to set this to null since that means it is uninitialized\n $this->collFriendsRelatedByUserIdPartial = n...
69aa2469259afdbd89e6046d212cbee0
Creates and returns domain object from data.
[ { "docid": "e5177c9a3c41d5181d6c9793d2ab6949", "score": "0.73513925", "text": "public function create(array $data) {\n\t\t/* @var $object \\TYPO3\\CMS\\Extbase\\DomainObject\\AbstractDomainObject */\n\t\t$object = $this->objectManager->get($this->objectType);\n\t\t$this->setProperties($object, $data);\n...
[ { "docid": "a3443e1384b911c95b8691f28fa51a94", "score": "0.70994055", "text": "public static function createFromData($data)\n {\n $model = new Data();\n $model->setRaw($data);\n return $model;\n }", "title": "" }, { "docid": "0de324d0765fe002795cb912a2942df6", ...
9d8dc4ae37e94d5ca37f2783167c12ec
Return array (in internal format) from string duration
[ { "docid": "dbe41fe9ecc35b19136361280419fe75", "score": "0.73915476", "text": "public static function durationStr2arr( $duration ) {\n static $P = 'P';\n static $Tt = ['t', 'T'];\n static $W = 'W';\n static $D = 'D';\n static $H = 'H';\n static $M = 'M';\n static $S = 'S';\n ...
[ { "docid": "7429b3706cbc3e05ecd93dfa93eaf164", "score": "0.71030027", "text": "public static function duration2arr( $duration ) {\n $seconds = 0;\n foreach( $duration as $durKey => $durValue ) {\n if( empty( $durValue )) continue;\n switch ( $durKey ) {\n case '0': case sel...
78c16929c2cde7a5e933c0fd65002fda
Tears down the fixture, for example, close a network connection. This method is called after a test is executed.
[ { "docid": "052636648912743c4c3c6b20e835d6a4", "score": "0.7084026", "text": "protected function tearDown(): void\n {\n\n // stop the transaction and rollback\n self::$container->get(DependencyInjectionKeys::CONNECTION)->getConnection()->rollback();\n\n // clean-up the temporary ...
[ { "docid": "b513b13c6b77846af5dadbdbaf81e0aa", "score": "0.7725601", "text": "protected function tearDown() {\n\n $this->myfixture->tearDown();\n $this->ChatInstance = null;\n\n }", "title": "" }, { "docid": "6d1a8eb5e26d10bcd0d24ef3c13081e8", "score": "0.7239495", "...
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.8375539", "text": "public function authorize()\n {\n return $this->user() !== null;\n }", "title": "" }, { "docid": "adc35a96694d73041eb8bde60a1a3a34", "score": "0.83555704", "text": "public function authorize()\...
00d80e74394acabd9496372c87552775
FFM [ D51 ]
[ { "docid": "8b363fcfa8145e8f69538b4b6991b698", "score": "0.5114495", "text": "public function getTukFFM() { \n\t\treturn $this->KNTSession_ProcentoTuku * $this->KNTSession_Hmotnost / 100;\n\t}", "title": "" } ]
[ { "docid": "f40ed0a05651005073635c1d3337598d", "score": "0.54597044", "text": "function controller_getCfam31() {\n return $GLOBALS['Ffami3']->getCfam31();\n }", "title": "" }, { "docid": "a53283cf3bfc180b423d570055b47cde", "score": "0.5437963", "text": "function controller_...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "54e6ae373eedff5ec94c1e3e974aed0f", "score": "0.0", "text": "public function sendFeedbackToDevelopmentTeam($id)\n { \n $data = $this->feedback->sendFeedbackToDevelopmentTeam($id);\n return redirect()->route('getFeedbacks')->with('sendFeedbackToDevelopmentTeamSuccess', $data...
[ { "docid": "d4a0ecd8566af1bfd9231147ca1e458f", "score": "0.7474345", "text": "public function list()\n {\n try {\n $result = $this->get_all();\n $this->response($result);\n } catch (Exception $e) {\n $this->response(array(\n \"message\" =>...
b96ef22af9667626c553e8a069a03cf7
/ Test function has unique function name Cases no previous version this version is less than another version this version is greater than another version this version is equal to another version
[ { "docid": "c7177cda4263b4f0d35f817eb6138c80", "score": "0.50022155", "text": "function tw_test_include_2_1() {\n\t$this_version = 2.1;\n\n\t// option key\n\t$last_version = (float) get_option( 'templatewrangler_version',\n\t\tFALSE );\n\t$function_loaded = ( function_exists( 'theme' ) );\n\t$loa...
[ { "docid": "a8136254f5a6c1a7692381973a6bb7bc", "score": "0.6302447", "text": "function test11() {\n\n}", "title": "" }, { "docid": "49a225e5383603e04fb68cbbd6d84012", "score": "0.62115115", "text": "function test12() {\n\n}", "title": "" }, { "docid": "a80c3f0ae9a82659b0e...
981f63f27a8b996614c55f6400817eab
Create a new directory
[ { "docid": "ad4a004743fff1c37d98150fee7ad73f", "score": "0.77099454", "text": "public function newDirectory()\n {\n\n $target_full_path = $this->getTargetFile()->getFilepath(true);\n $this->event(YouweFileManagerEvents::BEFORE_FILE_DIR_CREATED);\n $this->getDriver()->makeDir($tar...
[ { "docid": "270634c5385375dce53e3d34e90b9a76", "score": "0.83054304", "text": "function createDirectory($name);", "title": "" }, { "docid": "4faf4737f2da2a19b3d72d19c6ec424b", "score": "0.8040267", "text": "abstract function createDirectory($path);", "title": "" }, { "doc...
88c69c68ddc6809f34d3ff8ab72016ee
Render the versions dropdown menu
[ { "docid": "918643f4c4dbcbf5bc41b7532bd5a143", "score": "0.772186", "text": "public function renderDropdown()\n\t{\n\t\t$objVersion = $this->Database->prepare(\"SELECT tstamp, version, username, active FROM tl_version WHERE fromTable=? AND pid=? ORDER BY version DESC\")\n\t\t\t\t\t\t\t\t ->execute($...
[ { "docid": "31cad6654e9ef641ba410a1a45da9586", "score": "0.6655547", "text": "public function getVersionList(){\n $this->view->title = \"Version Listing\";\n $this->view->versions = system\\library\\Version::all();\n $this->view->render(\"version/index\",false);\n }", "title"...
b95ed33d6603e8a10547ae8113c04fb6
Sets the merchant code
[ { "docid": "542e319a2a9d658e0e5f99e60f231aec", "score": "0.5760914", "text": "public function setMerchant($merchant)\n {\n if (!is_string($merchant)) {\n throw new InvalidArgumentException('The merchant code must be a string');\n }\n\n if (empty($merchant)) {\n ...
[ { "docid": "c06d788878e3b3f5f2914bd3478deac3", "score": "0.8372849", "text": "public function setMerchantCode($merchant_code);", "title": "" }, { "docid": "1b52f1738e7dbe66a919115ea6cbe22e", "score": "0.75131476", "text": "public function setMerchantIdentifier();", "title": "" ...
3b139acd2f5b8c714481f2cda959d924
echo "Testing Analytics: Analytics::getSEOStats()";
[ { "docid": "e5dc456225fd05f8e3b32d559cb69b99", "score": "0.743808", "text": "public function testGetSeoStats()\n {\n// $stats = $this->analytics->getSeoStats('google.com');\n// print_r($stats->getAll());\n }", "title": "" } ]
[ { "docid": "fedbd2349aaa2a5e0272933b3bc2e182", "score": "0.69145644", "text": "public function testGetStats()\n {\n\n }", "title": "" }, { "docid": "9b2cfde4b469527646278b6c397c39bd", "score": "0.6739175", "text": "public function testAnalyticsProfanity()\n {\n }", "t...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "f86a56e84330a1be6c745f84784c5f21", "score": "0.0", "text": "public function store(Request $request)\n {\n if(Auth::user()->rol == 6) {\n if($request->ajax())\n {\n if(!empty($request->file('file'))) {\n $file = $request->file(...
[ { "docid": "79da2146a3794a65b80951c7ea2a2404", "score": "0.66211367", "text": "public function save()\n {\n $this->storage->save();\n }", "title": "" }, { "docid": "f934191a4b4b75a1fb96952dd934d298", "score": "0.6508264", "text": "public function store()\n {\n ...
f3d384f3080ab58cfd692bf68d5c86af
Function to convert CSV into associative array
[ { "docid": "2a7a01d8e82cec694f52777eb8d5fad6", "score": "0.6805761", "text": "function csvToArray($file, $delimiter) {\n if (($handle = fopen($file, 'r')) !== FALSE) {\n $i = 0;\n while (($lineArray = fgetcsv($handle, 4000, $delimiter, '\"')) !== FALSE) {\n for ($j = 0; $j < ...
[ { "docid": "80a1d3be62c1ebd6ffa732649e6d9553", "score": "0.79948664", "text": "function csv_to_associative_array($file, $delimiter = ',', $enclosure = '\"')\n{\n if (($handle = fopen($file, \"r\")) !== false)\n {\n $headers = fgetcsv($handle, 0, $delimiter, $enclosure);\n $lines = []...
6fb03b1e2b68f845503468f15429c2ee
Balu A Converts API data currency to preferred currency
[ { "docid": "c7de2d7f0ad7fc9d0f5be8a567cc8b67", "score": "0.0", "text": "public function search_data_in_preferred_currency($search_result, $currency_obj) {\r\n\r\n $flights = $search_result['JourneyList'];\r\n\r\n $flight_list = array();\r\n foreach ($flights as $fk => $fv) {\r\n ...
[ { "docid": "b294e758e1e957f2caa8c32f8343c481", "score": "0.6996754", "text": "public function returnBtcEuro() \n\t{\n\t\t$url = \"https://bitpay.com/api/rates\";\n\t\t$json = json_decode(file_get_contents($url));\n\t\t$dollar = $btc = 0;\n\t\tforeach($json as $obj){\n\t\t\tif ($obj->code == 'EUR') \n\t\...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "1b798e12cc75bdb6f29ed2aaac119be1", "score": "0.0", "text": "public function destroy($id)\n {\n $user = User::whereId($id)->first();\n $user->delete();\n return redirect()->back()->with('success', 'user deleted');\n }", "title": "" } ]
[ { "docid": "b3402eab0e6e7fcae87ea6d302ba7755", "score": "0.6850561", "text": "public function DELETE() {\r\n // delete the cached resource, if it exists\r\n if ($this->HEAD($this->getURI())) {\r\n // load the resource, then delete it\r\n $this->bind($this->getStorage(...
edbecff067d25ba84b360795c5a58166
Returns all the settings fields
[ { "docid": "bac6476a3c4604a3caa129a3659b9f83", "score": "0.0", "text": "function get_settings_fields() {\n $settings_fields = array(\n 'genaral_options' => array(\n array(\n 'name' => 'layout',\n 'label' => __( 'Gallery Layout',...
[ { "docid": "e5e041c62fc0d509da8e4b0bda75d2ed", "score": "0.9024309", "text": "public function get_settings_fields();", "title": "" }, { "docid": "5372989f835698edf6d6d5ecacb606f8", "score": "0.8075094", "text": "public function feed_settings_fields() {\n\n\t\t\t// Maybe initialize se...
492918162916ea611008bf50ad87b3ae
Carry out the API requests.
[ { "docid": "138d5e438d1d2a61613b5afc41aed45d", "score": "0.0", "text": "private function request($url, $additionalcUrlHeaders = NULL, $additionalHeaders = NULL){\r\n\t\t\t$accountData = $this->getUserData($this->username);\r\n\r\n\t\t\t$ch = curl_init();\r\n\t curl_setopt($ch, CURLOPT_URL, self::...
[ { "docid": "f278a2f62ed10213d2ae748650857bdc", "score": "0.6305836", "text": "public function processRequests();", "title": "" }, { "docid": "3cc73dcb57467f64a55a7abf1fcfbafb", "score": "0.61361206", "text": "public function all()\n {\n $this->web();\n $this->api();\...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "3469b4cef542c9b2a398b099e34dcd03", "score": "0.0", "text": "public function index()\n {\n return view('doador.agendar');\n }", "title": "" } ]
[ { "docid": "66dba62b6171d79d179d2efe10c0caba", "score": "0.74747115", "text": "public function index()\n\t{\n\t\t// Paginate resource resutls\n\t\t$results = $this->paginate();\n\n\t\t// If results found add asset to make tables responsive\n\t\t$results->total();\n\n\t\t// Create header links for sortin...
1db65a7f77939878e45ee33fa7842d20
try and use getimagesize()
[ { "docid": "19993730f131231a6cfb4f08d7277ef5", "score": "0.0", "text": "public function loadFile($thumbnail, $image)\n {\n // on failure, use identify instead\n // $imgData = @getimagesize($image);\n /* if (!$imgData)\n {\n exec($this->magickCommands['identify'].' '.escapeshellarg($image...
[ { "docid": "b9d1c32efd2388cb5678b45c75ff08fe", "score": "0.81868", "text": "public function getImageSize() {\n\t}", "title": "" }, { "docid": "dc8650e538e088f2a8efc9dfddfbbe1d", "score": "0.79079074", "text": "private function checkAndGetImageSizeIfNeeded(){\n\t\tif(!($this->imageWid...
263a079984b4d162464ecfe6760bd0a5
we want to ignore the name passed
[ { "docid": "27d88d0dc5f84acd91c10a7359696f59", "score": "0.0", "text": "public function __construct($name = null)\r\n {\r\n parent::__construct('topic');\r\n $this->setAttribute('method', 'post');\r\n $this->add(array(\r\n 'name' => 'id_topic',\r\n 'attribut...
[ { "docid": "c9427a753d196af79b0af7e416e54d89", "score": "0.6472586", "text": "public function withoutHeader(string $name) {\n }", "title": "" }, { "docid": "66c0ae8fd6e23e66ef26ab694acbc4a5", "score": "0.62616414", "text": "function setName($name) \n {\n // override me ...
725da0c422f913fecf800ad14c875c07
Update positions when attributes of the start tag has been upated.
[ { "docid": "85c3766990ea82e3157ef2470893fac3", "score": "0.54316205", "text": "function _ApplyDiffFromStart($Diff) {\n\t\t$this->pST_PosEnd += $Diff;\n\t\t$this->pST_Src = false;\n\t\tif ($this->pET_PosBeg!==false) $this->pET_PosBeg += $Diff;\n\t\t$this->PosEnd += $Diff;\n\t}", "title": "" } ]
[ { "docid": "3f0fd05146a8f2bef1149037d6f5660a", "score": "0.6413306", "text": "public function setStart( $start )\n\t{\n\t\t$this->setAttribute( \"start\", $start );\n\t}", "title": "" }, { "docid": "3c6dc5881ae4ffefb09b0255596a5b33", "score": "0.61828065", "text": "protected function...
d3dc1f74cc7b2dc4a5a6bf4ea0f1763b
/ Ritorna il contenuto nella posizione specificata. Es: path : /html/head/keywords > ritorna l'array delle keywords path : /html/head/description > ritorna la descrizione
[ { "docid": "3f33a3e2dc2c703a248f31b2f5ce45ca", "score": "0.0", "text": "function get($path,$default_value=null)\n {\n if (!$this->is_set($path))\n return $default_value;\n \n $path_parts = self::path_tokens($path);\n \n $current_node = $this->data;\n ...
[ { "docid": "880b80b4f1c1138d0e9dabca3e4b6260", "score": "0.60370874", "text": "function get_meta_keywords_description($source_html){\n $tab_metas = get_meta_tags($source_html);\n\n return $tab_metas[\"keywords\"]. \" \" .$tab_metas[\"description\"];\n}", "title": "" }, { "docid": "f8c1...
5c7d19aa18807096b26dd883e7b9a9ea
Sets the name of this parameter
[ { "docid": "67e6e4174f79bcab1e7b1f673be968c7", "score": "0.79078966", "text": "public function setName($name) {\n\t\t$this->name = $name;\n\t}", "title": "" } ]
[ { "docid": "7af07b9725dee278be9da59a9448efc2", "score": "0.7949859", "text": "public function setName( $name ) {\n $this->name = $name; \n }", "title": "" }, { "docid": "5208850478828696faa66d10975be992", "score": "0.7948748", "text": "public function setName($name)\n ...
4babc10df13daf473b465f3c594351bf
support for customizable list screen
[ { "docid": "57715bd7864a7810ae3b8c0e52a86f43", "score": "0.0", "text": "public function UserViewsAction($id){\n $id+=0;\n\n $ps=array(\n 'rows' => $this->getViewListArr($this->getViewListUserFields(), true)\n );\n\n $this->fw->parser(\"/common/list/userviews\", $ps...
[ { "docid": "b13b6122e2f979d1d26964dc2d025d08", "score": "0.70793", "text": "public function list_items()\n\t{ \n\t $views[]\t\t\t\t\t\t\t\t\t\t\t= \"site_list\";\n $data['title'] = lang('list_title');\n $this->data['action'] = \...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "7d56ba702b0f53bfb287a0a271448f5e", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "3e3a565a181db6f795f079d1dfb01f75", "score": "0.7099585", "text": "public function update(Resource $resource, $id)\n {\n //\n }", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)...
4e6e75d8f539ce3262f16a0433d5e815
/ Function: meager_config Gets a configuration setting from the $config array
[ { "docid": "8c92641c0e6589fd34d67aaf4d9869ab", "score": "0.70134693", "text": "function meager_config( $name, $default=null ) {\n\tglobal $config;\n\tif ( isset( $config[ $name ]))\n\t\treturn $config[ $name ];\n\treturn $default;\n}", "title": "" } ]
[ { "docid": "1d300a28a53d609e647cd7c27bb5b55d", "score": "0.7397635", "text": "public function get_config();", "title": "" }, { "docid": "bfedcc5c6cf5decdf542f280616f9278", "score": "0.73476136", "text": "abstract public function get_config();", "title": "" }, { "docid": "...
bf79fc5e2679b780ec8cd1c80bbd4843
Declarte construct method which accepts three parameters
[ { "docid": "173b90f6468800775c9f80ca35c6bcda", "score": "0.0", "text": "function __construct($farm_id,$server_id,$photo_id,$secret,$title){ \n\t\t $this->$farm_id = $farm_id; \n\t\t $this->$server_id = $server_id; \n\t\t $this->$photo_id = $photo_id; \n\t\t $this->$secret = $secret; \n\t\t $this->$ti...
[ { "docid": "b692fcd6ad84644cfd325ce8c383c13b", "score": "0.78330505", "text": "public function __construct(){\r\n\t\t\t$params = func_get_args();\r\n\t\t\t$num_params = func_num_args();\r\n\t\t\t//atendiendo al siguiente modelo __construct1() __construct2()...\r\n\t\t\t$funcion_constructor ='__construct...
25b60530d3eea072a53e4e4f46c04cae
Find the first table name referenced in a query
[ { "docid": "f35e1cb023b97f525ac356535a62dbe3", "score": "0.6006677", "text": "function get_table_from_query ( $q ) {\n\t\t// Remove characters that can legally trail the table name\n\t\t$q = rtrim($q, ';/-#');\n\t\t// allow (select...) union [...] style queries. Use the first queries table name.\n\t\t$q...
[ { "docid": "130fb74b1794f3b37fcf74a63570fcb7", "score": "0.6644151", "text": "function getTableName($schema, $table_name){\n foreach (array_keys($schema[\"tables\"]) as $x) {\n if (strcasecmp($table_name,$x)==0) {\n return $x;\n }\n }\n return nu...
6494a52d8d759810bb4443c540541235
Creates a form to delete a site credential entity.
[ { "docid": "bfe0b795c43a703dcdb6375c6f9df302", "score": "0.77299523", "text": "private function createDeleteForm(SiteCredential $siteCredential)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('site_credentials_delete', ['id' => $siteCredential->getId()]))\n...
[ { "docid": "761bb994384e49b2a8d66e5612f79309", "score": "0.66709816", "text": "public function createDeleteForm()\n {\n return $this->createForm(DeleteType::class);\n // return $this->createFormBuilder(null, array(\n // 'attr' => array(\n // 'class' =...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "3ddceb4d51ea9a730fad1e3aac10d0de", "score": "0.0", "text": "public function run()\n {\n CacheHelper::forgetCache(PreArticleCache::statusList());\n\n $statusList = $this->statusList();\n\n $article_status_type = ArticleStatusType::with('statusList')->get();\n\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...
e7ad2cd21d3a075b675ba32a6eccdefe
Make sure all versions of the povided file are stored in the correct asset store.
[ { "docid": "c60000adfe3d08d2f6a1d02441417ab8", "score": "0.0", "text": "public function fix(File $file)\n {\n $success = true;\n $actions = $this->needToMove($file);\n\n // Make sure restricted live files are protected\n if (isset($actions[Versioned::LIVE]) && $actions[Ver...
[ { "docid": "579e1e04d59fe6849a3afaedc6f3aca8", "score": "0.5899773", "text": "public function onBeforeWrite() {\n\t\t$this->owner->setField('Filename', 'assets/' . $this->owner->generateFilename());\n\t}", "title": "" }, { "docid": "4252bd72e288648e2eed4266dfbd9b11", "score": "0.5723811"...
201560bc76028c6fa2e2b91099162353
Populates Yii::$app with a new application The application will be destroyed on tearDown() automatically.
[ { "docid": "f52aac95ee0c61eb96322aa3f21d0742", "score": "0.59020346", "text": "protected function mockApplication($config = [], $appClass = '\\yii\\console\\Application')\n {\n new $appClass(ArrayHelper::merge([\n 'id' => 'testapp',\n 'basePath' => __DIR__,\n '...
[ { "docid": "0f63229afc2f2997decbd42e38fd7abb", "score": "0.76173264", "text": "protected function mockApplication()\n {\n new Application($this->loadConfig());\n Yii::$container = new Container();\n }", "title": "" }, { "docid": "b7d32c847a32c87924aa5c4b3b80cdab", "sc...
c2fd0b89acecd91f78eb4f55a4e832c2
Indicates whether to send a copy of the email to the merchant.
[ { "docid": "d612a4d2f50dca4a29ba3c22faeeeffa", "score": "0.5341012", "text": "public function getSendToMerchant()\n {\n return $this->send_to_merchant;\n }", "title": "" } ]
[ { "docid": "cb94b03272497fa81092b8e526c3b172", "score": "0.65336484", "text": "protected function shouldSendEmail(): bool\r\n {\r\n return $this->sendEmail === Boolean::YES;\r\n }", "title": "" }, { "docid": "8abe7b3893cccb292ab1163cf82e2f02", "score": "0.6432331", "text...
303437d6eb98cfb1656d24dcac78ca41
Reviews post type detail pages. Author: Webbu Design Enqueue Styles
[ { "docid": "c472c021f393c25039b56ac3a76d8e49", "score": "0.62274814", "text": "function pointfinder_reviews_styles(){\n\t$screen = get_current_screen();\n\tif ($screen->post_type == 'pointfinderreviews') {\n\t\twp_register_style('metabox-custom.', get_home_url().\"/wp-content/themes/pointfinder\" . '/ad...
[ { "docid": "9bdaf90f9bfbb3313aaf51f85e6dfd02", "score": "0.645649", "text": "function addReviewPostType()\n{\n register_post_type('reviews', [\n 'labels' => [\n 'name' => 'Reviews',\n 'singular_name' => 'Review'\n ],\n 'hierarchical' => false,\n 'publ...
e0d5714156ff7992d9bcba1a508e2682
Test throwing on function entry
[ { "docid": "4531e408b66aec43da1f44b89ad9d241", "score": "0.6372782", "text": "function main() {\n fb_setprofile('throwing_profiler');\n try { foo('bar'); } catch (Exception $x) { echo \"Caught\\n\"; }\n try { foo('baz'); } catch (Exception $x) { echo \"Caught\\n\"; }\n fb_setprofile(null);\n\n// Tes...
[ { "docid": "c905e910b037b13fd4550bef6060ce6d", "score": "0.72709656", "text": "public function testThrows(){\n trigger_error(\"oops\", E_USER_ERROR);\n }", "title": "" }, { "docid": "9a2fcc2f8eaee76e143cbd93cc7da228", "score": "0.7012286", "text": "function test_error()\n ...
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...
ee9b4879cb2027da96619b754ddef8b5
create new API key
[ { "docid": "21c051ab57d11494746681995d55f21b", "score": "0.0", "text": "public function create(ApiKey $key): bool {\n try {\n // query to insert record\n $query = \"INSERT INTO\n \" . $this->tableName . \"\n SET\n email=:email, api_ke...
[ { "docid": "c7b94c1a87b05600d2b9b9960aa3df55", "score": "0.91804534", "text": "public function createApikey();", "title": "" }, { "docid": "391817be0a54894d95f403d050d61606", "score": "0.78051007", "text": "public function newAPIKey() {\r\n\r\n $len = 32;\r\n\r\n if (@i...
72d00800bd6c347561a154a068adf82c
get a mock object with id and handle
[ { "docid": "47d9b2947706139ff6092a7058c9042a", "score": "0.8201123", "text": "private function getMockObject($id, $handle)\n {\n $mockObject = new stdClass();\n $mockObject->id = $id;\n $mockObject->handle = $handle;\n\n return $mockObject;\n }", "title": "" } ]
[ { "docid": "45bd1f5b3541509f7d6ecf95bcd97724", "score": "0.6243879", "text": "abstract public function mock();", "title": "" }, { "docid": "38596fa521d8a87f65c65808e2c23608", "score": "0.62029576", "text": "public function getObjectMockupById($objectId) {\n return $this->getOb...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "51a83d3428546bf62ed3d1b8445fdc45", "score": "0.0", "text": "public function destroy(Order $order)\n {\n if($order->order_status != 'cart'){\n abort(403);\n }\n $order->delete();\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "6f5cb91b0423a11c78f100fc165554df", "score": "0.6959094", "text": "public function delete(ResourceInterfac...
e7eac160764ef0010f990db1b4cae76c
Get current widget id
[ { "docid": "b32c173db8111e48503731336d83fa09", "score": "0.8261512", "text": "public function getWidgetId()\n\t{\n\t\treturn $this->widgetId;\n\t}", "title": "" } ]
[ { "docid": "971270f57ca91ffd327b57bd7d48660f", "score": "0.8404996", "text": "public function getWidgetID()\n {\n return $this->widget_id ?: '';\n }", "title": "" }, { "docid": "63c2cc2f71e898129f502a1ab3587935", "score": "0.719008", "text": "function ct_support_get_widg...
c1309b6cf7b1eb9530656d994b516f7f
check if coming directly from a session
[ { "docid": "6d15138cd04c5a6623a48e6702a87341", "score": "0.0", "text": "function createSelectStackForm($extra=false, $title='Appion: Select Maskiton Stack', $heading='Select Maskiton Stack') \n{\n $expId = $_GET['expId'];\n\tif ($expId) {\n\t\t$sessionId=$expId;\n\t\t$formAction=$_SERVER['PHP_SELF'].\...
[ { "docid": "189427605707ee0edd8a28bed04c97c4", "score": "0.7836479", "text": "public function isSession(): bool;", "title": "" }, { "docid": "92e1ba34d011d38925c58ca7af3f3255", "score": "0.76795393", "text": "function CheckSession()\r\n{\r\n\treturn(GetLoggedInUserId() != null);\r\n}...
012005115aa67a7e13df5f0aa1085f17
Gets the value of codpermission.
[ { "docid": "85837772d03b1a3fb7d17bc821103233", "score": "0.8730839", "text": "public function getCodpermission()\r\n {\r\n return $this->codpermission;\r\n }", "title": "" } ]
[ { "docid": "f260b5b9865a54fb60196b80f82ff27e", "score": "0.66492426", "text": "public function getPermission($permission) {\n\t\t$this->loadGroupData();\n\t\t\n\t\tif (!isset($this->groupData[$permission])) return false;\n\t\treturn $this->groupData[$permission];\n\t}", "title": "" }, { "doc...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "9a88874fb0c17792be280e110dbdbb1d", "score": "0.0", "text": "public function edit(Entity $entity, Location $location): View\n {\n $locationTypes = ['' => ''] + LocationType::orderBy('name', 'ASC')->pluck('name', 'id')->all();\n $visibilities = ['' => ''] + Visibility::orderBy...
[ { "docid": "f810559c966a6f2c87d7e75698b80a8e", "score": "0.7659522", "text": "public function edit(Resource $resource)\n {\n //\n $this->authorize('update', $resource);\n $pages = Page::all();\n return view('resource.edit', compact('resources','pages'));\n }", "titl...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "5609c1ee238893ec070ea6e9ac5b80bd", "score": "0.0", "text": "public function create() {\n\t\t//\n\t}", "title": "" } ]
[ { "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...
5dd974b797c345e123d445b3c0aec777
Get the code transporteur5.
[ { "docid": "d0b5afb101d428d0ba3780f1246f759b", "score": "0.9140346", "text": "public function getCodeTransporteur5() {\n return $this->codeTransporteur5;\n }", "title": "" } ]
[ { "docid": "ae735b0f1e19fdf17fbe5b99466ec2f6", "score": "0.849313", "text": "public function getCodeTransporteur5(): ?string {\n return $this->codeTransporteur5;\n }", "title": "" }, { "docid": "eb01a10b24208ff7db3d9dedc909a6de", "score": "0.77963704", "text": "public funct...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "3a35eed50d4bb723ee58680e691072ba", "score": "0.0", "text": "public function rules()\n {\n return [\n 'pregunta1' => 'required',\n 'pregunta2' => 'nullable',\n 'pregunta3' => 'nullable',\n 'pregunta4' => 'nullable',\n 'pregunta5...
[ { "docid": "6a728d07d2855b119752337cf27dee41", "score": "0.8343254", "text": "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "title": "" }, { "docid": "5c5546d6ad190ce5c7ec85b96ea733d9", "score": "0.80743825...
57fb6e57a35d9e8d3f0cbdb2f2ff6eb9
Get the base path for the cache.
[ { "docid": "eefe5f0c58d9850dad1072431fb2b686", "score": "0.0", "text": "protected function getPath()\n {\n return $this->path;\n }", "title": "" } ]
[ { "docid": "fdc4a5e8b6a8ea0f1416b60e19e82bfa", "score": "0.78017735", "text": "public function getBasePath()\n {\n if (null === $this->basePath)\n {\n // for BC\n $this->basePath = sfConfig::get('sf_module_cache_dir');\n }\n\n return $this->basePath;\n }", "title": "" }, ...
684d1954ba398ac263873af28ce44f88
Apply bold, italic and underline to a content Just once for every typeface is enough. If there is less than 3 occurrences, then, priority to bold, then italize, then underline.
[ { "docid": "818eedc4660ab8a3ef909f6954903513", "score": "0.61770564", "text": "static function apply_biu_to_content($content, $keyword_arr) {\r\n \t$settings = WPPostsRateKeys_Central::get_md5_settings(TRUE);\r\n \t\r\n \t$new_content = $content;\r\n \t\r\n \t/*\r\n ...
[ { "docid": "6e376e338ea2f927d84701b27e5b31cc", "score": "0.5909255", "text": "function decorates($content) {\n $result = bold_decorate($content);\n $result = underline_decorate($result);\n $result = italic_decorate($result);\n return quotes_decorate($result);\n}", "title": "" }, { ...
b963603ae1b1b27190c64496ed84dca3
Applies the Activity filter to SubStatements.
[ { "docid": "e75c4bf1813ac90a4326d442f868a86c", "score": "0.39096096", "text": "public function enableRelatedActivityFilter(): self\n {\n $this->filter['related_activities'] = 'true';\n\n return $this;\n }", "title": "" } ]
[ { "docid": "be65c457634d582877a5a5243f3d416f", "score": "0.46612793", "text": "public function execute() {\n\n // Find activity_included_setting\n if (!$this->get_setting_value('included')) {\n $this->log('activity skipped by _included setting', backup::LOG_DEBUG, $this->name);\...
89eb1c5ae24dd38a3180080e787eaaf3
Gets a value from this container
[ { "docid": "45be7140ca0e9a6145b9955b9c1bd3c2", "score": "0.0", "text": "public function get($key)\n {\n if (!array_key_exists($key, $this->_values)) {\n return null;\n }\n \n return $this->_values[$key];\n }", "title": "" } ]
[ { "docid": "f3b03715523ef92e2b981dcbfde10894", "score": "0.76351106", "text": "function get_value() {\n if (isset($this->value))\n return $this->value;\n \n $Tainacan_Item_Metadata = \\Tainacan\\Repositories\\Item_Metadata::get_instance();\n return $Tainacan_Item_M...
11b1858a6aa7c285aec317a98c2a1f86
Creates a select widget.
[ { "docid": "9692b56aee1a8fd9304af91cd60109d5", "score": "0.0", "text": "public function __construct($attrs=null, $choices=null)\n {\n /**\n * Run default widget constructor.\n */\n parent::__construct($attrs);\n \n /**\n * Initialize choices array i...
[ { "docid": "0ed04dca901ae34ba701159a6c32ef02", "score": "0.6994072", "text": "public function render_select(){\n $attributes = $this->get_attributes();\n if (isset($attributes['locked']) && (true === $attributes['locked'])){\n $attributes['disabled'] = true;\n unset($...
2754049bb5318d2dd8b3a3dcceef118b
Returns count of items in cart
[ { "docid": "787e313306241c5b258ff5e9251f5dd1", "score": "0.8641598", "text": "public function getItemsCount() {\n return (is_array($this->cart) && !empty($this->cart)) ? count($this->cart) : 0;\n }", "title": "" } ]
[ { "docid": "dbb4901fa9f24c86fec07b587bec0814", "score": "0.866665", "text": "function CountItems(){\n\t\t$c = $this->CartSession;\n\t\t$itemsAmount = 0;\n\t\tif ($c) {\n\t\t\t$cart = Order::get()->filter(array(\n\t\t\t\t\"ClientIdentifier\" => $c\n\t\t\t))->first();\n\t\t\tforeach($cart->Items() as $ite...
2c3b784100b6197d5fb5c2f315052087
The task that belong to the user.
[ { "docid": "c603414d14e28ffb867befa918b2aebd", "score": "0.0", "text": "public function task()\n {\n return $this->hasMany(TaskRepository::class);\n }", "title": "" } ]
[ { "docid": "84230ff8600942847c940c2888dfde61", "score": "0.78533477", "text": "public function getTask()\n {\n return $this->task;\n }", "title": "" }, { "docid": "b94bfa20ae07c535532fb00f38c9a950", "score": "0.78395283", "text": "public function getTask() {\n ret...
5b55c09dc1824cbf6f7c70929e3da2c6
Return the location to redirect the user after creation.
[ { "docid": "2c87951757c50ca39abaa40f2a3e28e2", "score": "0.5760501", "text": "public static function redirectAfterCreate(NovaRequest $request, $resource)\n {\n return '/resources/' . static::uriKey() . '/' . $resource->getKey() . '/edit';\n }", "title": "" } ]
[ { "docid": "2ce40e1467ba01a7917ec9eabc3f55e0", "score": "0.6201224", "text": "public function redirectTo()\n {\n return auth()->user()->userable->cabinet_link;\n }", "title": "" }, { "docid": "542a84311d6637b6e5fb15c5f3577047", "score": "0.6193679", "text": "public funct...
21a3de55d6c19d615e1242638b9ea94c
datatable View Last Updated by Vinitha 09/08/2016
[ { "docid": "e9bbc13bbeb9147ba29c94c277606f21", "score": "0.60827583", "text": "function datatable(){\n \n $page = $_POST['page']; // get the requested page\n\t\t$limit = $_POST['rows']; // get how many rows we want to have into the grid\n\t\t$sidx = $_POST['sidx']; // get index row - i.e. ...
[ { "docid": "8bdbbb5875e0ebcd2694ce12e205b9f0", "score": "0.7071729", "text": "public function datatable() {\n $this -> datatables -> select(\"Id,AdvertisementTitle,AdvertisementImage,AdvertisementDescription,AdvertisementUrl,StartDate, EndDate, CreatedBy,ModifiedBy,CreatedOn,ModifiedOn,IsActive A...
b89bb37b3e675cd45564fae58444a6f7
Creation of a hub
[ { "docid": "e2c37e000c0bf83d739d839e37cafc23", "score": "0.6730009", "text": "function createHub($p_oPort, $agent_id) {\n global $DB;\n\n $Netport = new NetworkPort();\n $nn = new NetworkPort_NetworkPort();\n //$PluginFusionInventoryAgentsProcesses = new PluginFusionInventoryAgentsPr...
[ { "docid": "4fb926269612be3f8421d9a7b4218148", "score": "0.6368963", "text": "public function create() {\n return view('hub.create');\n }", "title": "" }, { "docid": "99aaab1f507ec767edca89f5e22b28e9", "score": "0.62076145", "text": "public function Create()\n\t\t{\n\t\t\tp...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "292dce0fb25f89abb8c64bf979c1cafd", "score": "0.0", "text": "public function __construct()\n {\n $this->middleware('auth');\n }", "title": "" } ]
[ { "docid": "173dfa3d2c43c121d2999bbac59bd02a", "score": "0.80462193", "text": "protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $this->call('make:controller', array_filter([\n 'module' => $this->getModule()['k...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "68f3fa80257f85b02954ae4ca8745d5f", "score": "0.6422112", "text": "public function store(Request $request)\n {\n $req = $request->all();\n if (Validator::make($req,\n [\n 'new_dir' => 'required',\n ])->fails()) return $this->failed(400000)...
[ { "docid": "d2d5025c41b1d2624f860d8ceab9e2ab", "score": "0.7168782", "text": "public function store()\n {\n // Use the parent API to save the resource\n $object = $this->api()->store();\n\n // Redirect back with message\n return $this->redirect('created', ['id' => $object-...
9688be7ea097660965be470f7efe6ce0
Get the resource model file.
[ { "docid": "061dba9143ab9687b12d7f3ca499546c", "score": "0.79268557", "text": "protected function getResourceModelFile() : string\n {\n return $this->getResourceModelDirectory(). DIRECTORY_SEPARATOR . $this->data['class_name'] .'.php';\n }", "title": "" } ]
[ { "docid": "a9232a5405d454d6ef5112d765815311", "score": "0.7421231", "text": "public function getModelFile()\n {\n if (file_exists($this->getFolder() . '/model.php')) {\n return $this->getFolder() . '/model.php';\n }\n return null;\n }", "title": "" }, { ...
b40d2414fbd928c76d4834a850c9f20e
Create request for operation 'getArticleById'
[ { "docid": "a891b45fed014d0e3e3dbc191e5e6dea", "score": "0.7522548", "text": "public function getArticleByIdRequest($id)\n {\n // verify the required parameter 'id' is set\n if ($id === null || (is_array($id) && count($id) === 0)) {\n throw new \\InvalidArgumentException(\n ...
[ { "docid": "693c1f9eda870418f8892457b9bd44bd", "score": "0.7185317", "text": "protected function getArticleByIdRequest($id)\n {\n if (empty($id)) {\n throw new \\InvalidArgumentException('Missing parameter \"$id\" in ContentApi::getArticleByIdRequest().');\n }\n \n\n ...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "e36b48f1a1ca63326a2a719ef1c7a354", "score": "0.0", "text": "public function run()\n {\n DB::table('medias')->delete();\n DB::table('service_request_medias')->delete();\n \n $medias = array(\n\n array(\n 'client_id' => 5,\n ...
[ { "docid": "71c6796615a8344ad02f1c59309a8195", "score": "0.810222", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n $roles = ['superadmin', 'admin', 'user'];\n for ($i=0; $i<count($roles); $i++)\n {\n \\App\\Role::create([\n ...
5285a8acad5df8494b37dfdfce5d611b
Register the application services.
[ { "docid": "3a239677d5bf39422d95c11ca6845fa5", "score": "0.0", "text": "public function register()\n {\n //\n }", "title": "" } ]
[ { "docid": "f307ddae4c4a26c99ca308a131e9f60e", "score": "0.72218496", "text": "public function register()\n {\n $this->registerServices();\n\n\n }", "title": "" }, { "docid": "301f9966b4f7ffddc947257fc37b51bb", "score": "0.7124708", "text": "public function register()\n ...
a2c39c1fe6e6edf99c4b546ceaa89325
/ finish add_cart functions /// / finish getRealIpUser functions ///
[ { "docid": "c1bf29110b161d33faffdd9eda5759be", "score": "0.0", "text": "function getPro(){\n global $db;\n \n $get_products = \"select * from items order by 1 DESC LIMIT 0,8\";\n \n $run_products = mysqli_query($db, $get_products);\n \n while($row_products=mysqli_fetch_array($run_p...
[ { "docid": "96fd9e0961410c3ca78de43a2f9faaba", "score": "0.6723586", "text": "function cart()\n\t{\n\t\tglobal $con;\n\t\t\n\t\tif(isset($_GET['add_cart']))\n\t\t{\n\t\t\t$pro_id=$_GET['add_cart'];\n\t\t\t\n\t\t\t//creating or using cookie \n\t\t\tif(isset($_COOKIE[\"ipUserEcommerce\"]))\n\t\t\t{\n\t\t\...
1424c8ab9f3decca39b0fcd4f52585cb
Generate new user's access token
[ { "docid": "b90e82022dd60a1105ffb3bf24f79670", "score": "0.6061922", "text": "public function generateToken()\n {\n $token = array(\n \"iss\" => $this->id,\n \"aud\" => $this->name,\n \"iat\" => $this->email,\n \"nbf\" => $this->phone\n );\n\n...
[ { "docid": "570259429e8812faa72a6e1c7a736f74", "score": "0.7757422", "text": "public function generateAccessToken()\n {\n $this->access_token = Yii::$app->security->generateRandomString() . '_' . time();\n }", "title": "" }, { "docid": "ef4ee0fdeb8d4dd6ce7d349beb4cab69", "sc...
ee8b3614db69efd75fc2aad7c0289cec
Returns maximum number of composite related products.
[ { "docid": "b9b0276a90832b66cf175e081969bdee", "score": "0.694417", "text": "public function getMaxRelationsCount()\n {\n $connection = $this->indexerResource->getConnection();\n $relationSelect = $connection->select();\n $relationSelect->from(\n ['relation' => $this->...
[ { "docid": "72b34ffce933325fbfe589ad64ad7d86", "score": "0.6324044", "text": "public function getProductCount();", "title": "" }, { "docid": "a35f4b6d5739c37876d7235dc2d1b764", "score": "0.62234706", "text": "public function getCountProduct(): int\n {\n return $this->listOf...
80c46a407f4ba01ab9ee57f86cb71b1f
Updates an existing ClasscationAdmin model. If update is successful, the browser will be redirected to the 'view' page.
[ { "docid": "a049b2ae6f4222ad9f32f2a679bf8b9b", "score": "0.632434", "text": "public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n\n if ($model->load(Yii::$app->request->post())) {\n date_default_timezone_set(\"Asia/Shanghai\");\n $model->update...
[ { "docid": "b5bee2ee979458a7f73582bd8dd4cc36", "score": "0.68477535", "text": "public function actionUpdate()\n {\n if (!$model = $this->findModel()) {\n Yii::$app->session->setFlash(\"error\", Yii::t('modules/user', \"You are not logged in.\"));\n $this->goHome();\n ...
fce9d07967982e139f77d5e1269bd7ec
Returns the limit of the list's slice for the current page
[ { "docid": "30c8ef40bdbf3aa13f3b68acc1b01bc6", "score": "0.7081553", "text": "public function limit()\n {\n return $this->perPage;\n }", "title": "" } ]
[ { "docid": "b7a8400b362bd3471b712539c2e266b7", "score": "0.7755902", "text": "public function getLimit();", "title": "" }, { "docid": "b7a8400b362bd3471b712539c2e266b7", "score": "0.7755902", "text": "public function getLimit();", "title": "" }, { "docid": "e5b460e7865896...
627d35f99097e2af3f15fb3a5ea39508
Open Logfile and copy loglines into LogLinesArray()
[ { "docid": "76f1ea12668b5882280164834f41afe5", "score": "0.4834556", "text": "function getYSFGatewayLog() {\n\t$logLines = array();\n\t$logLines1 = array();\n\t$logLines2 = array();\n\tif (file_exists(YSFGATEWAYLOGPATH.\"/\".YSFGATEWAYLOGPREFIX.\"-\".gmdate(\"Y-m-d\").\".log\")) {\n\t\t$logPath1 = YSFGA...
[ { "docid": "24fbc6370fd0411bbe894bafec455bd2", "score": "0.706037", "text": "public function getLogs() {\n\t\t$logLines = array();\n\t\t$logFile = fopen($this->logDir.\"log\", \"r\");\n\n\t\tif ($logFile) {\n\t\t\twhile (($line = fgets($logFile)) != false) {\n\t\t\t\tarray_unshift($logLines, $line);\n\t...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "794fa5c7611811477ec7f5f0c9060fcb", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n $categoria = categoria::where('id', $request->input('categoria_id'))->with('institucion')->get();\n $codigo = $categoria[0]->institucion->codigo.'-'.$categor...
[ { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.6832439", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resources...
1fead1c413fa24876f5169652faf0305
Get all invoices of this template
[ { "docid": "66ccb72a8794c4d1ed8cc39d689b59c6", "score": "0.6822103", "text": "public function getInvoices(Invoice_Service $service, $filter = null) {\n\t\treturn $service->getAll($filter, $this);\n\t}", "title": "" } ]
[ { "docid": "f3d349d1c74ccae7c084ae6d619bf24c", "score": "0.81942123", "text": "public function getInvoices(): Invoices\n {\n return $this->get('invoices');\n }", "title": "" }, { "docid": "139a00adad496ecbd513ea92b5ef8445", "score": "0.8123556", "text": "public function ...
1204cb18091a1569421fe70d312eb412
Returns this context's root logger which, if not null and if the context requires default loggers, will be added to the context logger's tree.
[ { "docid": "6e476f0c4ba754a5422847287eb782f3", "score": "0.7555973", "text": "public final function getRootLogger() {\n\t\treturn $this->getOwner()->getRootLogger();\n\t}", "title": "" } ]
[ { "docid": "725d065dc274237e23365f3af4b6ac82", "score": "0.709067", "text": "function &getRoot()\r\n {\r\n return LoggerManager::getRootLogger();\r\n }", "title": "" }, { "docid": "71b5372b9ea010847ff91406445c2b04", "score": "0.67476624", "text": "public static function ...
721395f06459fcb88de555435cec2514
// setValue // setValue() Change the Selected CustomerGroup Type Change the Selected CustomerGroup Type to another CustomerGroup Type
[ { "docid": "63f49d49806575273c3ee9597d4870d7", "score": "0.5555175", "text": "public function setValue ($intCustomerGroup)\n\t\t{\n\t\t\t$strVarName = \"_{$intCustomerGroup}\";\n\t\t\t\n\t\t\tif (isset($this->$strVarName))\n\t\t\t{\n\t\t\t\t$this->Select($this->$strVarName);\n\t\t\t\treturn TRUE;\n\t\t\...
[ { "docid": "8e6693602b1328513a3a1985454d1ed5", "score": "0.6077137", "text": "protected function setGroupType() {}", "title": "" }, { "docid": "71ff46bd315a683a2a3baa42f7d2ffdf", "score": "0.58613753", "text": "public function setType($value){\n $this->_type = $value;\n }",...
5c566d29411e02e44ca60d01f42d6019
Function to get the list of Script models to be included
[ { "docid": "4697b12a1e3e32ccc0d4fc0da6e321b2", "score": "0.0", "text": "function getFooterScripts(Vtiger_Request $request)\n\t{\n\t\t$headerScriptInstances = parent::getFooterScripts($request);\n\t\t$moduleName = $request->getModule();\n\n\t\t$jsFileNames = array(\n\t\t\t\"libraries.jquery.ckeditor.cked...
[ { "docid": "45bf37942d78191ebad91a8c68e0ef01", "score": "0.6385218", "text": "protected function getModelsToProcess()\n {\n return $this->modelProvider->setMainModel($this->getModel())->getModels();\n }", "title": "" }, { "docid": "bc53ca69f5dada134cc90858763eaf89", "score"...
de65f127ec81c7c13cda8686aca4f667
Create the page layout
[ { "docid": "30babd18c21e4a2e2014b34c713c43dd", "score": "0.0", "text": "public function assemble($content)\n {\n $this->content = $content;\n\n if ($this->useLayout) {\n $layoutFile = $this->_layout;\n\n // FIXME: Render partial operates within the view templates \...
[ { "docid": "b8e9ea3222017177792c0cff5bbc63f7", "score": "0.75595784", "text": "public function getPageLayout() {}", "title": "" }, { "docid": "e6d15a2f9f11cf616bad7162ae8610d1", "score": "0.70706296", "text": "protected function _constructMainLayout()\n {\n if (class_exists...