query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
195ab50bb3e734bc2b5d7c0e8498a100
return all student's courses
[ { "docid": "2e96127625df74b74eb5bf7e8cd4019c", "score": "0.7349257", "text": "public function courses( $id ){\r\n $select = \"SELECT `courses`.`id`, `courses`.`name` \r\n FROM `courses`\r\n LEFT JOIN `enrollment`\r\n ON `enrollment`.`course_id...
[ { "docid": "d10bcb8cc2d405222f1b0f95608a9f74", "score": "0.83187175", "text": "public function GetCourses()\n\t\t{\n $course_students = CourseStudent::GetAll(['student_id' => $this->GetAttribute(static::$primary_key)]);\n $courses = array();\n\n foreach ($course_students...
a407185734bf80965328b7bb098ba005
Query the database using prepared statments
[ { "docid": "072a916835e6e2a4aebc38af3a37f7f1", "score": "0.0", "text": "function query($query, $bindings, $conn)\n{\n\t$stmt = $conn->prepare($query);\n\n\t$stmt->execute($bindings);\n\n\t$affected_rows = $stmt->rowCount();\n\n\treturn ($affected_rows > 0) ? $stmt : false;\n}", "title": "" } ]
[ { "docid": "f6b7210b89155a626205ce86e90511d6", "score": "0.696912", "text": "function query($sql, $vars=array()){\n \tglobal $db;\n \t$result = $db->prepare($sql);\n \t$result->execute($vars);\n \treturn $result->fetchAll();\n }", "title": "" }, { "docid": "f8a60d3b9a825f9ed31...
5b0b7761e1a713400a7bdbc5ce1634d5
Set up test environment.
[ { "docid": "485b8e459e52e99f9a3c17d47cc98af5", "score": "0.0", "text": "public function setUp()\n {\n parent::setUp();\n\n $this->connection = new Connection\\MysqliConnection($this->link);\n\n if ($this->connection->tableExists('writers')) {\n $this->connection->dropT...
[ { "docid": "db0325cb0750d5c6a21fccb74d4137cd", "score": "0.7853385", "text": "protected function setUp() {\n\t\tparent::setUp();\n\n\t\t$this->object = Titon::env();\n\t\t$this->object->setup('dev', Environment::DEVELOPMENT, ['dev', '123.0.0.0']);\n\t\t$this->object->setup('prod', Environment::PRODUCTIO...
5289d4eb90e8be1946cecf369208f413
get class instance for the specified form ("Filter" or "Edit")
[ { "docid": "33d3199798850edd809dfa32eb95a070", "score": "0.0", "text": "public static function Form( $name ) { $strClass = self::getClassName().'_Form_'.$name; return new $strClass; }", "title": "" } ]
[ { "docid": "5215503362680f4edaaecfd7af376855", "score": "0.71069634", "text": "public function getFilterFormClass()\n {\n return 'Seguridad_IngresoFormFilter';\n }", "title": "" }, { "docid": "a64fd1ac9ccd014b5c96823d4169b0ca", "score": "0.6901508", "text": "public function getF...
7798f29b8a0eb3db03772ee54abb33b8
add a color color are unique color are in hexadecimal with the "" (i.e: aaafff)
[ { "docid": "779c002363fa57c4cf757c296b3cea12", "score": "0.0", "text": "public function add($code);", "title": "" } ]
[ { "docid": "ca86316b74a37a46bfcc99a74a0a63f7", "score": "0.70907956", "text": "function addColor($image, $color) {\r\n\tif ((strlen($color) != 6) && (strlen($color) != 3)) {\r\n\t\t$color = \"FFF\";\r\n\t}\r\n\t## 3 or 6 character HEX?\r\n\tif (strlen($color) == 6) {\r\n\t\t$bg\t= imagecolorallocate($im...
c14fb013a7a5d1ae866d1593006695c7
Forces initialization of the proxy
[ { "docid": "edd237e21121571a9acba5ccf0148efa", "score": "0.0", "text": "public function __load()\n {\n $this->__initializer__ && $this->__initializer__->__invoke($this, '__load', []);\n }", "title": "" } ]
[ { "docid": "cb49393616c02c62935d549c3ed39024", "score": "0.6928823", "text": "public function __construct($proxy = false)\n {\n $this->proxy = $proxy;\n }", "title": "" }, { "docid": "fa32cc9291ed73dfc940db8f25552351", "score": "0.68803674", "text": "public function __co...
a8f32ac32590884c1df543e8253b629e
Revert the changes to the database.
[ { "docid": "d356ff1eecd7fc6e546e265a1559be04", "score": "0.0", "text": "public function down()\n\t{\n\t\tSchema::drop('diskus_comments');\n\t}", "title": "" } ]
[ { "docid": "5882065253c8d08f6b2169b07d1e6695", "score": "0.7292081", "text": "public function revert();", "title": "" }, { "docid": "dee2127161dcf3a75f54208feaa7cc7e", "score": "0.71497995", "text": "function revert_table() {\r\n $this->_table = $this->_table_org;\r\n $...
bde49acb6252bddb4cb83b568a2ddea0
Saving Logic 1) upload image 2) save coupon 3) save image 4) check transaction status
[ { "docid": "34d7334df5f8affa8072491174cfcf62", "score": "0.0", "text": "function save( $group_id = false ) {\n\t\t// start the transaction\n\t\t$this->db->trans_start();\n\t\t/** \n\t\t * Insert coupon Records \n\t\t */\n\t\t$data = array();\n\n\t\t// prepare group name\n\t\tif ( $this->has_data( 'group...
[ { "docid": "ad768cb6cc0fd110098f7c247e1f1a9d", "score": "0.69130063", "text": "public function uploadcoupon(){\n\t\t//From Validation\n\t\tif (empty($_FILES['fileCouponImage']['name']))\n\t\t{\n\t\t $this->form_validation->set_rules('fileCouponImage', 'Coupon Image', 'required');\n\t\t}\n\n\t\tif ($t...
3cbe4b49120056fdc76b026c06cd0675
Create a new command instance.
[ { "docid": "beeda352e37e57573722143269c99118", "score": "0.0", "text": "public function __construct()\n {\n parent::__construct();\n }", "title": "" } ]
[ { "docid": "3ec578a34bc966775f076e19385d63c3", "score": "0.8010746", "text": "protected function newCommand() {\n return newinstance(Command::class, [], '{\n public static $wasRun= false;\n public function __construct() { self::$wasRun= false; }\n public function run() { self::$wasRun=...
e9067daa2f84383cdc9e5b2488da2d4a
Get the [pilotmobilephone] column value.
[ { "docid": "7c88a77ca1089e26929c7ab442031110", "score": "0.7936241", "text": "public function getPilotmobilephone()\n\t{\n\t\treturn $this->pilotmobilephone;\n\t}", "title": "" } ]
[ { "docid": "e9fef6269122dcb8c51dba20c8c46382", "score": "0.76394117", "text": "public function getCopilotmobilephone()\n\t{\n\t\treturn $this->copilotmobilephone;\n\t}", "title": "" }, { "docid": "87b1a3e9d331b6f282884bc4daa42910", "score": "0.7387881", "text": "public function getAf...
02e47c48bdcdc465b58dc14430454fbf
Open/Close the comments for a blog post
[ { "docid": "f3ceabeb77c3004b192ddea464c8c441", "score": "0.66495687", "text": "function ToggleComments($closed, $post_id ){\n\t\tglobal $langmessage;\n\n\t\tif( $closed ){\n\t\t\tSimpleBlogCommon::AStrSet('comments_closed',$post_id,1);\n\t\t}else{\n\t\t\tSimpleBlogCommon::AStrRm('comments_closed',$post_...
[ { "docid": "38b3c89d712f3cff98b59bfc51df9fb3", "score": "0.68380606", "text": "public function close_comments( $open, $post_id ) {\n\n\t\t\t// if not open, than back\n\t\t\tif ( ! $open )\n\t\t\t\treturn $open;\n\n\t\t\t$post = get_post( $post_id );\n\t\t\tif ( $post->post_type ) // all post types\n\t\t...
70507c9206506c15e0fc853dd102543f
Method responsible for removing observers from event manager
[ { "docid": "ce9bd8e4c0d2c242ea2f7d8655bcdc5d", "score": "0.59864306", "text": "public function detach(ObserverInterface $observer)\n {\n $observers = $this->getObservers();\n\n foreach ($observer->getEvents() as $event) {\n $count = count($observers[$event]);\n\n f...
[ { "docid": "1f39bb02772195735185d1532e28c339", "score": "0.83381486", "text": "public function removeObserver() {\n //$this->__observers = array();\n foreach($this->__observers as $obj) {\n unset($obj);\n }\n }", "title": "" }, { "docid": "3f2a1572716376af4...
13d11c226eefbc3af962b1fee70bad09
Short description for function Long description for function (if any)...
[ { "docid": "33977e4dc86b00523481b47f9a2b34f7", "score": "0.0", "text": "public function sayHello(string $name);", "title": "" } ]
[ { "docid": "a7bfeb59d480d09b9b32044cbd80a5f0", "score": "0.737623", "text": "public function description();", "title": "" }, { "docid": "a7bfeb59d480d09b9b32044cbd80a5f0", "score": "0.737623", "text": "public function description();", "title": "" }, { "docid": "a7bfeb59d4...
5ca2ca81d9d47e6a08f7144fcf160715
Determine if the row is empty or void of any values. This is handy for scenarios of CSV files that may have additional lines for no reason
[ { "docid": "909f01eb727c4197f1e873ead867d7d1", "score": "0.73594165", "text": "public function isEmpty() {\n return empty($this->rowData);\n }", "title": "" } ]
[ { "docid": "698efa4f5aa86cd5d8d0709b5d463dbe", "score": "0.7466529", "text": "function is_empty_row($row){\n\tforeach($row AS $item) if(!empty($item)) return FALSE;\n\t\n\t# if you get here all items in the array are empty\n\treturn TRUE;\n}", "title": "" }, { "docid": "8d9040aa8e87ed36f5d62...
a4c96aa16c7e57195285613ea7046d87
Builds a new variable node.
[ { "docid": "2b103d5fbc3df841b759d3b9d7022fae", "score": "0.6509052", "text": "public function buildASTVariable($image)\n {\n include_once 'PHP/Depend/Code/ASTVariable.php';\n\n PHP_Depend_Util_Log::debug(\n 'Creating: PHP_Depend_Code_ASTVariable(' . $image . ')'\n );\n...
[ { "docid": "e8f5c5affbc33fa1a22e775edd81b8ed", "score": "0.69092387", "text": "public function buildASTVariableVariable($image)\n {\n include_once 'PHP/Depend/Code/ASTVariableVariable.php';\n\n PHP_Depend_Util_Log::debug(\n 'Creating: PHP_Depend_Code_ASTVariableVariable(' . $...
b2f6792fd432085d129fa740e4a698d9
Get current user model
[ { "docid": "02549b6eddd14e8947a22d1afe8e724f", "score": "0.6871484", "text": "function user()\n{\n\tif(RuntimeCaches::has('currentUserInstance'))\n\t\treturn RuntimeCaches::get('currentUserInstance');\n\n\t$user = orm('user/user')->find(session::get('userID')); \n\n\tRuntimeCaches::set('currentUserInsta...
[ { "docid": "ca680f130cb844d65e351f158dfd9fc9", "score": "0.8329189", "text": "public static function userModel()\n {\n return static::$userModel;\n }", "title": "" }, { "docid": "ca680f130cb844d65e351f158dfd9fc9", "score": "0.8329189", "text": "public static function use...
582d8b0a9a7cfb7eee611cf01ad63532
Returns control's HTML element template.
[ { "docid": "af9d165e23af9f5d43e17f345b3c03f0", "score": "0.66653764", "text": "public function getControlPrototype(): Html\n\t{\n\t\treturn $this->control;\n\t}", "title": "" } ]
[ { "docid": "2fc8096be6ece56fff4bb5973eb769fe", "score": "0.72299856", "text": "public function getControl()\n\t{\n\t\t$this->setOption('rendered', true);\n\t\t$el = clone $this->control;\n\t\treturn $el->addAttributes([\n\t\t\t'name' => $this->getHtmlName(),\n\t\t\t'id' => $this->getHtmlId(),\n\t\t\t're...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "a2542a94a2955187a84393ac3c18377c", "score": "0.0", "text": "public function store(Request $request)\n {\n $this->validate($request, [\n 'user_id' => 'required',\n 'old_shop_id' => 'required',\n 'new_shop_id' => 'required',\n ]);\n // d...
[ { "docid": "dcb5d67c26376fd57a5dc3977e13979f", "score": "0.72076565", "text": "public function store(Resource $resource, $tempResource);", "title": "" }, { "docid": "29f523253fa183bb58e06565b71660d4", "score": "0.70465356", "text": "public function store(ResourceStoreRequest $request...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "e3d0ccd4ada2dc88b7c57c5065e7e2e8", "score": "0.0", "text": "public function store(Request $request)\n {\n //\n }", "title": "" } ]
[ { "docid": "45903628ff69251019708b230944f6f0", "score": "0.6915523", "text": "public function store(StoreResourceRequest $request)\n {\n\n $data = $request->input();\n\n if ( empty($data['teacher_id']) ) {\n $data['teacher_id'] = null;\n }\n\n DB::transaction(function() use ($request, ...
84161ba5ea6e0d2d442b49db2691be3d
///////////////////////////////// Get user record by login (username or email)
[ { "docid": "a1aa7b0558f6f1d344611f41174d67f2", "score": "0.77436703", "text": "function get_user_by_login($login)\n\t{\n\t\t$conditions = array(\n array('field'=>'user_name', 'math'=>'=', 'value'=>strtolower($login)), \n array('keywor...
[ { "docid": "166c90d097095a751bec5cc9c1a349ba", "score": "0.74272877", "text": "private function getUserByEmail(){\n return User::model()->findByAttributes(array('email' => $this->loginForm->email));\n }", "title": "" }, { "docid": "7e05032eb594fc6aa660260528d3aab3", "score": "0...
dc066d0ddd68ae7484e76483fad43894
/ Purpose : To handle General Setting Functions To update the general settings details
[ { "docid": "5670d516b77c248c30fffa7a48e114b2", "score": "0.65417653", "text": "public function general_setting_update($gen_settings, $id)\n{\n\n \n\n $columns = '';\n $condition = '';\n if($gen_settings != '' && $id != '')\n {\n $columns = \"product_logo = '\".trim($gen_settings['...
[ { "docid": "62d44d5d8547aa2d59ee6bda7ce263ee", "score": "0.7457857", "text": "abstract protected function settings();", "title": "" }, { "docid": "028bb8cf12aa05c43dcc9fb2c3c00835", "score": "0.7378496", "text": "public function general_settings_page() {\r\n\t\t\trequire_once CP_V2_B...
bf383af88bfc2d9caeff872629ae3881
Gets the private '.service_locator.emQV481' shared service.
[ { "docid": "66af0187f1e82c5623ecbccec6fad4fa", "score": "0.0", "text": "public static function do($container, $lazyLoad = true)\n {\n return $container->privates['.service_locator.emQV481'] = new \\Symfony\\Component\\DependencyInjection\\Argument\\ServiceLocator($container->getService, [\n ...
[ { "docid": "b43d8c17c7885b0217fb16fb8dc993ff", "score": "0.6066471", "text": "public static function getShared()\n {\n return static::$shared;\n }", "title": "" }, { "docid": "14d3b7ddcf5ac2c64b3034d9b476184f", "score": "0.6033757", "text": "protected function getService...
7397d2e391799b827e5f14198fbfd53f
Get the zend framework library path
[ { "docid": "56fdef1d3f14c2582f35716af9706b0e", "score": "0.5943389", "text": "protected static function getZendPath(string $vendorPath): string\n {\n $environment = getenv('ZF2_PATH');\n if ($environment) {\n return $environment;\n }\n\n if (defined('ZF2_PATH'))...
[ { "docid": "f6d5075dd7b85a77ad24f906a681ff76", "score": "0.7418666", "text": "static public function getLibraryPath();", "title": "" }, { "docid": "5af81391a9f77613fc6c426ea914f8f9", "score": "0.73146176", "text": "public static function GetFrameworkPath()\r\t\t\t{\r\t\t\t\treturn __...
15e82ec00b9d70f938bda4e16c47c52b
Changes a string into a URLfriendly string Derived from MIT fURL::makeFriendly Source: License:
[ { "docid": "df7d72317ae155d53d5bcc0e84632648", "score": "0.6995842", "text": "private static function makeUrlFriendly($string, $max_length=NULL, $delimiter=NULL)\n\t{\n\t\t// This allows omitting the max length, but including a delimiter\n\t\tif ($max_length && !is_numeric($max_length)) {\n\t\t\t$delimi...
[ { "docid": "c1211a85ec91c1560a15358891b084be", "score": "0.7724221", "text": "function friendly_url ( $string )\n{\n\t$string = preg_replace( \"`\\[.*\\]`U\", \"\", $string );\n\t$string = preg_replace( '`&(amp;)?#?[a-z0-9]+;`i', '-', $string );\n\t$string = htmlentities( $string, ENT_COMPAT, 'utf-8' );...
f6bd7a8bfb53b814a8bffe555ff9fe9d
Method to invalidate the instance pool of all tables related to AmendmentSubmissionQC_Search by a foreign key with ON DELETE CASCADE
[ { "docid": "75608021b2104c8e4d358cc24724cc64", "score": "0.5697846", "text": "public static function clearRelatedInstancePool()\n\t{\n\t}", "title": "" } ]
[ { "docid": "534a63d09eafd7f7f4df0f704649a2e0", "score": "0.62795246", "text": "public function forceRelease()\n {\n $this->connection->table($this->table)\n ->where('key', $this->name)\n ->delete();\n }", "title": "" }, { "docid": "a2baa08d5...
f787623a9fdde4e6edbd803e854c740e
used on news.search page
[ { "docid": "60a3ef27456235d1ad61bd793c9a1a79", "score": "0.0", "text": "public function getAll(){\n $query = $this->query()\n ->orderBy('id', 'desc')\n ->paginate(4);\n return $query;\n }", "title": "" } ]
[ { "docid": "f7dcc0ac05ba20ffe2335d6afd7be4a0", "score": "0.71641546", "text": "public function searchNewsAction() {\n\n\t}", "title": "" }, { "docid": "91d3072682e00c0b70703006474fe0d2", "score": "0.67507493", "text": "public function news() {\n $keyword = $_REQUEST['keyword']...
e90e8b4928bf52b4a6b170e974696dfd
RETOURNE L'ID DE LA MAINTENANCE QUI VIENT DETRE CREER
[ { "docid": "2ec57c47ce3829bfe4816c3ef19cfe25", "score": "0.0", "text": "function getIdMaintenance($id_probleme,$dateDebut,$dateFin)\n{\n require 'config/dbconnect.php';\n\n $sql = \"SELECT id FROM `maintenance` WHERE id_probleme = \".$id_probleme.\" and dateDebut='\".$dateDebut.\"' AND dateFin ='\...
[ { "docid": "7a2c8456421c857fb270500b6687c036", "score": "0.70164627", "text": "public function ID_INSTANCIA();", "title": "" }, { "docid": "bf39c2522a9cb9839805f4d493c134e5", "score": "0.6923777", "text": "private function getID(){\n\t\treturn $this->ultimoID;\n\t}", "title": "" ...
f598166986dbc1c26b8d30565a3f4130
Below is an example of adding options you can pass into a validator from your hook function. You might want to include, for example, a range to validate against, or a list of correct values that may change between the field's implementations on different content types. Can delete anything below this line if you don't w...
[ { "docid": "cc6f98b820f1680abc170bff155ae04e", "score": "0.52122056", "text": "public function __construct($options = null)\n {\n if (null !== $options && !is_array($options)) {\n $options = array(\n 'someOptions' => $options\n );\n }\n parent::__construct(...
[ { "docid": "828fc65d5581f7ddd23fca4ce213806a", "score": "0.6267465", "text": "protected function validateOptions()\n\t{\n\t}", "title": "" }, { "docid": "0fddcd9bd06ee1d13cc218371e703b69", "score": "0.6151913", "text": "public function beforeValidate($options = array()) {\n \n...
7165007e7c962aaff3de7498a0f643d2
Array of attributes to getter functions (for serialization of requests)
[ { "docid": "493b38b40d53841a1300d3df811c097d", "score": "0.0", "text": "public static function getters()\n {\n return self::$getters;\n }", "title": "" } ]
[ { "docid": "dcdd7e78446e59496a91ef934007234a", "score": "0.65155315", "text": "function attributes()\n {\n return array( \"post\", \"get\", \"session\" );\n }", "title": "" }, { "docid": "2154f1cb9160c7a13493622cdd3c7325", "score": "0.65085584", "text": "public function ...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "361652edbcde58625e2cb9750ead1217", "score": "0.0", "text": "public function index()\n {\n $penduduks = Penduduk::with('kartu_keluarga', 'kewarganegaraan')\n ->paginate(25);\n\n return view('penduduk.index', compact('penduduks'));\n }", "title": "" ...
[ { "docid": "1d384f4e78f98647387c1b7298b0696a", "score": "0.74735427", "text": "public function index ()\n {\n $this->list();\n }", "title": "" }, { "docid": "4bed8c9cfd05d9666f1acd8791970421", "score": "0.74595845", "text": "public function index()\n {\n /** @var...
9a1784aca28afd976e814688918906de
A number of helper functions for dealing with the content of the $_POST array To be used with submit button returns from forms with more then one submit button. Takes a $_POST ["formnamefunction"] => formname[record][field] and trims out the record to return it.
[ { "docid": "9ae63b732b9d21d85cd09aba5140136b", "score": "0.0", "text": "function trimNumber($record){\n \n // this will be of the form \"[Thing I want][stuff]\"\n $record = strstr(strstr($record, '['), ']', true);\n // is now of the form \"[thing I want\"\n $record = substr($record, 1);\n // clean...
[ { "docid": "d7a11633b30a4a54733b4996f220d553", "score": "0.67071724", "text": "function cleanpost($index = NULL, $xss_clean = FALSE) {\n // Check if a field has been provided\n if ($index === NULL AND !empty($_POST)) {\n $post = array();\n //TODO Sundar Check post array for clean\n//...
1b39e02288f33f806d95ffad0bcd4534
Seed the application's database.
[ { "docid": "fc7976b9806107b1f51d840281cbc432", "score": "0.0", "text": "public function run()\n {\n // $this->call(UsersTableSeeder::class);\n $this->call(ComunasTableSeeder::class);\n $this->call(MesesTableSeeder::class);\n $this->call(TiposRadiacionTableSeeder::class);\n...
[ { "docid": "9d79d54688565c6d917c9faae161628a", "score": "0.8064933", "text": "public static function dbSeed(){\n\t\tif (App::runningUnitTests()) {\n\t\t\t//Turn foreign key checks off\n\t\t\tDB::statement('SET FOREIGN_KEY_CHECKS=0;');// <- USE WITH CAUTION!\n\t\t\t//Seed tables\n\t\t\tArtisan::call('db:...
268fdc0b15f96c1e971d880f546820aa
FOR SYSTEM // After image cache was cleaned
[ { "docid": "10c148ce511ecc2261a6999e33dc898e", "score": "0.0", "text": "public function cleanCatalogImagesCacheAfter()\n {\n Mage::helper('searchanise/ApiSe')->queueImport();\n\n return $this;\n }", "title": "" } ]
[ { "docid": "90832e19bfb3417499eae12236785b0d", "score": "0.7381937", "text": "function amty_repopulateImageCache(){\r\n\tamty_populateCache(1);\r\n}", "title": "" }, { "docid": "7c252cc0225a3a947bd038307223ea76", "score": "0.7306487", "text": "public function clearCacheImage()\n {...
1ddf5b2b1d83468829f20f97ae69dd72
Return true if controller is callable, false otherwise.
[ { "docid": "a7b1d653069822c7a9afc1d5a3a90bca", "score": "0.62392753", "text": "private function _callable()\n {\n if ($this->_validObject === true) {\n \n if ($this->_discoveredHandler && \n class_exists($this->_discoveredHandler)) {\n \n ...
[ { "docid": "e8c7308c9b6eeb901b65091077df666c", "score": "0.7697344", "text": "public static function hasController()\n {\n return false;\n }", "title": "" }, { "docid": "752cf6936658f19ff0fb2498810b4d36", "score": "0.7481154", "text": "public function hasControllerName()...
1c8b71ac596a73b4876539aba0999d98
/ Time Ago Function Starts ///
[ { "docid": "2ecbb22cf38618d60d488a9de744127a", "score": "0.0", "text": "function time_ago($timestamp){ \n $time_ago = strtotime($timestamp); \n $current_time = time(); \n $time_difference = $current_time - $time_ago; \n $seconds = $time_difference; \n $minutes = round($seconds / 60 ); ...
[ { "docid": "f43301f60e5009488ab6197883a83719", "score": "0.73139596", "text": "private function airtime()\n {\n }", "title": "" }, { "docid": "4d38cbab68f695bb564880bb0c25ef4d", "score": "0.68103766", "text": "function timeStart()\n {\n Measure::getInstance()\n ...
9657a70c2ee9c4c30b43a6b71e2580f2
Returns true if the value is an integer or float
[ { "docid": "6a18339d56293c38f37d2e03948e33be", "score": "0.5863477", "text": "public function isNumber(): bool\n {\n return false;\n }", "title": "" } ]
[ { "docid": "cce6aef60e37dca848a336ce98277a75", "score": "0.7940585", "text": "final public static function is($value):bool\n {\n return is_float($value);\n }", "title": "" }, { "docid": "bb6c93426ccffdf6d261b65224ef3e0c", "score": "0.76848197", "text": "private static fu...
4e89fcb41923a2fe056ccacf0de2da66
Return the properties that have been removed
[ { "docid": "e59765b63e7f14d0479f5ad464fc5799", "score": "0.8602754", "text": "public function getPropertiesToRemove()\n {\n return $this->propertiesToRemove;\n }", "title": "" } ]
[ { "docid": "17b6e2061c03dc380f968f020880cda9", "score": "0.76168805", "text": "private function generatePropertiesToRemove()\n {\n $properties = array();\n if (array_key_exists($this->getTableName(), $this->oldModelFile)) {\n if (array_key_exists(\"properties\", $this->oldMod...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "d888b52a9969ccd39cf0ac9ed5ba0392", "score": "0.0", "text": "public function rules()\n {\n return [\n 'nama_wisata' => 'required|max:255',\n 'alamat' => 'required|max:255',\n 'lokasi' => 'required',\n 'jarak' => 'required|integer',\n ...
[ { "docid": "f3c76174c5a69ad644c99824df4f1003", "score": "0.8072995", "text": "public function getValidationRules();", "title": "" }, { "docid": "ed13728d1c4b0e3b8d70c0217634ba83", "score": "0.8068863", "text": "public function getValidationRules()\n\t{\n\t\treturn $this->validationRu...
dc74ea9f8c37d037b34a9424d3827329
Contract Provision Valued Item List.
[ { "docid": "f5fa5b0b4ceabfd3619336e3fd51dae9", "score": "0.0", "text": "public function getValuedItem()\n {\n return $this->valuedItem;\n }", "title": "" } ]
[ { "docid": "4cdf52f31b735e1bc015ac54ab513fcf", "score": "0.6355111", "text": "public function getItemsList(){\n return $this->_get(7);\n }", "title": "" }, { "docid": "1cf5930f147b9d04d285e02a1262cdf0", "score": "0.6302718", "text": "function getItemList() {\r\n return ...
0eb9813d4a61366dda09c3844f78aaa7
Sets value based on offset.
[ { "docid": "5fa2dba714fc6f6f69ac4b774d64d076", "score": "0.0", "text": "public function offsetSet($offset, $value)\r\n {\r\n if (is_null($offset)) {\r\n $this->container[] = $value;\r\n } else {\r\n $this->container[$offset] = $value;\r\n }\r\n ...
[ { "docid": "82b5967479762f1678517a8dea0e5302", "score": "0.83198756", "text": "function __set($offset, $value)\n\t{\n\t\t$this->data[$offset] = $value ;\n\t}", "title": "" }, { "docid": "95b2f59e0d196c815aceca7293f97d70", "score": "0.82879174", "text": "function offsetSet($offset, $v...
4c10b34b50642209fe3ea07770f11035
Common method to get binded values
[ { "docid": "3c0fb3678215d87eb89ad157af2737cf", "score": "0.5740512", "text": "function getbindValues($table, $data)\n{\n global $db_lnk;\n $qry_val_arr = array(\n $table\n );\n $result = pg_query_params($db_lnk, 'SELECT * FROM information_schema.columns WHERE table_name = $1 ', $qry_v...
[ { "docid": "3ee3659e86a5814e7cb6898ed7851453", "score": "0.7821961", "text": "public function getBindValues();", "title": "" }, { "docid": "1c3629f535f058c291e273ee2370ab7b", "score": "0.6692077", "text": "public function getValueBinder(): ValueBinder;", "title": "" }, { ...
a5c63541af57ee60f7a115838e6fe7d9
Finds and displays a lieuxAVisiter entity.
[ { "docid": "8611206f168a9d74b6bc2e94974ff7ee", "score": "0.6340943", "text": "public function showAction(LieuxAVisiter $lieuxAVisiter)\n {\n $deleteForm = $this->createDeleteForm($lieuxAVisiter);\n\n return $this->render('lieuxavisiter/ShowAsie.html.twig', array(\n 'lieuxAVis...
[ { "docid": "ad45ad91a2716aae7909f778f2da153c", "score": "0.61170244", "text": "public function show(incidente $incidente)\n {\n //\n }", "title": "" }, { "docid": "8028d280a4e6932ffea4308163f38e87", "score": "0.6024108", "text": "public function entity_viewer()\n\t{\n\t\...
5a85293caa8687817a6d56afb0948418
return self::where('key', $key)>where('user_id', $userId)>first();
[ { "docid": "16a0ca3e62d7ff16787b7e4ceecec4b4", "score": "0.0", "text": "public static function getValue($key, $userId)\n {\n\n $q = new Queue('getQueue');\n $q->broadcast(['key' => $key, 'user_id' => $userId, 'requestIndex'=> $_GET['requestIndex']]);\n $a = new Queue('answer');\n...
[ { "docid": "f16fcadbd4450f3629bef6e63d93d402", "score": "0.5993171", "text": "public function retrieveByToken($identifier, $token)\n{\n\n // TODO: Implement retrieveByToken() method.\n $qry = user::where('id_kl','=',$identifier)->where('remember_token','=',$token);\n\n if($qry->count() >0)\n ...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "e0b04e672070d25c63b228ecce652174", "score": "0.0", "text": "public function __construct()\n {\n //\n }", "title": "" } ]
[ { "docid": "9ca4cb085e75ebbc4eeb6003cf283f0a", "score": "0.7571501", "text": "protected function createController(): void\n {\n $this->controllerName = $this->request->getControllerName();\n $newControllerName = ($this->controllerName === 'default' || empty($this->controllerName)) ?\n ...
c1d269bf5acff669f260139f71915141
Looks through all available sources for the first that can handle this key, then returns the value from that source.
[ { "docid": "6f8019e37918aef1a940fe164fab1d02", "score": "0.6666744", "text": "public function get(string $key)\n {\n foreach ($this->sources as $source) {\n if ($source->hasKey($key)) {\n $value = $source->get($key);\n break;\n }\n }\n...
[ { "docid": "0c0418f5b7558869118f8c15fa5e5178", "score": "0.6218476", "text": "public function get( $key ) {\n\t\t$target = $this->targets->get( (string)$key );\n\t\tif ( $target ) {\n\t\t\treturn $target;\n\t\t}\n\n\t\tif ( isset( $this->lookups[ $key ] ) ) {\n\t\t\t// Resolve the lookup batch and store...
27e1564deae6150d3d0a448bcdcb025f
Set the value of quantityAdvice
[ { "docid": "05d662d6e65cd569909f3ad244f5c6c0", "score": "0.70610946", "text": "public function setQuantityAdvice(int $quantityAdvice): self\n {\n $this->quantityAdvice = $quantityAdvice;\n\n return $this;\n }", "title": "" } ]
[ { "docid": "278bff04c3dfdc5b322eaafca35d7e2e", "score": "0.663153", "text": "public function getQuantityAdvice(): int\n {\n return $this->quantityAdvice;\n }", "title": "" }, { "docid": "cf792a2c3383af4d7894290322f62eaf", "score": "0.6433444", "text": "public function se...
ab7b826ab1ebe01281ef292e19516b5b
Generates an URLfriendly slug from the given string.
[ { "docid": "ca96a10c253ff36c6df8a814d4557be1", "score": "0.0", "text": "public static function slug($str, $separator = '-')\n\t\t{\n\t\t\t$str = static::toAscii($str);\n\n\t\t\t// Remove all characters that are neither alphanumeric, nor the separator nor a whitespace.\n\t\t\t$str = preg_replace('![^'.pr...
[ { "docid": "e4861c03f94a5f392ab1b47f2cc2539d", "score": "0.8306309", "text": "public static function slug($string)\r\n {\r\n $slug = SlugGenerator::cleanurl($string);\r\n \r\n return $slug;\r\n }", "title": "" }, { "docid": "be705ab1e4d03dee8ca5529bb1438533", "...
30ff8fc0767f84ca66468123dfe4ea25
Flat list of all files in the directory (recursive)
[ { "docid": "04a029df3c53a5c904f2544663d96739", "score": "0.0", "text": "protected static function get_dir_contents($dir, &$results = []) {\n $files = scandir($dir);\n\n foreach ($files as $key => $value) {\n $path = realpath($dir.DIRECTORY_SEPARATOR.$value);\n if (!is...
[ { "docid": "a8bfeae2eaf5ab0f2e8051f059a31895", "score": "0.75418884", "text": "public function getAllFilesFromDir(){\r\n if(empty($this->allFiles)){\r\n $this->rescanFilesInDir();\r\n }\r\n return $this->allFiles;\r\n }", ...
2ca4b4ce5c8cc4b16dbb5e9f107a5e7e
connect to my database
[ { "docid": "e6af660de51628206fd2d27644c6748b", "score": "0.0", "text": "public function mysqlconnect(){\n\n\n\n\n\n//login to people table\n\t$this->databaseUsername = \"root\";\n\t$this->password = \"root\";\n\t$this->databaseName = \"cs460\";\n\t$this->mySQLServerName = \"localhost\";\n\n\t$this->mysq...
[ { "docid": "a1614fef44d539059a7d8bf33f8c6a8c", "score": "0.81373566", "text": "function connectToDatabase() {\r\n // Connect to your MySQL database here\r\n }", "title": "" }, { "docid": "5af139fe77d4f91577173c7cec8dc8b2", "score": "0.8131196", "text": "abstract protected f...
0791758b066b3f7655e87d3ce6d1d834
removeSecGroup Retrieves an user record.
[ { "docid": "8eefffc655ad8602213009d2a55a9647", "score": "0.0", "text": "public function getUser($userid)\n {\n return $this->_userDao->getUser($userid);\n }", "title": "" } ]
[ { "docid": "fbebb0f90141dabb04fc8677515949f2", "score": "0.68657386", "text": "public function removeSecGroup($groupId)\n {\n $result = new Dto_FormResult();\n $result = $this->allowedToEditGroup($result, $groupId);\n\n if ($result->isSuccess()) {\n $this->_userDao->re...
49ab8624f478bab573967300a081db57
Vertically mirror (flip) the image
[ { "docid": "bcb1aabcd459697bd2c7e2528b031a72", "score": "0.6056232", "text": "function __flip(&$tmp) {\r\r\n\t\treturn $tmp->target->flipImage();\r\r\n\t\t}", "title": "" } ]
[ { "docid": "3f1d3c5a4fb419c856d449b2e5b299b8", "score": "0.7206328", "text": "public function verticalFlip()\r\n {\r\n $this->setParam('flip', 1);\r\n return true;\r\n }", "title": "" }, { "docid": "8ba501d220747a1b6de6ece1ed5b6585", "score": "0.675668", "text": "...
5bf4eb8921e4cce6ba58ea62c54615a6
Actualiza los datos de un usuario en funcion de su niu y tipo usuario
[ { "docid": "99364e582359ea58880cc3ed1625bd99", "score": "0.6149872", "text": "public static function updateStudentByNiu($conn, $niu, $nombre, $apellido, $telefono, $email, $id_tipo_usuario){\n $student = null;\n \n if(isset($conn)){\n try{\n ...
[ { "docid": "1c01765c5df10051e8e99cc3af8a9f77", "score": "0.71565145", "text": "public function actualizar_usuario_controlador()\n {\n //Recibiendo el id \n $id = mainModel2::decryption($_POST['usu_id_up']);\n $id = mainModel2::limpiar_cadena($id);\n\n //comprobar el usuar...
f9fdf2c410e6b0026bd17a6bdbdb0015
Returns method if set
[ { "docid": "ccd89d5349dbd8622ba03cb4c7a3e9f4", "score": "0.6415794", "text": "public function getMethod();", "title": "" } ]
[ { "docid": "551cb4e991d07e293c29bd6cf51bd964", "score": "0.71245", "text": "public function get_method() { }", "title": "" }, { "docid": "8b29c70cd368f0a463e871d8bd2f17c1", "score": "0.6858751", "text": "public function method(){\n return $this->method;\n }", "title": "" },...
7fbf72cf197cbf55dbc7163abc149fe9
Get a human readable list of users with allowed permissions for the Dashboard.
[ { "docid": "a40b33947d3ae5b882a179fb4a975125", "score": "0.0", "text": "public function get_allowed_users( $id_only = false ) {\r\n\t\t$result = false;\r\n\r\n\t\tif ( WPMUDEV_LIMIT_TO_USER ) {\r\n\t\t\t// Hardcoded list of users.\r\n\t\t\tif ( is_array( WPMUDEV_LIMIT_TO_USER ) ) {\r\n\t\t\t\t$allowed =...
[ { "docid": "6d9ff6114ebdb883831798851ec6e304", "score": "0.7010213", "text": "public function getUserPermissionList()\n {\n return UserPermission::all();\n }", "title": "" }, { "docid": "8764d2d5e11bbdb163d0035d2523ab85", "score": "0.69043285", "text": "public function u...
db070c416308fa73f3e667331c83cb3e
Contains the view being loaded for the section __construct() Constructor for the Thinker\Framework\Controller Class
[ { "docid": "558188638c3a41ae12e68d3f3ce80df9", "score": "0.0", "text": "public function __construct()\n\t{\n\t\t// Initialize classInfo with information about the target class\n\t\t$this->reflectionClass = new ReflectionClass($this);\n\t\t$this->data = array();\n\n\t\t// Override view if necessary\n\t\t...
[ { "docid": "3b5c83bfaae12ed928f527bfbad267cf", "score": "0.74231553", "text": "public function __construct() {\n\t\t$this->_view = new View (new Request);\n\t}", "title": "" }, { "docid": "b4f99ce833a7d289bf6a5e298648a74d", "score": "0.73714983", "text": "function __construct() {\r\n...
1d7f35e73a2abadad0d684defc1c5265
Finds the Clientes model based on its primary key value. If the model is not found, a 404 HTTP exception will be thrown.
[ { "docid": "e2c05bd45dfed31cfe81837e97df22f7", "score": "0.65759", "text": "protected function findModel($id)\n {\n if (($model = Clientes::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.')...
[ { "docid": "bea7dd06933a1bdaaba8c8d95cb75e5d", "score": "0.6850645", "text": "protected function findModel($id)\n {\n if (($model = clients::findOne($id)) !== null) {\n return $model;\n } else {\n throw new NotFoundHttpException('The requested page does not exist.'...
1cafac7939f6f582105de4a715501546
Store a local image copy to a destination path.
[ { "docid": "a0342d3e46a1cad5cd2474608d114d63", "score": "0.76849097", "text": "public function storeLocalSource($localCopy, $destination)\n\t{\n\t\t$maxCachedImageSize = $this->getCachedCloudImageSize();\n\n\t\t// Resize if constrained by maxCachedImageSizes setting\n\t\tif ($maxCachedImageSize > 0)\n\t...
[ { "docid": "3f2ea45d51b6559050b0985d5dc4546c", "score": "0.64612854", "text": "private function _storeRemoteImage($remote_image, $local_image) {\n\t\treturn JFile::write($local_image, JFile::read($remote_image));\n\t}", "title": "" }, { "docid": "e0ed68c18d6c3bfc9d76eb2b75358c9a", "score...
3bc38897c1a63b6e3727357f166e4f7e
Pending password change added
[ { "docid": "cb04e316767f45ed777408e35c300485", "score": "0.6588416", "text": "public function pendingPasswordChange(ArmorUserInterface $user):void\n {\n\n }", "title": "" } ]
[ { "docid": "15e6862740c91afb0cc0de26ae217636", "score": "0.74337715", "text": "public function changePassword() {}", "title": "" }, { "docid": "9389d4bbd1cfe76f716d92c08a06e2a0", "score": "0.692679", "text": "public function getNewPassword();", "title": "" }, { "docid": "...
17bf374678e1e0113e632fd9f1ab4dd3
Update the specified MasterEducations in storage.
[ { "docid": "91057b3426b9b208410dc6777f1b93f2", "score": "0.6164342", "text": "public function update($id, UpdateMasterEducationsRequest $request)\n {\n $masterEducations = $this->masterEducationsRepository->find($id);\n\n if (empty($masterEducations)) {\n Flash::error('Master...
[ { "docid": "e6f02b6ba68332510224c9c7c0422b65", "score": "0.5785154", "text": "public function update(Request $request, Master $master)\n {\n access([\"can-owner\", \"can-host\", \"can-manager\"]);\n\n $data = $request->validate([\n 'team_id' => 'required|exists:teams,id',\n ...
5dfd0a6d7870aa31401bab99f65b8255
Executes the SQL statement provided
[ { "docid": "f0fe593b37a5e12a2a5b948ecaad551b", "score": "0.0", "text": "function executeSQL($sql,$getRecords = false){\n if ($rs = $this->query($sql)) {\n if ($getRecords){\n $records = array();\n while ($record = $this->fetch_array($rs)) {\n $records[] = $record;\n ...
[ { "docid": "b4984b52343116fff00bf7dade8d8e03", "score": "0.7926138", "text": "abstract public function execute($sql);", "title": "" }, { "docid": "561479b81a6e67873eebab7f76545980", "score": "0.7744639", "text": "function executeSQL($sql);", "title": "" }, { "docid": "b54...
75290a5d8d5caf78750dedd0519e4d30
Get the unique identifier for the user.
[ { "docid": "74e39e5bd6ce25501a8a3852c1211103", "score": "0.0", "text": "public function getAuthIdentifier()\n\t{\n\t\treturn $this->getKey();\n\t}", "title": "" } ]
[ { "docid": "ea6b0d548017a2fb1186a22fc49140e5", "score": "0.89545506", "text": "public function getUserUniqueIdentifier()\n\t{\n\t\t$info = $this->getUserInfo();\n\t\t//return (int) $info['id'];\n\t\treturn $info['id'];\n\t}", "title": "" }, { "docid": "8961acd9bee05da345df85f2bd8271c6", ...
9b49e3cab20531a66b9b5ee18d7f43e2
Displays a single LicensesDocumentsPage model.
[ { "docid": "e1db9d8c78d52b65de8b8c7ea57830a1", "score": "0.0", "text": "public function actionView($id)\n {\n return $this->render('view', [\n 'model' => $this->findModel($id),\n ]);\n }", "title": "" } ]
[ { "docid": "b42a0928e7ebb3da47b060b2c91abd48", "score": "0.779068", "text": "public function actionIndex()\n {\n $searchModel = new LicensesDocumentsPageSearch();\n $dataProvider = $searchModel->search(Yii::$app->request->queryParams);\n\n return $this->render('index', [\n ...
ddfdb63b51a2244698db79cb274f037f
Allows to query the first record that match the specified conditions
[ { "docid": "361be28d716f103971af9dc4edc9a9c2", "score": "0.0", "text": "public static function findFirst($parameters = null)\n {\n return parent::findFirst($parameters);\n }", "title": "" } ]
[ { "docid": "5e783e53ec651e64392efc5c94d89835", "score": "0.6867269", "text": "public function first(){\r\n $sql = 'SELECT ';\r\n $sql.= $this->param['field'] ? $this->param['field'] : '*';\r\n $sql.= ' FROM '.$this->table;\r\n $sql.= $this->param['join'] ? ' '.$this->param['...
753b3dbc8309ff2be6ddf4ef2071c92a
goes through tables 'fk' rules and builds ['tableName' => 'depth'] which will be used for consistent model mapping
[ { "docid": "b73caec9aa86723be22c21991ab4911e", "score": "0.6091626", "text": "public static function DEPTH_BUILDER($table, &$depth) {\n if ($depth-- > 0 && isset(Config::get('TABLES')[$table]['fk']) === true) {\n foreach (Config::get('TABLES')[$table]['fk'] as $column => $referenceRule) {\n ...
[ { "docid": "071b54ff7da802386c272c101389a1d7", "score": "0.62919194", "text": "public static function referenceFK($table, $rows, &$depth = 1) {\n if (isset(Config::get('TABLES')[$table]['fk']) === true) {\n //-> fk rules exist for the table\n if ($depth > 0) {\n $d = $depth;\...
ddfdb63b51a2244698db79cb274f037f
Allows to query the first record that match the specified conditions
[ { "docid": "361be28d716f103971af9dc4edc9a9c2", "score": "0.0", "text": "public static function findFirst($parameters = null)\n {\n return parent::findFirst($parameters);\n }", "title": "" } ]
[ { "docid": "4763deda2fa14115aa661ff2889b9f92", "score": "0.7403492", "text": "public function first()\r\n {\r\n call_user_func_array( array(&$this, 'where'), func_get_args());\r\n $this->queryArgs['limit'] = 1;\r\n $this->queryArgs['offset'] = 0;\r\n return $this->run();\r...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\treturn $this->showForm('create');\n\t}", "title": "" }, { "docid": "2bc399e3e37eaad09b15e38f2a68e11a", "score": "0.75727344", "text": "public function create()\n\t{\n\t\t...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "3579799e4dc8ed4919ebe794082591f1", "score": "0.0", "text": "public function index()\n {\n //\n }", "title": "" } ]
[ { "docid": "d4a0ecd8566af1bfd9231147ca1e458f", "score": "0.7474345", "text": "public function list()\n {\n try {\n $result = $this->get_all();\n $this->response($result);\n } catch (Exception $e) {\n $this->response(array(\n \"message\" =>...
08174bc790a3e562cdfa1a5cc5a837ea
Asserts the given error summaries are present on the page. If an expected error is not found, or if an error not in the list is present, a fail is raised.
[ { "docid": "92a5c2e68f6623eb9a394e03b3f78b44", "score": "0.7809745", "text": "protected function assertErrorSummaries(array $summaries) {\n $this->assertRequirementSummaries($summaries, 'error');\n }", "title": "" } ]
[ { "docid": "f5c917ed0cf280eab0333085320abcd5", "score": "0.64553744", "text": "protected function assertWarningSummaries(array $summaries) {\n $this->assertRequirementSummaries($summaries, 'warning');\n }", "title": "" }, { "docid": "a6f50bf386d96d57c7933211089cebdb", "score": "0.607...
ef3338db9ea4251054d666970d028614
Filter the query on the holder column Example usage: $query>filterByHolder('fooValue'); // WHERE holder = 'fooValue' $query>filterByHolder('%fooValue%', Criteria::LIKE); // WHERE holder LIKE '%fooValue%'
[ { "docid": "947b592e0a138c592d569116205dc66e", "score": "0.65913045", "text": "public function filterByHolder($holder = null, $comparison = null)\n {\n if (null === $comparison) {\n if (is_array($holder)) {\n $comparison = Criteria::IN;\n }\n }\n\n ...
[ { "docid": "689c865f14fccaa887c9714c65d2b294", "score": "0.50300276", "text": "public function filter($column, $value=NULL, $operator=\"=\") {\n \t if(is_string($column)) {\n \t //with a value passed in this confirms its a new method of filter \n \t if($value !== NULL) {\n \t //operator snif...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "c86830fa3d26c78b687318957a62c2ad", "score": "0.0", "text": "public function store(Request $request)\n {\n $task = Task::create($request->only(['description', 'status','type','assigned_to','next_action_date']));\n return new TaskResource($task);\n }", "title": "" } ]
[ { "docid": "79da2146a3794a65b80951c7ea2a2404", "score": "0.6621547", "text": "public function save()\n {\n $this->storage->save();\n }", "title": "" }, { "docid": "f934191a4b4b75a1fb96952dd934d298", "score": "0.6508533", "text": "public function store()\n {\n $...
ad99a83b896a31cd0e320c4143447d52
Operation restAccountsAddressesOptionTypesPost Create address option type
[ { "docid": "f5c63189af9e004b99b1ab9e6f5bef0d", "score": "0.57237315", "text": "public function restAccountsAddressesOptionTypesPost($_rest_accounts_addresses_option_types = null)\n {\n list($response) = $this->restAccountsAddressesOptionTypesPostWithHttpInfo($_rest_accounts_addresses_option_ty...
[ { "docid": "d16385f17606c78f81858fd13995a811", "score": "0.76164705", "text": "protected function restAccountsAddressesOptionTypesPostRequest($_rest_accounts_addresses_option_types = null)\n {\n\n $resourcePath = '/rest/accounts/addresses/option_types';\n $formParams = [];\n $que...
618c4d145f964ad1822e0c21350e4ff9
Get the throttle key for the given request.
[ { "docid": "51f8ecd0778d4d5d4e408e2217628181", "score": "0.7362366", "text": "protected function throttleKey(Request $request)\n {\n return Str::lower($request->input($this->username())) . '|' . $request->ip();\n }", "title": "" } ]
[ { "docid": "13e3eeb7fe1bd3e25baa480f65db3b39", "score": "0.7485706", "text": "protected function throttleKey(Request $request): string\n {\n return Str::lower($request->input($this->username())) . '|' . $request->ip();\n }", "title": "" }, { "docid": "be72b79be2e7d6ffc485d006fb6...
14a14e15c71275383e87c4ca12231738
Redirects to a nicer search permalink. Redirects query string based search URIs (`s=`) to a permalink based URI (`/search/`). Additional query string arguments are preserved.
[ { "docid": "b23c125c40346e14a400403002f6a5f9", "score": "0.8624368", "text": "public function redirect_search() {\n\t\tglobal $wp_rewrite;\n\n\t\tif ( ! get_option( 'permalink_structure' ) || ! is_search() || is_admin() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$search_base = $wp_rewrite->search_base;\n\n\t\tif ...
[ { "docid": "166a1710e637940e97e475da5751be52", "score": "0.8436512", "text": "function nice_search_redirect() {\n\t\t\tglobal $wp_rewrite;\n\n\t\t\tif ( !isset( $wp_rewrite ) || !is_object( $wp_rewrite ) || !$wp_rewrite->using_permalinks() ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$search_base = $wp_rewrit...
8b5c76e008f1bdd1f2e6ea9126ecd40e
Return the current lead being processed. Should only be called when a form has been submitted. If called before the "real" lead has been saved to the database, uses self::create_lead() to create a temporary lead to work with.
[ { "docid": "6607b506ec4a7377e740e410b6e0cd07", "score": "0.85519546", "text": "public static function get_current_lead() {\n\n // if a GF submission is not in process, always return false\n if(!rgpost('gform_submit'))\n return false;\n\n if(!self::$_current_lead) {\n ...
[ { "docid": "53e8c5895072daf23ee0b2352e9e0e92", "score": "0.6046868", "text": "public function entry_post_save( $lead, $form ) {\n\t\tif ( $this->is_processing( $form ) ) {\n\t\t\t// Payment ID\n\t\t\t$payment_id = gform_get_meta( $lead['id'], 'pronamic_payment_id' );\n\n\t\t\tif ( ! empty( $payment_id )...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "64f6226aa0c227b9114328c40fc22c81", "score": "0.0", "text": "public function edit($id)\n {\n if(request()->ajax())\n {\n $data = booking::findOrFail($id);\n return response()->json(['result' => $data]);\n }\n }", "title": "" } ]
[ { "docid": "b51dc492ce2ae6c7687b6a4d337aec3c", "score": "0.77745754", "text": "public function edit()\n {\n $model = $this->getRequestedModel();\n\n $view = View::make(\n $this->getViewName('edit'),\n compact('model') + array(\n 'pageTitle' => 'Edit...
c0bff54bef44227c2ed20dda459784a5
Set the value from the field tb_autor_cidadevive
[ { "docid": "69a28a1f0c149f9b438789596372b5f6", "score": "0.64567745", "text": "public function setTbAutorCidadevive($tbAutorCidadevive){\n\t$this->tbAutorCidadevive = $tbAutorCidadevive;\n}", "title": "" } ]
[ { "docid": "ee83ba5974e4439c41c342aa934d30ae", "score": "0.66603655", "text": "public function atualizarAutor($autor){\n $codigo = $autor->getCodigo();\n $nome = $autor->getNome();\n $foto = $autor->getFoto();\n $descricao = $autor->getDescricao();\n \n $sql = \...
33e1b758b4975149f795b0a76f44d564
Get Resource Url for GetAttributeTypeRules
[ { "docid": "7a858a8b728689232529f97a7c14df4e", "score": "0.67255205", "text": "public static function getAttributeTypeRulesUrl($filter, $pageSize, $responseFields, $sortBy, $startIndex)\r\n\t{\r\n\t\t$url = \"/api/commerce/catalog/admin/attributedefinition/attributes/typerules/?startIndex={startIndex}&p...
[ { "docid": "de812c83889c474870ba89ffecb4ca89", "score": "0.6693971", "text": "public function getUrlAttributePath();", "title": "" }, { "docid": "3bcd226094ff001e2d4eb7e1df48202a", "score": "0.59882516", "text": "public function getResourceURL($type)\n {\n return self::DIRE...
ccbac23fe5060d65630b19e5693a41e9
Get the validation rules that apply to the request.
[ { "docid": "9c2037b21778ac249bd0e84a0f636954", "score": "0.0", "text": "public function rules()\n {\n $permission = Permission::where('email', \\Auth::user()->email)\n ->where('event_id', \\Route::current()->parameter('event'))\n ->first();\n\n $possible = Arr::plu...
[ { "docid": "22661db8dde56c23a89087f21f08827f", "score": "0.8351514", "text": "public function rules()\n {\n // dd($this->request->all());\n $rules = $this->custom_rules();\n return $rules;\n }", "title": "" }, { "docid": "fbfcab70342d40a351f21f930cac2460", "sco...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "16b636ac58bb4031bcdfbdaa37545f05", "score": "0.0", "text": "public function show(Visitor $visitor)\n {\n return view('visitors.show', compact('visitor'));\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e273034885bffd94845673642335bb27", "score": "0.7371966", "text": "public function show(Resource $resource)\n ...
1da654837ace9be89c2c9f1ddd5c329e
Displays all Clinical Trials for Users
[ { "docid": "8af0e34b8abbd3151cd3a9720e26b3f9", "score": "0.0", "text": "public function indexClinicalApplicationsAjax() {\n $clinicalmanages = ClinicalManage::orderByDesc('id')->get();\n $data = [];\n foreach ($clinicalmanages as $k => $clinicalmanage) {\n $data[$k][] = @...
[ { "docid": "5d047b14f9823af3c41119ed4320e608", "score": "0.66941476", "text": "public function findtrials() {\n return view('clinicalTrial.find', ['clinicaltrials' => ClinicalTrial::where('status', 1)->orderby('id', 'DESC')->get()]);\n }", "title": "" }, { "docid": "ae66ce21b47393f...
df9ae84c753b38a32d65f0a1d9f78eb4
Inserta los controles de alta
[ { "docid": "68a885742fb2d661414e2784c08efa61", "score": "0.0", "text": "public function insert_control_high_impact(){\n\n\n\n date_default_timezone_set(\"America/Bogota\");\n $fActual = date('Y-m-d H:i:s');\n $ots_combinadas = ($this->input->post('multi_ordenes'))? $this->input->pos...
[ { "docid": "a6be4e5787931b02eb5072223bd69704", "score": "0.6924494", "text": "public function insertAccesorio(){\n\t\t$this->marca = $_POST['marca'];\n\t\t$this->modelo = $_POST['modelo'];\n\n\t\t/*Insercion en la base de datos*/\n\t\t$this->db->insert('accesorios', $this);\n\t}", "title": "" }, ...
491e69f36f9c0299acef5e06a8bf8fb3
Add rule to registry.
[ { "docid": "8e3423bcf2d131917bedc0ccfb272329", "score": "0.8027979", "text": "public function add(Rule $rule): void;", "title": "" } ]
[ { "docid": "9ca5dfa36fc2970a094679f7e1719f92", "score": "0.74060863", "text": "public function addRule(Rule $rule)\n { \n $this->rules[] = $rule;\n }", "title": "" }, { "docid": "27ff521d44b971a328b039d7e1fd309e", "score": "0.71102595", "text": "public function addRule(R...
ca174e02a92dcd165de103dc78a12f11
Kiem tra so du truoc va sau giao dich
[ { "docid": "5aed8ec70655cad57676e4672e53ce89", "score": "0.0", "text": "protected function verifyBalanceChange($balance_before)\n\t{\n\t\t$balance_cur = $this->purse->balance;\n\n\t\t$balance_after = $this->makeBalanceAfter($balance_before);\n\n\t\tif ($balance_cur < 0)\n\t\t{\n\t\t\treturn $this->block...
[ { "docid": "e76b803ba82701d96416580857e2b562", "score": "0.6574451", "text": "public function cekPulsa();", "title": "" }, { "docid": "1a669124b0c7847b428bb55c825eec03", "score": "0.65060824", "text": "public function bersuara()\n {\n return \"meowng... meowng ... meowng .....
aedd772f41e7d25c90deabad45137fb1
Checks whether file is of type extensions available
[ { "docid": "841bce772861d37c2be2ce75b2cf6acd", "score": "0.75519675", "text": "public function fileTypeIsCorrect()\r\n {\r\n $extensions = array(\"jpeg\",\"jpg\",\"png\", \"jpeg\");\r\n\r\n $of_type_extensions = false;\r\n\r\n $type = $this->file_type;\r\n\r\n if(in_array($type, $e...
[ { "docid": "2835fb442ee90dcb5a6b853d277794e5", "score": "0.84604645", "text": "function validate_ext() {\n\t\t$extension = $this->get_ext($this->theFile);\n\t\t$ext_array = $this->extensions;\n\t\tif (in_array($extension, $ext_array)) { //Check if file's ext is in the list of allowed exts\n\t\t\treturn ...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "1657e84eaed59e287692b08246cbcfa9", "score": "0.0", "text": "public function store(AddProductRequest $request)\n {\n \n //echo json_encode($_FILES); exit;\n \n $date = date('Y-m-d h:i:s');\n $product = new Product();\n $image = $_FILES['image'];\n ...
[ { "docid": "efa639da1b8f6cd79b8705d95edb8349", "score": "0.68727493", "text": "public function store(Request $request, storage $model)\n {\n \n Storage::create($request->all());\n\n return redirect()->route('storage.index')->withStatus(__('storage successfully created.'));\n }...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "a6b48c92597c78de6434096df225f77d", "score": "0.0", "text": "public function update(Request $request, $id)\n {\n $this->validate($request, [\n 'name' => 'required',\n 'url' => 'required'\n ]);\n\n $pool = Pool::find($id);\n\n if ( isset($po...
[ { "docid": "3a50a43d393625d85bd96071942ad788", "score": "0.75714874", "text": "public function updateResource(ResourceInterface $resource);", "title": "" }, { "docid": "43d7f9bca361bad6cdea5587611546b3", "score": "0.75074047", "text": "public function updated(Resource $resource)\n ...
23864afe680c4362d9ff483ca8ee8fbc
This is the callback for the menu page. Be sure to create some actual functionality!
[ { "docid": "d4cf01b46f11cbb2117f4ee01306d6c1", "score": "0.69318736", "text": "function menu_page() {\r\n\t\techo '<h3>' . __( 'FS Repeater', 'fs-pods-repeater-field' ) . '</h3>';\r\n\r\n\t}", "title": "" } ]
[ { "docid": "bc6f8ecebd4ac39c031e88492073f891", "score": "0.78498673", "text": "public function menu_page() {\n\t}", "title": "" }, { "docid": "0ab264d2e83fbc4c2636019e4707348f", "score": "0.74400645", "text": "private function init_menu()\n {\n // it's a sample code you can i...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4fcb7d3ed7bd8f41bc382e1bb6eef1d4", "score": "0.0", "text": "public function show($id)\n {\n return Bike::with(['category', 'capacity', 'brand'])->findorfail($id);\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "fa12d91e9349fafc5fadd2869e01afe7", "score": "0.81538695", "text": "public function show(Resource $resource) {\...
abee9a69011c0ef60988f40207a4d835
Return the content of a current xml document.
[ { "docid": "22773fd7acd2183658251ee9ea5f61cf", "score": "0.6592042", "text": "public function getDocument()\n\t\t\t{\n\t\t\t\t$this->endElement();\n\t\t\t\t$this->endDocument();\n\t\t\t\treturn $this->outputMemory();\n\t\t\t}", "title": "" } ]
[ { "docid": "cc244329546abbf0caa9d2c405b23706", "score": "0.7581136", "text": "public function content() {\n return $this->xml;\n }", "title": "" }, { "docid": "5501396a420f8dbad655b273f9845ffd", "score": "0.7060003", "text": "public function contents() {\n\t\t$root = $this-...
a9a8472476e65397035f0a2f6f9d1308
Return the delay period in seconds
[ { "docid": "0f474fbafd468a9ef445a0d7efcc818d", "score": "0.7272954", "text": "function get_timing_delay() {\n\n\t\t$timing_type = $this->get_timing_type();\n\n\t\tif ( ! in_array( $timing_type, array( 'delayed', 'scheduled' ) ) ) {\n\t\t\treturn 0;\n\t\t}\n\n\t\t$number = $this->get_timing_delay_number(...
[ { "docid": "c52eb70e3505a484928adc645d034f7c", "score": "0.7961656", "text": "public function getDelay();", "title": "" }, { "docid": "b92b54d13b257996078d9a86603e3ac8", "score": "0.7759588", "text": "public function getDelay(): int;", "title": "" }, { "docid": "1b57d48c6...
2459d8a86de86c031eb963756a9fd43f
Adds amount to existing amount and returns a new MoneyInterface.
[ { "docid": "88361d71447012848337ae4b85386309", "score": "0.7232579", "text": "public function add(self $money): self;", "title": "" } ]
[ { "docid": "4be72f595e32efadad15df30da125a73", "score": "0.7789642", "text": "public function add(MoneyInterface $other): MoneyInterface\n {\n $this->guardCurrencyMismatch($other);\n return new self($this->getAmount() + $other->getAmount(), $this->getCurrency());\n }", "title": "...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "d14e186438195fec9b781b1aeb3a68f9", "score": "0.0", "text": "public function edit(Request $request)\n {\n $apply_condition = $this->applyConditionService->getAdvantageById($request->id);\n return view('apply_conditions.create_or_edit', compact('apply_condition'));\n }", ...
[ { "docid": "63925fbab89765f6ec514208a03fc871", "score": "0.78354216", "text": "public function edit(Resource $resource)\n {\n return view('resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "469e3d6c9afd54041becbee857df8ef8", "score": "0.7692893", "tex...
e77f2b65ecb49438d898a1dd10c55f78
The validator must be defined as a service with this name.
[ { "docid": "762099cd36e635cc3facac8c5ede2ff2", "score": "0.6701735", "text": "public function validatedBy()\n {\n return self::SERVICE_VALIDATOR;\n }", "title": "" } ]
[ { "docid": "e17dc1f58ebfc4b11f50a28613ebfc7c", "score": "0.696069", "text": "public function getValidator() {}", "title": "" }, { "docid": "6a59179edbf2d5eb03afb8c519adede1", "score": "0.69293237", "text": "protected function getValidatorService()\n {\n return $this->servic...
fff3f69ebd89107fdfe3a9d4d9ecb7cc
Removes properties that should not appear in the current request's context $context is a Core REST API Framework request attribute that is always one of: view (what you see on the blog) edit (what you see in an editor) embed (what you see in, e.g., an oembed) Fields (and subfields, and subsub...) can be flagged for a s...
[ { "docid": "30ac4efd4431a136cabc129695773358", "score": "0.54495615", "text": "final public function filter_response_by_context( $value, $schema, $context ) {\n\t\tif ( ! $this->is_valid_for_context( $schema, $context ) ) {\n\t\t\t// We use this intentionally odd looking WP_Error object\n\t\t\t// intern...
[ { "docid": "b6a8a52c0e744fcb50d5a46205e12df2", "score": "0.53786653", "text": "public function getContextFields();", "title": "" }, { "docid": "0ae31e5a7fe4e10269a5433feab22059", "score": "0.5227739", "text": "protected function removeExtraFields(Request $request, Form $form)\n {\...
a34769f33beac9593b6c98f40b352cf9
Lists all of the blobs in the given container.
[ { "docid": "822834c412e02ec5d28cc806d2fd8120", "score": "0.7875764", "text": "public function listBlobs(\n $container,\n BlobModels\\ListBlobsOptions $options = null\n );", "title": "" } ]
[ { "docid": "1da83324e490ce4e43e8250b160762e2", "score": "0.8459814", "text": "public function listBlobs($container, $options = null);", "title": "" }, { "docid": "d05b610f58d7591e0688160601a94b34", "score": "0.6963521", "text": "public function listBlobBlocks($container, $blob, $opti...
9758919bf8507ae190e31a64f5850d08
Get Featured Persons Get latest Person
[ { "docid": "e8f258b3383ed98aec8db4f0b13558db", "score": "0.6625696", "text": "public function getLatestPerson() {\n\t\treturn new Person($this->_call('person/latest'));\n\t}", "title": "" } ]
[ { "docid": "54553284968a51cd0b94daf0095306ae", "score": "0.6058745", "text": "function getPersons()\n\t{\n\t\t$db = JFactory::getDbo();\n\t\t$query = $db->getQuery(true);\n\t\t$query->select('id AS value,lastname,firstname,info,weight,height,picture,birthday,notes,nickname,knvbnr,country');\n\t\t$query-...
92445c9a019197a0f5fb5f010656787c
Generates FormSubtitle and returns it
[ { "docid": "2540a43bfbad698f72a7f8c06df19afb", "score": "0.0", "text": "public function generate(): string\n {\n return Tags::div($this->buttons, ['class' => 'buttons']);\n }", "title": "" } ]
[ { "docid": "a72f8be6483526b147c531130220464e", "score": "0.72388065", "text": "public abstract function getSubtitle();", "title": "" }, { "docid": "17f3b178e764ff4227d197017106c721", "score": "0.67174596", "text": "public function getSubtitle()\n {\n return $this->subtitle;...
e519631636ca9432db75761ee8b7ce89
Logs and reports a database error
[ { "docid": "40146598aed08069858b58b519176a7e", "score": "0.7067509", "text": "function reportDBError ($exception) {\n $file = fopen(\"application/log.txt\", \"a\"); \n fwrite($file, date(DATE_RSS));\n fwrite($file, \"\\n\");\n fwrite($file, $exception->getMessage());\n fwrite($file, $exception->get...
[ { "docid": "a05feda87665743279b67a647a55cb89", "score": "0.744641", "text": "protected function logSQLError() {\n\t\t$this->log('SQL-query: ' . $GLOBALS['TYPO3_DB']->debug_lastBuiltQuery);\n\t\t\n\t\t$error = $GLOBALS['TYPO3_DB']->sql_error();\n\t\tif (!empty($error)) {\n\t\t\t$this->error('SQL-error: '...
bcf8618b731e01716208d74ca808e1ab
Tests the getContributees method
[ { "docid": "e2e24f9f2442075c3a3fa5a02b7094ed", "score": "0.61387515", "text": "public function testGetContributees($user)\n\t{\n\t\t$entities = true;\n\t\t$skip_status = true;\n\n\t\t$returnData = new stdClass;\n\t\t$returnData->code = 200;\n\t\t$returnData->body = $this->rateLimit;\n\n\t\t$path = $this...
[ { "docid": "b76c6467777963d0accc510a48c77f34", "score": "0.60184944", "text": "public function testGetAllAttributesForPartnerProject(){\n\n $id = 1;\n // $partnerProjects = $this->partnerProjects('sample1');\n $repository = new PartnerProjectRepository();\n $partnerProject = $...
08280530f314522fd524f7de48e861d7
Gets drugs in same category from the drugs table
[ { "docid": "c1e930be0930c0277a8703b9db8931bc", "score": "0.71995026", "text": "public function getSameDrugs($drug_category_id, $drug_id){\n global $pdo;\n $query = $pdo->prepare(\"SELECT * FROM drugs WHERE drug_category_id = ? AND drug_id NOT in (?) ORDER BY drug_id DESC\");\n $que...
[ { "docid": "0a0dfe18411149233cd982a8ccfc89c9", "score": "0.6261563", "text": "public function getAllDrugs(){\n global $pdo;\n $query = $pdo->prepare(\"SELECT * FROM drugs\");\n $query->execute();\n $rows = $query->fetchAll();\n foreach($rows as $row){\n $dru...