query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
used when filling up the update product form
function readTwo(){ // query to read single record $query = "SELECT * from companies where username='$this->username'"; // prepare query statement $stmt = $this->conn->prepare( $query ); // execute query $stmt->execute(); // get retrieved row $row = $stmt->fetch(PDO::FETCH_ASSOC); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function product_update_post()\n\t\t\t\t{\n\t\t\t\t}", "public function updateproduct(){\n //retreive and clean data from the register card form\n $pruductid = parent::CleanData($_GET['pruductid']);\n $matgroup = parent::CleanData($_GET['matgroup']); \n $glacc...
[ "0.7826243", "0.7625819", "0.7594294", "0.7397117", "0.7355545", "0.7338606", "0.7289273", "0.72772527", "0.7152448", "0.7144114", "0.70489174", "0.6969377", "0.69673026", "0.69349486", "0.69148356", "0.690606", "0.6904122", "0.6873214", "0.68418413", "0.6836852", "0.683679",...
0.0
-1
A constructor for the bundle.
public function __construct() { set_include_path(get_include_path() . PATH_SEPARATOR . dirname(__FILE__)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function __construct()\n {\n [$arrStyleArchives, $arrStyleGroups] = static::loadBundleConfiguration();\n\n self::$arrArchive = $arrStyleArchives;\n self::$arrGroups = $arrStyleGroups;\n }", "protected function _construct()\n {\n $this->_init('bundle/option');\n }...
[ "0.73895365", "0.726061", "0.7159506", "0.7081411", "0.70752233", "0.7024255", "0.7015669", "0.7012271", "0.7010502", "0.69509566", "0.69393545", "0.69333035", "0.69333035", "0.69254154", "0.6924351", "0.69114745", "0.69114745", "0.69114745", "0.68727255", "0.68727255", "0.68...
0.0
-1
Gets a type mapping from native types to Propel types
protected function getTypeMapping() { return self::$mysqlTypeMap; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTypeMapper();", "function db_type_map() {\n // Put :normal last so it gets preserved by array_flip. This makes\n // it much easier for modules (such as schema.module) to map\n // database types back into schema types.\n $map = array(\n 'varchar:normal' => 'VARCHAR',\n 'char:normal'...
[ "0.7133755", "0.6677361", "0.64745754", "0.6380785", "0.6304135", "0.6114649", "0.6107702", "0.5998361", "0.5919143", "0.5835542", "0.5824921", "0.5752554", "0.572003", "0.5692844", "0.56855685", "0.5673979", "0.56214356", "0.5601176", "0.55989885", "0.55362403", "0.55161154"...
0.66917896
1
Adds Columns to the specified table.
protected function addColumns(Table $table) { $stmt = $this->dbh->query("SHOW FULL COLUMNS FROM `" . $table->getName() . "`"); while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { $column = $this->getColumnFromRow($row, $table); $table->addColumn($column); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addColumns($table, $cols)\n {\n foreach ($cols as $arg1 => $arg2) {\n $this->addColumn($table, is_integer($arg1) ? $arg2 : $arg1, is_integer($arg1) ? null : $arg2);\n }\n }", "public function modifyTable()\n {\n // create columns if th...
[ "0.7467415", "0.70388407", "0.70241934", "0.70017916", "0.6883557", "0.6875775", "0.6822655", "0.68137884", "0.6812548", "0.679596", "0.6772826", "0.674675", "0.67367554", "0.6659544", "0.6541379", "0.6540402", "0.6483149", "0.6439386", "0.6376375", "0.63597906", "0.62862283"...
0.8248925
0
addColumn() Factory method creating a Column object based on a row from the 'show columns from ' MySQL query result.
public function getColumnFromRow($row, Table $table) { $name = $row['Field']; $is_nullable = ($row['Null'] == 'YES'); $autoincrement = (strpos($row['Extra'], 'auto_increment') !== false); $size = null; $precision = null; $scale = null; $sqlType = false; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function toColumn($row)\n {\n $columnName = $row['COLUMN_NAME'];\n $autoIncrement = strpos($row['EXTRA'], 'auto_increment') !== false;\n $isNullable = strtoupper($row['IS_NULLABLE']) === 'YES';\n $defaultValue = $this->unquote($row['COLUMN_DEFAULT']);\n if ((is_null(...
[ "0.6563636", "0.65066826", "0.62653697", "0.6230475", "0.6183304", "0.6182499", "0.614719", "0.61201715", "0.6119434", "0.6106207", "0.607369", "0.60033995", "0.5947455", "0.59340316", "0.59175456", "0.5911465", "0.5899334", "0.5875888", "0.5873721", "0.5863077", "0.58567905"...
0.0
-1
Return True if $string is utf8
protected function isUtf8( $string) { return preg_match('%^(?: [\x09\x0A\x0D\x20-\x7E] # ASCII | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function is_utf8($string) {\n\t// From http://w3.org/International/questions/qa-forms-utf-8.html\n\treturn preg_match('%^(?:\n\t\t[\\x09\\x0A\\x0D\\x20-\\x7E] # ASCII\n\t\t| [\\xC2-\\xDF][\\x80-\\xBF] # non-overlong 2-byte\n\t\t| \\xE0[\\xA0-\\xBF][\\x80-\\xBF] # excluding overlongs\...
[ "0.8246563", "0.82114255", "0.815192", "0.81254894", "0.8098558", "0.8076237", "0.80390424", "0.7905916", "0.7905916", "0.7880297", "0.7847589", "0.7797154", "0.7768131", "0.7750702", "0.7686666", "0.767923", "0.760964", "0.75800604", "0.7569473", "0.75653577", "0.75454026", ...
0.8026985
7
Load foreign keys for this table.
protected function addForeignKeys(Table $table) { $database = $table->getDatabase(); $stmt = $this->dbh->query("SHOW CREATE TABLE `" . $table->getName() . "`"); $row = $stmt->fetch(PDO::FETCH_NUM); $foreignKeys = array(); // local store to avoid duplicates // Get the infor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addForeignKeys()\n\t{\n\t\t$table = $this->getTableName();\n\n\t\tforeach ($this->getBelongsToRelations() as $name => $config)\n\t\t{\n\t\t\t$otherModel = new $config[1];\n\t\t\t$otherTable = $otherModel->getTableName();\n\t\t\t$fkName = \"{$table}_{$name}_fk\";\n\n\t\t\tif (isset($config['onDelete...
[ "0.7096613", "0.708457", "0.6915462", "0.6823926", "0.66371024", "0.6456478", "0.63342464", "0.6310916", "0.62942225", "0.59746057", "0.5945659", "0.59015155", "0.58410895", "0.58003855", "0.5790453", "0.57866085", "0.57639486", "0.5752092", "0.57282627", "0.5667816", "0.5655...
0.65552783
5
Load indexes for this table
protected function addIndexes(Table $table) { $stmt = $this->dbh->query("SHOW INDEX FROM `" . $table->getName() . "`"); // Loop through the returned results, grouping the same key_name together // adding each column for that key. $indexes = array(); while ($row = $stmt->fet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function _loadIndex () \n {\n $this->_enterSection('_loadIndex');\n \n $index = array();\n \n $a = strcspn ($this->_options['dsn'], ':');\n $proto = substr ($this->_options['dsn'], 0, $a);\n $path = substr ($this->_options['dsn'], $a + 3);\n\n switch ($pro...
[ "0.71990836", "0.7036284", "0.69462615", "0.63912946", "0.6386377", "0.63234544", "0.6232588", "0.6178712", "0.61711293", "0.6169851", "0.61435425", "0.6134349", "0.6096153", "0.60655224", "0.6041068", "0.6023945", "0.5987166", "0.598426", "0.59827846", "0.5958947", "0.595638...
0.5910412
21
Loads the primary key for this table.
protected function addPrimaryKey(Table $table) { $stmt = $this->dbh->query("SHOW KEYS FROM `" . $table->getName() . "`"); // Loop through the returned results, grouping the same key_name together // adding each column for that key. while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == null) {\n $this->primary_key = preg_replace('/(_m|_model)?$/', '', strtolower(get_class($this))) . '_id';\n }\n }", "private function _fetch_table_primary_key()\n {\n if ($this->primary_key == nul...
[ "0.7992905", "0.7992905", "0.7576453", "0.738196", "0.733795", "0.733795", "0.7222193", "0.7198702", "0.7198702", "0.7198702", "0.7132186", "0.70934826", "0.70882547", "0.7077313", "0.7077313", "0.7068622", "0.7052326", "0.7027347", "0.70218617", "0.69620526", "0.6932819", ...
0.0
-1
Adds vendorspecific info for table.
protected function addTableVendorInfo(Table $table) { $stmt = $this->dbh->query("SHOW TABLE STATUS LIKE '" . $table->getName() . "'"); $row = $stmt->fetch(PDO::FETCH_ASSOC); if (!$this->addVendorInfo) { //since we depend on `Engine` in the MysqlPlatform, we have always extract th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function add_vendor_info_in_product_summery() {\n include_once dirname( __FILE__ ) . '/templates/vendor-info.php';\n }", "function cmst_vendor_add() {\n\t\tglobal $conn;\n\n\t\t// Initialize table object\n\t\t$GLOBALS[\"mst_vendor\"] = new cmst_vendor();\n\n\t\t// Intialize page id (for b...
[ "0.652645", "0.62908626", "0.5979304", "0.59584194", "0.57366353", "0.5657745", "0.55477744", "0.55459416", "0.5539948", "0.5536103", "0.54925424", "0.5484223", "0.5474092", "0.5439966", "0.543706", "0.5421754", "0.54095984", "0.540617", "0.5401537", "0.53790504", "0.5307969"...
0.7402192
0
/LIST RATES TO TABLE
function list_rates($propertyCode) { $this->public_db->select('*'); $this->public_db->from('standardrates'); $this->public_db->where("propertyCode = $propertyCode"); $this->public_db->order_by('standardRateId','asc'); $query = $this->public_db->get(); if ($query->num_rows() > 0) { $output = ' <table ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getCleanableTableList() {}", "public function getAllSuppliersToDataTables();", "function getListOfRecords(){\n // the orders will be display and the receipts from there \n \n $element = new Order();\n \n $receipts_filter_orders = cisess(\"receipts_filter_...
[ "0.569231", "0.5620626", "0.54793113", "0.547211", "0.5438485", "0.5428176", "0.5397956", "0.5393835", "0.5369618", "0.5352866", "0.527787", "0.527031", "0.52674496", "0.5245191", "0.5193814", "0.51866084", "0.5182434", "0.5154388", "0.5151184", "0.5149681", "0.51431143", "...
0.47500545
91
/UPDATE A SINGLE RATE
function update_single_rate($rateId,$inputData) { $this->public_db->where('standardRateId', $rateId); $this->public_db->update('standardrates', $inputData); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rate($rate)\n {\n // Update API Rate Limiter\n $this->rate = $rate;\n }", "public function updateRecord($code, $ratio, $rate, $reverserate) {\n\t\t$this->_db->q(\"\n\t\tUPDATE `currency` \n\t\tSET `ratio` = \" . $ratio . \", `rate` = \" . $rate . \", `reverserate` = \" . $reve...
[ "0.7071247", "0.6644952", "0.66391456", "0.65970474", "0.65498686", "0.65411186", "0.6461672", "0.6461672", "0.6409952", "0.63773", "0.6348325", "0.6304736", "0.63017356", "0.62423545", "0.6236449", "0.61680573", "0.61432046", "0.61148095", "0.6090473", "0.6088791", "0.607667...
0.7281589
0
/ DELETE SINGLE RATE
function delete_single_rate($rateId) { $this->public_db->where('standardRateId', $rateId); $this->public_db->delete('standardrates'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete_service_method_unit_rate($method_unit_rate_id){\r\t\t\t$query=\"delete from `\".$this->table_name_smur.\"` where `id`=$method_unit_rate_id\";\r\t\t\tmysqli_query($this->conn,$query);\r\t\t}", "public function delete_addons_rate($addon_rate_id){\r\t\t\t$query=\"delete from `\".$this->table_...
[ "0.7165377", "0.6979208", "0.6703423", "0.6607189", "0.6549604", "0.65167797", "0.64643186", "0.64536846", "0.6198084", "0.6100794", "0.6061584", "0.60474366", "0.60307854", "0.6012346", "0.6007809", "0.60014874", "0.5958533", "0.59337026", "0.593333", "0.59227145", "0.591998...
0.7399539
0
A basic unit test example.
public function testaddMovie() { $mov_title="dhamal"; $mov_director="asbc"; $mov_cast="acn,qwe"; $mov_type="english"; $mov_realasedate="29 april 2019"; $mov_duration="120min"; $image="image"; $mov_url="gsdgsv"; $mov_description="cxdcsghcxdc"; $re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testExample()\n {\n }", "public function testBasicExample()\n {\n $this->assertTrue(true);\n }", "public function testBasicExample()\n {\n $this->assertEquals(1, 1);\n }", "function test_sample() {\n\n\t\t$this->assertTrue( true );\n\n\t}", "public function t...
[ "0.8075383", "0.7855031", "0.78070784", "0.77604944", "0.7665733", "0.7645663", "0.7625706", "0.7590362", "0.75463027", "0.75261366", "0.7511399", "0.74239534", "0.74239534", "0.74239534", "0.74239534", "0.74239534", "0.74239534", "0.74239534", "0.74239534", "0.74239534", "0....
0.0
-1
Get the validation rules that apply to the request.
public function rules() { return [ 'sender' => [ 'bail', 'required', 'numeric', 'exists:payment_cards,card_number', // $this->container->make(LuhnRule::class), ], 'cvv' => [ 'ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function rules()\n {\n $commons = [\n\n ];\n return get_request_rules($this, $commons);\n }", "public function getRules()\n {\n return $this->validator->getRules();\n }", "public function getValidationRules()\n {\n $rules = [];\n\n // Get the sche...
[ "0.8342703", "0.80143493", "0.7937251", "0.79264987", "0.79233825", "0.79048395", "0.78603816", "0.7790699", "0.77842164", "0.77628785", "0.7737272", "0.7733618", "0.7710535", "0.7691693", "0.76849866", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.7683038", "0.76830...
0.0
-1
Run the database seeds.
public function run() { $records = []; for ($i = 0; $i < 10; $i++) { $records[] = [ 'category_id' => rand(1, 10), 'title' => Str::random(10) . 'についての議題', 'handle_name_template' => Str::random(10) . '的名無しさん', 'created_at' => ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
This file is part of Moodle Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, ...
function filter_coursecompletion_pluginfile($course, $cm, $context, $filearea, $args, $forcedownload, array $options = array()) { global $CFG; \core\session\manager::write_close(); // Unlock session during file serving. $isicon = ($filearea === 'completeicon' || $filearea === 'incompleteicon' || $filearea...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function xmldb_cognitivefactory_upgrade($oldversion = 0) {\n/// older versions to match current functionality \n\n global $CFG;\n\n $result = true;\n\n // Moodle 2.0 line\n \n return true;\n}", "function xmldb_enrol_lmb_upgrade($oldversion=0) {\n\n global $CFG, $THEME, $DB;\n\n $dbman = $DB-...
[ "0.62575316", "0.60665816", "0.5854582", "0.55352545", "0.55186826", "0.54335827", "0.54284585", "0.53425765", "0.5312826", "0.5292921", "0.5291211", "0.5282481", "0.52755326", "0.5269015", "0.5191571", "0.51738214", "0.51556224", "0.51469964", "0.51293355", "0.5085235", "0.5...
0.0
-1
======================================================================= Group management pages ======================================================================= Index listing of groups
function index($page = 0) { $this->auth->restrict('groups.view'); $filter = $this->input->get(NULL, TRUE); $filter['pp'] = element('pp', $filter, 10); $this->load->library('pagination'); $config = array( 'base_url' => site_url('groups/index'), 'total_rows' => $this->groups_model->count_all(), ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n {\n $groups = Group::searchable()->paginate();\n\n return GroupResource::collection($groups);\n }", "public function group_list()\n\t{\n\t\t$data = [\n\t\t\t'group' => $this->todo->get_group_list((int) $this->session->userdata('uid'))\n\t\t];\n\t\t$this->page->set_ti...
[ "0.79750043", "0.795428", "0.7861284", "0.7784134", "0.769355", "0.76619333", "0.7659639", "0.76438755", "0.7638204", "0.7628353", "0.76227075", "0.7612808", "0.758189", "0.75797987", "0.7576925", "0.7563909", "0.75598276", "0.75546515", "0.7537449", "0.75330126", "0.7511521"...
0.749012
26
/ pdInitiate: Initiate API "connection"
function initiate( $Email, $Password, $partnerUserID ) { $this->request = new Polldaddy_Initiate( compact( 'Email', 'Password' ), array( 'partnerGUID' => $this->partnerGUID, 'partnerUserID' => $partnerUserID ) ); $this->send_request(); if ( isset( $this->response->userCode ) ) return $this->response->userCode;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function init_api() {\n\t\tinclude_once dirname( __FILE__ ) . '/includes/class-coinbase-api-handler.php';\n\n\t\tCoinbase_API_Handler::$log = get_class( $this ) . '::log';\n\t\tCoinbase_API_Handler::$api_key = $this->get_option( 'api_key' );\n\t}", "public function init()\n {\n $this->cli...
[ "0.6415489", "0.6408781", "0.6401347", "0.6328864", "0.6098539", "0.6091732", "0.6087282", "0.6079691", "0.60554177", "0.6032719", "0.6013034", "0.6009287", "0.6008723", "0.5989981", "0.5985584", "0.598024", "0.59743875", "0.594125", "0.5941073", "0.5941073", "0.5941073", "...
0.0
-1
/ pdAccess: API Access Control
function get_usercode( $partnerUserID ) { $this->request = new Polldaddy_Access( array( // 'demands' => new Polldaddy_Demands( array( 'demand' => new Polldaddy_Demand( null, array( 'id' => __FUNCTION__ ) ) ) ) 'demands' => new Polldaddy_Demands( array( 'demand' => new Polldaddy_Demand( null, array( 'id' => 'get...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function access();", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function checkAccess() {}", "public function ch...
[ "0.72119594", "0.697185", "0.697185", "0.69711167", "0.69711167", "0.69711167", "0.6970756", "0.6970756", "0.6970756", "0.682641", "0.6818453", "0.67971754", "0.67358977", "0.65923697", "0.65923697", "0.65734756", "0.64353657", "0.6432701", "0.6407741", "0.63887227", "0.62148...
0.0
-1
/ pdRequest: Request API Objects / Accounts
function get_account() { // $pos = $this->add_request( __FUNCTION__ ); $pos = $this->add_request( 'getaccount' ); $this->send_request(); $r = $this->response_part( $pos ); if ( isset( $r->account ) && !is_null( $r->account->email ) ) return $r->account; return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function ringbaAccountGetRequest()\n {\n\n $resourcePath = '/RingbaAccounts';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n\n if ($multi...
[ "0.6702632", "0.6668782", "0.6414164", "0.63559896", "0.63529974", "0.6284415", "0.6273072", "0.60243577", "0.60216594", "0.60212547", "0.5915012", "0.58916306", "0.58902234", "0.58090085", "0.57854044", "0.57817745", "0.57570183", "0.5751557", "0.57487667", "0.5734569", "0.5...
0.5137712
67
Get dashboard items from Crowdsignal platform.
public function get_items( $start = 0, $end = 0, $folder_id = 0, $source_link_match = '' ) { $start = (int) $start; $end = (int) $end; $folder_id = (int) $folder_id; $source_link_match = (string) $source_link_match; if ( ! $start && ! $end && ! $folder_id && ! $source_link_m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDashboardActions(): array;", "protected function dashboards()\n {\n return [];\n }", "protected function dashboards()\n {\n return [];\n }", "public function getData()\n\t{\n\t\t$dataReader = (new Query())->select(['vtiger_module_dashboard.*', 'vtiger_links.linkla...
[ "0.63773996", "0.6269016", "0.6269016", "0.585443", "0.57682276", "0.57606906", "0.57119507", "0.57035726", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", "0.56974274", ...
0.0
-1
Merge user defined arguments into defaults array. This function is used throughout WordPress to allow for both string or array to be merged into another array.
function wp_parse_args( $args, $defaults = '' ) { if ( is_object( $args ) ) $r = get_object_vars( $args ); elseif ( is_array( $args ) ) $r = $args; else wp_parse_str( $args, $r ); if ( is_array( $defaults ) ) return array_merge( $defaults, $r ); return $r; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function parseArgs($args, $defaults) {\n\tif (is_object($args)) {\n\t\t$r = get_object_vars( $args );\n\t} elseif (is_array($args)) {\n\t\t$r =& $args;\n\t}\n\n\tif (is_array($defaults)) {\n\t\treturn array_merge($defaults, $r);\n\t}\n\treturn $r;\n}", "static function merge() {\n\t\t$base = array();\n\t\t$args ...
[ "0.7040863", "0.6745437", "0.67285293", "0.6685397", "0.661991", "0.65552485", "0.6529801", "0.6468227", "0.63273174", "0.63267624", "0.63092214", "0.6218957", "0.621821", "0.61366427", "0.6066908", "0.6064905", "0.60529333", "0.60257405", "0.60228634", "0.6018155", "0.597483...
0.7403255
0
Parses a string into variables to be stored in an array.
function wp_parse_str( $string, &$array ) { parse_str( $string, $array ); $array = apply_filters( 'wp_parse_str', $array ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parse(string $string): array;", "public function get_variables_from_str($str) {\n\t\tforeach($this->offsets as $k => $v) {\n\t\t\t$bin = mb_substr($str, $v, 2);\n\t\t\t$vars[$k] = implode(unpack(\"n\",$bin));\n\t\t}\n\t\treturn $vars;\n\t}", "public function fromString(string $string): array;",...
[ "0.7176752", "0.700465", "0.68121237", "0.67182225", "0.6583742", "0.63982105", "0.63031846", "0.609481", "0.5979684", "0.5968513", "0.59452", "0.59375817", "0.58911055", "0.5856128", "0.5817651", "0.5747777", "0.5739411", "0.5739411", "0.5708598", "0.5706053", "0.5694177", ...
0.5667751
23
Navigates through an array and removes slashes from the values. If an array is passed, the array_map() function causes a callback to pass the value back to the function. The slashes from this value will removed.
function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function EliminateSlashes($value) {\r\n if (is_array($value)) {\r\n reset($value);\r\n while (list($key, $val) = each($value))\r\n $value[$key] = EliminateSlashes($val);\r\n return $value;\r\n }\r\n return stripslashes($value);\r\n}", "private function stripSlashes(&$arra...
[ "0.7270096", "0.6963123", "0.6783153", "0.6783153", "0.6764093", "0.67389023", "0.67257607", "0.67183363", "0.6705006", "0.66512424", "0.65324175", "0.64670616", "0.642976", "0.6416264", "0.63952607", "0.63908106", "0.63461155", "0.63395864", "0.63357943", "0.6297767", "0.629...
0.6040077
35
execute. 1. init container. 2. load config 3. routing 4. action chain 5. filter chain
public function execute() { // init container. $this->initContainer(); // routing $this->routing(); // action chain. while ($action = $this->actionChain->getCurrentAction()) { // clear. $this->filterChain->clear(); $this->contain...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n $this->run_configuration();\n\n $this->request->plugins = $this->pluggins;\n\n $app = $this;\n\n $this->router->start($app);\n }", "public function run() {\n //fire off any events that are a associated with this event\n $event = new Even...
[ "0.61726075", "0.61593646", "0.6149375", "0.6096763", "0.5918048", "0.5865856", "0.5852307", "0.5843395", "0.58000326", "0.573982", "0.57176256", "0.56821084", "0.5680621", "0.5648291", "0.5616235", "0.5594341", "0.55915487", "0.55893785", "0.55826694", "0.5574651", "0.557067...
0.6424706
0
Run the database seeds.
public function run() { $permiso = new Permission(); $permiso->name='Administer roles & permissions'; $permiso->save(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Load the member list view
function index(){ $data['kategori'] = $this->m_berita->ambilDataKategori()->result(); $data['judul'] = "Kelola Berita"; $data['surname'] = "Berita"; $this->load->view('berita/index',$data); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function members_list() {\n\t\tif (!in_array($this->type, $this->membership_types)) {\n\t\t\tredirect(base_url('members/list/active'));\n\t\t}\n\n\t\t$data['type'] = ($this->type === NULL)? 'active': $this->type;\n\t\t$data['user_mode'] = $this->session->userdata('mode');\n\t\t$data['members'] = $this->get_...
[ "0.7219277", "0.7090991", "0.70758486", "0.7007153", "0.6925137", "0.6725471", "0.66804975", "0.662962", "0.6599075", "0.6508978", "0.65042484", "0.64932024", "0.6478977", "0.64785105", "0.646767", "0.6417706", "0.6409822", "0.6378312", "0.6366184", "0.63473356", "0.63311887"...
0.0
-1
sends to site owner
public function sendFromContact(SendContactEmailRequest $request){ \Mail::send('emails.resume', array( 'name' => $request->get('name'), 'email' => $request->get('email'), 'user_message' => $request->get('message'), ), function($message) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function notifyOwner()\n {\n global $config, $reefless, $account_info;\n\n $reefless->loadClass('Mail');\n\n $mail_tpl = $GLOBALS['rlMail']->getEmailTemplate(\n $config['listing_auto_approval']\n ? 'free_active_listing_created'\n : 'free_approval_list...
[ "0.64414734", "0.6003556", "0.5921669", "0.5799669", "0.5791133", "0.5736323", "0.57148266", "0.571459", "0.57016355", "0.5699438", "0.56605375", "0.56580615", "0.5601739", "0.5595804", "0.5571576", "0.554252", "0.5533514", "0.5460197", "0.54461044", "0.54390305", "0.5438712"...
0.0
-1
Render a view template.
public static function renderTemplate($file, $args = []) { if (!empty($file)) { self::setFile($file); extract($args, EXTR_SKIP); if (file_exists(self::$file)) { ob_start(); require_once self::$file; } else { thro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderTemplate();", "public function render()\n\t{\n\t $templateFile = $this->template;\n\t $templateContents = $this->getTemplateContents($templateFile);\n\n\t $layout = $this->getTemplateLayout($templateContents);\n $arguments = $this->getTemplateArguments($templateContents);\n\...
[ "0.7697917", "0.75261205", "0.74491084", "0.736228", "0.7358392", "0.7358392", "0.7358392", "0.7207627", "0.7187606", "0.7157685", "0.70781314", "0.6991685", "0.69745624", "0.6946579", "0.68931115", "0.6877129", "0.6835607", "0.68138415", "0.68066424", "0.680365", "0.67896646...
0.0
-1
Command execute Generate the ISO19139 metadata XML and return it.
public function execute() { $data = $this->getParameters(); if(! isset($data['MDMetadata'])){ throw new GenerateISO19139XMLCommand_Exception("No data-object given"); } $MDMetadata = $data['MDMetadata']; if(! is_a($MDMetadata,'MDMetadata')){ throw new GenerateISO19139XMLCommand_Exception("...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function generate_head()\n {\n $this->xml->openMemory();\n $this->xml->setIndent(true);\n $this->xml->startDocument(\"1.0\",\"UTF-8\");\n $this->xml->startElement(\"program\");\n $this->xml->writeAttribute(\"language\",\"IPPcode19\");\n }"...
[ "0.51424557", "0.50474995", "0.49079108", "0.48542053", "0.48455122", "0.4840253", "0.48006558", "0.47983032", "0.47948125", "0.47890016", "0.47443396", "0.4742791", "0.4722852", "0.46845752", "0.4643586", "0.46386895", "0.45956045", "0.45919335", "0.45914263", "0.45735836", ...
0.6808798
0
Print list of tool parameters
function printGetParameters() { $this->printDebugMessage('printGetParameters', 'Begin', 1); $paramList = $this->getParameters(); print "<ul>\n"; foreach($paramList as $paramName) { print '<li>' . $paramName . "</li>\n"; } print "</ul>\n"; $this->printDebugMessage('printGetParameters', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function paramDump() {\n $spec = Terminus::getRunner()->getConfigurator()->getSpec();\n $this->output()->outputDump($spec);\n }", "private function print() {\n\t\tvar_dump($this->getParams());\n\t}", "public function help_parameters(&$details) {\n\t\t// @todo Add in which environment to use.\n\t}", "f...
[ "0.72988623", "0.66153634", "0.65034276", "0.64514416", "0.6319169", "0.60153574", "0.59266806", "0.5855921", "0.5850814", "0.58468", "0.5817109", "0.5810008", "0.58091986", "0.5789715", "0.57840925", "0.57542574", "0.57394177", "0.5704294", "0.5630645", "0.560848", "0.560848...
0.6712034
1
Print details of a parameter
function printGetParameterDetails($parameterId) { $this->printDebugMessage('printGetParameterDetails', 'Begin', 1); $paramDetail = $this->getParameterDetails($parameterId); print <<<EOF <h3>$paramDetail->name</h3> <p>$paramDetail->description</p> EOF ; if(isset($paramDetail->values)) { print ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function paramDump() {\n $spec = Terminus::getRunner()->getConfigurator()->getSpec();\n $this->output()->outputDump($spec);\n }", "private function print() {\n\t\tvar_dump($this->getParams());\n\t}", "function printGetParameters() {\n $this->printDebugMessage('printGetParameters', 'Begin', 1);\n $...
[ "0.74285173", "0.7018132", "0.70011", "0.66356", "0.65831774", "0.6540464", "0.65067065", "0.64498675", "0.6415727", "0.63735104", "0.6319392", "0.62674975", "0.6203969", "0.6203969", "0.6152487", "0.6121072", "0.6115414", "0.61054", "0.60192686", "0.6011297", "0.5966349", ...
0.7184769
1
Label for an option, generated from the parameter details.
function paramDetailToLabelStr($parameterId, $paramDetail) { $this->printDebugMessage('paramDetailToLabelStr', 'Begin', 1); $helpUrl = '?paramDetail=' . $parameterId; $retStr = '<a href="' . $helpUrl . '">' . $paramDetail->name .'</a>: '; $this->printDebugMessage('paramDetailToLabelStr', 'End', 1); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function get_option_name()\n {\n }", "public function getOptionName()\n {\n return $this->optionName;\n }", "public function get_option_label_html(){\n\t\t$html = \"\";\n\t\t$classes = $this->get_label_html_classes();\n\t\t$required = $this->required ? \"*\" : \"\";\n\t\t$h...
[ "0.703395", "0.67761666", "0.67441285", "0.6512557", "0.64861625", "0.646095", "0.6460804", "0.6427965", "0.6400693", "0.63969684", "0.6389162", "0.6360357", "0.63524157", "0.635024", "0.63331175", "0.6328731", "0.6328136", "0.63186675", "0.63053167", "0.62846076", "0.6282387...
0.0
-1
Generate HTML option tags for a parameter detail.
function paramDetailToOptionStr($paramDetail) { $this->printDebugMessage('paramDetailToOptionStr', 'Begin', 1); $retStr = ''; if(isset($paramDetail->values)) { foreach($paramDetail->values->value as $val) { if($val->defaultValue && $val->defaultValue == 'true') { $retStr .= "<option selected=\"1\"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function _toHtml()\n {\n $productId = $this->getRequest()->getParam('id', null);\n $product = Mage::getModel('catalog/product')->setStoreId(Mage::app()->getStore()->getId());\n\n if ($productId) {\n $product->load($productId);\n }\n\n if ($product->getId()...
[ "0.6297293", "0.58801293", "0.587356", "0.57426906", "0.5708701", "0.56722516", "0.56327105", "0.56052715", "0.5542332", "0.5520321", "0.54288703", "0.53827727", "0.5377769", "0.5377766", "0.5375306", "0.5369502", "0.53631186", "0.5341538", "0.5331674", "0.5331674", "0.532903...
0.7178049
0
Generate HTML tags for a parameter detail. menu or text input.
function paramDetailToStr($parameterId, $multi=FALSE) { $this->printDebugMessage('paramDetailToStr', 'Begin', 1); $paramDetail = $this->getParameterDetails($parameterId); $retStr = $this->paramDetailToLabelStr($parameterId, $paramDetail); if(isset($paramDetail->values)) { if($multi) { // Multi-se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function renderParameterDetail($parameter) {\n\n if (!isset($parameter[0]))\n $parameter = array($parameter);\n\n $this->tpl->setCurrentBlock(\"functiondetails_parameter_loop\");\n \n reset($parameter);\n while (list($k, $param) = each($parameter)) {\n\n $th...
[ "0.662042", "0.60239315", "0.59981346", "0.58638406", "0.58331907", "0.579795", "0.5721968", "0.56367147", "0.56109595", "0.56058973", "0.55893224", "0.5545003", "0.55305463", "0.5518914", "0.5516466", "0.5512661", "0.5501899", "0.5493844", "0.5478075", "0.547442", "0.5471563...
0.6084122
1
Output a submission form
function printForm() { $this->printDebugMessage('printForm', 'Begin', 1); $stypeStr = $this->paramDetailToStr('stype'); $programStr = $this->paramDetailToStr('program'); $databaseStr = $this->paramDetailToStr('database', TRUE); $scoresStr = $this->paramDetailToStr('scores'); $alignmentsStr = $t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function outputForm()\n {\n $out = <<<EOD\n <form method=\"post\" action=\"../webroot/rm-movies.php\" onsubmit=\"\">\n <input type=hidden name=search value='simple-search'/>\n <input type='text' name='title-simple' placeholder='Sök Filmtitel' />\n </form>...
[ "0.74276227", "0.7110519", "0.7077868", "0.70413005", "0.68974894", "0.6851609", "0.67297137", "0.67210627", "0.66656846", "0.6647954", "0.6602743", "0.6595912", "0.65378773", "0.65333515", "0.6524798", "0.6523023", "0.6510401", "0.64726377", "0.64703196", "0.6455231", "0.644...
0.6971556
4
Submit a job to the service.
function submitJob($options) { $this->printDebugMessage('submitJob', 'Begin', 1); $params = array(); foreach($options as $key => $val) { switch($key) { case 'stype': $params[$key] = $val; break; case 'sequence': $params[$key] = $val; break; case 'program': $params[$key] = $val;...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function execute() {\n $this->getQueue()->push($this->getJob(), $this->getJobOptions());\n }", "public function executeJob()\n {\n // Fetch a job\n echo \"_\";\n $job = $this->queue\n ->watch('testtube')\n ->ignore('default')\n ->reserve()...
[ "0.65849286", "0.62562317", "0.61752015", "0.5990964", "0.5990964", "0.59484506", "0.58963776", "0.5862521", "0.5862521", "0.58070415", "0.57911265", "0.57883614", "0.5757296", "0.5731822", "0.55884624", "0.5587641", "0.5566198", "0.5560653", "0.55572766", "0.5459537", "0.545...
0.67827356
0
Get the status of a job.
function printStatus($jobId) { $this->printDebugMessage('printStatus', 'Begin', 1); $retVal = ''; $status = $this->getStatus($jobId); echo "<p>Status for job <a href=\"?jobId=$jobId\">$jobId</a>: $status</p>\n"; if($status == 'FINISHED') { $this->printResultsSummary($jobId); } else { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getJobStatus()\n {\n return $this->jobStatus;\n }", "static function getStatusOfJob( $jobId ) {\n return self::getJobDetails( $jobId )->status;\n }", "public function getJobStatus()\n {\n }", "public function getJobStatus($jobId)\n {\n $data[\"Envelope\"] = ar...
[ "0.8235965", "0.77991986", "0.7383032", "0.7224963", "0.7199093", "0.71062624", "0.6998778", "0.6985483", "0.69854116", "0.69244903", "0.6920633", "0.6870623", "0.68196374", "0.6810396", "0.6810396", "0.67212075", "0.67009777", "0.6686452", "0.66558796", "0.66387594", "0.6623...
0.0
-1
Print details of available results for a job
function printResultsSummary($jobId) { $this->printDebugMessage('printResultsSummary', 'Begin', 1); echo "<p>Results:</p>\n"; echo "<ul>\n"; $resultTypes = $this->getResultTypes($jobId); foreach($resultTypes as $resultType) { $resultUrl = "?jobId=$jobId&resultType=" . $resultType->identifier; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function print_results() {\r\n if ($list = $this->print_list()) {\r\n echo '<p>' . $this->print_count() . '</p>';\r\n echo $list;\r\n echo '<p class=\"more\">' . $this->print_more() . '</p>';\r\n }\r\n else {\r\n echo $this->zero_results;\r\n }\r\n }", "public function getJobsInf...
[ "0.6637524", "0.65918285", "0.65476745", "0.6449444", "0.6433737", "0.63260406", "0.62924707", "0.6238771", "0.61837476", "0.61687607", "0.61496544", "0.609884", "0.6080599", "0.60290045", "0.5960076", "0.5960076", "0.591891", "0.5898498", "0.58954674", "0.58908653", "0.58808...
0.7256187
0
Get a job result.
function printResult($jobId, $resultType) { $this->printDebugMessage('printResult', 'Begin', 1); echo "<p>Result for job <a href=\"?jobId=$jobId\">$jobId</a>:</p>\n"; $resultTypeObjs = $this->getResultTypes($jobId); foreach($resultTypeObjs as $resultTypeObj) { if($resultTypeObj->identifier == $res...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_result() {\r\n\t\treturn $this->result;\r\n\t}", "public function get_result() {\n\t\treturn $this->_result;\n\t}", "public function getResult($queueJobId);", "private function getResult() {\n return $this->result;\n }", "public function getJob()\n {\n return $this->...
[ "0.69990563", "0.68941873", "0.68019384", "0.67127824", "0.66680425", "0.6667634", "0.66664636", "0.66490686", "0.6605309", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.6589555", "0.658955...
0.0
-1
Generate metarefresh tag for a job.
function genMetaRefresh($jobId) { $this->printDebugMessage('genMetaRefresh', 'Begin', 2); $statusUrl = "?jobId=$jobId"; $retVal = "<meta http-equiv=\"refresh\" content=\"10;url=$statusUrl\">"; $this->printDebugMessage('genMetaRefresh', 'Begin', 2); return $retVal; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function add_metarefresh() {\n\t$post_url;\n\n // Redirects to a custom URL\n\tif(METAREFRESH_CUSTOM_URL){\n\t\t$post_url = METAREFRESH_URL ? METAREFRESH_URL : get_bloginfo('url');\n\n \n // Redirects to a random address within an array or URL\n\t} else if(METAREFRESH_CUSTOM_URL_ARRAY){\n\t\t$url_arra...
[ "0.5553795", "0.5495498", "0.5284777", "0.5073107", "0.5024384", "0.4948716", "0.484749", "0.47670558", "0.4755446", "0.4730493", "0.47303286", "0.4727941", "0.4685859", "0.46691576", "0.45979935", "0.45710647", "0.4550897", "0.4529667", "0.45258212", "0.45251584", "0.4507767...
0.73170316
0
Ensure password validation is irrelevant
public function testIsVerificationCodeValidForUser() { $this->ensurePasswordValidationReturns(true); Craft::$app->getConfig()->getGeneral()->verificationCodeDuration = 172800; $this->updateUser([ // The past. 'verificationCodeIssuedDate' => '2018-06-06 20:00:00', ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function testInvalidLengthPassword()\n {\n $password = \"23d3\";\n $response = $this->user->isValidPassword($password);\n\n $this->assertFalse($response);\n }", "public function authenticationWithValidAlphaCharClassPassword() {}", "public function authenticationWithValidAlphaC...
[ "0.761173", "0.7591865", "0.7591865", "0.7591865", "0.7560198", "0.7541089", "0.7529831", "0.75256544", "0.738494", "0.7331837", "0.73286754", "0.73284465", "0.73233366", "0.73036295", "0.7293361", "0.7251106", "0.7245807", "0.7228457", "0.7228457", "0.7228457", "0.7226696", ...
0.0
-1
Ensure we know what the unhashed code is so we can compare against it later.
public function testSendActivationEmail() { $this->tester->mockCraftMethods('security', [ 'generateRandomString' => $string = StringHelper::randomString(32) ]); // Test send activation email with password null $this->pendingUser->password = null; $this->users->se...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function checkContentHash() {}", "final public function getHash() {}", "public function getCodeHash() {\n $date = new \\DateTime();\n return hexdec($date->format('d-m-y his'));\n }", "abstract protected static function getHashAlgorithm() : string;", "function testHash()\n {\n ...
[ "0.60744375", "0.5901468", "0.5884651", "0.5847475", "0.5798677", "0.57696295", "0.5756638", "0.574813", "0.5746531", "0.57457346", "0.57141596", "0.568945", "0.566791", "0.56570923", "0.5657087", "0.56416196", "0.5636341", "0.56098944", "0.55934083", "0.5577099", "0.55754626...
0.0
-1
Index Page for this controller. Maps to the following URL or or Since this controller is set as the default controller in config/routes.php, it's displayed at So any other public methods not prefixed with an underscore will map to /index.php/welcome/
public function get_order() { $sql = "select * from `order` where status_pembayaran = 0 or status_pembayaran = 1 or status_pembayaran = 2 or status_pembayaran = 4 or status_pembayaran = 5 or status_pembayaran = 7"; $queryRec = $this->db->query($sql)->result_array(); return $queryRec; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index () {\n $view = new WelcomeIndex();\n $view->display();\n }", "public function index()\n\t{\n\t\treturn view(\"welcome\");\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome');\n\t}", "public function action_index()\r\n\t{\r\n\t\t$this->title = 'Welcome...
[ "0.7655508", "0.74145436", "0.7396173", "0.7317418", "0.72283363", "0.72283363", "0.71903646", "0.7166857", "0.7151917", "0.7145717", "0.7108151", "0.70780236", "0.70754886", "0.70406276", "0.70306057", "0.70306057", "0.70306057", "0.70306057", "0.70306057", "0.69742966", "0....
0.0
-1
Instantiates the brush by identifier or alias.
public static function fromIdentifierOrAlias($identifierOrAlias);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function factory($adapter, $options = array())\n {\n // convert Zend_Config argument to plain string and separate options\n if ($adapter instanceof Zend_Config) {\n if (isset($adapter->options)) {\n $options = $adapter->options->toArray();\n } els...
[ "0.50301826", "0.48500448", "0.479004", "0.44207785", "0.43961877", "0.43947396", "0.43927217", "0.43827385", "0.4336708", "0.43153545", "0.43076667", "0.42994577", "0.41919926", "0.4191618", "0.41521806", "0.41336113", "0.41273084", "0.4120942", "0.4102165", "0.4095266", "0....
0.49770072
1
Get a createaccount token
public function getCreateAccountToken() { $queryData = array(); $queryData['action'] = 'query'; $queryData['meta'] = 'tokens'; $queryData['type'] = 'createaccount'; $queryData['format'] = 'json'; $url = $this->apiUrl . "?" . http_build_query($queryData); try { $this->fetch($url, null...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createToken();", "public function createNewToken()\n {\n return $this->getBandrek()->generateToken();\n }", "function create_client_token(){\n \t$clientToken = Braintree_ClientToken::generate();\n \treturn $clientToken;\n }", "public function generateToken();", "public...
[ "0.7896145", "0.73755854", "0.72108203", "0.7087007", "0.7015328", "0.6858211", "0.6800441", "0.67598885", "0.67515516", "0.67281187", "0.66865164", "0.66535723", "0.6619007", "0.6607303", "0.64602524", "0.6437371", "0.6437371", "0.6437371", "0.6437371", "0.641774", "0.640784...
0.82768536
0
Creates a new class instance.
public function __construct( TenderRepository $tenderRepo, UploadedFileRepository $uploadedFileRepo ) { $this->tenderRepository = $tenderRepo; $this->uploadedFileRepository = $uploadedFileRepo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create() {\n $class_name = $this->getOption('className');\n return new $class_name();\n }", "function createInstance(ClassDefinition $classDefinition);", "function new_instance($class)\n {\n }", "public function create(string $class);", "public function newInstance();...
[ "0.8045186", "0.7730439", "0.7575917", "0.7553807", "0.7517733", "0.7517733", "0.74608153", "0.74295586", "0.74137187", "0.73178077", "0.71588844", "0.71373075", "0.71373075", "0.7119144", "0.7119144", "0.7119144", "0.7109181", "0.70463014", "0.6973363", "0.69717866", "0.6945...
0.0
-1
Add the page title and hide the toolbar.
protected function addToolbar() { require_once JPATH_COMPONENT.'/helpers/wbty_payments.php'; $state = $this->get('State'); $canDo = Wbty_paymentsHelper::getActions($state->get('filter.category_id')); JToolBarHelper::title(JText::_('COM_WBTY_PAYMENTS_TITLE_CONTROLPANEL'), 'controlpanel.png'); if ($canDo-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function addToolbar()\n\t{\n\t\tJRequest::setVar('hidemainmenu', true);\n\t}", "public function loadPageTitle()\n \t\t{\n echo \"<title>Add Item</title>\";\n }", "protected function addToolBar()\n {\n $title = JText::_('COM_HELLOWORLD_MANAGER_HELLOWORLDS');\n\n ...
[ "0.68788826", "0.68296635", "0.664205", "0.66152674", "0.65442365", "0.6407383", "0.6387641", "0.63746333", "0.62909794", "0.6206377", "0.61938035", "0.6193256", "0.61750025", "0.6168997", "0.6158617", "0.613339", "0.61219007", "0.6096361", "0.6090319", "0.6084817", "0.608481...
0.0
-1
get pages by id
function get_pages($id_pages) { $query = $this->db->query("SELECT * FROM tbl_pages WHERE id_page = '$id_pages'"); return $query; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPage($id);", "function fetchPageDetails($id) {\n\t$db = DB::getInstance();\n\t$query = $db->query(\"SELECT id, page, private FROM pages WHERE id = ?\",array($id));\n\t$row = $query->first();\n\treturn $row;\n}", "public function get_page_by_id($id)\n {\n $this->db->where('id',$id);...
[ "0.88060117", "0.7224103", "0.71049887", "0.70457196", "0.7034544", "0.6994354", "0.6894285", "0.6880466", "0.6866752", "0.6831076", "0.67608666", "0.67437863", "0.66369194", "0.6629646", "0.662551", "0.6538316", "0.65366155", "0.652736", "0.65179795", "0.6511874", "0.6505666...
0.74195457
1
Call the parent construct
public function __construct() { parent::__construct(); $this->model = new MembersModel(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function construct()\n\t\t{\n\t\t}", "protected function construct(){\n\n }", "public function __construct(){\n\t\t/* calling parent construct */\n\t\tparent::__construct();\n\t}", "public function __construct(){\n\t\t/* calling parent construct */\n\t\tparent::__construct();\n\t}", "public funct...
[ "0.82095665", "0.8032105", "0.7893719", "0.7893719", "0.7797032", "0.7782906", "0.7747505", "0.7744005", "0.77198184", "0.75882006", "0.75775266", "0.75614566", "0.75608253", "0.7556861", "0.7546035", "0.7495045", "0.7455", "0.7449761", "0.7439282", "0.74370944", "0.7435508",...
0.0
-1
Leave to parent's method the Flight decisions.
protected function beforeFlight() { return parent::beforeFlight(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function afterFlight($result)\n {\n\n // Leave to parent's method the Flight decisions.\n return parent::afterFlight($result);\n }", "abstract public function deactivate();", "protected function deactivateSelf() {}", "public function stop() {\n if($this->combatantA->hp > ...
[ "0.60863423", "0.5713309", "0.5673435", "0.559305", "0.54620236", "0.5452898", "0.54431736", "0.5413252", "0.54070884", "0.5405124", "0.5369711", "0.5369711", "0.5359052", "0.53490424", "0.5325459", "0.53216636", "0.5297709", "0.5284925", "0.5268049", "0.525825", "0.5256349",...
0.59340906
1
Do some processing there, even deciding to stop the Flight, if case.
protected function afterFlight($result) { // Leave to parent's method the Flight decisions. return parent::afterFlight($result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _loop():void\n\t{\n\t\twhile( true )\n\t\t\tif( $this->_status === self::STATUSES['PAUSED'] )\n\t\t\t\tbreak;\n\t\t\telse\n\t\t\tif( $this->_queue )\n\t\t\t\t$this->_step();\n\t\t\telse\n\t\t\tif( $this->_timeout_queue )\n\t\t\t\t$this->_stepTimeout();\n\t\t\telse\n\t\t\t\tbreak;\n\t}", "private...
[ "0.5996911", "0.5802476", "0.5742465", "0.5742465", "0.5742465", "0.5742465", "0.57060814", "0.5635834", "0.5612407", "0.55937105", "0.5570291", "0.54935765", "0.5492297", "0.54619366", "0.5429191", "0.54272854", "0.5419379", "0.5406372", "0.54003394", "0.5393653", "0.5372835...
0.56515926
7
CakePHP style Define Welcome page message and set the Controller's variables.
public function index() { $message = ''; // $result = $this->model->countBy('username !=', 'admin'); $message .= '<b>$this->model->countBy(\'username !=\', \'admin\');</b>'; $message .= '<pre>'.var_export($result, true).'</pre><br>'; // $members = $this->mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function index()\n\t{\t\n\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}", "public function index()\n\t{\n\t\t$this->load->view('welcome_mess...
[ "0.7186115", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7185689", "0.7179201", "0.7140138", "0.7140138", "0.68477726", "0.6808638", "0.6657547", "0.660066", "...
0.0
-1
Called before actually calling any action of controller In fact we can execute some methods and checks that are used by any action
public function postDispatch() { parent::postDispatch(); $this->getRequestData(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function beforeAction () {\n\t}", "public function preAction()\n {\n // Nothing to do\n }", "protected function beforeAction() {\n\n }", "public function before()\n {\n parent::before();\n\n // Get the HTTP status code\n $action = $this->request->action();\n\...
[ "0.7983427", "0.78056985", "0.7705107", "0.76815736", "0.7648816", "0.75770396", "0.75691175", "0.7530844", "0.75281966", "0.7519544", "0.7510709", "0.7455143", "0.7427178", "0.7385185", "0.73651505", "0.7354207", "0.731259", "0.7308509", "0.72881836", "0.72778815", "0.727442...
0.0
-1
Parses data from payload If you want to change source of data or add some debug parameters this is the best place to
protected function getRequestData() { if ($this->requestData) { return $this->requestData; } $body = $this->getRequest()->getRawBody(); try { $data = Zend_Json::decode($body); } catch (Zend_Exception $e) { $this->setErrorResponse('Broken J...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function parsePayload()\n { \n return $this->_payload;\n }", "public function parseData()\n {\n $jsonMessage = json_decode($this->payload);\n // :: Check if handler contains fully qualified namespace\n if (strpos($jsonMessage->handler, '\\\\') !== false) {\n ...
[ "0.6554432", "0.6545161", "0.6375014", "0.6371666", "0.63637626", "0.6303472", "0.6303472", "0.6303472", "0.6300617", "0.6299072", "0.6167772", "0.6128743", "0.6128743", "0.6128743", "0.6128743", "0.6128743", "0.6128743", "0.6128743", "0.6128743", "0.6128743", "0.6128743", ...
0.0
-1
Retrieves session of this device if one exists Remember that device_uid is mandatory field of request payload. Of it is absent, error is always shown!
protected function getDeviceSession($sessionRequired = true) { if ($this->session) { return $this->session; } $data = $this->getRequestData(); if (!isset($data['session_uid']) && $sessionRequired) { $this->setErrorResponse('session_uid is mandatory for this ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_session()\n\t\t{\n\t\t\t\tif( file_exists( $this->session_file ) )\n\t\t\t\t{\n\t\t\t\t\t\t$session = file_get_contents( $this->session_file );\n\t\t\t\t\t\tif( !empty( $session ) )\n\t\t\t\t\t\t\treturn $session;\n\t\t\t\t}\n\t\t\t\t$post_data = [ 'params' => json_encode( [ 'user' => $this-...
[ "0.62153083", "0.61457247", "0.5904974", "0.5839283", "0.5822668", "0.5770736", "0.5730502", "0.57080996", "0.57080996", "0.5705383", "0.5705383", "0.5704939", "0.55983216", "0.5589834", "0.55773973", "0.5574258", "0.5561495", "0.5534047", "0.55258375", "0.552207", "0.5511367...
0.67759395
0
Serves as a single entry point for universal static route
public function proxyAction() { $action = $this->getParam('call'); $this->forward($action); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function route();", "abstract public function serve();", "public function routeStartup()\n {\n //...\n }", "private static function createRootRoute()\n {\n self::$Router->map('GET|POST', '/', function(){\n Root::executeResponse();\n e...
[ "0.6596147", "0.64303917", "0.6234386", "0.62072384", "0.607239", "0.6066156", "0.6044709", "0.5977641", "0.59412307", "0.58559775", "0.57839334", "0.57474697", "0.5699852", "0.56767553", "0.564533", "0.5606903", "0.55916977", "0.55791885", "0.5570306", "0.5563163", "0.556316...
0.0
-1
Logs in device if correct username and password provided username and password and mandatory fields in payload
public function loginAction() { $data = $this->getRequestData(); if ($this->getDeviceSession(false)) { $this->setErrorResponse('Your device is already running a session. Please logout first.'); } $session = Workapp_Session::login($data['username'], $data['password']); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function login()\n\t{\n\t\tif ( func_get_args() ) {\n\t\t\t$args = phpSmug::processArgs( func_get_args() );\n\t\t\tif ( array_key_exists( 'EmailAddress', $args ) ) {\n\t\t\t\t// Login with password\n\t\t\t\t$this->request( 'smugmug.login.withPassword', array( 'EmailAddress' => $args['EmailAddress'], 'Passwo...
[ "0.68798774", "0.6727298", "0.6727298", "0.6697732", "0.6625499", "0.66252786", "0.66061527", "0.6581805", "0.6568921", "0.655423", "0.6551905", "0.6521648", "0.6513109", "0.64877295", "0.64711267", "0.64513713", "0.6425759", "0.6419667", "0.640973", "0.6395479", "0.63932705"...
0.6731581
1
Returns that data about user by device_uid
public function getUserAction() { $session = $this->getDeviceSession(); if (!$session) { $this->setErrorResponse('This device has no running session'); } $session->registerAction($_SERVER['REMOTE_ADDR']); $user = $session->getUser(); $this->_helper->js...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDeviceDetailsfunction($userId){\r\n global $pdo;\t\r\n\t\t$select = $pdo->prepare(\"SELECT device_registry.* \r\n FROM users \r\n LEFT JOIN device_registry ON users.device=device_registry.id \r\n\t\t\t\t WHERE users.id = ?\");\r\n\t\t$select->execute(array...
[ "0.69865817", "0.6762119", "0.6631404", "0.6575231", "0.65657717", "0.64790326", "0.64733106", "0.64292717", "0.63870424", "0.63772", "0.6369383", "0.63531834", "0.63414747", "0.63407683", "0.6308767", "0.62968194", "0.62958753", "0.629142", "0.6289233", "0.62871385", "0.6228...
0.57172406
73
This method allows to set error message
private function setErrorResponse($message, $errorCode = 200) { $this->_response->setHttpResponseCode($errorCode); $this->_helper->json(array( 'message' => $message )); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setError($msg)\n {\n }", "function setError ($msg) {\r\n $this->errors[]=$msg;\r\n }", "function setError($message) {\n global $error;\n $error = (object) array(\n 'message' => $message\n );\n }", "public function setError($msg) {\n $this->__is...
[ "0.7800508", "0.7569773", "0.75496423", "0.7513437", "0.7476654", "0.74315214", "0.7350046", "0.72910184", "0.7278691", "0.7224812", "0.7207406", "0.71979845", "0.7192795", "0.71900636", "0.71900463", "0.71596473", "0.7157167", "0.7156258", "0.7152166", "0.7135397", "0.713058...
0.0
-1
get list of user activities getoperations optional field for loading relative operations
public function getUserActivitiesAction() { $getOperations = false; $activity = new Workapp_Activity(); $data = $this->getRequestData(); if (isset($data['getoperations'])) { $getOperations = $data['getoperations']; } $this->_helper->json($activity->getActi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUserOperationsAction()\n {\n $operation = new Workapp_Operation();\n $this->_helper->json($operation->getOperationList(array('user_id' => $this->getDeviceSession()->getUserId())));\n }", "public function getUserActivityList(){\n return($this->userActivityList);\n ...
[ "0.6590937", "0.62222964", "0.5662353", "0.5580183", "0.55617446", "0.5561594", "0.5475497", "0.5430238", "0.5419893", "0.5412079", "0.53882253", "0.53675765", "0.53154325", "0.53088087", "0.5296811", "0.52896863", "0.5279485", "0.5278199", "0.5268028", "0.5262805", "0.526258...
0.7027519
0
returns user activity by activity_id activity_id mandatory field
public function getUserActivityByIdAction() { /** @var Object_Activity $activity */ $data = $this->getRequestData(); if (isset($data['activity_id'])) { $activity = Object_Activity::getById($data['activity_id']); if(isset($data['getoperations']) && $activity){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getActivityUser($activityId) \n {\n return $this->instance->getActivityUser($activityId);\n }", "public function listActiUser($activity_id) {\r\n\t\t$stmt = $this->db->prepare(\"SELECT * FROM activities_user WHERE actividad=?\");\r\n\t\t$stmt->execute(array($activity_id));\r\n\t\t$relations_db = $s...
[ "0.7046892", "0.65258414", "0.6336385", "0.6264158", "0.61854005", "0.60966206", "0.6078802", "0.6000422", "0.5991526", "0.5969905", "0.59408194", "0.59275883", "0.59137857", "0.582163", "0.57755333", "0.5726601", "0.5723117", "0.5710577", "0.57078654", "0.5700123", "0.569646...
0.7477701
0
delete user activity with relative operations activity_id mandatory field
public function deleteUserActivityAction() { /** @var Object_Activity $activity */ /** @var Object_Operation $operation */ $data = $this->getRequestData(); if (isset($data['activity_id'])) { $activity = Object_Activity::getById($data['activity_id']); if (!$act...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($activity) {\r\n\t\t$stmt = $this->db->prepare(\"DELETE FROM activities WHERE id=?\");\r\n\t\t$stmt->execute(array($activity->getId()));\r\n\t}", "function deleteactivity() {\n $this->auth(WL_ADM_LEVEL);\n $activity_id = $this->uri->segment(3);\n $this->m_activities->delete($activ...
[ "0.7376134", "0.7281043", "0.7278024", "0.68819493", "0.684782", "0.65834564", "0.6548257", "0.652638", "0.6502628", "0.64717984", "0.63860434", "0.637702", "0.63534546", "0.6336945", "0.6214879", "0.61666733", "0.61556756", "0.61385363", "0.61157084", "0.6069745", "0.6064046...
0.82117146
0
this action creates user activity title is mandatory field photo is optional field
public function createUserActivityAction() { $data = $this->getRequestData(); if (isset($data['title'])) { $user = Object_User::getById($this->getDeviceSession()->getUserId()); $folder = Object_Folder::getByPath('/activities/' . $user->getKey() . "-activities"); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionCreate()\n {\n //创建活动时,点击后会先创建个活动,然后跳到修改页面,因为添加活动图需要有活动ID,\n $model = new ActivityInfo();\n //加载默认值\n $model->loadDefaultValues();\n $model->Tiltle = '1';\n $model->Url = '1';\n $model->JumpTo = '1';\n if ($model->save()) {\n ...
[ "0.6225597", "0.61761963", "0.60630184", "0.6027381", "0.587341", "0.5873331", "0.5851472", "0.5823526", "0.5807852", "0.5795582", "0.5781162", "0.57804143", "0.5771506", "0.571188", "0.5706706", "0.5690823", "0.5679584", "0.5660068", "0.5653067", "0.56362337", "0.56070554", ...
0.7001468
0
this action updates user activity by activity_id title is mandatory field photo is optional field
public function updateUserActivityAction() { /** @var Object_Activity $activity */ $data = $this->getRequestData(); if (isset($data['activity_id'])) { $activity = Object_Activity::getById($data['activity_id']); if (!$activity) { $this->setErrorResponse...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function update_activity($pid) {\n $a_name = $_POST['activity_name'];\n $a_destination = $_POST['activity_destination'];\n $a_caption = $_POST['caption'];\n $a_meta_title = $_POST['meta_title'];\n $a_meta_keywords = $_POST['meta_keywords'];\n $a_meta_description = $_POST['...
[ "0.70262873", "0.66264784", "0.6598882", "0.65296197", "0.6370587", "0.6274456", "0.62340695", "0.61932397", "0.6112222", "0.6042295", "0.6002894", "0.596621", "0.592717", "0.585048", "0.57960767", "0.5794807", "0.57939065", "0.5792251", "0.5789131", "0.57452285", "0.57373226...
0.76159763
0
this methos allows user to add photo to objects ['photo']['name'], ['photo']['content'] and type is mandatory fields
public function addPhotoAction(){ $data = $this->getRequestData(); $types = array('activity', 'operation', 'people'); if(isset($data['photo']['name']) && isset($data['photo']['content']) && isset($data['type']) && in_array($data['type'], $types)){ $user = Object_User::getById($this->...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function addItems(\\Media\\Entity\\Photo\\PhotoBase $item);", "public function addPhoto()\n\t{\n\t\t// check if any key in request is of error type\n\t\tif ($this->request->hasKey(ErrorEnum::ERROR))\n\t\t{\n\t\t\t// setting general error message and view style for a template\n\t\t\t$this->view->a...
[ "0.6600722", "0.6484956", "0.64442134", "0.6429595", "0.64045495", "0.6287845", "0.6282814", "0.6253326", "0.6192385", "0.6132469", "0.6119883", "0.6119076", "0.6106683", "0.60597444", "0.60495067", "0.6022437", "0.60190725", "0.5949225", "0.59177136", "0.5894779", "0.5888295...
0.73788947
0
this methos allows user to add video to operation object ['video']['name'], ['video']['content'] is mandatory fields
public function addVideoAction(){ $data = $this->getRequestData(); if(isset($data['video']['name']) && isset($data['video']['content'])){ $user = Object_User::getById($this->getDeviceSession()->getUserId()); $folder = Asset_Folder::getByPath('/video/operation/'.$user->getKey().'-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addVideo(VideoMedia $video);", "function insertVideo() {\n if ($this->getRequestMethod() != \"POST\") {\n $this->response('', 406);\n }\n $auth = $this->getAuthorization();\n $video = json_decode($_POST['json'], true);\n\t $userId = $v...
[ "0.7003941", "0.6797731", "0.67373866", "0.66958344", "0.6591785", "0.6539878", "0.65351987", "0.6465075", "0.6430036", "0.624857", "0.6234362", "0.62240374", "0.6220478", "0.62021315", "0.6183848", "0.61804575", "0.61738443", "0.61617935", "0.61135674", "0.61085194", "0.6107...
0.77207166
0
get list of user todos
public function getUserTodosAction() { $todo = new Workapp_Todo(); $this->_helper->json($todo->getTodoList(array('user_id' => $this->getDeviceSession()->getUserId()))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function listUserTodos() {\n\t\tglobal $HTML;\n\t\tglobal $page;\n\n\t\t$_ = '';\n\n\t\t// only show todos if user has access\n\t\tif($page->validatePath(\"/janitor/admin/todo\")) {\n\t\t\t\n\t\t\t$IC = new Items();\n\t\t\t$model = $IC->typeObject(\"todo\");\n\t\t\t$todos = $IC->getItems(array(\"itemtype\" => \"to...
[ "0.8056402", "0.7914587", "0.7273658", "0.7210066", "0.712779", "0.70923865", "0.7048307", "0.68337005", "0.6778222", "0.6766845", "0.6732916", "0.67270947", "0.67027307", "0.66668785", "0.66663194", "0.6661228", "0.6632829", "0.6624996", "0.66184264", "0.6602267", "0.6558302...
0.7988103
1
returns user tod by todo_id todo_id mandatory field
public function getUserTodoByIdAction() { /** @var Object_Todo $todo */ $data = $this->getRequestData(); if (isset($data['todo_id'])) { $todo = Object_Todo::getById($data['todo_id']); if (!$todo) { $this->setErrorResponse('no Todo with this todo_id!');...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function todoAffectedTo()\n {\n return $this->belongsTo('App\\User', 'affectedTo_id');\n }", "public function getTodo_id()\n {\n return $this->todo_id;\n }", "public function getTodoId(): Uuid {\n\t\treturn $this->todoId;\n\t}", "function Todo() {\n\t\t$query_string = Request...
[ "0.64641213", "0.61610526", "0.60444146", "0.60310143", "0.6009618", "0.5909782", "0.5900353", "0.58215904", "0.5676802", "0.56255317", "0.55897796", "0.55897796", "0.55533993", "0.55531055", "0.5549822", "0.55489194", "0.55291456", "0.5506294", "0.5485635", "0.548079", "0.54...
0.6935469
0
delete user todos by todo_id todo_id mandatory field
public function deleteUserTodoAction() { /** @var Object_Todo $todo */ $data = $this->getRequestData(); if (isset($data['todo_id'])) { $todo = Object_Todo::getById($data['todo_id']); if (!$todo) { $this->setErrorResponse('no Todo with this todo_id!'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function forceDelete(User $user, Todo $todo)\n {\n //\n }", "public function deleteTodo ($id) {\n $user = Auth::user();\n $todo = Todo::where('user_id', $user->id)->where('id', $id)->first();\n if ($todo->exists()) {\n $todo->delete();\n\n return res...
[ "0.74091667", "0.7018073", "0.6822474", "0.67303", "0.6677384", "0.6667483", "0.66359454", "0.6615946", "0.66150457", "0.66150457", "0.65988904", "0.65949965", "0.65663534", "0.6493768", "0.6488946", "0.64236283", "0.6370582", "0.6366892", "0.6365944", "0.636438", "0.636438",...
0.8019444
0
this action creates user todos todo_type is mandatory field text is optional field
public function createUserTodoAction() { $data = $this->getRequestData(); if (isset($data['todo_type'])) { $user = Object_User::getById($this->getDeviceSession()->getUserId()); $folder = Object_Folder::getByPath('/todo/' . $user->getKey() . "-todo"); if (!$folder...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createTodo(Request $request) {\n // if (!is_null($exception)) {\n // return response()->json(\n // [\n // \"status\" => \"500\",\n // \"error\" => $exception\n // ], 500);\n // }\n $user = Auth::user...
[ "0.67349774", "0.6566828", "0.65167344", "0.6447439", "0.64180964", "0.63816625", "0.6286726", "0.6282339", "0.6275527", "0.626662", "0.6209051", "0.6199566", "0.61943555", "0.6192338", "0.6139905", "0.60863745", "0.60259867", "0.6021764", "0.6021764", "0.6021764", "0.5986244...
0.8327598
0
this action updates user todos by todo_id todo_type is mandatory field text is optional field
public function updateUserTodoAction() { /** @var Object_Todo $todo */ $data = $this->getRequestData(); if (isset($data['todo_id'])) { $todo = Object_Todo::getById($data['todo_id']); if (!$todo) { $this->setErrorResponse('no Todo with this todo_id!'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateTodo(Request $request) {\n $user = Auth::user();\n $checkTodoExists = Todo::where('id', $request->id)->exists();\n if ($checkTodoExists) {\n $validTodo = Validator::make($request->all(), [\n 'title' => 'required|string|unique:todo|max:255',\n ...
[ "0.68656677", "0.6525809", "0.64533186", "0.63667476", "0.63080096", "0.61703837", "0.61580944", "0.61555594", "0.6144964", "0.61303717", "0.6080912", "0.60475385", "0.60449976", "0.6022284", "0.60189694", "0.60168105", "0.5974697", "0.5970464", "0.59687585", "0.59511757", "0...
0.7856997
0
this method gets todos type list
public function getTodoTypeListAction(){ /** @var Object_Todo $todo */ $this->getDeviceSession()->getUserId(); $todo = new Object_Todo(); $this->_helper->json($todo->getClass()->getFieldDefinition('Todo_type')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listarTodos_get(){\n $data = $this->Aluno->getAlunos();\n $this->response($data, REST_Controller::HTTP_OK);\n \n }", "function Todos(){\n\t\t\t\treturn $this->todos;\n\t\t\t}", "public function getTodos(){\n\t\t\t$this->db->query(\"SELECT * FROM generos\");\n\t\t\treturn...
[ "0.6810606", "0.6740433", "0.6655522", "0.6643761", "0.65414137", "0.6497332", "0.64786375", "0.6441917", "0.6401906", "0.6374171", "0.63325936", "0.63288575", "0.62990177", "0.62312394", "0.6214008", "0.6201043", "0.6172661", "0.60776323", "0.6033479", "0.6017789", "0.601487...
0.8069818
0
get list of user operations
public function getUserOperationsAction() { $operation = new Workapp_Operation(); $this->_helper->json($operation->getOperationList(array('user_id' => $this->getDeviceSession()->getUserId()))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function retrieveUserActions()\n {\n return $this->start()->uri(\"/api/user-action\")\n ->get()\n ->go();\n }", "public function getOperations()\r\n {\r\n return $this->operations;\r\n }", "public function getOperations()\n {\n return $this->operations;\n }", "publ...
[ "0.680076", "0.6613225", "0.65985155", "0.63677585", "0.6356829", "0.6329935", "0.6310219", "0.6276504", "0.6249319", "0.6248521", "0.6200661", "0.6200661", "0.6114851", "0.61132526", "0.6097535", "0.60906106", "0.60802996", "0.6047144", "0.60229105", "0.59813344", "0.5974682...
0.8104111
0
returns user operation by operation_id operation_id mandatory field
public function getUserOperationByIdAction() { /** @var Object_Operation $operation */ $data = $this->getRequestData(); if (isset($data['operation_id'])) { $operation = Object_Operation::getById($data['operation_id']); if (!$operation) { $this->setErro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getOperation();", "public function getOperationId()\n {\n return $this->operation_id;\n }", "public function getEventOperation($id)\n {\n\n $FillableDropdown = new FillableDropdown();\n $operations = $FillableDropdown->eventOperations($default = 2);\n\n $eve...
[ "0.6466772", "0.645045", "0.635007", "0.6150604", "0.6120574", "0.6117501", "0.60444075", "0.5980355", "0.5909346", "0.5909346", "0.5909346", "0.5909346", "0.5909346", "0.58539873", "0.5792927", "0.57478184", "0.5733128", "0.5679877", "0.5626372", "0.56249577", "0.5606406", ...
0.7410504
0
delete user operation by operation_id operation_id mandatory field
public function deleteUserOperationAction() { /** @var Object_Operation $operation */ $data = $this->getRequestData(); if (isset($data['operation_id'])) { $operation = Object_Operation::getById($data['operation_id']); if (!$operation) { $this->setError...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete(User $user, Operation $operation)\n {\n return Auth::id()->isAdmin();\n }", "public function forceDelete(User $user, Operation $operation)\n {\n return Auth::id()->isAdmin();\n }", "public function destroy(Operation $operation)\n { \n $operation->del...
[ "0.6942536", "0.63960385", "0.6170827", "0.6157917", "0.60886914", "0.595917", "0.5957814", "0.58890164", "0.58630633", "0.58294594", "0.5799882", "0.5795458", "0.578762", "0.5725511", "0.5724582", "0.5705047", "0.5699891", "0.56541896", "0.56541896", "0.56541896", "0.5623193...
0.79668754
0
this action creates user operation title and activity_id is mandatory field explanation, photo, video, latitude, longtitude is optional field
public function createUserOperationAction() { /** @var Object_Operation $operation */ $data = $this->getRequestData(); if (isset($data['title']) && isset($data['activity_id'])) { $user = Object_User::getById($this->getDeviceSession()->getUserId()); $folder = Object_F...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function createUserActivityAction()\n {\n $data = $this->getRequestData();\n if (isset($data['title'])) {\n $user = Object_User::getById($this->getDeviceSession()->getUserId());\n\n $folder = Object_Folder::getByPath('/activities/' . $user->getKey() . \"-activities\");...
[ "0.7053734", "0.5742937", "0.5668721", "0.5636948", "0.56229883", "0.55819947", "0.5574787", "0.55622447", "0.555195", "0.55331993", "0.5502536", "0.5407458", "0.5368779", "0.53570044", "0.5341209", "0.5339537", "0.53374046", "0.533324", "0.5319097", "0.53076345", "0.5275988"...
0.70964044
0
this action updates user operation by operation_id title and activity_id is mandatory field explanation, photo, video, latitude, longtitude is optional field
public function updateUserOperationAction() { /** @var Object_Operation $operation */ $data = $this->getRequestData(); if (isset($data['operation_id'])) { $operation = Object_Operation::getById($data['operation_id']); if (!$operation) { $this->setError...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateUserActivityAction()\n {\n /** @var Object_Activity $activity */\n $data = $this->getRequestData();\n if (isset($data['activity_id'])) {\n $activity = Object_Activity::getById($data['activity_id']);\n if (!$activity) {\n $this->setE...
[ "0.61249185", "0.58328193", "0.58193076", "0.5752877", "0.56352264", "0.55769384", "0.5467263", "0.5408846", "0.5334587", "0.5288759", "0.5287689", "0.5286019", "0.5285567", "0.52485543", "0.5246951", "0.5244131", "0.5220651", "0.51961863", "0.51872283", "0.51818895", "0.5180...
0.7738473
0
get list of user agendas
public function getUserAgendasAction() { $agenda = new Workapp_Agenda(); $this->_helper->json($agenda->getAgendaList(array('user_id' => $this->getDeviceSession()->getUserId()))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAggsByList() {\n return $this->_get(6);\n }", "public function getUsers();", "public function getUsers();", "public function getUsers();", "function get_user_list(){\n\t\treturn array();\n\t}", "public function allupgraders(){\n // SQL statement\n $sql = \"SELECT ...
[ "0.68995154", "0.68806505", "0.68806505", "0.68806505", "0.6733132", "0.6657294", "0.6632748", "0.6617472", "0.6550347", "0.65205324", "0.65205324", "0.65193814", "0.65019816", "0.64741915", "0.64706594", "0.64702153", "0.64681464", "0.6422536", "0.6387641", "0.6364438", "0.6...
0.78612393
0
returns user agenda by agenda_id agenda_id mandatory field
public function getUserAgendaByIdAction() { /** @var Object_Agenda $agenda */ $data = $this->getRequestData(); if (isset($data['agenda_id'])) { $agenda = Object_Agenda::getById($data['agenda_id']); if (!$agenda) { $this->setErrorResponse('no Agenda wit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_agenda($idagenda)\n {\n return $this->db->get_where('agenda',array('idagenda'=>$idagenda))->row_array();\n }", "public function getUserAgendasAction()\n {\n $agenda = new Workapp_Agenda();\n $this->_helper->json($agenda->getAgendaList(array('user_id' => $this->getDevice...
[ "0.6476513", "0.64205766", "0.60329634", "0.5883638", "0.58533025", "0.5789469", "0.5707381", "0.567456", "0.5634952", "0.56299263", "0.55947834", "0.55942774", "0.55843526", "0.5545008", "0.5500775", "0.54885435", "0.5475679", "0.5436372", "0.54354286", "0.5380971", "0.53692...
0.7112671
0
delete user agenda by agenda_id agenda_id mandatory field
public function deleteUserAgendaAction() { /** @var Object_Agenda $agenda */ $data = $this->getRequestData(); if (isset($data['agenda_id'])) { $agenda = Object_Agenda::getById($data['agenda_id']); if (!$agenda) { $this->setErrorResponse('no Agenda with...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function deleteUsuario(){\n $conexion = new Database();\n\t\tif ($this->codigo){\n $sql = sprintf('DELETE FROM agenda_usuario WHERE usuario_id = %d',\n $this->codigo);\n $conexion->exec( $sql );\n }\n }", "function delete_agenda($idagenda)\n {\n ...
[ "0.715543", "0.69624174", "0.6918893", "0.6646469", "0.6639103", "0.65732485", "0.6475622", "0.6389911", "0.6358775", "0.6268467", "0.62640965", "0.61863035", "0.6173356", "0.61718524", "0.6158144", "0.6153846", "0.6145026", "0.61276495", "0.6118396", "0.6106012", "0.60884684...
0.7972361
0
this action creates user agenda topic and title is mandatory field notes, start_time, end_time, with_whom, people, location, alarm, repeat_days is optional field
public function createUserAgendaAction() { $data = $this->getRequestData(); if (isset($data['topic']) && isset($data['title'])) { $user = Object_User::getById($this->getDeviceSession()->getUserId()); $folder = Object_Folder::getByPath('/agenda/' . $user->getKey() . "-agenda"...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n $validated = request()->validate([\n 'title' => 'required',\n 'day' => 'required|date',\n 'start_date' => 'required|date_format:H:i',\n 'end_date' => 'required|date_format:H:i',\n 'id_paciente' => 'required|integer',\n ...
[ "0.60620725", "0.59856796", "0.59508497", "0.5948515", "0.59474134", "0.59170127", "0.58462083", "0.57646793", "0.57549375", "0.57342803", "0.56651634", "0.56649005", "0.5657301", "0.56073606", "0.55998707", "0.55939907", "0.5581165", "0.55803645", "0.5545269", "0.553988", "0...
0.7705836
0
this action updates user agenda by agenda_id topic and title is mandatory field notes, start_time, end_time, with_whom, people, location, alarm, repeat_days is optional field
public function updateUserAgendaAction() { /** @var Object_Agenda $agenda */ $data = $this->getRequestData(); if (isset($data['agenda_id'])) { $agenda = Object_Agenda::getById($data['agenda_id']); if (!$agenda) { $this->setErrorResponse('no Agenda with...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update(Agenda $agenda)\n {\n //\n }", "public function createUserAgendaAction()\n {\n $data = $this->getRequestData();\n if (isset($data['topic']) && isset($data['title'])) {\n $user = Object_User::getById($this->getDeviceSession()->getUserId());\n\n ...
[ "0.6632084", "0.62234235", "0.6192552", "0.6128543", "0.59022623", "0.58283335", "0.5775609", "0.5708071", "0.568348", "0.5634259", "0.5601615", "0.55923986", "0.559096", "0.5513196", "0.5408754", "0.5382171", "0.5377417", "0.5375388", "0.5340474", "0.53366035", "0.5314729", ...
0.7529481
0
this method gets topic type list
public function getAgendaTopicTypeListAction(){ /** @var Object_Agenda $agenda */ $this->getDeviceSession()->getUserId(); $agenda = new Object_Agenda(); $this->_helper->json($agenda->getClass()->getFieldDefinition('Topic')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTopicRecordTypes() {\n \treturn $this->manager->getTopicRecordTypes();\n\t}", "public function getTopicSearchRecordTypes() {\n \treturn $this->manager->getTopicSearchRecordTypes();\n\t}", "protected function getTypes() {}", "function getTypeslist ()\r\n\t{\r\n\t\t$query = 'SELECT id,...
[ "0.7036913", "0.67919445", "0.676287", "0.6650992", "0.6572898", "0.6553992", "0.6553992", "0.6553992", "0.6553992", "0.6462565", "0.6457779", "0.6387437", "0.6376169", "0.6251349", "0.6215229", "0.6157128", "0.61462116", "0.61462116", "0.61454624", "0.61360216", "0.6119202",...
0.73622173
0
this method gets agenda alarm list
public function getAgendaAlarmListAction(){ /** @var Object_Agenda $agenda */ $this->getDeviceSession()->getUserId(); $agenda = new Object_Agenda(); $this->_helper->json($agenda->getClass()->getFieldDefinition('Alarm')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_agenda() {\n\t\t$items = $this->agenda_items->get_items();\n\t\t$participants = $this->participants->get_participants();\n\n\t\t// Create agenda\n\t\tforeach ($items as $item) {\n\t\t\tif ($item->is_all_participants) {\n\t\t\t\tforeach ($participants as $participant) {\n\t\t\t\t\t$json_return['...
[ "0.65576774", "0.64311796", "0.63000643", "0.6299815", "0.62756264", "0.6257771", "0.6201781", "0.6197145", "0.61781037", "0.61694765", "0.61662114", "0.6095432", "0.6092611", "0.6092611", "0.6057798", "0.60091203", "0.60051733", "0.6003813", "0.6002366", "0.59902656", "0.598...
0.8293316
0
get list of user peoples
public function getUserPeoplesAction() { $people = new Workapp_People(); $this->_helper->json($people->getPeopleList(array('user_id' => $this->getDeviceSession()->getUserId()))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPartinUsersList(){\n return $this->_get(2);\n }", "public function getUsers();", "public function getUsers();", "public function getUsers();", "public static function getPersonsUsers(){\n return self::getPersonsByRole();\n }", "public function get_user_list() {\n\n ...
[ "0.69041556", "0.68857783", "0.68857783", "0.68857783", "0.68162924", "0.6807705", "0.6805229", "0.6796118", "0.6765865", "0.67559737", "0.67380023", "0.6734546", "0.6729329", "0.66896474", "0.66079575", "0.66023964", "0.65949625", "0.6588191", "0.6555696", "0.6555696", "0.65...
0.77734315
0
returns user people by people_id people_id mandatory field
public function getUserPeopleByIdAction() { /** @var Object_People $people */ $data = $this->getRequestData(); if (isset($data['people_id'])) { $people = Object_People::getById($data['people_id']); if (!$people) { $this->setErrorResponse('no People wit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPerson($id=null)\n {\n $app = \\Cobalt\\Container::get('app');\n $id = $id ? $id : $app->input->get('id');\n\n if ($id > 0) {\n\n $db = JFactory::getDBO();\n //generate query\n //\n $query = $db->getQuery(true);\n $qu...
[ "0.6533435", "0.6500275", "0.642814", "0.63904023", "0.6110907", "0.6066991", "0.6025295", "0.59378195", "0.5912326", "0.58952177", "0.5868457", "0.5839717", "0.58203757", "0.5801222", "0.5788947", "0.57336336", "0.56931573", "0.5688893", "0.5674435", "0.5665378", "0.565958",...
0.7297928
0
delete user people by people_id people_id mandatory field
public function deleteUserPeopleAction() { /** @var Object_People $people */ $data = $this->getRequestData(); if ($data['people_id']) { $people = Object_People::getById($data['people_id']); if (!$people) { $this->setErrorResponse('no People with this p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function remove($people_id) {\n\t}", "public function delete($idPersonas);", "function delete_person($person_id)\n {\n return $this->db->delete('person',array('person_id'=>$person_id));\n }", "public function deletePeople ($id){ \n $sql = \"DELETE FROM alumnos WHERE ...
[ "0.7302314", "0.72567225", "0.6956891", "0.68961036", "0.6885045", "0.6799213", "0.6767392", "0.67370325", "0.66720814", "0.66690004", "0.65847206", "0.65029365", "0.6479975", "0.64767504", "0.64483064", "0.64251924", "0.63749295", "0.63408357", "0.63379157", "0.6318331", "0....
0.7848862
0
this action creates user people name is mandatory field company, phone, email, image is optional field
public function createUserPeopleAction() { $data = $this->getRequestData(); if (isset($data['name'])) { $user = Object_User::getById($this->getDeviceSession()->getUserId()); $folder = Object_Folder::getByPath('/peoples/' . $user->getKey() . "-people"); if (!$folde...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function doCreate() {\n if(\n isset($_POST['email']) &&\n isset($_POST['password']) &&\n isset($_POST['lastName']) &&\n isset($_POST['firstName']) &&\n isset($_POST['address']) &&\n isset($_POST['postalCode']) &&\n isset($_P...
[ "0.7032582", "0.6811807", "0.6786634", "0.67664105", "0.6728088", "0.6699939", "0.669593", "0.6688208", "0.66465217", "0.66338116", "0.66199183", "0.6600758", "0.6593541", "0.65061486", "0.6504406", "0.64924735", "0.64901894", "0.64875484", "0.64734626", "0.64700794", "0.6468...
0.7341189
0
this action updates user people by people_id name is mandatory field company, phone, email, image is optional field
public function updateUserPeopleAction() { /** @var Object_People $people */ $data = $this->getRequestData(); if (isset($data['people_id'])) { $people = Object_People::getById($data['people_id']); if (!$people) { $this->setErrorResponse('no People with...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update():void\n {\n $id = $this->id;\n $first_name = $this->first_name;\n $last_name = $this->last_name;\n $image = $this->image;\n $user_type = $this->user_type;\n $address = $this->address;\n\t\t$phone = $this->phone;\n $this->fetch(\n ...
[ "0.71162605", "0.70201784", "0.6972015", "0.67288595", "0.6640893", "0.66054374", "0.6480629", "0.6438632", "0.64283943", "0.6420584", "0.63782644", "0.63220465", "0.63220465", "0.6318497", "0.63162816", "0.6298133", "0.62908256", "0.6274238", "0.6273094", "0.6244721", "0.624...
0.7930899
0
this method allows user to report sick history and already_sick is mandatory fields
public function reportSickAction(){ /** @var Object_User $user */ $data = $this->getRequestData(); if(isset($data['history']) && isset($data['already_sick'])){ $user = Object_User::getById($this->getDeviceSession()->getUserId()); $sickArr = $user->getSick_history()?$user-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSickAction(){\n /** @var Object_User $user */\n $data = $this->getRequestData();\n $user = Object_User::getById($this->getDeviceSession()->getUserId());\n $sickArr = $user->getSick_history();\n if(isset($sickArr[0])){\n unset($sickArr[0]);\n }...
[ "0.6082249", "0.5182344", "0.5026466", "0.4939968", "0.48449332", "0.4841538", "0.48369083", "0.48230287", "0.4797174", "0.4795118", "0.47714025", "0.47653452", "0.47515208", "0.47300866", "0.47232798", "0.47156665", "0.47121125", "0.47025135", "0.46956047", "0.4688611", "0.4...
0.7929138
0
this method allows user to get sick history, or sick for each day date is optional field for this request
public function getSickAction(){ /** @var Object_User $user */ $data = $this->getRequestData(); $user = Object_User::getById($this->getDeviceSession()->getUserId()); $sickArr = $user->getSick_history(); if(isset($sickArr[0])){ unset($sickArr[0]); } if(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function reportSickAction(){\n /** @var Object_User $user */\n $data = $this->getRequestData();\n if(isset($data['history']) && isset($data['already_sick'])){\n $user = Object_User::getById($this->getDeviceSession()->getUserId());\n $sickArr = $user->getSick_histor...
[ "0.7128585", "0.54625285", "0.5440927", "0.53904057", "0.5361306", "0.5350883", "0.53204596", "0.5281722", "0.5246985", "0.5200864", "0.5193523", "0.5180792", "0.5177715", "0.51736695", "0.51697814", "0.5160064", "0.5132088", "0.50831985", "0.50828654", "0.5070254", "0.505638...
0.75899434
0
this method allows user to report mood mood is mandatory field
public function reportMoodAction(){ /** @var Object_User $user */ $data = $this->getRequestData(); if(isset($data['mood']) && in_array($data['mood'], range(1,3))){ $user = Object_User::getById($this->getDeviceSession()->getUserId()); $moodArr = $user->getMoodmeter()?$user...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMandatory();", "public function isMandatory() {\n\t\t$this->getMandatory();\n\t}", "public function isRequired() {}", "public function isRequired() {}", "public function isRequired() {}", "public function isRequired() {}", "public function isRequired();", "public function isRequire...
[ "0.6216599", "0.6050632", "0.59296757", "0.59296757", "0.59294224", "0.5928736", "0.58822936", "0.58822936", "0.58822936", "0.58822936", "0.58822936", "0.58822936", "0.58822936", "0.58822936", "0.58804005", "0.5835324", "0.5835324", "0.5835324", "0.57050234", "0.57035434", "0...
0.5930218
2
this method allows user to get mood history, or mood for each day date is optional field for this request
public function getMoodAction(){ $data = $this->getRequestData(); $user = Object_User::getById($this->getDeviceSession()->getUserId()); $moodArr = $user->getMoodmeter(); if(isset($moodArr[0])){ unset($moodArr[0]); } if(isset($data['date'])){ foreac...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function get_recommendations($cur_hour, $cur_day, $mood) {\n\n\t\t\n\t\tswitch ($cur_hour) {\n\t\t\tcase $cur_hour >= 1 && $cur_hour <= 3:\n\t\t\t\t$where = \"DATE_FORMAT(interactions.date_listened, '%H') BETWEEN 01 AND 03 AND DATE_FORMAT(interactions.date_listened, '%d') <> '$cur_day' AND interactions.mood = '$mo...
[ "0.61993796", "0.59928375", "0.5377133", "0.5349312", "0.52711874", "0.5228813", "0.5223987", "0.518543", "0.5183215", "0.51422334", "0.5129633", "0.51056576", "0.50806737", "0.5067465", "0.505496", "0.505325", "0.50402874", "0.50272834", "0.5024065", "0.49749744", "0.4950826...
0.73968565
0
this method allows user to get his profile or update phone, email, workphone, workemail is optional fields
public function profileAction(){ /** @var Object_User $user */ $data = $this->getRequestData(); $user = Object_User::getById($this->getDeviceSession()->getUserId()); if(isset($data['phone'])){ $user->setPhone($data['phone']); } if(isset($data['email'])){ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function p_edit() { if(!$this->user) {\n Router::redirect('/');\n }\n \n $this->user->user_id = DB::instance(DB_NAME)->sanitize($this->user->user_id);\n $q = 'SELECT first_name, last_name, email\n FROM users\n WHERE user_id = \"'.$t...
[ "0.6865107", "0.6760915", "0.6693186", "0.6607638", "0.65992683", "0.6598564", "0.6589131", "0.6582348", "0.65752137", "0.6554394", "0.65168", "0.65044767", "0.64987355", "0.64942634", "0.6465414", "0.64508015", "0.64167124", "0.6413793", "0.6397808", "0.63634586", "0.636122"...
0.69319075
0
this method changes password for user password and repeat_password is mandatory fields
public function changePasswordAction(){ $data = $this->getRequestData(); $user = Object_User::getById($this->getDeviceSession()->getUserId()); if(isset($data['password']) && isset($data['repeat_password'])){ if($data['password'] === $data['repeat_password']){ $user->s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function changePassword() {}", "public function password(){\r\n\r\n\t\t\t$user_info = Helper_User::get_user_by_id($this->user_id);\r\n\r\n\t\t\tif($_POST){\r\n\r\n\t\t\t\t$formdata = form_post_data(array(\"old_password\", \"new_password\", \"repeat_new_password\"));\r\n\t\t\t\t\r\n\t\t\t\t$old_password...
[ "0.8361884", "0.7911512", "0.7806682", "0.77983814", "0.76666105", "0.7660128", "0.76538527", "0.76482564", "0.76303697", "0.7619053", "0.755062", "0.75267404", "0.75108135", "0.7507412", "0.74795854", "0.7438106", "0.74295264", "0.7383053", "0.7378999", "0.73785174", "0.7370...
0.8359503
1
this method allows user to set his device_token device_token is mandatory field
public function setDeviceTokenAction(){ $data = $this->getRequestData(); $this->getDeviceSession()->getUserId(); if($data['device_token']){ $session = Workapp_Session::getBySessionUid($data['session_uid']); if ($session) { $session->addDeviceToken($data['d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setToken() {\n\n /* valid register */\n $request = $this->post('/v1/register', [\n 'firstname' => 'John',\n 'lastname' => 'Doe',\n 'email' => 'john.doe@email.com',\n 'password' => 'secret',\n ]);\n\n /* valid login */\n ...
[ "0.65079063", "0.6488449", "0.64489806", "0.64147264", "0.6294113", "0.6202067", "0.6197368", "0.6125309", "0.608477", "0.6084462", "0.60504645", "0.5986843", "0.59641856", "0.59604293", "0.5936098", "0.584383", "0.58092165", "0.5789918", "0.5788791", "0.57479554", "0.5741275...
0.80904794
0
Columna de la tabla de la base de datos que el campo representara
public function setDBColName(string $field): self { $this->field = trim($field); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getColumnName();", "public function getColumn(): string;", "public function getColumna() {\n return $this->columna;\n }", "abstract public function tableColumns();", "abstract public static function columnData();", "public function modelColumn();", "private function getColumn(): str...
[ "0.6744112", "0.67002887", "0.6674286", "0.6618721", "0.65801996", "0.6523949", "0.64745504", "0.64733726", "0.6466312", "0.6460589", "0.64378077", "0.6423638", "0.6411212", "0.638224", "0.6373354", "0.6356444", "0.63527304", "0.63400584", "0.62895215", "0.62887055", "0.62015...
0.0
-1
Descripcion del campo Optional
public function setDescription($description): self { $this->extras['description'] = $description; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDescription()\n {\n return null;\n }", "public function getDesciption();", "public function getDescription(): ?string;", "public function description($value = null)\n \t{\n \t\tif ($value != null) $this->_description = $value;\n \t\telse return $this->_description;\n \t}", "publ...
[ "0.7016641", "0.7001614", "0.69684774", "0.6930787", "0.68867505", "0.6688923", "0.6688923", "0.6688923", "0.6688923", "0.66692626", "0.66692626", "0.66692626", "0.66692626", "0.66692626", "0.66692626", "0.66692626", "0.66692626", "0.66692626", "0.6669168", "0.6669168", "0.66...
0.0
-1