query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
4faa58f6ba0be966c31a93b94981c01a
Defined by ArrayAccess interface Check if key exists
[ { "docid": "c2230193bb828a541258cb4b5d995508", "score": "0.7828802", "text": "public function offsetExists($key) {\n\t\tif (array_key_exists($key, $this->data)) {\n\t\t\treturn(TRUE);\n\t\t} else {\n\t\t\tthrow t3lib_div::makeInstance('tx_enetcacheanalytics_exception_invaliddata',\n\t\t\t\t'Access to no...
[ { "docid": "501db04fb15729422dd549ad1058ebb7", "score": "0.78282386", "text": "public function offsetExists($key): bool;", "title": "" }, { "docid": "f0c8707f37431cfefdd8039e314015f9", "score": "0.75715494", "text": "public function offsetExists(mixed $key ): bool\n {\n re...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "fc5bdf8e8d01b53560395fbc0a4d97bf", "score": "0.0", "text": "public function update($id)\n\t{\n\t\t$fbf_enquete_opcao = FbfEnqueteOpcao::find($id);\n\t\t$fbf_enquete_opcao->id = Input::get('id');\n$fbf_enquete_opcao->idenquete = Input::get('idenquete');\n$fbf_enquete_opcao->idopca...
[ { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "fc2720c817b984c257395f2aea7fba5c", "score": "0.6663144", "text": "public function update(...
a13eebb6da85ee63b71b2b760f00c561
Checks whether the Output is being decorated.
[ { "docid": "b3d80ddc1a4c339b5a7f704d72fb4d2f", "score": "0.75524676", "text": "public function isDecorated();", "title": "" } ]
[ { "docid": "86a7a02d297065239c8b975a084c5c0c", "score": "0.818656", "text": "public function isDecorated() {\n\t\treturn $this->output->isDecorated();\n\t}", "title": "" }, { "docid": "8d7a4aea845177beaa78cec4cd0852b4", "score": "0.75413394", "text": "public function isDecorated(): b...
4f0af33566420a226df7c1549e690803
Appends the given message to the log file (as defined in config.php). Prepends a current date/time stamp and appends an endline character to the message.
[ { "docid": "9b0d13678b38c56009b85314d628cfff", "score": "0.6185024", "text": "function gradeLog($msg) {\n //future proof/config proof: don't rely on the system timezone\n //being set; use our own, Central Time\n $date = new DateTime(\"now\", new DateTimeZone(\"America/Chicago\"));\n $dateStamp = $da...
[ { "docid": "46a9799fe24f67a9545b8a2d4aafbc05", "score": "0.6837814", "text": "public function logWrite($message){\r\n\t\t$time = date('m-d-Y @ H:i:s -'); //Grab Time\r\n\t\tfwrite($this->handle, $time . \" \" . $message . \"\\n\"); //Output to logfile\r\n\t}", "title": "" }, { "docid": "14e5...
3ad2b0455acc26db8e9c203ee7fec44a
Match action against action list
[ { "docid": "3ae308f20971eefa82437d3fd78a7cf2", "score": "0.64081347", "text": "protected static function matchActions($action, array $actions, $app)\n {\n if ($app) {\n $action = substr($action, strlen('/'.$app));\n }\n\n foreach ($actions as $route) {\n if ...
[ { "docid": "aceda6a3805686837f988832905c970a", "score": "0.6884115", "text": "public function checkPossibleAction($action)\n {\n }", "title": "" }, { "docid": "d391b7685f80f6976bd98c98152008d2", "score": "0.6553386", "text": "public function matchAction($action)\n {\n ...
67ec9131ac1491a2653c00b3702a749c
Ensures a theme template can override a theme function.
[ { "docid": "837c7e93d0bd48ed62399944725bc324", "score": "0.6989779", "text": "public function testFunctionOverride() {\n $this->drupalGet('theme-test/function-template-overridden');\n $this->assertSession()->pageTextContains('Success: Template overrides theme function.', 'Theme function overridden...
[ { "docid": "500c235b9a0937992ce38f2d6a866ac3", "score": "0.63663036", "text": "public function usesAdminTheme();", "title": "" }, { "docid": "a95dfa5938057771c87c4f7e7add59ef", "score": "0.60961354", "text": "function on_setup_theme() {\n\t}", "title": "" }, { "docid": "a...
ff5de629f9c440b12b10d947b14222af
Funcion para editar usuario perteneciente al local
[ { "docid": "4ad9711b9e07fd1e403862f2b3f119be", "score": "0.64320904", "text": "public function editarUsuarioLocal($id)//id local_user\n {\n $local_user = Local_User::findOrFail($id);\n\n //el usuario debe ser encargado, pertenecer al local, no estar desvinculado, si no redirecciona al i...
[ { "docid": "49aac40c459afe920b809312c19a3ede", "score": "0.70028317", "text": "public function editar() {\n\t\t$POST = array();\n\n\t\t\t##apagando indice de tokenrequest pois ele não existe na tabela de categorias\n\t\tunset($this->request->data['TokenRequest']);\t\n\n\t\t$POST = array('UsuarioCliente'...
2d4c363e216cb6a58ffc4655356468f0
This is a callback is called when an exception is caught
[ { "docid": "2eaaa33f090b63df8ea683205c197fcf", "score": "0.56355757", "text": "public function errorHandler(\\Exception $exception): void\n {\n }", "title": "" } ]
[ { "docid": "3acdef55ee5bbc66b36fbade25604646", "score": "0.7198249", "text": "abstract public function onError(\\Exception $e);", "title": "" }, { "docid": "82e7a1295c367f9fbd71ab24ce8283ec", "score": "0.71001595", "text": "public function onUnhandledException(\\Exception $e);", ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "90f2b47cbbc9d8676b23f2495f6791eb", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n $income = Income::find($id);\n $validator = Validator::make($request->all(), [\n 'source' => 'required|string',\n 'description' => 'required|s...
[ { "docid": "b8af9491d409a852eeea996523d9e2fa", "score": "0.7262445", "text": "protected function updateResource()\n {\n $this->context->resource->fill($this->context->input);\n $this->applyHooks(BeforeUpdate::class);\n $this->applyHooks(BeforeSave::class);\n $this->context...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id ...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "f5d9dd6b8b8d227d153c5c3021aa0e1c", "score": "0.0", "text": "public function edit($id)\n {\n $course = $this->course->find($id);\n return view('admin.courses.edit', compact('course'));\n }", "title": "" } ]
[ { "docid": "63925fbab89765f6ec514208a03fc871", "score": "0.78354216", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "tex...
47f956d093fee9b4b5c7755f7f962f05
This function is used to load the add new form
[ { "docid": "a200809c8fd3c0727b10238043157360", "score": "0.0", "text": "function addNew()\r\n {\r\n if($this->isAll() == TRUE)\r\n {\r\n $this->loadThis();\r\n }\r\n else\r\n {\r\n $this->load->model('payment_model');\r\n\t\t\t$vendor=$this->ve...
[ { "docid": "b50aef531ca5d7a732c35cd6fea14e66", "score": "0.8149655", "text": "public function addForm()\n {\n $this->view->addForm();\n }", "title": "" }, { "docid": "b50aef531ca5d7a732c35cd6fea14e66", "score": "0.8149655", "text": "public function addForm()\n {\n ...
0eb9813d4a61366dda09c3844f78aaa7
Sets value based on offset.
[ { "docid": "cd809ebe9b6b877e06a5d5b9616c9191", "score": "0.0", "text": "public function offsetSet($offset, $value)\n {\n if (is_null($offset)) {\n $this->container[] = $value;\n } else {\n $this->container[$offset] = $value;\n }\n }", "title": "" } ...
[ { "docid": "9150a2ae41a7662976cf8bb4f700b701", "score": "0.8220162", "text": "public function offsetSet( $offset, $value ) {\n\t\t$this->$offset = $value;\n\t}", "title": "" }, { "docid": "93aebd3c1bb2bd78bf6c1632cc4a036e", "score": "0.8192748", "text": "public function offsetSet( $o...
aae98a670cedd9ddb109745efd3f270c
check consignee has associated data with it
[ { "docid": "c73706c2134a22ee9d1eda627a8e05f1", "score": "0.5409649", "text": "public function delete_consignee($consignee_id, $user_id){\n $query = \"SELECT sl_num FROM contact_person_details WHERE parent_organization_id='$consignee_id'\";\n\n $result = $this->connection->query($query);\n\n ...
[ { "docid": "8ae296ec5807303b42a53ec7f5feea0e", "score": "0.6238963", "text": "public function checkOwnership() {\n $query = Collection::find()\n ->where(['id', $this->id])\n ->where(['user_id', Yii::$app->user->identity->id]);\n\n if (!empty($query)) {\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": "7e42fedef6bb33a605a9a912390eb1f7", "score": "0.72865677", "text": "public function store($data, Resource $resource);", "title": "" }, { "docid": "151a5a15a7c013546a09c2e74ab5ea61", "score": "0.7145327", "text": "public function store()\n {\n /* Check if logged i...
50b7e01027239544d7e893c272a42e85
Fetches the model data from the API.
[ { "docid": "9ce828a0fef7b2b873c13d4e8e96a040", "score": "0.0", "text": "abstract public function fetch(): object;", "title": "" } ]
[ { "docid": "0e7de72bdb5d29b11d882da4f30d1b30", "score": "0.6890905", "text": "protected function _fetchData()\n {\n $helper = Mage::helper('pptrack');\n $res = $helper->getTrackingInfo($this->getCarrierCode(), $this->getCode());\n\n //map new data to current model\n if ($r...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "e016bf8c4edd61cf1b6f7ce6ec583207", "score": "0.0", "text": "public function index()\n {\n $productos = Producto::all();\n return view('productos.index', compact('productos'));\n }", "title": "" } ]
[ { "docid": "1d35b0b22ac44c3da96756e129561d1e", "score": "0.7596873", "text": "protected function listAction()\n {\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->config['list']['max_results'...
fe99bafe9af7955b9e032d7e04d7cc3c
Subtracts its second argument from its first argument.
[ { "docid": "ad69f8ef3907177becb2dc2f0f40e167", "score": "0.7233278", "text": "function subtract($a = nil, $b = nil)\n{\n return curryN(2, 𝑓subtract, [$a, $b]);\n}", "title": "" } ]
[ { "docid": "a05407afe5b672605f5e77c8de8abb9a", "score": "0.7418359", "text": "protected static function __subtract($a, $b) {\n\t\treturn $b - $a;\n\t}", "title": "" }, { "docid": "0b93123e2764cbbf5c7a47b8a20f2795", "score": "0.71957195", "text": "function substract ($num1, $num2) {\n...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "96734f6f2d06d11bae1622be3e142605", "score": "0.0", "text": "public function rules()\n {\n return [\n 'title' => 'required|string',\n 'slug' => [\n 'required',\n 'string',\n Rule::unique(\n ...
[ { "docid": "6a728d07d2855b119752337cf27dee41", "score": "0.8343512", "text": "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "title": "" }, { "docid": "5c5546d6ad190ce5c7ec85b96ea733d9", "score": "0.8073574"...
ef47f73000a1a8fb7aa44c9693558cca
Inserts a new meta entry for the legend item
[ { "docid": "6e153e325aba15b5094b464c38a40225", "score": "0.77480525", "text": "function wpsbc_add_legend_item_meta( $legend_item_id, $meta_key, $meta_value, $unique = false ) {\r\n\r\n\treturn wp_simple_booking_calendar()->db['legend_itemmeta']->add( $legend_item_id, $meta_key, $meta_value, $unique );\r...
[ { "docid": "9cc475ca21bed2e6832fa33aa29ec23a", "score": "0.6520055", "text": "function wpsbc_insert_legend_item( $data ) {\r\n\r\n\treturn wp_simple_booking_calendar()->db['legend_items']->insert( $data );\r\n\r\n}", "title": "" }, { "docid": "40474aad0708439df661c634dcfe75d3", "score": ...
bf27c22b4ad06b5c7609d2be4d8d10af
Form callback wrapper: create or edit a thumbwhere_host.
[ { "docid": "3678ea4a8ccc92a05d1e756100de5c5b", "score": "0.73248774", "text": "function thumbwhere_host_form_wrapper($thumbwhere_host) {\n // Add the breadcrumb for the form's location.\n thumbwhere_host_set_breadcrumb();\n return drupal_get_form('thumbwhere_host_edit_form', $thumbwhere_host);\n}", ...
[ { "docid": "759ef77996b0996b837802d94088b243", "score": "0.7031163", "text": "function thumbwhere_host_edit_form_submit(&$form, &$form_state) {\n\n $thumbwhere_host = entity_ui_controller('thumbwhere_host')->entityFormSubmitBuildEntity($form, $form_state);\n // Save the thumbwhere_host and go back to ...
be8c120c2df5e4a21d18613a6f9f790d
public static $Fail_Counter = 0;
[ { "docid": "871cf018e118ac3105bfbb6ab79c499d", "score": "0.0", "text": "function __construct() { \n parent::__construct();\n \n $this->load->library('session'); \n $this->load->library('mylibrary'); \n $this->load->library('email');\n ...
[ { "docid": "3997da9f744f6649abdcf171c5e4997d", "score": "0.6855334", "text": "public function getFailureCount()\n {\n return $this->failure;\n }", "title": "" }, { "docid": "3de77ad2aadcf054304d9f646c914658", "score": "0.6846255", "text": "public function getFailureCount...
f07180d14ee0de7bc0f4219a89b36e31
Adds a "successful" flash message to the stack.
[ { "docid": "98d6965b78fcdda2a71d53cb5390eda7", "score": "0.0", "text": "protected function flashSuccess($translationKey, $parameter = [])\n {\n if (!empty($parameter)) {\n $translationKey = $this->getTranslator()->trans(\n $translationKey,\n $parameter,...
[ { "docid": "1a1e703a4b498c2d8ead08f93802cdb6", "score": "0.7070877", "text": "function success($message = null)\n {\n session()->flash('flash', $message);\n session()->flash('flash_level', 'success');\n }", "title": "" }, { "docid": "71774f017d4d558a5b33decbad1beed6", ...
fdaf73daf33999772307b2ec3a788e2a
Get the Admin resources path.
[ { "docid": "1d3bfc057cb25a07d3eb7ef4c5d2cef1", "score": "0.0", "text": "public static function resource_path($path = '')\n {\n return self::app_path(['resources', $path]);\n }", "title": "" } ]
[ { "docid": "76ae89886177f151e226d6739f90b0b7", "score": "0.7018426", "text": "public function resource()\n {\n return resource_path();\n }", "title": "" }, { "docid": "852ce459ba3bc9d528f8e1bb7d5da221", "score": "0.699859", "text": "protected function getListPath()\n ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "887e440753a52c7809d77f65b9ba4a8f", "score": "0.0", "text": "public function show($id)\n {\n $lab = Lab::findOrFail($id);\n $technician = DB::table('users')->where('usertype', User::USER_TECHNICIAN)->get();\n $users = $lab->users;\n return view('lab.show')->with...
[ { "docid": "f379d94fc578937200b5c52c49012541", "score": "0.8565385", "text": "public function display($resource)\t\r\r\n\t{\r\r\n\t\t$this->sm->display($resource);\r\r\n\t}", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function ...
e13028b5d4b23c97306f2d3ef09f4a6a
Get the path to the linked Valet sites.
[ { "docid": "accd111c495b1333faa6ae374ceca84a", "score": "0.72029483", "text": "public function sitesPath($link = null)\n {\n return $this->valetHomePath() . '/Sites' . ($link ? '/' . $link : '');\n }", "title": "" } ]
[ { "docid": "358742caa0d83a674d1d454bf2044486", "score": "0.69826406", "text": "protected function getPathSite() {}", "title": "" }, { "docid": "358742caa0d83a674d1d454bf2044486", "score": "0.69825554", "text": "protected function getPathSite() {}", "title": "" }, { "docid...
17331c52d851c7463177076ed77b66e2
Creates a Study. A resource name will be generated after creation of the Study.
[ { "docid": "85a39a73db9ca4608b6151c9fcf55e25", "score": "0.7326688", "text": "public function CreateStudy(\\Google\\Cloud\\AIPlatform\\V1\\CreateStudyRequest $argument,\n $metadata = [], $options = []) {\n return $this->_simpleRequest('/google.cloud.aiplatform.v1.VizierService/CreateStudy',\...
[ { "docid": "f8139e3fc9989e03ba1a866f39c41cb5", "score": "0.5771045", "text": "public function store(CreateStudentRequest $request)\n {\n $student = $this->studentService->store($request->all());\n\n return new StudentResource($student);\n }", "title": "" }, { "docid": "d8...
ad229e470cdecdd134f8ea0f15b4e67c
setGuarPagerPhone() Set the value of [guar_pager_comment] column.
[ { "docid": "5cc6ef32e5ef2b2e664571fd9a0a9a7d", "score": "0.67768466", "text": "public function setGuarPagerComment($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->guar_pager_comment !== $v) {\n\t\t\t$this->guar_pager_comment = $v;\n\t\t\t$this->modifiedColumns[] = Miss...
[ { "docid": "ffec0ff03b9f66b31dc93a04078d40cb", "score": "0.6662739", "text": "public function setPagerComment($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->pager_comment !== $v) {\n\t\t\t$this->pager_comment = $v;\n\t\t\t$this->modifiedColumns[] = ApplicationPeer::PA...
537d71a4e89c3ab96d512ef9172ede14
if the unique handle/name of the registered script has 'async' in it
[ { "docid": "1c7650f30f45a2543210693daca292d8", "score": "0.5791761", "text": "function add_asyncdefer_attribute($tag, $handle) {\n if (strpos($handle, 'async') !== false) {\n // return the tag with the async attribute\n return str_replace( '<script ', '<script async ', $tag );\n }\n ...
[ { "docid": "8c5c2ebcea69459c8328cbb7a4510e5a", "score": "0.6673449", "text": "function add_async_forscript($url) {\n if (strpos($url, '#async') === false)\n return $url;\n else if (is_admin())\n return str_replace('#async', '', $url);\n else\n return str_replace('#async', '', $url).\"' async...
b8ff632fb483f730d2b2307aa4408be6
Use the EmballageMateriaalOmschrijving relation GsThesauriTotaal object
[ { "docid": "e7c33ef539da2ecd7e04ad4c5d84669f", "score": "0.5693992", "text": "public function useEmballageMateriaalOmschrijvingQuery($relationAlias = null, $joinType = Criteria::LEFT_JOIN)\n {\n return $this\n ->joinEmballageMateriaalOmschrijving($relationAlias, $joinType)\n ...
[ { "docid": "dc53640b134f55ca571e627bb0e7e5c5", "score": "0.6265112", "text": "public function consolaAmistoso(){\n return $this->hasMany(Amistoso::class);\n }", "title": "" }, { "docid": "4af65f963f4a5d4677d722cda5d62ed1", "score": "0.6211402", "text": "public function stok...
9d92a98acbb7804c20611b5c0a6091bc
This method is called by Selio handles nonAJAX request to this page by logging an error and redirecting to front page.
[ { "docid": "065399372e73662ee831d9f488fbc305", "score": "0.0", "text": "public final function GET(...$urlArgs) {\n $message = 'Non-ajax request to AJAX page '. $this->getPageName() .'.php'\n . ' The request headers should have HTTP_X_REQUESTED_WITH set to xmlhttprequest in any letter c...
[ { "docid": "318e9418174385c0e0740cb78f37a5ef", "score": "0.7055887", "text": "private function showErrorPage() {\n header('Location: ' . _CLIENT_URL_ . 'error404/');\n }", "title": "" }, { "docid": "22238ce44f065565f6a3e95865c9f323", "score": "0.67223006", "text": "protecte...
eacf46101d69721ed3521d8cf8a52ea8
Do anything with a the actions generated by the transporter and supported by this analyzer.
[ { "docid": "b85d9261c1bddba2d2a7de257b0ffe9a", "score": "0.0", "text": "public function analyze($action);", "title": "" } ]
[ { "docid": "78156cd442759986945931cdccc1bd8c", "score": "0.63484293", "text": "function proceedSpecificActions() {}", "title": "" }, { "docid": "f88aa018b684a31bfec31468443c8ec0", "score": "0.63438064", "text": "function execute()\r\n {\r\n foreach ($this->data as $actionTy...
71caec52f7fa7040bd10b65e9960a766
Generated from protobuf field string audience = 5;
[ { "docid": "d5856851049bc1b8586e0467c54ef5e7", "score": "0.6006284", "text": "public function setAudience($var)\n {\n GPBUtil::checkString($var, True);\n $this->audience = $var;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "e7476b6cf3ce5c5058ef74b1890ecf0e", "score": "0.6496884", "text": "public function setAudience($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->audience = $arr;\n\n return $this;\n }", "title": "" },...
9813646da90301f34f3a9c67604c86b8
Sets a new value, or updates and existing one. You need to delete your lock during this step if you set one during your get.
[ { "docid": "3620f5239ea60538d0c36b0b045b71c1", "score": "0.55025214", "text": "public function set(string $key, $value, int $timeout = 0, bool $delete_lock = false): bool\n\t{\n\t\ttry\n\t\t{\n\t\t\t$this->_Base->cache()->server($this->_server_identifier)->connect();\n\n\t\t\tif($this->_cache_object->se...
[ { "docid": "b4c24fb9f01c66f9a278ac4014cb8746", "score": "0.63183594", "text": "public function lock_update() {\n\t\t\tset_transient( 'dfm_lt_' . $this->key , $this->lock_key, 400 );\n\t\t}", "title": "" }, { "docid": "1788f632b110aa041d8ae21d2599de91", "score": "0.62254757", "text": ...
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": "d81e3224b1120228a27703aa880e68ba", "score": "0.8401071", "text": "public function authorize()\n {\n if ($this->user() !== null) {\n return true;\n }\n return false;\n }", "title": "" }, { "docid": "4c4fbdb895548c0ca03ecf5e521e4d5e", "scor...
2f4c824c9b4947de75df3a99094ea48a
/ Copyright (C) 2015 xiuno.com
[ { "docid": "47404f3f02e86f79eef7f6786b3e904a", "score": "0.0", "text": "function form_radio_yes_no($name, $checked = 0) {\n\t$checked = intval($checked);\n\treturn form_radio($name, array(1=>lang('yes'), 0=>lang('no')), $checked);\n}", "title": "" } ]
[ { "docid": "f47a22bbb5af7c17c5b49bfd04a7d718", "score": "0.6486832", "text": "private function vzdy()\r\n\t{\r\n\r\n\t}", "title": "" }, { "docid": "3b1dcccf4b5a98484cf2109c65a10f42", "score": "0.6255445", "text": "public function extact();", "title": "" }, { "docid": "f0...
6ecce7c3ea53d42c7ad831f1dd20ee82
Get version of Gravity Forms database.
[ { "docid": "0562f10c90168ea19ac3188c4f51b24c", "score": "0.8558286", "text": "public static function get_gravityforms_db_version() {\r\n\r\n\t\treturn method_exists( 'GFFormsModel', 'get_database_version' ) ? GFFormsModel::get_database_version() : GFForms::$version;\r\n\r\n\t}", "title": "" } ]
[ { "docid": "e0381ef27df83bd37c0dd4b7b5e251ed", "score": "0.764711", "text": "abstract public function get_db_version();", "title": "" }, { "docid": "6ca602b87f161a5d4bf5d4df703b7397", "score": "0.7506898", "text": "function df_get_database_version($db=null){\n\t\tif (!$db ) $db = df_...
5afc77b257454ad5b7af7a5c43eeb659
this up() migration is autogenerated, please modify it to your needs
[ { "docid": "21f0c538c59b3507279e7163fbf2ab48", "score": "0.0", "text": "public function up(Schema $schema) : void\n {\n $this->abortIf($this->connection->getDatabasePlatform()->getName() !== 'mysql', 'Migration can only be executed safely on \\'mysql\\'.');\n\n $this->addSql('ALTER TABL...
[ { "docid": "c843feb5cfdf27da4bd79bf943cfe611", "score": "0.81129295", "text": "public function up(){}", "title": "" }, { "docid": "20b3078116cca0d8f0cbce1a8d663632", "score": "0.79145443", "text": "abstract public function up();", "title": "" }, { "docid": "38ce4802a1e1a8...
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "a5a850f8ff592b280626c102caed0e5e", "score": "0.0", "text": "public function index()\n {\n $ekspedisi = DB::table('ekspedisis')\n ->orderBy('id', 'desc')\n ->get();\n // dd($ekspedisi);\n return view('backend.setting.ekspedisi.index',[...
[ { "docid": "668adb72c054c8a9381a86c50205d18c", "score": "0.77509487", "text": "public function index() {\n $data = $this->superAdminRepository->getDashBoardData();\n return view(\"admin.dashboard\", $data)->with('title', 'Dashboard');\n }", "title": "" }, { "docid": "1b59f15...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "f8822cf183353d0def7285581d87ecd6", "score": "0.0", "text": "public function edit_account(Admin $admin)\n {\n $admin = $this->admin->getData($admin->id);\n $options = ['content_header' => '後台帳號管理', 'can_edit' => true];\n\n return view('admin.setting.account_detail', co...
[ { "docid": "a6688716096de732ac676d2606652404", "score": "0.7856558", "text": "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', ['resource' => $resource]);\n }", "title": "" }, { "docid": "5781a2d120285a71e7e85b5a66be6d25", "score": "0.783066...
f56551e46b3a240b261af841a94572bd
store the quotation with data
[ { "docid": "67d5d4ebdc9734799cc180cc79f5c952", "score": "0.0", "text": "public function store(Request $request)\n {\n //validate the user input data\n $request->validate([\n 'name' => 'required',\n 'phone' => 'required',\n 'proId' => 'required',\n ...
[ { "docid": "8e6eca608142df196e2e9ac906ea6f5e", "score": "0.69709235", "text": "private function addQuotationData()\n {\n\t\tif(\\Cart2Quote\\License\\Model\\License::getInstance()->isValid()) {\n\t\t\t$quoteData = $this->quoteSession->getData(\n \\Cart2Quote\\Quotation\\Model\\Session::QUO...
a5f833ccbc9fccf417e1c334f523f32b
returns the name of the browser the user uses
[ { "docid": "396e6f6fc5c99138c134bdb1301eed82", "score": "0.8671916", "text": "static public function getBrowserName() {\n\t\treturn (string)self::$browser_name;\n\t}", "title": "" } ]
[ { "docid": "a05d4da48173dedea684935ad7165879", "score": "0.8524567", "text": "public function getBrowserName()\n {\n return $this->browser;\n }", "title": "" }, { "docid": "4ab0dc6dc651a21de8d9154d2d36adec", "score": "0.83245575", "text": "private function getBrowserName()\n ...
03c661f5664214d3659bb15e7814ac3e
put your code here
[ { "docid": "22ffe6b5ca6dd90cde2d454289036b65", "score": "0.0", "text": "public function __construct() {\r\n $this->name = \"Focus IV\";\r\n }", "title": "" } ]
[ { "docid": "82f5f02e874dc6750754ae1169bbd6ae", "score": "0.6258016", "text": "public function script() {\n\t\t\n\t}", "title": "" }, { "docid": "d04cb977d383adae094fbaf6190161c6", "score": "0.61647755", "text": "public function code()\n {\n }", "title": "" }, { "doc...
a8d93f25c0c8adcda92286694c0ceb45
Specifies the access control rules. This method is used by the 'accessControl' filter.
[ { "docid": "e9969bd3c36e341273ce3fdf68e0397f", "score": "0.0", "text": "public function accessRules() {\n return array(\n array('allow',\n 'actions' => array(\n 'Index',\n 'Add',\n 'Edit',\n 'JSt...
[ { "docid": "03d3796f16fc3430506cfb33909d31e2", "score": "0.7199416", "text": "public function accessRules() {\n return array(\n array('allow',\n 'roles'=>array('Admin'),\n ),\n array(\n 'deny',\n ),\n );\n }", ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "4a2bb5d605a985c476915ba87665711a", "score": "0.0", "text": "public function index()\n {\n //return view('app.users.index');\n\n $users = User::all();\n return view('app.users.index', [\n 'users' => $users\n ]);\n\n }", "title": "" } ]
[ { "docid": "e5e7384bd73dca78941fcbd89a202b70", "score": "0.7997081", "text": "public function action_listing() {\n\t\t$this->_content('listing', $this->_instances(), true);\n\t}", "title": "" }, { "docid": "5843220cf684a1a73c04dea06b179c98", "score": "0.77250284", "text": "public fun...
081ad5601ef12e20af98517bd52a89dc
variable to connect to the database
[ { "docid": "71486da11efbfa9a44bd1a25f67b5158", "score": "0.0", "text": "function printComments(){\n $mysqli = mysqli_connect(\"localhost\", \"jas6531\", \"web2database\", \"jas6531\");\n\n if(!$mysqli){\n \t echo \"Connection failed: \" . mysqli_connect_error();\n \t die();\n ...
[ { "docid": "58875032abe9f2a9cc93378d62fc1aee", "score": "0.76410043", "text": "public function connectDB() {\n\t\tswitch($this->getDatabaseType()) {\n\t\t\n\t\t\t//mysqli\n\t\t\tcase \"mysqli\":\n\t\t\t\t$this->_dbConn = new mysqli($this->getHost(),\n\t\t\t\t\t$this->getUser(),\n\t\t\t\t\t$this->getPass...
2a8e35b1f1475f3ff40c44832b88e9a8
Filter array within array with specific value in specific key Filter $Arr whom have $Key with value of $Val return an ARRAY containing the Array(s) mathching with the search criteria
[ { "docid": "56e29238879ba62c61d6e8fbb463d6bb", "score": "0.8151494", "text": "function FilterArray($Arr,$Key,$Val){\r\n $Returned = array();\r\n foreach($Arr as $x){\r\n if($x[$Key]==$Val) { array_push($Returned,$x); }\r\n }\r\n return $Returned;\r\n}", "title": "" } ]
[ { "docid": "479d0de1e0435f7375fb8d30c29325e7", "score": "0.7146837", "text": "function filterarraybykey($array,$key,$val) {\n\t\treturn array_filter($array,function($row) use($key,$val) {\n\t\t\t// return value in array if the key:value pair matches the passed arguments\t\n\t\t\treturn $val==$row[$key];...
3c7fe54febfcc5449acc9c7eb54438a5
/ | | Get | | | Get the results. At least one criteria must be provided |
[ { "docid": "8cae08e7ef8c49e1fbae84c5e9614b1d", "score": "0.0", "text": "public function get() {\n\n if (!$this->hasSearchParameters()) {\n throw new \\Exception('At least one criteria must be provided to search groups.');\n }\n\n $this->addSearchParam('page', $this->page)...
[ { "docid": "03b146d765bc19b2436a9fe43b75df14", "score": "0.73906225", "text": "abstract public function getResults();", "title": "" }, { "docid": "6879f873c3730af07b49d372a20f87ec", "score": "0.7337923", "text": "public function getResults();", "title": "" }, { "docid": "...
711ee163f8789773e90c496d8c739e4d
/ Cek Login User
[ { "docid": "0e8f518b049c7acc1b95866b34833655", "score": "0.0", "text": "public function cekLogin(){\n if(Yii::$app->user->isGuest){\n $this->redirect(['site/login']);\n }\n }", "title": "" } ]
[ { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.8100475", "text": "public function login();", "title": "" }, { "docid": "fa8674232e2f129f4ea71524a4f8fd06", "score": "0.8100475", "text": "public function login();", "title": "" }, { "docid": "fa8674232e2f129f4ea7...
c0a258ee7aba80c72ed82c68d75ecfd9
Auto generated seed file
[ { "docid": "694d9413b2167c9932ead8437e6cf042", "score": "0.0", "text": "public function run()\n {\n \n\n \\DB::table('users')->delete();\n \n \\DB::table('users')->insert(array (\n 0 => \n array (\n 'id' => 1,\n 'name' =>...
[ { "docid": "b2e172d36a4e20778bf4333a9b38bf2e", "score": "0.72494805", "text": "public function seeder(): void\n {\n }", "title": "" }, { "docid": "18dd3ff35de531e23cc9cc85fe6861f7", "score": "0.7190678", "text": "public function seed()\n {\n\n }", "title": "" }, {...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "929e89fd39fa2de9a7fda7b2abc2c945", "score": "0.0", "text": "public function create()\n {\n return view('projeto.create', [\n 'cliente' => Cliente::pluck('nome', 'id')\n ]);\n }", "title": "" } ]
[ { "docid": "cb267e3ebbd54b9945858b4232a6e394", "score": "0.7783007", "text": "public function create()\n {\n return view('admin.resource.create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.77269477", "text": "public function create()...
0d4c4733c6ba0028f611cff1f8ff89f1
Save superior resource types to cache (update if exist).
[ { "docid": "fc49eb53c814053c3f13c954b96641b0", "score": "0.5997828", "text": "public function saveSuperiorResourceTypes(iterable $resources, int $resourceType): void;", "title": "" } ]
[ { "docid": "f1405fdf6963039d0c1976d1adc29d4a", "score": "0.5452027", "text": "public function cache_save() {\n\t\t$class = get_called_class();\n\t\t$id = $this->id;\n\t\t$key = $class.'::id::'.$id;\n\t\t\n\t\t$class::_cache_set($this, $key);\n\t}", "title": "" }, { "docid": "c6b1260ec288d99c...
5c6a68ba29434a86b872ad664af820d6
Get query for perform advanced single document update
[ { "docid": "baebb2d38854b48ea24d90b54a3c3a9e", "score": "0.63811386", "text": "public function updateQuery(): ElasticsearchUpdateQuery\n {\n return (new ElasticsearchUpdateQuery($this->client, $this->mapper))\n ->from($this->mapper->configuration()->index())\n ;\n }", ...
[ { "docid": "ceb3cc44454a5f2ac30c140f820ac164", "score": "0.62809306", "text": "public function createUpdateQuery()\n {\n return new ezcQueryUpdate( $this );\n }", "title": "" }, { "docid": "bfae9e030514ba9e82f6f4d06b2dfbff", "score": "0.62288016", "text": "public functio...
1b39e02288f33f806d95ffad0bcd4534
Seed the application's database.
[ { "docid": "0d2a4c97233bbf30b51f041cc6ffddc4", "score": "0.0", "text": "public function run()\n {\n \\App\\Player::factory()->count(500)->create();\n \\App\\School::factory()->count(9)->create();\n \\App\\Tournament::factory()->count(50)->create();\n \\App\\User::factory()...
[ { "docid": "2d25564bcd887770f1d18e0a18ad8e56", "score": "0.79171", "text": "protected function seedDatabase()\n {\n // ...\n }", "title": "" }, { "docid": "fd7776f672f19c55bc854ee043aa0f77", "score": "0.7882304", "text": "protected function setUpDatabase()\n {\n ...
d08c5cbe96f68c3788c6eb271a64e24b
Sets level of logging
[ { "docid": "bd7a7fab76c997c7b0871f1dc6e4393e", "score": "0.6909382", "text": "public static function setLevel($level) {\n self::$level = $level;\n }", "title": "" } ]
[ { "docid": "4706ae7d68b15373a0491a4a3e47542e", "score": "0.78726333", "text": "public function setLoggingLevel($level)\r\n {\r\n $this->loggingLevel = $level;\r\n }", "title": "" }, { "docid": "81a7bee2c1b7f493b957c40a115e4fb3", "score": "0.7744335", "text": "public funct...
1b2a42208f4be7daa2dce2cac3c5f077
Returns number of records in table
[ { "docid": "87fd61083edc2570a7c2c5a9181d27ff", "score": "0.0", "text": "public function rowsCount($table, $field = 'id')\n {\n $select = $this->queryFactory->newSelect();\n $column = \"COUNT({$field})\";\n\n $select\n ->cols([$column])\n ->from($table);\n ...
[ { "docid": "0339ad09bb769e2d218919024052d84e", "score": "0.82002044", "text": "public function getRecordCount();", "title": "" }, { "docid": "0339ad09bb769e2d218919024052d84e", "score": "0.82002044", "text": "public function getRecordCount();", "title": "" }, { "docid": "...
d6de4af6011bc3f027a1a149225a8207
Set navbar Active State
[ { "docid": "1217048648a44a4ce62d7aa1e3090482", "score": "0.66793907", "text": "function e7a9_set_nav_active($classes) {\n\tif (in_array('current-menu-item', $classes)) {\n\t\t$classes[] = 'active ';\n\t}\n\treturn $classes;\n}", "title": "" } ]
[ { "docid": "4813d8fae235b5ae7d37f55ffa414e63", "score": "0.7015219", "text": "function setActive() ;", "title": "" }, { "docid": "97e3a5091e8804329b4921edf8f17a26", "score": "0.6910637", "text": "public function setActive() {}", "title": "" }, { "docid": "ef426e6c0d031739...
ecbc6e5ed661c976e31196e933f0fbe3
Get the Builder storage path (create if it doesn't exist).
[ { "docid": "055acb152fd9699c8e8fd275f7be73a9", "score": "0.67652327", "text": "protected function getBuilderPath($path = '')\n {\n $path = $this->application->getStoragePath(_config('config.path').($path ? \"/$path\" : ''));\n\n /* make sure the parent folder is a directory or parent di...
[ { "docid": "740b8fe575e19842735a95e1a1b05989", "score": "0.75183433", "text": "public function storagePath(): string\n {\n return $this->storagePath ?: $this->basePath . DIRECTORY_SEPARATOR . 'storage';\n }", "title": "" }, { "docid": "fac4019683eb31f24fe68509fa402b94", "sco...
7fd31a95e6b99045c418b7e05e09fdb7
If set to true the treelist will display the column menu when the user clicks the chevron icon in the column headers. The column menu allows the user to show and hide columns, filter and sort (if filtering and sorting are enabled). By default the column menu is not enabled.Can be set to a JavaScript object which repres...
[ { "docid": "ca705bbff293390ff53ecba0a86d5bfc", "score": "0.66245234", "text": "public function columnMenu($value) {\n return $this->setProperty('columnMenu', $value);\n }", "title": "" } ]
[ { "docid": "06e026dfc5b905f4441a6c45d3c9c449", "score": "0.6176862", "text": "public function columnMenuInit($value) {\n if (is_string($value)) {\n $value = new \\Kendo\\JavaScriptFunction($value);\n }\n\n return $this->setProperty('columnMenuInit', $value);\n }", ...
148b2a3ec58b0593fa900f88455bb225
/ Store a newly created resource in storage.
[ { "docid": "e767bcc5f78e4cd279e334434226116e", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request,\n [\n 'ProductName' => 'required',\n 'ProductPrice' => 'required',\n 'ProductContent' => 'requ...
[ { "docid": "3142727ee8880b6b9792726e4513dca0", "score": "0.69061303", "text": "public function store()\n {\n $validation = new $this->resourceRequestValidation;\n $this->validate(request(), $validation->rules());\n DB::beginTransaction();\n try {\n $store = $thi...
3a8f85bd530243613e5745027b8d4b6a
Combines selectOne() and selectSingleField() returns a single scalar value from an SQL statement
[ { "docid": "a2f7fe753402a8c9d025843daea9af52", "score": "0.67355883", "text": "public function selectOneSingleField(string $sql, array $bindings = [], string $fieldName = null) : ?string\n {\n $results = $this->selectSingleField($sql, $bindings, $fieldName);\n\n if (empty($results)) {\n...
[ { "docid": "c738e825f56e5adcaa9a4b85f841e473", "score": "0.7584495", "text": "public function selectOne() {\r\n $this->limit(1);\r\n $data = $this->select();\r\n return $data ? $data[0] : null;\r\n }", "title": "" }, { "docid": "f5c77a9c6df9e39f079f01627a925054", ...
76108558bacf93eb89d6d250d92d51ba
SHOW THE FEATURED IMAGE
[ { "docid": "c51e069e20abe33960ee5b21827b445b", "score": "0.6060319", "text": "function ST4_columns_content($column_name, $post_ID) {\r\n if ($column_name == 'featured_image') {\r\n $post_featured_image = ST4_get_featured_image($post_ID);\r\n if ($post_featured_image) {\r\n ec...
[ { "docid": "38d25cad541e6e1d085def74d3395968", "score": "0.66688156", "text": "function quick_view_product_images_markup() {\n\n\t\tinclude CARTFLOWS_PRO_CHECKOUT_DIR . 'templates/quick-view/quick-view-product-image.php';\n\t}", "title": "" }, { "docid": "f618dad9d05875a953751fade97e72aa", ...
64c0e2cdb5209fa8672085b41fa19e49
/ SUB WIDGET FAST EDIT TITLE
[ { "docid": "e6b57cea8d2852abd5496f01c9027406", "score": "0.6348102", "text": "public function postSubWidgetUpdateTitle()\n {\n $value = $_POST['value'];\n $id = $_POST['pk'];\n\n $widgetSubItem = WidgetSubItem::find($id);\n $widgetSubItem->title = $value;\n $widgetS...
[ { "docid": "8702d3a3243074ca1022f44ea6fd4ffb", "score": "0.6635298", "text": "function mu_events_admin_title( ) \r\n{\r\n\techo '<div id=\"icon-edit\" class=\"icon32\"><br></div>' ;\r\n\techo sprintf('<h2>%s <a href=\"%s\" class=\"button add-new-h2\">%s</a></h2>', __(\"Global Events List\", MU_EVENTS_PL...
ebf7f36aee1bcebebd3e49d35b5619df
Returns the result of filtering $value
[ { "docid": "d790bd461fe061aa54353bec5ad2c1e1", "score": "0.58592725", "text": "public function filter($value)\n {\n if (!function_exists('iconv')) {\n throw new Exception\\ExtensionNotLoadedException(sprintf(\n '%s requires iconv extension to be loaded',\n ...
[ { "docid": "5ba4b3dbd5b030814838048d6ff8874d", "score": "0.84610236", "text": "public function filterValue($value): string;", "title": "" }, { "docid": "1dab9a0f91af335f6372051db5fa6bf9", "score": "0.8363803", "text": "public function filter ( $value )\n {\n foreach ( $this...
7140cb295f0d82d074a22992902b0509
Init data of product order detail
[ { "docid": "2c7f093bcda01717237bc23e6336a339", "score": "0.72517616", "text": "public static function initProductOrderDetail($data)\n { \n $fields = array('id', 'order_id', 'item_id', 'quantity', 'price', 'type', 'more_info', 'created_date');\n\t\t\n $rs = array();\n \n ...
[ { "docid": "970bc993fa3151828c4755ef92b74496", "score": "0.7060577", "text": "public function _construct(){\n $infoOrder = Mage::getSingleton('adminhtml/session')->getInfoOrder();\n if($infoOrder == null){\n $orderId = Mage::getSingleton('adminhtml/session')->getOrderViewDetail(...
7358798eda1570ac57e656a6217fd8ee
richiamo il costruttore della classe padre con i suoi parametri
[ { "docid": "1cfecdda2cdac0a56421e3cb56201c16", "score": "0.63723654", "text": "public function __construct($_id_prodotto, $_nome_prodotto, $_categoria, $_marca = null, $_quantita = 0, $_OS, $_dimensione_display, $_ram = 0)\n {\n parent::__construct($_id_prodotto, $_nome_prodotto, $_categoria, ...
[ { "docid": "9e3a3cdb3508cef066fcb46d1f4d6e2a", "score": "0.67033386", "text": "public function __construct( $nombre, $apellido, $edad){\n$this->nombre=$nombre;\n$this->apellido=$apellido;\n$this->edad=$edad;\n }", "title": "" }, { "docid": "85b45c825ccd2cb756a9354dfdb4e4f7", "score":...
0c70389272875937c1e6be443d7f84ee
Returns a boolean value on whether the admin page has registered metaboxes or not.
[ { "docid": "69470bd1ddb319b9960e35a185cd3a0c", "score": "0.79396427", "text": "function has_metaboxes() {\n\t\tglobal $wpf_admin;\n\n\t\tif ( isset( $wpf_admin->metaboxes ) AND isset( $wpf_admin->metaboxes[$this->slug] ) )\n\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}", "title": "" } ]
[ { "docid": "cfb5077d386cacac9055b8b4e9a66dac", "score": "0.7003948", "text": "function get_metaboxes() {\n\t\tglobal $wpf_admin;\n\n\t\tif ( !isset( $wpf_admin->metaboxes ) OR !isset( $wpf_admin->metaboxes[$this->slug] ) )\n\t\t\treturn false;\n\n\t\treturn $wpf_admin->metaboxes[$this->slug];\n\t}", ...
421ba20804e04a353cc83b659de1b62d
Never delete this line!
[ { "docid": "86a5173168ac847a08fce0cec3a04bec", "score": "0.0", "text": "public function Destroy(){\r\n parent::Destroy();\r\n }", "title": "" } ]
[ { "docid": "cf9059c4414c5ad6b02997d5c2d23fd7", "score": "0.63480324", "text": "public function deleteCurrentLine()\n {\n return \"\\33[K\";\n }", "title": "" }, { "docid": "be9074845eb63e4294ecce3319c59550", "score": "0.61314887", "text": "protected function delete_line_...
5debc72a90757019916e204e15f2c641
Set the per deb2.
[ { "docid": "67eccfb1673987be5e00c396fcf5fa1c", "score": "0.4782796", "text": "public function setPerDeb2(?DateTime $perDeb2): LignesMsaEmploye {\n $this->perDeb2 = $perDeb2;\n return $this;\n }", "title": "" } ]
[ { "docid": "6e07f80ba96035acd6c0e039234d6bac", "score": "0.58512294", "text": "public function setPart2()\n {\n }", "title": "" }, { "docid": "e4271f037867d68276db0019a4f04631", "score": "0.5628369", "text": "public function setPuertoBD($puertoBD){\t\n\t\t\t$this->puertoBD=$pue...
f1439f223f9a0651b537d1fdc5f17e97
Filter the query by a related User object
[ { "docid": "15bc00dfb33ccd02cf70e2e2594b3461", "score": "0.0", "text": "public function filterByUserRelatedByUpdatedBy($user, $comparison = null)\n {\n if ($user instanceof User) {\n return $this\n ->addUsingAlias(TeamMemberFunctionPeer::UPDATED_BY, $user->getId(), $c...
[ { "docid": "7c23fd3b7b30fece33cf989832fac677", "score": "0.6667959", "text": "public function whereUser($id)\n {\n $docs = $this->model->whereHas('users', function($query) use ($id) {\n $query->where('user_allowed_id', $id);\n })->paginate(12);\n return $docs;\n ...
d38535ae3f42a31cd23ed970b67d4406
This is the location the IdP will send its response to.
[ { "docid": "1ff05cf09bb5d87cad1b363ee24ac385", "score": "0.0", "text": "public function getAssertionConsumerServicePostEndpoint(array $options = [])\n {\n return $this->getResourceProperty(self::ASSERTION_CONSUMER_SERVICE_POST_ENDPOINT, Stormpath::ASSERTION_CONSUMER_SERVICE_POST_ENDPOINT);\n ...
[ { "docid": "02e2fc730ef7c41e3321e8a89cb15492", "score": "0.5910689", "text": "function respondResponse()\n {\n }", "title": "" }, { "docid": "c8f06782b6f55e3891111957290fd837", "score": "0.5853478", "text": "function email_response() {\n\t\t$this->autoRender = false;\n\t\t\n\t\...
ea317da8f319375cd232dc4fe186afff
Dump information about a variable
[ { "docid": "578cc27951e1950cd9ed97dd7e103d3e", "score": "0.0", "text": "public static function dump($variable, $caption = null)\n {\n // don't dump anything in non-development environments\n if ('APPLICATION_ENV' == 'development') {\n return;\n }\n\n // prepare ...
[ { "docid": "789d8218ab4fe78d0f5abd038f5da618", "score": "0.7746528", "text": "function dump($var, $info = false) {\n global $h;\n if (!empty($h) && method_exists($h, 'debug')) {\n $h->debug($var);\n }\n}", "title": "" }, { "docid": "ee78abf0e480599b998dba143abb85ab", "sco...
cf85a1b3ca088add4a77987ca4e2fb3c
the functions below are not intended for production. DO NOT USE!
[ { "docid": "48fadd8b6d0a9809dabd3b3666dce202", "score": "0.0", "text": "public function getRow($sql) { return $this->getAll($sql,'one'); }", "title": "" } ]
[ { "docid": "17a81da43ec8b6dba44027fd25f2f452", "score": "0.55425084", "text": "private function fixInconsistencies() {\n }", "title": "" }, { "docid": "dd5c03818101b23a0adb8ccde3668608", "score": "0.54823405", "text": "function fix_comp_1_1_5() {\r\n }", "title": "" }, {...
5295a6c95ee56c0a286170cbb8947091
Metodo Publico Cargador($Inicializar = false) Genera el proceso de carga inicial
[ { "docid": "9285f59972f6191fffff91f489ad3520", "score": "0.6986025", "text": "public static function Cargador($Inicializar = false) {\n\t\t\tif($Inicializar == true) {\n\t\t\t\tself::Cargarlibrerias();\n\t\t\t}\n\t\t}", "title": "" } ]
[ { "docid": "a82a903f23376012762cb12382e2b1e5", "score": "0.7135835", "text": "function iniciar_contexto_proyecto_cargado()\r\n\t{\r\n\t\tif(!self::acceso_recursivo()){\r\n\t\t\tself::incluir_path_proyecto_cargado();\r\n\t\t\t$info = toba::proyecto()->cargar_info_basica(self::get_proyecto_cargado());\r\n...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "1537a8ad1aa3a1d33777e5358913e520", "score": "0.0", "text": "public function run()\n {\n for ($i=1; $i <= 1000; $i++) {\n\n $task = new Task;\n $task->title = \"Task $i\";\n\n $faker = Faker::create();\n // $task->description = $faker->rea...
[ { "docid": "5276fa926c7c0e25eef6eaa079aab740", "score": "0.8033761", "text": "public function run()\n\t{\n\t\t// $this->call('UsersTableSeeder');\n\n\t\t// Truncamos los datos de los modelos y insertamos de nuevo en cada seed\n\t\tDB::statement('SET FOREIGN_KEY_CHECKS = 0');\n\t\tEstudiante::truncate();...
5afc77b257454ad5b7af7a5c43eeb659
this up() migration is autogenerated, please modify it to your needs
[ { "docid": "656ae20bf1ba3890e0a0f64cd0943bb0", "score": "0.0", "text": "public function up(Schema $schema): void\n {\n $this->addSql('CREATE TABLE building (id INT AUTO_INCREMENT NOT NULL, manager_id INT DEFAULT NULL, name VARCHAR(200) NOT NULL, phone VARCHAR(10) NOT NULL, city VARCHAR(50) NOT...
[ { "docid": "20b3078116cca0d8f0cbce1a8d663632", "score": "0.7914959", "text": "abstract public function up();", "title": "" }, { "docid": "7bb169a05d6ff9b20f86ebad58efea15", "score": "0.7839189", "text": "public function up() {}", "title": "" }, { "docid": "2b6b08a052405f5...
04fb1302229a876416289558b9aa6520
The Gateway requires a an ldap connection
[ { "docid": "46292c7a9d295da95be433c7185d9903", "score": "0.62510026", "text": "public function __construct()\n {\n $this->init_ldap();\n }", "title": "" } ]
[ { "docid": "a48c5c57fcd1d10cf8e6ab216505ec56", "score": "0.70399195", "text": "function ocf_ldap_connect()\n{\n\tglobal $LDAP_CONNECTION;\n\t$LDAP_CONNECTION=ldap_connect(get_option('ldap_hostname'));\n\n\tif ((get_option('ldap_is_windows')=='1') && (function_exists('ldap_set_option')))\n\t{\n\t\tldap_s...
78125fe36c175d9b73afda3d39659c22
rowsAffected get the last value saved for rows affected.
[ { "docid": "8b25cfb0f17ee24ce2e25bc1003cdfd6", "score": "0.7591813", "text": "public function rowsAffected() {\n return $this->rows_affected;\n }", "title": "" } ]
[ { "docid": "04039feff877134f194e2215c4a57e50", "score": "0.7991181", "text": "function lastAffected ()\n {\n return $this->_adodb->Affected_Rows();\n }", "title": "" }, { "docid": "c1103b963067a264df9c818559c83f06", "score": "0.7979652", "text": "public function lastAffect...
be1b4cf341baa803be8e27dd434ef2da
Return element the iterator points to.
[ { "docid": "2024bf49fb1036374b9a84d248e9c144", "score": "0.0", "text": "function &current ()\n {\n abstract::call_pure_virtual ('current');\n }", "title": "" } ]
[ { "docid": "6b0de8369e254089e392fc63887e6c4a", "score": "0.7771353", "text": "private function getCurrentElement()\n {\n return $this->iteratorCacheIterator->current();\n }", "title": "" }, { "docid": "8b889b834a29ddf997c2bd4758e2c8f1", "score": "0.7652126", "text": "pub...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "b47feb43b462361562d06390c796bbd3", "score": "0.0", "text": "public function create()\n {\n return view();\n }", "title": "" } ]
[ { "docid": "79bd06c9a9147df30474aace0ff64511", "score": "0.765267", "text": "public function create()\n\t{\n\t\treturn View::make('secureadmin.resources.create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.7570936", "text": "public function creat...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "9b47c918056858ef14b85bd8a41414c1", "score": "0.7020616", "text": "public function showAction(Humanresource $hu...
a29dc0b999f182a1f0fcab7200757c74
Find all members with a name matching the given SQL LIKE string.
[ { "docid": "814a9b3bd0be3e9c6c6815129b56b6e9", "score": "0.62985384", "text": "function get_matching_members($pattern,$limit=NULL)\n\t{\n\t\t$rows=$this->connection->query('SELECT * FROM '.$this->connection->get_table_prefix().'users WHERE username LIKE \\''.db_encode_like($pattern).'\\' AND user_id<>'....
[ { "docid": "ae225b5316865ce7e14aee95f60f903a", "score": "0.67931277", "text": "function findMembers($names, $use_wildcards = false)\n{\n\tglobal $db_prefix, $scripturl, $user_info, $modSettings;\n\n\t// If it's not already an array, make it one.\n\tif (!is_array($names))\n\t\t$names = explode(',', $name...
c2fe152262f9ac9cb353fb3b99001486
Show authenticated user belongings
[ { "docid": "e9d346705611b0c3a4d3c6bd4a2d307f", "score": "0.6787246", "text": "public function showBelongings(Request $request)\n {\n $user = $request->user();\n $belongings = $user->belongings;\n $sideBarMode = \"closed\";\n \n return view(\"user.belongings\...
[ { "docid": "4c0624e547b83a568baf4e415493c267", "score": "0.6630198", "text": "public function show()\n\t{\n\t\treturn $this->respondWithItem(Auth::user(), new UserTransformer);\n\t}", "title": "" }, { "docid": "4306c4057c8a635ab973493ff6c1299d", "score": "0.6608132", "text": "public ...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "5451c181f757dae340c1f306c524dcdf", "score": "0.0", "text": "public function store(Request $request)\n {\n \n $cep = $request[\"cep\"];\n\n if(!strpos($cep, '-')){\n $cep1 = substr($cep, 0, 5);\n $cep2 = substr($cep, 5, strlen($cep));\n ...
[ { "docid": "08bf051ddd8fb321ee757b920958e19f", "score": "0.7097883", "text": "public function save()\n {\n if($this->saved()) $this->client->put($this->router->path($this->_id), $this->attributes);\n else {\n // create the resource\n $response = $this->client->post...
e0ac26c1d4e411984c136bbeec77f2a9
Validates an expression, populating a ValidationContext with any violations
[ { "docid": "5338dc28e3158c3d581bbca0caa7627a", "score": "0.44939625", "text": "public function validate(ActNodeInterface $actNode, EnvironmentNode $environmentNode);", "title": "" } ]
[ { "docid": "87eda06add3bd1d0cda804c82bc22c64", "score": "0.61451733", "text": "public function validateExpression(\n ExpressionNodeInterface $expressionNode,\n ValidationContextInterface $validationContext,\n $contextDescription\n );", "title": "" }, { "docid": "2c8f1...
22a7040e7c00d1cc88df3a26743e5906
Load the lost password email template
[ { "docid": "314e6d4b1ebb078e59408dfdce69f08a", "score": "0.7012861", "text": "function hma_lost_password_email( $message, $key ) {\n\n\t$user = get_user_by_email(trim($_POST['user_login']));\n\t$reset_url = get_bloginfo( 'lost_password_url', 'display' ) . '?action=rp&key=' . $key . '&login=' . $user->us...
[ { "docid": "3756d90da9b933afe9fcafb25f3f9e3a", "score": "0.67789984", "text": "function Trigger_ForgotPassword_Email(&$tNG) {\r\n\r\n $emailObj = new tNG_Email($tNG);\r\n\r\n $emailObj->setFrom(\"{KT_defaultSender}\");\r\n\r\n $emailObj->setTo(\"{email}\");\r\n\r\n $emailObj->setCC(\"\");\r\n\r\n $...
45535c57a7c80512490b6d4114783376
Create and set current user
[ { "docid": "0f2721fec4d71922b6a72633497bec7b", "score": "0.0", "text": "public function set_up_tests() {\n $current_user = $this->factory->user->create(array( 'role' => 'administrator' ));\n wp_set_current_user( $current_user );\n\n // Setup: Create post and setup post variable\n ...
[ { "docid": "9df12284d5e216018322b0471f0641a4", "score": "0.7371553", "text": "protected function set_current_user()\n {\n if (class_exists('Auth'))\n {\n // Load our current logged in user for convenience\n if ($this->auth->is_logged_in())\n {\n ...
4dedd67016cc6386a12a7f8bf1fce881
Log response errors to our file
[ { "docid": "24afe7559178773f158a63096b0b03fe", "score": "0.7296429", "text": "function log_response_error($str)\n{\n $logDir = '../logs';\n\n if (!is_dir($logDir)) {\n mkdir($logDir);\n }\n\n if (!empty($str)) {\n if (is_object($str) || is_array($str)) {\n $str = jso...
[ { "docid": "1dbadd8df915de267e7ea591886619d7", "score": "0.669128", "text": "protected function writeToErrorLog()\n {\n $thrown = $this->thrown;\n\n $message = 'Fault:' . PHP_EOL;\n\n $message .= $this->renderThrowable($thrown);\n\n while ($thrown = $thrown->getPrevious())...
d7ce05fdcabb03ef88dae9bace8cae1c
Return a Unix file upload timestamp.
[ { "docid": "63c479189811d72f9ed027ecfe0beb29", "score": "0.0", "text": "public function time(): int;", "title": "" } ]
[ { "docid": "edb0fe58ad2a0cf2ffff517e13b5e902", "score": "0.7173157", "text": "public function getFileTime() {}", "title": "" }, { "docid": "d1f2d2daddc5fc6bf8b19ddd66ab40ef", "score": "0.7130485", "text": "public function getTimestamp()\n {\n return $this->filesystem->getTi...
434fa2742aa02b8a77661e52e9572405
/ Finish measuring point X
[ { "docid": "ab1adeab900b7da73295f55da5251dd3", "score": "0.5353825", "text": "public function finish()\n {\n $this->finishLastPoint();\n }", "title": "" } ]
[ { "docid": "791dce8a7cd35920564a429606309883", "score": "0.56420606", "text": "function _getPointData($x)\n {\n return false;\n }", "title": "" }, { "docid": "d85166d51b517c5226aaa8d2890594a6", "score": "0.5466854", "text": "function _getPointX($x)\n {\n return...
cbb27d32d75925485ae07ae574a12c1f
Change the project Level
[ { "docid": "9688a980a0420813390c9940a70487ce", "score": "0.610759", "text": "public function setProjectLevel($user_id,$project_id,$data=array()){\r\n\t\t// checking errors\r\n\t\t$user = $this->em->getRepository ('\\App\\Entity\\User')->findOneById ( $user_id );\r\n\t\tif(!$user){\r\n\t\t\tthrow new \\E...
[ { "docid": "322c3797902f5df5e370c1dc2a940404", "score": "0.6777045", "text": "public function setLevel ($newLevel) {\n\t\t$this->_level = $newLevel;\n\t}", "title": "" }, { "docid": "b17c31abb39394a529336cc411b4080b", "score": "0.6461742", "text": "public function setLevel($level);",...
21059efb25d9aa4b1bf6664133b318aa
Initializes all ObjectStorage properties Do not modify this method! It will be rewritten on each save in the extension builder You may modify the constructor of this class instead
[ { "docid": "78bf57b5a71b1107bb4ab29a12ffc3d9", "score": "0.8057649", "text": "protected function initStorageObjects()\n {\n $this->opinions = new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n $this->candidates = new \\TYPO3\\CMS\\Extbase\\Persistence\\ObjectStorage();\n }", ...
[ { "docid": "4840ca8127606dc50952a5a184f5858e", "score": "0.860327", "text": "protected function initStorageObjects() {\n\t\t\n\t\t/**\n\t\t * Do not modify this method!\n\t\t * It will be rewritten on each save in the extension builder\n\t\t * You may modify the constructor of this class instead\n\t\t *...
72700f0e0c8d6cbdd2e5fde2b9708e43
Generate the dropdown field
[ { "docid": "b6307b52d531294f1bef544bfc8e2262", "score": "0.0", "text": "function on_Edit (){\n // Add (none) entry if NULL is allowed\n if ($this->hasAttribute('n')){\n $options[0]=\"(none)\";\n }\n \n $allowed_document_classes=$GLOBALS['module']['mod_userm...
[ { "docid": "7334ee5d6c569563e4b473b3e339fb9e", "score": "0.7585224", "text": "private function dropDownCreator(){\n\n // the we call the dropdown creator\n }", "title": "" }, { "docid": "878f1671e4346afef72ad8bd2bb6e66c", "score": "0.73807985", "text": "public function buildFie...
ef596eed29e6312c9cc662db85a1b11b
Given a list of clients, return only ones with unique UserAgent and IP combinations.
[ { "docid": "118f6457cb7f2e1aa71cef8ea1e0f49b", "score": "0.62475604", "text": "protected function getUniqueListeners($clients): array\r\n {\r\n $unique_clients = [];\r\n foreach($clients as $client) {\r\n $client_hash = md5($client['ip'].$client['user_agent']);\r\n ...
[ { "docid": "437be3ad021bddb76d59f1b429ca71f0", "score": "0.5841135", "text": "public function filterAll(array $client);", "title": "" }, { "docid": "7f1733e6f0843bf1d43315561abb42c5", "score": "0.55055934", "text": "public function filterAll(array $client)\n {\n foreach ($c...
dfd4cbcb3b8739a973a92cfe8f2b1b0f
update Deal Of The Day.
[ { "docid": "eccd79c766dd11405a7798827fcb900f", "score": "0.75161767", "text": "public function updateDealOfTheDay(UpdateDealOfTheDayRequest $request)\n {\n if (update_option_table_record('deal_of_the_day', $request->item_id)){\n return redirect()->route('admin.promotions')->with('su...
[ { "docid": "93287809aac29a13dace3f9060dc94a4", "score": "0.6802584", "text": "public function update(UpdateRequest $request, $id)\n {\n abort_if(!$this->user->roles()->withoutGlobalScopes()->first()->hasPermission('update_deal'), 403);\n if(!$request->has('days')){\n return R...
f810a8e076ed73884276a1bae2e4e21e
Applies the alias of SELECTList and FROM clauses
[ { "docid": "5c92983b394323071eb651dac0809da3", "score": "0.57231885", "text": "function applyAliasNames($tables, $columns){\n $this->_onParseAliases = true;\n if (empty($this->_onUnionSelect)) {\n $this->_selectTableAliases = array();\n $this->_selectColumnAliases = array();\n }\n if ($...
[ { "docid": "bb2e516b7bc46f08ac07afe233dfa672", "score": "0.5912704", "text": "function createSelect() {\n\tglobal $request_select_list_table_alias, $request_select_list_column_name, \n\t$request_select_list_alias;\n\n\t$tableAlias = splitCSV($request_select_list_table_alias);\n\t$columnName = splitCSV($...
7c5abe47353008d4c914a2349fdae084
Garbage collector. Is executed after this class has completed its job and the template has also been displayed.
[ { "docid": "18615a3ffd9d7a694a8fa4ecd50767cb", "score": "0.0", "text": "public function clean()\n\t{\n\t\t(($sPlugin = Phpfox_Plugin::get('cars.component_block_filter_clean')) ? eval($sPlugin) : false);\n\t}", "title": "" } ]
[ { "docid": "398338091ee6a87a323adfc6ff6719c4", "score": "0.7826995", "text": "function __destruct() {\n $this->_template->render();\n }", "title": "" }, { "docid": "e43c0bba6c571036be15d96a99cf0f45", "score": "0.7500643", "text": "public function __destruct()\n {\n ...
6aa0ad01800e271693b5b8f24f7d9854
Determine if a block should be collapsed by default.
[ { "docid": "f28fd14191af41cdd83af730aae56bb0", "score": "0.78244925", "text": "function is_collapsed( $p_block ) {\n\tglobal $g_collapse_cache_token;\n\n\tif( !isset( $g_collapse_cache_token[$p_block] ) ) {\n\t\treturn false;\n\t}\n\n\treturn( true == $g_collapse_cache_token[$p_block] );\n}", "title...
[ { "docid": "8d0fe45383c9d2ef37286303293432fb", "score": "0.7298211", "text": "public function collapsible()\n {\n return ($this->displayType() === 'collapsible');\n }", "title": "" }, { "docid": "e048634dcc4e9874eb455e0c75446b07", "score": "0.6467171", "text": "public fu...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e3d0ccd4ada2dc88b7c57c5065e7e2e8", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n }", "title": "" } ]
[ { "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 ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "375ac27e4fdf5f5831366f4e5659618e", "score": "0.0", "text": "public function show($tour)\n\t{\n\t\t$tour = Tour::findOrFail($tour);\n\t\treturn view('tour.show')->with('tour', $tour);\n\t}", "title": "" } ]
[ { "docid": "d7820004a578ddc16d57dff08d715ef0", "score": "0.70199984", "text": "public function showResource()\n\t{\n\t\treturn view('resources.list')->with('resources', Resources::all());\n\t}", "title": "" }, { "docid": "069b1d099b7ea4aa5397d961e2ee62da", "score": "0.6754976", "text...