query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
5fa25b664f0a0cfd722a68fc5a6ce0a3
Generar PDF con los datos del propietarios
[ { "docid": "9c2c6646d2f191e76a80e62a7ac457b7", "score": "0.0", "text": "public function pdfOwner(Owner $owner)\n {\n view()->share('owner', $owner);\n $pdf = PDF::loadView('owners.pdf-single', $owner);\n return $pdf->download($owner->first_name . '-' . str_replace(' ', '-', $owne...
[ { "docid": "20e60f2894191d31e56ffa9100695bf8", "score": "0.7471556", "text": "function reportePDFPresupuestaria () {\n\t\t\t$this->objParam->defecto('ordenacion','id_formulacion_presu');\n\t\t\t$this->objParam->defecto('dir_ordenacion','asc');\n\t\t\t$this->objParam->defecto('cantidad', 1000000);\n\t\t\...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "4715c68566404b3d9942adf45b07f28b", "score": "0.0", "text": "public function run()\n {\n DB::table('products')->insert([\n ['name' => 'Banaan', 'description' => 'Een krom en geel voorwerp', 'price' => '500.00'],\n ['name' => 'Sla', 'description' => 'Een groene bal voor s...
[ { "docid": "520d3a91ddad10619dacf1b7197c5aec", "score": "0.7992128", "text": "public function run()\n {\n DB::table('users')->insert([\n 'id' => 1,\n 'name' => 'Usuário',\n 'email' => 'user@email.com',\n 'password' => bcrypt('secret'),\n ]);\n...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.789207", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.78099495", ...
12d24e9cc8dd189c88f4d81d9b86cacd
Valore da impostare per ordine minimo
[ { "docid": "58ac7b6c646ae5a40f820077deddef2e", "score": "0.5519073", "text": "function wc_minimum_order_amount() {\n global $woocommerce;\n //get customer country\n $country = WC()->customer->get_country();\n //echo $country;\n if (\"IT\" != $country) {\n $minimum = 50;\n } \n ...
[ { "docid": "4459c10505d7480ff59c857bc637c6ef", "score": "0.6594259", "text": "public function getMinValue(){ return $this->m_minValue; }", "title": "" }, { "docid": "080aded436792182ad694f1a150e3d76", "score": "0.64433455", "text": "function getSiguiente(){\r\n return min($thi...
49e4c5ad125b9f7aecfb150c20dc1e88
Delete multiple activities by arbitrary WHERE clause.
[ { "docid": "6dd8af3005bbca293a9ae6048b57cce8", "score": "0.57423764", "text": "public function delete_by($field = null, $match = null)\n\t{\n\t\tif ( ! empty($field))\n\t\t{\n\t\t\t// Turn things into an array.\n\t\t\t(is_array($field)) OR $field = array($field => $match);\n\n\t\t\tforeach ($field as $k...
[ { "docid": "55f3f19d161654920e967b51949ac8a8", "score": "0.7126715", "text": "public function delete(array $where = []);", "title": "" }, { "docid": "3e651928eba87cf304c3e6d0f40c279e", "score": "0.69126767", "text": "public static function delete_many($where, $params=array())\n {\...
47880f1489b9cfcfa1191d0a199de54c
function to get the list of film weekly cinemas as search results
[ { "docid": "9f8601b3ed1ac1405ff97a4934b78ea5", "score": "0.71461236", "text": "private function getFilmWeeklyAdvanced($search, $db) {\n \n \t$markers = $this->getFilmWeeklyMarkers();\n \n \t$results = array();\n \n \t// build a query to search for film_weekly_cinema_id using data from ...
[ { "docid": "9a889e27ed3d771e10ecdd667eb2889b", "score": "0.7154143", "text": "private function getFilmWeekly($search, $db) {\n \n \t$markers = $this->getFilmWeeklyMarkers();\n \n \t$results = array();\n \n \t// build a query to search for film_weekly_cinema_id using data from the film_...
93fa2dcbd0cbd77d7787dc047f2846ca
Get the model events to audit.
[ { "docid": "93b3e8094f52d04afa36a9f64e746b80", "score": "0.7980152", "text": "protected static function getModelEvents()\n {\n if (isset(static::$auditEvents)) {\n return static::$auditEvents;\n }\n\n return [ 'created', 'deleted', 'updated' ];\n }", "title": ""...
[ { "docid": "a1eb2dc8fc541ecb4cb5b1faecd37d88", "score": "0.66491276", "text": "public function getEvents()\n {\n return $this->get('events', array());\n }", "title": "" }, { "docid": "f18f50c91e89ce925650479c2a3f982f", "score": "0.6614159", "text": "public function event...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "fb74a9d6f002fcca953c3d1bace5f160", "score": "0.0", "text": "public function create()\n {\n return view('eventtopic.create');\n }", "title": "" } ]
[ { "docid": "f8bba5517a2cb6f46311a24713a6bef2", "score": "0.8125342", "text": "public function create()\n {\n return view('admin.resource.new');\n }", "title": "" }, { "docid": "20ef26ca996d9360798f2ecc07198092", "score": "0.7804094", "text": "public function create()\n\t...
bad2feada5a3badbc55e5b573e3878a6
Override this class to control how API fields are translated to instance fields.
[ { "docid": "45b29108d635dcc0019949353620d039", "score": "0.0", "text": "public function loadJsonObject(\\stdClass $object)\n {\n if ($object->type !== static::TYPE)\n throw new \\RuntimeException(sprintf('Trying to populate an object of class %s with data from WordPress object type ...
[ { "docid": "7b9a8a14950ccf01f7768b1d6f11ff54", "score": "0.656764", "text": "public static function get_fields_to_translate()\n {\n }", "title": "" }, { "docid": "db3b5f1603a04062d18fe7534cdd5d89", "score": "0.5973682", "text": "public function __construct(Field $field)...
6bad5702e782f447e2d22834e012d6a0
Maps the wildcard path from the response route.
[ { "docid": "0ac9fdec392d22c70668bf1800896d37", "score": "0.5516326", "text": "private function mapWildcard($index) {\n\t\t$routeParts = explode('/', $this->route);\n\n\t\tif (!isset($routeParts[$index])) {\n\t\t\treturn '';\n\t\t}\n\n\t\t$wildcardParts = array_slice($routeParts, $index);\n\t\t$wildcard ...
[ { "docid": "625650a03b37175a37203dbc174525cc", "score": "0.6550503", "text": "public function testRouteMatchesResourceWithWildcard()\n {\n $resource = '/hello/foo/bar/world';\n $route = new \\Slim\\Route('/hello/:path+/world', function () {});\n $result = $route->matches($resourc...
ae7edadbfa64c9ca4e361916a15322b5
Fires up layout and view helper
[ { "docid": "1aeb6e9fe14b84a03627723f4e63cff4", "score": "0.6301992", "text": "protected function _initHeader ()\n {\n\n $this->bootstrap('layout');\n $layout = $this->getResource('layout');\n $view = $layout->getView();\n $view->addHelperPath(\"RPS/Views/Helper\", \"RPS_Vi...
[ { "docid": "66ec68ad7ebc3168437edab384f825fc", "score": "0.7210863", "text": "function afterroute() {\n echo Template::instance()->render('layout.htm');\n }", "title": "" }, { "docid": "82d1946f8bd45dcc17f41468f5512219", "score": "0.7168874", "text": "public function execute()\n ...
cafbfe6ce4890d001e157b4c4f3c1d1c
Update existing record insert ID by URL
[ { "docid": "f75239c470f757866e38178ae8e81e5c", "score": "0.0", "text": "function updateProduct($db, $productId, $request, $directory)\n{\n $form_data = $request->getParsedBody();\n $sql = \"UPDATE products SET name=:name, price=:price WHERE id=:id\";\n\n $stmt = $db->prepare($sql);\n $id = (...
[ { "docid": "8348ccc893b51a5d0ddba462578b473b", "score": "0.6511624", "text": "function update($in_new_url, $in_new_name) {\n $db = db_conn();\n $id = $this->id;\n $update_sql = $sql = 'UPDATE bookmarks SET url = \"'.$in_new_url.'\", name = \"'.$in_new_name.'\" WHERE id = '.$id ;\n ...
f49907c63811f516fc7d6070ac9cdb90
Noramlizes configuration data so it can easily be saved to the configurations table
[ { "docid": "cf57f92cbf38aca94f369ae6562ea8d4", "score": "0.0", "text": "public static function pluginConfigWrite($data)\n {\n $config = array();\n $x = 0;\n\n foreach ($data as $key => $value) {\n $config[$x]['Configuration']['id'] = $value['id'];\n $config[...
[ { "docid": "b21bb6903ef45e49522ce419b40e544b", "score": "0.6521168", "text": "public function storeConfig();", "title": "" }, { "docid": "42da7024e06b54ba0f4ee18f0b8785df", "score": "0.65160334", "text": "public function loadDatabaseConfigValues()\n {\n $rows = Configuratio...
5a382fef2b893d59c1e853a261215b0a
Prevents to clone the instance.
[ { "docid": "33bfe405201f0e1aa0fd8e5160687680", "score": "0.0", "text": "private function __clone() {}", "title": "" } ]
[ { "docid": "80beba9f973f36f9c888f5e06fbc2d81", "score": "0.77737844", "text": "public final function __clone() {\n trigger_error('Clone is not allowed for ' . __CLASS__, E_USER_ERROR);\n }", "title": "" }, { "docid": "9faf737bfb6fd217571e0d408797de9d", "score": "0.77250403", ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "d973590c95698d2afbb0cc15d312f452", "score": "0.0", "text": "public function index(Request $request)\n {\n // $warehouse_id = $request->warehouse_id;\n $vehicles = Vehicle::with(['warehouse', 'vehicleType', 'vehicleDrivers.driver.user', 'expenses' => function ($q) {\n ...
[ { "docid": "a2c82e645f33199ca3af4df01daa0da0", "score": "0.73454344", "text": "public function listAction()\n {\n $this->view->headTitle('Book Listing ','PREPEND');\n $this->view->books = $this->bookService->listService();\n }", "title": "" }, { "docid": "2ecb35785c4b9e88...
854c247f435957b1695b9cd1ba3bdbd8
Update a data using model form and array.
[ { "docid": "d546d013500c0968c5274d59a85d69b2", "score": "0.0", "text": "public static function Update($tableName, $fieldList, $whereOption, $dbclassinstance)\n {\n try {\n //get table name from model\n $table = self::nameOptimizer($tableName);\n ...
[ { "docid": "8a39eea6f20c4a5880b4b9ac07c7f190", "score": "0.77651554", "text": "public function update($model, array $data = []);", "title": "" }, { "docid": "5fe217da8d3bff65fab75381596c5996", "score": "0.7761571", "text": "public function update($model, array $data);", "title": ...
4818b07c8edf62bcd27804744efe43f5
Return the resolved amount for the transaction for prabhuPay payment
[ { "docid": "9f3e50a915d26106006d094fb8278eb2", "score": "0.63586944", "text": "public static function resolvePrabhuPayAmount($transaction, $orders)\n {\n $orderFinalPrice = (static::getTotalPrice($orders) +\n static::getGatewayServiceCharge((optional($transaction)->service_charg...
[ { "docid": "1dee20b04338085dce8e77e2f8b6b74f", "score": "0.63779855", "text": "public function getAmountPaid(): float;", "title": "" }, { "docid": "3cea2531ce13dbc1285b8807798c154a", "score": "0.6334552", "text": "public function amountPaid();", "title": "" }, { "docid": ...
8081919c52f1ef126a7fec083a8b4afa
Test case for tagsIdDelete Delete a tag..
[ { "docid": "7a16546982ef612f292c36520793430c", "score": "0.8814474", "text": "public function testTagsIdDelete()\n {\n }", "title": "" } ]
[ { "docid": "58ca52d9cf4852b3b8dcac63f36fba95", "score": "0.82042146", "text": "public function testDeleteAisleTag()\n {\n }", "title": "" }, { "docid": "33f215b59f784cd36b757d461cda1238", "score": "0.7882268", "text": "public function test_ShouldDeleteTag($id)\n {\n $...
7f9970929e50b69c871d841e47921aa8
Get Default http headers for http connection to PostNL
[ { "docid": "fbe29556ce9925c4b5d6c1a153947cbc", "score": "0.6498997", "text": "private function getHttpHeaders(): array\n {\n return [\n 'User-Agent' => 'Avido/PostNL-Cif-Rest-Api-Client-' . self::LIBVERSION,\n 'apikey' => $this->apiKey\n ];\n }", "title": ""...
[ { "docid": "4b588ec10af6d2bac5b26d0c34485f60", "score": "0.7142721", "text": "function http_get_request_headers()\n {\n }", "title": "" }, { "docid": "d53d1f73cecba77fed40e1669ffa787f", "score": "0.7073712", "text": "function http_get_request_headers()\n{\n}", "title": "" ...
1f9f7c4ae7916259d1d1486524dfa30d
Checks if a category is a subcategory of a list of categories given
[ { "docid": "307053625d08d813d6c0070abf3c1b34", "score": "0.5250325", "text": "private function getParentIdInCategoriesArray($categoryId, $categories)\n {\n foreach ($categories as $category) {\n if ($category->id === $categoryId) {\n return true;\n }\n ...
[ { "docid": "8a2446dd81a2d05fc168bf0700f65aa4", "score": "0.7342738", "text": "public function isSubcategory()\n {\n return $this->container['type'] == T::TERM_CATEGORY;\n }", "title": "" }, { "docid": "71c9fdc7e5620e26707fd4795c8d64fb", "score": "0.71653855", "text": "fu...
0209784bcf3cf4ed75b45e06c9a6491c
Register a new PATCH route with the router.
[ { "docid": "814f2a7916a47e9a02c5479e47af746f", "score": "0.59020567", "text": "public function patch($uri, $action = null)\n {\n return $this->addRoute('PATCH', $uri, $action);\n }", "title": "" } ]
[ { "docid": "3af227c9d71ecd47b0cb440d737e77b3", "score": "0.6612847", "text": "public function patch($path = '/', $callback = null) {\n\t\t$this->addRoute('patch', $path, $callback);\n\t}", "title": "" }, { "docid": "af9f2452275272fbbf49021ed94e2dfc", "score": "0.65290153", "text": "p...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "3eb45ab88b036041326f5766464a62b1", "score": "0.0", "text": "public function store(Request $request , Contract $contract )\n {\n // TODO: Generate Receipt\n\n $this->validate($request , [\n 'amount' => 'required|numeric|min:1|max:'.$contract->balance,\n ...
[ { "docid": "d2d5025c41b1d2624f860d8ceab9e2ab", "score": "0.7168782", "text": "public function store()\n {\n // Use the parent API to save the resource\n $object = $this->api()->store();\n\n // Redirect back with message\n return $this->redirect('created', ['id' => $object-...
7a60fb7d2bc31cd404c03d503e89dcfd
the messages providade by the messages.json file
[ { "docid": "193bbbd308cadc797d741ae3890d01f4", "score": "0.0", "text": "public function __construct($config = array()) //our construct method\n\t{\n\t\t$this->geo_ip = new GeoIP; //we create a new istance from the GeoIP class\n\t\n\t\t$this->langs = Load::get_languages($config['languages_path']);\n\t\t$...
[ { "docid": "2d09e8ef4e487e6596ff4b06c0e401d5", "score": "0.7334502", "text": "function loadMessagesJSON()\n\t{\n\t\tif($this->sender_id == null)\n\t\t{\n\t\t\t$this->error['error'] = \"Invalid User ID\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->sender_id = $this->json_details['sender_id'];\n\t\t}\n\t\t\n\t...
b599f42b5d7ccf42c8d05ebfcf144b83
/ REMOVE_WP_TINYMCE Remove default WordPress TinyMce globally on each template except tpltinymce.php
[ { "docid": "8a5791b2d7ae54f81b3b5e567591ef30", "score": "0.80877966", "text": "function wptd_hide_tinymce() {\n $template_file = basename(get_page_template());\n\n if ($template_file != 'tpl-tinymce.php') {\n remove_post_type_support('post', 'editor');\n remove_post_type_support('pag...
[ { "docid": "fc5afd871d4837ab6f803165f1a2ded6", "score": "0.71541667", "text": "public static function force_uncompressed_tinymce() {\n\t\t$has_custom_theme = false;\n\t\tforeach ( self::$mce_settings as $init ) {\n\t\t\tif ( ! empty( $init['theme_url'] ) ) {\n\t\t\t\t$has_custom_theme = true;\n\t\t\t\tb...
c3cd5b5399e835c3fdbc6309ee978f5b
Populate the event pulldown selection list then collect the response via server callback:
[ { "docid": "cf00b319bc258bb7ae4071da57c678ab", "score": "0.4684421", "text": "function event_list(&$state) {\n\tglobal $_DB;\n\n\t$state->records = array();\n\n\t$sql = \"SELECT * FROM \".$_DB->prefix.\"a30_event\n\t\t\tWHERE project_idref=\".$state->project_id.\"\n\t\t\tORDER BY name;\";\n\t$stmt = $_D...
[ { "docid": "affe1ac678aed5c5696138de4e568243", "score": "0.6343075", "text": "public function ajax_response() {\n\n\t\t\tTribe__Events__Query::init();\n\n\t\t\t$tribe_paged = ( ! empty( $_POST['tribe_paged'] ) ) ? intval( $_POST['tribe_paged'] ) : 1;\n\t\t\t$post_status = array( 'publish' );\n\t\t\tif (...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e05e5cbe9d4537d0bd5702986c06022d", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'name' => 'required|min:3|max:50|unique:users',\n 'password' => 'min:6|required_with:confirmPassword|same:confirmPassword',\...
[ { "docid": "a3eaa169a246f55fd5bf18b486ebe204", "score": "0.70050573", "text": "public function store()\n {\n /* Check if logged user is authorized to create resources */\n $this->authorize('create', [$this->model]);\n\n $this->request->validate($this->storeValidations());\n\n ...
45f56e2e99a32591e1e79f2eda02bf86
[post] / Create a new user `Requires authentication: yes`
[ { "docid": "5d777b962686c15dbe5fb99431e4c131", "score": "0.0", "text": "public function store(UserRequest $request){\n return $this->saveUser($request);\n }", "title": "" } ]
[ { "docid": "ad24caa49fb50250b3b8d052380c39ff", "score": "0.81548065", "text": "public function new_user_post()\r\n {\r\n if($this->post(\"username\") && $this->post(\"password\")){\r\n $this->load->model(\"api_model\");\r\n $new_user = $this->api_model->create_user($this-...
bc915358d7a249731c75be045cb656b2
Getters Gets authorization id.
[ { "docid": "8870c9f0553cf4113611abb3d4e254b8", "score": "0.80685484", "text": "public function getId() : int\n {\n return $this->id_authorization;\n }", "title": "" } ]
[ { "docid": "f429f789ec9d9ce2dbf2a9daa24ef092", "score": "0.7512868", "text": "public function getAuthIdentifier()\n {\n return $this->id;\n }", "title": "" }, { "docid": "f429f789ec9d9ce2dbf2a9daa24ef092", "score": "0.7512868", "text": "public function getAuthIdentifier(...
901c4450a40cb99564fa97779e3504da
Provides operations to manage the calls property of the microsoft.graph.cloudCommunications entity.
[ { "docid": "112bef25a76d0b633ffb86763232fb36", "score": "0.0", "text": "public function calls(): CallsRequestBuilder {\n return new CallsRequestBuilder($this->pathParameters, $this->requestAdapter);\n }", "title": "" } ]
[ { "docid": "bed6d33b7e948307973e94ac43a4852a", "score": "0.53458446", "text": "public function call(){\n\t\treturn $this->hasMany('App\\Entities\\Call\\Call');\n\t}", "title": "" }, { "docid": "ddccafac2756e45b97dac0451f112e64", "score": "0.5308783", "text": "public function calls()\...
4c4868f357cf9218ea3208a2b16a9c2f
Runs the JSCoverage task to create the instrumented JS files and then generates the HTML page in the temp directory and serves it up in the response
[ { "docid": "14af22d89b4c03a1f25a3953f50d882f", "score": "0.0", "text": "public function unitTestCoverageAction(Request $request)\n {\n $projectRoot = $this->getProjectRoot();\n $target = $request->get('target', false);\n\n // Redirect if nothing was sent\n if(!$target || !...
[ { "docid": "8f112ecbe11e0e0023c75782931aac20", "score": "0.5836547", "text": "function GenerateJSTemplate($filename)\n {\n $jstemplate = \"var page = require('webpage').create();\";\n /*\n If width/height options are specified\n This won't work if height isn't sp...
efdf74c8925c3120ab7f3091a992de64
Since the native PHP type for this column is integer,
[ { "docid": "b6222184112090e5458fcb1974befd51", "score": "0.0", "text": "public function setStep_to ($step_to)\n {\n // we will cast the input value to an int (if it is not).\n if ( $step_to !== null && !is_int ($step_to) && is_numeric ($step_to) )\n {\n $step_to = (int...
[ { "docid": "1593628fb8b1ee139a00514786775a4d", "score": "0.7220369", "text": "public function valueInt($column) {\n return $this->valueMixed($column, 'int');\n }", "title": "" }, { "docid": "849fb0e837a020a9047bfded15bf9fc5", "score": "0.7003375", "text": "protected function ...
3ab8fd2f2ca3875d6c34a84329f708e2
Construct a new translation handler.
[ { "docid": "f40be98a0a63ffdfadcbb3607cbb8f74", "score": "0.50273544", "text": "public function __construct(string $currLang = 'en-US')\n {\n $this->translator = new SymfonyTranslator($currLang);\n $this->translator->addLoader('array', new ArrayLoader());\n }", "title": "" } ]
[ { "docid": "ecd683bcc08ec3e66053fe201875295e", "score": "0.7029251", "text": "public static function translate($handler, $config = []);", "title": "" }, { "docid": "38e635afb52b27e55211069116dd74d3", "score": "0.6579603", "text": "protected function createTranslator()\n {\n ...
ce8dc90a2027e1e1965ca489181e659d
Definicion de variables para ejecucion del procedimientp
[ { "docid": "9e44f884f3bb66de0654fac29f103873", "score": "0.0", "text": "function listarMonedaDep(){\n\t\t$this->procedimiento='kaf.ft_moneda_dep_sel';\n\t\t$this->transaccion='SKA_MOD_SEL';\n\t\t$this->tipo_procedimiento='SEL';//tipo de transaccion\n\t\t\t\t\n\t\t//Definicion de la lista del resultado d...
[ { "docid": "a24b12c70f91602c6cae74ad67941d36", "score": "0.6821942", "text": "protected function inicializar(){}", "title": "" }, { "docid": "40795a622f71d6fc97a0b6040df5cd57", "score": "0.65106976", "text": "protected function setBasicVariables() {}", "title": "" }, { "d...
89170509891a0ffd26bf8052be1af9a2
Must return table name in SQL DB where entity stored
[ { "docid": "c63b7641b12cede1fd766b49417070d2", "score": "0.7642587", "text": "abstract public function getTableName();", "title": "" } ]
[ { "docid": "24a5fc2a84680de06edaa02f3f84def9", "score": "0.7888991", "text": "abstract static function get_table_name();", "title": "" }, { "docid": "5b3d64109aead77abeafcf4279a242ac", "score": "0.787574", "text": "public static function entityTableName();", "title": "" }, { ...
7c7d5df0b13cf430c859707605e43bab
FIXME Common with InstallForm Fail with a generic installation error.
[ { "docid": "25543ae0137461ca5e015438f9142aef", "score": "0.59101635", "text": "function installError($errorMsg) {\n\t\t$templateMgr =& TemplateManager::getManager();\n\t\t$templateMgr->assign(array('isInstallError' => true, 'errorMsg' => $errorMsg));\n\t\t$this->display();\n\t}", "title": "" } ]
[ { "docid": "46529dd8a6960be3ea7c860a98b556ce", "score": "0.6448484", "text": "public static function checkInstall() {\n\t\t\t// TODO: Something awesoem\n\t\t\tif(!file_exists(\"engine/values/mysql.values.php\")){\n\t\t\t\tLayoutManager::redirect(\"INSTALL.php\");\n\t\t\t} else if(file_exists(\"INSTALL.p...
b746152a9baec704ce5e2b6914627849
Encuentra el modelo de Cda basado en el valor de la primary key. Si no encuentra respuesta, arroja una excepcion 404 HTTP.
[ { "docid": "6988d8017e11fe39a494a402fd31b48a", "score": "0.0", "text": "protected function findModel($id)\n {\n if (($model = Cda::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.');\n ...
[ { "docid": "1ac95a31c04aeeae41c098316f293395", "score": "0.62818563", "text": "function registro($pk, $nomeTabela, $atributo_exibir, $atributo_de_busca = \"id\") {\n\n\n $conn = TConnection::open(DB);\n\n $criterio = new TCriteria;\n $criterio->add(new TFilter($atributo_de_busca, \"=\", $pk));\...
50707f4b28e988e99a4d114221eea015
Get all instances of Status
[ { "docid": "dc0f925bcffd7d925130dff115986558", "score": "0.74115866", "text": "public function all()\n {\n return $this->status->all();\n }", "title": "" } ]
[ { "docid": "34b7df04f1368cdd78f138bc359aa068", "score": "0.7060163", "text": "public function getStatuses();", "title": "" }, { "docid": "6179d222faa4080d11bbd4e429177fd9", "score": "0.70081484", "text": "public static function all() {\n\t\tglobal $db;\n\t\t\n\t\t$st = $db->prepare(\...
ac4142470d2943e6735b4532a261214b
Finds image type definition by name and type
[ { "docid": "68a479fbe2e99388231fac52f598dcc9", "score": "0.5808666", "text": "public static function getByNameNType($name, $type = null, $order = 0) {\n\n static $isPassed = false;\n\n // @codingStandardsIgnoreStart\n\n if (!isset(static::$images_types_name_cache[$name . '_' . $type...
[ { "docid": "7a5fe0125bdef04d10aff223d3edae7a", "score": "0.6713525", "text": "public function identifyImageType() { }", "title": "" }, { "docid": "6a4e7639f98076ed2db3c8df1bdb0918", "score": "0.67014873", "text": "function bpi_get_image_type($image_field_name, $node) {\n /*\n * We...
eae59aeff01f963d63ac9be02db254b5
Add a validator to this field
[ { "docid": "87f1c597c911fd38ef9c642c4c7a4155", "score": "0.6597953", "text": "public function AddValidator( in4mlValidator $validator ){\n\t\t$this->validators[] = $validator;\n\t}", "title": "" } ]
[ { "docid": "357c77eedfeb0dcebbd69fa76d72207e", "score": "0.7634242", "text": "public function add_validator( ExtendedValidatorInterface $validator );", "title": "" }, { "docid": "fc0825ea4bedadea9a20c9fd6e69c766", "score": "0.6814672", "text": "public function setValidator($validator...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "711a0b8e82ed508de921e0dec4213648", "score": "0.0", "text": "public function rules()\n {\n $rules= [\n 'name' => 'required|alpha_spaces', //teste\n 'nome_informal' => 'required|max:40',\n 'nif' => 'max:9',\n 'telefone'=> 'max:20',\n ...
[ { "docid": "b344895fd61d31159e9d44793f24ae8b", "score": "0.85802996", "text": "protected function validationRules()\n {\n return $this->createFormRequest()->rules();\n }", "title": "" }, { "docid": "f82927e1194515645fa820d75825b7ee", "score": "0.8128832", "text": "public...
7a9609fb4c88a6c0bee0028b7e017f38
line 2125 "smarty_internal_templateparser.php" line 228 "smarty_internal_templateparser.y"
[ { "docid": "a1ccb56e5db5f1061886c85152638768", "score": "0.58248067", "text": "function yy_r35(){ $this->_retvalue = '<?php ob_start();?>'.$this->compiler->compileTag($this->yystack[$this->yyidx + -6]->minor,array_merge(array('object_methode'=>$this->yystack[$this->yyidx + -4]->minor),$this->yystack[$t...
[ { "docid": "def2c62ddc5ec58bb6aa2fb02dd9543d", "score": "0.7478451", "text": "function yy_r177(){\n $this->_retvalue = new _smarty_tag($this, $this->yystack[$this->yyidx + 0]->minor);\n }", "title": "" }, { "docid": "4953042c2bad30f7003cc54fc234e10f", "score": "0.74728805", "t...
3afcad21695ca9a5df78c399426598eb
getter per i dati del profilo
[ { "docid": "a1dc3a67dae2744f089215c7469949f2", "score": "0.0", "text": "function get_profile() {\n\n $query = query(\"SELECT * FROM profilo ORDER BY pro_id DESC LIMIT 1\");\n confirm($query);\n\n $row = fetch_array($query);\n return $row;\n\n}", "title": "" } ]
[ { "docid": "974c27012d453ecb9873fe5fef05c535", "score": "0.79207015", "text": "private function getProperti()\n\t{\n\t\t# code...\n\t}", "title": "" }, { "docid": "baac06b941b4a1e169ba1b0d47eb39b7", "score": "0.69633025", "text": "abstract public function getInfoProduk();", "titl...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "02bb18e99ab0114befc8ce70b65ca36c", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n User::findOrFail($id)->update($request->all(),$id);\n return response([\n 'error' => false,\n 'updated' => true,\n 'message' => ...
[ { "docid": "995ba0c8f03901b2d9d4e3a2b71aed6a", "score": "0.7192627", "text": "public function put($resource);", "title": "" }, { "docid": "01534868cb4f609380c1221841e980b3", "score": "0.7055208", "text": "public function testUpdateResource()\n {\n\n }", "title": "" }, {...
64b08553c127240735b243a0e1854836
Stuff In The Header
[ { "docid": "7669e95bfa28986b82f620e47114129b", "score": "0.0", "text": "function sith() { \n\t\t\t\tglobal $BF, $PROJECT_ADDRESS;\n\t\t\t\tinclude($BF .'components/list/sortlistjs.php');\n\t\t\n\t\t$type_results = db_query(\"SELECT ID,chrFieldType FROM FieldTypes WHERE !bDeleted ORDER BY dOrder\",\"gett...
[ { "docid": "47d158ebf76840b956cc58fc1f1c3f7b", "score": "0.8177995", "text": "function Header() {\n }", "title": "" }, { "docid": "e2773020fe3cb332114deefb3304b5a5", "score": "0.7994568", "text": "function Header()\n {\n }", "title": "" }, { "docid": "db81832e92...
b2d8f95e8c35acb0147d63b6d4da572f
Generate URLFriendly Link from String
[ { "docid": "d1cefd8654b950b6d88784bdb9da487f", "score": "0.0", "text": "public static function slugify($input, $regxp = '/[^a-zA-Z0-9_-]/', $lowercase = true)\n {\n $output = str_replace(' ', '-', $input);\n $output = preg_replace($regxp, '', $output);\n $output = preg_replace('/...
[ { "docid": "e8ebd8d7f830aafc3af94ef8c013f6e0", "score": "0.7682213", "text": "function render_url($string) {\n\n\t\treturn $this->insert_link($string, \"|https?\\:\\/\\/[a-z0-9\\/\\#\\_\\.\\-\\?]+|i\", '<a target=\"_blank\" href=\"{}\">{}</a>');\n\n\t}", "title": "" }, { "docid": "088a215ca1...
4ed4ae5cee3e9513215160fe5fded656
pad integer value from Filemaker to create a year that meets the xs:gYear specification
[ { "docid": "3c762c0b0f6ab60cc53e260e037478df", "score": "0.7164787", "text": "function number_pad($number,$n) {\n\tif ($number > 0){\n\t\t$gYear = str_pad((int) $number,$n,\"0\",STR_PAD_LEFT);\n\t} elseif ($number < 0) {\n\t\t$gYear = '-' . str_pad((int) abs($number),$n,\"0\",STR_PAD_LEFT);\n\t}\n\tretu...
[ { "docid": "6568a856e1138017c2bd805c83fa8ebd", "score": "0.671192", "text": "public function year() { return 0; }", "title": "" }, { "docid": "10f57bca86d05248d2424f6120e6505b", "score": "0.66926146", "text": "public function Ano4() {\n return $this->mktime != 0 ? date('Y', $t...
cd8663d30485551078ca0d0fa17140f5
/ add a line to canvas
[ { "docid": "e645e5403fdfab7f856379610100028c", "score": "0.5546098", "text": "public function line ($id=false, $p1=false, $p2=false, $t=false, $c=false) {\n if (!is_array($id)) {\n return $this->line(array(\n 'id'=>$id,\n 'p1'=>$p1,\n ...
[ { "docid": "499f0aeec7d32941bfcb760f414f1c78", "score": "0.7983763", "text": "public function addLine() {\n $this->drawLine($this->_leftMargin, $this->_yPosition, $this->_rightMargin, $this->_yPosition);\n //déplacement du curseur vers le bas de 15 pixels\n $this->_yPosition -= 1...
3a167ac0ac2784fb847115892ac44cbb
Prepara e executa uma consulta
[ { "docid": "42baf69a2d906f4bf499a9fffa1f1219", "score": "0.0", "text": "public function select(string $rawQuery, bool $saveLog = false): array;", "title": "" } ]
[ { "docid": "d0e9d738a82d042f105f97897c1ef210", "score": "0.6886514", "text": "function prepararConsulta() {\n\t\t$campos = \"select id from imputaciones as i inner join productos as p on (p.id_produccion=i.id_orden_produccion) where i.id is not null \";\n\t\tif($this->id_usuario != \"\") {\n\t\t\t$condi...
eb1f96964a842242b9f8ad13240ace4b
Function to get the URL
[ { "docid": "ad1e8b4f82ab41d535342b82ad40427b", "score": "0.0", "text": "function show_Url ($options,$boxwidth,$boxheight) { \n //cObj wichtig für wrap\n $cObj = t3lib_div::makeInstance('tslib_cObj');\n $uid = $this->cObj->data['uid'];\n // Zufalsswert\n foreach ($this->conf...
[ { "docid": "d9d99d743146a63558483de46d388cd7", "score": "0.8624874", "text": "function getURL ();", "title": "" }, { "docid": "aa2960af89b7ade87a9a2e1308c5e2fb", "score": "0.84811485", "text": "abstract public function getURL();", "title": "" }, { "docid": "811c4262e89799...
966082ac42db000ab899d4f3e4d1ef0e
Test creating a user
[ { "docid": "24a949cb1b156b6db2d0843625b415f2", "score": "0.0", "text": "public function testDeleteUser() {\n // create data array\n $data = array(\n 'first_name' => 'Userfirstname',\n 'last_name' => 'Userlastname',\n 'full_name' => 'Userfirstname Userlastn...
[ { "docid": "271bd1eed836080720f16e9e4e7c02db", "score": "0.8539169", "text": "function test_createUser() {\n $username = \"nombredeusuario\";\n $password = \"password\";\n $email = \"direcciondecorreo@alum.us.es\";\n $genre = \"Femenino\";\n $autonomousCommunity = \"Ma...
05ed02343a56666c791343705eb34ca7
retrieve a single supply
[ { "docid": "b5ee3b69703e8e78fa97106c42cfcb2f", "score": "0.52984804", "text": "public function get($which)\n\t{\n $sql = sprintf(\"SELECT * from SUPPLIES where ID = %d\", $which);\n $query = $this->db->query($sql);\n $result = $query->result();\n $reset = reset($result);\n ...
[ { "docid": "f60e28d628a8c1b1fb54cb063c558fe4", "score": "0.7132146", "text": "public function getSupply(){\n $command = new Command($this->host, self::BLOCKS_GET_SUPPLY,\"GET\", $this->enableCache, $this->cacheLifetime, $this->cacheFolder);\n $command->execute();\n return $this->con...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "8dcf50dd27c265726958456310598f0e", "score": "0.0", "text": "public function update(Request $request, TransationDetail $transationDetail)\n {\n //\n }", "title": "" } ]
[ { "docid": "ae90a700efd6cf3cd7c51c1c4442503a", "score": "0.7658553", "text": "public function update(ResourceInterface $resource);", "title": "" }, { "docid": "d6a508508d13bb02f2a247e9bf196f78", "score": "0.71877676", "text": "function update ( $id, $resource ) {\r\n\r\n }", ...
8b993e045b97bab6193705e8a2ebf8a2
Returns true if this authentication plugin is "internal". Internal plugins use password hashes from Moodle user table for authentication.
[ { "docid": "b78869136669502159fb49c5aa5e0fdd", "score": "0.6391023", "text": "public function is_internal() {\n return false;\n }", "title": "" } ]
[ { "docid": "ea1196f6755c0b5402d0e171cd378d7f", "score": "0.71978974", "text": "private function internalAuth() {\n if ( $this->user->getPassword() == $this->plainPassword ) {\n return true;\n }\n\n return false;\n }", "title": "" }, { "docid": "26c488e6a88a...
7f0f38820b0edba22413783885169fa0
Draw an image to the provided coordinates.
[ { "docid": "4fbdaced9ec7229385b9d6e681468adf", "score": "0.7182407", "text": "public abstract function drawImage( MetaImage $image, $x, $y );", "title": "" } ]
[ { "docid": "e6583a661052e6c51b213f2605f6e50e", "score": "0.6532773", "text": "public function drawImage()\n {\n }", "title": "" }, { "docid": "3ff680a1135cb8b0d0e59177a5a73ca9", "score": "0.61993736", "text": "function wb_draw_image($target, $bitmap, $xpos = 0, $ypos = 0, $widt...
c4fee7d512a28a08feb096a893bf1d07
TODO: Your mock expectations here
[ { "docid": "f151ff24b06521e862f7dcfc3ab5c8bf", "score": "0.0", "text": "public function testQuery226()\n{\n\n // Traversed conditions\n // if ($this->debug) == true (line 85)\n // if ($this->timeout) == false (line 89)\n // if (!$fp) == false (line 94)\n // while (!\\feof($fp)) == true (l...
[ { "docid": "85ef50192ae1460d9c425ef3f1a6484e", "score": "0.6643214", "text": "public function testOrderCaptureGet()\n {\n }", "title": "" }, { "docid": "ff6fc44e8c9705f345dd2eabf5ad2bb1", "score": "0.6253914", "text": "public function testOutputsGet()\n {\n }", "title...
ec432ecd5c90175aeddd700d48277e31
pr Convenience debugging function
[ { "docid": "c674664b2d558951889f3606f0d60f44", "score": "0.6351239", "text": "function pr($data) {\n echo \"<pre>\";\n print_r($data);\n echo \"</pre>\";\n}", "title": "" } ]
[ { "docid": "b6338660dd3abd5b1ca95be1f9c405b9", "score": "0.72628057", "text": "function printPR($pr) {\n if(getenv('PROFILER')) {\n echo PHP_EOL;\n echo debug_backtrace()[1]['class'].'::'.debug_backtrace()[1]['function'].' profiling:'.PHP_EOL;\n foreach($pr->results as $r) { echo...
2488c6cc6199fcf57f062fc5d1d4e2ad
Set view object, this filter is applied to
[ { "docid": "b9fdb42c7d93c53b4fd03308f5204696", "score": "0.6416377", "text": "public function setView($view)\n {\n if ($view instanceof Zend_View) {\n $this->_view = $view;\n }\n }", "title": "" } ]
[ { "docid": "418214ca452157cd913094c52d388fa5", "score": "0.7278154", "text": "public function setView ();", "title": "" }, { "docid": "8c4354ba4595a3f9acbbaddd7edcb54c", "score": "0.70327896", "text": "abstract protected function doSetupViewWithFilters();", "title": "" }, { ...
00e0c3fd041c6ef062dec69b04f313c1
Returns the current status of a notification. Options: active, deactivated, future, expired.
[ { "docid": "585e05aa40e21403f37e8e18b69ba7c3", "score": "0.0", "text": "public function get_notification_status( $post_id ) {\n\t\tglobal $wpdb;\n\t\treturn $wpdb->get_var( $wpdb->prepare( \"SELECT\n\t\t\tIF ( 'publish' != posts.post_status, 'pending', IF ( wpc_nf_deact.meta_value IS NOT NULL AND wpc_nf...
[ { "docid": "b90969403530480c021800fde4a00dc2", "score": "0.7058077", "text": "public function getStatus()\n {\n return $this->status->get();\n }", "title": "" }, { "docid": "63f31fc257b217de1c9dd3b81ac3009d", "score": "0.6829025", "text": "public function getStatus()\n ...
4d43a98bf90f7f0db838aef0a7848712
Search the notes and worktime for a date
[ { "docid": "65d526bf93f067df69a1b22df740ade9", "score": "0.6617404", "text": "public function searchWorktime($date) {\n\n //expolde the date string format D.M.Y\n $date = explode('.', $date);\n\n //set the start/end timestamps for the day\n $start = mktime(0, 0, 0, $date[1], ...
[ { "docid": "9ef8bab63c92f7fd2a126d9403a1d684", "score": "0.5859247", "text": "public function process_date() {\n\t\t$from = $this->security->xss_clean($this->input->post(\"from\"));\n\t\t$to = $this->security->xss_clean($this->input->post(\"to\"));\n\t\t$result = $this->lead->search_by_date($from,$to);\...
fc91233738042d7da8fd5aebfb149923
/ Initialize action controller here
[ { "docid": "2274027479eb91f70623cb31eb23e4c5", "score": "0.0", "text": "public function init() {\n\t\t$this->view->placeholder('actionmenu')->append('<a href=\"' . $this->view->url(array('controller' => 'game', 'action' => 'add'), 'default') . '\">Add</a>');\n\t}", "title": "" } ]
[ { "docid": "6bf98b7e3493ef421c50e34e974aa238", "score": "0.7727847", "text": "public function initializeAction() {\n\t}", "title": "" }, { "docid": "57a7624010c31d13bc382a0ded13c4c5", "score": "0.7626292", "text": "protected function init()\n {\n\n $path = $this->request->g...
8dfbe8eb5d88a836bafdef43622ea90f
Returns the image's width
[ { "docid": "5f835e41769cdd1f35dbac138b13eec8", "score": "0.7791384", "text": "public function getWidth()\r\n\t{\r\n\t\treturn $this->width;\r\n\t}", "title": "" } ]
[ { "docid": "0722b9338f27c6e573a42a7b75ce2d73", "score": "0.9089527", "text": "function get_width() {\n\t\treturn imagesx($this->image);\n\t}", "title": "" }, { "docid": "671d829938350c2e39c0491b7aaebdfc", "score": "0.90152717", "text": "public function getWidth() {\n\t\treturn images...
20d36be9e947b9997b5ce07678a332f0
get all selectionlist entries for a given selectionlist PK
[ { "docid": "a03b79b866d86aca2b9a546ba6091812", "score": "0.6751981", "text": "public static function loadAllSelectionListEntries($FK_selectionList)\n {\n $table = DB::table('selectionListEntry');\n $where = DB::where($table->getColumn('FK_selectionList'), DB::intTerm($FK_selectionList))...
[ { "docid": "16153d182def6f3394d9a5a605d38c55", "score": "0.58589125", "text": "public function selectList()\n {\n \treturn $this->ordered()->get( ['id', 'name'] );\n }", "title": "" }, { "docid": "74ce0f4830c7f85b5346243aa0e11223", "score": "0.5835425", "text": "public funct...
e80c57ccc41753ad534b03de70a1bf5a
Test should delete warehouse
[ { "docid": "f9e30ffffe7c8cea90ee8872cdc56a0c", "score": "0.75765234", "text": "public function test_ShouldDeleteWarehouse($id)\n {\n $response = $this->deleteWarehouse($id);\n $response->assertStatus(200)\n ->assertJson([\n 'status' => 'success',\n ...
[ { "docid": "2adf924b688ae5dcb2101302dd187a92", "score": "0.8192005", "text": "public function test_ShouldThrowException_IfWarehouseDoesntExists_WhenDelete()\n {\n $response = $this->deleteWarehouse(-1);\n $this->assertError($response, 500);\n }", "title": "" }, { "docid":...
77a02a61db3d9a29a07bb71407fa74f9
Returns a list of properties The returned struct should be in the format: namespacetagName => contents
[ { "docid": "f82959d88245689e42c47a6ff7cb2585", "score": "0.0", "text": "public function getProperties($uri,$properties) {\n\n $node = $this->getNodeForPath($uri);\n if ($node instanceof Sabre_DAV_IProperties) {\n return $node->getProperties($properties);\n } else {\n ...
[ { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6868843", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4ee5694ab9ec23a7ea6c258f32533", "score": "0.6868843", "text": "public function getProperties();", "title": "" }, { "docid": "e7c4...
6098ebf0906e741a53d3018155180f7d
Set the model data used by the form.
[ { "docid": "91ac5abfe3492c62fa1c442729a50db2", "score": "0.7763885", "text": "protected function setModelData()\n {\n $data = $this->model ? $this->model->toArray() : [];\n\n foreach($this->fields() as $field) {\n if (!isset($data[$field->name]) && !$field->is_meta) {\n ...
[ { "docid": "e339e15f34633798b2c50b3f17fea7fe", "score": "0.7544598", "text": "public function setModel();", "title": "" }, { "docid": "ef5425cb06a040850307f3e197cf3ded", "score": "0.74825054", "text": "abstract protected function setModel();", "title": "" }, { "docid": "c...
9ae527ed47b926442c71aa895a781f67
Create the example layout.
[ { "docid": "491ead6aa362003ed7f0134c798a74cd", "score": "0.6089516", "text": "protected static function createLayout()\n {\n copy(__DIR__.'/templates/layout-stub.blade.php', resource_path('views/layouts/default.blade.php'));\n }", "title": "" } ]
[ { "docid": "5b65a99ef2c9848d9273324979189b3e", "score": "0.7006783", "text": "public function layout();", "title": "" }, { "docid": "0fd62d4536a8d1b32b2cca2d3daeaa15", "score": "0.6966984", "text": "public function layout() {}", "title": "" }, { "docid": "06862b527f8f65cf...
b2c103966f159e376d40428e467234ed
/ Save Teamspeakserver Server Edit rights for a spezfic user
[ { "docid": "13a9730250908efbfb160bbed2cdb1eb", "score": "0.6221389", "text": "function userServerEdit($pk, $port, $instanz, $adminCheckboxRightServerEditPort, $adminCheckboxRightServerEditSlots, $adminCheckboxRightServerEditAutostart, $adminCheckboxRightServerEditMinClientVersion\n\t\t, $adminCheckboxRi...
[ { "docid": "531802ca1d3148b2f2a04f1fb69e29d3", "score": "0.5976882", "text": "public function edit(Server_User $server_User)\n {\n //\n }", "title": "" }, { "docid": "43fcc17a625cfea6726a6f018e0dac52", "score": "0.5740643", "text": "function permSaveObject()\n\t{\n\t\tgl...
5a0ea7fcc394b10004dbaae5fbbf745e
Get list of all publishers declared in the system.
[ { "docid": "1ceade685ed445e0999fb1ab52eb18af", "score": "0.8652874", "text": "public function getPublishers();", "title": "" } ]
[ { "docid": "ebe41ee78a3748df08d18419d7861425", "score": "0.64649624", "text": "public function index(Request $request)\n {\n return $publishers = Publisher::all();\n }", "title": "" }, { "docid": "d8fb55bc45193a37dabe7d545ba25eed", "score": "0.62949234", "text": "public ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "a126034ef6b9c4d0910585ff7b45c5c9", "score": "0.0", "text": "public function show(User $user)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.81890994", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "c8985097bcf4925e7728ae219257fd22", "score": "0.7437705", "text": "public function show(Resource $resource)\n ...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "6dd5226294baa3b2dd142838a13b521c", "score": "0.0", "text": "public function rules()\n {\n $rules = Prestacion::$updateRules;\n\n $rules['nombre'] = [\n 'string',\n Rule::unique('prestaciones')->ignore($this->prestacion),\n 'min:1',\n ...
[ { "docid": "ed9f9fb9b18030653ebeb9d002314a1f", "score": "0.80143493", "text": "public function getRules()\n {\n return $this->validator->getRules();\n }", "title": "" }, { "docid": "f87df475b86bdc74bc1d58514eee32e6", "score": "0.80022895", "text": "public function rules(...
9527e48018e2de171f127aee2fe7681d
Static method. Filters the POST request to contain only client creatable columns. Everything else is unset. Values used in the parameter should be validated first.
[ { "docid": "95295c58921f81bfd9bac8983dba9c9b", "score": "0.7258789", "text": "public static function filterClientCreatableColumns(array $post);", "title": "" } ]
[ { "docid": "919fc133971ba23f11f3919f7ba999fa", "score": "0.57850873", "text": "public function filterClientUpdatableColumns(array $post);", "title": "" }, { "docid": "8014c883700ced4640df983f9813f140", "score": "0.5655429", "text": "protected function allowedDataFields(){\n //...
dd36827f26294b48328a191bc84701f6
/ This class helps to logout an account that has logged in using a token
[ { "docid": "619c0dffb9ae74001b9728450f1690cc", "score": "0.0", "text": "function tokenLogout($aigaionRoot,$sitename,$serial,$hash)\r\n{\r\n require_once(dirname(__FILE__) . \"/httpclient/http.php\");\r\n $result = \"\";\r\n\t//set_time_limit(0);\r\n\t$http=new http_class;\r\n\r\n\t/* Connection timeou...
[ { "docid": "d348104e1332126dc890baa98b86a3f4", "score": "0.8231722", "text": "public function logout() {\r\n\t\t// Generate new token\r\n\t\t$new_token = sha1 ( TOKEN_SALT . $this->user->email . Utils::generate_random_string () );\r\n\t\t// Add it to an array\r\n\t\t$data = Array (\r\n\t\t\t\t\"token\" ...
da18532355c7acd9b64af486bd6b666a
Returns true if offset exists. False otherwise.
[ { "docid": "d5a301618ce775c73d44b723cf9bc722", "score": "0.0", "text": "public function offsetExists($offset)\n {\n return isset($this->container[$offset]);\n }", "title": "" } ]
[ { "docid": "c6eb9faf470ccbcaed1b6de98399c2dd", "score": "0.84607", "text": "public function hasOffset($offset);", "title": "" }, { "docid": "2e41f6d1503a2cac93f3ab1f09f2f2f8", "score": "0.84012026", "text": "public function offsetExists($offset)\n\t{\n\t\treturn false;\n\t}", "ti...
772f9be12abea33bb97daafd519225f9
FIRST CHECK IF THIS LOCK ALREADY EXISTS IN DB
[ { "docid": "7baa91f3f34c71152cfc58712103983c", "score": "0.0", "text": "public function storeLastHeartBeatInDatabase($last_heart_beat, $factory_name)\n {\n $stmt = $this->conn->prepare(\"SELECT g_factory_name FROM app_activated_gateways WHERE g_factory_name = ?\");\n $stmt->bind_param(\"s\"...
[ { "docid": "75f9507677151ab7d3cd73c1cddb9f76", "score": "0.7153261", "text": "public function checkLock() {\n }", "title": "" }, { "docid": "9f237b615e17cc7b3803ebc8e0f5dca1", "score": "0.71196437", "text": "public function hasLock(){\n\t\tstatic $lock = -1;\n\t\tif(is_bool($lock)...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8ae7989639409790cb11dbd3284a3a44", "score": "0.0", "text": "public function destroy(RestaurantData $restaurantData)\n {\n //\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "6f5cb91b0423a11c78f100fc165554df", "score": "0.6959094", "text": "public function delete(ResourceInterfac...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "27b082d34c18b3b8d6c45a04bd7b1e2b", "score": "0.0", "text": "public function edit($id)\n {\n // $post = Posts::find($id);\n }", "title": "" } ]
[ { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "text": "public function edit(Resource $resource)\n ...
54006a510960569dee9196f1e7743d96
Add a child to the object
[ { "docid": "f46a41d646d5df576005f05836d671d6", "score": "0.59298694", "text": "protected function addChild($key, $arr) {\r\n\t\t$this->children[$key] = $arr;\r\n\t}", "title": "" } ]
[ { "docid": "471839ac3341aac37e12c47bb7ab66f5", "score": "0.72582555", "text": "function add_child(&$child) {\r\n\t\t$this->children[] =& $child;\r\n\t\t$child->set_parent($this);\r\n\t}", "title": "" }, { "docid": "546ff75cf39bc098828e75525de97931", "score": "0.71616596", "text": "pu...
60421cfa64084d8cdb47c50094a51e43
convert topic_id to topic name
[ { "docid": "e51883f6821943f7de3cdb0a8fe3be00", "score": "0.6711361", "text": "function idToTopic($topic_id) {\n\n global $db, $newsapi;\n\n $query = \"SELECT topic FROM topics WHERE topic_id = :topic_id\";\n $statement = $db->prepare($query);\n $statement->bindValue(':topic_id', $topic_id);\...
[ { "docid": "784bd542ba4894420e6b4b45bc603d3a", "score": "0.73273224", "text": "public function FldrName() {\n\treturn sprintf(KS_FMT_TOPICID,$this->KeyValue());\n }", "title": "" }, { "docid": "421008d9779d45fb2f4c45c32e69d6cd", "score": "0.69265914", "text": "function getTopicNam...
2fcf38bad66e9c6adbdfc6d4db7f7881
Form API callback: Processes the menu_levels field element. Adjusts the parents of menu_levels to save its children at the top level.
[ { "docid": "9f257072d06cda102bad9e251cd4a68d", "score": "0.0", "text": "public static function processToParent(&$element, FormStateInterface $form_state, &$complete_form) {\n array_pop($element['#parents']);\n return $element;\n }", "title": "" } ]
[ { "docid": "f05c5ab1b7407b2b652798472db0e198", "score": "0.6450889", "text": "protected function populateTree($levels)\n\t{\n\t\tforeach ($levels as $item)\n\t\t{\n\t\t\t$class = $this->enabled ? $item->class : 'disabled';\n\n\t\t\tif ($item->type === 'separator')\n\t\t\t{\n\t\t\t\t$this->tree->addChild...
43176f113972e8c2100ba8b6daf8e913
Test serialization with url parse exception
[ { "docid": "769670936393b2386f18c76b7f85a60b", "score": "0.8075637", "text": "public function testSerializationWithUrlParseException()\n {\n $userPictures = new UserPictures();\n $this->generateCacheManager('http://blah.com:abcdef');\n $this->generateRequestContext();\n $t...
[ { "docid": "31f99cf063ea64c34937517ba0f94bb4", "score": "0.62642866", "text": "public function testExceptionOnInvalidUrl()\n {\n $this->expectException(InvalidUrlException::class);\n $this->scraper->load('this-is-not-a-url');\n }", "title": "" }, { "docid": "9b75a6fd88d94...
9652e1461f80b5007ed0972918c9805c
Set all the table column values at once
[ { "docid": "012872698156ec4a4b8f58871e353b09", "score": "0.0", "text": "public function setColumns($columns = null)\n {\n if (null !== $columns) {\n if (is_array($columns) || ($columns instanceof \\ArrayObject)) {\n $this->rowGateway->setColumns((array)$columns);\n ...
[ { "docid": "d571648596b31f301d3c6063cb52470f", "score": "0.7440256", "text": "abstract protected function set_columns();", "title": "" }, { "docid": "a48f120d53e03d752ed47680c8171ac6", "score": "0.70489335", "text": "public function setColumns();", "title": "" }, { "docid...
f7d4d39cbafb3fda85251f6a71f93706
Registers the `areas_of_practice` taxonomy, for use with 'post'.
[ { "docid": "102b86d1a35a60b0f1f227e10b26a55e", "score": "0.77748686", "text": "function areas_of_practice_init() {\n\tregister_taxonomy( 'areas-of-practices', array( 'attorneys' ), array(\n\t\t'hierarchical' => false,\n\t\t'public' => true,\n\t\t'show_in_nav_menus' => true,\n\t\t'show_ui...
[ { "docid": "09e138cad02d305c3304cfc428f2737d", "score": "0.6436479", "text": "public function register_custom_post_taxonomy() {\n\t\t}", "title": "" }, { "docid": "8c28ee200480b85135824fe50665d09a", "score": "0.63721067", "text": "static function register_taxonomy() {\n\t\tregister_t...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function ...
01235bc2f2c5f1f5bacfeeec9eef9c66
Is the result the first one in the ResultSet?
[ { "docid": "dc1fb58fe21b6d7b998deb64ad519b92", "score": "0.0", "text": "public function is_first()\n {\n return $this->is_position(self::POSITION_FIRST);\n }", "title": "" } ]
[ { "docid": "933f969249b51110428da5db374929c3", "score": "0.74138564", "text": "function oneElement($result){\r\n\t\tif($result && mysql_num_rows($result) == 1){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "title": "" }, { "docid": "ee3a473fa04cea1e8e24d95b983be332", "sco...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "292dce0fb25f89abb8c64bf979c1cafd", "score": "0.0", "text": "public function __construct()\n {\n $this->middleware('auth');\n }", "title": "" } ]
[ { "docid": "f2a8a6dabb56f39daaf63fa047807979", "score": "0.82668066", "text": "protected function createController()\n {\n $this->createClass('controller');\n }", "title": "" }, { "docid": "533144d4d648d293dbbc6fe3cf27bbc4", "score": "0.8173394", "text": "protected funct...
0714beea3f38ba508b99910274c54c0f
Add patch api call
[ { "docid": "e4a1b104c8f38191c1e9a762f8cc8500", "score": "0.0", "text": "public function patch($pattern, $handler, $params = [])\n {\n $this->add('patch', $pattern, $handler, $params);\n }", "title": "" } ]
[ { "docid": "e80eba665e45dbefe827154cd38a7b5b", "score": "0.80678153", "text": "public function patch();", "title": "" }, { "docid": "e80eba665e45dbefe827154cd38a7b5b", "score": "0.80678153", "text": "public function patch();", "title": "" }, { "docid": "a3d83612be9a1cb0cc...
886398bb9dd75f9e856c08ff25b5e941
Load item image collection
[ { "docid": "85f1105b970431a2f6406659d2582046", "score": "0.7374712", "text": "protected function loadImages()\n {\n // Create images collection\n $this->images = array();\n \n // Load each image\n $imageCollection = $this->parent->db->query();\n $imageCollection->select('*', 'bf_item_...
[ { "docid": "62f22464361a9908d88565904a399b30", "score": "0.6996129", "text": "private function parse_item_images() {\n\t\t$this->get_item_images();\n\n\t\tif ( ! empty( $this->images ) ) {\n\t\t\tforeach ( $this->images as $src => $img ) {\n\t\t\t\t$this->parse_item_image( $src, $img );\n\t\t\t}\n\t\t}\...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "4b8255c05a264d5d61f546d7bcd507ce", "score": "0.6672584", "text": "public function delete($resource){\n ...
478047ad78965e0c1558db6f6897076f
Determine whether or not FirePHP is enabled
[ { "docid": "8ab201c58133334e0dae429bc61f4ca2", "score": "0.56473035", "text": "public function getEnabled()\n {\n return $this->firephp->getEnabled();\n }", "title": "" } ]
[ { "docid": "9c5a28e754ac3777c649e5b3819ff812", "score": "0.62895286", "text": "public function getFirePhp() {\n return $this->firePhp;\n }", "title": "" }, { "docid": "74b5f07bb9dc11b2581b638e530754f3", "score": "0.6280184", "text": "public static function isSafeModeHackEna...
c0f6f159f5fa5bd9e9344b399e429295
Returns a list of directories and files. When $directory is not set (FALSE, default), the current working directory is used.
[ { "docid": "0a9c58afab03ded037c235262647260a", "score": "0.6952339", "text": "public function listFiles($directory = false)\n\t{\n\t\tif(!$this->connected)\n\t\t\tthrow new FTPException('Could not retrieve directory listing: not connected to remote FTP server');\n\t\tif(!$directory)\n\t\t\t$directory = ...
[ { "docid": "c86d9e18cd5ad554f758a92b141d7aac", "score": "0.7721457", "text": "public function listDirectory($directory = '')\n\t{\n\t\t$directory = preg_replace('/^[\\/]*([^\\/].*)$/', '/$1', $directory);\n\t\t$files = $dirs = array();\n\t\n\t\tif (is_dir($this->directory.$directory)) {\n\t\t\t$iterator...
6cd0029d6cb532322c54697ae15c6e18
Method for name column
[ { "docid": "02d0033a5c57997defd7a3cee16035f7", "score": "0.0", "text": "function column_url( $item ) {\n\n // create a nonce\n $edit_nonce = wp_create_nonce( 'sp_edit_customer' );\n $edit_url_name = wp_create_nonce( 'sp_edit_url_name' );\n\n $title = '<a href='.$item['url'].'...
[ { "docid": "3b2b1a08b09ebc0be61a5f1e8d37f778", "score": "0.779136", "text": "public function getName(): string\n {\n return $this->properties['column_name'];\n }", "title": "" }, { "docid": "d89aa16cf6cfe7998ee47feaa3a4ebec", "score": "0.7712473", "text": "public static function...
652b179ec2058c4b968c5caeab4a646b
Create a booking function
[ { "docid": "90373eab2b5f1a0c7c9e92b3ebfc3952", "score": "0.0", "text": "public function createBooking(\n $pickUpDate,\n $pickUpTime,\n $returnDate,\n $returnTime,\n $pickUpLocationCode,\n $returnLocationCode,\n $carCategory\n )\n { \n ...
[ { "docid": "9a0c82d5edf947306fe63aac47a84644", "score": "0.7152679", "text": "function Booking()\n\t{ \n\t// #################### //\n\t}", "title": "" }, { "docid": "1d65a0c2e04e2a07ea26db76cafd21e4", "score": "0.69530666", "text": "public function createBooking()\n {\n ec...
38200c41deb56ded4078942a29e0d8e0
Get this log as a string.
[ { "docid": "21aba25a8043e4688e4d99fb6fec3fc2", "score": "0.0", "text": "public function dump()\n {\n return $this->logger->dump();\n }", "title": "" } ]
[ { "docid": "7597d49eb3d9536a5f48585f7b4dfd60", "score": "0.812443", "text": "public function getLog(): string\n {\n return $this->log;\n }", "title": "" }, { "docid": "a897df922f11f3e5421612578ae6af7d", "score": "0.8120475", "text": "public function getLog(): string\n ...
d03b388b5c2bcd743860d5a3096e1c5d
Execute the console command.
[ { "docid": "8e31880663b275a1efc8ed3400f0e718", "score": "0.0", "text": "public function handle()\n {\n try {\n $vehicles = File::get(scdata('v2/ships.json'));\n } catch (FileNotFoundException $e) {\n $this->error('ships.json not found. Did you clone scunpacked?');\...
[ { "docid": "5d795f6474ff88999265ff67d4fef650", "score": "0.6469962", "text": "public function handle()\n {\n\t\t$this->info('league fetching ..');\n $object = new XmlFeed();\n\t\t$object->fetchLeague($this->argument('sports_id'));\n\t\t$this->info('league saved');\n }", "title": "" },...
bd6cefe19b05ac88346456e6c869788f
Checks if this is a branch
[ { "docid": "ac2867f73f19fe5b813bea807e5a8fb5", "score": "0.83819795", "text": "public function isBranch() {\n return $this->getRefType() == self::GITHUB_REF_BRANCH_TYPE;\n }", "title": "" } ]
[ { "docid": "4cf4704759d2efb58b253a43ac784813", "score": "0.7702321", "text": "public function isBranch(): bool\n {\n return count($this->chain) > 1;\n }", "title": "" }, { "docid": "f52a45eb7dd7e8a05d4e3794a4bc140c", "score": "0.7100543", "text": "public function is_bran...
0c62c6060b8f5f8012e920d7f960af52
find number of distinct nonblack inks on a quote
[ { "docid": "e023592403aeb5d84a7da825648aa163", "score": "0.63142717", "text": "function estcalcdistinctnbinks($quoteid) {\n global $conn, $lang,$userid,$active_company;\n $recordSet=&$conn->Execute('select count(distinct estquotestockink.inkid) from estquote,estquotestock,estquotestockink,...
[ { "docid": "2b144f0b3be6c2f6f9f35caa784cd9f7", "score": "0.64775085", "text": "function estcalcdistinctnbinkspart($quoteid,$quotestockid) {\n global $conn, $lang,$userid,$active_company;\n $distinctnbinks=0;\n $recordSet=&$conn->Execute('select count(distinct estquotestockink.inkid)...
8e5cda3b60112f0e133d9951591fbaa9
Is the data continuous?
[ { "docid": "8da080309389313d57182289c79d5a87", "score": "0.75826246", "text": "public static function isContinuous($data) : bool\n {\n return is_int($data) or is_float($data);\n }", "title": "" } ]
[ { "docid": "c07ba390122a2f14560975b20a248c33", "score": "0.6474055", "text": "public function isZeroFill();", "title": "" }, { "docid": "7f997f3058d6b5f44e4a23899fd1be0f", "score": "0.593412", "text": "public function fitted() : bool\n {\n return isset($this->mean);\n }"...
68f6908fd4ad3fce8f878f84ac36e70c
/ Return Authenticated user instance as object
[ { "docid": "37e76196da048a40a50281a23860eec8", "score": "0.7526047", "text": "public function user() {\n if(self::check()) {\n return session(self::$guard);\n } else {\n return (object) array(\n 'username' => null,\n 'id' => null,\n ...
[ { "docid": "416067d7ddb45c58128441ab599011ec", "score": "0.7517769", "text": "public function user()\n {\n $rawUserData = $this->httpClient->getUserFromToken($this->extractTokenFromUrl());\n\n return $rawUserData ? new User($rawUserData) : null;\n }", "title": "" }, { "do...
15a4bde27922e7f69c2364d767d109e7
/ listar equipos de acuerdo al pais
[ { "docid": "5662a3b69fc062e5f9c3fcbc4b72d73a", "score": "0.60572076", "text": "public function getEquipos(){\n View::template(NULL);\n $this->torneo_id = Input::post('torneo_id');\n Load::model('equipos');\n $equipos = new Equipos();\n $torneos = new Torneos();\n ...
[ { "docid": "57bcc4740cdec549f26fb8293622bb7d", "score": "0.6670644", "text": "public function equiposComputo(){\n return Equipo::where('tipo', \"Computo\")\n ->where('aula_id', $this->id)\n ->get();\n }", "title": "" }, { "docid": "a12d4f0399...
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": "fa12d91e9349fafc5fadd2869e01afe7", "score": "0.81538695", "text": "public function show(Resource $resource) {\...