query_id
stringlengths
32
32
query
stringlengths
9
4.01k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
d41db1e19dc2f870519e27b02bf608c7
Determine whether or not givent stylist is booked for client for time increments
[ { "docid": "c0d699d5411dc52da609d70fd8db46ab", "score": "0.0", "text": "private function appointmentSet()\n {\n return self::whereIn('slot_begin', $this->increments)\n ->where('stylist_id', $this->stylist_id)\n ->where('client_id', $this->client_id)\n ->count()...
[ { "docid": "6a923806c9c384c0d20bb54d20296eec", "score": "0.5813824", "text": "public function addAppointment() \n {\n\n // check if all available slots are open for the desired stylist \n // values set when instantiating class\n if ( $this->slotsOpenForDesiredStylist() ) {\n ...
1b422d379aec2553c127faa3279dfba2
reads multiple params only if they are POST
[ { "docid": "13a851a4a360182ffa5fec6160927f30", "score": "0.0", "text": "public function deleteAction()\n {\n $room_id = $this->param('room_id', 'post');\n $result = $this->model->deleteRoom($room_id);\n if ($result) {\n $this->echoRespnse(200, array('deleted' => true))...
[ { "docid": "cb41634b7d19d0d06d368fe6c8213b91", "score": "0.7587008", "text": "public function getPostParams();", "title": "" }, { "docid": "31b65d0fd38a003717a583ded0fe7141", "score": "0.68857527", "text": "protected function getPostMultiParam($name){\n return filter_input(INPU...
357c16ef8c89d17279abb9f00ac99418
The resource types to run the detector on. Generated from protobuf field repeated string resource_types = 1;
[ { "docid": "1d8dc4b428e9b0f73ee88114e7c65b2a", "score": "0.7770195", "text": "public function setResourceTypes($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::STRING);\n $this->resource_types = $arr;\n\n return $this;\n }", "titl...
[ { "docid": "7da38ed4594c9acafe110e739c8dea12", "score": "0.6810049", "text": "public function getResourceTypes()\n {\n return $this->resource_types;\n }", "title": "" }, { "docid": "5777bf4d4a367119adc58749f5992747", "score": "0.6381752", "text": "public function getReso...
862a669bdb2e43ef794eef8be3b86659
/ Fetch all program major list data for program majors page
[ { "docid": "58382a315e7663cfab32368ef32440e0", "score": "0.6531747", "text": "public function programMajorList()\n {\n return $this->hasMany('App\\ProgramMajorList', 'program_id', 'id');\n }", "title": "" } ]
[ { "docid": "a0afc520e87bf19dd2ea35ad246eabf6", "score": "0.6271277", "text": "public function load_major()\n {\n $this->db->select('major');\n $this->db->where('user_id', $this->session->user_id);\n return $this->db->get('education')->row('major');\n }", "title": "" }, { "...
ba9d7aebef8608e8d5dff412fd527d25
Determine the name of the project.
[ { "docid": "63db263c9c10b9dff497bccba156f16f", "score": "0.8238425", "text": "protected function determineName()\n {\n return Str::slug(Helpers::ask(\n 'What is the name of this project',\n basename(Path::current())\n ));\n }", "title": "" } ]
[ { "docid": "f834a290043cc309d5818434354a043a", "score": "0.8570628", "text": "public function getProjectName()\n {\n return $this->project->name_project;\n }", "title": "" }, { "docid": "2a39d4f1308f42002334e4a1991e7804", "score": "0.847534", "text": "public function get...
983044c3ee1dbb8d605f2760a7da4d30
Returns the Config object used by the application.
[ { "docid": "63eeb30ff758cd417db3555e8262826e", "score": "0.0", "text": "public static function getConfig(mixed $property = null)\n\t{\n\t\treturn ($property) ? self::$config[$property] : self::$config;\n\t}", "title": "" } ]
[ { "docid": "07abf7f420bc83380bdad70fe4aaa459", "score": "0.8446071", "text": "public static function getConfig()\n {\n return new Config(self::$config);\n }", "title": "" }, { "docid": "e29ed8f1fbe81d660d6c24024af107e9", "score": "0.83385545", "text": "function config():...
ba8f6afd2c92e8e12cdce563d70f69c9
change $in_dt to Y/m/d H:i:s
[ { "docid": "ee99b68119e87618d51a5a81e8f5aec1", "score": "0.5585298", "text": "function conv_datetime($in_dt, $to_tz, $format = 'Y/m/d H:i:s', $in_tz = 'Asia/Taipei', $use_dst = TRUE)\n {\n $in_dt = chk_datetime_input($in_dt, 'Y/m/d H:i:s');\n\n // $in_dt does not datetime value or $to_t...
[ { "docid": "c47443d77a0b109b1cd687e7ea7927aa", "score": "0.6277984", "text": "function dateTimeToUS($data){\r\n\t\t$dt = $data;\r\n\t\t$data1 = DateTime::createFromFormat(\"d/m/Y H:i:s\", $dt);\r\n\t\treturn $data1->format(\"Y-m-d H:i:s\");\r\n}", "title": "" }, { "docid": "66e94ef7790f22e91...
0b573360c532556a5b7cd62a76e57b41
Remove query string parameter
[ { "docid": "884825c88f3d660aec6b417699bc6862", "score": "0.5563333", "text": "public function currentUrlWithout($paramName)\n {\n return $this->currentUrlWith($paramName, null);\n }", "title": "" } ]
[ { "docid": "7e479870398249b50deaf702d6c469f4", "score": "0.7500895", "text": "protected function removeQueryString($url){\n \tif($url!=''){\n \t\t$parts=explode('&',$url,2);\n \t\tif(strpos($parts[0],'=') === false){\n \t\t\t$url=$parts[0];\n \t\t}\n \t\telse{\n \t\t\t$url='';\n \t\t}\n \t}\n \treturn $...
5c9418994ec0974df2e152f9f0cf96ee
Extracts single file from archive to specified target.
[ { "docid": "eb3f341d6fce36699bd3cb198dd6c39b", "score": "0.6868857", "text": "public function extractFile($source, $file, $target)\n {\n $archive = $this->zipArchiveFactory->getZipArchive();\n $temporaryDirectory\n = $this->temporaryNodesManager->createTemporaryDirectory();\n...
[ { "docid": "faedb831a69ea671b47a003363419a49", "score": "0.6620173", "text": "public function testExtractTo()\n {\n // Make sure we have a temporary directory to extract the archive.\n $dir = tempnam(sys_get_temp_dir(), 'archiver') . '.' . $this->extension;\n if (file_exists($dir...
1f5acc5cb2525fdb78e070b4932c4c5f
Recupera campo Feedback da tabela AnswerFeedback ou campo Pontos Fortes do form Questionario
[ { "docid": "36cd00015be28b5cafd800222e891ba4", "score": "0.5870916", "text": "public function getAnswerFeedback($answerId) \r\n {\r\n if (!is_numeric($answerId) ){\r\n return false;\r\n }\r\n \r\n $objResultAnswerFeedback = DbTable_AnswerFeedback::getInstance()\...
[ { "docid": "82cf666cc901a980014cef951ef69c68", "score": "0.60748637", "text": "public function actionFaqFeedback($question = '')\n {\n $feedback = new FaqFeedback(['scenario' => FaqFeedback::SCENARIO_CLIENT_SIDE]);\n if (!$feedback->load(Yii::$app->request->post()) || !$feedback->create...
ca322c00d850f5fd5197b81b3462627f
Action must be taken immediately. Example: Entire website down, database unavailable, etc. This should trigger the SMS alerts and wake you up.
[ { "docid": "a494cfb588106e0eefb12fbcf6e18c71", "score": "0.0", "text": "public function alert($message, array $context = array())\n {\n $this->log(self::ALERT, $message, $context);\n }", "title": "" } ]
[ { "docid": "2e1c317803a680f17a3274a665713c43", "score": "0.5965703", "text": "public function alerts_system() {\n // run the queue command\n }", "title": "" }, { "docid": "49cca8a8d73abca7096b812afdf89ae2", "score": "0.58324087", "text": "public function alert()\n {\n ...
003b432592858c01fa777fd617c9708b
Checks if a retry can be attempted.
[ { "docid": "f3f7d990b7412bcd49bc4d84fccbbf39", "score": "0.61467916", "text": "public function canAttmpt()\n {\n return $this->attempts < $this->maxAttempts;\n }", "title": "" } ]
[ { "docid": "84de6fc290f59bf06ef8565faf169f30", "score": "0.82642317", "text": "public function check_can_retry()\n {\n return $this->try_num < 3 && !$this->check_is_deleted();\n }", "title": "" }, { "docid": "68146d66a593103e8b1266a2d9be5537", "score": "0.8219648", "text...
e3f357a3369cc611e8834b8d823bc67d
Class constructor, destructor etc ... Constructor.
[ { "docid": "eaa51997be64143d7e484e12730520d9", "score": "0.0", "text": "public function __construct(SessionHandlerInterface $handler, $sessionName, array $cookieParams)\n\t{\n\t\t$this->handler = $handler;\n\n\t\t// Set the session handler, set the session name and start the session\n\n\t\tsession_set_s...
[ { "docid": "d95065509cc1d0b4a6050f28f4592eed", "score": "0.8026631", "text": "function __constructor(){}", "title": "" }, { "docid": "e66cb980f78f9e2b9174b4faf17224d2", "score": "0.7989457", "text": "private function __contructor() {}", "title": "" }, { "docid": "303c6463...
2e640b2819e0e2483ca2c8015eacce77
Show the application dashboard.
[ { "docid": "0f706b6f7541f400d7f48cb55b2dc64a", "score": "0.0", "text": "public function index()\n {\n try {\n $locale = app()->getLocale();\n\n $count = News::where('lang', $locale)->get()->count();\n\n $data['count'] = $count;\n } catch (QueryException ...
[ { "docid": "ff5aa3df7490e4de8d2b4b28031fb1d4", "score": "0.83087254", "text": "function dashboard() {\n\n //TODO: Display dashboard.\n }", "title": "" }, { "docid": "660797d3b6b5358f9704019dcad4d4e5", "score": "0.7608298", "text": "public function showDashboard()\n {\n ...
b7aac901ee96c06b3af9569969c2a44c
Get a full schema by reference
[ { "docid": "c247789483aedf9bb77babce9cee471e", "score": "0.7330035", "text": "private function getFullSchemaByReference(string $reference)\n {\n return array_merge(\n [\n \"\\$type\" => Populator::TYPE_OBJECT,\n \"\\$ref\" => sprintf('HarmSmits\\BolCom...
[ { "docid": "8493caac9866cf0fcf39babcc299a6df", "score": "0.7213447", "text": "public function loadSchema($ref);", "title": "" }, { "docid": "2c1bbc14cc6668cfd9d4d058fae23c8d", "score": "0.7177671", "text": "private function getFullSchema(string $reference)\n {\n return arra...
fd382831a7944aa3089e391f94d016ed
Generates the PDF from the HTML File
[ { "docid": "b637c7c0cd9754862b7a41b4655d3a89", "score": "0.66124374", "text": "public function generate()\n\t{\n\t\t// Inject our print framework\n\t\tif ($this->printFramework !== false)\n\t\t{\n\t\t\t$this->document->setContents\n\t\t\t(\n\t\t\t\tStr::s($this->document->getContents())->replace\n\t\t\t...
[ { "docid": "e62e13a27be92855f7be55c7d1bc7ccd", "score": "0.7664394", "text": "public function generatePDF()\n {\n $pdf = new Pdf(array(\n 'no-outline', // Make Chrome not complain\n 'margin-top' => 0,\n 'margin-right' => 0,\n 'margin-bott...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "0f1ed650f9940b3afb4fd541a8f10b91", "score": "0.0", "text": "public function destroy($id)\n {\n }", "title": "" } ]
[ { "docid": "dcc1d6b4440ac73f55e995eb411296ea", "score": "0.6932749", "text": "public function destroy($id)\n {\n dd('Remove the specified resource from storage.');\n }", "title": "" }, { "docid": "4dafcd8b3f56d04ade79ab84f74387a5", "score": "0.69165355", "text": "public function...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "836cab820b558dc649e5cc4718d3a9b7", "score": "0.0", "text": "public function create()\n {\n return view('admin.parts.create');\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...
d695f82fa4bf726f9bc972cbd0108412
/ Loads a single post when logged in user publishes a new one Arguments list: $id: Id value of the post
[ { "docid": "74dbf4c18bc8f20314255257b4e674ec", "score": "0.67013043", "text": "public function load_single_post($id) {\r\n $str = ''; // String to return\r\n\r\n // Fetch post info\r\n $post_info = $this->fetch_post_by_id($id);\r\n\r\n $id = $post_info['id'];\r\n $body...
[ { "docid": "46d65fa010a3047724cc916cab174cc3", "score": "0.72934484", "text": "public function getPost($id);", "title": "" }, { "docid": "1517b2b4481db7d55615bd3b0cc03d5c", "score": "0.6856059", "text": "function view($id)\n {\n $this->post = $this->model-> getPostById($id)...
1d73041330a37abc3fc9d34d3ee05829
Random name for image
[ { "docid": "d946ce16f50450c93bc896e0dafe5d6a", "score": "0.7685564", "text": "function createImageName($extension)\n{\n return rand(10000000, 99999999) . \"_\" . rand(10000000, 99999999) . \"_\" . rand(10000000, 99999999) . '.' . $extension;\n}", "title": "" } ]
[ { "docid": "2a77496abbd977307ee7881867c52704", "score": "0.8028859", "text": "private function get_random_jpeg_name() {\n\t\t\t// Prime the word array\n\t\t\t$words = $this->get_words();\n\n\t\t\t// Holder for the filename\n\t\t\t$filename = array();\n\n\t\t\t// Loop through a random number of iteration...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "3579799e4dc8ed4919ebe794082591f1", "score": "0.0", "text": "public function index()\n {\n //\n }", "title": "" } ]
[ { "docid": "e0431810d4174a040ced0b019ba49225", "score": "0.76679015", "text": "public function index() {\n\t\t\t$this->listing();\n\t\t}", "title": "" }, { "docid": "852d65a985959b16c59e7c705d111b03", "score": "0.73416126", "text": "public function index()\n\t{\n\t\t// Require user t...
8f2fd789c966e21d6d0f1a43e2e8c967
Methods for set gerencia and set cargo should be created aswell
[ { "docid": "9fd2cff45e84931e87f86897f1d345c5", "score": "0.0", "text": "protected function _getTitulo()\n {\n return $this->_properties['nombre'] . ' ' . $this->_properties['apellido'];\n }", "title": "" } ]
[ { "docid": "f391f0eab3eb5a9e3b8452f9ac7b42dd", "score": "0.619784", "text": "function Coche(){\n //this es para hacer referencia la porpia clase\n $this->ruedas=4;\n $this->color=\"red\";\n $this->motor=1600;\n \n }", "title": "" }, { "docid": "0b4dd31b9...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "1b84960e1b92d293ded93b3711f4a5bb", "score": "0.8233718", "text": "public function show(Resource $resource)\n {\n // not available for now\n }", "title": "" }, { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(R...
5a5a8586c1ff76ef278b83bd8477b8db
Sets the default partial options. The options a pager navigation partial supports should be explained in the partial file and partials provide default for everything.
[ { "docid": "102b78b07654775c9378103d6eae338d", "score": "0.0", "text": "public static function setDefaultOptions(array $options) {\n\t\tself::$defaultOptions = $options;\n\t}", "title": "" } ]
[ { "docid": "9a2f90b856298f8c04efb434f7b70b0b", "score": "0.65342414", "text": "public static function getDefaultPartial() {\n\t\tif (self::$defaultPartial === null) {\n\t\t\tself::$defaultPartial = PARTIAL_PATH.'/paginator.php';\n\t\t}\n\t\t\n\t\treturn self::$defaultPartial;\n\t}", "title": "" },...
34055af3873bbd49064db5d181c8c783
Build up the array of data to send.
[ { "docid": "4b6424c8242aba619d65e333d0b7eb60", "score": "0.5880263", "text": "protected function buildDataToSend(string $eventAction, RestHookable $model): array\n {\n return [\n 'event' => $model->getRestHookEventName() . '.' . $eventAction,\n 'user_id' => $this->userId,...
[ { "docid": "cf7f08febbea2b2ed069e81f13029fb7", "score": "0.6320075", "text": "public function dataAppend() {\n\t\t\t$data = array(\n\t\t\t\tarray(array('', 's'), array('s')),\n\t\t\t\tarray(array('s', 's'), array('ss')),\n\t\t\t\tarray(array('string', 's'), array('strings')),\n\t\t\t);\n\t\t\treturn $da...
335fd46064b37c27eb38c833fcdd6e41
Include the styles and scripts for this plugin.
[ { "docid": "029c0df276ae2a05b590846c0ca34e54", "score": "0.0", "text": "function creativa_styles_and_scripts() {\n wp_enqueue_style('creativa', plugins_url( 'assets/css/creativa.css', dirname(__FILE__) ));\n}", "title": "" } ]
[ { "docid": "9e8730e71683a5f66d5a2243e0077712", "score": "0.73843366", "text": "public function add_scripts_and_styles()\n {\n //CODEJAR\n wp_enqueue_script(\"a2020-codejar-js\", $this->pathURL . \"assets/js/codejar/codejar-alt.js\", [\"jquery\"], $this->version);\n wp_enqueue_script(\"a2020-hi...
39882502c3c313ee8b844ee1282e1004
A basic test example.
[ { "docid": "0167264f99cf452910fcb0cb268364a0", "score": "0.0", "text": "public function test_recently_converted()\n\t{\n\t\t$given = [\n\t\t\t[\n\t\t\t\t'roman_numeral' => 'L',\n\t\t\t\t\"number_requested\" => 50,\n\t\t\t\t\"total_number_requested\" => 2,\n\t\t\t\t\"created_at\" => \"2019-02-11\"\n\t\t\...
[ { "docid": "597b9e62da897a1296a3a7ff4b51ff92", "score": "0.82857263", "text": "public function testBasicExample()\n {\n\n }", "title": "" }, { "docid": "9ec17ef48dcc37fefab1b634c98d8a53", "score": "0.76435244", "text": "public function testBasicExample()\n {\n $this->...
563d6d14866fd9884056808d69018f35
Displays all coupons. Also used for searching coupons
[ { "docid": "ccf0658f7dfdeb4cedd958278d4107e7", "score": "0.66080034", "text": "public function actionGetCoupons()\n {\n if (isset($_POST['stop']))\n {\n die();\n }\n $couponsModel = new CouponModel();\n $sitesModel = new SitesModel();\n $term...
[ { "docid": "034935a27498451bb11456c4992d69b3", "score": "0.73338395", "text": "public function index()\n {\n \n $coupons = Coupon::paginate();\n\n return view('admin.coupons.index', [\n 'coupons' => $coupons,\n ]);\n }", "title": "" }, { "docid": ...
a85529b134a836185490b2ea2474cb0a
Operation deleteWhatsAppMediaAsyncWithHttpInfo Delete media
[ { "docid": "3c742991e5213b1db01b3983d579972e", "score": "0.6380471", "text": "public function deleteWhatsAppMediaAsyncWithHttpInfo($sender, $whatsAppUrlDeletionRequest)\n {\n $request = $this->deleteWhatsAppMediaRequest($sender, $whatsAppUrlDeletionRequest);\n\n return $this->client\n ...
[ { "docid": "1d115c66d11b4e8867c2342882b7a51b", "score": "0.6430212", "text": "protected function deleteWhatsAppMediaRequest($sender, $whatsAppUrlDeletionRequest)\n {\n // verify the required parameter 'sender' is set\n if ($sender === null || (is_array($sender) && count($sender) === 0))...
29b6ce81f04506d47de91a2138134f01
/ CREATE TABLE IF NOT EXISTS Person( academicCode SERIAL PRIMARY KEY, personType PersonType, name VARCHAR(120) NOT NULL, username VARCHAR(15), address VARCHAR(256), birthdate DATE, nationality VARCHAR(30), nif CHAR(9) UNIQUE NOT NULL, password VARCHAR(256) NOT NULL, phoneNumber VARCHAR(12), imageURL VARCHAR(256), visib...
[ { "docid": "87af4978fa60efa9c2e3c2be6f678d09", "score": "0.0", "text": "function isLoginCorrect($username, $password){\n global $conn;\n\n try{\n $query = 'SELECT * FROM PERSON WHERE LOWER(username) = LOWER(?) ';// AND password = ?\";\n\n $stmt = $conn->prepare($query);\n $stmt->execute(arr...
[ { "docid": "153fd0470a87a8640a5144bafb8fba76", "score": "0.5986141", "text": "public static function rdv_create_table_function();", "title": "" }, { "docid": "7834baf70c6da971405a625e7223fda1", "score": "0.5847953", "text": "function create_table()\n {\n }", "title": "" }...
06ea1df7e601f16ec922125eff2dab12
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/
[ { "docid": "c4cf136ea39da71ad8c60ff0a0b6628c", "score": "0.0", "text": "public function __construct()\n\t{\n\t\t\tparent::__construct();\n\t\t\t//untuk bikin dari view manggil model 'My_Model.php'\n\t\t\t$this->load->model('model');\n\t}", "title": "" } ]
[ { "docid": "c89e4aa9fe2cefb81155596ca16fa6e9", "score": "0.73142195", "text": "public function index() {\n\n\t\techo 'index method of controller_default';\n\n\t}", "title": "" }, { "docid": "2ae52aad383adef61194aa5ee88d9ca6", "score": "0.7255195", "text": "public function index()\n ...
41daa5ad4dd36733f4cd72bb5795566d
retornar el valor de la variable del servidor: $_SESSION['nombre']
[ { "docid": "a78ae01283877c1d715aad1154bbaa25", "score": "0.64568985", "text": "function revisar_usuario(){\n return isset($_SESSION['nombre']);\n}", "title": "" } ]
[ { "docid": "52df4ff57213ac768dd23682b01ebecb", "score": "0.6449828", "text": "private function usuario(){\n session_start();\n return $_SESSION['data'];\n }", "title": "" }, { "docid": "59c15619f7744e7ae3af7f884bd5b360", "score": "0.64238375", "text": "pu...
9351f03217c1ce1005189e382da1c8c3
Enqueues Styles and Scripts
[ { "docid": "cdac5e0affb70d241ef5bca8e1a6937d", "score": "0.0", "text": "function enqueue_scripts() {\n $path = plugins_url( 'wp-user-frontend' );\n\n //for multisite upload limit filter\n if ( is_multisite() ) {\n require_once ABSPATH . '/wp-admin/includes/ms.php';\n ...
[ { "docid": "8dda12aa5db6d9a2857871f7978567b0", "score": "0.77409726", "text": "public function outputScriptStyle()\n {\n \\add_action('wp_enqueue_scripts', array($this, 'enqueueScript'));\n \\add_action('wp_head', array($this, 'addHeaderStyles'));\n }", "title": "" }, { "...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "9901a816a89a0da059211d01758d103d", "score": "0.0", "text": "public function update(Request $request, Home $home)\n {\n //\n }", "title": "" } ]
[ { "docid": "b253a586f54d8fcd444353d114e8da96", "score": "0.7603298", "text": "public function update(IResource $resource)\r\n {\r\n }", "title": "" }, { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7424714", "text": "public function updateShopifyResource() {\n ...
516029356bb6b93d28993e197f6ae83f
Get department by name
[ { "docid": "f1442c003729fa99dbc51fd332a46feb", "score": "0.67391896", "text": "public function dept(Request $request, $deptName)\n {\n $department = $this->api->teamByName($deptName);\n $ids = collect($department->memberships)->pluck('id');\n $profiles = Profile::whereIn('api_id'...
[ { "docid": "79cc3149f4a1b377c73054dbde20d57c", "score": "0.72757906", "text": "function get_department(int $id) : string\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->db->select('name');\n\t\t$CI->db->from('departements');\n\t\t$CI->db->where('id', $id);\n\t\treturn $CI->db->get()->row()->name;\n\t}", ...
b74f5c1d82fbd9a89d2d8daab12eae14
Get the card/gateway logos and other gatewayrequired details.
[ { "docid": "6cfe6e4851073e9c7e2cf37293c36f93", "score": "0.51095474", "text": "function get_logos()\n\t{\n\t\t$inst_id=ecommerce_test_mode()?get_option('ipn_test'):get_option('ipn');\n\t\t$address=str_replace(chr(10),'<br />',escape_html(get_option('pd_address')));\n\t\t$email=get_option('pd_email');\n\...
[ { "docid": "f321d4881b1150a7865ac44c7e30d617", "score": "0.59638923", "text": "function schema_get_card_gateway() {\n\n $gateway_settings = array();\n\n $payment_settings = schema_get('/settings/payments');\n $card_method = null;\n foreach ($payment_settings['methods'] as $method) {\n ...
1b9dd925fab1da693c6afb3bfa5aa503
Checks if the file exists
[ { "docid": "84127715ec9c213ea197f8f34d28564c", "score": "0.0", "text": "function file_exists_path($file) {\n $paths = explode(PATH_SEPARATOR, get_include_path());\n foreach ($paths as $path) {\n\tif (file_exists($path . '/' . $file)) {\n\t return true;\n\t}\n }\n return false;\n}", "t...
[ { "docid": "c995981a505f214379a25e1f0103c829", "score": "0.7899095", "text": "public function exists($file) {}", "title": "" }, { "docid": "c995981a505f214379a25e1f0103c829", "score": "0.7899095", "text": "public function exists($file) {}", "title": "" }, { "docid": "ef2a...
5261584a6db23927f1cfae54067d30ef
check if user is signed in
[ { "docid": "c5b51f089f84af8ade259818acd7305e", "score": "0.7568193", "text": "public function is_signed_in(){\n \n return $this->signed_in; \n }", "title": "" } ]
[ { "docid": "615dbf7a86a9240f2aa9ea953da35a55", "score": "0.79211664", "text": "protected function isUserLoggedIn() {}", "title": "" }, { "docid": "615dbf7a86a9240f2aa9ea953da35a55", "score": "0.79211664", "text": "protected function isUserLoggedIn() {}", "title": "" }, { ...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "acbe123a9dee29ba29c6475816f863a2", "score": "0.0", "text": "public function store(Request $request) {\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "6fd12939ad43e0b8465f714deb95dc17", "score": "0.68325156", "text": "protected function storeResources()\n {\n try {\n $this->storage->get('version');\n } catch (\\Exception $e) {\n $this->storeVersion();\n }\n\n $resources = $this->resource...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "83f277a96c502035a215a12cd9e55d69", "score": "0.0", "text": "public function create()\n {\n //\n $categories = CentralClienteCategory::all();\n $prioritys = Priority::all();\n $statuses = Status::all();\n\n return view('front.central-cliente.front.tickets...
[ { "docid": "06ec3b32b9b222f39c5dee97c3ecbb36", "score": "0.7939633", "text": "public function create()\n\t{\n\t\treturn view('admin.resource.create');\n\t}", "title": "" }, { "docid": "1e65cd3b7532e9fb4c8629f59550be03", "score": "0.7734893", "text": "public function create()\n\t{\n\t...
e76550f7e18c809d919e6946079c739c
Gets the HTML to add to the header for the specific category
[ { "docid": "c803bb7419e4244f907d398483ecee3f", "score": "0.6884527", "text": "public static function getHeaderHtml($catId, $page_id = 0)\n {\n $db = DataAccess::getInstance();\n\n if (($page_id == 1 || $page_id == 69) && ($db->get_site_setting(\"show_category_head_element_in_details\") ...
[ { "docid": "e4eb6a8de02af7a0e52c038fee70a73d", "score": "0.7141225", "text": "function category_heading()\n {\n global $IN, $TMPL, $DB;\n\n if ( ! ereg(\"^C\", $IN->QSTR))\n {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tif ( ! is_numeric(substr($IN->QSTR, 1)))\n \t\t{\n \t\t\treturn;\n ...
454139930a6e6c67ae075702bebd0c20
Test that updating first progress check (custom 139) updates other fields. most recent review date (227) should be the same date provided later fields do not contain data. custom 225 should be updated to the same date provided later fields do not contain data.
[ { "docid": "b2a4587553f565484b6aeb8644144f43", "score": "0.664649", "text": "function testActivityUpdate() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 2,\n 'custom_138' => '1 April 2015',\n ));\n\n $acti...
[ { "docid": "7425267cdf05c29cd1f9ee2a71733da9", "score": "0.6998195", "text": "function testActivityUpdateStatusCeasedSomeProgress() {\n civicrm_api3('activity', 'create', array(\n 'id' => $this->activityID,\n $this->getCustomField('review-status-1') => 2,\n 'custom_138' => '1 April 201...
5a59ded53a73f18006b21b589fded24a
Adds tracking to an Email
[ { "docid": "8e59803ed95294405127b059f8659997", "score": "0.49976277", "text": "public function addTracking($content, $address, $emailId)\n {\n $updatedContent = $this->processLinks($content, $address, $emailId) . $this->getTracker($address, $emailId);\n\n return $updatedContent;\n }"...
[ { "docid": "cd73f376b3c6316a5fe7a6b0cf8393a5", "score": "0.67912376", "text": "public function setEmailTracking(Request $request): void;", "title": "" }, { "docid": "5c39166c2c882b675920aa05c9e3b109", "score": "0.5917022", "text": "private function set_tracking() {\n\t\t$tracking = K...
692b4ee6da612adcd33969cfc4c3717c
Ensures that the given subtree exists
[ { "docid": "3e223e266c5b1b189931f0a7f059711b", "score": "0.54326016", "text": "protected function ensureSubTreeExists(array $subTree = []): void {\n\n\t\t\t$path = $this->baseDir();\n\t\t\tforeach ($subTree as $segment) {\n\t\t\t\t$path .= \"/{$segment}\";\n\n\t\t\t\t$this->ensureDirectoryExists($path);...
[ { "docid": "352629ba52e66a79f04e1f466abe1ec3", "score": "0.61066127", "text": "function checkTree()\n\t{\n\t\t$this->content_object->checkTree();\n\t}", "title": "" }, { "docid": "fd4f8aa57aefb59729f49d03dc61cf30", "score": "0.57849026", "text": "function hasChildren();", "title"...
90dc372236900ea4fa5e9212beb1916f
Method to filter categories based on the filter type, Product or Category.
[ { "docid": "7114f64f1f1c1cc6be2bb6ff06d2c1b8", "score": "0.0", "text": "protected function getCategoriesByType($categories, $categoryType) {\n $index = 0;\n foreach($categories->items as $category){\n if($categoryType === 'PRODUCT')\n {\n if($category->...
[ { "docid": "21aaa8b444224b954be67c76f18a7908", "score": "0.68218166", "text": "public function getCategories($filters = []);", "title": "" }, { "docid": "9d0067c10c0e364af93c01e38b778bb5", "score": "0.65360075", "text": "public function getCategoryFilters()\n\t{\n\t\treturn $this->_g...
d3d4027a721680c773c8169a69f3da61
Here be dragons. Attempts to diff the current state of the object to its original state, and generate MongoDB update statement out of it. The check is recursive, so deeply nested arrays "should work" (tm).
[ { "docid": "488d9d296e5f54dfd0baf47257b9781b", "score": "0.65597665", "text": "function _bsonSerializeRecurs(&$updated, $newData, $oldData, $keyfix = \"\") {\n foreach($newData as $k => $v) {\n\n /* A new field -- likely a on-the-fly schema upgrade */\n if (!isset($oldData[$...
[ { "docid": "6093f8d04c81fdb94e617859c95e5ab2", "score": "0.6119008", "text": "function update_db() {\n // Updates\n foreach ($this->need_update as $object) {\n if (!$object->update()) {\n debugging(\"Could not update the object in DB.\");\n } elseif ($o...
45a26b6c21a4112296d5ee6459f44d26
get the total new orders
[ { "docid": "32023fcdc18ebb5b2b9b33b20ae0eabe", "score": "0.0", "text": "public function add_tag_template($filename, $data = array())\n\t{\n\t\t//$data[\"there_is_new_order\"] = $this->Admin_model->return_total_rows('order', 'status', 'open');\n\t\t\n\t\t$this->admin_header();\n\t\t$data['header'] = $thi...
[ { "docid": "9443ef2a5c2bfe05cb1d1fdbcef8e0f2", "score": "0.7546358", "text": "public function getTotal()\n {\n return $this->service()->getTotalOfOrder();\n }", "title": "" }, { "docid": "155dce3ed38fc69542917c9c0fd92af3", "score": "0.7452311", "text": "protected functio...
1e965bfd0979958df2d022d08c6d78db
Metodo para crar y dar permiso al directorio
[ { "docid": "ad40271a3f443caf54545a53c3a9e063", "score": "0.707567", "text": "function CrearDirectorio()\n\t{\n\t\t//echo $this->_directory;\n\t\tif(!is_dir($this->_directory))\n\t\t{\n\t\t\tif(mkdir($this->_directory))\n\t\t\t{\n\t\t\t\t$this->_msj = \"dirCreado\";\t\t\t\n\t\t\t\tchmod($this->_directory...
[ { "docid": "9576bf545aa932959b42a5f4c4991cd7", "score": "0.6859501", "text": "public function allowsCreateDir();", "title": "" }, { "docid": "3e795f9898fdfb797f2c288910738336", "score": "0.6640606", "text": "function galleryKategori_CreateDirektori( \n\t \t$tanggalhariini\n\t){\n \...
c8bd27ffe8bdc1f37a9fed7ee4b59110
Update marker lat and lng
[ { "docid": "a1c01bb70b8a27ceb0dc0978e67ad761", "score": "0.58853877", "text": "public static function updateLatLng($id, $lat, $lng)\n\t{\n\t\t$marker = new static(compact('id', 'lat', 'lng'));\n\n\t\t// raise event\n\t\t$marker->raise(new MarkerUpdatedLatLng($marker));\n\n\t\treturn $marker;\n\t}", ...
[ { "docid": "5734e5e3c13fc94a45f5bcd0be2cae61", "score": "0.6720669", "text": "public function updateGeo()\n {\n try {\n list($lat, $lng) = Util::geocoder($this->full_address);\n $this->attributes['lat'] = $lat;\n $this->attributes['lng'] = $lng;\n } catc...
4125caf1fb6fbb55c884632b41aeaf88
Whether schema can be added to current page
[ { "docid": "c3c8ea0bec6cbd7890229617b9ab08a4", "score": "0.6367102", "text": "private static function can_add( $schema ) {\n\t\tif ( empty( $schema ) || empty( $schema['metadata']['displayConditions'] ) ) {\n\t\t\treturn false;\n\t\t}\n\n\t\tforeach ( $schema['metadata']['displayConditions'] as $conditi...
[ { "docid": "858c0c8341e5c2b6b9918ffcaf1761e4", "score": "0.71373874", "text": "public function hasSchema(){\n return $this->_has(2);\n }", "title": "" }, { "docid": "8ee2d0f2d2ddffa86db0b543e53a22a6", "score": "0.6722933", "text": "public function canBuildFromSchemaFile() {\n...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "b892cf771adb1dd497ee420c8120bed2", "score": "0.0", "text": "public function show(StudentGroup $studentGroup)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "c8985097bcf4925e7728ae219257fd22", "score": "0.7436983", "text": "public function show(Resource $resource)\n ...
59f65551e88445b78ad49c53cdf0cbff
show all my comments
[ { "docid": "4b48d7f2b2176a8b625988d646d78413", "score": "0.0", "text": "public function index()\n {\n $myLikes = PostLike::select(\"SELECT * FROM post_likes WHERE user_id = ?\", [$_SESSION['auth']]); \n $posts = Post::select(\"SELECT * FROM posts \");\n $categories = Category::ge...
[ { "docid": "b51f8191c01897add63fe17b96261e46", "score": "0.76819175", "text": "function comments() {\n\t\t$data['module'] = 'blog';\n\t\t$data['view_file'] = 'admin/comments';\n\t\t$data['modal'] = true;\n\t\t$data['model'] = 'comment';\n\t\t$data['comments'] = $this->comment->select();\n\t\techo Module...
10d87da8ddc952491fd803bed03783b1
Adds blind carbon copy recipient.
[ { "docid": "e51560457b3bf466d7bdef77d1def90c", "score": "0.45530897", "text": "public function addBcc($email = NULL)\n\t{\n\t\t$email = strtolower(trim($email));\n\t\tif (!in_array($email, $this->_bcc)) {\n\t\t\t$this->_bcc[] = $email;\n\t\t}\n\t\treturn $this;\n\t}", "title": "" } ]
[ { "docid": "94c774d891006ec57931835bff1f9f71", "score": "0.6441856", "text": "function addBCC($bcc)\n\t{\n\t\t// If the blind carbon copy recipient is an aray, add each recipient... otherwise just add the one\n\t\tif (isset ($bcc))\n\t\t{\n\t\t\tif (is_array($bcc)) {\n\t\t\t\tforeach ($bcc as $to) {\n\t...
d3571ba4356173062fd950f24399224b
retrieve futurepay ids when a futurepay payment notification is retrieved via IPN
[ { "docid": "5b0ea951c557dedd4a7b7bce8169e2a0", "score": "0.6342373", "text": "function retrieveFuturePayIds($component,$futurePayId,&$ids) {\r\n if ($component=='event') { // sanity check\r\n CRM_Core_Error::debug_log_message(\"Error while retrieving ids,FuturePay should not be used for event pa...
[ { "docid": "3f8f1ec1a5dd67c10db1fc82205a520b", "score": "0.602409", "text": "function handleFuturePayPayment(&$input, &$ids, &$objects) {\r\n $recur =& $objects['contributionRecur'];\r\n \r\n // make sure the invoice ids match\r\n // make sure the invoice is valid and matches what we have in ...
df3566819729b9b1eb841a6d40367d86
Gets all the attributes for an HTML element, class is a good example
[ { "docid": "7ca293485060271a26e8fb07d7d65a1b", "score": "0.6498896", "text": "private function getAttributes(): string\n {\n $html = \"\";\n foreach ($this->attributes as $attribute) {\n if (is_array($attribute)) {\n foreach ($attribute as $key => $value) {\n ...
[ { "docid": "a932710cc74c2ee971f1211ff27a3a51", "score": "0.77079403", "text": "public function getAttributes(){\n\t\treturn $this->getElement()->getAttributes();\n\t}", "title": "" }, { "docid": "20087d2bf6a377cd9bc0cffffb891c74", "score": "0.7505216", "text": "function getAttributes...
b1443957599c8fd529fb0913e86c8214
Setup of the database
[ { "docid": "a5e3a11ebb14e90442895f6f2a0a62d4", "score": "0.0", "text": "private function setupDatabaseTable()\n {\n $query = sprintf(\n \"CREATE TABLE IF NOT EXISTS %s (id INTEGER AUTO_INCREMENT PRIMARY KEY, \"\n . \"unique_id VARCHAR(255), query TEXT, migrated_at DATETIM...
[ { "docid": "25bce71f9c5e58c5947cf6e515350ba3", "score": "0.8319957", "text": "public function setupDatabase()\n\t{\n\t\t$this->hydrateDatabaseAttributes();\n\t}", "title": "" }, { "docid": "378c6e70dd4fa598c0648114a555ee38", "score": "0.82943", "text": "private function _setupDatabas...
2fa86714f1b3616d065c05d96e74d4ae
Devuelve JSON para la datatable
[ { "docid": "746ef4fb0d8b9dc41839a475d442b7f0", "score": "0.0", "text": "public function getGruposCodigosTabla($id) {\n\n\t\t$codigos = Salud::select('pss.codigos.codigo_prestacion', 'descripcion_grupal')\n\t\t\t->join('pss.codigos_grupos', function ($join) use ($id) {\n\t\t\t\t$join->on('pss.codigos_gru...
[ { "docid": "b81fed71d08dd7b1da7afed32151544b", "score": "0.7296626", "text": "public function json()\n {\n return json_decode(self::$data->fetchAll(\\PDO::FETCH_ASSOC));\n }", "title": "" }, { "docid": "9120f800418ee6631963977a7e0a5e47", "score": "0.7164644", "text": "pu...
2ae0b6e9fc551ed42d04f0dbc6868ab3
assign job to sku the button is visible only when there are skus
[ { "docid": "f9dadf3eec859ab69b8530d34101cc03", "score": "0.549876", "text": "protected function canAssignSkuSub() {\r\n if (empty($this -> mJobId)) return FALSE;\r\n if (!$this -> mUsr -> canEdit('job-sku')) return FALSE;\r\n $lSql = 'SELECT COUNT(id) FROM al_job_sku_'.intval(MID);\r\n retur...
[ { "docid": "46647dc6105b495990918c9df0606089", "score": "0.60922277", "text": "protected function canAssignSkuSur() {\r\n if (empty($this -> mJobId)) return FALSE;\r\n if (!$this -> mUsr -> canEdit('job-sku')) return FALSE;\r\n $lSql = 'SELECT id FROM al_job_pro_'.intval(MID);\r\n if (0 < CC...
4c8efa7dd527433697212918e0f410b1
Form API submit callback for the mee_asset form.
[ { "docid": "1057ebaffee2994115e53dc9baf235d9", "score": "0.74683744", "text": "function mee_asset_edit_form_submit(&$form, &$form_state) {\n $mee_asset = entity_ui_controller('mee_asset')->entityFormSubmitBuildEntity($form, $form_state);\n // Save the mee asset and go back to the list of mee assets\n\...
[ { "docid": "1dad7d2ab08e45734467da21e4ac02bf", "score": "0.74906963", "text": "function mee_asset_edit_form($form, &$form_state, $mee_asset, $js) {\n // Add the default field elements.\n $form['name'] = array(\n '#type' => 'textfield',\n '#title' => t('Asset Name'),\n '#default_value' => isse...
8e50bb81092dbddfc8b274820a6a6091
Log le message passe en parametre $this>log('message');
[ { "docid": "a48f9614465c21f374f13112141941b0", "score": "0.62030554", "text": "function log($message)\n\t{\n\t\t($GLOBALS['auteur_session'] && ($qui = $GLOBALS['auteur_session']['login']))\n\t\t|| ($qui = $GLOBALS['ip']);\n\t\tspip_log('cfg (' . $this->nom_config() . ') par ' . $qui . ': ' . $message);\...
[ { "docid": "dfff05cadbcd11f2bc6ad286474e614b", "score": "0.82209", "text": "public function log($message){\n\t}", "title": "" }, { "docid": "606a0f340cee7ae837c7bbb422b8f240", "score": "0.7999732", "text": "public function log($message);", "title": "" }, { "docid": "606a0...
a214740e2918b25e27112b7d7ca3c00f
Example: e9ddc296b76b3398934bfc06239073df Notes: The verification hash is a combination of the MD5 of your API Passphrase and specific parameters sent in the transaction.
[ { "docid": "145c8abedbdb40b05f45e402eb9b0abb", "score": "0.5818575", "text": "public function getTransactionHash()\n {\n $currency = (is_null($this->getCurrency()))? 'AUD' : $this->getCurrency();\n $hash = md5(strtolower(md5($this->getApiPassphrase()) . $this->getMerchantUUID() . $this-...
[ { "docid": "1a078ab099cb8da7511d9d224b5d6740", "score": "0.65176916", "text": "public function testAuthHashGeneration() {\n\n\t\t$card = new Card();\n\n\t\t$request = new PaymentRequest();\n\t\t$request->addType( PaymentType::AUTH )\n\t\t ->addTimeStamp( SampleXmlValidationUtils::TIMESTAMP )\n\t\...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "d19f8dec3026f10ff38dbe7329c75206", "score": "0.0", "text": "public function index()\n {\n //\n return view('contactform');\n }", "title": "" } ]
[ { "docid": "a1420ad0fb284c611971591393b45aef", "score": "0.7509679", "text": "public function index()\n\t{\n\t\t$resources = Resources::all();\n\t\t$collection = array();\n\t\t\n\t\tforeach ($resources as $name => $options)\n\t\t{\n\t\t\tif (false === value($options->visible)) continue;\n\t\t\t\n\t\t\t...
02e9039718435561fff1c40ab5e2421b
Test getRecommListsUrl method with Seo
[ { "docid": "1c2113e6f781888c264f727dc088fe59", "score": "0.7686591", "text": "public function testGetRecommListsUrlSeoOn()\n {\n $oLang = oxRegistry::getLang();\n $oLang->setBaseLanguage(1);\n \\OxidEsales\\Eshop\\Core\\Registry::set(\\OxidEsales\\Eshop\\Core\\Language::class, $o...
[ { "docid": "7100f2dcead19785e2881c5ce8cb45e3", "score": "0.70549625", "text": "public function testGetRecommListsUrlSeoOff()\n {\n $oLang = oxRegistry::getLang();\n $oLang->setBaseLanguage(1);\n \\OxidEsales\\Eshop\\Core\\Registry::set(\\OxidEsales\\Eshop\\Core\\Language::class, ...
ad7bf84f04f127a0ed10b2b3b95e6472
POST /contacts Remove contact description
[ { "docid": "13008324303f4caf022d75036227d02e", "score": "0.7539989", "text": "public function actionRemoveDescription() {\r\n $id = \\Yii::$app->request->post('id');\r\n\r\n $contact = Contact::model()->find($id);\r\n $contact->description = '';\r\n $contact->save();\r\n\r\n ...
[ { "docid": "db5b764cba88b188b70cc51748188757", "score": "0.69408256", "text": "public function removeContact(){\n\t\t$contact = PazientiContatti::find(Input::get('id_contact'));\n\t\t$contact->delete();\n\t\treturn Redirect::back()->with('contact_deleted');\n\t}", "title": "" }, { "docid": "...
5183dd8e43a6c3e0a923e7b33984b436
Returns the path to the frontend.
[ { "docid": "905ca96026a2d49628d431418f5162cb", "score": "0.7633005", "text": "function frontend($path = null)\n {\n return url(config('app.frontend') . '/' . $path);\n }", "title": "" } ]
[ { "docid": "35a54aa07ff5e2dc1841d09bad577fd6", "score": "0.7176842", "text": "public function onGetControllerPathFrontend(Enlight_Event_EventArgs $args)\n\t{ \t\n \treturn $this->Path() . 'Controllers/Frontend/Easymarketing.php';\n }", "title": "" }, { "docid": "ba08db647e4d46f582fa9e2...
11081c3e15db2420759f72678f68cf78
A file must be passed
[ { "docid": "24c41e834caa08a9aa6bca9694ea4109", "score": "0.0", "text": "public function __construct(File $file, $disk_type = 's3')\n {\n if (empty($file)) {\n throw new \\Exception('Must provide a valid file');\n }\n // Set FileUploader properties\n $this->file ...
[ { "docid": "0486eb6dfa99d99a2b2d13b26e9940fb", "score": "0.7535295", "text": "abstract public function file();", "title": "" }, { "docid": "69417d909ac714133181f277b8144012", "score": "0.69935155", "text": "public function usesFilename();", "title": "" }, { "docid": "ded3...
0db8e50ba8d421c22432c8cabd73a62c
Returns next message ID
[ { "docid": "976676cc0f8ce31f47bcf3498b368973", "score": "0.73656094", "text": "protected function getMsgId() {\n $this->msg_id++;\n return $this->msg_id;\n }", "title": "" } ]
[ { "docid": "c286975efd890ea27b110181836bc00c", "score": "0.8548823", "text": "public function getNextMessageIdentifier()\n {\n return ++$this->messageIdSeq;\n }", "title": "" }, { "docid": "5d1e50d18c8ab8a0f3d02b494ed6914c", "score": "0.71405333", "text": "public functio...
cfb734005c73e05c2b7ecd3dbe335910
Gets the notCompliantTenantsCount property value. The notCompliantTenantsCount property
[ { "docid": "5042bad157481da1ae782167eb644906", "score": "0.7151296", "text": "public function getNotCompliantTenantsCount(): ?int {\n $val = $this->getBackingStore()->get('notCompliantTenantsCount');\n if (is_null($val) || is_int($val)) {\n return $val;\n }\n throw...
[ { "docid": "bffdad182ad82ff1d70d5fdd9eadd517", "score": "0.73336583", "text": "public function getNonCompliantCount()\n {\n if (array_key_exists(\"nonCompliantCount\", $this->_propDict)) {\n return $this->_propDict[\"nonCompliantCount\"];\n } else {\n return null;\...
6615c17782afbc990bb9d864ea639865
Get the title for the supplied record, if available; null otherwise.
[ { "docid": "4e6cf6e23689d13b6fbe15004263aa36", "score": "0.85458314", "text": "function getTitle(&$record) {\n\t\treturn null;\n\t}", "title": "" } ]
[ { "docid": "d562124fe9751c74ba4d320d2a1aaf16", "score": "0.8177294", "text": "function getTitle(&$record) {\n\t\t$entries = $record->getParsedContents();\n\t\tif (isset($entries['245']['0']['0']['a'])) return array_shift($entries['245']['0']['0']['a']);\n\t\tif (isset($entries['520'][' '][' ']['a'])) re...
fb40437e9cc38e77cca68d1354f84f28
Outputs a message flagged as Message.
[ { "docid": "62ebd9091702286af86685b51d28ddc8", "score": "0.0", "text": "static public function Msg($message, $printStackTrace = false)\n {\n $log = new Log($message, self::LEVEL_MESSAGE);\n $log->_printTraceStack = (bool)$printStackTrace;\n $log->saveToFile();\n }", "title...
[ { "docid": "b72bb5cb98dc10458a318d0a890fb769", "score": "0.6446068", "text": "public function output()\n {\n $output = '';\n if (count($this->messages)) {\n foreach($this->messages as $message) {\n // Configure css class\n $cssClass = 'flash-mess...
801a6fbe47d3bb7f71c40a4cfd9d8b25
abort_if(Gate::denies('user_delete'), Response::HTTP_FORBIDDEN, '403 Forbidden');
[ { "docid": "c9c2294a66c63d518a4c25cfa52ea7c3", "score": "0.0", "text": "public function destroy(User $user)\n {\n\n $user->delete();\n\n return back()->withSuccess('Task Created Successfully!');\n }", "title": "" } ]
[ { "docid": "6739ef1064d9b329f8228d22bf9dc351", "score": "0.7066132", "text": "public function forbiddenResponse()\n {\n return App::abort('403', 'Unauthorized action.');\n }", "title": "" }, { "docid": "4f939da49c15d91046d5e42c0f41a588", "score": "0.7050614", "text": "pu...
d0d6991e7bb10cf81caefbcbe8c1e8b0
Function to Get Total
[ { "docid": "20bcdcd0e76ebe304af96c3d11e2241e", "score": "0.0", "text": "public function getTotalAttribute() {\n return $this->cartItems->map(function ($item, $key) {\n return $item->subtotal;\n })->sum();\n }", "title": "" } ]
[ { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.8709243", "text": "public function getTotal();", "title": "" }, { "docid": "496bc0c28c1ae84e89700058cc363d67", "score": "0.8709243", "text": "public function getTotal();", "title": "" }, { "docid": "784f2d264a06f5...
a0badb207d99a157f24519cbfb7962db
Get the parent that owns the child.
[ { "docid": "37d40cf91ac0579ea8441566454c00e2", "score": "0.0", "text": "public function parent()\n {\n return $this->belongsTo('App\\User', 'parent_id');\n }", "title": "" } ]
[ { "docid": "17198c04888426a0a0e40363948f281b", "score": "0.80536664", "text": "public function getParent() {\n $this->_checkValid();\n return $this->_parent;\n }", "title": "" }, { "docid": "922e9c0cc9792bbd2db2ac7b17f2a216", "score": "0.79719335", "text": "public function get...
628b3d02f745fbe426bc7b4b15a5350a
Callback function for `stripslashes_deep()` which strips slashes from strings.
[ { "docid": "f75c84d110f3b78985f00382917a96e8", "score": "0.68846494", "text": "function stripslashes_from_strings_only($value)\n {\n }", "title": "" } ]
[ { "docid": "781389fe7ac34af33eae58b3b713325a", "score": "0.76407063", "text": "function stripslashes_deep($value) {\n $value = is_array($value) ?\n array_map('stripslashes_deep', $value) :\n stripslashes($value);\n\n return $value;\n}", "title": "" }, { "docid": "0f84136df403b9840e60...
ba6ab71bd56892c1f3591935c8fbc9bc
where provinsi sampai kelurahan
[ { "docid": "2e26d979019c454fecb66ff9e69561a9", "score": "0.0", "text": "public function PosisiLingkungan() {\n $kelompok = Yii::$app->levelcomponent->getKelompok();\n $pos = [\n 'Kd_Prov' => $kelompok['Kd_Prov'],\n 'Kd_Kab' => $kelompok['Kd_Kab'],\n 'Kd_Kec...
[ { "docid": "85312dc58568a902ecb9885a61096fec", "score": "0.6675822", "text": "function _getSKPTahunan($id_user)\n\t{\n\t\t$sql=\"SELECT d.* ,ROUND((SUM(d.nilai))/count(d.nilai),2) nilai_capaian_skp,\n\t\tekinerja.sf_formatTanggal(d.awal_periode_skp) format_awal_periode_skp,\n\t\tekinerja.sf_formatTangga...
5114d24427bcf2da445c23904ade4278
Formats a string containing the fullyqualified path to represent a metric_descriptor resource.
[ { "docid": "af3337cc7fe055e9c0315b81dc2555d9", "score": "0.5054786", "text": "public static function metricDescriptorName($project, $metricDescriptor)\n {\n return self::getMetricDescriptorNameTemplate()->render([\n 'project' => $project,\n 'metric_descriptor' => $metricD...
[ { "docid": "d8258fed0b527d62fa5cc0d585736d25", "score": "0.50828975", "text": "public static function format($pathData): string;", "title": "" }, { "docid": "864019006227a5a64be3a31967778e60", "score": "0.502981", "text": "public static function pathFormatter()\n {\n }"...
004866f1be58213c71fc0973ff8efc46
/The following function has been modified in order to better integrate the Report Lists with the core Sugar functions Normally you would see this type of code in a editview.php or detailview.php file. However, the nature of of the report lists is different than most listview scenarios.
[ { "docid": "e5e6ae14c2322cad1c239909dbdf79c5", "score": "0.72648436", "text": "function get_list_view_data(){\n $temp_array = $this->get_list_view_array();\n\t\tglobal $timedate;\n\t\tglobal $app_strings;\n\t\tglobal $mod_strings;\n\t\tglobal $app_list_strings;\n\n\t\tglobal $current_user;\n ...
[ { "docid": "1566ee1d8d32a310612c876d985a210a", "score": "0.72539186", "text": "private function processReportList()\n {\n global $g_comp_database_system;\n\n $l_allowed_reports = isys_auth_report::instance()\n ->get_allowed_reports();\n\n $l_dao = new isys_...
b2cb975c3f51467e423d31faefa8e5b2
function save celle / function saveCelle to save cells planning action of celle=?? and position=?
[ { "docid": "7c30d11c86fdd2be1330e77b5575faf1", "score": "0.5586837", "text": "public function saveCelle($liste=null)\n{\n\t$liste=explode(',',$liste);\n\t $this->loadModel('DetailPlan');\n \n $data=array('id'=>$liste[0],\n \t'content'=>$this->getHtml($liste[1]));\n\t\t\t\t$this->DetailPlan->save...
[ { "docid": "69815e9790c7a5522b39c804e3fda1e4", "score": "0.57227457", "text": "function save();", "title": "" }, { "docid": "bae20704be7521fe62d2274ae793b571", "score": "0.5714707", "text": "function save()\n\t\t{\n\n\t\t}", "title": "" }, { "docid": "ff3845b0efd531a54315...
fe023a2b2b53b520f345ca0adc7db9a2
Display the specified DocumentCategory.
[ { "docid": "3129e6b286e280c48d51a0be54dd1cd5", "score": "0.60511774", "text": "public function show($id)\n {\n $documentCategory = $this->documentCategoryRepository->findWithoutFail($id);\n\n if (empty($documentCategory)) {\n Flash::error('Document Category not found');\n\n ...
[ { "docid": "705084b4b6408be71ccb6fde8851f729", "score": "0.70342255", "text": "public function show(Category $Category)\n {\n //\n }", "title": "" }, { "docid": "c7912b8fb71ff84752543ce62b463dec", "score": "0.70017445", "text": "public function show(Category $category)\n...
5c6b27d4885440cb2de6a7329463e491
Test case for salesOrderPaymentTypesGETRequestPaymentTypesPaymentTypeIDGet Retrieves a payment type.
[ { "docid": "28e2d0de9c67de00d00148e840f1ad50", "score": "0.67180336", "text": "public function testSalesOrderPaymentTypesGETRequestPaymentTypesPaymentTypeIDGet()\n {\n }", "title": "" } ]
[ { "docid": "dbd618a46a62ed4259e792230bca2eb5", "score": "0.6734691", "text": "public function getIdpaymentstype()\n {\n return $this->idPaymentsType;\n }", "title": "" }, { "docid": "64dadec81d59ab7467f91e675b0411dc", "score": "0.6614165", "text": "public function getPay...
431d58bab7b094f761b46a5b2a838b9d
Initialize the widget, called by the constructor and free from its parameters.
[ { "docid": "d8710cd2620c3289ac3069ff6752f7de", "score": "0.0", "text": "public function init()\n {\n }", "title": "" } ]
[ { "docid": "98c84c777c45fd699a9a2ad2442e0901", "score": "0.7817349", "text": "public function init()\n {\n // Initialize widget.\n }", "title": "" }, { "docid": "651ac0b2afaeb860bd1f4c0acd379601", "score": "0.72884893", "text": "public function init(){\n /*you can...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "4bac3188558c3acab53dd8d5175c1d4e", "score": "0.0", "text": "public function show($id)\n {\n //\n }", "title": "" } ]
[ { "docid": "ac91646235dc2026e2b2e54b03ba6edb", "score": "0.8190437", "text": "public function show(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5152a75698da8d87238a93648112fcf", "score": "0.72897154", "text": "function display($resource_name, $cache_id ...
1bbea0d56fe2057687542f46d11ddce7
Get the funding account associated with the contribution.
[ { "docid": "ad621c1f038cdb23d8a8c6d7e931529b", "score": "0.0", "text": "public function fundable() {\n return $this->belongsTo('App\\Fundable', 'fundable_id');\n }", "title": "" } ]
[ { "docid": "4f189632041a34cbe91ffef43774bf5b", "score": "0.7079601", "text": "public function getFinancialAccount()\n {\n return $this->financialAccount;\n }", "title": "" }, { "docid": "20b341d87d2c531de76c8ec033db44ca", "score": "0.68829644", "text": "public function g...
f90ac98d1e8fee2c99b7066df5d3aed7
======================================================================================== FUNCTIONS FOR INSTRUCTOR VIEWING THEIR OWN SCHEDULE ========================================================================================
[ { "docid": "a0f9a92f7b03886605bd9ab457b78359", "score": "0.0", "text": "public function SearchByInstructor_MenuLeft_Instructor() \n {\n $OBJ = new Website_PageContents();\n $output = $OBJ->GetContentFromIdentifier('##INSTRUCTOR_CALENDAR_INSTRUCTIONS##');\n \n return $ou...
[ { "docid": "6ffd9fff54a11121101a27031a1ce1ec", "score": "0.6492541", "text": "abstract public function getSchedule();", "title": "" }, { "docid": "aa8beb455029ed5428bd3a49903080fa", "score": "0.64675516", "text": "public function schedule(){\n\t}", "title": "" }, { "docid...
99b316964e5800d3eb99dd9514d17ce9
afficher la liste des formt
[ { "docid": "a228fdacbb59a5721b5116509bd99752", "score": "0.0", "text": "public function all_formt_n()\n {\n $this->AdminAuthCheck();\n $all_formt_info = DB::table('tbl_formations')\n ->where('formt_type', 'non')\n ->orderByDesc('formt_id')\n ->paginate(5...
[ { "docid": "3ba941db19852c1d1dc9b194d7705d7e", "score": "0.6505567", "text": "public function liste(){\r\n \r\n $d['vente'] = $this->Vente->get();\r\n $this->set($d);\r\n $this->renderS('listeVente');\r\n \r\n print_r($d);\r\n \...
bcc35ff70f23e76c18a5c9e18c244e30
Sets the createdByUserId property value. The identifier for the account that created the tenant tag. Required. Readonly.
[ { "docid": "70abb895c15b5eb6c2f7339fe87424de", "score": "0.70788306", "text": "public function setCreatedByUserId(?string $value): void {\n $this->getBackingStore()->set('createdByUserId', $value);\n }", "title": "" } ]
[ { "docid": "d6abf54ee08d8d3f305659b81bd23b1c", "score": "0.72719187", "text": "public function setCreatedUserId($createdUserId)\n {\n $this->createdUserId = $createdUserId;\n }", "title": "" }, { "docid": "ff734435760fb1c461ca3cf7fe9bbcd7", "score": "0.7140955", "text": ...
313ff7705d4e87750b2cd162f3a73639
Show the form for editing the specified resource.
[ { "docid": "d3bfe5fb89e0aa2f15ecfe190e457f61", "score": "0.0", "text": "public function edit(Warehouse $warehouse)\n {\n //\n }", "title": "" } ]
[ { "docid": "eaff1ff5ad75e879908bb065beeea534", "score": "0.789207", "text": "public function edit(Resource $resource)\n {\n return view('actions.resource.edit', compact('resource'));\n }", "title": "" }, { "docid": "f3bc4ff0e0f2cc54bf914d77670e405e", "score": "0.78099495", ...
70429e2ed1867c6e152ca0ae523e03bf
Retrieves a list of models based on the current search/filter conditions. Typical usecase: Initialize the model fields with values from filter form. Execute this method to get CActiveDataProvider instance which will filter models according to data in model fields. Pass data provider to CGridView, CListView or any simil...
[ { "docid": "87f4777692860d9fe6b1a0e43a58046c", "score": "0.0", "text": "public function search()\n\t{\n\t\t// @todo Please modify the following code to remove attributes that should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('id_offre_emploi',$this->id_offre_emploi);\n\...
[ { "docid": "ef46ff0319907477c9c00c2b8e561c28", "score": "0.73506933", "text": "public function search()\n\t{\n\t\t// Warning: Please modify the following code to remove attributes that\n\t\t// should not be searched.\n\n\t\t$criteria=new CDbCriteria;\n\n\t\t$criteria->compare('model_id',$this->model_id)...
33049b2b8650ec0d2fa4d9464647038e
/ Save and update location
[ { "docid": "336e45437416130f93cf0e4c819099e2", "score": "0.6398391", "text": "public function save_locations(){\n \n if(!empty($_POST['location_id']))\n { \n $locatons_name = $_POST['location_name'];\n $sql = \"UPDATE locations SET location_name='$locatons_name...
[ { "docid": "85700832ad34ebd9199bf4d167d163e7", "score": "0.6942038", "text": "public function persist(Location $location);", "title": "" }, { "docid": "b8a71571191a73c425c87e7a31192a39", "score": "0.6875791", "text": "public function update_location_coordinates() {\n $loca...
e82279f5e270b449b336fba0cd8bcffa
Retorna uma Entidade de Dispositivo
[ { "docid": "4127c3a5b7b5cefdc3d046114626951e", "score": "0.0", "text": "public function obterPorId($id)\n {\n $conexao = DataBaseService::obterConexao();\n $query = \"SELECT `id`, `nome` FROM `categorias` WHERE `id` = :id\";\n $prepare = $conexao->prepare($query);\n $prepa...
[ { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d8784694559563702e77a575eda4ec38", "score": "0.64225566", "text": "public function getEntity();", "title": "" }, { "docid": "d878469455...
d62c4c4901da7012be609cc3ed3d7d3f
Gets the configuration mapper this event is related to.
[ { "docid": "ae4d048b9ed9f6e87af14ad8a679347c", "score": "0.701898", "text": "public function getMapper() {\n return $this->mapper;\n }", "title": "" } ]
[ { "docid": "5400a97531967710c81c632ff63868b4", "score": "0.73486835", "text": "public function getConfigMapper()\n {\n if (!isset($this->_storage['configMapper'])) {\n $this->_storage['configMapper'] = new Default_Model_Mapper_ConfigCache(\n new Default_Model_Mapper_C...
0caf031f92d1f1922cbb4edcfe30d6f5
Implements THEME_menu_link__menu_block__$hook_menu_name(). Renders the main menu.
[ { "docid": "2ad04b6c064daf294add13666dfc43ce", "score": "0.6454204", "text": "function balk_menu_link__menu_block__main_menu(&$variables) {\n $element = $variables['element'];\n $sub_menu = '';\n $description = '';\n $split_tree = '';\n\n // Add the link classes to the parent <li> element too.\n ...
[ { "docid": "a84f8128d5ce57f8e79e7931b13e5c0c", "score": "0.74518", "text": "public function getMenuName();", "title": "" }, { "docid": "20067c0982b5497fa34cd7d081555ee5", "score": "0.7341995", "text": "public function getName()\n {\n return self::MENU_NAME;\n }", "ti...
f281f90ea4634b698d8380f25323d6e6
echo ''; print_r($_POST); die;
[ { "docid": "b1ba6cdd0ec9091ad1da7e50a7150a7e", "score": "0.0", "text": "function create() {\n\t\t$data[ 'title' ] = 'Requests';\n\t\tif ( isset( $_POST ) && count( $_POST ) > 0 ) {\n\t\t\t$request_type = $this->input->post('request_type');\n\t\t\t$user_id = $this->session->userdata( 'usr_id' );\n\t\t\ti...
[ { "docid": "dcc0fd3422dabd97782459fb512f69ea", "score": "0.8180432", "text": "function show_post(){\n\t\tprint \"<pre>\";\n\t\tprint_r($_POST);\n\t\tprint \"</pre>\";\n}", "title": "" }, { "docid": "3de74cba2e38a373759ed9415f8d715c", "score": "0.77293", "text": "function finger_print...
2deecac5cd8f9b4d1a85fa2cacec99a2
Gets as abbreviatedName A Composite containing a short version of the PartyName (e.g. for use on devices with a small display).
[ { "docid": "c52867bcf20a7496e70cd2abeb2e76b5", "score": "0.70004755", "text": "public function getAbbreviatedName()\n {\n return $this->abbreviatedName;\n }", "title": "" } ]
[ { "docid": "a2be9b984fbb62449b53fb46935fd78e", "score": "0.68872094", "text": "public function getShortName();", "title": "" }, { "docid": "a2be9b984fbb62449b53fb46935fd78e", "score": "0.68872094", "text": "public function getShortName();", "title": "" }, { "docid": "d8d3...
06bb8cc2dc5e782a342cdb3c200e5b9d
/ Add number of days (AJAX)
[ { "docid": "1c9dec993dadfadd662c61287d681335", "score": "0.6131503", "text": "function numberofdays(Request $request){\n\t\tsession_start();\n\t\t$server=mysqli_connect('localhost', 'root', '', 'gbridge');\n\t\t$bookedby=$_SESSION['sessname'];\n\t\t$name = $request->input('desti');\n\t\t$newduration=$re...
[ { "docid": "b49b675accd98a4eecd537b26fbb75d3", "score": "0.64391255", "text": "function _addDays($days)\n {\n return (86400*$days);\n }", "title": "" }, { "docid": "cc744afabac9a720cc5e82c34d175703", "score": "0.59608823", "text": "public function addDay()\n {\n return...
8cc5a5c1f2cc2623d2b9e11bdebb2136
/ | | SHOW ALL POSTS BY CATEGORY |
[ { "docid": "e0c4a9bfb780ce4d1240c80bf4086607", "score": "0.5752552", "text": "public function getAllCategoryPosts(Request $request, $category_id){\n // body\n $request->id = $category_id;\n \t$posts \t= new Post();\n \t$data \t\t\t= $posts->getAllCategoryPosts($request);\n\n /...
[ { "docid": "a1d6bb1993a0f852d78365a6790403d8", "score": "0.7027094", "text": "public function showCategories()\n {\n // $this->unbindModel(array('hasMany' => 'Post'));\n return $this->find('all',array(\n 'recursive' => -1\n ));\n }", "title": "" }, { "doc...
331a3b7346b33660f5b91a08d8534702
Whether the collection contains a value. Will check whether the value is in the collection.
[ { "docid": "cf1e20ddf7f19da4bf58cc4697f4ab6a", "score": "0.7112961", "text": "public function has($value);", "title": "" } ]
[ { "docid": "561e1f7306890d121fb6920f479d2d49", "score": "0.7895438", "text": "public function has($value) {\r\n\t return in_array($value, $this->_container);\r\n\t}", "title": "" }, { "docid": "1c97f5bf02431e43169c1cb5068fe8e3", "score": "0.76556575", "text": "public function has(...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "9bdad359dc98221ea5e055c16eaf32af", "score": "0.0", "text": "public function run()\n {\n $article = new Article();\n $article->title = 'Первая статья';\n $article->slug = 'pervaya-statya';\n $article->text = 'Et duis sit ipsum consectetur anim dolor voluptate. C...
[ { "docid": "520d3a91ddad10619dacf1b7197c5aec", "score": "0.7992128", "text": "public function run()\n {\n DB::table('users')->insert([\n 'id' => 1,\n 'name' => 'Usuário',\n 'email' => 'user@email.com',\n 'password' => bcrypt('secret'),\n ]);\n...
700694cdf7bf232354511255e5d5df4b
Check is valid IP address
[ { "docid": "ac82ee5386c26f54a4060182c2642f0a", "score": "0.7640115", "text": "public static function isValidIpAddress($ip_address){\n return (filter_var($ip_address, FILTER_VALIDATE_IP)) ? true : false;\n }", "title": "" } ]
[ { "docid": "91d8b326d0f6b40043a41530e2bdaf6f", "score": "0.7999172", "text": "function validate_ip($ip)\n {\n if (strtolower($ip) === 'unknown')\n return false;\n\n // generate ipv4 network address\n $ip = ip2long($ip);\n\n // if the ip is set and not equivalent...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "00f7eb68be538f8135c66bcd080f2f44", "score": "0.0", "text": "public function index()\n { \n\n if(!(Gate::denies('read_armazem'))){\n $armazems = Armazem::paginate(40); \n\n //LOG --------------------------------------------------------\n $this->log(...
[ { "docid": "1d384f4e78f98647387c1b7298b0696a", "score": "0.74723387", "text": "public function index ()\n {\n $this->list();\n }", "title": "" }, { "docid": "4bed8c9cfd05d9666f1acd8791970421", "score": "0.7459176", "text": "public function index()\n {\n /** @var ...