query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
1bc6966c500de973d1923402033ebe16
Returns an array containing all sitewide forums
[ { "docid": "ff09c238c5b8c5b4a2b7fddf38e17b3d", "score": "0.71414655", "text": "public function sitewideforum_get_all_forums() {\n $this->init('forums');\n\n $oReturn = new stdClass();\n global $wpdb;\n $sParentQuery = $this->parentid === false ? \"\" : \" AND post_parent=\" ....
[ { "docid": "4caa18504f4407db346af8406d246724", "score": "0.7178926", "text": "function get_forum_list() {\n\t\treturn $this->call('get_forum_list');\n\t}", "title": "" }, { "docid": "d917e9d1dbc9e94f63b61d1461450c5d", "score": "0.7144064", "text": "public function getForums()\n {\...
0ddf072138ec50299aecc88efb2e2a8d
Check if user with specified email or nick exists
[ { "docid": "4ef6f91e5b029a885500a46f1160d819", "score": "0.0", "text": "public function is_registered($idstr)\n {\n return $this->ci->users->is_registered($idstr);\n }", "title": "" } ]
[ { "docid": "ccadb85881909f322d9d40be92d0e92d", "score": "0.74688953", "text": "private function checkIsUserExists($nickname, $email) {\n\t\tif(sizeof($this->getUserByName($nickname)) == 0 && sizeof($this->getUserByEmail($email)) == 0)\n\t\t\treturn 1;\n\n\t\treturn 0;\n\t}", "title": "" }, { ...
97b79aa15b6c2527fdb6e72fceedc82b
Indexer where the release was grabbed
[ { "docid": "8cff70179b0d40c4c0bbf0f7b90b2e6e", "score": "0.69414234", "text": "public function getReleaseIndexer()\n {\n return $this->releaseIndexer;\n }", "title": "" } ]
[ { "docid": "b4081b994fe6ff7a7ec75012fb61ddf1", "score": "0.5891766", "text": "public function getIndexInfo() {\n\n }", "title": "" }, { "docid": "221ae9b5bf654552514011c668b6097a", "score": "0.5856528", "text": "public static function _index() {\n\t\treturn self::$_index;\n\t}", ...
248c9f0c24bf1124a6b7d51f6a45dd24
URI POST Location for system login
[ { "docid": "9fd8f50dcd460841ab7db7cbc2d884e9", "score": "0.0", "text": "public function login()\n {\n $this->set( 'view', 'login' );\n\n return $this->show();\n }", "title": "" } ]
[ { "docid": "d0c2bf2d404c1d16346a0ebfc8b00773", "score": "0.6469401", "text": "public function login(){\r\n\t\t$returnTo = $this->input->get('returnTo');\r\n\t\t$re = !$returnTo ? site_url() . \"/page/overview\" : $returnTo;\r\n\r\n\t\t//SSO starts here\r\n\r\n\t\t$this->auth->login($re);\r\n\t}", "t...
a1e80fd9712ac72f24f8eacae69b4665
Handle the Marker "deleted" event.
[ { "docid": "1d0044d5f1cbd444e94856d72f68cf42", "score": "0.68692964", "text": "public function deleted(Marker $marker): void\n {\n $marker->markerMedia->each(function ($markerMedia) {\n $markerMedia->delete();\n });\n }", "title": "" } ]
[ { "docid": "a50217d315184108f90eb059b0b083f5", "score": "0.68387103", "text": "abstract public static function deleted($callback);", "title": "" }, { "docid": "43fe94adb6f79d73022631fedbb15a19", "score": "0.6837791", "text": "public function forceDeleted(Marker $marker): void\n {\...
8d3ea2eaec945ec74fdea09586c3a147
Revisar la existencia del correo electronico del alumno
[ { "docid": "6b349c51773ec01ee55d601424df62b6", "score": "0.0", "text": "public function checkExistenceAlumno($email){\n $sqlquery = \"SELECT email FROM alumno WHERE email = :EMAIL\";\n $statement = $this -> conexion ->prepare($sqlquery);\n $statement ->bindParam(\":EMAIL\", $email, ...
[ { "docid": "e593beba05039acc3bf3e946b5783352", "score": "0.684002", "text": "function estaRegistrado($correo){\r\n $cliente = getCliente($correo);\r\n $correo = $cliente['correo'];\r\n $celular =$cliente['celular'];\r\n\r\n if($correo!=\"\" && $celular!=0){\r\n return true;\r\n\r\n...
a2aea1e22026a9711f3f06fe8f5aeb2a
Returns a pointer to the JSON object that will be returned in the response. Return the JSON response for manipulation
[ { "docid": "27f7b8186d432d68712556c58e2c1408", "score": "0.0", "text": "public function &data($data = null) {\n\t\tif ($data !== null) {\n\t\t\t$this->json[\"data\"] = $data;\n\t\t}\n\t\treturn $this->json[\"data\"];\n\t}", "title": "" } ]
[ { "docid": "1797683f7b954faaf06fcdb3c9fea21e", "score": "0.7514361", "text": "public function GetResponseJSON();", "title": "" }, { "docid": "0877680b7e058d230ece784089025f3e", "score": "0.72858393", "text": "public function getResponseJson(){\n if(!empty($this->response))...
1ef868ca9f3c85b2d122a210b65877f2
Use the mtc_event table
[ { "docid": "80e4c81bfa8a4c29b37c5bb6e660a85f", "score": "0.5795497", "text": "public function __construct()\n {\n parent::__construct(\"MtcEvent\", BaseMtc_event::TABLE_NAME, \n BaseMtc_event::PRIMARY_KEY, BaseMtc_event::SCHEMA);\n }", "title": "" } ]
[ { "docid": "efb1f8bc567bab833bf327e385829222", "score": "0.5846758", "text": "function afficherevents(){\r\n\t\t$sql=\"SElECT * From event\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry{\r\n\t\t$liste=$db->query($sql);\r\n\t\treturn $liste;\r\n\t\t}\r\n catch (Exception $e){\r\n di...
7165007e7c962aaff3de7498a0f643d2
Array of attributes to getter functions (for serialization of requests)
[ { "docid": "493b38b40d53841a1300d3df811c097d", "score": "0.0", "text": "public static function getters()\n {\n return self::$getters;\n }", "title": "" } ]
[ { "docid": "2154f1cb9160c7a13493622cdd3c7325", "score": "0.65085584", "text": "public function getAttributes(): array;", "title": "" }, { "docid": "2154f1cb9160c7a13493622cdd3c7325", "score": "0.65085584", "text": "public function getAttributes(): array;", "title": "" }, { ...
c7d3d19e4604ed98066e349312f66ac4
Set Header Lets you set a server header which will be outputted with the final display. Note: If a file is cached, headers will not be sent. We need to figure out how to permit header data to be saved with the cache data...
[ { "docid": "2d7f2b93f98702b477406a1d4e673411", "score": "0.63111883", "text": "public function setHeader($header, $replace = TRUE){\n\t\t// If zlib.output_compression is enabled it will compress the output,\n\t\t// but it will not modify the content-length header to compensate for\n\t\t// the reduction,...
[ { "docid": "c3a2bbbb8ebb7295f2689da0da397b62", "score": "0.76096207", "text": "abstract protected function setHeader();", "title": "" }, { "docid": "5ac11fe8024eb823b1eac0f5cabc07d2", "score": "0.75284195", "text": "function _set_header( $header_file ) {\n\t\t$this->_header = $header...
87fdc2e9e8e683ec6b6ef3249df4537c
end cross check Delete a unit from the server
[ { "docid": "0ed61a198aa5cfc2e2cbcf92385b6f48", "score": "0.65986466", "text": "function delete_unit($id=0)\n {\n $page = $this->page;\n \n if ($id != 0)\n {\n $this->db->query('DELETE FROM combatunits WHERE combatunit_id='.$id);\n }\n \n red...
[ { "docid": "0f647b618c267ef4ed2f483ad9d7b909", "score": "0.7222606", "text": "public function deleted(Unit $unit)\n {\n //\n }", "title": "" }, { "docid": "319301b075630e94431df849d0bde221", "score": "0.6861681", "text": "public function delete_services_method_unit(){\n\...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "7e8ecca7cc8ec4f4d431f9ebfe75f0bf", "score": "0.0", "text": "public function store(Request $request)\n {\n $request->validate([\n \n 'nome' => 'required|max:255',\n 'status' => 'required',\n \n ]);\n \n try{\n ...
[ { "docid": "75600e5d65c2156987ff7cb140e14a4b", "score": "0.6621582", "text": "public function store() {\n $fileService = $this->getFileService();\n $filename = $this->getCacheDirectory() . $this->generateCacheablefilename();\n $fileService->saveFile($filename, $this->resource->getContent());\n ...
b3b47cc04eb4d8a25a3509751d57ee52
Get the value of _gender
[ { "docid": "9cca495b8f210e1f80260aadb35c51eb", "score": "0.8740664", "text": "public function get_gender()\n {\n return $this->_gender;\n }", "title": "" } ]
[ { "docid": "f9de70ac7499312d391cc3f69b427318", "score": "0.8278474", "text": "public function getGender()\r\n {\r\n return $this->gender;\r\n }", "title": "" }, { "docid": "f9de70ac7499312d391cc3f69b427318", "score": "0.8278474", "text": "public function getGender()\r\n ...
b715b3671e528f64e88735d132403ffd
Create a new response instance.
[ { "docid": "322b6ca2a2ba5c02b308c6eb7e4299c9", "score": "0.0", "text": "public function make($content = '', $status = 200, array $headers = array());", "title": "" } ]
[ { "docid": "88d52ff4974d5baf16755323b9cfc12a", "score": "0.8274958", "text": "public static function create_response() {\n\t\t$response = new self();\n\t\t$response->setRectype(self::RECORDTYPE_RESPONSE);\n\t\treturn $response;\n\t}", "title": "" }, { "docid": "70a9414ea2151bc1a0f1108d2a9979...
09d06dda28b4641e82545ebdf45795fb
Show Instant webview code from a given user
[ { "docid": "16694a7d379a7d4b630617a196e2c3cf", "score": "0.58327687", "text": "public function userInstantViewAction($username,$instant_title)\n {\n return $this->userInstantWebviewAction($username,$instant_title,false);\n }", "title": "" } ]
[ { "docid": "c9704d1362e9c1274b10b1ef43c56f06", "score": "0.55590445", "text": "public function userInstantWebviewAction($username,$instant_title,$webview = true)\n {\n $em = $this->getDoctrine()->getManager();\n $user = $em->getRepository('CosaInstantUserBundle:User')->findOneBy(array('...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "4c7559e7e83892564285285bc966156d", "score": "0.0", "text": "public function edit($id)\n {\n //on recupere le produit\n $product = \\App\\Product::find($id);\n $categories = \\App\\Category::pluck('name','id');\n return view('products.edit', c...
[ { "docid": "b51dc492ce2ae6c7687b6a4d337aec3c", "score": "0.77756816", "text": "public function edit()\n {\n $model = $this->getRequestedModel();\n\n $view = View::make(\n $this->getViewName('edit'),\n compact('model') + array(\n 'pageTitle' => 'Edit...
feb52eae2e723f5fe5c42beb01c35aea
untuk relasi dengan lelang dan pelelang jenis relasi one to many
[ { "docid": "bcb9e3648e9aff49af24d6f33718d389", "score": "0.6101485", "text": "public function lelang(){\n return $this->hasMany(Lelang::class);\n }", "title": "" } ]
[ { "docid": "3d4bbd95679db4aea3eed5f9180931c2", "score": "0.6521809", "text": "public function jadwal_matakuliah(){\n \treturn $this->hasMany(jadwal_matakuliah::class,'mahasiswa_id'); // memberika nilai return dari fungsi hasMany yang merelasikan mahasiswa dengan banyak jadwal_matakuliah dengan foreig...
83b1e795161bab62e788915319a5434e
Login for the Api
[ { "docid": "b0f80996410c4a7abcc5b3e960a3ff14", "score": "0.7047018", "text": "public function login()\n {\n $data = $this->request;\n if(empty($data) || empty($data['email']) || empty($data['password'])){\n echo json_encode(array(\n \"success\" => false,\n ...
[ { "docid": "de91b60da0fc29969122cae71f18465b", "score": "0.80681974", "text": "public function login() {\n \n $this->request->allowMethod('post');\n $user = TableRegistry::get('users');\n /**\n * process your data and validate it against database table\n */\n ...
207aeb9afc95995b3611a5d4e799ab83
Unique identifier of the given Price.
[ { "docid": "85246705febf1c59035066202ec40043", "score": "0.0", "text": "public function getId();", "title": "" } ]
[ { "docid": "7e5776de461440036977b7f9f9c1049a", "score": "0.77885187", "text": "public function getPriceId();", "title": "" }, { "docid": "0dc98ad34e8aba8dd4167ade62969912", "score": "0.7522061", "text": "public function getPriceId()\n {\n return $this->priceId;\n }", ...
89b0446647f1fe49365b77d9c45765c7
Devuelve el valor correspondiente a tema
[ { "docid": "cbf1c6910c7da61f25b155b881c3213a", "score": "0.7121676", "text": "public function getTema(){\n return $this->tema;\n }", "title": "" } ]
[ { "docid": "e04706db7a466fa00fc9ebb92e403978", "score": "0.6308824", "text": "public function getValor()\n {\n return $this->valor;\n }", "title": "" }, { "docid": "e04706db7a466fa00fc9ebb92e403978", "score": "0.6308824", "text": "public function getValor()\n {\n ...
4431025f46b7ca8a70e407605cf3edba
Handles a request from a user to view the page to edit a person.
[ { "docid": "f0e19a0c842c69d80e7b3007ecc75def", "score": "0.0", "text": "public function editAction()\n {\n $response = parent::editAction();\n\n if ($response instanceof ViewModel) {\n $personId = $this->getEvent()->getRouteMatch()->getParam('child_id');\n $personD...
[ { "docid": "400626a2e7e8a5f825d911a905e806ea", "score": "0.80782783", "text": "public function personEditAction() {\n if ($this->request->hasArgument('person')) {\n $personID = $this->request->getArgument('person');\n }\n $person = $this->userRepository->findByUid($person...
6c5ae46356f4588d51bba068880c710d
scope moved to stage
[ { "docid": "5c0deff0424b1c87b7748e64e6da43b2", "score": "0.5172013", "text": "public function scopeMovedToStage($query, $stageCode, $startDate, $endDate)\n {\n $companyId = getScopeId();\n $query->join(\n DB::raw(\"(SELECT job_id, current_stage as stage, \n\t\t\tstage_last_mo...
[ { "docid": "24455637dbd4f36043519ded51124e5d", "score": "0.5732816", "text": "public function setScopeBlock()\n {\n if( empty( $this->ngVars))\n {\n return;\n }\n\n $this->Controller->set( 'ngVars', $this->ngVars);\n }", "title": "" }, { "docid": "0e1383b034be366e0a04ff52d...
4bca13db4571d2d935b0aaba906f4001
Fusionne avec un autre Name.
[ { "docid": "18ea7478805ddda49dffe2ab68d2b9a8", "score": "0.0", "text": "protected function mergeName(Name $other): void // pas final, surchargée dans Mapping\n {\n if ($other->getName() !== $this->name) {\n throw new InvalidArgumentException(sprintf(\n 'name mismatch ...
[ { "docid": "3b384331996eed4994f2faa64ea32f1a", "score": "0.62185055", "text": "public function getUniqueName();", "title": "" }, { "docid": "8adfe764b7d1679f731cc8439ae8191f", "score": "0.6167212", "text": "function ajaxSuggestUserName() {\n $username = $this->requestPtr->getP...
7d21c7b3e1d44aa0b90080ebb286c12d
Get the project environment instance.
[ { "docid": "9640b6dada51320ddd930f6a4a2b80f6", "score": "0.7229936", "text": "protected function getEnvironmentInstance(): EnvironmentTypeInterface\n {\n return PxApp::getEnvironmentInstance();\n }", "title": "" } ]
[ { "docid": "9c6789b5a35e17aadb39fd55d1e77995", "score": "0.8030482", "text": "public static function get()\n {\n if (! self::$envInstance) {\n self::load();\n }\n\n return self::$envInstance;\n }", "title": "" }, { "docid": "97b2ae9cbaa7a47d2be2658171b13...
5df8eea31f5f8c70f3bb3f9a906a4bfb
Display form in popup on click on some button
[ { "docid": "3c79e79e7360f99a9251c6aa83b7812d", "score": "0.55818576", "text": "public function formDisplayInPopup($buttonContent = \"\", $headerContent = \"\", $directCall = false) {\r\n $this->formPopup = array(\r\n \"buttonContent\" => $buttonContent,\r\n \"headerContent\"...
[ { "docid": "22e8c39f028228d267967975868c6d42", "score": "0.71683574", "text": "function display_popup_form($form_html)\r\n {\r\n Display :: normal_message($form_html);\r\n }", "title": "" }, { "docid": "a5115b84cc65d6978c5737b635ecbc4a", "score": "0.70903295", "text": "p...
3dc1349bec9c00b335b1a1782121078b
protected $fillable = [ 'maximum_score', 'current_score', 'dice_number' ];
[ { "docid": "292a9e47445fda9a4f06f5428d31caa8", "score": "0.0", "text": "public function game(){\n return $this->belongsTo('App\\Game');\n }", "title": "" } ]
[ { "docid": "d9e95c604612533e8f821c001eb6c5fe", "score": "0.54375803", "text": "public function store()\n {\n $pw = User::generatePassword();\n\n $validated= request()->validate([\n 'name' => ['required', 'string', 'max:255', 'min:2'],\n 'surname' => ['required', 's...
1914ca22741cf8031da47b4f3c526eda
Returns the release date of the package
[ { "docid": "dfd9022a7d48c4f366c21e52b0033bdc", "score": "0.6169724", "text": "public function getReleaseDate(): ?\\DateTimeInterface;", "title": "" } ]
[ { "docid": "25700aa495b08a7d930e8d8d58bc9354", "score": "0.8679444", "text": "public static function getReleaseDate () {}", "title": "" }, { "docid": "a05eb66c672277effebc91a4e6aa1e49", "score": "0.8204333", "text": "public function getReleaseDate() {\n\t}", "title": "" }, { ...
e2039f1b79cf0bdf8ac3eeaf871dd786
End of function submit_approval
[ { "docid": "fb914e3dd172ba89e5008567aeec922c", "score": "0.0", "text": "public function server_side_data_dp() {\n\n\t\t$query = $this->db->query(\"SELECT sale.id,\n\t\t\t\t\t\t\t\t\t\t receipt_number,\n\t\t\t\t\t\t\t\t\t\t sale.created_time,\n\t\t\t\t\t\t\t\t\t\t customer_ref,\n\t\t\t\t\t\t\t\t\t\t ...
[ { "docid": "45ee254c0fcad1a2aa51f4bc58152ea4", "score": "0.6685792", "text": "function approval() {\n\n\t\t// Permission\n\t\t$this->session_lib->check_permission('p_approval_report');\n\n\t\t$attr = array(\n\t\t\t\t\t\t'closingDate' => $this->closingDate,\n\t\t\t\t\t\t'filterStatus' => $this->filter_st...
8afa62dbc9e48dd9e59a567f12512505
This function is used to check Model object that is ready valid before save into database, developer need to override this fuction before use it
[ { "docid": "b58bc1fb4814bfc0f1bc8f18f1d04273", "score": "0.0", "text": "public function isValid()\r\n {\r\n return false;\r\n }", "title": "" } ]
[ { "docid": "9019d40ca3f08a7fb0e7581fe0523eff", "score": "0.6879283", "text": "protected function _beforeSave()\n {\n Mage::helper('ampersand_system')->loadIfExists($this, $this->_modelName, $this->_loadField);\n Mage::helper('ampersand_system')->validate($this, $this->_requiredFields);\...
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": "61b6850924368e14814b635e85110c7f", "score": "0.8342963", "text": "public function authorize()\n {\n return $this->user() != null;\n }", "title": "" }, { "docid": "61b6850924368e14814b635e85110c7f", "score": "0.8342963", "text": "public function authorize()\n ...
9cea94120d4bcd0b39e4ec6d1f9d2005
get a list of IDs with the passed SKUs (pipe deliminated)
[ { "docid": "d92d40eec44c5d9430ccb02d74b3b089", "score": "0.5760664", "text": "public function getID($skus);", "title": "" } ]
[ { "docid": "1f50e7afcf7e05f937dfb0a01073391b", "score": "0.61385727", "text": "function get_product_id_list() \n {\n global $order;\n\n $product_id_list = '';\n foreach ($order->products as $product) {\n $product_id_list .= ',' . zen_db_input($product['id']);\n ...
887fa4447e0d5ad7f7896ec8ccc8ff2c
endregion Members, properties, fields, static resources
[ { "docid": "315d5980a3f368f19788ba773c6553ec", "score": "0.0", "text": "public function __construct($localization_manager) {\r\n $this->localizationManager = $localization_manager;\r\n parent::__construct();\r\n }", "title": "" } ]
[ { "docid": "1cba85d71aaae163c3b8c5c0c8350a4b", "score": "0.5853004", "text": "final public static function finalPublicStaticFuntion()\n {\n }", "title": "" }, { "docid": "39f616afb719d4ac5e8a0c36bdd49ab7", "score": "0.5669718", "text": "public function setupResources();", "...
4db29c19c8366d7630d895100bfab20a
Make a state data factory using caching target_data models.
[ { "docid": "17c703d8c2d7ac4bfa88ebddee02f6b5", "score": "0.66087794", "text": "protected function makeStateDataFactoryFrom(ArrayObject $models)\n\t{\n\t\tif (!$this->target_data_type_model instanceof OLP_IModel)\n\t\t{\n\t\t\t// assumption here is that types of target data the factory \n\t\t\t// is inte...
[ { "docid": "59a82d3df56648d0f2bce036f1ee3c8b", "score": "0.64914423", "text": "protected function newCachedTargetDataTypeModel()\n\t{\n\t\t$target_data_type_model = $this->getModelFactory()->getModel('TargetDataType');\n\t\t\n\t\t$relevant_data_types = $target_data_type_model->loadAllBy(\n\t\t\tarray('n...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e3d0ccd4ada2dc88b7c57c5065e7e2e8", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n }", "title": "" } ]
[ { "docid": "3ca36acd1130c145fec3824dfbb00135", "score": "0.6494459", "text": "public function store(Request $request, $resource)\n {\n $command = $this->translator->getCommandFromResource($resource, 'store');\n\n $this->runBeforeCommands($command);\n\n $data = $this->dispatchFrom...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77284616", "text": "public function create()\n {\n return view('resource.create');\n }", "title": "" }, { "docid": "63ad7fad99855a56a3b8abf3768cf47e", "score": "0.7624933", "text": "public function create()\n ...
6c1e20e7a397eb26dc7b8085c3b4f8e3
Load options to use later
[ { "docid": "a160eb9b232dbeadd89e4a79cfb46f5c", "score": "0.78402823", "text": "function loadOptions()\n\t{\n\n\t\t$this->_options = get_option($this->WPB_PREFIX.'_settings',$this->_defaults);\n\n\t}", "title": "" } ]
[ { "docid": "cdb301da8230ba1e505fa4722732f5b9", "score": "0.81560457", "text": "public function load_options() {\n\t\tif ( !$this->options )\n\t\t\t$this->options = (array) get_option( self::HANDLE, array(\n\t\t\t'consumer_key' => '',\n\t\t\t'consumer_secret' => ''\n\t\t) );\n\t}", "title": "" }, ...
ae85bd3b6d4b55b935665ab3a23b7049
define an array for our fridays
[ { "docid": "49cad822f1243ce0c4f0dd8e4ec634b9", "score": "0.6403553", "text": "public static function getFridays($year)\n\t{\n\t\t$fridays = array();\n\n\t\t// get start date\n\t $startDate = new DateTime($year . '-01-01 Friday 11:00');\n\n\t \t// get current date\n\t \t$currentDate = new DateTime(S...
[ { "docid": "ebd299a239b60dcd95e55115e61bf216", "score": "0.6876341", "text": "public function addBusinessDaysProvider(): array\n {\n return [\n // From Monday morning.\n ['Monday 2018-05-14 00:00', 0, 'Monday 2018-05-14 00:00'],\n ['Monday 2018-05-14 09:00', 0,...
0878be5ce43192c7600ee45ffe93ca61
Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!
[ { "docid": "bd39d0ae0ef089ed0d3c49ca92ff5862", "score": "0.0", "text": "public static function model($className=__CLASS__)\n\t{\n\t\treturn parent::model($className);\n\t}", "title": "" } ]
[ { "docid": "9816d7bf330a9e21d8b3599d73f2e74c", "score": "0.7271581", "text": "public static function model($className=__CLASS__) { return parent::model($className); }", "title": "" }, { "docid": "9816d7bf330a9e21d8b3599d73f2e74c", "score": "0.7271581", "text": "public static function...
649cae20651fed960f37e55470304522
Rollback the active database transaction.
[ { "docid": "250111d74836ca6eb0a66de51c76799a", "score": "0.81097114", "text": "public function rollback();", "title": "" } ]
[ { "docid": "98e4205b1b81f13db5d2d08770468206", "score": "0.85958165", "text": "public function rollbackTransaction() {\n\t\t$connection = $this->db->getConnection();\n\t\t$connection->rollback();\n\t}", "title": "" }, { "docid": "d65f6fc270df32db27655c8cfc8911d6", "score": "0.8509975", ...
4bf077a1d3b8185f964fce691c153d3b
Convert a floating point number to the whole and the decimal
[ { "docid": "cb392f04708ce34e4c7219b02018f0ef", "score": "0.0", "text": "public function float2parts(float $number, bool $returnUnsigned = false): array\n {\n $negative = 1;\n if ($number < 0) {\n $negative = -1;\n $number *= -1;\n }\n\n if ($returnUns...
[ { "docid": "d41c4346e46abe0bb47261d35c1da59d", "score": "0.7268291", "text": "function toDecimal($value){\r\n if(isFormatoReal($value)){\r\n $result = floatval(str_replace(',', '.', str_replace('.', '', $value)));\r\n return (float) $result;\r\n }else{\r\n return (float) $valu...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "ce675102ce17e8b49f9d77ec228842b8", "score": "0.0", "text": "public function store(CreatePostRequest $request)\n {\n $user = Auth::user();\n\n $input = $request->all();\n\n if($file = $request->file('photo_id')){\n\n $name = $file->getClientOriginalName();\n\n\n ...
[ { "docid": "66fc929ce2208598ecac269021e7947f", "score": "0.72289926", "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->back('created', ['id' => $object->id...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "1a7c92f08b68523de94392129a6ddb87", "score": "0.0", "text": "public function destroy($id)\n {\n $templateDelete = Template::find( $id );\n $result = $templateDelete->delete();\n\n if($result) {\n $massage = 'Deleted template';\n return successResp...
[ { "docid": "97c51cab4a2ebd0c97c646aca8926260", "score": "0.7629593", "text": "public function remove(ResourceInterface $resource);", "title": "" }, { "docid": "2b9d2c85f4c5a3ea90f0276710558864", "score": "0.73587126", "text": "public function removeResource(ResourceInterface $resourc...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "8272e4330e4a37b7def3a16cf53eddcf", "score": "0.0", "text": "public function run()\n {\n\n DB::table('poszt_tipusok')->insert([\n 'id' => 1,\n 'code' => 'sajat',\n 'web_nev' => 'Saját',\n ]);\n\n DB::table('poszt_tipusok')->insert([\n ...
[ { "docid": "f74cb2c339072d43cd3b96858a89c600", "score": "0.8112695", "text": "public function run()\n {\n $this->seeds();\n }", "title": "" }, { "docid": "33aedeaa083b959fa5f66e27a7da3265", "score": "0.8026505", "text": "public function run()\n {\n // $this->ca...
cd9744baa7bc1b990a28950a04657ab3
Parses the steps array by stripping off nested arrays not included in the branches and returns a simple array with the correct steps.
[ { "docid": "f4282870bb23b16572cb730750780c8a", "score": "0.74305105", "text": "protected function _parseSteps( $steps ) {\n\n $parsed = [];\n\n foreach( $steps as $key => $name ) {\n if( is_array( $name ) ) {\n foreach( $name as $branchName => $step ) {\n ...
[ { "docid": "6efe6a11d1c4fbc6a86240e66149bae5", "score": "0.5873563", "text": "protected function validate_steps( $steps = array() ) {\n\t\t\tif ( ! empty( $steps ) ) {\n\t\t\t\tforeach ( $steps as $steps_type => $steps_type_set ) {\n\t\t\t\t\tif ( ( is_array( $steps_type_set ) ) && ( ! empty( $steps_typ...
9b9db359170823bfc9e99e294b6140cc
log transfer stats For debugging purpose
[ { "docid": "5d72ada444dffbd17b71ccabd1b5d4cc", "score": "0.60892767", "text": "protected function logStats(TransferStats $stats) : array {\n return [\n 'time' => (string)$stats->getTransferTime()\n ];\n }", "title": "" } ]
[ { "docid": "d0a04be58bc15ce9b0cc844f7c5c3c41", "score": "0.61409974", "text": "public static function logStats()\r\n {\r\n $s3Funcs = DUPX_S3_Funcs::getInstance();\r\n DUPX_Log::resetIndent();\r\n\r\n if (!empty($s3Funcs->report) && is_array($s3Funcs->report)) {\r\n $s...
352027fe2873f64cb20a31fd7be03800
Get the correct xvalue for the text string to start writing.
[ { "docid": "887ca5ef7a8a0c41ee552b047d393a66", "score": "0.0", "text": "protected function _fixX($x) {}", "title": "" } ]
[ { "docid": "b89a8dae29356587693650fb76189f7a", "score": "0.5290755", "text": "public function getAtstring()\n {\n $value = $this->get(self::ATSTRING);\n return $value === null ? (string)$value : $value;\n }", "title": "" }, { "docid": "9cd534847cfce8e729c84e0ab09d28dc", ...
4ddf95c5284a3b8a8720efe339e1c8a1
isMandatory returns true if the given field can not be null and has no default value
[ { "docid": "430f9ae4e393278d29cfc08f59b19f97", "score": "0.7142248", "text": "public function isMandatory($field)\n {\n if($this->isField($field))\n {\n $field_desc = $this->getFieldDesc($field);\n if($field_desc->isPrimary() && $this->hasAutoIncrement())\n ...
[ { "docid": "e812917a4008e93c89f60cdb9e79157e", "score": "0.8198659", "text": "public function isMandatory($field, $name='');", "title": "" }, { "docid": "2ed5f87101aa9703af32dd7a63f27925", "score": "0.7495906", "text": "public function isMandatory()\n {\n return $this->mand...
bdfc36c91ed49f85e50c057f4f143d3a
Creates a gamefieldarray with given rows and columns
[ { "docid": "7b538cb7276124aa8fbe86e53db3659b", "score": "0.59449", "text": "public function setGamefield($_row,$_column)\r\n\t{\r\n\t\tif(is_numeric($_row) && is_numeric($_column))\r\n\t\t{\r\n\t\t\tif($_row < 20)\r\n\t\t\t{\r\n\t\t\t\t$_row= 20;\r\n\r\n\t\t\t}\r\n\t\t\tif($_row>100)\r\n\t\t\t{\r\n\t\t\...
[ { "docid": "8c10c36d12219ab434b471c5c9910fb1", "score": "0.67195475", "text": "private function buildField() {\n\n $battleField = array();\n for($i=0; $i<8; $i++) {\n for($j=0; $j<8; $j++) {\n $battleField[$i][$j] = new Square();\n }\n }\n\n ...
e44ae4314452e7bff993a25d4f2f9124
Gets query for [[CreatedBy0]].
[ { "docid": "d5861ea48f1c3850d3b2255deb5d100d", "score": "0.6788495", "text": "public function getCreatedBy0()\n {\n return $this->hasOne(User::className(), ['id' => 'createdBy']);\n }", "title": "" } ]
[ { "docid": "933d66f80f9d26b045e9edc7c28c90a3", "score": "0.649832", "text": "public function getCreatedBy();", "title": "" }, { "docid": "a1e0a18137579821c8466562037a3364", "score": "0.64826876", "text": "public function getCreatedBy()\n {\n return UserQuery::create()->find...
9fa5b3273cf6ba918c73d4f505daec5f
A char popCharacter() method that pops and returns the character at the top of the stack instance variable.
[ { "docid": "d00a839f3f5cf34463cc146d61cbd717", "score": "0.860893", "text": "public function popCharacter(){\n\n $valor = array_shift($this->stack);\n return $valor;\n }", "title": "" } ]
[ { "docid": "fdeffb7683b2e1a156953c22f3c61740", "score": "0.7311154", "text": "public function pop() {\n return array_shift($this->_stack);\n }", "title": "" }, { "docid": "9cda4fd46f367936bfd1d5d1df6ad48e", "score": "0.7206975", "text": "public function pop():string\n {\n ...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "f039f3a7c5d4fa57be3584926d23e2eb", "score": "0.0", "text": "public function run()\n {\n // DB::table('order_status')->insert([\n // 'name' => 'Chờ Xác Nhận',\n // 'created_at' => now(),\n // ]);\n\n // DB::table('order_status')->insert([\n ...
[ { "docid": "1dcddd9fc4f2fbc62e484166f7f3332c", "score": "0.80288446", "text": "public function run()\n {\n DB::statement('SET FOREIGN_KEY_CHECKS=0');\n DB::table('users')->truncate();\n DB::table('posts')->truncate();\n DB::table('roles')->truncate();\n DB::table('r...
754dd5dd7fa4d5b4ba4558d3778cb4cc
Gets the value of the InstanceType property.
[ { "docid": "3ded85b9fc2de80e7edd824e6fa74b16", "score": "0.8194765", "text": "public function getInstanceType() \n {\n return $this->_fields['InstanceType']['FieldValue'];\n }", "title": "" } ]
[ { "docid": "95460abaeb531a3fa3770a6cffe288b6", "score": "0.6605453", "text": "public function getType() {\n return $this->get(self::TYPE);\n }", "title": "" }, { "docid": "45c7715e7404764a423aa7fd3cf2b465", "score": "0.6599821", "text": "public function getType()\n {\n ...
92997e967ef4104685ae6e37db160b64
code goes here that will be run every 5 seconds.
[ { "docid": "22b3c0f33e1bf23fa049832d893f197a", "score": "0.0", "text": "public function indexAction() {\n\n\n\n\n return $this->render('AdministrateurBundle:Default:index.html.twig', array());\n }", "title": "" } ]
[ { "docid": "17bf97ec69c69541b9becd9217e57648", "score": "0.71200764", "text": "private function Cron5() {\r\n global $jobs;\r\n \r\n while( $job = $jobs->Job() )\r\n if( $job[ \"interval\" ] == 5 )\r\n eval( $job[ \"j...
46219406ec485c26c7f1aa3f25287f7b
Show the form for editing the specified bestuur.
[ { "docid": "43e3b95158b258c97b7de9d02b76f286", "score": "0.7058196", "text": "public function edit($id)\n\t{\n\t\t$bestuur = Bestuur::find($id);\n\n\t\treturn View::make('bestuurs.edit', compact('bestuur'));\n\t}", "title": "" } ]
[ { "docid": "9197e5f6646ab8a602e1ff00b9e41fb5", "score": "0.73090446", "text": "public function edit() {\n\t\tglobal $tpl;\n\n\t\t$this->initForm(\"edit\");\n\t\t$this->getValues();\n\n\t\t$tpl->setContent($this->form->getHTML());\n\t}", "title": "" }, { "docid": "a5fdf72e027ce947aa666b71b07f...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "7b1bd11244d4ef0fc497dc25f317c547", "score": "0.0", "text": "public function destroy($id)\n {\n User::find($id)->delete();\n\n return redirect()->back()->with('successMsg','Usuario eliminado');\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "dc9dac8ad479a20e75ce7907e8c0d32e", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "98a92f5f221512e805209e68c21a2f41", "score": "0.7230707", "text": "public function update($resource, $id, $data);", "title": "" }, { "docid": "259a6a29a43bf9b88ecc1eb3eee3041e", "score": "0.6979853", "text": "public function updateResource($resourceType, $resourceId, $reco...
8c12f8a147e4b6c18f23b305181fdd5e
Operation getCustomerByEmailAsyncWithHttpInfo Retrieve a customer by Email
[ { "docid": "62d3271a39a52f2920d18dafb2f1f557", "score": "0.6740141", "text": "public function getCustomerByEmailAsyncWithHttpInfo($email, $_expand = null)\n {\n $returnType = '\\ultracart\\v2\\models\\CustomerResponse';\n $request = $this->getCustomerByEmailRequest($email, $_expand);\n\...
[ { "docid": "988d514721683e819e7330a7c05eba85", "score": "0.6613235", "text": "public function getCustomerByEmailWithHttpInfo($email, $_expand = null)\n {\n return $this->getCustomerByEmailWithHttpInfoRetry(true , $email, $_expand);\n }", "title": "" }, { "docid": "bec0fab535...
a00c9b2af2eae55b80ea8d598d3ed068
Sent OTP to mobile number
[ { "docid": "1c904eaf51d142081018266709828f20", "score": "0.61096114", "text": "public function mobileOtp($data){\n $error_messages = [];\n $results = [];\n $customer_obj = null;\n $customer_arr = [];\n $artist_id = isset($data['artist_id']) ? trim($data...
[ { "docid": "2582b9f10bf36f9d820c4aea82560fdb", "score": "0.7439781", "text": "public function sendOtpForForgetPass($mobile_no){\n //generate Otp\n //Fire Event \n //Store Otp in reset_Verify table with flag=1;\n //$this->saveOtp();\n }", "title": "" }, { "docid...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "4232629cafbf6265529f2a53399cdefb", "score": "0.0", "text": "public function rules()\n {\n return [\n 'title' => 'required',\n 'url' => 'required|url',\n 'rank' => 'required|integer|between:0,255',\n 'status' => 'required',\n 'i...
[ { "docid": "9b89453638fa0d4bc780cfdebb220131", "score": "0.8037068", "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": "...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "1c97577d598e9c9ad3d3218423637b5d", "score": "0.0", "text": "public function edit($id) {\n $record = $this->councilRepo->find($id);\n $district = DB::table('district')->where('province_id','12')->get();\n $record_address = $record->address_coucil;\n $record_distric...
[ { "docid": "c77fbba2f7b7f5018f4471f75871b57a", "score": "0.77982926", "text": "public function edit(Resource $resource)\n {\n return view(\n 'resources.edit', \n [\n 'resource' => $resource\n ]\n );\n }", "title": ""...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "06ec3b32b9b222f39c5dee97c3ecbb36", "score": "0.7939633", "text": "public function create()\n\t{\n\t\treturn view('admin.resource.create');\n\t}", "title": "" }, { "docid": "1e65cd3b7532e9fb4c8629f59550be03", "score": "0.7734893", "text": "public function create()\n\t{\n\t...
d03b388b5c2bcd743860d5a3096e1c5d
Execute the console command.
[ { "docid": "06bd5b9d2de3c387032bcbdf5e3cba04", "score": "0.0", "text": "public function handle()\n {\n $transaction = DB::table('transactions')\n ->join('bookings', 'transactions.booking_id', 'bookings.id')\n ->where('transactions.status', '=', 'pe...
[ { "docid": "e8d4753b2d8e1d1ee8ded47ffb9e94db", "score": "0.6568235", "text": "public function handle()\n {\n $argument = $this->argument('name');\n\n $options = $this->options();\n\n $this->writeRepository($argument,$options);\n\n $this->composer->dumpAutoloads();\n }",...
54c78b0e4bc1a0981be7ca3932c84b45
Removes the meta data associated with this content.
[ { "docid": "24c2ebda80d89019616684ecc9317f25", "score": "0.6418151", "text": "public function removeMetaData(string $meta_name)\n {\n /** @var ContentMeta $meta_data */\n foreach ($this->meta_data as $meta_data) {\n if ($meta_data->getName() === $meta_name) {\n ...
[ { "docid": "00608811735bd4d9c7a69a578d062e3e", "score": "0.6765098", "text": "public function db_remove_meta_protected() {\n\n\t\t\t$this->meta_protected = array();\n\t\t}", "title": "" }, { "docid": "57b09da8ada23bc8b4bad772db422f23", "score": "0.65932906", "text": "public function ...
1f759c9f42afa34487719f680c03a575
status_id , 2 : pay succeeded, 4: voiding, 6:void failed
[ { "docid": "9f1a4573cbbd449398d861ab5b52a9ba", "score": "0.0", "text": "public static function getAmount($startTime,$endTime,$dt,$cutOffTime) {\n $dtFormat = TicketPayment::getDtFormatString($dt);\n $sql = \"SELECT DATE_FORMAT(a.calc_date,'{$dtFormat}') AS dt, SUM(a.amount) AS total, SUM(...
[ { "docid": "fe6e1e369aec3a19d9d15e5dd29ea55c", "score": "0.6555621", "text": "private function HandleStatusSuccess()\r\n\t{\r\n\t\tglobal $netAmount, $feeAmount, $customerFirstName, $customerLastName, $myCustomField_1, $myItemName, $customerEmailAddress, $transactionReferenceNumber, $totalAmountReceived...
4e67770af9f035c5704e9e6fe957195b
Cabecera del Reporte aparecera en todas las paginas
[ { "docid": "a48d15f314060cf81ba29e731952970a", "score": "0.0", "text": "function Header()\n\t{\n\t\t$this->SetXY(10,10);\n\t\t$this->SetFont('Arial','',12);\n\t\t$this->MultiCell(190,5,nombre_empresa(),'0','C');\n\t\t$this->SetFont('Arial','',10);\n\t\t$this->MultiCell(190,5,tipo_serv(),'0','C');\n\t\t\...
[ { "docid": "26831d50de669be92ef91b442719da7d", "score": "0.6957324", "text": "public function reportes(){\n\n\t\t$dato['active'] = \"operador\";\n \t$dato['active1'] = \"reportes-operador\";\n\t\t$dato['ruta1'] = \"Reporte de Operadores\";\n\t\t$dato['ruta'] = \"Modulo Operador / Reportes\";\n\n\t\t$...
599b7826835aaf5cae9bd0792c87aad7
Read a file to get the content
[ { "docid": "2f87d6abfe5d9fb0520b4eb1e0ffb7d3", "score": "0.0", "text": "static function file($filename, $start = \"\", $end = \"\") {\n\t\treturn file_exists($filename) ? $start . file_get_contents($filename) . $end : null;\n\t}", "title": "" } ]
[ { "docid": "c5d5d1f0a99dd65f7493822f0bd6aaa4", "score": "0.812255", "text": "public function getContents($file);", "title": "" }, { "docid": "1fae860b24a173f5bc1c1e3c255244ac", "score": "0.77041733", "text": "public function read($file);", "title": "" }, { "docid": "59873...
96e5930346577b5d971cc9c5e791ff9c
need this to start session tracking IN EVERY PHP page using session session_start();
[ { "docid": "144d623d4ad61a48dbdd7add8a2adbea", "score": "0.0", "text": "function createArray($omit)\n{\n $array = [];\n $i = 0;\n foreach (range('A', 'Z') as $char)\n {\n $array[$i] = $char;\n $i++;\n }\n \n // var_dump($array);\n \n $pos = array_search($omit, $a...
[ { "docid": "a91c4a28468362ee6fcfc9138f7add55", "score": "0.81343704", "text": "private function startSession(){\n\t\t\tsession_start();\n\t\t}", "title": "" }, { "docid": "d99ff35cc5d7da54b6b3c017b9fff976", "score": "0.8033749", "text": "private static function startSession() {\n ...
9918fc56249d2bbf6617a3470f465b3c
Update database information about the given author.
[ { "docid": "4476fd5f51d8f2fdceb1c9cccd5ab0f1", "score": "0.64575905", "text": "private function update(int $authorid, string $name, string $link,\n string $bio): void\n {\n $author = TableAuthors::findByID($authorid);\n $author->name = $name;\n $author->link = $l...
[ { "docid": "4d587a7f515f3071fd7e8ebc128dc8cc", "score": "0.7610635", "text": "public function update() {\n\n // Does the Author object have an ID?\n if ( is_null( $this->id ) ) trigger_error ( \"Author::update(): Attempt to update an Author object that does not have its ID property set.\", E_USER_...
22e07330438678ad260620103a95a66a
/ $name, log title $level: EMERG system is unusable ALERT action must be taken immediately CRIT critical conditions ERR error conditions WARNING warning conditions NOTICE normal, but significant, condition INFO informational message DEBUG debuglevel message $content
[ { "docid": "52e51f32e503e1f70e98914186ed73e4", "score": "0.4976128", "text": "function rlog($title, $level, $content)\n{\n openlog(\"$title\", LOG_PID, LOG_LOCAL0);\n syslog(LOG_DEBUG,\"$level $content\");\n closelog();\n}", "title": "" } ]
[ { "docid": "714c6f74d5a8f44cd41cddb868e77abb", "score": "0.55425596", "text": "function die_hard(&$log, $message) {\n \n // log the message\n $log->crit($message);\n \n // @todo incorporate into smarty display for user friendly display\n die(\"Please contact the system administrator\");\n \n}", ...
b7b68951db18dc1ef2d47afa3811044c
Adds a new user account with the provided data
[ { "docid": "28a3a6efe1d621dca038b64cbc04d11e", "score": "0.64256585", "text": "public function add(array $data)\n {\n $user = new UserModel();\n $user->populate($data);\n \n $auth = new AuthModel();\n $auth->populate($data);\n \n $profile = new Profile...
[ { "docid": "e2fbf7081dadcbccca6be200b07afeec", "score": "0.74614143", "text": "public function addUser($data) {\n\t\tglobal $db;\n\t\t$db->type = 'site';\n\t\t\n\t\tforeach ($data as $key=>$val) {\n\t\t\tif ($key != 'password') {\n\t\t\t\t$values[$key] = $db->sqlify($val);\n\t\t\t} else {\n\t\t\t\t$valu...
9d5fac5adfc30d98152dbc27a9199553
This method return the data of the model
[ { "docid": "f79dd7af8e01728ede733611f869f3e4", "score": "0.0", "text": "public function __invoke(ManageCustomergroupRequest $request)\n {\n //\n $core = $this->customergroup->getForDataTable();\n return Datatables::of($core)\n ->escapeColumns(['id'])\n ->add...
[ { "docid": "caf7e44152d7c60d3da12e1a2c2fa206", "score": "0.8381504", "text": "public function data(){\n return $this->call('GET', $this->model_name.'/'.$this->id.'/data');\n }", "title": "" }, { "docid": "6f8afa996a2d901f23d66aec51653c04", "score": "0.79741377", "text": "...
098a343abe0862f7b3665de89f8919e4
XML_DTD_XmlElement::getChildrenNames() Returns the names of the children of current XML element.
[ { "docid": "7063bd22205816ea7c95dc65d6b70369", "score": "0.756083", "text": "function getChildrenNames()\n {\n $return = array();\n foreach ($this->children as $child) {\n $return[] = $child->name;\n }\n return $return;\n }", "title": "" } ]
[ { "docid": "73561204a20750c938347660a014408b", "score": "0.7554236", "text": "public function getChildrenNames();", "title": "" }, { "docid": "f46c7684d582d17ff1d8fbd9a07a5358", "score": "0.6600317", "text": "function getChildNames($children) \n{\n $child_names = [];\n foreach ...
d1f99413f36ef77ef04bbed555c22b2f
Return button with dropdown list of conditions for form filter input field.
[ { "docid": "32dda4e3808157c73ac7684f58283c54", "score": "0.0", "text": "protected function _getBtnCondition($inputCondField = null, $options = null, $title = null, $disabled = false) {\n\t\t$result = '';\n\t\tif (empty($inputCondField) || empty($options) ||\n\t\t\t!is_array($options)) {\n\t\t\treturn $r...
[ { "docid": "9bce3d663c5700772856c5269b88d653", "score": "0.73818207", "text": "public function filterButtons() {\n\t\t$output = $this->Form->submit(__('Filter'), array('div' => false, 'name' => 'data[Filter][filter]'));\n\t\t$output .= $this->Form->submit(__('Reset'), array('div' => false, 'name' => 'da...
bc0e110793eea33b68cd526ff917329c
Returns true if the subform values are all empty Because form values are string in nature. values are evaluated as string whatever it takes
[ { "docid": "7437648a76517f63b6d7024ca7169e59", "score": "0.81009144", "text": "public function isSubformEmpty()\n\t{\n\t\t$values = $this->getValues();\n\t\t\n\t\tforeach ($values as $value)\n\t\t{\n\t\t\tif (is_array($value))\n\t\t\t{\n\t\t\t\tforeach ($value as $inner)\n\t\t\t\t{\n\t\t\t\t\tif ( ! emp...
[ { "docid": "b350ec4e725ba42433c2e541b91e8aab", "score": "0.77619994", "text": "function filled_out($form_vars) {\n foreach ($form_vars as $key => $value) {\n if ((!isset($key)) || ($value == '')) {\n return false;\n }\n }\n return true;\n }", ...
de9967d40ba1c07fca83070d0f58ddc3
Check to see if AverageCustomerReview is set.
[ { "docid": "071078f7863671ca4640d8baf2a9e371", "score": "0.8915548", "text": "public function isSetAverageCustomerReview()\n {\n return !is_null($this->_fields['AverageCustomerReview']['FieldValue']);\n }", "title": "" } ]
[ { "docid": "9980e1f9db167123d3de7a626532759b", "score": "0.68524504", "text": "public function setAverageCustomerReview($value)\n {\n $this->_fields['AverageCustomerReview']['FieldValue'] = $value;\n return $this;\n }", "title": "" }, { "docid": "399618cf773e880db79a35927...
b756ddc94cf2480d2290e70fd5aab1a1
Decimal value between 0 and 1 used to order Categories that are on the same level in the Category tree.
[ { "docid": "0808c28b2fb19d31cc795f9105fad6c9", "score": "0.0", "text": "public function getOrderHint()\n {\n return $this->orderHint;\n }", "title": "" } ]
[ { "docid": "f95ac2e00b8d60497ac023c191747e16", "score": "0.594207", "text": "public function getCategoryPower(): int\n {\n if ($parent = $this->findCategory(static::CATEGORY_FLAT)) {\n $category = $this->findCategory(static::CATEGORY_POWER, (int)$parent->id);\n\n return $...
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...
1e5d28ff14dd953582cdd9979dd044dd
Model & Property Settings
[ { "docid": "e3f286b0a6c4e62455ead13ae324d706", "score": "0.6821075", "text": "protected function getPropertySettings() {\n $property_settings = array(\n 'user_id' => array(\n 'required' => true,\n 'custom' => [\n array (\n ...
[ { "docid": "338c220d179b7cd08c88fe125f4e97e8", "score": "0.663296", "text": "private function getPropertyInCreation() {\n $property = new YiiPropertyModel();\n switch ($this->rdfType) {\n case Yii::$app->params['MoveFrom']:\n $property->value = $this->propertyFrom...
e6166634b57de3f37ac7c965a689130c
Parse webhook data for a bill.
[ { "docid": "909994150a25c354cc0579cab0181ad9", "score": "0.46118063", "text": "public function webhook(array $data = []): ?array;", "title": "" } ]
[ { "docid": "be626d0d311d9ebe4c7eefab2d57f835", "score": "0.5971042", "text": "public function handle_webhook() {\n $payload = file_get_contents( 'php://input' );\n $data = json_decode( $payload, true );\n $event_data = $data['event']['data'];\n\n if ( ! isset( $event...
1ef68043b64fb807071b8a26d23c8017
Build and minify CSS
[ { "docid": "6de01bdaa493a86dff610610f0a00c85", "score": "0.0", "text": "private function _deploy_css($force = TRUE, $file_name = NULL, $group = NULL)\n\t{\n\t\tif ($this->enabled === FALSE)\n\t\t{\n\t\t\treturn $this->_simple_output('css', $group);\n\t\t}\n\n\t\tif ($this->auto_names or $file_name === '...
[ { "docid": "4c1a657ef996ebab76fd74b5babd9ab1", "score": "0.7367801", "text": "public function minify($css, array $options = array());", "title": "" }, { "docid": "1ddeb86243cfd3714eff22714f0ed6d0", "score": "0.7067176", "text": "public function build_css() {\n\t\t\t\n\t\t}", "tit...
be3223a7d6eb942cfcdf1b2a27127d80
This hook disables the post queue for accounts registered with a trusted email address.
[ { "docid": "872921fa8655573c317ef88d66500ad3", "score": "0.6667896", "text": "function hook_trusted_users(&$hook)\n{\n\tglobal $config, $user;\n\n\t/**\n\t * Skip when the queue is disabled, or this is an administration\n\t * session so we don't break the ACP, chances are that administrators\n\t * have ...
[ { "docid": "f617b2725a177b5942d4c4423a87e6d8", "score": "0.5889793", "text": "function deactivate(){\n wp_clear_scheduled_hook('cp_email_notification');\n}", "title": "" }, { "docid": "735ba16702d66b69713e5b08be968346", "score": "0.5834569", "text": "function disableReceiver($uid,...
55be9cfeb1076ca2f1dc32cf0d5bb6e4
Operation priceModificationCommandUsingPUTAsync Batch offer price modification
[ { "docid": "e829d42ac5cc1617b9e1fc045ddfc029", "score": "0.46670306", "text": "public function priceModificationCommandUsingPUTAsync($command_id, $offer_price_change_command, string $contentType = self::contentTypes['priceModificationCommandUsingPUT'][0])\n {\n return $this->priceModificationC...
[ { "docid": "e0c0d3686de4c9d8c26f482127cac720", "score": "0.6271517", "text": "public function updateprices()\n {\n\n $aParams = oxRegistry::getConfig()->getRequestParameter(\"updateval\");\n if (is_array($aParams)) {\n foreach ($aParams as $soxId => $aStockParams) {\n ...
320d9d23ddb98af902654e7dcc25eec2
Test ... is left asis
[ { "docid": "405b8e70f9e5f0639133dd64bc23aab1", "score": "0.0", "text": "#[@test]\n public function ttIsLeftAsIs() {\n $this->assertEquals(\n 'The class <tt>lang.types.ArrayList</tt> is ...',\n $this->builder->markupFor('The class <tt>lang.types.ArrayList</tt> is ...')\n );\n }", "t...
[ { "docid": "cb757f486e3a938ad0776a367a48c50f", "score": "0.8001144", "text": "private function test() {\n\t}", "title": "" }, { "docid": "063ccd36fa2cb95cc6c6419b48d30145", "score": "0.796431", "text": "protected abstract function test();", "title": "" }, { "docid": "9bb7...
799e294817240e02ca07bcba260da657
look in provided path for files and folders and return names of files or folders
[ { "docid": "dc1ee5f79e5a8b3fdf1b6921df2465f0", "score": "0.0", "text": "function load_resources($path) \n{\n\t$dir_handle = @opendir($path) or die(\"Appllication's directory structure problem.\");\n\t$content_list = array ();\n\t\twhile (($file = readdir($dir_handle)) != FALSE) \n\t\t{\n\t\t\tif($file!=...
[ { "docid": "42a995f3d868c35c9eddd414f3772386", "score": "0.70180887", "text": "private static function getFilesInFolderHelper ($strPath) {\r\n\t\t// Remove trailing slash if it's there\r\n\t\tif ($strPath[strlen($strPath) - 1] == \"/\") {\r\n\t\t\t\t$strPath = substr($strPath, 0, -1);\r\n\t\t}\r\n\t\t$r...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "e8c071d823c7e8c26083714d9cbd4baf", "score": "0.0", "text": "public function create()\n\t{\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "a5a742c5eb76d32c32823659c256e71f", "score": "0.783437", "text": "public function actionCreate() {\n $this->render('resource_create');\n }", "title": "" }, { "docid": "246a2b1ff9c2e296275420128d62692d", "score": "0.7765723", "text": "public function create()\n ...
ca427bb131f236026d66a3679f4d00fb
Defines the sizes attribute.
[ { "docid": "a6b123b944d6f75371bc07960851b131", "score": "0.77029103", "text": "public function sizes($value = null){\n return $this->attr(ATTR_SIZES, $value);\n }", "title": "" } ]
[ { "docid": "17f6d901a19e352070d24824942cf109", "score": "0.7200127", "text": "public static function setSize($size) {}", "title": "" }, { "docid": "43924b043207656876481234620077cd", "score": "0.71121246", "text": "public function sizes();", "title": "" }, { "docid": "b78...
5035e69c8302f11b6b7366c6c6ca1e5d
Get all edges connecting the source vertex to the target vertex
[ { "docid": "5b667bfe1023db4dfca8bc9783962178", "score": "0.71718043", "text": "public function getAllEdges(VertexInterface $sourceVertex, VertexInterface $targetVertex): EdgeSet\n {\n $edges = new EdgeSet();\n \n if (\n $this->graph->containsVertex($sourceVertex)\n ...
[ { "docid": "aa8ec7e733799dd6670f30878e29f858", "score": "0.64779687", "text": "public function outgoingEdgesOf(VertexInterface $vertex): EdgeSet\n {\n return $this->getEdgeContainer($vertex)->getEdges();\n }", "title": "" }, { "docid": "dd8164ad3c43d2a9a22dbacc975d2a1e", "sc...
c39a112dfc6a04c0d7d9b99ecfe15a8e
check whether available and make necessary inventory deductions, then
[ { "docid": "eaa07c3d004f8c8adda02e528b0e2a11", "score": "0.0", "text": "public static function GetLineItems($invoiceId)\r\n\t{\r\n\t\t$lineItems = array();\r\n\t\ttry {\r\n\t\t\t$sql = 'SELECT * FROM invoice_items WHERE invoice_id = '.$invoiceId.' AND status = 1';\r\n\t\t\t$res = DatabaseHandler::GetAl...
[ { "docid": "e08f38202b31dc9f835e1672819272b2", "score": "0.7239852", "text": "function checkInventory(){}", "title": "" }, { "docid": "c5ed16cd1f4b4c53d1446111d514c5da", "score": "0.6833228", "text": "public function checkAvailibility(): void\n\t{\n\t\ttry{\n\t\t\t$this->updateAvaila...
d3f722c57995b047202079093f78957a
Serializes this definition into an SQL string.
[ { "docid": "e84c2e96add146dcc8b8301fe5c8741d", "score": "0.55268365", "text": "function toSql(ITypeDictionary $typeDictionary, array $namedParameterValues = []): string;", "title": "" } ]
[ { "docid": "52516819dd68bb2e71ead561031a23d5", "score": "0.72079724", "text": "public function toSql() : string\n {\n return $this->__toString();\n }", "title": "" }, { "docid": "099f3f49ee6ee44c8f7cf6e543428ca2", "score": "0.6944725", "text": "public function __toString...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e3d0ccd4ada2dc88b7c57c5065e7e2e8", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n }", "title": "" } ]
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7149016", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.669261", "text": "public function store ()\n {\n ...
db8513cccd99eb1f1cea53fcc2ceab34
Short description of attribute list_model
[ { "docid": "b7972d74e943a4a6db9d74f0fc0c1eae", "score": "0.74032754", "text": "public function get_list_model()\n {\n return $this->list_model;\n }", "title": "" } ]
[ { "docid": "7706b02b7703055c584a027c349f2e79", "score": "0.73002493", "text": "protected function describe_model(){\n\t\t$model_desc = $this->model->describe();\n\t\tforeach($model_desc as $field) $desc[] = $field['Field'];\n\t\treturn $desc;\n\t}", "title": "" }, { "docid": "58d7c10f288a1ef...
18e9365655113d29d392862f9d22960b
tampil form ubah ptsp22
[ { "docid": "887334d9a6362225e6cc5413f045a08d", "score": "0.0", "text": "public function form_ubah_ptsp22($id_permohonan)\n {\n $data_title['title'] = 'Form Ubah Permohonan';\n $data['pemohon'] = $this->db->get_where('pemohon', ['id_pemohon' =>\n $this->session->userdata('id_pemoh...
[ { "docid": "1df0ad21df2e2652ec9728a2658d028f", "score": "0.62836206", "text": "function tampilAngkaNormal($jkel, $paatas, $pabawah, $piatas, $pibawah, $angka){\n\tif($angka=='0'){\n\t\treturn $paatas;\n\t}else if($angka=='1'){\n\t\tif($jkel=='L'){\n\t\t\tif($pabawah==0){\n\t\t\t\t$hasil = ' < '.format_u...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "64fca1b71a37bcc64be93b4a0eb2482c", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n \t ContentCategory::where('id', (int) $id)\n ->update($request->input('contentcategory'));\n return Redirect::to(action('Admin\\ContentCatalogController@sh...
[ { "docid": "3a50a43d393625d85bd96071942ad788", "score": "0.75714874", "text": "public function updateResource(ResourceInterface $resource);", "title": "" }, { "docid": "43d7f9bca361bad6cdea5587611546b3", "score": "0.75074047", "text": "public function updated(Resource $resource)\n ...
bfd94264c48576dbaa17bd6737c53e79
Executes all the routines for all plugins. This function executes all the routines for all plugins, whether checking if their interval timed out, or not (so all routines are executed), depending on the value of the \b $force param.
[ { "docid": "1637b1ab065a9b7393b762cf2817c578", "score": "0.6441586", "text": "public function callAllRoutines($force = false)\n {\n $serverName = Server::getName();\n foreach ($this->routines as $className => &$class) {\n foreach ($class as $name => &$routine) {\n ...
[ { "docid": "1b4e6690e3ad104c2c25675ce2b96f2e", "score": "0.65154123", "text": "public static function all_plugins()\n {\n }", "title": "" }, { "docid": "2d3ee8893880922f2d3164d3a1e263ac", "score": "0.6138685", "text": "protected function execute()\n {\n // sho...
d88c1c906ac7ea43072a79ba0070847c
Set the lazy loading proxies on the wrapped entity objet.
[ { "docid": "a1cfeec800138e1c61ddebaf99755e4e", "score": "0.53400004", "text": "public function setProxies(array $relations = null)\n {\n $attributes = $this->getEntityAttributes();\n $proxies = [];\n\n $relations = $this->getRelationsToProxy();\n\n // Before calling the re...
[ { "docid": "e0f839a4aba0d41758e046dcaaf1b37b", "score": "0.6532995", "text": "public function validationIsDoneForReconstitutedEntitiesWhichAreLazyLoadingProxies()\n {\n $this->removeExampleEntities();\n $this->insertExampleEntity();\n $this->persistenceManager->persistAll();\n ...
7893098a23ef9b8c83d7e5eda8882a9b
Determine if the validation rule passes.
[ { "docid": "02743916d2f9d6029e0f3b509ae420de", "score": "0.0", "text": "public function passes($attribute, $value)\n {\n $patient_id = Patient::where('reg_number', $value)->value('id');\n $setting = Setting::where('setting_type','sell_pills_without_insurance' )->value('value');\n ...
[ { "docid": "70f9d03bf913e1fafab4f7b7dc5977c9", "score": "0.79176104", "text": "public function passes()\n {\n $rules = array_merge($this->rules, $this->rules());\n\n $validator = $this->validator->make($this->data, $rules);\n\n if ($validator->fails()) {\n $this->error...
a9b72c6de18c9ed9b4f895f9f31253c0
The new tab content
[ { "docid": "d1399e67dcdf8cbdc4368e69547a6356", "score": "0.0", "text": "function woo_calendar_product_tab_content() {\n calendarPageHtml();\n\n}", "title": "" } ]
[ { "docid": "3c7d7ddf88dba15fbfb2718983a9d4b6", "score": "0.65105104", "text": "public function newAction()\n {\n $this->_init()\n ->_addLeft($this->getLayout()->createBlock('abtest/adminhtml_tabs'))\n ->_addContent($this->getLayout()->createBlock('abtest/adminhtml_form'))...
02134a0a37303eb812db1bc70ed03380
Deletes a single Entity from the database
[ { "docid": "c6f2926b73c12b53357eef509102b320", "score": "0.0", "text": "public function remove($urlEntity)\n {\n $this->entityManager->remove($urlEntity);\n $this->entityManager->flush();\n }", "title": "" } ]
[ { "docid": "619aabbf262d3aae1503bfe1a6cd7124", "score": "0.8615323", "text": "public function delete() {\n $this->entity->delete();\n }", "title": "" }, { "docid": "f1d4fa35b5a8af8683e18de9863714bf", "score": "0.8018985", "text": "public function delete()\n {\n $em = Da...
bc1f09f583a95f784bf8b994874e919d
function to recovr name of table
[ { "docid": "a26e6787b28b368d0143e55c0b92ad44", "score": "0.0", "text": "public function __construct (string $table) {\n\n $dsn = new db\\Database();\n $this->_pdo = $dsn->connect();\n $this->_table = $table;\n\n }", "title": "" } ]
[ { "docid": "def813a52e9b6f1652bb1d88d6c8ab88", "score": "0.83380145", "text": "abstract public function table_name ();", "title": "" }, { "docid": "78b33f9cf03f43c3ffaec39320093349", "score": "0.80636966", "text": "public static function getTable() : string {\n\t\t$namespacedClassPar...
83fe688503908a0407b9bfa07c523a24
the_content_shortcode function. Displays the post content
[ { "docid": "08c98556e170ab402ec605de414e8df8", "score": "0.7983875", "text": "function the_content_shortcode()\n\t{\n\t\t$content = get_the_content();\n\t\t$content = apply_filters('the_content', $content);\n\t\t$content = str_replace(']]>', ']]&gt;', $content);\n\n\t\treturn $content;\n\t}", "title...
[ { "docid": "f265d01bc123a21d2b8bc72abbb6e1d4", "score": "0.81575704", "text": "function the_content_shortcode() {\n\n $content = apply_filters('the_content', get_post_field('post_content', $my_postid));\n\n return $content;\n}", "title": "" }, { "docid": "2e8ea6ba2810c9559243ecbb9f4a2ddc",...