query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "636457811da928339b7d0effda8a3cd0", "score": "0.0", "text": "public function show(detalles $detalles)\n {\n //\n }", "title": "" } ]
[ { "docid": "cc12628aa1525caac0bf08e767bd6cb4", "score": "0.7593495", "text": "public function view(ResourceInterface $resource);", "title": "" }, { "docid": "d57b314bf807713f346bc35fb937529e", "score": "0.6845801", "text": "public function render() {\n $this->_template->display($t...
1d687cfa520c6a8d0a7e5db3cd7f9e8a
This method diables a listings
[ { "docid": "fbff299da438cc9df14219c2c4874ee7", "score": "0.0", "text": "public function disable() \r\n\t{\r\n\t\t$this->setActiveStatus(0);\r\n\t\tif ((int) $this->getVariable('id') > 0) \r\n\t\t{\r\n\t\t\t$this->save();\r\n\t\t}\r\n\t}", "title": "" } ]
[ { "docid": "29c43c821f1c5aa78551f0592682a07e", "score": "0.67199165", "text": "public function lists()\n\t{\n\t}", "title": "" }, { "docid": "57c8d98ead6c00232b53e5311ff2fcd3", "score": "0.6359056", "text": "public function listings(){\n $common_model = new Common();\n ...
a7f7e163b5e4cdfc3e826ab3c09bd5b9
Checks if the user's browser has the required cookie . If it has the cookie, the user is logged in and the method returns true else it redirects to the login view.
[ { "docid": "e81d58b0edaff0ca9b364df62401fc79", "score": "0.7637999", "text": "public function authentication(){\n if(isset($_COOKIE[\"type\"])){\n return true;\n }\n else{\n $this->redirect(\"auth/login\");\n }\n }", "title": "" } ]
[ { "docid": "07de2722a582326af904f44846d0a72d", "score": "0.773245", "text": "public function ifLoggedIn() {\n $c = new \\view\\Cookies();\n $lw = new \\view\\LoginView();\n if($lw->postKeep()) {\n $c->setCookies();\n }\n }", "title": "" }, { "docid":...
9fe23728f0913f6caca479a261c8bc81
ANONYMOUS exposed ROLE_USER exposed ROLE_ADMIN exposed
[ { "docid": "77f2f02849067234bb04ef1d8ae5b811", "score": "0.0", "text": "public function gg() { return true; }", "title": "" } ]
[ { "docid": "9ae969ad60735c6e6a7e1d77e2993778", "score": "0.6685076", "text": "public function accountInfo()\n {\n // logged in, or are logged in via a remember me cookie\n $this->denyAccessUnlessGranted('IS_AUTHENTICATED_REMEMBERED');\n\n // ...\n }", "title": "" }, { ...
26e732b7f6a6c964de26c0d19be49b99
equals($obj1, $obj2) check $obj1 and $obj2 is equals
[ { "docid": "b7a06100d9284593e209bdce152f7bb8", "score": "0.7810032", "text": "public static function equals($obj1, $obj2) {\r\n if (is_a($obj1, 'customer') && is_a($obj2, 'customer')) {\r\n if (trim($obj1->getId()) == trim($obj2->getId()))\r\n return true;\r\n ...
[ { "docid": "1b4c3ecd06abb54e4768e96c1944f035", "score": "0.8168858", "text": "public function Equals($obj);", "title": "" }, { "docid": "1c57c11f7b7c0edc161afbeecda9bf1c", "score": "0.80212694", "text": "public function equals($object);", "title": "" }, { "docid": "1d2776...
f8b6f430b4b4396016cfd5881ceb30b3
Executes after the controller action
[ { "docid": "cf40fa31ac479895639f3f43e42ddf6f", "score": "0.65378857", "text": "protected function after()\n {\n // blank slate\n }", "title": "" } ]
[ { "docid": "d83ce5d234056daf9e672c9cb9e98e75", "score": "0.83557564", "text": "public function action_after()\n {\n $this->_execute();\n }", "title": "" }, { "docid": "21060ac4c9832232c4a9f2a85026ced4", "score": "0.83110523", "text": "protected function afterAction() {\n...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "5b1955e7b3d50faeab13d8b6c4bd4fed", "score": "0.0", "text": "public function index()\n {\n $prices = Price::all();\n\n return view('prices.index', compact('prices'));\n }", "title": "" } ]
[ { "docid": "66dba62b6171d79d179d2efe10c0caba", "score": "0.74747115", "text": "public function index()\n\t{\n\t\t// Paginate resource resutls\n\t\t$results = $this->paginate();\n\n\t\t// If results found add asset to make tables responsive\n\t\t$results->total();\n\n\t\t// Create header links for sortin...
06bd6b0ffa74a089099d48f3655028b1
save Save data to the database
[ { "docid": "2c2effc343d00dd0c5250c95fc8765fe", "score": "0.0", "text": "public function save($table,$data)\n {\n $field=\"\";\n $value=\"\";\n foreach ($data as $col=>$val){\n $field.=$col.',';\n $value.=\"'\".$val.\"',\";\n }\n $field = substr...
[ { "docid": "48dbd4f16f8d2333917ee83b31c9e99d", "score": "0.83524346", "text": "public function saveData();", "title": "" }, { "docid": "c01046a7628cac2d4c97db025b318aa2", "score": "0.8133665", "text": "public function save();", "title": "" }, { "docid": "c01046a7628cac2d4...
5a455f1ccbcb8a8372a5fec33c0498db
Determine whether the user can view the Contract.
[ { "docid": "2b1be8a8ba706d5c77a6752f83823330", "score": "0.7583292", "text": "public function view(User $user, Contract $contract = null)\n {\n return $user->hasAccess(['contract.view']);\n }", "title": "" } ]
[ { "docid": "ac73131da96c05255ca79acbff3d51b6", "score": "0.74943227", "text": "public function authorize()\n {\n\t if(Auth::check() && Auth::user()->is_contractor){\n\t\t $order = $this->route('order');\n\t\t if($order) return $order->is_editing;\n\t }\n\t return false;\n }", "t...
21f5f95c9628a9fce6f29947c1eb6179
DCA for setup module tables is "closed" to hide the "new" button. Reenable it when clicking on a button
[ { "docid": "133c4af1ad33b1cb0f571ebf9f90a752", "score": "0.5629035", "text": "public function initializeSetupModule($dc)\n {\n if (Input::get('act') != '') {\n $GLOBALS['TL_DCA'][$dc->table]['config']['closed'] = false;\n }\n }", "title": "" } ]
[ { "docid": "b8ac43843568d9ad2a2ff7c8dc5e24cb", "score": "0.6752745", "text": "private function hideFieldsOnInstallPanel()\r\n {\r\n \t$this->oldPanel->Visible = false;\r\n \t$this->SearchPartsPanel->hidePanel();\r\n\t\t$this->installButton->Display = \"None\";\r\n }", "title": "" }, ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4c096e5665c527286b0840e86ffe4237", "score": "0.0", "text": "public function show(Post $post)\n {\n // $post=DB::select('select * from posts where id = ?', [$id]);\n // dd($post);//印出來看一下有沒有到東西\n $data=[\n 'post'=>$post,\n ];\n return view('pos...
[ { "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) {\...
10ac1d461ae51d14c9ab1121293281d4
Prepare the row for conditionals Retrieves a prefixed set of all the row data that can be passed to prep_conditionals to allow for proper conditionals.
[ { "docid": "bad97ff8de01ea6d5c9fb20e07f5d0e0", "score": "0.6468063", "text": "protected function _get_conditional_data($row, $prefix, $channel, $modified_conditionals)\n\t{\n\t\t$pre = $this->_preparser;\n\n\t\t$cond = $row;\n\t\t$cond['logged_in']\t\t\t= (ee()->session->userdata('member_id') == 0) ? FA...
[ { "docid": "4146886be8aab4b962c4f249b6927d95", "score": "0.60946244", "text": "private function _prepareRow($array){\n return array_merge($this->_blankRow, $array);\n }", "title": "" }, { "docid": "83bdc921c0169aea84bc99f061867614", "score": "0.6016022", "text": "abstract pu...
e7f4e01d45123cf291452ab94fcfb24c
Registers an additional link in the post/page screens to edit any post/page in the Classic editor. Modified function gutenberg_add_edit_link( $actions, $post )
[ { "docid": "01b7eeb72d647786b97869cd18d67922", "score": "0.8416094", "text": "public function handler_add_edit_link( array $actions, WP_Post $post )\n\t\t{\n\t\t\tif( ! $this->need_classic_editor_links() )\n\t\t\t{\n\t\t\t\treturn $actions;\n\t\t\t}\n\n\t\t\t$use_block = $this->can_use_block_editor( $po...
[ { "docid": "a07f1405d1ee2729d1c281c9af4ded37", "score": "0.7498507", "text": "public function modify_page_row_actions($actions, $post) {\n $actions['RocketEditor'] = '<a href=\"' . $this->build_url($post->ID) . '\">Edit with Rocket Editor </a>';\n return $actions;\n }", "title": "" ...
584ec7b7a527d20477dbd7ce4290405d
Parses a stylesheet to selectors and properties
[ { "docid": "2df275fcff5585bc89d1d86b18f688fe", "score": "0.64992476", "text": "public function parseStylesheet($stylesheet) {\n\t\t$parsed = array();\n\t\t$stylesheet = $this->_stripStylesheet($stylesheet);\n\t\t$stylesheet = trim(trim($stylesheet), \"}\");\n\t\tforeach(explode(\"}\", $stylesheet) as $r...
[ { "docid": "9efa9271b6f49585e77720b35246ce73", "score": "0.66969144", "text": "function nl_readCSS($css)\n{\n\n $styles = array();\n\n // Match rule sets.\n $re = '/[^{]+\\s*\\{\\s*[^}]+\\s*}/';\n preg_match_all($re, $css, $matches);\n foreach ($matches[0] as $set) {\n\n // Match s...
a21b5a96c8e1698c8c93195f862a660d
From item to data
[ { "docid": "8f4f456d2fd61e738b6571f15a8b726f", "score": "0.67356175", "text": "protected function itemToData($item)\n\t{\n\t\t$data = [];\n\t\tforeach ($item as $property => $value) {\n\t\t\t$data[$property] = $value;\n\t\t}\n\t\treturn $data;\n\t}", "title": "" } ]
[ { "docid": "282e7a5a6a91bccb61edfb1b99b8d0d4", "score": "0.679665", "text": "protected function transform($item) {\n $resource = $this->createItemResource($item);\n\n return $this->fractal->createData($resource)->toArray();\n }", "title": "" }, { "docid": "737684eac947697da8...
1db2f094ab1bd66b6c1853e3ffa23c6f
Updates the cache and adds the given URL (+shortened) to the cache. It also handles cleaning the cache of old entries as well.
[ { "docid": "9a3440e2c20845b9bd116c7bf7505267", "score": "0.77171725", "text": "protected function updateUrlCache($url, $shortenedUrl)\n {\n $source = $this->getEvent()->getSource();\n\n /**\n * Transform the URL (+shortened) into a HEX CRC32 checksum to prevent potential problem...
[ { "docid": "63731f64e2040f60c8354e0400272e0d", "score": "0.6608446", "text": "public function updateCache();", "title": "" }, { "docid": "b0b5a55702c0aeb34203a8ec74a356e3", "score": "0.6278341", "text": "protected function checkUrlCache($url, $shortenedUrl)\n {\n $source = ...
b464139cf0e0ca7abd084ccec65d9536
Return array of columns and column definitions.
[ { "docid": "ade67ce8f756cc6f226a8a1b52e30166", "score": "0.68729615", "text": "protected function columns(): array\n {\n return [\n 'id',\n 'name',\n ];\n }", "title": "" } ]
[ { "docid": "1d16f8eab3481716a621d9f07f12685c", "score": "0.79234594", "text": "public function columns() {\n\t\treturn array();\n\t}", "title": "" }, { "docid": "cc0c6bc5cad5302292decab96193f256", "score": "0.76840883", "text": "protected function columnDefinitions() {\n\t\t$fields =...
2418e909dbfecd17f08d977ea2f7199e
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
[ { "docid": "09cb0fe05fab331915feaa2e2a301121", "score": "0.0", "text": "protected function setUp()\n {\n $this->object1 = new \\Yana\\Security\\Data\\SecurityRules\\Rule('Group1', 'Role1', true);\n $this->object2 = new \\Yana\\Security\\Data\\SecurityRules\\Rule('Group2', 'Role2', false...
[ { "docid": "cff80dd8757f9e7e9faf8ead7bbb4cc9", "score": "0.7158449", "text": "public function setUp() {\n\t\tparent::setUp();\n\n\t\t// Create client and load database fixtures\n\t\t$this->client = static::createClient();\n\t\t$this\n\t\t\t\t->loadFixtures(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'Monubit\...
7ef84b3aa9419fcf09707609116445c1
Send the password reset notification.
[ { "docid": "050bdea3464bcf1d231d23d383e77e15", "score": "0.7763778", "text": "public function sendPasswordResetNotification($token)\n {\n $this->notify(new PasswordResetRequestNotification($token));\n }", "title": "" } ]
[ { "docid": "ef8d9cf35d83efafb84d03290f721183", "score": "0.7952311", "text": "protected function sendPasswordResetEmail(): void\n {\n $url = 'http://' . $_SERVER['HTTP_HOST'] . '/password/reset/' . $this->password_reset_token;\n\n $text = View::getTemplate('Password/reset_email.txt.twig...
9afcd901bb7cd447f68d8ae8e1b28d9f
Icon Class for Type Color Size
[ { "docid": "6e904d258bd5e2839839e3d1467a837e", "score": "0.0", "text": "function spyropress_generate_teaser_one( $spyropress_item, $spyropress_atts ){\n $spyropress_icons = array( 'icon' );\n if( isset( $spyropress_item['spyropress_icon'] ) ){\n $spyropress_icons[] = $spyropress...
[ { "docid": "93adb45c02f8568be43ab9b01c8c7afd", "score": "0.668189", "text": "public function getIcon() {}", "title": "" }, { "docid": "0e5191ff4ea060d17b8f95ee888145a9", "score": "0.66448206", "text": "public function getIcon();", "title": "" }, { "docid": "0e5191ff4ea060...
b429913c1758e52bf4cf46f4f77e2092
Returns the name of the extension.
[ { "docid": "d480c17fe0b86cfabe874b3472657274", "score": "0.7653897", "text": "public function getName()\r\n {\r\n\r\n // TODO: Implement getName() method.\r\n return 'tva_extention';\r\n }", "title": "" } ]
[ { "docid": "f2a78e5f0d6bc22f002979ce323d6bb5", "score": "0.8814926", "text": "public static function GetExtensionName()\n {\n self::CheckBackend();\n\n $name = self::$backend->Get(\"name\");\n\n if(strlen($name) <= 0)\n {\n $dir_parts = explode(\n ...
2552145733a0d61582ab5b4dfed4adf4
Para borrar un archivo
[ { "docid": "88eb609e66206d061ba479be23baab6d", "score": "0.0", "text": "public function eliminar_productos($id){\n $stmt=$this->conexion->conectar()->prepare(\"DELETE FROM productos WHERE id_producto=:id\");\n $stmt->bindParam(\":id\",$id,PDO::PARAM_STR);\n $stmt->execute();\n ...
[ { "docid": "68717a33039269ef885ecce0bb53d956", "score": "0.69541705", "text": "private function eliminarfile(){\n if($this->get_request_method() != \"GET\"){\n $this->response('',406);\n }\n $file = $this->_request['file'];\n $dir = \"../documentacion/activacion/\"...
f7999c8a99b95ede2da35b1d63c6d4fb
Show detail of ApiUser data
[ { "docid": "c319a44dce69f6e9d64c98bf5b9d470b", "score": "0.0", "text": "public function read($id)\n {\n return $this->get('api_users/' . $id);\n }", "title": "" } ]
[ { "docid": "168fc9e9f010f446298765b1312254e9", "score": "0.80774164", "text": "public function show(ApiUser $apiUser)\n {\n //\n }", "title": "" }, { "docid": "cf01a04287d5e3c0bc15e147340a1f6c", "score": "0.79590875", "text": "public function show(Apiuser $apiuser) {\n ...
ed8ed3083b3851c8f83e19b675e98951
Loads session error page
[ { "docid": "d6a8d9aa41706cf8ccd40f6d7d4bd956", "score": "0.80711496", "text": "public function session_error()\n\t{\n\t\t// Page data\n\t\t$page['title'] = \"Session expired\";\n\t\t$page['description'] = \"\";\n\n\t\t// Load view\n\t\t$this->load->view('errors/custom/error_session', $page);\t\n\t...
[ { "docid": "2cd0439aff827b05848676df42b9f1e3", "score": "0.68506193", "text": "public function sessionNotValid()\n {\n return displaySPA();\n }", "title": "" }, { "docid": "f22e6fe7aac8e8e81aae33dcc30f7f49", "score": "0.68196064", "text": "public function viewErrorPage()...
d27049c275079eedadd55c7945034533
recibimos el llamado del controlador y guardamos el usuario en la base de datos
[ { "docid": "e7e930aa509c5ca6d5256f4a306e0faa", "score": "0.0", "text": "static public function mdlRegistroUsuario($tabla, $datos){\n$stmt = Conexion::conectar()->prepare(\"INSERT INTO $tabla (nombre, cedulaPasaporte, celular, edad, sexo, localidad, nacionalidad, ocupacion, hojaDeVida, email, calificac...
[ { "docid": "8b80592bd242b89feff1f979646b1e77", "score": "0.7123513", "text": "private function insertUser ( ) {\r\n \r\n /** @var string $fields Conté els camps per la consulta */\r\n $fields = \"'\" . $this->nom . \"','\" . $this->cognoms . \"','\" . $this->correu .\"',\" . $this->cor...
427ac4d021c3c1de97a650445cb99767
VARS_PAGE ENCRYPT form id_token
[ { "docid": "6d0785ac8bf07f21678a38c5f85d531a", "score": "0.6570964", "text": "function f_app_form_id_token () \n {\n GLOBAL $session;\n \n $form_id_token = \"\";\n \n //gjenerojme token dhe e ruajme tek logu -------------------------------------------------------------------------...
[ { "docid": "7c3df2990f8fdb659e8a70e40881fe37", "score": "0.606284", "text": "public function encript() : string;", "title": "" }, { "docid": "2ab1becf4d6af5d5b6bd09a5a949c29d", "score": "0.5862479", "text": "function elggform_key_get($form_name) {\n //build secret key\n $form_k...
c04f6297258b52dece08a6688236e90e
called from ::i to autoload record from db when autoload is not disabled !! overload: to remove autoload want it to work differently autoload = true load all autoload = "field list" load specific fields
[ { "docid": "9415ec8d8827ab286829c5b0533f75a7", "score": "0.76434535", "text": "function autoload($autoload) {\n if ($autoload === true) { // all\n $this->_load(); // $this->loaded = true\n return;\n }\n $this->_load($autoload); // $this->loaded - hash of...
[ { "docid": "265ac6ed77be0b42572ff011b9a17687", "score": "0.65866214", "text": "public function autoload()\n\t{\n\t\t$columns = array(\n\t\t\t\t0 => array(\"data\" => _(\"Id\") , \t\t\"field\" => \"id\"), \n\t\t\t\t1 => array(\"data\" => _(\"Name\"), \t\"field\" => \"db_table_name_column\"), \n\t\t); \n...
4b7f3459c1fef8cf9a587c042fd08fbb
The tag identifies an alternate tax table that should be used to calculate tax for a particular item. The value of the tag should correspond to the value of the name attribute of an alternatetaxtable.
[ { "docid": "f73fa6bed8edbdcb5430cc4f268786b4", "score": "0.4236376", "text": "public function tax_table($value)\n\t{\n\t\t$this->tax_table = (string) $value;\n\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "bf41be8c15760de180abaab80b5c037c", "score": "0.5585369", "text": "function CreateAlternateTaxTable($standalone, $name) {\n\n global $dom_alt_tax_rules_obj, $dom_alt_tax_tables_obj;\n\n /*\n * There must be at least one alternate tax rule to include\n * in the <alternate-tax-tab...
a4f3d9d2c19a6927a423fd2a9db578c1
Sets the direction to order the results by
[ { "docid": "fc445feb4e93106f447f49acedd7e8ce", "score": "0.63038933", "text": "public function orderDirection($direction)\n {\n if (!in_array($direction, static::SORTING_DIRS)) {\n throw new InvalidSortingDirectionException($direction);\n }\n\n $this->sortDir[] = $direction;\n\n if (!c...
[ { "docid": "09d55cc9f9bb432b8e8eda508f192804", "score": "0.71868455", "text": "public function order_direction($direction = 'ASC'){\n\t\t$this->order_direction = $direction;\n\t\treturn $this;\n\t}", "title": "" }, { "docid": "a9ac5eca43c1605a09e4a01b1dd8caa2", "score": "0.7165155", ...
f29a2f717a26bf18d382a536663bd167
$sql="SElECT From employe e inner join formationphp.employe a on e.cin= a.cin";
[ { "docid": "8c238dd78cd34d4aaf3a8083f4fa2cd7", "score": "0.0", "text": "function afficherCategory(){\n $sql=\"SElECT * From category\";\n $db = config::getConnexion();\n try{\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e){\n die('Erreur: '.$e->getMessa...
[ { "docid": "fc071b523dcaf7916d1bd9e2e6443216", "score": "0.6245778", "text": "public function adminAppliedJobs($urii)\n{\n\t$detail=$this->db->join(\"applyjob\",\"applyjob.applyjob_employee_id = employer_info.employee_uid\")\n\t->where(\"applyjob.applyjob_jid\", $urii)\n\t->get(\"employer_info\");\n\t$d...
ee1530ddf2c93f8e5d4f4f925031ee60
Register bindings in the container.
[ { "docid": "2d48d5ace59e7c48f7be5d2bc8172667", "score": "0.0", "text": "public function register()\n {\n $this->app->singleton('soda.dashboard', function ($app) {\n $dashboardBuilder = new DashboardBuilder;\n\n $dashboardBuilder->addBlockToRow(1, 'default', function () {\...
[ { "docid": "781153814bdd4f135b2391091a67769b", "score": "0.81314135", "text": "public function register()\n {\n foreach ($this->simpleBindings as $contract => $service) {\n $this->app->bind($contract, $service);\n }\n }", "title": "" }, { "docid": "8c4f6f72bcc1...
e1ed56d141c3a5825269bf28f8e82a41
end of function Link News::makeMultiUrls() make array with current URL fo different languages versions
[ { "docid": "4cfd15d2f238dd51941c2828f9f3b859", "score": "0.8290895", "text": "function getMultiUrls(){\n $multiUrls = NULL;\n $SysLang = check_init('SysLang', 'SysLang', 'NULL, \"front\"');\n $mas_lang = $SysLang->GetLangData($this->lang_id, 'front');\n foreach($mas_lang as $...
[ { "docid": "ac409794ade59c95bdf6a93f8947866c", "score": "0.82557464", "text": "function getMultiUrls(){\n $multiUrls = NULL;\n $SysLang = check_init('SysLang', 'SysLang', 'NULL, \"front\"');\n $mas_lang = $SysLang->GetLangData($this->lang_id, 'front');\n foreach($mas_lang as ...
e57120a8a863b5c36040262693e80814
Test saving a single team
[ { "docid": "c5b763fb17c3dd57e3ad37a2ebe99698", "score": "0.6466762", "text": "public function test_save() {\n $this->assertNull($this->object->id);\n $this->assertSave($this->object->save());\n }", "title": "" } ]
[ { "docid": "c2d9e1e13bb5618e9728ad67face3070", "score": "0.7458352", "text": "public function test_save_unsaved_tournament() {\n //Verify that we're starting with a fresh unchanged tournament - then trigger a change\n $this->get_tournament_new();\n $this->object = &$this->tournament...
6f553a06bdcad8ea2f4030d698985316
Execute the command that gets hd status and returns the output as an array.
[ { "docid": "67bc4be96f54416490210a5dd5b7590e", "score": "0.629514", "text": "function getHdStatus(){\n // /dev/mapper/vg_openvz-lv_root is the only partition that matters.\n $command = \"df -h /dev/mapper/vg_openvz-lv_root\";\n $output = Array();\n exec($command, $output);\n\...
[ { "docid": "05a18e5af91662ace2d66c4575a0cf0e", "score": "0.67051977", "text": "function GetStatus() {\n\t\tif ( $this->debugging ) echo \"mpd->GetStatus()\\n\";\n\t\t$status = $this->SendCommand(MPD_CMD_STATUS);\n\t\tif ( ! $status ) {\n\t\t\treturn NULL;\n\t\t} else {\n\t\t\t$statusArray = array();\n\t...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "56ee35ddafafd544e6b39fe3fcb446ac", "score": "0.0", "text": "public function store(Request $request)\n {\n\n //dd(Carbon::parse($request->publish_date)->format('Y-m-d H:i'));\n $request->validate([\n // 'start_date' => 'required|date',\n 'client_busin...
[ { "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-...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($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...
dfc04a1ff1434b7d36f7982b968a7d4d
Free resources associated with a query result set
[ { "docid": "6b83b8c9f07e4685951de8110577f61a", "score": "0.6419789", "text": "public function closeQuery( $qHanle )\r\n\t{\r\n\t\t@pg_free_result($qHanle);\r\n\t}", "title": "" } ]
[ { "docid": "5a6d967397bd2524b9837857fb13e9bd", "score": "0.8253809", "text": "function free() {\r\n odbc_free_result($this->Query_ID);\r\n $this->Query_ID = 0;\r\n }", "title": "" }, { "docid": "59874ca299424a02bdc242e524364ff6", "score": "0.81593764", "text": "function fr...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "a433e4db90e8b2bc1724f47789dc0d06", "score": "0.0", "text": "public function edit($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac53c5763e3a0b0ec0125039ef9bb509", "score": "0.7631773", "text": "public function edit()\n {\n $this->form();\n }", "title": "" }, { "docid": "b8b614ce042ab5ea8a3e6ef84e6e7778", "score": "0.713407", "text": "public function edit($id)\n {\n $res = Re...
e5be4c3f76ad28af3d08a89433f73896
Internal method to decrement an item.
[ { "docid": "3b83d0b90a1077c29d3c2f1e101d59e9", "score": "0.5851573", "text": "protected function internalDecrementItem(& $normalizedKey, & $value)\n {\n $options = $this->getOptions();\n $namespace = $options->getNamespace();\n $prefix = ($namespace === '') ? '' : $nam...
[ { "docid": "3350007fe3a0661dad28fc567b56d62f", "score": "0.66962457", "text": "public function decrement($itemHash)\n {\n $item = $this->getItem($itemHash);\n if ($item->qty > 1) {\n $item->qty--;\n $this->update();\n\n return $item;\n }\n ...
b80d63552958d9cf97bfa48fe75b8441
return the main image for the portfolio page
[ { "docid": "dcffdec1fca82a21d06f638886eca63b", "score": "0.62556344", "text": "public function main_image() {\n return $this->images()->where('main_img','=', 1);\n }", "title": "" } ]
[ { "docid": "94165cf405783ea0f427d13c79d3550a", "score": "0.7270712", "text": "function genesiawesome_portfolio_image() {\n\n\tif ( has_post_thumbnail() ) {\n\t\techo '<div class=\"ga-portfolio-image\">';\n\t\tthe_post_thumbnail( 'full', array( 'class' => 'algincenter' ) );\n\t\techo '</div>';\n\t}\n\n}"...
be2499f14311831698ae57bfb5dd52bd
Create an array to save allocations in it based on TAs
[ { "docid": "4d9a7ef71f7c66d0b67cd48c577dcad5", "score": "0.0", "text": "function getAllocationById($allocation_id)\n {\n $allocation_data = [];\n\n // get allocated teaching assistants\n $allocated_tas = DB::table('allocations')\n ->select('module_id')\...
[ { "docid": "db1aafbeb74f0afeb9de35e1b5db45ed", "score": "0.5421529", "text": "public abstract function as_array();", "title": "" }, { "docid": "0c990d88b186f6abb2059a8ff9a177d7", "score": "0.52777827", "text": "abstract protected function createContentArray(): array;", "title": "...
0e33f39da92090ec819ada66a5fecf5d
$temp = $this>db>query('SELECT DISTINCT id_zhout from tb_zhopie_zhout WHERE id_zhout > "'.$id_zhout.'" and id_member = "'.$friends[0]['id_member'].'" order by id_zhout asc limit 0,10');
[ { "docid": "392054abf567aed5f61a8809612b87a5", "score": "0.7203871", "text": "function get_post_id_by_recentZhout($user_id, $id_zhout)\n\t{\n\t$friends = array();\n\tif(!is_array($user_id))\n\t{\n\t\t$friends[]=$user_id;\n\t}\n\telse\n\t{\n\t\t$friends = $user_id;\n\t}\t\n\t$text = \"SELECT DISTINCT tb_...
[ { "docid": "f554915b7ca96bf34ff7c79baf586de7", "score": "0.65971196", "text": "function get_post_data_by_id_member($_id_member)\n\t{\n\t\t$_friends_and_me = $this->get_id_friends($_id_member);\n\t\t$text = \"SELECT DISTINCT tb_zhopie_zhout.id_zhout from tb_zhopie_zhout JOIN tb_relation_zhout ON tb_zhopi...
d83324da4ee414e3f7a06df5a6d1cc4d
/ Remove 'Post Published' Notice for xgb_check_post_count /
[ { "docid": "9952047d557326b0fc847c51d7fc955d", "score": "0.0", "text": "function rw_post_updated_messages( $messages ) {\n\n\t\t$post = get_post();\n\t\t$post_type = get_post_type( $post );\n\t\t$post_type_object = get_post_type_object( $post_type );\n\t\t\n\t\tif ( !get_transient( get_current_user_id()...
[ { "docid": "89a1f134950bb9a28547061564e38114", "score": "0.7521021", "text": "function xgb_check_post_count($post_id) {\n\tglobal $wpdb;\n\t\n\t$post = get_post($post_id);\n\t$author_id = $post->post_author;\n\t$user_info = get_userdata(get_current_user_id());\n\t\n\t\t$published_post_count = $wpdb->get...
b0e6382d10bb22cbdbc87b44b71b2ad0
guarda el nuevo usuario
[ { "docid": "312a5ac8a48e149a8b35ca597af8ab63", "score": "0.0", "text": "public function store(){\n \n // comprueba que llegue el formulario con los datos\n if(empty($_POST['guardar']))\n throw new Exception('No se recibieron datos');\n \n $mascota = ...
[ { "docid": "d223e7fb4bbc5ff727b213a9e34a51f7", "score": "0.73927045", "text": "public function crearUsuario() {\n\n\n if ($this->seguridad->esAdmin()) {\n $id = $this->usuario->getLastId();\n $usuario = $_REQUEST[\"usuario\"];\n $contrasenya = $_RE...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "ef5e766f378716c486dc5ccc03d9c646", "score": "0.0", "text": "public function show( User $user )\n\t\t{\n\t\t\t$user->load('projects');\n\t\t\t$this->data['title'] = $user->fullName();\n\t\t\t$this->data['current_user'] = $user;\n\t\t\t$this->data['projects'] = $user->projects;\n\n\t\t\treturn...
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8234836", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.819168", "text": "public function show(Re...
10e17c9b59a4c5244a6ae2229eb30919
Adds main links to a logout widget
[ { "docid": "63a5e2f2d53b847bd486d534475230db", "score": "0.7200375", "text": "function um_logout_user_links( $args ) {\r\n\t?>\r\n\r\n\t<li><a href=\"<?php echo um_get_core_page( 'account' ); ?>\"><?php _e( 'Your account', 'ultimate-member' ); ?></a></li>\r\n\t<li><a href=\"<?php echo esc_url( add_query...
[ { "docid": "bec29a3de49592e34cd50c05050c848a", "score": "0.7084964", "text": "public function outputLogoutLink()\n\t{\n\t\t$html = '<a href=\"javascript:venus.logout()\" data-tooltip=\"' . App::e(App::__e('tooltip_logout')) . '\" class=\"logout\"><img src=\"' . App::e($this->images_url . 'logout-link.pn...
286ea99dbdeb1de01e5899736cb73732
Position in the album where the media items are added. If not specified, the media items are added to the end of the album (as per the default value, that is, `LAST_IN_ALBUM`). The request fails if this field is set and the `albumId` is not specified. The request will also fail if you set the field and are not the owne...
[ { "docid": "06b933c43febfbb421db36b38e958b42", "score": "0.68486166", "text": "public function getAlbumPosition()\n {\n return isset($this->album_position) ? $this->album_position : null;\n }", "title": "" } ]
[ { "docid": "e00f9fe05b82eb88effdac72a8f8a580", "score": "0.7357805", "text": "public function setAlbumPosition($var)\n {\n GPBUtil::checkMessage($var, \\Google\\Photos\\Library\\V1\\AlbumPosition::class);\n $this->album_position = $var;\n\n return $this;\n }", "title": "" ...
becde6480637cd3d587b7e65574f401b
Set the current namespace of class.
[ { "docid": "cd6a1bcc96ce92ec8a0d5509c49212fb", "score": "0.6082314", "text": "public function setNamespace(string $namespace)\r\n {\r\n $this->namespace = str_replace('/', '\\\\', $namespace);\r\n\r\n return $this;\r\n }", "title": "" } ]
[ { "docid": "8a9a414e8cb38c2115e8aecfd8809311", "score": "0.7166344", "text": "public function setNamespace($namespace);", "title": "" }, { "docid": "c5d97863d0e5533312bf53defbad7ef2", "score": "0.71658367", "text": "public function set_namespace_property() {\n\t\t\t$this->namespace =...
3e91d71db85ed7a7fe9cc9833a2d8caf
Create a one on one note for a one on one meeting.
[ { "docid": "ced25d705c39a0098f99affc0236248c", "score": "0.5088679", "text": "public function execute(array $data): OneOnOneNote\n {\n $this->data = $data;\n $this->validate();\n $this->create();\n $this->log();\n\n return $this->note;\n }", "title": "" } ]
[ { "docid": "f917fa1dabadeeccaac0d9656b124442", "score": "0.61278355", "text": "public function patient_new_note() {\n\t\t\n\t\t$db_insert_id = Model::get(\"patient\")->create_new_note_placeholder($_GET[\"patient_id\"], Model::get(\"user\")->get_user()[\"user_id\"]);\n\t\tView::go(\"patient_new_note\", a...
62abdc2c20df2df16351b6641cc1d6fd
Get a system page by its key
[ { "docid": "a68d3013c2ddbd16f95e371ed9b4ea7b", "score": "0.75308305", "text": "public function get_system_page($key)\n {\n $this->db->from('wiki_pages');\n $this->db->join('wiki_drafts', 'wiki_drafts.draft_id = wiki_pages.page_draft');\n $this->db->where('page_key', $key);\n\n ...
[ { "docid": "351e5492f534ae82c57f1999fbc37d7b", "score": "0.7042187", "text": "public function getPageByKey($key);", "title": "" }, { "docid": "fe3b1ad823503eca4748450324a519e3", "score": "0.6787442", "text": "function get_page( $key, $group ) {\n\t\treturn wp_cache_get( $key, $group ...
470297a5d6c812e70f6a0d79e5486a33
Get CRT coefficient of the second factor.
[ { "docid": "d6b5a829aa8954a69ddcd3f520369fb0", "score": "0.63133395", "text": "public function coefficient()\n {\n return $this->_coefficient;\n }", "title": "" } ]
[ { "docid": "0ba3d4df10c3055ad0b2b3804cf37bad", "score": "0.66313815", "text": "public function get2MttCreditPrec() {\n return $this->_2MttCreditPrec;\n }", "title": "" }, { "docid": "694b0bb4acf9beedc3fc890177c5d629", "score": "0.57538784", "text": "public function getMtPri...
52c2df180a228a0739eaca4b0147dc7e
Get the child socket from the pairing.
[ { "docid": "42878aa2d26183d4b01adf07cf96b4df", "score": "0.81058013", "text": "public function getChildSocket(): Socket\n {\n return $this->child;\n }", "title": "" } ]
[ { "docid": "166c419ddf4fd42b68dca3095526e4da", "score": "0.7073098", "text": "public function getParentSocket(): Socket\n {\n return $this->parent;\n }", "title": "" }, { "docid": "376c634d1ba818c9919b8ce396f0e774", "score": "0.68682694", "text": "public function getSock...
49189746af4bd3eb7f2c28fa38c003e7
Merge the updated settings with the default values The settings override the defaults
[ { "docid": "23f030aac04bb563a42866cc11dbbeb5", "score": "0.6396397", "text": "protected function mergeSettings($defaults, $settings)\n {\n foreach (['report', 'response'] as $type) {\n if (!isset($settings[$type]) || !$settings[$type]) {\n unset($defaults[$type]);\n ...
[ { "docid": "bb1e62f8869c4fe8940050be5ff29178", "score": "0.7125607", "text": "private function _merge_defaults()\n\t{\n\t\tforeach(self::defaults() as $name => $default)\n\t\t{\n\t\t\tif ($this->sub_command == 'delete_ldap' && in_array($name,array('ldap_base','ldap_context')))\n\t\t\t{\n\t\t\t\tcontinue...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "c7b12456ca56114f19bb3a8b5faa2ca3", "score": "0.0", "text": "public function index()\n {\n $dateStart = new Carbon('2018-10-01');\n $dateEnd = $dateStart->copy()->addMonths(10);\n\n return $this->repository->getCashFlow($dateStart,$dateEnd);\n }", "title": "" ...
[ { "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...
791ce7b54255f2bf9b9ab476b55e75c0
/$labels = DB::select('SELECT q.question FROM Questions q'); $test = DB::select('SELECT a.answer, a.created_by FROM Answers a where a.question_id in (select q.id from Questions q where q.survey_name = (select s.survey_name from Survey s)) '); $answersColl = collect($test); $groupedByOwner = $answersColl>groupBy('create...
[ { "docid": "c37adb35638e5157f26e1299056ac0b5", "score": "0.5266451", "text": "public function draw()\n\t{\n\t\t\n\t\t/*$survey = Survey::all();\n return view('survey', ['survey' => $survey, 'name' => 'test']);*/\n\t\t\n\t\t//db query to get all questions\n\t\t$labels = DB::select('SELECT `SQ`.`qu...
[ { "docid": "164077d9849d9319ac1907e2ea0257e6", "score": "0.65604174", "text": "function multiple_choice_report(){\n global $db;\n $stmt = $db->prepare(\"SELECT a.answer, COUNT(*) as count FROM survey_answers AS a JOIN survey_questions AS q ON q.id = a.question_id WHERE q.type = 'mc' GROUP BY answe...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "7fcb9286bf72c82fea5b03628df71aa6", "score": "0.0", "text": "public function store(Request $request)\n {\n $validator = Validator::make($request->all(), [\n 'clap_count' => ['required', 'integer', 'min:1', 'unique:commissions'],\n 'amount' => ['required', 'inte...
[ { "docid": "70f839d67344487e3780c8ca780ec59c", "score": "0.78113544", "text": "public function store(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.70093644", "text": "public function store()\n {\n r...
9d0cf75290cb8a142a3f619bc15fd35e
update footer bookmark values
[ { "docid": "20832a99abec0c0d5f8aedd4fa0175e2", "score": "0.65260166", "text": "public function setFooterBookmarkValue($bmName, $value)\n {\n $this->footerBookmarks[count($this->footerBookmarks)] = array(\n 'name' => $bmName,\n 'value' => $value,\n );\n }", "...
[ { "docid": "6831704766eb40fcee343d4128b7d226", "score": "0.5935273", "text": "function page_in_footer_update($post_id)\n{\n\tif(!wp_verify_nonce($_POST['page_in_footer_nonce'], __FILE__)) return false; \n\tif(defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) return false; \n\tif(!current_user_can('edit_post'...
a45d71249a5cd4a1b847a19d19b15e85
Add relationships to the query builder to eager load
[ { "docid": "51ea39874bb5468a7456378bbb0eeab7", "score": "0.7119951", "text": "protected function eagerLoad()\n\t{\n\t\tforeach($this->with as $relation)\n\t\t{\n\t\t\t$this->query->with($relation);\n\t\t}\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "29f76d8c05701a595df553c432baf3ff", "score": "0.7426141", "text": "public function eagerLoad($relations);", "title": "" }, { "docid": "a2a6cd69d66078f1175e993182442eb4", "score": "0.67943186", "text": "public function getRelationshipsQuery();", "title": "" }, { ...
f6500eedcd961ffb1b318c70b1f90c8e
GET USER DATA BY ID
[ { "docid": "51fbcc06e49884673477c1593fd93d97", "score": "0.0", "text": "public static function getUserById( $id ) {\n\n // Open database connection\n $db = init_db();\n\n $req = $db->prepare( \"SELECT * FROM user WHERE id = ?\" );\n $req->execute( array( $id ));\n\n // Close databse co...
[ { "docid": "e560655910b1e9370a84398f80510fe4", "score": "0.7834823", "text": "function user_data_by_id($id){\n\t$userData = User::where('id',$id)->get();\n\treturn $userData[0];\n}", "title": "" }, { "docid": "0fd932428e097267ae065f466db3d9eb", "score": "0.76404184", "text": "public ...
46158f63176ed61905351f32aad53ff1
Import Companies from Akaunting
[ { "docid": "dce4ff4767e4939f02a23cc1cfb3bea1", "score": "0.5473093", "text": "public static function importCompanies()\n {\n // echo \"\\nStart importing companies from akaunting.\\n\";\n\n $AK_company = new Companies();\n\n $payload = [\n 'sort' => 'id',\n ...
[ { "docid": "c7e848a0df840d682db138ac1eb11a87", "score": "0.55411285", "text": "function load_import_deps()\n{\n\trequire_all_lang();\n\trequire_code('config2');\n\trequire_code('ocf_groups');\n\trequire_code('ocf_members');\n\trequire_code('ocf_moderation_action');\n\trequire_code('ocf_posts_action');\n...
bb0e0556f4eedbd239b1ee3381e5aa30
Creates a form to edit a Core entity.
[ { "docid": "fcb9a77fc2b276e0e1b7e871d293f468", "score": "0.79003006", "text": "private function createEditForm(Core $entity)\n {\n $form = $this->createForm(new CoreType(), $entity, array(\n 'action' => $this->generateUrl('core_update', array('id' => $entity->getId())),\n ...
[ { "docid": "2cf27d835c36fe181c71d1bd6a402471", "score": "0.6985383", "text": "private function createEditForm(CarteFidelite $entity)\n {\n $form = $this->createForm(new CarteFideliteType(), $entity, array(\n 'action' => $this->generateUrl('cartefidelite_update', array('id' => $entit...
085bb8aa7d03baf24ecb8d527ac68c2d
entra desde el route inicial
[ { "docid": "e9d3cce8ae7d2f31b524bda1fddc17ce", "score": "0.0", "text": "public function getIndex()\n {\n \n if(!parent::validarPermisos($this->moduloId,'listar'))\n {\n return Redirect::back()->with('warning','Acceso denegado a esta seccion');\n }\n \n ...
[ { "docid": "47cbb6f6a393c2770cb30043889e56ac", "score": "0.73830444", "text": "private function _route()\n {\n $this->_makeDisable();\n // menjalankan algoritma A*\n $this->_start();\n }", "title": "" }, { "docid": "b5406244763f9e4daf7501c752e24327", "score": "...
6abe0a8b991fb325275a9f31d4d9c148
Get uploaded file details
[ { "docid": "1f2e67c0d1eabb673dce3cdb9c7fadda", "score": "0.67258203", "text": "public function getFileDetails( $file )\n\t{\n\t\t$file_details = [];\n\t\t//Display File Name\n\t\t$file_details[ 'file_name' ] = $file->getClientOriginalName();\n\n\t\t//Display File Extension\n\t\t$file_details[ 'file_ext'...
[ { "docid": "acc99f2d51c2a92c16e63865b9b1b7a3", "score": "0.761728", "text": "public function getFileDetails()\n {\n try {\n $dbConn = $this->entityManager->createQueryBuilder();\n\n $fileDetails = $dbConn->select('fu.id,fu.fileName,fu.fileSize,fu.mimeType,fu.filePath')\n ...
f01dc0521f4a37669b7ca831f00daa1d
Get a result row as an enumerated array
[ { "docid": "f19172a3bd8c0321b75221596481cf6f", "score": "0.0", "text": "function &fieldFlags(&$resource, $field_offset=0) { return mysql_field_flags($resource, $field_offset); }", "title": "" } ]
[ { "docid": "e441866cd002a9f2de1c6279820221bf", "score": "0.70496583", "text": "function row_array() {\n\t\t$row = $this->row();\n\t\treturn ($row !== FALSE)? (array) $row : FALSE;\n\t}", "title": "" }, { "docid": "a04eb36ea1454f7ce9ccb7751154a6eb", "score": "0.6930825", "text": "publ...
3756efcdb06caabde2b31712df1be8bc
Test a string containing German umlauts
[ { "docid": "55274bad06f16c369ca647bdfcaf740e", "score": "0.6618609", "text": "#[@test]\n public function umlautString() {\n $str= new String('Hällo');\n $this->assertEquals('HƤllo', $str->getBytes());\n $this->assertEquals(5, $str->length());\n }", "title": "" } ]
[ { "docid": "0336656c6aa8d4eca2d1a29c35a1bb60", "score": "0.6504866", "text": "function dol_string_unaccent($str)\n{\n\tif (utf8_check($str))\n\t{\n\t\t// See http://www.utf8-chartable.de/\n\t\t$string = rawurlencode($str);\n\t\t$replacements = array(\n\t\t'%C3%80' => 'A','%C3%81' => 'A','%C3%82' => 'A',...
593a8790259383172af204d5d08ba47a
Set the password for the given user.
[ { "docid": "ab61f73dec023de1e900d80089923166", "score": "0.78273386", "text": "private function setUserPassword(User $user, string $password): void\n {\n $user->password = $this->hasher->make($password);\n }", "title": "" } ]
[ { "docid": "23cedfae5474467853b430308c64cee7", "score": "0.84856164", "text": "public function setUserPassword(User $user, string $password);", "title": "" }, { "docid": "a67ce6a8c615949b5401a819dc6084fd", "score": "0.81031436", "text": "public function changePassword(User $user, $pa...
a16648c1ab1ab89497e1c9c3b7c05634
ONE OPTIONAL SIDEBAR ON THE RIGHT. OFF BY DEFAULT, UNCOMMENT TO TURN BACK ON. register_sidebar(array( 'name' => 'sidebaroptional', 'before_widget' => '', 'after_widget' => '', 'before_title' => '', 'after_title' => '', )); THE FOLLOWING CODE DISPLAYS NAVIGATION LINKS (PREVIOUS/NEXT) IF THERE IS A NEED FOR THEM. SEE FOR...
[ { "docid": "551a095ee75858649d159aca731d524e", "score": "0.0", "text": "function show_posts_nav() {\n\tglobal $wp_query;\n\treturn ($wp_query->max_num_pages > 1);\n}", "title": "" } ]
[ { "docid": "5a6afee309ff6acc456d10af845aa9cb", "score": "0.72098076", "text": "function cera_grimlock_sidebar_right() {\n\t\tif ( apply_filters( 'grimlock_template_sidebar_right_displayed', true ) && is_active_sidebar( 'sidebar-2' ) ) :\n\t\t\t?>\n\t\t\t<aside id=\"secondary-right\" class=\"widget-area ...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "ff94beddffe92873d591362343893744", "score": "0.0", "text": "public function destroy($id)\n {\n Activity::where('id', $id)->delete(); \n return redirect('/admin/activity')->with('success', 'Activity deleted successfully!');\n }", "title": "" } ]
[ { "docid": "97c51cab4a2ebd0c97c646aca8926260", "score": "0.7629593", "text": "public function remove(ResourceInterface $resource);", "title": "" }, { "docid": "2b9d2c85f4c5a3ea90f0276710558864", "score": "0.73587126", "text": "public function removeResource(ResourceInterface $resourc...
1e00f768be56fbb7363d8c6f7abf3e37
Displays create form for customer.
[ { "docid": "b44fe251f8fc8f0bfeaf499e892124af", "score": "0.0", "text": "public function actionEdit($id = null)\n {\n if ($id)\n {\n $customer = Customer::findOne($id);\n $customer_quote = CustomerQuote::find()->where(['id' => $customer->quote_id])->with('documents'...
[ { "docid": "ddfe11ca3681bf8010f81bcb5136991d", "score": "0.85372627", "text": "public function create()\n\t{\n\t\treturn view('forms.customer');\n\t}", "title": "" }, { "docid": "c84fe18ebd673b78d2a7dcc708718dc6", "score": "0.84509665", "text": "public function getCreateCustomer() {\...
c655a892894f7d3755ca133cad8acc03
setKey() Raw setter for field "key", for INSERT, REPLACE and UPDATE
[ { "docid": "40377f7cef7ccf49714c46f8494ae1b0", "score": "0.5983175", "text": "public function setKeyRaw($key)\n {\n $this->raw['key'] = $key;\n return $this;\n }", "title": "" } ]
[ { "docid": "379c5c37d697d89d58dc6449882e5e66", "score": "0.7430264", "text": "public function set_key( $key );", "title": "" }, { "docid": "fbde91d72d97e543af2afd0dfd855a63", "score": "0.7355673", "text": "public function setKey($key) {}", "title": "" }, { "docid": "73718...
8d71f897ada8b7b80f5035944dd5bc8b
Edits an existing Marque entity.
[ { "docid": "6d2114c4cdb4ac91e44e2068c3ed04eb", "score": "0.61078435", "text": "public function updateAction(Request $request, $id)\n {\n $em = $this->getDoctrine()->getManager();\n\n $entity = $em->getRepository('TroiswaBackBundle:Marque')->find($id);\n\n if (!$entity) {\n ...
[ { "docid": "6056e3911e0cf6d4d89420b395521b34", "score": "0.647113", "text": "public function edit($entity)\n {\n $entity->save();\n }", "title": "" }, { "docid": "731233e829408fad8ca1941e7e270708", "score": "0.63848186", "text": "public function edit(Marca $marca)\n {...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "c2f9cc645d4545f2d2dc148427898dab", "score": "0.0", "text": "public function destroy($id)\n {\n $contacto = Contacto::find($id);\n\n $contacto->delete();\n\n return back();\n }", "title": "" } ]
[ { "docid": "323473ed6f508b74e659356efaa1c48c", "score": "0.71817523", "text": "public function delete(Resource $resource);", "title": "" }, { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n...
3b4331bcc35acbdd56b8e798f9dac9c7
Was the request made by DELTE?
[ { "docid": "0a23515c5f167813966a78ab680fa05b", "score": "0.61636615", "text": "public function isDelete(){\n return 'DELETE' == $this->getMethod();\n }", "title": "" } ]
[ { "docid": "988e3ae9abad99bffa0e8c4b65e417b8", "score": "0.6859875", "text": "function is_delete()\n {\n if ($this->return_result){\n return $this->op == 'DELETE';\n }\n return $_SERVER['REQUEST_METHOD'] == 'DELETE';\n }", "title": "" }, { "docid": "6073...
54bf199d622cc9fdaf8d0b46d689d329
Calculamos el total de registros
[ { "docid": "c5559602121abe8831ec8b592e42d647", "score": "0.0", "text": "function DameTotalAnuncio($sql){\r\n $sqltemp = $sql;\r\n $resultemp = mysql_query($sqltemp);\r\n $total_registros = mysql_num_rows($resultemp);\r\n return $total_registros;\r\n }", "title":...
[ { "docid": "1a511a8a32035bc2706ea69cfcaf42be", "score": "0.78543127", "text": "public function TotalRegistros(){\n \t\t\treturn $this->totalRegistros;\t\t\t\t\t\t\n\t\t\t}", "title": "" }, { "docid": "1cd7cd32a6aa536c1d500a3c24e3864c", "score": "0.7737083", "text": "private functi...
2c849e23372805453d4d5e273adcbc0e
/ skm end / This method get the previous record of payment refund of company for activity log skm start
[ { "docid": "371feb386bd3825e2387989fac66f2c1", "score": "0.6015795", "text": "public function get_last_comp_payment_refund($invoice_id){\n $this->db->select('er.invoice_id,er.refund_on,er.refund_type,er.mode_of_refund,er.othr_mode_of_refund,er.amount_refund,'\n . 'er.sfc_claimed,er...
[ { "docid": "a6139fd4759c8589cab7a6b1e09adc23", "score": "0.5814096", "text": "public function get_last_comp_payment_update($invoice_id){\n $this->db->select('epr.invoice_id,epr.recd_on,epr.sfc_recd_on,epr.mode_of_pymnt,epr.othr_mode_of_payment'\n . ',epr.amount_recd as total_paid_a...
23b2b087adc9ed7a550e215ed20174a0
Enqueuing assets based on our current environment Register all plugins Enqueue as required by env, grunt handles concat and min
[ { "docid": "afcd59414e8b519393a2c5cd348fd751", "score": "0.62946373", "text": "function enqueue_theme_assets() {\n\n // Env Variables\n $env = array(\n 'current' => $_SERVER['HTTP_HOST'],\n 'production' => 'bones.com',\n 'staging' => 'bones.aytoo.com'\n );\n\n // Styles\n wp_register_style...
[ { "docid": "846a0ffa131cd14474bdc431844e055b", "score": "0.62963164", "text": "function enqueue_backend_theme_assets() {\n\t// Register Config css, js\n\tforeach( Config::$styles as $style ) {\n\t\tif ( isset( $style['admin'] ) && $style['admin'] == true ) {\n\t\t\tConfig::add_css( $style );\n\t\t}\n\t}...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "53efbc322f0f43914c862da7427c1bcd", "score": "0.0", "text": "public function edit(CustomerFieldPart $customerFieldPart)\n {\n //\n }", "title": "" } ]
[ { "docid": "c77fbba2f7b7f5018f4471f75871b57a", "score": "0.7797669", "text": "public function edit(Resource $resource)\n {\n return view(\n 'resources.edit', \n [\n 'resource' => $resource\n ]\n );\n }", "title": "" ...
73c18b6e2ff2ed7da40f55b7bb417032
retrieving contact by params
[ { "docid": "eac5bdc7108ad2d4734ea79f0208b420", "score": "0.6142499", "text": "public function getContacts($params = [])\n {\n return $this->call('contacts?' . $this->setParams($params));\n }", "title": "" } ]
[ { "docid": "ad403dc8823a92b32d93a364c04b50db", "score": "0.71843195", "text": "public function getContact();", "title": "" }, { "docid": "9066c0bcb4c9a13dbd6ab257ea502433", "score": "0.6678103", "text": "public function getContact(){\n return $this->getParameter('contact');\n ...
978f3e9c59915c91580959bc2c41205f
Allows child classes to attach data to the request.
[ { "docid": "0131a2fee596754fc42b719bb8849d38", "score": "0.7131891", "text": "abstract protected function attachData(RequestInterface $request);", "title": "" } ]
[ { "docid": "f100484786fa1e82b0d759d9fc1e721d", "score": "0.66162425", "text": "abstract protected function setUsableData(Request $request);", "title": "" }, { "docid": "b13e70ba4d0ce23359fd23c0a5546486", "score": "0.61100054", "text": "protected function attachData(): Request\n {\...
56ac6cf543b4f5eb2461bf33c70df5b5
Set the value for the Language input for this DrivingDistanceMatrix Choreo.
[ { "docid": "91ddb12bd4acbfb2fa725a4f78c0c675", "score": "0.52900255", "text": "public function setLanguage($value)\n {\n return $this->set('Language', $value);\n }", "title": "" } ]
[ { "docid": "11cf242c4aba8639f491f588c5021c3e", "score": "0.644494", "text": "public function setLanguage(string $lang);", "title": "" }, { "docid": "24584b816dd859bdec23fcfd61862fda", "score": "0.6405967", "text": "public function setLanguage($language);", "title": "" }, { ...
a1e4a7982a6e021a06a4f5bf245a3c33
Array of attributes where the key is the local name, and the value is the original name
[ { "docid": "9747c9f697cccdc3cdbdd653e9ef457c", "score": "0.0", "text": "public static function attributeMap()\n {\n return self::$attributeMap;\n }", "title": "" } ]
[ { "docid": "28e15d827577827486a3b4c4cb5aa465", "score": "0.6593334", "text": "public static function attributeMap()\n {\n return [\n 'obj_type' => 'obj_type',\n 'id' => 'id',\n 'parent_id' => 'parent_id',\n 'path' => 'path',\n 'kind' => 'k...
c1781b84b6b8d187dae8a7cbd6962eb5
/ Sanitizes the input given to prevent XSS.
[ { "docid": "a7d7bb555de159e5416148db03991ded", "score": "0.0", "text": "public static function sanitizeData( $str )\n\t{\n\t\treturn htmlspecialchars( $str, ENT_QUOTES, 'UTF-8', false);\t\t\n\t}", "title": "" } ]
[ { "docid": "d35d3839a581e881f52c8f644f680a00", "score": "0.8303889", "text": "function sanitiseInput($input){\n\t\t$input = trim($input); // get rid of leading/trailing whitespaces\n\t\t$input = stripslashes($input); // get rid of slashses\n\t\t$input = htmlspecialchars($input); // get ride of special c...
b0e986aa53949c50ebbae2a39474132d
Sets tags for this definition.
[ { "docid": "94e912bc7ca7f44c73fe20fed5df29d9", "score": "0.70786333", "text": "public function setTags(array $tags);", "title": "" } ]
[ { "docid": "06eac45fc2de5c96221bf2b06cd4994e", "score": "0.74707514", "text": "public function setTags($tags)\n {\n }", "title": "" }, { "docid": "8f2e77ba855915c5bb93d955c684a731", "score": "0.72558355", "text": "protected function set_tags($tags){\n\t\t\t$this->tags = $tags;\...
496b3489b52eb0f6afd471f53c111a52
Return an array of the join conditions
[ { "docid": "ce62162d0090e00102531b46a6958d15", "score": "0.6000083", "text": "public function getConditions()\n\t{\n\t $conditions = array();\n\t for ($i=0; $i < $this->count; $i++) { \n\t $conditions[] = array(\n\t 'left' => $this->getLeftColumn($i), \n\t 'operator' => $this->getOper...
[ { "docid": "be3450a546b940c07a7fd22120cd26ce", "score": "0.6870639", "text": "protected function _getJoins(){ }", "title": "" }, { "docid": "6a36f54390e6d0b3be6dc6a760b05e22", "score": "0.68376106", "text": "protected function _joins()\n\t{\n\t\t$joins_sql = '';\n\n\t\tif(isset($this...
d74392a55da09da0f1e42b922a4af643
Format this blocks area name into something nicer to read, cammelcase to spaces
[ { "docid": "cc7d2a8ea2cc351ea2b2bdb2a75a8d7a", "score": "0.5561537", "text": "public function AreaNice(){\n\t\treturn FormField::name_to_label($this->Area);\n\t}", "title": "" } ]
[ { "docid": "950bddabcd7ac24bee4dad5024de1e80", "score": "0.68601954", "text": "public static function areaName(): string\n {\n return 'area';\n }", "title": "" }, { "docid": "522c51f79994b0ecadc023c904b289d8", "score": "0.6128281", "text": "private function _formatName()...
b340438c1ef3f2247635095d3ab43169
Return true if the action should be runned false if not.
[ { "docid": "f5d17d006945d9fc00e4c26c1ce0c6d7", "score": "0.0", "text": "public function isRunnable(array $params) {\n return $params[\"build_js_doc\"];\n }", "title": "" } ]
[ { "docid": "faf2522b8f49c5a01df052f8e505f18e", "score": "0.7603511", "text": "public function shouldRun(): bool;", "title": "" }, { "docid": "14b66ab619ff11804ab0f6b07817c358", "score": "0.7560439", "text": "public function shouldExecute(): bool\n {\n return true;\n }", ...
11ac864cd92ec6e2c59fa96f972bbca0
Constructor with connection to database
[ { "docid": "57bfc9ca559735b94fc9746cfb082a7b", "score": "0.0", "text": "public function __construct($db) {\n $this->_db = $db;\n }", "title": "" } ]
[ { "docid": "fbba9519c79ef73d2c80f173194e6bac", "score": "0.85465956", "text": "public function __construct(){\n\t\t$database = new Database();\n\t\t$db = $database->getConnection();\n $this->conn = $db;\n }", "title": "" }, { "docid": "e18b613d5242803c7d59a19b92d3b567", "score"...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "4586998a17e3f15a43f003959d6ff7cb", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n // Edit User\n $user = User::find($id);\n $user->name = $request->name;\n $user->email = $request->email;\n $user->street = $request->street;\...
[ { "docid": "3e3a565a181db6f795f079d1dfb01f75", "score": "0.7099585", "text": "public function update(Resource $resource, $id)\n {\n //\n }", "title": "" }, { "docid": "bde449baf550552e043ec18452e05f5c", "score": "0.69665116", "text": "function update($resource, $content)...
fa958d8b5c09e380c37df3ca9e9e2f94
Returns the value of field codUbicacion
[ { "docid": "975d702a279052957a0966f36f49dc02", "score": "0.8776996", "text": "public function getCodUbicacion()\n {\n return $this->codUbicacion;\n }", "title": "" } ]
[ { "docid": "e06fdc2221e39be20fd7b1ecd8de512c", "score": "0.7656652", "text": "public function getCodice() \n\t{\n return $this->codice;\n }", "title": "" }, { "docid": "d4209225dcf8ffbfa316e5661d2d8b00", "score": "0.76120305", "text": "public function getCodice()\n {\n ...
b13dc0679b1998f5c122a0d775e2cf2c
Cannot do this !!
[ { "docid": "7073d6beeae6c7eddbd04cd6bcfd90cb", "score": "0.0", "text": "public function testDateObjects() {\n // $date =new DateTime()->getTimeStamp();\n $date = new DateTime();\n\n $now_unix_ts = $date->getTimeStamp();\n\n $formatted_now = $date->format('Y-m-d H:i:s');\n ...
[ { "docid": "8c13f7b38f8c05e9315047354c7aaf52", "score": "0.65134746", "text": "private function affiche()\n\t{\n\t}", "title": "" }, { "docid": "57178570dc9bde03e4de27133698a186", "score": "0.6077427", "text": "public function sinhcon()\n {\n }", "title": "" }, { "d...
2a8e3b8a13febea78907a51cf4ee53bc
Checks if field type has external data to deal with
[ { "docid": "909957f157fe06b310bab9634c533c5f", "score": "0.62995917", "text": "public function hasFieldData()\n {\n return true;\n }", "title": "" } ]
[ { "docid": "f6786f361d33e09ea3a05ea08b6532f8", "score": "0.6489671", "text": "function fieldIsText($fieldname){\n /// \\param[in] $fieldname the name of the field to check\n /// \\return True if the field is a text field, false if the field is numerical, and null if the field does not exist\n ...
46dd3800ade642ad3d46a5da157a325c
/ call add purchase view to add purchase
[ { "docid": "397b378e5296dab1d79b756743a4251d", "score": "0.6610628", "text": "public function add(){\r\n\t\t$data['company'] = $this->purchase_model->getCompany();\r\n\t\t$data['product'] = $this->purchase_model->getProduct();\r\n\t\t// $this->purchase_model->checkPurchaserForPrimaryWarehouse();\r\n\t\t...
[ { "docid": "aac5172e3527a4c6da0120436b235c85", "score": "0.8020312", "text": "public function addpurchase() { \n $data['page'] = 'Purchase Order';\n\t\t$data['page_title'] = 'Purchase Order Entry';\n $data['page_module'] = 'inventory';\t\t\n $this->load->view('inventory/purch...
a3ddac801032920f414f810037b72a57
Get error url to redirect to.
[ { "docid": "c0e6153eb554d626934e237c469c1b84", "score": "0.82060504", "text": "protected function getErrorUrl()\n { \n // redirect to the list of locations\n $url = $this->router->generate('musharemodule_location_view');\n }", "title": "" } ]
[ { "docid": "0100983c97918e56c730272d900d76e0", "score": "0.7494519", "text": "public function geterrorRedirectRoute() {\n return $this->errorRedirectRoute;\n }", "title": "" }, { "docid": "6296c201340106321b8eb8b14956853a", "score": "0.7433069", "text": "public function get...
af6b87ee7a92d1653b883f4d6c18aa5a
/ Function will get all the semester.
[ { "docid": "0e3bcaf63912d31754f30e2f51201afe", "score": "0.83153003", "text": "public function getAllSemester()\n\t{\n\t\ttry {\n\t\t\t$sql = \"SELECT * FROM semester;\";\n\t\t\t$stmt = $this->connect()->prepare($sql);\n\t\t\t$stmt->execute();\n\t\t\treturn $stmt->fetch();\n\t\t} catch (PDOException $e)...
[ { "docid": "2d37242e9abe91b3333fd1f4f231609e", "score": "0.79217935", "text": "public function index()\n {\n return SemesterResource::collection(Semester::all());\n }", "title": "" }, { "docid": "e9388d995c74587855d8edaba713e6f4", "score": "0.7460912", "text": "public fu...
697264a149e1fc63e50e53935414e590
strip input text to avoid crossscripting
[ { "docid": "f3ceae0b1e5be9c30bd64f7865c0f442", "score": "0.0", "text": "function cleanInput($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}", "title": "" } ]
[ { "docid": "8f0ebcd50034c4bafef5511734924ace", "score": "0.75848633", "text": "function stripinput($text) {\n\tif (QUOTES_GPC) $text = stripslashes($text);\n\t$search = array(\"\\\"\", \"'\", \"\\\\\", '\\\"', \"\\'\", \"<\", \">\", \"&nbsp;\");\n\t$replace = array(\"&quot;\", \"&#39;\", \"&#92;\", \"&q...
11830e68936bbef45c0468960b0c5da9
Set the value of name
[ { "docid": "6a3e935ee890870b1c9c500ca6af91f3", "score": "0.0", "text": "public function setName($name)\n {\n $this->name = $name;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "ee6b4a2239e102cfeeb730201b859b9b", "score": "0.8802112", "text": "public function setName($name)\n {\n $this->value = $name;\n }", "title": "" }, { "docid": "85fe09cf25316766135f2227186bd7cd", "score": "0.8714409", "text": "function setName($value) {\n $...
4ed94cc8dd0c99e7a427484199c28f85
Get the Doctrine DBAL schema manager for the connection.
[ { "docid": "acfdc77cefd7d7a5676bae302bd5faaa", "score": "0.8462875", "text": "public function getDoctrineSchemaManager()\n {\n return $this->getDoctrineDriver ()->getSchemaManager ( $this->getDoctrineConnection () );\n }", "title": "" } ]
[ { "docid": "f2e08425e4c2e10fd7db6259bd98bc5c", "score": "0.7770266", "text": "public static function getDoctrineSchemaManager()\n {\n }", "title": "" }, { "docid": "38bea8051dc20d2adf7fa3d7683b6644", "score": "0.7451277", "text": "public function getSchemaManager(Connec...
1acdb646a9748e11365a6508a7e2ec21
extract string into executable segments
[ { "docid": "593e969c2575a15c416ebbfee7741cd4", "score": "0.0", "text": "private function extractRule($rule)\n\t{\n\t\t$ruleSegments = array();\n\t\t$ruleOperators = array();\n\t\t$ruleLen = strlen($rule);\n\t\t// index of proceed\n\t\t$iop = 0;\n\n\t\t// scan the rule string char by char $ios index of s...
[ { "docid": "e5c856b0062993c56365d5d47bcd0221", "score": "0.5714732", "text": "function media_theplatform_mpx_extract_string($start_str, $end_str, $input) {\n $pos_start = strpos($input, $start_str) + strlen($start_str);\n $pos_end = strpos($input, $end_str, $pos_start);\n $result = substr($input, $po...
54f458af28fc66fda82b6c1f04b78925
Private Member Functions Name: store_value() Desc: Gets the value for a certain element and stores it.
[ { "docid": "c4d669f058f7bb067e2782cb17deb963", "score": "0.6963207", "text": "private function store_value( $element_id )\r\n\t\t{\r\n\t\t\t\r\n\t\t\t// Get the element.\r\n\t\t\t$element = $this->form_object->elements[$element_id];\r\n\t\t\t\r\n\t\t\t// Element type?\r\n\t\t\tif ( $element->type == LW_...
[ { "docid": "025e8e89c4989d2fb4a13152d2e155a5", "score": "0.64475566", "text": "function getValue();", "title": "" }, { "docid": "c0c4496e61d0a35c0ce640803a457214", "score": "0.63801205", "text": "public function store($value, $type);", "title": "" }, { "docid": "46ac13e13...
7e055ef8d2a5b6862d3b5558a6622d01
Handle a request to search tasks.
[ { "docid": "f6ecb94137116e0701134934ed11e5e1", "score": "0.55000037", "text": "public function search()\n {\n App::loggedOnly();\n\n if (! array_key_exists('q', $_GET) || ! $_GET['q']) {\n App::error('Предоставьте текст для поиска');\n } else {\n $query = tr...
[ { "docid": "f4117d6bcf64c4d651eee9fbc198c848", "score": "0.63732064", "text": "function _search($task_string) {\n global $api;\n\n return $api->findTask($task_string);\n }", "title": "" }, { "docid": "bc9a54c5d04e33a82e7d2e36aa743291", "score": "0.6227876", "text": "...