query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "5c0d9457ea2a14710eef8fd8ac435b55", "score": "0.0", "text": "public\n function update(Request $request, $id)\n {\n //\n }", "title": "" } ]
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)\n {\n }", "title": "" }, { ...
6f7afb4f679924328ef1291df334d5f8
Test the fixture bcc.eml
[ { "docid": "a593ba179892dbd5b9df4e20412df648", "score": "0.7862054", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"bcc.eml\");\n\n self::assertEquals(\"test\", $message->subject);\n self::assertEquals(\"<return-path@here.com>\", $message->return_pa...
[ { "docid": "3a5c4152d2369b884ba42de1a9b76c91", "score": "0.7463651", "text": "public function testFixture() : void {\n $message = $this->getFixture(\"email_address.eml\");\n\n self::assertEquals(\"\", $message->subject);\n self::assertEquals(\"123@example.com\", $message->message_id...
906fe77948b7463aa1c246bef77dddc3
Calculates total, if payment method is cash 5.00 is added as post payment fees.
[ { "docid": "90ecbc13a91be6b6675e282c2d8b42f1", "score": "0.7073668", "text": "public function calculateTotal($paymentMethod)\n {\n $this->subTotal = 95.00;\n if ('Cash' === $paymentMethod) {\n $this->cashOnDeliveryFee = self::CASH_ON_DELIVERY_FEE;\n }\n\n return...
[ { "docid": "bd0e27346456c0d7c96a7056b8b1eff5", "score": "0.6431865", "text": "public function getPaymentSumTotal() { \n \n $paymentSumTotal = $this->getOrderSumTotal(0);\n \n // if a paymentModifierCollObj is set: substract payment modifiers sum from order sum total, handle e...
79f2722717c9a3329c29e63aed17aebe
/ Fungsi Update / Handle request dari edit
[ { "docid": "a97bbd2fa81b7f766ba322d28d528c0b", "score": "0.0", "text": "public function update()\n {\n request()->validate([\n '_id' => 'required',\n 'old_avatar' => 'required',\n 'avatar' => 'file|image|mimes:jpeg,jpg,svg,png,gif|max:2048',\n 'name'...
[ { "docid": "22f245f476f1267854b6163d62d180dd", "score": "0.78142107", "text": "public function Editar(){\n\n \t//GUARDA O ID DO CONTATO PASSADO NA VIEW\n\t\t\t$idFuncionario = $_GET['id'];\n\n\t\t\t//INSTANCIA A CLASSE CONTATO\n\t\t\t$funcionario = new Funcionario();\n\n\t\t\t//DEFINE O ID DO C...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "ffaff19749da8ed9fe0ce1033a43476d", "score": "0.0", "text": "public function show(Service $service)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n ...
46c27f5cbcb3e165d97ed3c31b19e3a4
Introduced to help FileSockets
[ { "docid": "66f98b3d2e3e0987be35b9d6fb70a17c", "score": "0.0", "text": "function get_path($addr)\r\n {\r\n if (substr($addr['HOST'], strlen($addr['HOST']) - 1, 1) != '/' && ($addr['PATH'] == \"\" || $addr['PATH'][0] != '/'))\r\n $addr['PATH'] = '/' . $addr['PATH'];\r\n $ret =...
[ { "docid": "ca6ac5e5008a2182868f3b27706c969a", "score": "0.6502187", "text": "public function socket();", "title": "" }, { "docid": "a4b38cf6bf43c21320679183c4d10179", "score": "0.64068836", "text": "public function sendfile($conn_fd, $filename, $offset = null, $length = null) {}", ...
0882e3de414bd1f4e12380d1a22f9a1b
++ object method ++
[ { "docid": "1c3567ddf112fcd851cbf9c7cbedfe97", "score": "0.0", "text": "public function __toString()\n {\n return $this->get();\n }", "title": "" } ]
[ { "docid": "af1e747888c5cbb87aef01a6446d263b", "score": "0.6929884", "text": "public function getIncrement();", "title": "" }, { "docid": "08067151acf28d285da217ff26b92419", "score": "0.62714094", "text": "public function inc_whatever()\n\t{\n\t\treturn $this->x + 10;\n\t}", "tit...
c0ff94f4f79c0067b1fdcb8a30fa665c
Get collection searchable instances by specified ids.
[ { "docid": "a877d95cb52dc01c42be2f6be85aaa42", "score": "0.5751596", "text": "public function getByIds(array $ids, array $relations = []): \\Illuminate\\Support\\Collection\n {\n $query = static::query();\n\n if (!empty($relations)) {\n $query->with($relations);\n }\n\...
[ { "docid": "78ee1a057a7a0efd1b8f2838ccbfce2b", "score": "0.71634793", "text": "public function findByIds(array $ids);", "title": "" }, { "docid": "33930f4e81877b75ac1acf044c035e19", "score": "0.7054398", "text": "public function find (...$ids) {\n\t\treturn $this->findByIds($ids);\n\...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "1f6f181112b34aceed85a5f84a6f1a0f", "score": "0.0", "text": "public function destroy($id)\n {\n // delete\n $fav = Menu::find($id);\n $fav->delete();\n\n // redirect\n Session::flash('message', 'Menu supprimé avec succès !');\n return Redirect::to(...
[ { "docid": "2b9d2c85f4c5a3ea90f0276710558864", "score": "0.73587126", "text": "public function removeResource(ResourceInterface $resource);", "title": "" }, { "docid": "993b4783957b008ba5348591f59665c8", "score": "0.7277427", "text": "public function del($resource)\n {\n }", ...
5b891641d9e21b985463cdfe84e64a1e
Extract pagination parameters from a request.
[ { "docid": "f55818aef141f3c5ff8ce17c57a1a6c1", "score": "0.6346047", "text": "public function extract(Request $request): array\n {\n $maxLimit = Arr::get($this->config, 'max_limit', static::MAX_LIMIT);\n $defaultLimit = Arr::get($this->config, 'default_limit', static::DEFAULT_LIMIT);\n\...
[ { "docid": "6970e0110d03faf7f1d7d077608031b3", "score": "0.75075305", "text": "protected function extractPagination(Request $request)\n {\n $pageNr = $request->get($this->listHandlerConfig['page_nr_param_name'], 1);\n $pageLimit = $request->get($this->listHandlerConfig['page_limit_param...
755164e78729de44d9d33593961434ae
Affiche la liste des billets du blog
[ { "docid": "71144231b802fe0025565fed7d2a379e", "score": "0.0", "text": "public function display()\n {\n var_dump($this->liste);\n //$this->liste;\n // $this->liste->getBillets();\n // var_dump($this->liste->getBillets());\n require __DIR__ . './../../templates/liste_bi...
[ { "docid": "c04c6c397ff479c76f3f5dda582da765", "score": "0.72840226", "text": "public function getBlogs();", "title": "" }, { "docid": "581703fe87a4c44f9fa9e4ed607875c3", "score": "0.7183728", "text": "public function blog_post_items()\r\n {\r\n // Check for user\r\n if (!$use...
d7132aaad613732427981ac3ef861684
addVehicleType() is used to add new record in database. Author : Jaineesh Created on : 24.11.09 Copyright 20082000: syenergy Technologies Pvt. Ltd.
[ { "docid": "4282bd5baa4215f93fafc6bfa47da41a", "score": "0.54063326", "text": "public function addExtendVehicleFreeService($busId,$serviceType,$serviceNo,$serviceDate,$serviceKM) {\n global $REQUEST_DATA;\n\t\t\n\t\t $query = \"\tINSERT INTO bus_service (busId,serviceType,serviceNo,serviceDueDate...
[ { "docid": "038b22b3f29c5b2ed5412748bcdece12", "score": "0.7177988", "text": "public function addVehicle($vehicleName){}", "title": "" }, { "docid": "57e13a85051020bafcc30381a16a5bfa", "score": "0.611162", "text": "function add_user_type($params)\n {\n $this->db->insert('us...
f058b08d2789128b2f503035cdf3f49b
======================== create Position ======================
[ { "docid": "6257042580f573b0f59468020fd9ae9e", "score": "0.0", "text": "public function store(Request $request)\n {\n\n $this->validate($request,[\n 'name'=> 'required|unique:templates',\n 'image'=> 'required|image|nullable|max:1999'\n ]);\n try{\n if...
[ { "docid": "7905241961b6f9d794edf14a9cee5790", "score": "0.7428151", "text": "function position(){\r\n return new Position($this->init());\r\n }", "title": "" }, { "docid": "62f6c539efecf2aa8054ba28da51b632", "score": "0.7057541", "text": "public function create_position_ta...
ec08bf718d1ef3601aa09ab1c802ae88
Get the right QuestionType instance
[ { "docid": "822bccdfc1f9a89898f244f0b45d0586", "score": "0.7356841", "text": "public static function getQuestionType($type) {\n switch($type) {\n case 'simple':\n return new Simple;\n\n case 'multiple':\n return new Multiple;\n\n defa...
[ { "docid": "71d7706e11d57abf57c05e339e2b572f", "score": "0.77105844", "text": "function getQuestionType()\n\t{\n\t\treturn $this->object->getQuestionType();\n\t}", "title": "" }, { "docid": "3ed931d3e3dc9111796208322b0a4ff9", "score": "0.76289743", "text": "public function getQuestio...
2ddd24afc10639725fbd10f2431f476f
Clear all ACL settings before starting tests.
[ { "docid": "ff42867f9ed55bf0b3d3e1c506e94d80", "score": "0.6548834", "text": "public static function setUpBeforeClass()\n { \n foreach (AclResource::find() as $resource) {\n $resource->delete();\n }\n foreach (AclRole::find() as $role) {\n $role->dele...
[ { "docid": "e2f638ad8cac34b748c552f9ce5c1606", "score": "0.7197223", "text": "public function clearAllACLFlags() {\n\t\t$this->flags = 0;\n\t}", "title": "" }, { "docid": "39af87db638b633144979d6b19b970aa", "score": "0.63984406", "text": "public function setUp() {\n Config::se...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "b1a357ac4435c144a8e787acc5c259ab", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n // return 'this is add method';\n // dd($request->all());\n $todo = new Todo;\n $todo->todo = $request->todo;\n $todo->category_id = $re...
[ { "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...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "c6682891265bd7837778d6f00be58b71", "score": "0.0", "text": "public function run()\n {\n $faker = Faker\\Factory::create();//import library faker\n\t\t\n\t\t$limit = 5;//batasan berapa banyak database\n\t\t\n\t\tfor($i=0;$i<$limit;$i++){\n\t\t\tDB::table('barangs')->insert([//mengi...
[ { "docid": "74adb703f4d2ee8eeea828c6234b41f3", "score": "0.81044954", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->seed('Categories');\n\n // Illustration\n $this->seed('Supports');\n $this->seed('Illustrations');\n\n // Photography\n ...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "2e4e4d8f20457b4e233772e5f82985ef", "score": "0.0", "text": "public function destroy(Announcement $announcement)\n {\n //\n $path = public_path() . $announcement->image_path;\n File::delete($path);\n $announcement->delete();\n return redirect()->route('an...
[ { "docid": "9e3888bdb250b09daf6881b2c953ce96", "score": "0.7387755", "text": "protected function removeImageFromStorage (HCResources $resource)\n {\n $path = $this->uploadPath . $resource->id;\n\n if (Storage::has ($path)) {\n Storage::delete ($path);\n }\n }", ...
cbcc8cee392d5cd615c8135a02b3779b
Custom Texonomy Category for About US
[ { "docid": "a42f99a1f79cf7bedbf1c51dd120f0fd", "score": "0.67427933", "text": "function about_custom_category() {\r\n\t// Add new taxonomy, make it hierarchical (like categories)\r\n\t$labels = array(\r\n\t\t'name' => _x( 'Categories', 'taxonomy general name', 'textdomain' ),\r\n\t\t'singul...
[ { "docid": "79d3bc9466964df73a3f91cd27976a8a", "score": "0.70984244", "text": "function about_custom_texo() {\r\n\t// Add new taxonomy, make it hierarchical (like categories)\r\n\t$labels = array(\r\n\t\t'name' => _x( 'AboutUS', 'taxonomy general name', 'textdomain' ),\r\n\t\t'singular_name...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "ca6bd3681577a894e4f921419305449c", "score": "0.0", "text": "public function destroy(Request $request)\n {\n // return $request;\n Overtime::where('id', $request->id)->where('emp_id', $request->emp_id)->delete();\n }", "title": "" } ]
[ { "docid": "b3402eab0e6e7fcae87ea6d302ba7755", "score": "0.6850561", "text": "public function DELETE() {\r\n // delete the cached resource, if it exists\r\n if ($this->HEAD($this->getURI())) {\r\n // load the resource, then delete it\r\n $this->bind($this->getStorage(...
8c9418de6102321ec534b9b14b845340
Get the path to the application public files.
[ { "docid": "9e2d346559585266b621a3eb70e21739", "score": "0.0", "text": "public function publicPath(string $path = ''): string\n {\n return $this->root() . DIRECTORY_SEPARATOR . 'public' . ($path ? DIRECTORY_SEPARATOR . $path : $path);\n }", "title": "" } ]
[ { "docid": "9d719623caeef62e97200e2d459534f4", "score": "0.83254033", "text": "public function getPublicPath(){ return new Path($this->getField('app_path'),'public'); }", "title": "" }, { "docid": "3a0d8146730f5e074e45e33098f49da4", "score": "0.8128073", "text": "public function getP...
710959dfcfcf85e2f3ea516d1d408fd4
Get outlet tax rates.
[ { "docid": "f238ea39ee1a4686441dbe4a816f7ab2", "score": "0.70672417", "text": "function pos_host_get_outlet_tax_rates($outlet_data = array()) {\r\n\tglobal $wpdb;\r\n\r\n\t$tax_class = '';\r\n\t$rates = array();\r\n $country = $outlet_data[\"country\"]; \r\n $state = $outl...
[ { "docid": "56bb541b6bf01072c8d1d78f65379437", "score": "0.75997376", "text": "public function getTaxRates();", "title": "" }, { "docid": "caf5a014b75b8923471a1d98152017d9", "score": "0.73096865", "text": "public function getTaxRate();", "title": "" }, { "docid": "caf5a01...
a4123349634da342a83de3e10dbfe7e1
Send error report mail.
[ { "docid": "e3fd835c16208e35ca8743eccad3503b", "score": "0.0", "text": "public static function sendDebugMail($message)\n {\n if (MAILONE_VERBOSE)\n {\n printf(\"<pre>%s</pre>\", htmlspecialchars($message));\n }\n \n if (MAILONE_SEND_MAIL)\n {\n\t ...
[ { "docid": "171081056b1ed92ed990c3e9ccda6846", "score": "0.7728196", "text": "public function sendErrorEmail()\n {\n global $aql_error_email;\n\n if (!$aql_error_email) {\n return;\n }\n\n $subject = 'AQL ' . $this->type . ' Error:';\n\n $dump = print_r(a...
7885346909524df59c24ea93e094416b
Run callback on the relevant fields in a row.
[ { "docid": "ae005f11df9212b2088f08fa6494d1fd", "score": "0.5906293", "text": "protected static function processFields(callable $callback, $row, $field_names) {\n $replaced = FALSE;\n foreach ($field_names as $field_name) {\n $replacement = call_user_func($callback, $row->{$field_name}, $row);...
[ { "docid": "914c75a48d50073fb67ad2d656f3ad79", "score": "0.655617", "text": "public function processRow($row);", "title": "" }, { "docid": "5cae18c8a3414418c302899f0ed60cfc", "score": "0.6259542", "text": "abstract function process_row($row);", "title": "" }, { "docid": "...
6e1260d065adf4ca41b819638ca35d57
Get STS token hash by the eureka username (md5).
[ { "docid": "619f448e23fd6f15dabcef8e8a38793e", "score": "0.7966764", "text": "private function getSTSTokenHash(string $username): string\n {\n return sprintf('idci_payment.eureka.sts_token.%s', md5($username));\n }", "title": "" } ]
[ { "docid": "b085cea7404985645d77db647f5169a0", "score": "0.6877264", "text": "public function token(){\r\n \r\n // if we need to identify sessions by also checking the user agent\r\n if ($this->config->lock_to_user_agent \r\n && !is_null($this->request->headers->get('...
c33f1b58212c126e01afe52ca58378d8
var $helpers = array('Chart');
[ { "docid": "6482a780c3bb243b2aa1f170d8b30c5d", "score": "0.0", "text": "function index()\n\t{\n\n\t}", "title": "" } ]
[ { "docid": "277396e38b12cf7d4bed66c90997e638", "score": "0.70811355", "text": "public function chartjs()\n {\n return view('pages/charts/chartjs');\n }", "title": "" }, { "docid": "84356d31bff757ab47e2d2198642a5dd", "score": "0.6381551", "text": "function charts() {\n $...
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": "754e1795026ca4c71e3959656a533ca3", "score": "0.77020115", "text": "private function _displayResource() {\n\t\t...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "4e2d551ce901c5ead89d9fc7791dcc50", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request,['group_acname' => 'required']);\n $this->validate($request,['type_acc' => 'required']);\n $gc = new GroupAcc(\n [\n ...
[ { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.68325156", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resource...
c878647dcf9c18424b3bc86e7720aa1d
This is a function that would be called before a form is submitted. Generally, a dropdown box or something similar that would force a submit of the form via javascript should put this in their onchange line as well so that the WYSIWYG can do any cleanups before the actual form submission takes place.
[ { "docid": "dcd852c3b04c33efd7e8e6899905bf43", "score": "0.58620983", "text": "function wysiwyg_page_form_submit();", "title": "" } ]
[ { "docid": "1ad61b20e9c201c9c7f457b36eddd559", "score": "0.6885836", "text": "protected function preSubmit() {\n\t\t// Template Method to be implemented in inheriting classes\n\t}", "title": "" }, { "docid": "2f49b8ca4b2322d4542551e489cb85b0", "score": "0.6115432", "text": "function ...
ecea69b61c5f3f03fc07de85aaa1da45
Refreshes the user for the account interface. It is up to the implementation to decide if the user data should be totally reloaded (e.g. from the database), or if the UserInterface object can just be merged into some internal array of users / identity map.
[ { "docid": "5c4398cacb973317d7a1208136f8af3e", "score": "0.5697003", "text": "public function refreshUser(UserInterface $user)\n {\n if (!$user instanceof UserInterface) {\n throw new UnsupportedUserException(sprintf('Expected an instance of FOS\\UserBundle\\Model\\UserInterface, bu...
[ { "docid": "32f26133859f85e89d5d9ecd2137fa17", "score": "0.73645014", "text": "public function refreshUser(UserInterface $user)\n {\n // TODO: Implement refreshUser() method.\n }", "title": "" }, { "docid": "6a60e5e3ae0c87451d5c0c2106360216", "score": "0.71815723", "text...
a1b1f9f920521f4c977e2c4b2c111292
Add in a default help method
[ { "docid": "ce2e098584403819a5139defa94c356a", "score": "0.7060855", "text": "private function attachHelp()\n {\n $this->option('help')\n ->describe('Show the help page for this command.')\n ->boolean();\n }", "title": "" } ]
[ { "docid": "fd740deeee33d5f75a880f4da7fdcc44", "score": "0.82939", "text": "public function new_help()\n {\n }", "title": "" }, { "docid": "fd740deeee33d5f75a880f4da7fdcc44", "score": "0.82939", "text": "public function new_help()\n {\n }", "title": "" }, { "d...
03afdc2a1bd635b180e80ccaf4a63f45
change Search Form input type from "text" to "search" and add placeholder text
[ { "docid": "67443906c66510781f960cafbadcac77", "score": "0.6291936", "text": "function boilerplate_search_form ( $form ) {\n\t\t$form = '<form role=\"search\" method=\"get\" id=\"searchform\" action=\"' . home_url( '/' ) . '\" >\n\t\t<div><label class=\"screen-reader-text\" for=\"s\">' . __('Search for:...
[ { "docid": "c8f7f959f6b27df18a35869bea769238", "score": "0.6754016", "text": "public function search_field()\n {\n $form = '';\n return $form;\n\n }", "title": "" }, { "docid": "85ede2de6d41105859692ed85e4b1a1e", "score": "0.66486096", "text": "function _searchfor...
4cb6f185fe079edbda78dbbd7a1cb25e
deletes record param true/false delete all descendent records
[ { "docid": "0fdacc3eacf2741a3186cdd713560b9a", "score": "0.0", "text": "public function delete($id, $with_children=false)\n {\n\n //little clumsy, due to some Active Record restrictions\n\n if ($with_children)\n {\n $parent = $this->get_one($id);\n } \n\n ...
[ { "docid": "b482dbc4860aedb23eaa8ef3f2149276", "score": "0.68309397", "text": "function delete($record)\n {\n $classname = $this->m_destination;\n $cache_id = $this->m_owner.\".\".$this->m_name;\n $rel = &getNode($classname,$cache_id);\n \n for ($i=0, $_i = count($this->m_ref...
d90ff8c229afe3fff86321bb60082982
Tests the setVille() method.
[ { "docid": "8fec779cba0b0032cc84bd92d3d0cf42", "score": "0.7960063", "text": "public function testSetVille() {\n\n $obj = new DecTvaGroupe();\n\n $obj->setVille(\"ville\");\n $this->assertEquals(\"ville\", $obj->getVille());\n }", "title": "" } ]
[ { "docid": "c680c82787933d3f204344cfb7ed6bbe", "score": "0.64047635", "text": "public function setPersonne_ville(Ville $valeur) {\n \t$this->personne_ville = $valeur;\n }", "title": "" }, { "docid": "a9a9adcec2e9f50a6356e11fd5e76ee3", "score": "0.60677445", "text": "public func...
525c382c0fedffd751f0ae57869ddb28
Remove the songs added for the test cases
[ { "docid": "27bcf689ec06693eea1c82f195d9695b", "score": "0.56037563", "text": "public function tearDown()\n {\n $delete = new \\Apps\\Database\\Delete();\n $sql = $delete->delete()->from('Songs')->where('Title LIKE :title')->result();\n $pdo = array('title' => 'UnitTest%');\n ...
[ { "docid": "5aab55bf2a33fad1f72bae3ddb1f82c1", "score": "0.67472535", "text": "public function purge() {\n foreach ($playlists as $playlist) {\n\n // Get the songs for the playlist\n $songs = $this->CRUD_model->get('songs', array('playlistId' => $playlist['id']));\n\n ...
27b2407fc19b6544116e903b8516a84e
TODO: needs to be fixed
[ { "docid": "b95c8edf237b4b09a78c58fdeb7037d4", "score": "0.0", "text": "public function DestroyUser()\n {\n $username = 'test@test.test';\n $password = 'secret';\n\n $url = env('ACCOUNT_URL') . \"/api/login\";\n\n $ch = curl_init();\n curl_setopt($ch, CURLOPT_URL, $...
[ { "docid": "7ab73e8cb2c0babdfa7bdbdea1195143", "score": "0.58564955", "text": "private function upgrade_1591()\n {\n }", "title": "" }, { "docid": "abb5f713358da5529853b6431479b471", "score": "0.5520858", "text": "private function upgrade_1403()\n {\n }", ...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "4b703c353ac32fab541a3aa087d31e1f", "score": "0.0", "text": "public function update(Request $request, Comment $comment)\n {\n //\n }", "title": "" } ]
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "01534868cb4f609380c1221841e980b3", "score": "0.7055208", "text": "public function testUpdateResource()\n {\n\n }", "title": "" }, {...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "fa94aa639a4f5f9835342a361e4e1fed", "score": "0.0", "text": "public function update(UpdateUser $request, User $user)\n {\n $user->update($request->except('password'));\n if ($password = $request->input('password')) {\n $user->password = Hash::make($password);\n ...
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.76002145", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "b66d45ed275220a344f3f222ce4980b5", "score": "0.70558053", "text": "public function update(Request $request, Resour...
24b660426d7a9928085f108eedbb41fc
Handles the save event.
[ { "docid": "f8b4cd428d883118a67da513e6c48f6d", "score": "0.68769073", "text": "protected function save() {\n\t\t$this->eventObj->additionalFields = array_merge($this->eventObj->additionalFields, array(\n\t\t\t'userTitle' => $this->userTitle\n\t\t));\n\t}", "title": "" } ]
[ { "docid": "972b164848a901093af2874beb4f2a0a", "score": "0.7594989", "text": "protected function save(): void\n {\n\n //no need to create savepoint here for the\n\n new Event($this, '_before_save');\n $this->execute_save();\n $this->set_status(self::STATUS['SAVED']);\n ...
b6cf39f0290953de18fe87ecafb0e6c9
fungsi cetak Laporan harian Poliklinik
[ { "docid": "9e9afaba46dc86b15461a06de67cb42f", "score": "0.0", "text": "public function actionCetakLaporanHarianPoliklinik($tanggal=null,$bulan=null,$tahun=null)\r\n\t{\r\n\t\t\t$pdf = new LaporanHarian();\r\n\t\t\t$model = 'Belum Siap';\r\n\t\t\t$this->renderPartial('dokumenLaporanPoliklinik',array('mo...
[ { "docid": "e5d1fb177855b2b6d14b6582e554ac94", "score": "0.7186318", "text": "function laporan_kegiatan_internal(){\n $data['laporan'] = $this->pegawai_model->tampilLaporan();\n $this->load->view('PenerimaSurat/laporan_kegiatan', $data);\n }", "title": "" }, { "docid": "7dff939d12a410...
cad0cdd442b82cda81f3965493040e67
SELECT TABLE_NAME FROM INFORMATION_SCHEMA.tables WHERE TABLE_SCHEMA='pyinia';
[ { "docid": "d42590cf398d7f4df8c94fb39a374a9e", "score": "0.0", "text": "public function getTablesBD(){\n $bd=$this->db->database;\n $this->db->select('TABLE_NAME as tabla');\n $this->db->from('INFORMATION_SCHEMA.tables');\n $this->db->where([\"TABLE_SCHEMA\"=>$bd]);\n ...
[ { "docid": "3742cde294ff23aedc55cbe0047e8011", "score": "0.7341959", "text": "function getTablename(){\n $ci = & get_instance();\n $ci->load->database();\n $query = $ci->db->query(\"SELECT table_name FROM information_schema.tables WHERE table_schema = 'anjwekhs_anjwebtech_pms'\");\n return $...
8ef242df6ad03ea33f54ee76ecc344c0
Bootstrap any application services.
[ { "docid": "106f9b660ee209e61b3863856f2081a4", "score": "0.0", "text": "public function boot()\n {\n //\n }", "title": "" } ]
[ { "docid": "b866e2b06f9c0f7b75f1b7e1dfd607d4", "score": "0.71317947", "text": "public function boot()\n {\n $this->loadServiceProviders();\n $this->loadAliases();\n }", "title": "" }, { "docid": "46a059ea2cb783aa9be7e465f0b6794f", "score": "0.70970017", "text": "p...
a5688ec6ea4f34d45770be49f94bf4ef
Method to check if the table used in query exists
[ { "docid": "563d3eb0d1626dd4907da370ef82a396", "score": "0.7238084", "text": "public function tableExists($dbname, $table)\n {\n $tablesInDb = mysql_query('SHOW TABLES FROM '.$dbname.' LIKE \"'.$table.'\"');\n \n if (mysql_num_rows($tablesInDb)==1) {\n return true;\n } \n \n retu...
[ { "docid": "076bb50300c9c0f72a3707d7d64251f7", "score": "0.82883596", "text": "private function tableExists()\n {\n $dbh = $this->db();\n $table = $this->table();\n $driver = $dbh->getAttribute(PDO::ATTR_DRIVER_NAME);\n if ($driver === self::SQLITE_DRIVER_NAME) {\n ...
915eb9a29e79f3097bb6939c28061223
Apply criteria in query repository
[ { "docid": "412a2431f2f613c2f412eda73fe1afe4", "score": "0.0", "text": "public function apply($model, RepositoryInterface $repository)\n {\n return $model->where(function (Builder $q) {\n $search = '%' . $this->search . '%';\n return $q->where('navigate_link', 'like', $se...
[ { "docid": "4eb3072caea0afbb80a4ac1cf7da9a49", "score": "0.76002085", "text": "public function applyCriteria();", "title": "" }, { "docid": "fec8cf1800ee7ee76f7ce6cdd8c3185d", "score": "0.7192747", "text": "public function applyCriteria(): self;", "title": "" }, { "docid"...
0303df9a75d2416c21ebceb679055e54
/ Protected Resolve internally linked modules. Example of `styl` build referencing `css` build. css: produce: css require: [ ... ] process: [ ... ] build: [ ... ] styl: produce: ... require: [ ... ] process: [ ... ] build: &css.build
[ { "docid": "1ec4c829c718d80cc4972b354a130ddc", "score": "0.5157298", "text": "protected static function resolve_links(array $modules)\n {\n foreach ($modules as $pid => &$module)\n {\n foreach (['require', 'process', 'build'] as $item)\n {\n if (!iss...
[ { "docid": "95d177ec8188e0121fdb9cef8f529359", "score": "0.53501296", "text": "function build() {}", "title": "" }, { "docid": "d99100973f56f057fc2c357a4fc5f221", "score": "0.5230292", "text": "public function buildModuleDependencies(array $modules);", "title": "" }, { "d...
de7a09c9e41b3fe5f034eb41c4e8be55
insert data ke table
[ { "docid": "15e5a90ce67613e0a9cf61bd5ec9c2ec", "score": "0.0", "text": "public function storesebrectifier(Request $request)\n {\n DB::table('data_data2')->insert([\n 'wilayah' => $request->wilayah,\n 'lokasi' => $request->lokasi,\n 'tipe_perangkat' => $request-...
[ { "docid": "58abb84f07e05a5d056b2f83a5931a0b", "score": "0.7707757", "text": "public function insert(Table $table, $data);", "title": "" }, { "docid": "ed00796b7f56529ab91259ccd081d08a", "score": "0.7674473", "text": "function input_datakomentar($data,$table){\n\t\t$this->db->insert(...
afd715a0c58613c54a70dafe6aba82ad
Builds the final file.
[ { "docid": "ee453338d261ec44b4cd1f9f403229d0", "score": "0.5978185", "text": "protected function buildFullFileFromChunks()\n {\n // try to get local path\n $finalPath = $this->getChunkFullFilePath();\n\n // build the new UploadedFile\n $this->fullChunkFile = $this->createF...
[ { "docid": "ec6309fc537f8aee367389dcaa8237a1", "score": "0.66151917", "text": "abstract public function build($data, $file);", "title": "" }, { "docid": "c6d656d2e2bc48d1ec39966c24f188a2", "score": "0.65991277", "text": "public function build()\n {\n if (!$this->module) {\n...
ae344c5c8c31beff5f2d16b4e031a9db
URL for display webpage
[ { "docid": "b0bc2dfea2d347e4801612d8ac4a4490", "score": "0.0", "text": "function getPageUrl(){\n\n\t\t$url = UserInfoUtil::getSitePublishURL();\n\t\t$pageUrl = $this->page->page->getUri();\n\n\t\t$url .= $pageUrl;\n\n\t\t//Add \"/\" to string end.\n\t\tif($this->page instanceof CMSBlogPage OR $this->pag...
[ { "docid": "85ec31c1cdb6fdf3e154abf0ceea63e1", "score": "0.7170705", "text": "function getDisplayUrl() {\n\t}", "title": "" }, { "docid": "31ac8df36b2f1f4a303894a02c9baf66", "score": "0.71007216", "text": "public function display() {\r\n\r\n if ($this->isurl()) {\r\n\r\n ...
59e70fd2247d34d2bbb948e717b5a90b
Returns the name of the analytics relation table.
[ { "docid": "935995ae2613f6113905ae60c0bad5fd", "score": "0.8306354", "text": "public static function getAnalyticsRelationTable(): string\n {\n return config('laravel-server-analytics.analytics_relation_table');\n }", "title": "" } ]
[ { "docid": "d0ba391180a36093deac60636b1f1d8c", "score": "0.7316164", "text": "protected function getJoinTable(): string\n {\n return \"{$this->define(SchemaInterface::TABLE)} AS {$this->getAlias()}\";\n }", "title": "" }, { "docid": "7572c892edbf7474993cf2853bcd0817", "score...
575755ff483991042c0476038082966e
Assert that the [paginator] method allows manually setting paginator on resource.
[ { "docid": "a773ff611d0a1c2301275d0787d90d4e", "score": "0.850029", "text": "public function testPaginatorMethodSetsPaginatorsOnResource()\n {\n $paginator = Mockery::mock(IlluminatePaginatorAdapter::class);\n $this->paginatorFactory->shouldReceive('make')->andReturn($paginator);\n\n ...
[ { "docid": "248239b52bee56ceb50bf26e5985dc59", "score": "0.82688403", "text": "public function testResourceMethodSetsPagintorOnResource()\n {\n $paginator = Mockery::mock(IlluminatePaginatorAdapter::class);\n $this->paginatorFactory->shouldReceive('make')->andReturn($paginator);\n\n ...
7c2b3fae9d18d8266459dbd3dcea95bf
Go to the next day. Goes to the entries of the next day. Discards the working entry.
[ { "docid": "c7b8c00a2b8563c63178fa1f76ec64fb", "score": "0.58992594", "text": "function incrementDate() {\n\t\t$this->pl->incrementDate();\n $this->pl->clearWorkspace();\n\t\t$this->pl->setBlankWorkingEntry();\n\t}", "title": "" } ]
[ { "docid": "67c13e550135eb5e8fa08d3e33c8622f", "score": "0.68922293", "text": "public function nextDay(): self\n {\n $this->day++;\n $this->wanderedToday = 0;\n\n return $this->hit(1);\n }", "title": "" }, { "docid": "2c866273037ef26552564cdd216180d5", "score":...
1b39e02288f33f806d95ffad0bcd4534
Seed the application's database.
[ { "docid": "dc628dfc896228e389e848d89045f000", "score": "0.0", "text": "public function run()\n {\n Category::create([\n 'name'=>'laptop',\n 'slug'=>'laptop',\n 'description'=>'laptop category',\n 'image'=>'files/mobile.jpg'\n ]);\n ...
[ { "docid": "624c72ead8c9c21fcc16e737553a1052", "score": "0.777958", "text": "protected function seedDatabase()\n {\n if ($this->config['populate']) {\n if ($this->config['verbose']) {\n $this->writeln('Seeding test data');\n }\n }\n }", "title...
df9bcc7137b55745e3d5461cd9f62cd9
Checks to see if an association exists with a specific ProjectAsRelated
[ { "docid": "f48e09b283f7e1074d6ebe0509496e8c", "score": "0.6428274", "text": "public function IsProjectAsRelatedAssociated(Project $objProject) {\n\t\t\tif ((is_null($this->intId)))\n\t\t\t\tthrow new QUndefinedPrimaryKeyException('Unable to call IsProjectAsRelatedAssociated on this unsaved Project.');\...
[ { "docid": "c67c2f1961ff7309d8f0c93f33e77f83", "score": "0.628062", "text": "public function _definesAssociation($as)\n {\n $this->_setupAssociations();\n\n $my_class = $this->getClass();\n if (!isset(self::$_description[$my_class]['has'])) {\n return false;\n }...
e038e81657abca41e33d33e95342961a
End here Funtion Name : _Exe_Query Created By : Sureshkumar S 18Oct2016 08:54 AM Modified By : Description : Execute the sql and write log into table if enabled Start here
[ { "docid": "85d0f596f84256cb80bf4d9e41101b9e", "score": "0.57184595", "text": "public function _Exe_Query($sql)\n\t{\t\t\n\t\t\n\t\t$msc=microtime(true);\n\t\tif ( mysqli_query($this->con,$sql ) === TRUE)\n\t\t{\t\n\t\t\t$msc=microtime(true)-$msc;\n\t\t\treturn 1;\n\t\t} \n\t\t\treturn 0;\t\t\n\t}", ...
[ { "docid": "7228248896b2eb9e13b0a43781b72099", "score": "0.6323152", "text": "private function executeStatement()\n {\n }", "title": "" }, { "docid": "a8e807cf0efebbe19021a7d0e22ca217", "score": "0.63104683", "text": "public function executeQuery();", "title": "" }, { ...
0e09942d6c346a9b4d43f882202025fb
this down() migration is autogenerated, please modify it to your needs
[ { "docid": "1b1e9a96847356164147839f9c043e49", "score": "0.0", "text": "public function down(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 TA...
[ { "docid": "d02727f8d23f0861699c07edd53b33cf", "score": "0.7951184", "text": "public function down()\n {\n //add your migration here \n }", "title": "" }, { "docid": "670546cfcca72d7c3e365e5ca1cc9997", "score": "0.76109326", "text": "public function down(){\n\t\t$...
2cb945fc705291621a231aaa8068a911
checks if date pass is the current date of the next date
[ { "docid": "b7e5edbb40b8f43651d4df510841a85e", "score": "0.58795977", "text": "function validDate($date) {\r\n $currDate = date(\"m/d/Y\");\r\n\r\n if(strtotime($currDate)<=strtotime($date) ){\r\n //echo(\"true <br>\");\r\n return true;\r\n }\r\n else{\r\n //echo(\"false <br>\");\r\n ret...
[ { "docid": "941dff95480e1f62f9c3f09eefe76447", "score": "0.66597354", "text": "function validateExamDateWithCurrentDate($exam_date)\n{ \n\t$expire = strtotime($exam_date);\n\t$today = strtotime(\"today midnight\");\n\n\tif($today > $expire){\n\t $result = \"expired\";\n\t} else {\n\t $result = \...
a763747df16ec70452cf194f9df0b9f5
Get local(on FTP) path
[ { "docid": "fa82f9392378e91ab92d5ec1e4b121fc", "score": "0.7026269", "text": "private function getLocalPath( $path ) {\n\t\tstatic $FTP_root_len = null;\n\t\tif ( null === $FTP_root_len ) {\n\t\t\t$FTP_root_len = strlen( $this->seekFTPRoot() );\n\t\t}\n\t\t$localPath = substr( $path, $FTP_root_len );\n\...
[ { "docid": "a67eaa6a8f1ca4d88384b40e65bfeb90", "score": "0.706731", "text": "public function get_ftps_webserver_path()\n\t{\n\t\treturn $this->ftps_webserver_path;\n\t}", "title": "" }, { "docid": "2e1b1569d70e6462b8cb9092f1ef4b77", "score": "0.6986534", "text": "function getUrlForUs...
501ef6ddd3ece9a4d13243062f4960e3
Load the meta data for this record
[ { "docid": "81aa420f95c3e37ca5dd6531b64c5dd6", "score": "0.79164976", "text": "protected function loadMetaData()\n {\n $rows = (new Query)\n ->select('*')\n ->from($this->metaTableName())\n ->where([\n self::tableName() . '_id' => $this->{$this->...
[ { "docid": "7cd8d236c71e9df7e707129fd7d6e70b", "score": "0.7367214", "text": "static function loadMeta() {\r\n\t\t//Load defaults\r\n\t\t// self::$_meta = Art_Model_Meta::getDefaults();\r\n\r\n\t\t$metas = Art_Model_Meta::fetchAllCurrLayer();\r\n\t\tforeach($metas as $meta) {\r\n\t\t\tself::$_meta[$meta...
4702a1b7daa39bc462ffd51d1292f532
[Output Only] Type of the resource. Always computeaddress for addresses. Generated from protobuf field string kind = 3292052;
[ { "docid": "898ddb891faf0b42b351a2622f0fe8f5", "score": "0.0", "text": "public function setKind($var)\n {\n GPBUtil::checkString($var, True);\n $this->kind = $var;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "aba74ac1c8904ac4e2fc0b9e2a050a13", "score": "0.60042113", "text": "public function getAddressType();", "title": "" }, { "docid": "28bc5ee5459fb3f6d7585950d14982e4", "score": "0.5823762", "text": "public function resource_type()\n {\n return isset($this->data['ty...
3b1d6aac21a9d8a329f3100c197970fc
Set object as initialized or not.
[ { "docid": "89ba07f58db2f5a6bb495e2729498541", "score": "0.734641", "text": "public function set_init($bool);", "title": "" } ]
[ { "docid": "d9a1210bee87667a604f5e3962e44a5b", "score": "0.80887216", "text": "function _setInitialized() {\n\t\t$this->_initialized = true;\n\t}", "title": "" }, { "docid": "95a0b785c5dac049861b19d2d04b3a58", "score": "0.7321013", "text": "protected function init()\n {\n i...
e62be96fe2966d73ba2f235fc7108796
when user presses done it will go here basically saying we're done with this step what's next
[ { "docid": "3be1c105b99c4eb0154947b9ab0a50f9", "score": "0.0", "text": "public function pushNextState($device_id,$recipe_id){\n\t\t//get next step\n\t\t//set next step as device step\n\t\t//UPDATE device SET device_step= :recipe_step WHERE idd=:device_id\n\n\t\t//get new recipe\n\t\tif($recipe_id!=null)...
[ { "docid": "73927221942fa7be9b5115759913bb8e", "score": "0.74017936", "text": "public function Done(){\r\n\t\t\tprint $this->_config['done'];\r\n\t\t}", "title": "" }, { "docid": "06a3b6578db89e0bede5290d9bc444bf", "score": "0.7153082", "text": "public function proceed()\n {\n ...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "27be8205937a3e5ad21d491536c37e18", "score": "0.0", "text": "public function store(Request $request)\n {\n // $news = News::Create([\n // 'address'=> $request->address,\n // 'image'=> $request->image,\n // 'news'=> $request->news,\n // ]);\n\n\n\n $reques...
[ { "docid": "70f839d67344487e3780c8ca780ec59c", "score": "0.78094894", "text": "public function store(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.7009085", "text": "public function store()\n {\n re...
76d405f6aa3b9c92bc69f9ac0df88862
Set the spam list.
[ { "docid": "de6c772aa2a6e80105fabb25c5732557", "score": "0.6964643", "text": "public function setSpamList(?bool $spamList): Breach {\n $this->spamList = $spamList;\n return $this;\n }", "title": "" } ]
[ { "docid": "bdd6b4cc6d482d8ff2f100efafda455b", "score": "0.60648894", "text": "public function setAsSpam()\n {\n $this->status = SPAM;\n return $this;\n }", "title": "" }, { "docid": "21bee99ac931427646558acbb6d40acc", "score": "0.5680602", "text": "public functio...
7c63c7af70f5a5407448e4cdd5a5dfe6
Return a list of floors related to a building
[ { "docid": "e10cc2d196a7b5989913359ff30a42cc", "score": "0.5834718", "text": "public function actionAjaxFloors()\n\t{\n\t\tif (isset($_POST['building_id'])){\n\t\t\t$model = $this->loadModel($_POST['building_id']);\n\t\t\t$data = CHtml::listData($model->floors, 'id', 'level');\n\t\t\tforeach($data as $v...
[ { "docid": "da56c57c90adc0f0fa78b95379db0930", "score": "0.6878646", "text": "public function getDistinctFloors($building = null)\n {\n $items = $this->createUniqFlatDistinct('storage_parts', 'floor', 'floor', true);\n return $items;\n }", "title": "" }, { "docid": "8cb3039074212a80f...
9fe16e3f9a641ca6db4e51bcb8d39707
OneToMany (owning side) Add TesourariaDote
[ { "docid": "5198915dbbfac3d79a7b11d11e8b49d5", "score": "0.0", "text": "public function addFkTesourariaDotes(\\Urbem\\CoreBundle\\Entity\\Tesouraria\\Dote $fkTesourariaDote)\n {\n if (false === $this->fkTesourariaDotes->contains($fkTesourariaDote)) {\n $fkTesourariaDote->setFkTesour...
[ { "docid": "9ced59131033e5aa64432653e8a25a79", "score": "0.6579498", "text": "public function addAction()\n {\n \n $commentaire = new \\Thami\\Bundle\\ExerciseBundle\\Entity\\Commentaires();\n \n $commentaire->setCommentaire('very great!!!');\n $commentaire->setCrea...
17070b06221bde21d6152c9f5fdf3f17
When the project path configuration is not set then throw exception.
[ { "docid": "9cbb7bbae196cba2a5883ceebe0d41aa", "score": "0.798347", "text": "public function testWhenTheProjectPathConfigurationIsNotSetThenThrowException()\n {\n $app = new Application();\n $app->addTask(Task::SCAN_FILES);\n $app->run();\n }", "title": "" } ]
[ { "docid": "97b5eb01bee1e1e3b46d9c2dfff65b2a", "score": "0.6348303", "text": "public function testConfigFileException()\n {\n $this->expectException(\\InvalidArgumentException::class);\n Framework::config('.this-file-does-not-exist');\n }", "title": "" }, { "docid": "d645...
2ab3745cb751a92c2e5f151abbcb94f3
Get terms of service URL
[ { "docid": "b38314e75a59e9ec3f3aad78bd736df0", "score": "0.7696161", "text": "public function getTermsOfServiceUrl()\n\t{\n\t\t$this->setUpDirectory();\n\t\treturn $this->directory['meta']['termsOfService'];\n\t}", "title": "" } ]
[ { "docid": "c8ce82a7c8c323ee98c54bc177bebb54", "score": "0.6614604", "text": "function get_terms() {\n\t}", "title": "" }, { "docid": "c2cd5d3d57d6f4701820b52824fb79cb", "score": "0.6528889", "text": "public function getTerms(){\n return $this->getParameter('terms');\n }", ...
cb46db6b99e2b4bf125f3d8e2f0dfb5e
Validate a field with the blacklist patterns
[ { "docid": "2acacb8b9e6cfda22101c26e648eab84", "score": "0.5119524", "text": "function validate()\r\n {\r\n \t//get data model's name\r\n \t$modelName = $this->getModelNameForValidation();\r\n\r\n \t\t//validate each field\r\n \t\tforeach($this->data[$modelName] as $modelField=>$modelValue)...
[ { "docid": "f18d6528c1093ff29055256fa8500ebf", "score": "0.6328533", "text": "public function isAllowedPattern();", "title": "" }, { "docid": "fceb6a9060a36bcbfec346ad6e62f7e3", "score": "0.5985387", "text": "public function isValid(): bool\n {\n $value = $this->field->getV...
3c0825c1393eb885c0e305c1e92fd862
it must be the same when you encrypt and decrypt
[ { "docid": "796ff6c92973cfa81b6f1e62dbb9e319", "score": "0.0", "text": "protected function getIV() { \n return $this->iv;\n }", "title": "" } ]
[ { "docid": "f65e245aee4fcc206ac8e77817600e2d", "score": "0.71668214", "text": "public function getEncrypted();", "title": "" }, { "docid": "e41495b9a01f437e2b399d93ecfc89bd", "score": "0.7050651", "text": "private function encryption() { \n\t\t\n\t\t\t//do nothing\n\t\t}", "title...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "5b5f3697ab0b5b141cb8d1e4c4d65d6f", "score": "0.0", "text": "public function edit($id)\n {\n return View::make('admin.careersfair.edit')\n ->with('stand', CareersFairStand::findOrFail($id));\n }", "title": "" } ]
[ { "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...
e923086a0cfe5753662b7b0188361f80
Removes a member from the group
[ { "docid": "a853135fa1db9ec93a34afddebbef04c", "score": "0.66393536", "text": "function removeMember($id) {\r\n global $DB, $Controller, $USER;\r\n\r\n if(is_numeric($id)) {\r\n $obj = $Controller->get($id);\r\n }\r\n elseif(is_a($id, 'Base')) {\r\n $obj...
[ { "docid": "73dfdc41abbf9a020184410bd27f8ff8", "score": "0.72681457", "text": "public function removeGroupMember($groupName, $uid);", "title": "" }, { "docid": "7003f94019087d83893d5ca1f82f8d6e", "score": "0.7175847", "text": "function actionMemberRemove() {\n\t\t$this->_loadAndCheck...
db2aaa4e23a7ccadeec7ff5321520b53
Parse response headers into a array
[ { "docid": "a7a3ab7bab1d876b6e1bc14479981725", "score": "0.7498322", "text": "private function _parseResponseHeaders($header) \n\t{\n $headers = array();\n $h = explode(\"\\r\\n\", $header);\n foreach ($h as $header) \n\t\t {\n if (strpos($header, ':') !== false) \n\t\t\...
[ { "docid": "c567ceeab5a1ec52f75df70048cab34d", "score": "0.8004725", "text": "public function getResponseHeaders(): array {\r\n\t\t$text = file_get_contents ( stream_get_meta_data ( $this->response_headers_file_handle ) ['uri'] );\r\n\t\t// ...\r\n\t\treturn $this->splitHeaders ( $text );\r\n\t}", "...
719e7b6b177a837fe1bff08146af9e56
Checks whether the given string is an integer number.
[ { "docid": "07f74c12c7b1137da6b4a3ebbd5d503d", "score": "0.7020774", "text": "public static function isInteger($value): bool\n {\n return filter_var($value, FILTER_VALIDATE_INT) !== false;\n }", "title": "" } ]
[ { "docid": "adc6a7d002393154c295f3c7c72da601", "score": "0.83347404", "text": "public static function is_integer($string)\n {\n return (preg_match(\"/^[0-9]+$/\", $string)) ? true : false;\n }", "title": "" }, { "docid": "1027ecc64a6502ac20aace73687bd247", "score": "0.828662...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "bda317dcbd6f4a00f739e4574a5ace45", "score": "0.0", "text": "public function show($id)\n {\n if (Gate::denies('ADVERTISER_COMPANIES')) {\n abort(403);\n }\n\n return view('admin.advertisercompanies.show')\n ->with([\n 'title' => 'Ad...
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.81890994", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.7289603", "text": "function display($resource_name, $cache_id ...
12340552405bed7a38673a6e06e8564e
Create a new project. If you specify projectrate or flatrate for bill_method, you must supply a rate. Billing Method Types: taskrate, flatrate, projectrate, staffrate
[ { "docid": "62ede380760ec8bacb1a814bb1be5a7d", "score": "0.51093835", "text": "function projectCreate(){\r\n\t\t$method='project.create';\r\n\t\tif($this->project){\r\n\t\t\t$tags=$this->project;\r\n\t\t}\r\n\t\tif(isset($this->tasks)){\r\n\t\t\tif(is_array($this->tasks)){\r\n\t\t\t\t$tasks='';\r\n\t\t\...
[ { "docid": "53133065b1bf2a2f71e2e22dde26a108", "score": "0.61796254", "text": "public function create($billable, $plan, array $options = []);", "title": "" }, { "docid": "b6d23a7a27253e0e92bc19f31a3bfd1a", "score": "0.61663395", "text": "function create_plan($product_id, $interval, $...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "fdb7712d84a49558440db6da633b354e", "score": "0.0", "text": "public function store(UserRequest $request)\n {\n $input = $request->all();\n\n $input['password'] = bcrypt($request->password);\n\n User::create($input);\n\n return redirect()->route('users.index');\n...
[ { "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...
f379f8ea94fb81378b8a170bbc8374dc
Create request for operation 'placeOrder'
[ { "docid": "746174d6ed596dd3337956f703195edf", "score": "0.77293557", "text": "public function placeOrderRequest($order)\n {\n // verify the required parameter 'order' is set\n if ($order === null || (is_array($order) && count($order) === 0)) {\n throw new \\InvalidArgumentEx...
[ { "docid": "9639d6892f54e01723ca093469f85f53", "score": "0.6792681", "text": "public function callAPIPlaceOrder($session=null)\n {\n if (!$session) {\n $session = $sessionId = $this->currentSession->testStaffLogin();\n }\n $this->callAPISaveShippingMethod($session);\n ...
c9fb4aee8e9e0fe87925368d3071ead8
Prepare a date for array / JSON serialization.
[ { "docid": "77e9ae9db65e439061fc7fea230ec62e", "score": "0.0", "text": "protected function serializeDate(DateTimeInterface $date)\n {\n return $date->format('Y-m-d H:i:s');\n }", "title": "" } ]
[ { "docid": "d1e6282a67a684f288afc9732def411b", "score": "0.63922983", "text": "public static function toArray($date = NULL) {\n $date = new DatexObject($date, FALSE);\n return array(\n 'year' => $date->format('Y'),\n 'month' => $date->format('n'),\n 'day' => $date->format('j')...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "256977da604d7a633d0e36222864e82f", "score": "0.0", "text": "public function destroy($id)\n {\n Precos::find($id)->delete();\n\n Session::flash('successo', 'Preço Excluida com Successo');\n\n return redirect()->route('precos.index');\n }", "title": "" } ]
[ { "docid": "4b8255c05a264d5d61f546d7bcd507ce", "score": "0.6672584", "text": "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public functio...
02d26f9f4b2df169df92e09cc0b90691
Test invalid variable type.
[ { "docid": "9930bcc0a9f91b22715fe9319aa8bfeb", "score": "0.6793872", "text": "public function testInvalidVariableType(): void\n {\n $mock = $this->getMockForTrait(ObjectTrait::class);\n\n $this->expectException(InvalidArgumentException::class);\n\n $mock->ensureObject(PivotFacet:...
[ { "docid": "b3b700f32a06f205d15595bd41a0ee21", "score": "0.68153673", "text": "function checkDataTypes($param){\r\n if (strpos($param, '@') !== false) {\r\n processVariable($param);\r\n } else {\r\n fwrite(STDERR, \"ERROR: Wrong parameter!\\n\");\r\n exit(2...
838c122e6ef409ae65f6c65b03e2eaa6
Update the edit form to include the URL input and test button.
[ { "docid": "1968c992b55c9d847104606956377eaa", "score": "0.0", "text": "public function updateEditForm($form) {\n\n\t\tRequirements::css('nglasl/silverstripe-misdirection: client/css/misdirection.css');\n\n\t\t// Restrict this functionality to administrators.\n\n\t\t$user = Member::currentUserID();\n\t\...
[ { "docid": "1d94403d2acd74d9393297956ff20089", "score": "0.72310865", "text": "function edit()\n {\n $this->_form('edit');\n }", "title": "" }, { "docid": "5301e3af0a5e99410a0bb90618153611", "score": "0.6941585", "text": "function edit()\r\n\t{\r\n\t\tglobal $request;\r\...
2fcd175c1c7ea0ee91124c652396d177
Turn an array into yaml data
[ { "docid": "80de768c9ea28303d95f669a2d6b1df7", "score": "0.55621725", "text": "private function yamlise(array $input)\n\t{\n\t\t// Find the sfYAML library\n\t\t$path = Kohana::find_file('vendor', 'sfYaml/sfYaml');\n\n\t\t// Load the sfYAML library\n\t\tKohana::load($path);\n\t\t\n\t\treturn sfYaml::dump...
[ { "docid": "2d0e1c3d6cd8f7fcb6134d534497c8ab", "score": "0.7666536", "text": "public static function array_to_yaml($array)\n {\n $YAML = new \\Spyc();\n return $YAML->YAMLDump($array);\n }", "title": "" }, { "docid": "57882083d9dc5efe0607b78f3e0b4680", "score": "0.629...
8a786bc2fbb6d533ff247553472f9104
The available options are K (for Kilobytes), M (for Megabytes) and G (for Gigabytes; available since PHP 5.1.0), and are all caseinsensitive. Anything else assumes bytes.
[ { "docid": "8f51dba4cbc4c60fec53e62782b8cf11", "score": "0.0", "text": "public function initConfigurationProvider(): array\n {\n return [\n ['1024', 1024],\n ['34K', 34816],\n ['34k', 34816],\n ['128M', 134217728],\n ['128m', 134217728],\n...
[ { "docid": "3ba6ef36fcc4b6a7c4bca995e7f0989a", "score": "0.6703414", "text": "function convert_php_size_to_bytes($value)\n{\n // Remove the non-unit characters from the size\n $unit = preg_replace('/[^bkmgtpezy]/i', '', $value);\n\n // Remove the non-numeric characters from the size\n $size ...
ea230311134629dbfbc88ae54696b46e
Set whether to send json_file to jobs API.
[ { "docid": "ab92743a3a0817f297743f3dcd3ad931", "score": "0.0", "text": "public function setDryRun($dryRun)\n {\n $this->dryRun = $dryRun;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "e3f613a208047744d006a20ea9c39c57", "score": "0.55667794", "text": "public function setJsonResponse() {\n\t\t$this->view->disable();\n\t\t\n\t\t$this->_isJsonResponse = true;\n\t\t$this->response->setContentType('application/json', 'UTF-8');\n\t }", "title": "" }, { "docid": "f3f...
2272f29b49fc23229b8d5aa2202f57ae
Add days to a BS date and return the corresponding date (BS)
[ { "docid": "0474015c7357eb694a15471c00336a38", "score": "0.69052345", "text": "protected function addBsDays($bs_date,$num_days)\n\t{\n\t\t$x=explode('/',$bs_date);\n\t\t$this->bs_year=(int)($x[2]);\n\t\t$this->bs_month=(int)($x[0]);\n\t\t$this->bs_days=(int)($x[1]);\n\t\t$this->bs_days+=$num_days;\n\n\t...
[ { "docid": "5f61e7bf17a0d365c53e5a8853f4cd88", "score": "0.67483413", "text": "function plusdays_date($bdate,$days)\n\n\t{\n\n\t\t//$cdate\t\t\t=\tconvertDate($arrayDate['str_departtime']);\n\n\t\t$miamiTime \t\t=\tstrtotime($bdate);\n\n\t\t$miamiDay\t\t=\tdate(\"D\", $miamiTime);\n\n\t\t//cutoff date f...
0b6901eaf950ad74c0f0d7062afb0d10
Get any tab option.
[ { "docid": "9866cb2c33e01b5113935edad73cdb43", "score": "0.70214784", "text": "function ui_tabs_get_option($selector,$option){\n return jquery_support($selector,'tabs', \"'option' , '$option'\");\n}", "title": "" } ]
[ { "docid": "940de39b4a070fe16539487c08bf8c97", "score": "0.75424594", "text": "private static function _get_options_tablist( $tab = NULL ) {\r\n\t\tif ( is_string( $tab ) ) {\r\n\t\t\tif ( isset( self::$mla_tablist[ $tab ] ) ) {\r\n\t\t\t\t$results = self::$mla_tablist[ $tab ];\r\n\t\t\t} else {\r\n\t\t...
0ebd9f7607625de3ef69a3f9143111d6
Returns success message if equals to expected message.
[ { "docid": "4c5e1bf8eb82edd2c4a4c38c69d23459", "score": "0.0", "text": "public function toString()\n {\n return 'Incorrect password message is present and correct.';\n }", "title": "" } ]
[ { "docid": "75151a466443b0a869bddae1712f1f1f", "score": "0.68017155", "text": "public function getSuccessMessage() {\n return $this -> betSuccessMessage;\n }", "title": "" }, { "docid": "10c9d8adf56d573b7c042c4d0c81c4a3", "score": "0.6801017", "text": "public functi...
f977df4e71c8ede246d92b9eb42f8118
Remove customer from database
[ { "docid": "25c7ef075bcf65215121b7abde049401", "score": "0.61939967", "text": "public function removeCustomer($socialSecurityNumber) {\n $customer = [\"socialSecurityNumber\" => $socialSecurityNumber];\n\n // Remove customer from History table\n $historyQuery = \"UPDATE History SET renter...
[ { "docid": "2cb7ecc8821f6af9e556cb14a78b7e4e", "score": "0.77671075", "text": "public function CustomerDelete(){\n $cust_id = $_REQUEST['cust_id'];\n $this->Customer->DeleteCustomer($cust_id);\n }", "title": "" }, { "docid": "66cd6de0414d63410c408fe4fa42960c", "score": "...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "2d5a136e03ba6d4e56714b3d310f941e", "score": "0.0", "text": "public function show($id)\n {\n $surveyanswer = SurveyAnswer::findOrFail($id);\n\n return view('survey-answer.show', compact('surveyanswer'));\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 ...
709418f103b38c7d1238ac69cc13e596
Read the skin definition file, get all defined templates and store definitions. NOTE: Collisions are treated as follows. Numeric indices will always be appended, no matter what, while textual indices will get replaced. This allows the user to decide wether to create an 'anonymous' association (numbered index) or a name...
[ { "docid": "368f3ebab524771de8b4782dbf1737dc", "score": "0.0", "text": "protected function _getConfigurations(): array\n {\n if (empty($this->_configurations)) {\n\n $skinName = $this->getName();\n\n // Load Defaults first\n if ($skinName !== 'default') {\n ...
[ { "docid": "a4c04cc1dd7833cdaed6e48c18c3f55f", "score": "0.5680039", "text": "function templateLoad() {\n\t\n\t\t$this->webLog(\"Loading skin '{$this->config->HTMLTemplate->skin}'\", __METHOD__);\n\t\t$this->self->pieces = (object)array();\n\t\t$this->self->templateFile = $this->config->path . \"/templa...
2d1f320dc01eda420dedcba3892b5170
To get client sceret key
[ { "docid": "24599cf9aa09b0d6114168085d2bbec0", "score": "0.6960145", "text": "public function getClientSecretKey()\n {\n return $this->clientSecretKey;\n }", "title": "" } ]
[ { "docid": "ab2e208c6cbf3a60019407e2826cc4da", "score": "0.7377327", "text": "public static function get_key()\r\n {\r\n // We use php_uname and $_SERVER['HTTP_HOST'] to make a server unique key\r\n return sha1($_SERVER['SERVER_SOFTWARE'] . '-' . $_SERVER['HTTP_HOST'] . \"@\" . php_unam...
471976a74781a448de7a030c06413e98
Deletes the user data of a config key. In order to delete the key itself, use delete()
[ { "docid": "dcf03393846a6c97ddaf540497f46be0", "score": "0.79125583", "text": "public function deleteKey($key, $user = false)\n {\n $config = $this->getConfigModel($key);\n if (!$user) $user = $this->getActiveUser();\n $userConfig = $config->getUserConfig($user);\n if ($userConfig) $userCon...
[ { "docid": "32ac1ca0bf8cc29fa7df260afb2d62d0", "score": "0.717867", "text": "public function delData($key);", "title": "" }, { "docid": "e53f8ed9c16ec400a3cd9af5f6ac1811", "score": "0.6763832", "text": "public function deleteKey($key);", "title": "" }, { "docid": "3f4f250...
7623805d99b3059efac2a33dfa0f7144
Get the associative array of the virtual columns in this object
[ { "docid": "7ce5ff6c12260db53d61666b1ca5d5fa", "score": "0.8391602", "text": "public function getVirtualColumns()\n {\n return $this->virtualColumns;\n }", "title": "" } ]
[ { "docid": "991a93ed6ed4abfa3c2678f4608c91c3", "score": "0.84153295", "text": "public function getVirtualColumns();", "title": "" }, { "docid": "8164ee0c858010b99aa7d87b5503dc61", "score": "0.83747435", "text": "public function getVirtualColumns()\r\n {\r\n return $this->_v...
8425b91bb44d95677d4121e355f9f870
To generate markup for showing current default settings preview on admin interface
[ { "docid": "cad7f0db0fd15a1a236690e76ae28603", "score": "0.0", "text": "function dd_spg_current_settings_box() {\n $message = \"Display image information - <b>\" . get_option('dd_spg_is_display_title_and_des') . \"</b>\";\n $message .= \"<br />Size of Photos - <b>\" . get_option('dd_spg_thumb_size...
[ { "docid": "2b2b3dc6e007aeaaa289a7f3931d5ea2", "score": "0.70531195", "text": "public function setting()\n {\n return view('admin.settings',['title'=> _('admin.settings')]);\n }", "title": "" }, { "docid": "fdd59e73c0b2aa5fa0b56715e0425c3d", "score": "0.6900666", "text":...
51efac304067e48eb1df6f56a2e626f6
Operation getBvnFromNubanAsync Lookup BVN from NUBAN
[ { "docid": "e37bb1139f1ae9b7db0bb6f9e8c59af9", "score": "0.66483474", "text": "public function getBvnFromNubanAsync(\n $bank_code = SENTINEL_VALUE,\n $account_number = SENTINEL_VALUE,\n\n\n string $contentType = self::contentTypes['getBvnFromNuban'][0]\n\n )\n {\n\n ret...
[ { "docid": "88379891278486c4734801bf713527df", "score": "0.6450339", "text": "public function getBvnFromNubanRequest($bank_code = SENTINEL_VALUE, $account_number = SENTINEL_VALUE, string $contentType = self::contentTypes['getBvnFromNuban'][0])\n {\n\n\n\n $resourcePath = '/api/v1/kyc/nuban/bvn...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "890b1c0ce0aabb8f57c20642ded385e4", "score": "0.0", "text": "public function edit(Order $order)\n {\n //\n }", "title": "" } ]
[ { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.76944435", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.76944435", "text": "public function edit(Resource $resource)\n...
305ba5f0879e221f2aaafdb6bc025917
Saves report data array
[ { "docid": "db2c12e2338cb6f3500bc2cd3e4077f6", "score": "0.0", "text": "protected function saveReportDataList($data, $depth=0) {\n $insert = db_insert('amcr_report_data_list');\n $insert->fields(array('report_id'));\n $insert->values(array('report_id' => 0));\n $list_id = $insert->execute();...
[ { "docid": "c813f1df94bb8e5b6e066f6494dd0cc0", "score": "0.7236953", "text": "public function save()\n {\n array_to_file($this->data, $this->file_name);\n }", "title": "" }, { "docid": "ec499a8fbe64534325986e458f5f39d2", "score": "0.66574085", "text": "protected function...
6ae6aa7703b7a354badfa3c1cbbbf491
return an array format representation of this entity
[ { "docid": "ef7b09f13f4d28f7431bcdac348a2528", "score": "0.0", "text": "public function toArray(){\n return array(\n 'id' => $this->id,\n 'plane_id' => $this->plane_id,\n 'depart' => $this->depart,\n 'dep...
[ { "docid": "9850dc46c3798c9461af322c4e95b167", "score": "0.76773465", "text": "public function toArray()\n {\n return self::arrayize($this);\n }", "title": "" }, { "docid": "ef29403614a9904a5c2228cfd44684cc", "score": "0.76528996", "text": "public function toArray()\n ...
dd2e69ce86c57abbfe1b709c55fa61fe
Method used to get the full list of reporters associated with a given list of issues.
[ { "docid": "589c9b0bd00c4dcaf35ff175b6354da9", "score": "0.72410303", "text": "function getReportersByIssues(&$result)\n {\n $ids = array();\n for ($i = 0; $i < count($result); $i++) {\n $ids[] = $result[$i][\"iss_id\"];\n }\n $ids = implode(\", \", $ids);\n ...
[ { "docid": "4c51067e6c64ccfab49ed4b6ec2104cf", "score": "0.6015116", "text": "public function reportedBy()\n {\n return $this->reports()\n ->with('user')\n ->get()\n ->mapWithKeys(function ($item) {\n return [$item...
d0d2cf77fe0889d159c350eda75ce77b
Parse the nested relationships in a relation.
[ { "docid": "0513dab1aa2d0361dd12fca6a51b838a", "score": "0.0", "text": "protected function addNestedWiths($name, $results)\n {\n $progress = [];\n\n // If the relation has already been set on the result array, we will not set it\n // again, since that would override any constrain...
[ { "docid": "c845acfcfde6c5e9afc5b4ddba1e8c5d", "score": "0.6651783", "text": "protected function parseRelationships()\n {\n foreach ($this->entityMap->getSingleRelationships() as $relation) {\n $this->parseSingleRelationship($relation);\n }\n\n foreach ($this->entityMa...