query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
11298dc6d4dbf989e1d9869efe5253d9
interval between directory watcher runs
[ { "docid": "1b14e426d889fa553d82db3235c4facd", "score": "0.0", "text": "public function getPollingInterval()\n {\n return $this->pollingInterval;\n }", "title": "" } ]
[ { "docid": "8d1ca80438e0d2834305c05096b82173", "score": "0.66159683", "text": "function watch($dpath=null) {\n $haveTrigger = ($this->_dirTrigger || $this->_fileTrigger);\n $dpath = ($dpath===null) ? $this->dpath : $dpath;\n $maxModTime = time() - $this->minAge;\n $minModTime = $this->getIni...
1ba7a08ff56ea3827a5732d09e78ea7a
include bootswatch themes description
[ { "docid": "ed80a121758817099053e72ec58a21a8", "score": "0.0", "text": "public function themes(ParameterBagInterface $params, UserInterface $user,\n EncoderInterface $encoder, DecoderInterface $decoder): Response\n {\n $themes = $decoder->decode(file_get_contents(implode(DIRECTORY_SEPAR...
[ { "docid": "938ce300c60cb587ad9ecfad02a9897c", "score": "0.6848769", "text": "public function themeInfo();", "title": "" }, { "docid": "07deec98a6d2305ded8274109c5ebeca", "score": "0.6717223", "text": "public function getPackageDescription()\n {\n return t(\"A package that ...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "99b00e104751880ec37e3f4eb2fbd21d", "score": "0.0", "text": "public function run()\n {\n /* set params */\n $current_params = $this->getParams();\n /* clear table */\n /* fill table */\n $this->insertToDB($current_params);\n }", "title": "" } ]
[ { "docid": "f74cb2c339072d43cd3b96858a89c600", "score": "0.8112695", "text": "public function run()\n {\n $this->seeds();\n }", "title": "" }, { "docid": "33aedeaa083b959fa5f66e27a7da3265", "score": "0.8026505", "text": "public function run()\n {\n // $this->ca...
b7636df154d7294ffbe4bf54143c42e1
Get the name for the currently authenticated user.
[ { "docid": "d63a0aa84a39a41e15f0603ab4c146de", "score": "0.0", "text": "public function name();", "title": "" } ]
[ { "docid": "2b95f8c59b2506fc023b2afc899d0d6f", "score": "0.8574698", "text": "public function getUserName()\n {\n $currentUser = $this->getUser();\n return $currentUser['name'];\n }", "title": "" }, { "docid": "5cbe2846537becc7841ae6f004847e2f", "score": "0.8275954", ...
1035d0d482ab54845f883258e791236f
/Get Events By Fucntion
[ { "docid": "2cc4a2f24d17a6cebb5daca70df8a21e", "score": "0.0", "text": "public function Event()\n {\n $this->form_validation->set_rules('user_id', 'user_id', 'required');\n $this->form_validation->set_rules('function_id', 'function_id', 'required');\n \n if ($this->form_va...
[ { "docid": "b0dee8bb154e409ec462624bfa5ab5ca", "score": "0.81008446", "text": "public static function getEvents();", "title": "" }, { "docid": "669a74583fa5dbd900618c010e61a64f", "score": "0.80455554", "text": "abstract public function getEvents();", "title": "" }, { "doc...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "6eb242a44f00c105d7b38eef7fcc1f36", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n $this->validate($request,[\n 'content'=>'required | min:10',\n 'question_id'=>'required | integer',\n ]);\n\n $answer=new An...
[ { "docid": "75600e5d65c2156987ff7cb140e14a4b", "score": "0.6621582", "text": "public function store() {\n $fileService = $this->getFileService();\n $filename = $this->getCacheDirectory() . $this->generateCacheablefilename();\n $fileService->saveFile($filename, $this->resource->getContent());\n ...
31b8292a88983ffd830e4fe89974d536
Test the different update actions in \Drupal::service('pathauto.manager')>createAlias().
[ { "docid": "3aea36f8c441e58edaa08fb8ebcaaeb2", "score": "0.70731735", "text": "public function testUpdateActions() {\n $config = $this->config('pathauto.settings');\n\n // Test PATHAUTO_UPDATE_ACTION_NO_NEW with unaliased node and 'insert'.\n $config->set('update_action', PathautoManagerInterfa...
[ { "docid": "60706731aa301cafc9b99ff6d25cbd45", "score": "0.6355532", "text": "function dbf_client_update_alias($dbf_client, $op, array $options = array()) {\n // Skip processing if the user has disabled pathauto for the dbf_client.\n if (isset($dbf_client->path['pathauto']) && empty($dbf_client->path[...
20ce2c25cde669462f9878f93d1153f5
Set current controller method
[ { "docid": "6dbf09a364a67c2465fa11bc4e127a03", "score": "0.65466017", "text": "private function setCurrentMethod(string $currentMethod)\n {\n $this->currentMethod = $currentMethod;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "d4eaf2aac16a28b50a3706ab11aa8a6c", "score": "0.6747673", "text": "public function setMethod($method)\n\t{\n\t\t$this->$method = null; //Reset, so it' s getting regenerated properly.\n\t\t$this->server->set('REQUEST_METHOD', strtoupper($method), true);\n\t}", "title": "" }, { "doc...
100b5ce1f48a5688cf67d65aa835c906
check if tables exists and create if not
[ { "docid": "00b2d80e51a998124da073cabc7b85e3", "score": "0.7078713", "text": "function chk_tables_exists()\r\n {\r\n\r\n $conn=$this->dbconnect();\r\n$html='';\r\n foreach($this->tables[trim($_SESSION['post']['dbtype'])] as $table=>$value)\r\n {\r\n $r=$this->chk_table...
[ { "docid": "5a286721f73fc99fb3598087ff9344d1", "score": "0.8570036", "text": "function check_and_create_tables() {\n if ( !$this->check_table_exists( $this->table_sets )) $this->create_table_sets();\n if ( !$this->check_table_exists( $this->table_fonts )) $this->create_table_fonts();\n ...
7228483eabc2e2728c5472af284f4f04
Preview image in iframe
[ { "docid": "754d42c89ec09206dccc37542f9b81fa", "score": "0.55697453", "text": "static function preview()\n {\n $extensions = unserialize(base64_decode($_POST['wp-femu-option-extensions']));\n $dimensions = unserialize(base64_decode($_POST['wp-femu-option-dimensions']));\n\n foreach ($_FILES as...
[ { "docid": "cc7df820ca818e0fd3c6e39d84fd2479", "score": "0.67910814", "text": "function modal_buddy_cover_image_iframe() {\n\t// Enqueue the Attachments scripts for the Cover Image UI\n\tbp_attachments_enqueue_scripts( 'BP_Attachment_Cover_Image' );\n\t?>\n\n\t<h1><?php esc_html_e( 'Edit Cover Image', '...
413d1918cd355b07a4a48ac3ec37ba63
Record that a successful assertion occurred.
[ { "docid": "bca05f41c5b8b41079b52575c590ae6b", "score": "0.0", "text": "public function createSuccess(array $events = []): EventCollection\n {\n $suiteClass = $this->suiteClass;\n $suiteClass::current()->assert($this->successConfig);\n\n return new EventSequence($events, $this->c...
[ { "docid": "5a5634a7cb6053593073c805ffc22025", "score": "0.66304356", "text": "public function recordSuccess();", "title": "" }, { "docid": "a57785650659c68494656f072a92a557", "score": "0.6422773", "text": "public function testSuccess()\n {\n $this->flashBag\n ->...
35abd2f333e532ab2bd734c9d3ffb9f0
Filter the query on the cardnbr column Example usage: $query>filterByCardnbr('fooValue'); // WHERE cardnbr = 'fooValue' $query>filterByCardnbr('%fooValue%', Criteria::LIKE); // WHERE cardnbr LIKE '%fooValue%'
[ { "docid": "e827a71fb9fc17d31468afee4dd00043", "score": "0.5387327", "text": "public function filterByCardnbr($cardnbr = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($cardnbr)) {\n $comparison = Criteria::IN;\n }\n }\n\n...
[ { "docid": "a1953d45be9354d795454d985801c28e", "score": "0.4781862", "text": "public function filterByContractNo($contractNo = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($contractNo)) {\n $comparison = Criteria::IN;\n } elsei...
e5f6956a9e2dae63fe135ef5809fb304
test for Density initialisation expected instance
[ { "docid": "bf202e02675b502f0a75d87b0edf7284", "score": "0.80532634", "text": "public function testDensityInit()\n {\n $value = new Zend_Measure_Density('100', Zend_Measure_Density::STANDARD, 'de');\n $this->assertTrue($value instanceof Zend_Measure_Density, 'Zend_Measure_Density Object...
[ { "docid": "5f58bcfdeafcd9c1796bbf62270969c0", "score": "0.64559525", "text": "public function testDensitySetComputedType1()\n {\n $value = new Zend_Measure_Density('-100', Zend_Measure_Density::SILVER, 'de');\n $value->setType(Zend_Measure_Density::TONNE_PER_MILLILITER);\n $this...
75c45873670c4a7ba4ff922ddf51e185
Get a list of schemaExtension objects in your tenant. The schema extensions can be InDevelopment, Available, or Deprecated and includes schema extensions:+ Created by any apps you own in the current tenant.+ Owned by other apps that are marked as Available.+ Created by other developers from other tenants and marked as ...
[ { "docid": "ad5b3dbab27c76ac9bf7c913cebfa2fb", "score": "0.0", "text": "public function toGetRequestInformation(?SchemaExtensionsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {\n $requestInfo = new RequestInformation();\n $requestInfo->urlTemplate ...
[ { "docid": "32077bf8ba35a544c9aa9087edbeb7d2", "score": "0.6511878", "text": "public function getExtensions();", "title": "" }, { "docid": "86333ade67193b549624643271451f56", "score": "0.6440018", "text": "public function getExtensionFeatures();", "title": "" }, { "docid"...
288ca481c4534b85ad79f18e8a33bca0
/ if $h is not put in, then $h = $w
[ { "docid": "eb3c129067a92c453f8573450636b952", "score": "0.4522711", "text": "public static function roundUpImage($src, $dest, $w, $h=0) {\n\n $file_dest = str_replace(strrchr($dest, '.'), '.png', $dest);\n\n if ($h == 0)\n $res = self::resizeImageSmaller($src, $dest, $w);\n ...
[ { "docid": "10a53d0a8d5edbdda38921322753092b", "score": "0.584983", "text": "function SetHight($h)\r\n {\r\n $this->rowhight=$h;\r\n }", "title": "" }, { "docid": "94b0ae2600daedfb26d1c6479080f411", "score": "0.5769437", "text": "function blended_saveWH(&$dims,&$pdf,$id='0')\r\n...
a91a8295df69beb24664c8d9208a3f4c
Returns email and username for user.
[ { "docid": "ddf7c19dfb3a0f36c1ed4851eefb0602", "score": "0.0", "text": "public function getAnswerPointsByUser($id): object\n {\n $params = [$id];\n $this->checkDb();\n return $this->db->connect()\n ->select(\"SUM(points) AS totalPoints\")\n ->where(\"userId ...
[ { "docid": "abe0874ac35de0fbeb31cdb4d8985b85", "score": "0.7657989", "text": "public function getUsername(): string\n {\n return $this->getEmail();\n }", "title": "" }, { "docid": "56fde19331d8e492a9fc6710d15b8585", "score": "0.7527312", "text": "public function getUsern...
b28c1aa40db7a1bba985299c4939b8ad
Retrieve the value for the "ResponseCode" output from this CreateDataset execution.
[ { "docid": "fca0278b0b03dac866990343f7efbd83", "score": "0.7643338", "text": "public function getResponseCode()\n {\n return $this->get('ResponseCode');\n }", "title": "" } ]
[ { "docid": "eb7eae693c064719bdde11ba7811ff24", "score": "0.78831553", "text": "public function getResponseCode()\n {\n return $this->fields[DirectResponseField::RESPONSE_CODE];\n }", "title": "" }, { "docid": "b8aa7a834efdda8d4d3fd1ebcec6b1f3", "score": "0.762154", "text...
114fe89543527527f92794a4091dfd68
Overrides getExternalUrl(). Return the HTML URI of a private file.
[ { "docid": "59e35958c5586bd152eb116d8f77d810", "score": "0.6719796", "text": "function getExternalUrl() {\n $path = str_replace('\\\\', '/', $this->getTarget());\n return url('shoov/images/' . $path, array('absolute' => TRUE));\n }", "title": "" } ]
[ { "docid": "ba4a8343e40053f4041b635b8aaccc5b", "score": "0.68544704", "text": "function getExternalUrl() {\n $path = str_replace('\\\\', '/', $this->getTarget());\n $path = substr($path, 0, -5);\n return url('system/docs/' . $path, array('absolute' => TRUE));\n }", "title": "" }, { ...
93a1e9f7d0f62a8c07ad3729d2c6d771
Sequentially renumber external feeds in their sequence order.
[ { "docid": "31706e7c4f1618a97a7c4b578c923e30", "score": "0.6617758", "text": "function resequenceExternalFeeds($journalId) {\n\t\t$result =& $this->retrieve(\n\t\t\t'SELECT feed_id FROM external_feeds WHERE journal_id = ? ORDER BY seq',\n\t\t\t$journalId\n\t\t);\n\n\t\tfor ($i=1; !$result->EOF; $i++) {\...
[ { "docid": "50d78295493e2f97e6fd533cd0be9ee0", "score": "0.57260746", "text": "function adjustNextSequenceOrder($new_first_player_id)\r\n {\r\n $players = self::getCollectionFromDB(\"SELECT player_id, next_sequence_order AS color, player_name FROM player ORDER BY next_sequence_order ASC\");\r\...
082cbf75c3e0b83f2c8c2583e0d1eee4
Grab orders based on first and name
[ { "docid": "1e373836ff60bd6757a35e589b2d4132", "score": "0.5645465", "text": "function getOrdersName($fName, $lName)\r\n {\r\n //1. Define the query\r\n $sql = \"SELECT *\r\n FROM ordertest \r\n INNER JOIN customertest ON ordertest.customer_id = customertes...
[ { "docid": "1de59c7512e9ca0b89c612030c3d288c", "score": "0.61979216", "text": "function getOrderings() ;", "title": "" }, { "docid": "cc9a00e81051bbf9d0b0a0e1e31fae9c", "score": "0.603694", "text": "public function getOrders();", "title": "" }, { "docid": "3f10d6f609b25dd...
15f6391ca553f47a7be37d13986a893c
end getSeatsInVenue() Returns an array of sold seats
[ { "docid": "02b216845dd060358d40ca28ab2a9e67", "score": "0.6317968", "text": "public static function getSoldSeats($theatreId)\n {\n $mappingId = self::getActiveRollover($theatreId);\n $activeMapping = self::getRolloverMapping($mappingId);\n $soldSeats = APDB::QueryAll(<<<'SQL'\n ...
[ { "docid": "67a28cb6c105a402609419bb445ed529", "score": "0.76860404", "text": "public static function getSeatsInVenue($theatreId)\n {\n \n $mappingId = self::getActiveRollover($theatreId);\n $activeMapping = self::getRolloverMapping($mappingId);\n $venueSeats = APDB::Query...
8aefa813394754ef5f0dbf336a528532
Format the current link for HTML output
[ { "docid": "92704a1213af96a8f93e01664ef6f8b4", "score": "0.7652048", "text": "public function formatCurrentUrl() {}", "title": "" } ]
[ { "docid": "d2a440c03c913d2d645682e89a5832a4", "score": "0.7760042", "text": "function formatCurrentUrl() ;", "title": "" }, { "docid": "4986fb5f5f2f1e80b785607e8965b412", "score": "0.7510696", "text": "public function formatCurrentUrl() {\n\t\treturn $this->linkParts['url'];\n\t}", ...
9324b7791317a63826132aec48f0a323
get all pizzas from db
[ { "docid": "4502d5fe9ccce7530676c7a33ddfc995", "score": "0.6359216", "text": "public function index() {\n $pizzas = Pizza::orderBy('id', 'asc')->get();\n return $pizzas->toJson();\n }", "title": "" } ]
[ { "docid": "fa6294eec3f2992bf125d37c502106b0", "score": "0.73854524", "text": "static function getPizzas(){\n\t\t$sql =\"SELECT * FROM Producto where categoria_id=1\";\n\t\t$db = new Database();\n\t\tif ($rows = $db->query($sql)){\n\t\t\treturn $rows;\n\t\t}\n\t\treturn false;\n\n\t}", "title": "" ...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "faa0db12abbbf558f2549a4f0cf070cb", "score": "0.0", "text": "public function run()\n {\n //\n\n\n $faker = Faker::create();\n for ($i=0;$i<20;$i++) {\n $government = new \\App\\Government();\n $government->name = $faker->country;\n $gov...
[ { "docid": "963776365fb19044e27fa4db733ae2fd", "score": "0.80740553", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n\n // factory(App\\User::class, 1001)->create()->each(function ($user) {\n // $user->roles()->attach([4]);\n // });\n\n ...
89e4525c2401b9e905ce81f339835fe5
si viene array campo/valor.
[ { "docid": "4dd3fe4e2d709dc8c843e5ad29fa2a82", "score": "0.0", "text": "public function __construct($field, $value = null, $and = true){\n\t\tif(is_array($field) && !empty($field)){\n\t\t\t$this->conditions = $field;\n\t\t}\n\t\t//si viene campo/valor.\n\t\telseif(!is_null($field) && !is_null($value)){\...
[ { "docid": "4ce0569930a2e2cd9a9182755574e274", "score": "0.6300944", "text": "function setValores($array) { $this->arValores = $array; }", "title": "" }, { "docid": "110f8d4e651ab5e23ec9e3c2374e0d1b", "score": "0.6185606", "text": "function contieneCampos($filaTabla){\n$campos0=explo...
f389f21fad5a5baaf7069d957b90771d
Hide the current custom keyboard and display the default letterkeyboard. $params = [ 'hide_keyboard' => true, 'selective' => false, ];
[ { "docid": "2adcfaaec40258d93c502039544b16d8", "score": "0.65650177", "text": "public static function hide(array $params = [])\n {\n return new static(array_merge(['hide_keyboard' => true, 'selective' => false], $params));\n }", "title": "" } ]
[ { "docid": "37b28538401cf38a24f7f87d1b72b16c", "score": "0.601139", "text": "public static function replyKeyboardHide($selective = false)\n {\n $remove_keyboard = true;\n return json_encode(compact('remove_keyboard', 'selective'));\n }", "title": "" }, { "docid": "9549d97...
b426f66049c1c28df8e5ec431e13c550
Outputs an HTML table displaying the top $numToGet artifacts (by view count)
[ { "docid": "d7b826a3d82be8c15b69be89d2fcb55c", "score": "0.8271441", "text": "public function showTopArtifacts($numToGet)\r\n {\r\n echo '<table class=\"sortable\" border=1>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th>Acc. Num</th>\r\n\t\t\t\t\t<th>Name</th>\r\n\t\t\t\t\t<th>Total Views</th>\r\n\t\t\t\t\...
[ { "docid": "8e41a2b9cb9089abba6c7ec7d5cfc921", "score": "0.68553305", "text": "public function showTopSearchers($numToGet)\r\n {\r\n echo '<table class=\"sortable\" border=1>\r\n\t\t\t\t<tr>\r\n\t\t\t\t\t<th>IP</th>\r\n\t\t\t\t\t<th>Searches Performed</th>\r\n\t\t\t\t</tr>';\r\n $result...
20a78dd81221bf46123de6bbf4a508a6
Saves the form data, which will either be an update to already existing membersonly event configurations or converting a normal event to membersonly event,
[ { "docid": "528f337ac2aecdb348e67720e20ed44f", "score": "0.75142336", "text": "private function saveFormData($params) {\n $membersOnlyEvent = MembersOnlyEvent::create($params);\n if (!empty($membersOnlyEvent->id)) {\n $allowedMembershipTypesIDs = array();\n if (!empty($params['allowed_me...
[ { "docid": "a2f09da506126b9fedcee15e149d25d4", "score": "0.6150845", "text": "public function save() {\n\n // Because stuff from Vue / Front end JS comes as string, we must filter the boolean strings back to proper booleans before saving to the database\n $this -> filter_front_boolean_fiel...
ddaa7dfe2715b0610479ab274ad62b59
Edit user email (perform the real action after form has been submitted)
[ { "docid": "f87861e1655418546b3a5e718c8484e1", "score": "0.7758105", "text": "function edituseremail_action()\n {\n $login_model = $this->loadModel('Login');\n $login_model->editUserEmail();\n $this->view->render('login/edituseremail');\n }", "title": "" } ]
[ { "docid": "22bd04d31cc25191302130e26032204d", "score": "0.7958367", "text": "public function actionEmail() {\n $user = \\app\\models\\User::findByPk(WebApp::get()->user()->id)->setAction('change-email');\n if (isset($_POST['save'])) {\n $user->setAttributes($_POST['User']);\n ...
7408330af282c7f623fcd743f77dd164
This will handle insctruction received by the channel
[ { "docid": "9f581a974cd73e54b040953a34294308", "score": "0.0", "text": "public function handleInstruction($instruction, $topicId=null, $data=null){\n switch($instruction){\n case \"register\": \n //Get user's seat\n $user = $this->em->getRepository(User::c...
[ { "docid": "7d1677a1b93909833838599a7aa436ef", "score": "0.62443733", "text": "public function handle($channel)\n {\n }", "title": "" }, { "docid": "9861b20a40c69299f7a45b59214d6d3a", "score": "0.610024", "text": "public function handleRequest(ChannelRequest $channelRequest);",...
45f57480bfe39e61a7547133cb9c19a4
FUNCIONES CALCULO DE SIMILITUD Coeficiente de correlacion de Pearson / r=1 correlacion perfect 0<r<1 correlacion positiva r=0 no existe relacion 1<r<0 correlacion negativa r=1 correlacion negativa perfecta
[ { "docid": "e4b82c04f883c6eb018cfc2db86c6bf2", "score": "0.54176015", "text": "public function PCC($v1, $v2){\n \t\n $mediaValoracionItem1=$this->calculaMedia($v1);\n $mediaValoracionItem2=$this->calculaMedia($v2);\n \n //Calculo numerador\n $sumatoriaNumerador=0;\n ...
[ { "docid": "764d892950c97b867ba56847973d9b57", "score": "0.6124513", "text": "public function calculate_constants()\n {\n if($this->n==0) {\n echo \"<b>\" . \"Number of trials cannot be zero\" . \"</b>\";\n return;\n }\n else{\n\n for($j=0; $j<cou...
6e990bf3c57d173b83f3cc2ee3bc5016
Test that string is invalid even if it starts with a numeric value
[ { "docid": "4c88da7a0e507355bf4327a5360842da", "score": "0.7513232", "text": "public function testValidateStringContainingNumericFalse()\n {\n $actual = $this->_rule->validate('100 Meters');\n $this->assertFalse($actual);\n }", "title": "" } ]
[ { "docid": "77e3606e4c47165963bfa51603c4baff", "score": "0.7401536", "text": "function hasOnlyAlphaNumerics($string)\n{\n\t$regex=\"/^[A-Za-z0-9\\s]+$/\";\n\tif(preg_match($regex, $string))\n\t{\n\t\treturn true;\n\t}\n\telse\n\t{\n\t\treturn false;\n\t}\n}", "title": "" }, { "docid": "0990d...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "6535abd3773531c61f1be7f240505bf0", "score": "0.0", "text": "public function index()\n { \n $cities = City::get();\n return view('pages/cityOrdersReport',['cities'=>$cities]);\n }", "title": "" } ]
[ { "docid": "edfccc7675941363f15cdfa73ea568e7", "score": "0.79342735", "text": "public function listAction() {\n\t\t$resourceRecords = $this->repository->findAll();\n\t\t$this->view->assign('content', array(EmberDataUtility::uncamelizeClassName($this->modelName) => $resourceRecords));\n\t}", "title":...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "e5c60b1a4a8764fec274459b84785f85", "score": "0.0", "text": "public function index()\n\t{\t\n\t\t# check for query\n\t\t$query = Input::get('query');\n\t\t# default message - if query it is filled, else it is null\n\t\t$message = '';\n\t\t\n\t\tif('query') {\n\t\t\t$message = \" was successfu...
[ { "docid": "401f14dad055920ac5aa27d774922113", "score": "0.7704874", "text": "public function index() {\n $resource_info = $this->Resources->find('all');\n\n $this->set('resource_info', $this->paginate($resource_info));\n }", "title": "" }, { "docid": "aaad0bca56bcca6a005037...
d385764844c2fd1af56b2ed9cfd1630d
Sets the yearHeaderTemplate option of the GanttView. The template used to render the year slots in "year" view.
[ { "docid": "38ad99e2195b17ac9e06f119dca32907", "score": "0.7486292", "text": "public function yearHeaderTemplate($value) {\n return $this->setProperty('yearHeaderTemplate', $value);\n }", "title": "" } ]
[ { "docid": "a45ed6591c7eb59407161feb390bb238", "score": "0.73068523", "text": "public function yearHeaderTemplateId($value) {\n $value = new \\Kendo\\Template($value);\n\n return $this->setProperty('yearHeaderTemplate', $value);\n }", "title": "" }, { "docid": "e15b093f4d850...
8df4510c81b3bed03576d861a47a34ad
Cleans up the job.
[ { "docid": "e8081980abd010984cfe9bb45b64fec4", "score": "0.5902417", "text": "public function cleanJob(TripalRemoteJob $job) {\n $resource = $job->getResource();\n $resource->cleanJob($job);\n if ($job->getSendEmail() == TRUE) {\n $this->sendCompleteEmail($job);\n }\n }", "title": ...
[ { "docid": "4a51a3c30195366f376b77a29a68257d", "score": "0.72569025", "text": "public function clean() {\n\t\t$this->out('Deleting old jobs, that have finished before ' . date('Y-m-d H:i:s', time() - Configure::read('queue.cleanuptimeout')));\n\t\t$this->QueuedTask->cleanOldJobs();\n\t}", "title": "...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "521ff41165cf95dbef02d0f46ac0acb1", "score": "0.0", "text": "public function edit(UserApi $userapi)\n {\n return view('Iprofile::admin.userapis.edit', compact('userapi'));\n }", "title": "" } ]
[ { "docid": "f810559c966a6f2c87d7e75698b80a8e", "score": "0.76585895", "text": "public function edit(Resource $resource)\n {\n //\n $this->authorize('update', $resource);\n $pages = Page::all();\n return view('resource.edit', compact('resources','pages'));\n }", "tit...
143723ca93d8cf303ffadabf9e49b12a
$db>addOrder('q','boekingen.date asc'); $db>addOrder('q',array('boekingen.date asc','posten.name desc');
[ { "docid": "bf6c3e984ac645877569b08493c06bfd", "score": "0.0", "text": "function addOrder($name, $order) {\n\t\t$this->addBlock('order', $name, $order);\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "61e95b541f7adca16b1f32f48b47cf32", "score": "0.7078169", "text": "public function order();", "title": "" }, { "docid": "d7a1dd579296cced147f680df92d5d38", "score": "0.6976286", "text": "public function order($field, $order = 'desc');", "title": "" }, { "docid"...
0cf17f79f353674199dccbc56a0fcda0
Function that handles the saving of the data
[ { "docid": "7e6e582ec368f05395a596da58365242", "score": "0.0", "text": "function kmb_meta_save( $post_id, $post ) {\n\n\tif ( ! isset( $_POST['kmb_nonce'] ) || ! wp_verify_nonce( $_POST['kmb_nonce'], basename( __FILE__ ) ) ) {\n\t\treturn $post_id;\n\t}\n\n\t$post_type = get_post_type_object( $post->pos...
[ { "docid": "bc2e87251003b75cff209e40edde3ad5", "score": "0.8413502", "text": "abstract protected function saveData();", "title": "" }, { "docid": "b7019141e768c4f796d9a58af2b6faae", "score": "0.83344835", "text": "private function SaveData()\n {\n }", "title": "" ...
db2ad3cbfe983c4f2a75df4d5dd3a5fa
Return a 201 response with the given created item.
[ { "docid": "ac7bb2a63c48c7ab39bb31ec24a9ac73", "score": "0.6883769", "text": "public function withCreated($item = null, string $resource = null)\n {\n $this->setStatusCode(JsonResponse::HTTP_CREATED);\n\n if (is_null($item)) {\n return $this->json();\n }\n\n ret...
[ { "docid": "afef4a96abe8871769445d92a2861937", "score": "0.7440476", "text": "public function createItem($item){\n $createItemJson = json_encode(array('items'=>array($item->newItemObject())));;\n //libZoteroDebug( $createItemJson );die;\n $aparams = array('target'=>'items');\n ...
84339f733b06ec954128432dda5cfd6e
Permet de modifier les informations utilisateur
[ { "docid": "cbccf07ede2e1afd8fbb621b192815cf", "score": "0.0", "text": "public function update()\n {\n $success = false;\n \n $sql = \"UPDATE \" . self::TABLE_NAME . \" SET username = :username, password = :password, role_id = :role_id, is_active = :is_active WHERE id = \" . $thi...
[ { "docid": "965c2613ff3521c5dbb70cbf469cd94d", "score": "0.84553236", "text": "public function modifierutilisateur(){\n\t\t\n\t}", "title": "" }, { "docid": "3a8b9ed7e5d43ddb10a70be4862bc7f9", "score": "0.75346625", "text": "function modifierUti() {\r\n \tmysql_query(\"UPDATE if_uti...
ba08a293e63cfee9de8d09170dca1435
logic being applied after the action is executed
[ { "docid": "78275ca8a177c75af857c971c6626b30", "score": "0.0", "text": "protected function postFilter($filterChain)\n {\n }", "title": "" } ]
[ { "docid": "afee980f0623f3d3ca1dc77a49a211e1", "score": "0.7432052", "text": "public function afterAction()\n {\n\n }", "title": "" }, { "docid": "9d72548b03dbff9bbd831f344a06ed9d", "score": "0.742551", "text": "public function afterAction()\n {\n }", "title": "" },...
9778c904166629fd4a6ba417094a125c
Add or replace the model's document representation in the index.
[ { "docid": "5ee594a74719e11a817001bf14938581", "score": "0.0", "text": "public function save($model);", "title": "" } ]
[ { "docid": "02e43a3f008705fe25d09aa966fed650", "score": "0.69685656", "text": "public function addDocToIndex()\n {\n if (isset($this->data)) {\n $this->filter();\n $this->normalize();\n $this->selectIndexService();\n $index = $this->control->getIndex...
15eeb14feb213536867a7c565e2c8e3d
Fields to be shown on lists
[ { "docid": "af789a539561e10eefbb51e519a62f05", "score": "0.0", "text": "protected function configureListFields(ListMapper $listMapper)\n {\n $listMapper\n ->addIdentifier('name')\n ->addIdentifier('url')\n ->add('website')\n ;\n }", "title": "" ...
[ { "docid": "704fd4d8ce831ccd84579cbdecbce146", "score": "0.7688752", "text": "abstract public function list_fields();", "title": "" }, { "docid": "3640ba20b7819f66038ce200205140a7", "score": "0.767854", "text": "protected function listFields() {\n\t\t/** @var ilToolbarGUI $ilToolbar ...
fa9b1514792b0fbfa29d76425fd7fe32
/ It retrieves all the store data from the database This function is called from the datatable ajax function The data is return based on the json format.
[ { "docid": "328ca86e52bb03ec3bf89d5ae9b61e2b", "score": "0.73893523", "text": "public function fetchStoresData()\n\t{\n\t\t$result = array('data' => array());\n\n\t\t$data = $this->model_stores->getStoresData();\n\n\t\tforeach ($data as $key => $value) {\n\n\t\t\t// button\n\t\t\t$buttons = '';\n\n\t\t\...
[ { "docid": "4fbe675fb207e7406ccdf9db43268e47", "score": "0.7651688", "text": "Public function get_data()\n\t{\n\t\t$data = array();\n\t\t$data = $this->store->get_data();\n\t\techo json_encode($data);\n\n\t}", "title": "" }, { "docid": "a5c46fcd325d56f5a15b72aecd98000d", "score": "0.6803...
892ace348ae0e86e2af0114d1326f58f
/========================================================== Creation of CRUD C:insert R:select U:update D:delete========================================================== Customer insertion function
[ { "docid": "bbffc6003b0ad3362de5afdec4c4309c", "score": "0.67955893", "text": "function addCustomer()\r {\r global $db;\r $requete = $db->prepare('INSERT INTO customers \r (customernumber,sexe,name,firstname,email,phone,society,address_id)\r values(?,?,?,?,?,?,?,?)')...
[ { "docid": "021a6942ecac19098ec6c88e12910c26", "score": "0.7099123", "text": "protected function insertCustomer()\n {\n parent::$db->lockTable(\"customer\");\n $max_id = parent::$db->getMaxId(\"customer\");\n $max_id++;\n\n $this->customer = array(\n \"id\" => ...
62e28cd5f558bca7ff67f8834334970f
Determines whether or not a piece should be added to the graph.
[ { "docid": "d6807ec3233ff16045fa0e87ab973e28", "score": "0.0", "text": "public function is_needed() {\n\t\t$post_types = apply_filters( 'be_product_review_schema_post_types', array( 'post' ) );\n\t\tif( is_singular( $post_types ) ) {\n\t\t\t$display = get_post_meta( $this->context->id, 'be_product_revie...
[ { "docid": "5bb3d4101307216f0fab9da64c6f2992", "score": "0.5364343", "text": "public function canAdd()\n\t{\n\t\treturn FALSE;\n\t}", "title": "" }, { "docid": "5bb3d4101307216f0fab9da64c6f2992", "score": "0.5364343", "text": "public function canAdd()\n\t{\n\t\treturn FALSE;\n\t}", ...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "456d95bf3a01f60e227cda982fe54cdd", "score": "0.0", "text": "public function destroy($id)\n {\n try {\n ProductMovementManager::delete($id);\n return response(200);\n } catch (\\Exception $err) {\n return response()->json(['error' => $err->get...
[ { "docid": "67120cc52c09f1239f92f34fd173437e", "score": "0.7333458", "text": "function remove($resource)\n {\n }", "title": "" }, { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resour...
4f38a5e5253afda338793e4e19ad962c
Get team by name
[ { "docid": "7f7713d6ff1fa28e05aae57d0c3171ae", "score": "0.8371699", "text": "public function byName($name)\n {\n return Team::where('name',$name)->first();\n }", "title": "" } ]
[ { "docid": "5393cbefe23f0bc0cff8e34230b8e756", "score": "0.8166638", "text": "function GetTeam($tname)\n{\n\tglobal $teams;\n\t\n\tif ($tname == \"\")\n\t\treturn;\n\t\t\n\tforeach ($teams as $team)\n\t{\n\t\tif ($team->name == $tname)\n\t\t{\n\t\t\treturn $team;\n\t\t}\n\t}\n\tMessageBox(\"Programming ...
d1309e7187fea0a840496757727c6cfe
Method interceptor that retrieves the corresponding endpoint and return a json decoded object or throw a Exception.
[ { "docid": "a2d74b79c38bf836a54378453d100c87", "score": "0.0", "text": "public function __call( $method, $params ) {\n\n // handle params array\n if (isset($params[0])) {\n $params = is_array($params[0])\n ? $params[0]\n : [];\n }\n\n return $this->geonames->$method( $para...
[ { "docid": "3b19d24e757dc29c30c59484c2a8c728", "score": "0.6240413", "text": "protected abstract function getEndpoint();", "title": "" }, { "docid": "669cba17feefdf7e5b9601b47929d00c", "score": "0.60696995", "text": "abstract public function getEndpoint();", "title": "" }, { ...
dd2dfe15c193a5ef782c62f6cb543e0c
inserts a new record or updates and existing record into the database
[ { "docid": "01007e48095d5b2f567a9454e8aeac9b", "score": "0.0", "text": "public function save_record() {\n \n }", "title": "" } ]
[ { "docid": "b21fe1726fe3a5aef159ddaa87e2eb49", "score": "0.734709", "text": "public function save()\n {\n $table = $this->table();\n if ($this->exists()) {\n $table->update($this->toRowArray(), $this->where());\n } else {\n $table->insert($this->toRowArray()...
bbce3c4d485f81ad58de016c8cde1e9b
Tracer dans des logs specifiques
[ { "docid": "d74acd3a5e7c1e41770f8634af020880", "score": "0.0", "text": "function citrace_post_edition($tableau){\n\t// contourner le cas d'un double appel du pipeline sur la meme table avec la meme action\n\tstatic $actions = array();\n\tif (isset($tableau['args']['table'])){\n\t\t$table = $tableau['arg...
[ { "docid": "b9dd9ceed70a78949cd73bb3623efe03", "score": "0.65726215", "text": "function trace_log()\n {\n $messages = func_get_args();\n\n foreach ($messages as $message) {\n $level = 'info';\n\n if ($message instanceof Exception) {\n $level = 'error...
584a61e843384621374e2d948f796d5d
The SassScript `/` operation.
[ { "docid": "38142ae2215619053bcd00217f71cd91", "score": "0.46969742", "text": "public function dividedBy(Value $other): Value\n {\n return new SassString(sprintf('%s/%s', $this->toCssString(), $other->toCssString()), false);\n }", "title": "" } ]
[ { "docid": "9fe39ee18e297cbe451f4cf3e700597b", "score": "0.670023", "text": "public function unaryDivide(): Value\n {\n return new SassString(sprintf('/%s', $this->toCssString()), false);\n }", "title": "" }, { "docid": "0ba4deda49d9a99091a956482033ae32", "score": "0.509171"...
ded8fdb83ae1d201318d18c65efb2871
whereIn for encrypted columns
[ { "docid": "10af618b7b571c7d824ae509b3cae626", "score": "0.6712021", "text": "public function scopeWhereInEncrypted($query, $column, $value)\n {\n /** @var Builder $query */\n if (is_array($value) || $value->count() > 1) {\n for ($i = 0; $i < count($value); $i++) {\n ...
[ { "docid": "80404390a50206103600d550691e1fac", "score": "0.64968836", "text": "function serendipity_db_in_sql($col, &$search_ids, $type = ' OR ') {\n return $col . \" IN (\" . implode(', ', $search_ids) . \")\";\n}", "title": "" }, { "docid": "74f04f41d0dcb3dc6acdb48fa6716e39", "score...
f14c9106ba4614e1108325bc7bf34cb8
Function that sets the module filter in session.
[ { "docid": "ed8e3a954bd80e921cdcbdc40495335d", "score": "0.0", "text": "public static function setCurrentView($moduleName, $viewId)\n\t{\n\t\t$_SESSION['lvs'][$moduleName]['viewname'] = $viewId;\n\t}", "title": "" } ]
[ { "docid": "7067936038c44e48a1ea3baaffe04235", "score": "0.65895057", "text": "public static function setFilterSession($filter) {\n $session = new Zend_Session_Namespace('calendar_filter');\n $session->unsetAll();\n $session->init = TRUE;\n $session->filter = [];\n if ...
694a2a01e2301cd7ae4f9d2f2c5e1ac7
Change the autorenew state of the given domain. When autorenew is enabled, the domain will be extended.
[ { "docid": "8cf4cd91fb9d0ebbe69c52f8b641d824", "score": "0.72353804", "text": "function setDomainAutoRenew($domain, $autorenew = true) {\r\n\r\n\t\t$settings = array();\r\n\t\t$settings['auto_renew'] = $autorenew;\r\n\r\n\t\t$response = $this->request('POST', '/domains/'.$domain.'/update', $settings);\r...
[ { "docid": "1771f31170c25e066e89fd8d344a3d75", "score": "0.62245965", "text": "public function changeDomain( $domain )\n\t{\n\t\t$this->__construct( $domain );\n\t}", "title": "" }, { "docid": "c91df2bdbb8ef36d43823ffea00d2f4f", "score": "0.5977194", "text": "abstract public function...
e16cfa9b8e422eefdf0c207ef8268a68
Returns true when the runtime used is PHP with the PHPDBG SAPI.
[ { "docid": "33456cf0c9ded9aad71bb5d4fa13559e", "score": "0.6941459", "text": "public static function isPHPDBG(): bool\n {\n return \\PHP_SAPI === 'phpdbg' && !self::isHHVM();\n }", "title": "" } ]
[ { "docid": "87162d28db4c8068a1bf2fdab07bd215", "score": "0.68200463", "text": "public static function isRealPHP(): bool\n {\n return !self::isHHVM() && !self::isPHPDBG();\n }", "title": "" }, { "docid": "6df8a5d68d4f1acd99504eaf7273a1d9", "score": "0.66213804", "text": "...
fb73d71e05a32ce41ec6ccb45aa80969
Implements hook_preprocess_field(). Places fontawesome icons in front of field collections on jura_subject nodes.
[ { "docid": "91cfbf8a58ac9cf80d545b66bf8774fd", "score": "0.7649992", "text": "function juraport_theme_preprocess_field(&$variables, $hook) {\n $field_name = $variables['element']['#field_name'];\n $field_type = $variables['element']['#field_type'];\n $bundle = $variables['element']['#bundle'];\n\n /...
[ { "docid": "db45ee3d842e2ce5579312dafe743edc", "score": "0.6435007", "text": "function pixelgarage_preprocess_field(&$vars) {\n //\n // add icons to category fields\n $element = $vars['element'];\n\n if ($element['#field_name'] === 'field_category' || $element['#field_name'] === 'field_category_mult...
13c560e0a8c0dabe00bcabee685b4184
Turns a filename into an fFile or fImage object
[ { "docid": "ea0e67f14eb446d133d391b82a44d85f", "score": "0.0", "text": "static public function objectify($class, $column, $value)\n\t{\n\t\tif ((!is_string($value) && !is_numeric($value) && !is_object($value)) || !strlen(trim($value))) {\n\t\t\treturn $value;\n\t\t}\n\t\t\n\t\t$path = self::$file_upload...
[ { "docid": "e19b9c2fb3947a4a3ba661aeca79a6d5", "score": "0.6474899", "text": "abstract public static function fromFile($filename);", "title": "" }, { "docid": "913466bbb33a1766fbe01e9377448606", "score": "0.63224834", "text": "public function fromFile($filename);", "title": "" ...
67ebaa4e06b2414943bcef5e9f3bdace
only call call_user_func_array if the decorated object method exists
[ { "docid": "37735d4540e6c52ab82ec38537f53661", "score": "0.62288094", "text": "public function __call( $method, $arguments) {\n // or if the decorated object is itself a decorator. If the object is NOT\n // a decorator, then $this->_decorated->$method will not exist (otherwise\n // the first pa...
[ { "docid": "b899821016c1b7ae93742e1cdc199ee3", "score": "0.7002208", "text": "function call_user_method_array ($method_name, &$obj, array $params) {}", "title": "" }, { "docid": "9ea25996e4ae9998095a8892a377de1d", "score": "0.64069754", "text": "protected function _ops()\n {\n if...
704e6c31956484e643434c8e0bcfe0d9
Implement template methods from PersistableFilter
[ { "docid": "34da7602b1c572042ecd69958dc283ca", "score": "0.0", "text": "function getClassName() {\n\t\treturn 'lib.pkp.plugins.metadata.nlm30.filter.PKPSubmissionNlm30XmlFilter';\n\t}", "title": "" } ]
[ { "docid": "dbd94760cd5397e98f99f144872bd17e", "score": "0.7002605", "text": "public function saveFilter();", "title": "" }, { "docid": "5f49f34df40cbfb129ef0183e802b697", "score": "0.64094454", "text": "abstract protected function applyFilter();", "title": "" }, { "docid...
f7b39d00cf84e915b2dbb847fa34a51e
//////////// Utility // ////////////
[ { "docid": "b2091b2c18654c6e9b4c6e3f9181b7d5", "score": "0.0", "text": "public static function get_credit_types( $credit_types = array() ) {\n\t\tif ( empty( $credit_types ) ) {\n\t\t\t$args = array(\n\t\t\t\t'post_type' => self::POST_TYPE,\n\t\t\t\t'post_status' => 'any',\n\t\t\t\t'posts_per_page' => -...
[ { "docid": "3095c329ad1a5a563597462861d3c4c2", "score": "0.5845574", "text": "public function Helper();", "title": "" }, { "docid": "7ebb07ae43738ae510303c0f7e350487", "score": "0.51918465", "text": "private function Tools() { }", "title": "" }, { "docid": "4671d0a14e64c4...
ac0ab2b038791aaa3b4df9cf79635afa
Send bitcoins to an user
[ { "docid": "ddbfac65f50c2fea07d1a9ebc2623d49", "score": "0.5677275", "text": "public function sendToUser(BitcoinUser $touser, $amount)\n {\n return BitcoinAccounts::sendToUser($this, $touser, $amount);\n }", "title": "" } ]
[ { "docid": "b6a65c7894b504814380e2e62c1d3c3c", "score": "0.59332937", "text": "function send($address,$amount) {\n\tglobal $connect, $error_log, $wallet_pool;\n\t$txid = cmd(\"hdac-cli hdac sendfrom \".$wallet_pool.\" \".$address.\" \".$amount);\n\t$sql = \"insert into payout (address, amount, txid)\tva...
c27185e3f9f9a22e28d5b7ec80b18bd6
The 404 action for the application.
[ { "docid": "ba1981715be2a0a3daa996eeda143200", "score": "0.7776473", "text": "public function action_404()\n\t{\n\t\t$messages = array('Aw, crap!', 'Bloody Hell!', 'Uh Oh!', 'Nope, not here.', 'Huh?');\n\t\t$data['title'] = $messages[array_rand($messages)];\n\n\t\t// Set a HTTP 404 output header\n\t\t$t...
[ { "docid": "db949f94813581f2dfc6a6ab7735724b", "score": "0.8331481", "text": "public function action_404()\n\t{\n\t\treturn Response::forge(Presenter::forge('welcome/404'), 404);\n\t}", "title": "" }, { "docid": "db949f94813581f2dfc6a6ab7735724b", "score": "0.8331481", "text": "publi...
8e921c285dd0e28d9575cf04c572912a
Todo: Make less hackish
[ { "docid": "dcdad81a70d2fc8526198ba260614667", "score": "0.0", "text": "function bp_docs_doc_permalink() {\n\tif ( bp_is_active( 'groups' ) && bp_is_group() ) {\n\t\tbp_docs_group_doc_permalink();\n\t} else {\n\t\tthe_permalink();\n\t}\n}", "title": "" } ]
[ { "docid": "4a10101ca61228fdc9c23ca577060189", "score": "0.5844208", "text": "public function abonadoenviajesplus();", "title": "" }, { "docid": "e07f7aa49477ec74cd9c6564ba87de61", "score": "0.576601", "text": "public function viajesplus();", "title": "" }, { "docid": "86...
faa132d82a959bbc9325f456b3a3723d
Tests redirection to a current step
[ { "docid": "3fde4b7867ec7e37d189f60fb5aadd69", "score": "0.7887918", "text": "public function testRedirectionToCurrentStep()\n {\n $this->dispatch('/install/index/database');\n $this->assertEquals('install', $this->getRouteMatch()->getParam('module'));\n $this->assertEquals('Inst...
[ { "docid": "7c96a0837f8c81c967d8478630b06125", "score": "0.6474845", "text": "public function testRedirectsToSetupIfNotReady()\n {\n $this->startSession();\n // Environment is not ready, but request homepage\n $crawler = $this->call('GET', '/');\n // Assert we're being red...
ca3edb77d7bd3cd8d03e5939da8e9019
Is a typo corrected search
[ { "docid": "094a5290eb2401b66e27f14e876e3d5b", "score": "0.0", "text": "public function buildSearchUrl($queryParam, $parentSearchId);", "title": "" } ]
[ { "docid": "00e54498b585c0dff9a37c29f05fe3c4", "score": "0.865675", "text": "public function isTypoCorrectedSearch();", "title": "" }, { "docid": "0da07363a8b9d30afa40deaccb078a44", "score": "0.71221405", "text": "function checkSpelling($query) {\n return $query;\n}", "title": "...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "5e054e04806058744c30ec37e4d8935d", "score": "0.0", "text": "public function index()\n {\n $archivos = null;\n $galerias = Galeria::with('archivos')->get();\n $jardines = Jardin::with('archivos')->get();\n $niveles = Nivel::with('archivos')->get();\n $par...
[ { "docid": "1d35b0b22ac44c3da96756e129561d1e", "score": "0.7596523", "text": "protected function listAction()\n {\n $fields = $this->entity['list']['fields'];\n $paginator = $this->findAll($this->entity['class'], $this->request->query->get('page', 1), $this->config['list']['max_results'...
681607df7f9748bd53aebb02681f68d2
Converts data into YAML string.
[ { "docid": "719dbdf619c5b1c63536c3ae89b00caa", "score": "0.6757762", "text": "protected static function cacheYaml($data)\r\n {\r\n if (is_string($data)) { $data = json_decode($data); }\r\n \r\n if (is_array($data)) { $data = Yaml::dump($data); }\r\n if (is_object($data)) {...
[ { "docid": "58042c210c3942554fbce0a143354e06", "score": "0.7677666", "text": "public static function encode($data): string\n {\n // fetch the current locale setting for numbers\n $locale = setlocale(LC_NUMERIC, 0);\n\n // change to english numerics to avoid issues with floats\n ...
dfc2e5d917a632b49dab1050309b9cfb
Wszystkie nazwy drugich kategorii
[ { "docid": "b89775f203482ed45c01ca665208f337", "score": "0.0", "text": "function category2_next_name() {\n \t$category=current($this->category2);\n \treturn $category['name'];\n }", "title": "" } ]
[ { "docid": "9b2582d956d6bc1eca9f2ed51fb3e1f4", "score": "0.7194309", "text": "public function categories();", "title": "" }, { "docid": "33a56e593ce369bed6218d09951a750d", "score": "0.70981413", "text": "public function category()\n {\n echo \"<h1>PAGE CATEGORIE DU CONTROLE...
e9a4523c8fc64e24b020072a82052158
End function get_settings() Get hook use Used to see what extensions are installed for each hook in our module
[ { "docid": "7f16d3bb02b94315c4e0487ffdf7950e", "score": "0.6060752", "text": "public function get_hook_use($hook = NULL)\n\t{\n\t\treturn $this->_EE->db->group_by('class')\n\t\t ->get_where('extensions',array('hook' => $hook));\n\t}", "title": "" } ]
[ { "docid": "f3975e5345470885b885a76ae3f1b02b", "score": "0.74569476", "text": "public function get_settings()\n\t{\n\t\treturn $this->_EE->db->select('settings')\n\t\t ->where('enabled', 'y')\n\t\t ->where('class', 'Deployment_hooks_ext')\n\t\t ...
b80a8bb8e98ab970fcf5879540ed3e57
Invokes the method $alias, with the provided arguments. Implementers must be sure that all exceptions that are propagated subclass from RuntimeException. Exceptions caused in the Dispatch implementation itself should subclass RuntimeException (and implement ResponseExceptionInterface if they need to be reported to clie...
[ { "docid": "aed056515f734d6ed5af161027147653", "score": "0.7589882", "text": "public function invoke($alias, $arguments);", "title": "" } ]
[ { "docid": "15b206d75bb1e015b74de8392800226c", "score": "0.6020662", "text": "public function __call($called, $args = array())\n {\n // Iterate through methods\n foreach (self::$__aliases as $method => $shortcuts) {\n\n // Check against known aliases\n if (in_array...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "739bddb63016809e46410ff9402a5f03", "score": "0.0", "text": "public function run()\n {\n DB::table( 'duration_dropdowns')->insert([\n // ['duration' => 900],\n [ 'duration' => 1800],\n // [ 'duration' => 2700],\n [ 'duration' => 3600],\n ...
[ { "docid": "74adb703f4d2ee8eeea828c6234b41f3", "score": "0.81044954", "text": "public function run()\n {\n Eloquent::unguard();\n\n $this->seed('Categories');\n\n // Illustration\n $this->seed('Supports');\n $this->seed('Illustrations');\n\n // Photography\n ...
4825e16f7f6b9d59d30bfb8a35c7eb30
Tells flight to render the page but with a prefix to save typing
[ { "docid": "c11473f7089b80faef43b1a809bd998e", "score": "0.50349724", "text": "private function renderPageFile($file)\n {\n\n Flight::render(\"developer/{$file}\");\n }", "title": "" } ]
[ { "docid": "d74cc7a864cf6529a4c8dc4961116f09", "score": "0.58020455", "text": "public function setTemplatePrefix( $prefix );", "title": "" }, { "docid": "465471ddc35f2a572fe903365bb56926", "score": "0.5701532", "text": "function setPrefix($prefix);", "title": "" }, { "doc...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "504f2133f2154439bff023c89c7e65d6", "score": "0.0", "text": "public function edit($id)\n {\n $rows= Classmember::find($id);\n if (is_null($rows))\n {\n Session::flash('message','Records could not be found!');\n Session::flash('alert-class','al...
[ { "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 ...
c3e4c7649cb9c03d9ff91b16a6df4dff
Constructs EventBuffer object Constructs EventBuffer object
[ { "docid": "3c2006ac7e580c347673986ba986d8fa", "score": "0.0", "text": "public function __construct() {}", "title": "" } ]
[ { "docid": "4c3e89b4cad8b2a14feaa6fbed53ac39", "score": "0.66086787", "text": "public function __construct(EventInfo $eventInfo) {\n parent::__construct($eventInfo);\n\n if(self::$eventBuffer === null) {\n self::$eventBuffer = new RingBuffer(10);\n }\n\n if($this->isMouseDownEvent()) {\...
9279abb57c40d80af77d17f48139fbcd
/ | | ADMIN PANNEL URL CONFIGURATION | | | function name is otherbase_url(); | call this function any where working with admin panel | //CUSTOMIZE RANDOM FUNCTION///////////////
[ { "docid": "37193c1ea662556a2486a079355f6ce6", "score": "0.0", "text": "function mt_rand_str($l, $c = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!@#$%^&*-') {\n for ($s = '', $cl = strlen($c)-1, $i = 0; $i < $l; $s .= $c[mt_rand(0, $cl)], ++$i);\n return $s;\n }", ...
[ { "docid": "3a7c29e29f0b0aaa0649dcac7fce337f", "score": "0.6582559", "text": "private function generateAndCheckURL( $base_url ){\n $generated_string = $this->generateRandomCode();\n $em = $this->getDoctrine()->getManager();\n $repository = $em->getRepository('MilaShortLinksBundle:Ur...
7a9c783e0642e8bc7c4853fd200ec988
Create or Update Podio Item data to DB
[ { "docid": "0d84a7c693246a9b92a070e8d29bad39", "score": "0.6194074", "text": "private function createOrUpdateAppItem($item, $appId)\n {\n try {\n $appItem = AppItem::updateOrCreate(\n [\n 'podio_item_id' => $item->item_id\n ],\n ...
[ { "docid": "a85da10e125c18ab7ca113f8311f4035", "score": "0.6427558", "text": "public function testUpdateItemMinData()\n {\n // Create a fake Item\n $item = $this->createItem();\n $data = ['name' => '1'];\n // Request\n $response = $this->put('/api/items/' . $item->i...
f94bc027889d7ec4af05fe8336438948
Show the form for creating a new user.
[ { "docid": "97a70691c920f9fc4cd96f94885f5590", "score": "0.78747225", "text": "public function create()\n\t{\n return View::make('userform');\n\t}", "title": "" } ]
[ { "docid": "05a788f6cee6a481e60579669c5fc2cd", "score": "0.83872414", "text": "public function create()\n\t{\n\t\t//\n\t\treturn View::make(\"newUserForm\");\n\t}", "title": "" }, { "docid": "7dbd46d199fe9c8de25f302865ab8386", "score": "0.8342869", "text": "public function createUser...
89c43b6ebe289ada45855700c7b75888
Sets an attribute value.
[ { "docid": "a45dbdec713a680664f71357469a7ab8", "score": "0.0", "text": "function set($key, $value) {\n if (isset($this->special[$key])) {\n $this->special[$key]->set($value);\n $this->attributes[$key] = TRUE;\n }\n elseif (!is_string($value)) {\n throw new \\Exception(\"Value mus...
[ { "docid": "a35fd816cb665c643e37e351956a4004", "score": "0.8677824", "text": "public function set($attribute, $value);", "title": "" }, { "docid": "550281388255cda4cd6f7a209212aa7c", "score": "0.83290374", "text": "public function setAttribute ($attribute, $value) {}", "title": "...
81a2de8e4888fe3508a781548040bcec
Get the filters available for the resource.
[ { "docid": "62402b065ae7a2d65089023fd1de98e7", "score": "0.0", "text": "public function filters(Request $request)\n {\n return [];\n }", "title": "" } ]
[ { "docid": "e46b3fa1b0920523e39bcbf3fb2aef13", "score": "0.82047534", "text": "function getAllFilters() {\n\t\t\n\t\treturn $this->httpGet($this->_baseUrl.'filters');\n\n\t}", "title": "" }, { "docid": "79d326ca36f9dd3f98de05a4b70f09af", "score": "0.8169404", "text": "public function...
b38df333a4320a2ff7fec9eea0f89fb8
This method is used to define needles to search for within class names and define their associated path.
[ { "docid": "e8eec21d7db1d921fdeeecda20c3bd59", "score": "0.0", "text": "public function lookFor($suffix, $path, $extension = '.class.php')\n {\n if(!array_key_exists($suffix, $this->classType)) {\n array_push($this->classType, $suffix);\n }\n \n $this->classPath...
[ { "docid": "0854c7b08754aa71553244152b7578e3", "score": "0.6119328", "text": "protected function getSearchPaths() {}", "title": "" }, { "docid": "d06fbd8af53999828c7329d286c2c737", "score": "0.60872996", "text": "protected function get_finder() {\n }", "title": "" }, {...
748b13f5bfcab12c5773c5799a4b1d60
Check if a string is alphanumeric (with exceptions)
[ { "docid": "9663c1842c41d492754242f76835d79c", "score": "0.75731796", "text": "public static function is_alphanumeric($str, $exceptions=array()) {\n\n\t\t$default_exceptions = array('-', '_');\n\n\t\t$final_exceptions = array_merge(\n\n\t\t\t$default_exceptions,\n\t\t\t$exceptions\n\n\t\t\t);\n\n\t\t// ...
[ { "docid": "e130a163c4d0be8fa93a650951c908ff", "score": "0.8501688", "text": "function fnValidateAlphanumeric($string)\n{\n return ctype_alnum ($string);\n}", "title": "" }, { "docid": "2be6e277baadf7d17d7c5045a1db800b", "score": "0.8237215", "text": "public static function is_alp...
1b537b0a961ab5db9974c307c9481112
function to connect and execute the query
[ { "docid": "5fe228376590213681a0209e53f4bd57", "score": "0.0", "text": "function filterTable($query)\n{\n $conn = mysqli_connect(\"localhost\", \"root\", \"\", \"stuff\");\n $filter_Result = mysqli_query($conn, $query);\n return $filter_Result;\n}", "title": "" } ]
[ { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.7307311", "text": "public function query();", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe2d87fc1e6558", "score": "0.7307311", "text": "public function query();", "title": "" }, { "docid": "2b2c2e0d677b4403c4fe...
e9f4a95ff9db5d3f51ad554cd9004dda
function to test get all hotels By Status Code
[ { "docid": "855d26363e6e82984c60574eef261264", "score": "0.58102083", "text": "public function testGetAllHotelsByCitySuccessfully()\n {\n $data = [\n \"city_name\" => \"cairo\"\n ];\n $this->json('POST', 'api/v1/hotel_city', $data, ['Accept' => 'application/json'])\n ...
[ { "docid": "cda05ccad38bde9746aa06697e735f0c", "score": "0.6394638", "text": "public function test_get_status_by_code()\n {\n $this->assertEquals(OrderStatus::getStatus(0),'PENDING');\n $this->assertEquals(OrderStatus::getStatus(1),'DELIVERING');\n $this->assertEquals(OrderStatus...
7ebcf758136bf911a05256aa97769ed7
Store a newly created DrugTest in storage.
[ { "docid": "0654e3a170d5d497d062975079f6c451", "score": "0.651575", "text": "public function store(StoreDrugTestsRequest $request)\n {\n if (! Gate::allows('drug_test_create')) {\n return abort(401);\n }\n $request = $this->saveFiles($request);\n $drug_test = Dr...
[ { "docid": "8628973bd2659bcb48a70d1ec0523bfa", "score": "0.59871554", "text": "public function saved(Test $Test)\n {\n //code...\n }", "title": "" }, { "docid": "53b23500f551bbef6ad4a65447665f8a", "score": "0.593133", "text": "public function store() {}", "title": ""...
22680f6f34ae91e1241a5336560bdbb1
LISTA TODOS LOS CLIENTES PARA HACER EL PEDIDO
[ { "docid": "5e53df5d9b1f59ababbb6bd259fd6ded", "score": "0.0", "text": "public function listar_all_clientes()\n\t{\n\t\t \n\t\t$curl = curl_init();\n\n\t\tcurl_setopt_array($curl, array(\n\t\t CURLOPT_URL => \"http://drymatch.informaticapp.com/index.php/clientes\",\n\t\t CURLOPT_RETURNTRANSFER => true...
[ { "docid": "d8d1445116b254a883f92f6754b371a5", "score": "0.66417855", "text": "public function listartodo()\n\t\t{\n\t\t\t$sql=\"SELECT * FROM estudiantes\";\n\t\t\t$resultado=$this->con->consultaretorno($Sql);\n\t\t}", "title": "" }, { "docid": "9a6bd4f26459a3b852227954250ad638", "score...
64eb5bb627a19e3584840604c2224b64
print $sql; Output the players role
[ { "docid": "cf3ef6744871cf58532bb856b30b6208", "score": "0.0", "text": "function printPlayer($player, $count, $hlSeason) {\n if ($player['season'] == $hlSeason) {\n $class = \"currentSeason\";\n } else {\n $class = \"oSeason\";\n }\n\n print \"<tr class=\\\"$class\\\"><td>$coun...
[ { "docid": "a1d7a8899e451343e96d91924bdfdf66", "score": "0.596734", "text": "private function role_list(){\n $results = $this->dt->role_list();\n echo $results;\n }", "title": "" }, { "docid": "780978400a089451d7b321cb4a4e2c84", "score": "0.5920951", "text": "functio...
5ba3a0ce3dbb40aa4ef272f86d459758
Delete Facebook Scheduled Posts
[ { "docid": "bd97a3c313bc7d61e0b4f5c8497c1096", "score": "0.83309585", "text": "public function facebook_delete_scheduled_post(){\n $ajax_nonce = $this->http->get('_ajax_nonce', false);\n\n //check security\n AjaxHelpers::check_ajax_referer( 'Aios-manage-fb-scheduled-posts', $ajax_no...
[ { "docid": "9bf6d7aa10801dbb47e31a9489dfa5fe", "score": "0.80006874", "text": "public function facebook_delete_posts(){\n $ajax_nonce = $this->http->get('_ajax_nonce', false);\n\n //check security\n AjaxHelpers::check_ajax_referer( 'Aios-manage-fb-scheduled-posts', $ajax_nonce, true...
7fe393239323ba135c49360462d17458
End of Update User
[ { "docid": "f06d461c092d3da6fb89bb2354885e5e", "score": "0.0", "text": "public function destroy(Request $request)\n {\n try {\n $exams = Exam::whereIn('id', (array)$request['id'])->get();\n if ($exams) {\n DB::beginTransaction();\n foreach ($...
[ { "docid": "899422962a430c72292b653971357e97", "score": "0.6853862", "text": "public function testUpdateUser()\n {\n }", "title": "" }, { "docid": "899422962a430c72292b653971357e97", "score": "0.6853862", "text": "public function testUpdateUser()\n {\n }", "title": ""...
6b1c00f9b7b2263fa3dc2534aa03fec3
funcao para atualizar campos
[ { "docid": "dd070a484ceacd6c01dd7b3af0297532", "score": "0.0", "text": "function atualizacampos($exclusao=false) {\n if($exclusao==false){\n $this->ed281_i_codigo = ($this->ed281_i_codigo == \"\"?@$GLOBALS[\"HTTP_POST_VARS\"][\"ed281_i_codigo\"]:$this->ed281_i_codigo);\n $this->ed281_i_p...
[ { "docid": "ca925ebbf22d5e7c96c8920895cc16ee", "score": "0.6797833", "text": "function Atualizar()\n\t\t{\n\t\t\t$sql = \"update carrinho_cupom set\n\t\t\t\t\tcupom_titulo = ?,cupom_desconto = ?\n\t\t\t\t\twhere cupom_id = ?\";\n\n\t\t\t//executando o comando sql e passando os valores\n\t\t\t$this->con-...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "3d9676e3f7dd8cefd5068aca5a1d5058", "score": "0.0", "text": "public function edit(Phones $phones)\n {\n //\n }", "title": "" } ]
[ { "docid": "ba00ae66e85d515739d2e3ad614735cb", "score": "0.7892186", "text": "public function edit(Resource $resource) {\n return view('admin.resources.update', [\n 'resource' => $resource,\n ]);\n }", "title": "" }, { "docid": "6f20a1779e33227cfc4451ace6ab29af", ...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "8e8e03727ca6544a2d009483f6d1aca9", "score": "0.0", "text": "public function destroy($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "4b8255c05a264d5d61f546d7bcd507ce", "score": "0.6672584", "text": "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "title": "" }, { "docid": "d9f10892d48fdfd7debb2a97681f0912", "score": "0.6659381", "text": "public functio...
a3a6c777795adc4f3e54b4c207a4d04d
Alterar para o ambiente de testes
[ { "docid": "ad6cb2c203ae32021e6890f005ee8674", "score": "0.7551502", "text": "function alterarParaAmbienteDeTestes() {\n\t\t$this->_ambiente = self::AMBIENTE_TESTE;\n\t}", "title": "" } ]
[ { "docid": "3dc60061b6862720a076cfb23a0ac512", "score": "0.65273964", "text": "public function testAdministrationRestExporterAdministrationUpdateSettings()\n {\n\n }", "title": "" }, { "docid": "ef3a78261dd235f6e2e85152abcad938", "score": "0.62845266", "text": "public function ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "f1fd458cee5eac054dac1f00aa9dec4e", "score": "0.0", "text": "public function show(Order $order)\n {\n //\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.8018102", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.74221796", "text": "abstract protected function makeDisplayFrom...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "15eab5416fa0be870111001048a814ec", "score": "0.0", "text": "public function show(User $user)\n {\n return view('account', compact('user'));\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...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "1dec9dac0f4e8d6c4bbcf8f1d6826a0b", "score": "0.0", "text": "public function update(Request $request, ReferralTender $referral)\n {\n $referral->update($request->all());\n\n return \\response()->json($referral, 200);\n }", "title": "" } ]
[ { "docid": "98a92f5f221512e805209e68c21a2f41", "score": "0.7230707", "text": "public function update($resource, $id, $data);", "title": "" }, { "docid": "259a6a29a43bf9b88ecc1eb3eee3041e", "score": "0.6979853", "text": "public function updateResource($resourceType, $resourceId, $reco...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "cd80a0cdaab1a042297d25de2876e93a", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n $request['updated_by'] = Auth::user()->name;\n FeeFinanceDetails::create($request->all());\n $student = Applicant::find($request->student_id);\n ...
[ { "docid": "643f51843534c99b002271c413f71061", "score": "0.7149016", "text": "public function store()\n {\n $this->storage->set($this);\n\n }", "title": "" }, { "docid": "aba977442c12d8193d7ce12cb2a46e96", "score": "0.669261", "text": "public function store ()\n {\n ...
98f19c40c5571fcac93c8b0f6ae3d4b7
add GROUP BY in query
[ { "docid": "bd5134d8a016240c35f76160cf9e3eab", "score": "0.5785052", "text": "public function group(string $column): self\n {\n $this->queryString .= \"GROUP BY {$column} \";\n return $this;\n }", "title": "" } ]
[ { "docid": "dc983efecaee1c1b26c70a3a5a43248d", "score": "0.7416997", "text": "public function group_by() {\n\n\t}", "title": "" }, { "docid": "e68ba3a6446dc7448fc7c021dafc4b95", "score": "0.6987653", "text": "public function addGroupBy() {\n $this->group_by_clause = new SqlGroupBy...
b90952c5a6e6ae84bfc02ea9ec065e83
/ Public Methods Returns metadata for all files and folders whose filename contains the given search string as a substring.
[ { "docid": "abc57c29b0072492adda35f45c2b62aa", "score": "0.48578075", "text": "public function search($query, $path, $root = 'dropbox') {\n\t\t//argument test\n\t\tEden_Dropbox_Error::i()\n\t\t\t->argument(1, 'string')\t\t//Argument 1 must be a string\n\t\t\t->argument(2, 'string')\t\t//Argument 2 must ...
[ { "docid": "73a0213665653141923e1510755d19f5", "score": "0.59104437", "text": "function search_for_file($filename, $galleryID = false)\n {\n $retval = array();\n $mapper = C_Image_Mapper::get_instance();\n $mapper->select();\n $mapper->where_and(array('filename = %s', $fil...