query_id
stringlengths
32
32
query
stringlengths
7
5.32k
positive_passages
listlengths
1
1
negative_passages
listlengths
88
101
2cc3fd66a7b4ea6576c7204bf5aaaa52
Gets a menu by its id or name
[ { "docid": "2db1e07271b0b20f835536505d34fdb3", "score": "0.72678614", "text": "public function menu($nameOrId)\n {\n if (is_int($nameOrId)) {\n return $this->menuById($nameOrId);\n } elseif (is_string($nameOrId)) {\n return $this->menuByName($nameOrId);\n }\...
[ { "docid": "473e4023276d610e87bf1d141fc40b20", "score": "0.81468517", "text": "public function getMenuByName($menuName);", "title": "" }, { "docid": "80d0e69c47d02831b2fbe9fd8652bf73", "score": "0.8041776", "text": "public function getMenuById($menuId);", "title": "" }, { ...
6aab6b41776f0b7693cee2fffd37fbad
Add option page to the Faqs menu
[ { "docid": "1423a4e9602411f075c8e8b4fd2573d3", "score": "0.0", "text": "function import_page() {\n\t// add top level menu page\n\tadd_submenu_page(\n\t\t'edit.php?post_type=faq',\n\t\t'FAQ Import',\n\t\t'Import',\n\t\t'publish_posts',\n\t\t'import',\n\t\t'\\CCL\\Faqs\\import_page_html'\n\t);\n}", "t...
[ { "docid": "bbb08777011b50d89c17362d7da12389", "score": "0.78639233", "text": "public function addOptionsPage() {\n add_action( 'admin_menu', [$this, 'defineOptionsPage']);\n }", "title": "" }, { "docid": "f5808b7097de393d18ffc7b1cd08d018", "score": "0.775998", "text": "pub...
71b50af9198c5c096c6359810e93eb1d
paginate roles received from database
[ { "docid": "c53d87b30834538996da159fa7a8504e", "score": "0.6537884", "text": "public function paginateRoles($number)\n {\n $roles = Role::paginate($number);\n \n return $roles;\n }", "title": "" } ]
[ { "docid": "64edab5ea20f15223cb6e57defac2ed9", "score": "0.72607017", "text": "public function index()\n {\n $limit = Input::get('limit') ?: 5; \n \n $uid = Auth::user()->id;\n $roles = Roles::where('user_id','=',$uid)->paginate($limit);\n\n return $this->resp...
8da5764ec0afb15bdf880e6dba5a7f0d
Cache's The Parsed Settings Config
[ { "docid": "87847a96a85ff12b9ac3151a85a85c67", "score": "0.0", "text": "protected function cacheConfig($index, array $config)\n {\n if ($this->cache instanceof CacheInterface && !empty($config)) {\n // Cache Event\n $this->cache->setCache(__CLASS__ . ':' . $index, $config...
[ { "docid": "bff664a6f19a5182c5b998162104e18a", "score": "0.71320105", "text": "public function cacheConfig(): void;", "title": "" }, { "docid": "7fe73b7bfd922ac8f0ac62eac8746747", "score": "0.67297244", "text": "public static function configCache() {\n\t\tif ($duration = self::getCon...
e4ec68cbf4b69a7d440480df09fbc401
/ NOTE: for stripe $sum = $this>get('buggl_main.entity_repository') >getRepository('BugglMainBundle:PurchaseInfo') >sumNetAmountForBuggl();
[ { "docid": "5f8fc2a0dbbe63e9b0a3720cea4de4b3", "score": "0.0", "text": "public function indexAction(Request $request)\n {\n\t\t\n $sum = $this->get('buggl_main.entity_repository')\n ->getRepository('BugglMainBundle:PaypalPurchaseInfo')\n ->sumNetAmountForB...
[ { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.6760432", "text": "public function getAmount();", "title": "" }, { "docid": "b06d0ce1cb2522031cabae987d6f218e", "score": "0.6760432", "text": "public function getAmount();", "title": "" }, { "docid": "b06d0ce1cb25...
5acb4bebc3df84b8232f41dd9c14f0b1
Use with array_map to get the AbuseIpDB deny list.
[ { "docid": "e79cdb6928052f54d52521ba87b2b4c4", "score": "0.70063263", "text": "private function getAbuseIpDbDenyList($ipObject)\n {\n if (!property_exists($ipObject, 'abuseConfidenceScore')\n || !property_exists($ipObject, 'ipAddress')\n ) {\n return;\n }\n ...
[ { "docid": "dfd80979d4da7b7d523825619ebbfce6", "score": "0.57860863", "text": "public function getDeny()\n {\n return $this->deny;\n }", "title": "" }, { "docid": "c6ea22f8414b674dd045c6e723c3516c", "score": "0.5659459", "text": "private function getCustomDenyList($line)...
aa5e19c37a88e9176181aa76534a8d24
Gets the status The current status of the site list. The possible values are: draft, published, pending, unknownFutureValue.
[ { "docid": "82680440661957abefa4a326f79e2131", "score": "0.75513744", "text": "public function getStatus()\n {\n if (array_key_exists(\"status\", $this->_propDict)) {\n if (is_a($this->_propDict[\"status\"], \"\\Microsoft\\Graph\\Model\\BrowserSiteListStatus\") || is_null($this->_pr...
[ { "docid": "2d8d5ba828e2b94f91008278f75fd288", "score": "0.7145782", "text": "public function getStatus()\n\t{\n\t\tif( isset( $this->values['locale.site.status'] ) ) {\n\t\t\treturn (int) $this->values['locale.site.status'];\n\t\t}\n\n\t\treturn 0;\n\t}", "title": "" }, { "docid": "dab62d8c...
57221293341cea7935cda7f5d4f48249
Updates the curl headers to include Authorization and xtenanttoken headers
[ { "docid": "230c83d00b89c1babb5bd827af41a63c", "score": "0.6625422", "text": "private function setApiClientHeaders(array $additionalHeaders = [])\n {\n curl_setopt($this->curl, CURLOPT_HTTPHEADER, array_merge([\n 'Authorization: Bearer ' . $this->accessToken,\n 'x-tenant-...
[ { "docid": "0d21f303e2447b170df4459e77c98201", "score": "0.66814077", "text": "private function defineHeader($curl) {\n $header = array(\n 'Content-Type: application/json',\n \"Authorization: Bearer \" . $this->token\n );\n curl_setopt($curl, CURLOPT_HTTPHEADER...
2d381e8e95f82a260ab0a72a754cdc44
public $layout = "template_report";
[ { "docid": "9f15d6081e32a985745c674bdf4e2ecd", "score": "0.0", "text": "public function actionTemplatepopulation() {\n $report_id = $_GET['report_id'];\n //$info = $_GET['info'];\n $report = new SysReportlist();\n $rs = $report->get_link_report($report_id);\n $dateNow ...
[ { "docid": "a42fe5984521b76daba45b364e6f3688", "score": "0.6709744", "text": "private function __layoutContent()\n {\n return VIEWS . DS . 'Layout' . DS . 'base.php';\n }", "title": "" }, { "docid": "6cd37c385af5148c4dd6b4638b39c4c3", "score": "0.66388446", "text": "publ...
5c448b5e047f81728bf872dc91b0c5b5
function to change value of limit and page
[ { "docid": "ab2b5308bba935bf47614b42197f0e1d", "score": "0.0", "text": "public function changeData($l = 10,$p = 1)\r\n\t {\r\n\t\t$this->page = $p;\r\n\t\t$this->limit = $l;\r\n\t\t$this->offset = ($this->page - 1) * ($this->limit);\r\n\t }", "title": "" } ]
[ { "docid": "3f022bd1307d5fdcec0b50e11a49f100", "score": "0.76847184", "text": "function test($pageNum,$limit) {\n\n }", "title": "" }, { "docid": "03df06aadee2bf1df367efa702002c12", "score": "0.76737607", "text": "function set_limit(){\n\t\t$this->once_page_limit('pages');\n\t\tre...
99df53da6c4778b0d5683f2377fff8ba
Set a running header for tables that span multiple pages
[ { "docid": "4de211b421429b2d1104f7d65228d2aa", "score": "0.6380321", "text": "public function SetRunningHeader($running_header) {\r\n $this->running_header = $running_header;\r\n }", "title": "" } ]
[ { "docid": "953b187dd8014e72776e38255bb749af", "score": "0.7940372", "text": "function pageHeader()\r\n {\r\n if($this->ProcessingTable)\r\n $this->TableHeader();\r\n }", "title": "" }, { "docid": "0a3b437372bf645c5adf76d322620134", "score": "0.7041492", "text...
d4401136b93589ac8518268d1e99f8aa
Use the register method to register items with the container via the protected $this>leagueContainer property or the `getLeagueContainer` method from the ContainerAwareTrait.
[ { "docid": "a1c953a0c3d30a262ab0fd6f99a38c6f", "score": "0.61290085", "text": "public function register()\n {\n $this->addShared(\n EventBus::class,\n function () {\n $bus = new SimpleEventBus();\n\n $bus->beforeFirstPublication(function (Eve...
[ { "docid": "8d5349117a0c0d7916328c7e25e626a9", "score": "0.6750424", "text": "public function register()\n {\n $container = $this->getContainer();\n\n $container->add(InitCommand::class)\n ->withArguments([\n \\Symfony\\Component\\Filesystem\\Filesystem::class,...
6255722dfc04ed63e66b9e2e3661112c
/ array("title" => "Panel Title", "head_button" => "Add", "head_button_modal_id" => "modalID") $data['title'] = "Panel Title"; $data['head_button'] = "Add"; $data['head_button_modal_id'] = "modalemail";
[ { "docid": "f02ed7fcde6936526959e978d37deb32", "score": "0.0", "text": "public static function panel($data = array())\n {\n\n $data['start'] = true;\n\n $view = View::make('core::elements.panel')->with('data', $data);\n return $view;\n\n }", "title": "" } ]
[ { "docid": "aeb455fe6be6986473902fe511231b75", "score": "0.58433884", "text": "function responsive_pop_up_variable_info() {\n $variable['normal_pop_up'] = array(\n 'type' => 'fieldset',\n 'title' => t('Normal POP UP'),\n 'localize' => TRUE,\n 'group' => 'Responsive_pop_up',\n\t'description'...
6dcb2dc7edb99caf5ae6bff28f8fe868
Show the confirmation for deleting the specified resource
[ { "docid": "30244af541bd4dface8ac7e2f1316500", "score": "0.0", "text": "public function delete($id)\n {\n dd('t');\n }", "title": "" } ]
[ { "docid": "170e6ddee82d626d0bbd2d2d456ba4cf", "score": "0.76565504", "text": "protected function confirmDelete() {\n\t}", "title": "" }, { "docid": "dd22133d4544515fc3781df9a4815ab6", "score": "0.7451107", "text": "public function confirmAction() {\n\t\t$id = $this->getRequest ()->g...
24f20b61d9fb52cb88f55d17c4da1eff
Bootstrap the application services.
[ { "docid": "618bc8751997989caf46e4a9c0aea96d", "score": "0.0", "text": "public function boot()\n {\n if (!$this->app->routesAreCached()) {\n $this->app->router->group(['namespace' => 'Mixdinternet\\Galleries\\Http\\Controllers'],\n function () {\n r...
[ { "docid": "3d004bde9e10aeedcc4c81558d7dc97f", "score": "0.72865707", "text": "public function boot()\n {\n dd('we are loading our package service provider');\n }", "title": "" }, { "docid": "a909f9e81cf4fa4d14672123a49a8a55", "score": "0.71553916", "text": "public funct...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "0ac8997a8479b988f610a43189c08bcd", "score": "0.0", "text": "public function show($id)\n {\n $category = $this->categoryService->getById((int)$id);\n\n return view('admin.modules.gallery.category.show', compact('category'));\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 ...
b863aeabbb303d8d47af066dd138369f
Map any supported payment method into a config path by specified field name
[ { "docid": "b126c25e76bd6075b73a5021b33418e5", "score": "0.66226625", "text": "protected function _getSpecificConfigPath($fieldName)\n {\n if ($this->pathPattern) {\n return sprintf($this->pathPattern, $this->_methodCode, $fieldName);\n }\n\n return \"payment/{$this->_...
[ { "docid": "af67fe98539b777cb3c903dd85800d3a", "score": "0.5810094", "text": "abstract public function getPaymentMethod();", "title": "" }, { "docid": "544f5ecf1db0fc69a9294312225f3dbc", "score": "0.56402886", "text": "abstract public function getPaymentConfig($payment);", "title...
28a5af7d58753af3a17aeaeadc3e4e08
Verifier si un tableau est vide ou pas
[ { "docid": "982107fb00fa533ee4efaaff4a011b0e", "score": "0.0", "text": "function array_empty($array) {\r\n \t$is_empty = true;\r\n foreach($array as $k) {\r\n \t$is_empty = $is_empty && empty($k);\r\n }\r\n return $is_empty;\r\n }", "title": "" } ]
[ { "docid": "67da92bf16ece0ad4f313bf931f13a41", "score": "0.6677759", "text": "public function validateTable($table){\r\n return true;\r\n }", "title": "" }, { "docid": "ece4323c6297b9de84a5650c007ab084", "score": "0.6493672", "text": "private function checkTable(){\n\t\t$ro...
1be703e6c26d1aac8bab432a9afd69e4
Returns sn instance of AgreementModelFieldRendererFactory
[ { "docid": "da0e699c48f80ab428a0205bd7586608", "score": "0.7973543", "text": "static function getInstance()\n {\n if(!self::$instance)\n {\n self::$instance = new AgreementModelFieldRendererFactory();\n }\n return self::$instance;\n }", "title": "" } ]
[ { "docid": "edf0d4c37af37383773f001f4dad6f6a", "score": "0.6833817", "text": "function create(AgreementModelField $field)\n {\n $class = 'AgreementModel'.ucfirst($field->getType()).'FieldRenderer';\n\n if($field->getIdentifier() == 'size')\n $class = 'AgreementModel'.ucfirst($field->getIdent...
c3835c0ebb2a54331510dd978f0415b4
overrides the number of posts found, this affects pagination.
[ { "docid": "cd078a366bf53d6dde27d8cdbdd654f1", "score": "0.0", "text": "public function found_posts( $found_posts, $wp_query )\n\t{\n\t\tif ( isset( $this->total_found ) && $this->total_found )\n\t\t{\n\t\t\t$found_posts = $this->total_found;\n\t\t}\n\n\t\treturn $found_posts;\n\t}", "title": "" }...
[ { "docid": "a98522cec5c1238510d844f9999654c4", "score": "0.6917543", "text": "function limit_posts( $query ) {\n if ( $query->is_home() && $query->is_main_query() ) {\n $query->set( 'posts_per_page', '2' );\n }\n}", "title": "" }, { "docid": "86e3361505af5f52a3d623792f4bcc40", ...
b923b546c05c2357961ef3e6f8418546
Get PaymentMonthly value An additional test has been added (isset) before returning the property value as this property may have been unset before, due to the fact that this property is removable from the request (nillable=true+minOccurs=0)
[ { "docid": "cede2fcf7cc9f8d3a1c7607e2ac14578", "score": "0.8221961", "text": "public function getPaymentMonthly()\n {\n return isset($this->PaymentMonthly) ? $this->PaymentMonthly : null;\n }", "title": "" } ]
[ { "docid": "01360d3bc9f587b571953ea6dd5132ca", "score": "0.70161635", "text": "public function getMonthlyPayment(){\n $this->monthlyPayment = round( ($this->principal - $this->downPayment) * ($this->interestPerMonth * (1 + $this->interestPerMonth)**$this->totalMonths) /((1 + $this->interestPerMon...
7a1495ffa5c51f5dab66bf7434041f90
Array of property to format mappings. Used for (de)serialization
[ { "docid": "13cff88dfa57987074b20cdceb684b6f", "score": "0.0", "text": "public static function swaggerFormats()\n {\n return self::$swaggerFormats;\n }", "title": "" } ]
[ { "docid": "c24b2913ce8cec879352828755647833", "score": "0.62727153", "text": "public function getFormats(): array;", "title": "" }, { "docid": "30c9148ae2bd752060a6abde8f5eedc9", "score": "0.6109943", "text": "public function toArray()\n {\n $out = [];\n\n foreach (...
bef654e22e7b076471787ac8572b32e4
/ Git Functions for Admin Home Define a function for checking if a given home page option has uncommitted changes or unpulled updates
[ { "docid": "3d6a814afe6e9154142a44cd80901aad", "score": "0.0", "text": "public static function admin_home_group_get_repo_changes($repo_config, &$repo_changes, $filter_unique = false){\n if (empty($repo_config['path'])){ return false; }\n $repo_changes = array();\n\n // Collect uncom...
[ { "docid": "7e12abd152b78197b7d4b6016506b58c", "score": "0.60631424", "text": "function OS_is_home_page() {\r\n\r\n if ( !$_GET OR ( isset($_GET[\"post_id\"]) OR (!isset($_GET[\"u\"]) AND isset($_GET[\"page\"]) ) ) \r\n AND !isset($_GET[\"game\"]) \r\n AND !isset($_GET[\"games\"]) \r\n AND !isse...
0f9baaf15e0ef2250222663d51d47d54
Returns an entry version by its ID.
[ { "docid": "d8e23b266150051924c58f1001a9e364", "score": "0.66669935", "text": "public function getVersionById($versionId)\n\t{\n\t\treturn blx()->entryRevisions->getVersionById($versionId);\n\t}", "title": "" } ]
[ { "docid": "d23211d8719861f33fd4f86d1807e800", "score": "0.68311864", "text": "private function findVersionById($id) {\n $query = $this->model->createQuery(0);\n $query->setFields('{' . self::NAME . '}');\n $query->addCondition('{' . ModelTable::PRIMARY_KEY . '} = %1%', $id);\n\n ...
36b1e645d405351bdaf59800bfe27698
Function will create search restriction based on restriction array
[ { "docid": "51b4a2a8172d895e205a9e8f0b697932", "score": "0.0", "text": "function parseSearchRestriction($action)\n\t\t{\n\t\t\tif(isset($action[\"restriction\"])) {\n\t\t\t\tif(isset($action[\"restriction\"][\"start\"])) {\n\t\t\t\t\t// Set start variable\n\t\t\t\t\t$this->start = (int) $action[\"restri...
[ { "docid": "e08328e6567e279183b19ae0a71d5d8d", "score": "0.64118475", "text": "function mm_simple_search_database_for_candidates($query_array, $query_operand, $limit)\n{\n $options = array();\n\n $filtered_array = array_filter($query_array);\n if (empty($filtered_array)) {\n register_err...
0ac7bdb02e5fbb03eb7a9ee5316bf396
Run the database seeds.
[ { "docid": "407f26fb715334254b5f7fbbe7007126", "score": "0.0", "text": "public function run()\n {\n\n $permissions = [\n\n // admin panel permissions\n\n [\n 'name' => 'admin_panel_access',\n ],\n\n // user permissions\n\n [...
[ { "docid": "f74cb2c339072d43cd3b96858a89c600", "score": "0.8112695", "text": "public function run()\n {\n $this->seeds();\n }", "title": "" }, { "docid": "8d9ddbc23166c0cafca145e7a525c10a", "score": "0.80032176", "text": "public function run()\n {\n // $this->c...
3c564dd605ac872c728f6e73212b825a
Data provider for AuthCacheUtil username tests
[ { "docid": "ff9251484b3e02a2048ce11a088f02f0", "score": "0.6330588", "text": "public function testPropertyUsernameDataProvider()\n {\n $testData = [];\n\n $testModelKeys = ['username','AGAVE_USERNAME'];\n\n foreach ($testModelKeys as $testModelKey) {\n $testData[] = [$...
[ { "docid": "992897b2f69467777501b4142df91206", "score": "0.64363205", "text": "public function getUsername() {}", "title": "" }, { "docid": "5f7ed1fb4f8d96a5cdad15bcefcbea5d", "score": "0.6297723", "text": "public function getUsername(): string;", "title": "" }, { "docid"...
ee3cf682b744632f83464e51ca150f8c
/ TABELLA DEI PROFILI ASSOCIATI ALLA COMPETENZA
[ { "docid": "6f133e50ce56e1701410dfe45963e684", "score": "0.0", "text": "public function datatables_competenza_profili($id_competenza)\n {\n $this->load->library('datatables');\n\n $this->datatables\n ->select('rrtq_profilo.id_profilo,id_sep,titolo_profilo,flg_regolamentat...
[ { "docid": "949e9b916b05ca1f3d43be58e1760e4d", "score": "0.6509115", "text": "function listadoProyectos() {\n\t\t$class = \"\";\n\t\t$this->buffer = \"\n\t\t\t\t\t<div class='panel panel-danger spancing'>\n\t\t\t\t\t\t<div class='panel-heading'><span class='titulosBlanco'>\" . LISTADODEPROYECTOS . \"</s...
38358c7026a59e1e1c41a43ef67c96c9
Display this module as a payment option during the checkout
[ { "docid": "f96b1e32e0df7d40bf42f15d0eb5e95a", "score": "0.0", "text": "public function hookPaymentOptions($params)\n {\n /*\n * Verify if this module is active\n */\n if (!$this->active) {\n return;\n }\n\n /**\n * Form action URL. The f...
[ { "docid": "1e94e4f19a55c91f0acea4168cb44201", "score": "0.7000337", "text": "public function apply_payment_option()\n\t\t{\n\t\t$link \t\t\t\t\t= breadcrumb();\n\t\t$data['breadcrumb']\t\t= $link;\n\t\t\n\t\t// GET PUBLISHER DETAILS\n\t\t$acc_data = $this->mod_account->get_myaccount();\n\t\t$data['pub_...
707578a441653ca1bc7edecf3d6cb7a6
Identifies if server streams multiple server messages Generated from protobuf field optional bool server_streaming = 6 [default = false];
[ { "docid": "7ca62df0730e0af800c9929245d72d13", "score": "0.6349969", "text": "public function setServerStreaming($var) {}", "title": "" } ]
[ { "docid": "9ca9a926e9c5f2fd8f7c773c87825c46", "score": "0.64154816", "text": "public function getServerStreaming() {}", "title": "" }, { "docid": "044c3d18a8fc7192646d266efa0c9608", "score": "0.6213405", "text": "public function hasStreamingConfig(){\n return $this->_has(1);\n ...
06b048169d6000dd8f2954c77b1ec598
Show the form for creating a new resource.
[ { "docid": "2a46fdbfc8cb01983bb03691388f0169", "score": "0.0", "text": "public function create()\n {\n //\n }", "title": "" } ]
[ { "docid": "cb267e3ebbd54b9945858b4232a6e394", "score": "0.77839273", "text": "public function create()\n {\n return view('admin.resource.create');\n }", "title": "" }, { "docid": "03bfd9797acc7936efbf149267039e5d", "score": "0.7728085", "text": "public function create()...
906cb74248f6d96f4faebad5a36fc754
Construct the plugin object
[ { "docid": "606e143e172c29ea00d5161cc3bca2ed", "score": "0.6591985", "text": "public function __construct()\n\t\t{\n\t\t\t// Initialize Settings\n\t\t\trequire_once(sprintf(\"%s/settings.php\", dirname(__FILE__)));\n\t\t\t$PSP_Plugin_Template_Settings = new PSP_Plugin_Template_Settings();\n\n\t\t\t// Re...
[ { "docid": "91b0ad41e32bb21961041a9698b37979", "score": "0.7882998", "text": "public function plugin_construction() {\t\r\n\t\r\n\t}", "title": "" }, { "docid": "1a7c7c994dfc8f6b77c2bca47cb354ee", "score": "0.77677405", "text": "static\tpublic \tfunction\tinit() {\n\t\t\t/**\n\t\t\t ...
1353592cb8936c03deb5664323ac1c67
Standard code module initialisation function.
[ { "docid": "daaae24b496c5940fe3da1722274aae2", "score": "0.0", "text": "function init__database__sqlserver_odbc()\n{\n safe_ini_set('odbc.defaultlrl', '20M');\n}", "title": "" } ]
[ { "docid": "a8c584796457cd21598cf65235c207c9", "score": "0.7518407", "text": "protected function init_module() {\n \n }", "title": "" }, { "docid": "a779aa65608b01a91319b332b8ea722f", "score": "0.74303335", "text": "protected function initModule()\n\t{\n\t}", "t...
87d9bd9318500fd31020473da11a11c3
Need to register client and manage it properly to get client id ( uncheck Disable implicit OAuth ). Follow to get access token strickly. Get end point url from See some examples
[ { "docid": "3059fbdb9e85661ef1536a0efd4475ee", "score": "0.0", "text": "public function facebook_profile_connect() {\n\t\t$api_access_token = $this->get_api_key();\n\t\t$facebook_page_name = $this->get_facebook_page_name();\n\t\t$endpoint_url = \"https://graph.facebook.com/\".$facebook_page_name .\"/?fi...
[ { "docid": "32cbcf3ab7a8f07f65cf69a2f2b87a04", "score": "0.7082342", "text": "public abstract function getAccessTokenEndpoint();", "title": "" }, { "docid": "2bd9acd58af0828f4e956b6d878792f0", "score": "0.69641054", "text": "public function oauth_url();", "title": "" }, { ...
3b531fa697f9fd63537ffca2769aa63f
Unsets Idempotency Key. A value you specify that uniquely identifies this update request. If you are unsure whether a particular update was applied to an order successfully, you can reattempt it with the same idempotency key without worrying about creating duplicate updates to the order. The latest order version is returned. For more information, see [Idempotency]( patterns/idempotency).
[ { "docid": "1358e75a527c55e03c640f98fbccf30d", "score": "0.821184", "text": "public function unsetIdempotencyKey(): void\n {\n $this->idempotencyKey = [];\n }", "title": "" } ]
[ { "docid": "c0789480683dd938af1d400a32e00145", "score": "0.8100706", "text": "public function removeIdempotencyKey()\n {\n unset($this->idempotency);\n }", "title": "" }, { "docid": "4fe9a96af147847fcd337e8ed99cf61f", "score": "0.72828585", "text": "public function unset...
5b1a67066e5cd227de992d130be3bb4d
Restrict (post) content based on content restriction rules
[ { "docid": "2753754f2ccce02ceedc7a594317720e", "score": "0.6915024", "text": "public function restrict_content( $content ) {\n\t\tglobal $post;\n\n\t\t$restricted = false;\n\t\t$message = '';\n\n\t\t// check if content is restricted - and this function is not being recursively called\n\t\t// from `ge...
[ { "docid": "c666070aca0c79dd427344bcb96e46d7", "score": "0.6967426", "text": "function pr_page_restrict ( $pr_page_content ) {\n\tglobal $user_ID, $post;\n\tget_currentuserinfo ();\n\t$pr_check = pr_get_opt('method') == 'all';\n\t$pr_check = $pr_check || (\n\t\t( is_array(pr_get_opt('pages')) || is_arra...
11f29e4f22809a18b1e309fad7734a32
TODO: Implement find() method.
[ { "docid": "b59d92d7ac874527249072a0ac493da3", "score": "0.0", "text": "public function find(string $id): Category\n {\n }", "title": "" } ]
[ { "docid": "f5cac3d84d9e7e944232b3ba8d361b97", "score": "0.8684654", "text": "public function find();", "title": "" }, { "docid": "be525c8b8faaf698c67f041f59d0c675", "score": "0.86133796", "text": "abstract public function find();", "title": "" }, { "docid": "be525c8b8faa...
ce4f06179e8ca222d3bb7b6e302ee0da
If desired, you may override the template being used return a string containing the directory path, or false for no override.
[ { "docid": "b9c4358cdee14c239b460538dd66fe34", "score": "0.70727575", "text": "function getOverrideTemplate(){\n\t\treturn false;\n\t\t//return SERVER_RES_DIR.'template.html';\n\t}", "title": "" } ]
[ { "docid": "302e3351b542fa9771f5a1adfcc38ccc", "score": "0.6896173", "text": "public function getTemplatePath()\n {\n return $this->getOption('base_dir');\n }", "title": "" }, { "docid": "ba5ca1389eecf274c3722b456caf9cc3", "score": "0.68502367", "text": "public abstract ...
e8581a684bd2092fdaa1ed65489b132a
Set the margin which will be interpretated differently depending on the context.
[ { "docid": "4000edf883b9284f024898ed6ccc0094", "score": "0.6872388", "text": "function SetMargin($aMarg)\n {\n $this->margin = $aMarg;\n }", "title": "" } ]
[ { "docid": "8164cb53e3852ecaca02815355d06926", "score": "0.7024921", "text": "public function margin($value) {\n return $this->setProperty('margin', $value);\n }", "title": "" }, { "docid": "8164cb53e3852ecaca02815355d06926", "score": "0.7024921", "text": "public function m...
34935881d9cb7c19dcf585a0df44be24
GET VIDEO INFORMATION AND VALIDATION The methods below are used by the ValidationActivity We capture as much info as possible on the input video Execute FFMpeg to get video information
[ { "docid": "4d826728e1e2640a2eeb7ebc534874dc", "score": "0.0", "text": "public function get_asset_info($pathToInputFile)\n {\n $assetInfo = array();\n \n // Execute FFMpeg to validate and get information about input video\n $out = $this->executer->execute(\"ffmpeg -i $path...
[ { "docid": "57088a25fa3cd2eeeafa6deb30464380", "score": "0.6761309", "text": "private function getVideoInfo() {\n return file_get_contents($this->getRequestedUrl());\n }", "title": "" }, { "docid": "a50cc6f2fb7df036b2630fe029c44bfc", "score": "0.67484814", "text": "function...
0878be5ce43192c7600ee45ffe93ca61
Returns the static model of the specified AR class. Please note that you should have this exact method in all your CActiveRecord descendants!
[ { "docid": "255fb7e2e64356262db08eee101d2467", "score": "0.0", "text": "public static function model($className = __CLASS__)\n {\n return parent::model($className);\n }", "title": "" } ]
[ { "docid": "88e38d4d20140797c18b2b8596c5139f", "score": "0.75746477", "text": "public static function model() {\n return parent::model(get_called_class());\n }", "title": "" }, { "docid": "e8b19412cde98c670e424d18ad06ede9", "score": "0.7529055", "text": "public function mod...
4fabe03852672319124f1ed42eb14e47
Adds item to channel according to specifications:
[ { "docid": "f0e6fd513ecdbf36121ee649ea1dcf64", "score": "0.5193199", "text": "public function addItem(Item $item): void\n {\n $this->item[] = $item;\n }", "title": "" } ]
[ { "docid": "8362da892d514b08a538662f84692b76", "score": "0.6919492", "text": "public function addItemToChannel( $channel_id=0, $in=array() )\n\t{\n\t\t$this->items[ $channel_id ][] = $in;\n\t}", "title": "" }, { "docid": "9a137a6cb64d2cc71b333fc55d83c199", "score": "0.6879024", "text...
972499302c169f21ea61b70e96990c89
Store a newly created resource in storage.
[ { "docid": "001e1bbad4bface9b7c19f56493de4db", "score": "0.0", "text": "public function store(PlaceRequest $request)\n {\n $eventID = Event::where('original_id', $request->original_event_id)->first()->id;\n\n $this->authorize('create', [Place::class, $eventID]);\n\n $place = Plac...
[ { "docid": "70f839d67344487e3780c8ca780ec59c", "score": "0.78113544", "text": "public function store(Resource $resource)\n {\n //\n }", "title": "" }, { "docid": "df5c676a539300d5a45f989e772221a5", "score": "0.70093644", "text": "public function store()\n {\n r...
3e4bc1eb6c334aed5f06da9eab6e0527
Search for an array value. Returns TRUE if the array key exists and FALSE if not.
[ { "docid": "bce1820beacead8d308257afdefde0dd", "score": "0.0", "text": "public static function has(array $array, $path)\n {\n $segments = explode('.', $path);\n foreach ($segments as $segment) {\n if (!is_array($array) || !isset($array[$segment])) {\n return fa...
[ { "docid": "e5fe2fd634192189a6521e4f0cc06dff", "score": "0.7722422", "text": "function search_in_array($array, $key, $value) {\n\n\tfor ($i = 0; $i < count($array); $i++) {\n\t\tif ($array[$i][$key] == $value) return true;\n\t}\n\n\treturn false;\n}", "title": "" }, { "docid": "83ce7400d747f...
a7fa90a69f0b8935947bd57e5f3074f3
Creates a new Advertise model. If creation is successful, the browser will be redirected to the 'view' page.
[ { "docid": "206203cc03961535ede49b103519808e", "score": "0.8078479", "text": "public function actionCreate()\n {\n $model = new Advertise();\n $image = new AdsAdvertiseImage();\n $share = new AdsShare();\n// $model->id = $model->created_by;\n $model->status = 1;\n\n...
[ { "docid": "e1107f18184dd56c74f5209ce033b313", "score": "0.72631294", "text": "public function create()\n {\n $data[\"title\"] = \"Create Advertisement\";\n return view('admin/ads/create',$data)->render();\n\n }", "title": "" }, { "docid": "afe3b4ea947de1e61d6226a2f39504b...
15b6acc984a377d8ae0f324666da3f5d
Add a new item
[ { "docid": "3180c4c9b2240f2d1ef0cfc7d9776f64", "score": "0.0", "text": "public function add()\n\t{\n\t\t$data = $this->input->post(null, true);\n\t $res = $this->x->insert_jadwal($data);\n\t if($res>=1){\n\t $this->session->set_userdata('proses','berhasil');\n\t redirect('j');\n\t ...
[ { "docid": "ccabe41dd06edee2deee88e407641d2d", "score": "0.86649007", "text": "public function add( $item );", "title": "" }, { "docid": "10ad1df161582be8c9102ab877451f01", "score": "0.86428094", "text": "public function add($item);", "title": "" }, { "docid": "10ad1df161...
a8d93f25c0c8adcda92286694c0ceb45
Specifies the access control rules. This method is used by the 'accessControl' filter.
[ { "docid": "552d5ae7a36280517afc02c6e5f2dccd", "score": "0.0", "text": "public function accessRules()\n {\n $isAdmin = function ($user, $rule) {\n return $user->getState('isAdmin');\n };\n\n return [\n ['allow', // allow authenticated user to perform 'create...
[ { "docid": "03d3796f16fc3430506cfb33909d31e2", "score": "0.7199828", "text": "public function accessRules() {\n return array(\n array('allow',\n 'roles'=>array('Admin'),\n ),\n array(\n 'deny',\n ),\n );\n }", ...
4d9bbbf3cba6fa1bb4cdc7717913bd37
Determine if the user is authorized to make this request.
[ { "docid": "8eebf425ce52b4bb228e70caffb79698", "score": "0.0", "text": "public function authorize()\n {\n return true;\n }", "title": "" } ]
[ { "docid": "fd3ff688fd162563089590c7bad4145e", "score": "0.8316634", "text": "public function authorize()\n {\n // Validate that the user can access the user object\n // that they want to see (eg. themselves).\n return Auth::user()->id === $this->user->id;\n }", "title": "...
f0a9dd2d1efe05533818436c05e23b71
Allow you to run creating fixture
[ { "docid": "ca0de50efca08b6b4ab5f9fe54f40c98", "score": "0.0", "text": "public function load(ObjectManager $manager)\n {\n $user = new User();\n $user->setUsername('kostya');\n $user->setEmail('kostya@mail.com');\n $user->setPassword('$2y$13$LfKbb4tDi7arhgr8Mtk5n.5X2fKUsh6...
[ { "docid": "8dca388eb4f8011a96020384c5ae1c8c", "score": "0.75542766", "text": "public function run()\n {\n App\\FeaturedFixture::create([\n 'date' => '31st March', \n 'squad' => 'U11s A',\n 'home_team' => 'Drumcondra',\n 'away_team' => 'Clontarf',\n ...
9486b8495636e2c5f90b03f24ea86db5
Gets the alwaysOn Whether or not to enable alwayson VPN connection.
[ { "docid": "8256af35700acc9638f1d78af2a90be3", "score": "0.6684472", "text": "public function getAlwaysOn()\n {\n if (array_key_exists(\"alwaysOn\", $this->_propDict)) {\n return $this->_propDict[\"alwaysOn\"];\n } else {\n return null;\n }\n }", "tit...
[ { "docid": "5a061a3141c2ab18d67e4e7f529af644", "score": "0.63417786", "text": "public function isOn(): bool {\n return $this->is_on;\n }", "title": "" }, { "docid": "dbb39b9f2ef770de93415c8aaa58d8db", "score": "0.6096812", "text": "function is_carp_enabled() {\n // Check curre...
dab42cece4c1bb5b4318889e674b407a
Returns the Doctrine_Collection of single DmPermission objects.
[ { "docid": "0c3c110b92198fa49b8522adae412bc2", "score": "0.595103", "text": "public function getPermissions()\n {\n return $this->getUser() ? $this->getUser()->get('Permissions') : array();\n }", "title": "" } ]
[ { "docid": "4429e99e7a4df20b4f2e70f73400c0bb", "score": "0.70361966", "text": "public function getDirectPermissions(): Collection\n {\n return $this->permissions;\n }", "title": "" }, { "docid": "4429e99e7a4df20b4f2e70f73400c0bb", "score": "0.70361966", "text": "public f...
627c1ea6989e0986f8815fdf900c162e
Create a new controller instance.
[ { "docid": "c5f2f4f3c94c3a129ccbe597d9c8704e", "score": "0.0", "text": "public function __construct()\n {\n // $this->middleware('auth');\n }", "title": "" } ]
[ { "docid": "bd1ee0eb805b9537f7b5fffd7bc75869", "score": "0.7934717", "text": "protected function createController()\n\t{\n\t\t$this->createParentControllerIfNotExists();\n\n\t\t$this->create('Controller', $this->data->get('controller.path'), [\n\t\t\t'name' => $this->data->get('controller.name'),\n...
231489efdd42d94947232f0ae85ebe35
Show a list of all the deleted users.
[ { "docid": "4cd4a1f4f07fdbb2f84288fcb9f6a5fa", "score": "0.6870651", "text": "public function getDeletedPackages()\n {\n // Grab deleted users\n $packages = Package::where('status','2')->get();\n \n // Show the page\n return view('admin.package.deleted_packages', co...
[ { "docid": "1f2bd9181923256ac9e05512f580ac64", "score": "0.85698795", "text": "public function showDeletedUsers()\n {\n $users = User::onlyTrashed()->get();\n return response()->json(['message'=> 'List Of All Deleted Users!', 'users'=> $users], 200);\n }", "title": "" }, { ...
94cf05f8297bbf1be5e6988970b59ef6
Funciones que generan listboxmatch//
[ { "docid": "12ea596b26d7f37c0581af99b1d49341", "score": "0.0", "text": "function ListEncuestaTipoCampo($name, $select)\n{\n\t$sql = 'select nombre, id from encuesta_tipo_campo order by nombre';\n\t$db=DB_CONECCION();\n\t$rs = $db->Execute($sql);\n\techo $rs->GetMenu2($name,$select);\n}", "title": ""...
[ { "docid": "e784dc8ea2894389d8137b0526e512fd", "score": "0.5417", "text": "function cvpg_listview_metabox($data)\n{\n require_once CPVG_ADMIN_TEMPLATE_DIR . \"/cpvg_fieldtypes_form.html\";\n require_once CPVG_ADMIN_TEMPLATE_DIR . \"/cpvg_list_views.html\";\n\n global $wpdb;\n $db_data = cpvg...
0add178b0c8c4d701aaa1e6f8e352367
Update the specified venue in storage
[ { "docid": "f6c30af33f85cfe23db88a27097e8eb0", "score": "0.659463", "text": "public function update(VenueRequest $request, Venue $venue)\n {\n $venue->update($request->all());\n\n return redirect()->route('media.venue.index')->withStatus(__('Venue successfully updated.'));\n }", "title": "" ...
[ { "docid": "eeae6644fb373e3671040c41dd6448da", "score": "0.633516", "text": "public function update(Request $request, $id)\n {\n $request->user()->authorizeRoles(['administrator', 'manager']);\n $this->validate($request, [\n 'name' => 'required|max:80',\n 'descript...
f3712b2f1593a1ef235096980d8f60fd
Unescapes a hexadecimal string into its original string representation.
[ { "docid": "76dcdf3b544f8502f9871740d806a32e", "score": "0.7093471", "text": "public static function unescape($value)\n {\n return preg_replace_callback('/\\\\\\([0-9A-Fa-f]{2})/', function ($matches) {\n return chr(hexdec($matches[1]));\n }, $value);\n }", "title": ""...
[ { "docid": "83b98a36e8603cb4b8fcac052536da76", "score": "0.6601657", "text": "protected function unescape($string) {\n $str = preg_replace_callback(\"/\\\\\\\\(u[0-9a-fA-F]{4}|x[0-9a-fA-F]{2}|.)/\", function ($match) {\n if (preg_match('/^\\\\\\\\x(.*)$/', $match[0], $code)) {\n return ut...
875f200f99332f453dae2f274ca6e714
Checks whether manager has an active transaction
[ { "docid": "ba9179e3bfd2c9ee5f8e858ab23bd3f1", "score": "0.0", "text": "public function has(): bool;", "title": "" } ]
[ { "docid": "3c04dce823195374ae05a8692fbf8e1c", "score": "0.74733996", "text": "public function hasActiveTransaction()\n\t{\n\t\treturn $this->hasActiveTransaction;\n\t}", "title": "" }, { "docid": "7a56ba84940ee18a22be304b7b68bf89", "score": "0.71267986", "text": "public function inT...
4212bc4f4f35d2157eb51880411fb71e
Method returns common headers
[ { "docid": "83fca871ad40066a56dc47763a42b1fb", "score": "0.8221503", "text": "protected function getCommonHeaders(): array\n {\n $result = $this->headers;\n\n if ($this->idempotencyKey !== '') {\n $result[] = 'Idempotency-Key: ' . $this->idempotencyKey;\n }\n\n ...
[ { "docid": "d6c89d21b9ccd2b982737cb9d527b5d1", "score": "0.8142871", "text": "abstract public function getHeaders();", "title": "" }, { "docid": "adbae169cd383366a247792b07f21577", "score": "0.78817594", "text": "public function getHeaders();", "title": "" }, { "docid": "...
68b1b49db37381708a3e8e5bfb6564d6
This function is used in includeAttachments() function.
[ { "docid": "333bb15592d7b20e625e9949381313e9", "score": "0.0", "text": "private function includeDeleteButtons($encryptedFilePath, $showDeleteButtons = false, $isAdminAttachment = false) {\n $htmlResponse = '';\n if ($_SESSION['user_type'] == Constants::USER_TYPE_PURCHASING_PERSON ||\n ...
[ { "docid": "354b9f64666e2f8100d43e2a48e91946", "score": "0.6551689", "text": "private function __attachFiles ()\n\t{\n\t\t$content = '' ;\n\t\t\n\t\tif ( is_array ( $this->__current['attachments'] ) && !empty ( $this->__current['attachments'] ) )\n\t\t{\n\t\t\t$files = array();\n\t\t\tforeach ($this->__...
42058ab81de36cbcb3bb02d19a36d156
author: TrieuNT create date: 20181115 04:02 PM
[ { "docid": "0e1edf2a12e34169bf8be2e4bab4606f", "score": "0.0", "text": "public function getGooglePlus(Request $request)\n {\n $url = $request->get('url');\n $curl = curl_init();\n curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);\n curl_setopt($curl, CURLOPT_RETURNTRANSFE...
[ { "docid": "009d6bac02de28a1941a33502d7d0dec", "score": "0.58792645", "text": "function get_creation_time()\r\n {\r\n return 0;\r\n }", "title": "" }, { "docid": "62993599eafed4c9dd60ae0eb3e922d8", "score": "0.5823622", "text": "private function timestamps(){...
134f2085a14138be046afa926a09e08f
Redirect the user to the authentication page for the provider.
[ { "docid": "8f5db6cf5044dedf3849acabeb4bc51b", "score": "0.0", "text": "public function redirect()\n {\n $this->request->session()->put(\n 'oauth.temp', $temp = $this->server->getTemporaryCredentials()\n );\n\n return new RedirectResponse($this->server->getAuthorizatio...
[ { "docid": "a71a17ca1533e9ce19c29689255ebf79", "score": "0.70312786", "text": "public function handleProviderCallback()\n {\n $user = Socialite::driver('google')->user();\n\n $userModel = $this->persistTribeUser($user);\n\n Auth::login($userModel);\n\n\t\treturn redirect('home');...
7d8c1e66debb3d124fd951c4a4fe2955
Format an error response
[ { "docid": "0ecf3da0107483f7815b1f2cbe552734", "score": "0.0", "text": "private function _handleError( $statusCode, $data = NULL, $errorType = NULL )\n {\n /**\n * If not specified, attempt to determine data-type of passed error\n */\n if ( is_null( $errorType ) )\n ...
[ { "docid": "76242a45d7ce41adb18270d064810472", "score": "0.7234382", "text": "static function formatError(object $response): array;", "title": "" }, { "docid": "f7df394de28c3120ba7867a26bf909b4", "score": "0.71747833", "text": "function libhours_api_error(\n $format = 'html',\n $er...
deb67c61e490358efd5aaad8714e1c71
Set the meta description
[ { "docid": "dc6ecccc745553c63457cf29977c9fce", "score": "0.8148186", "text": "public function setMetaDescription($metaDescription)\n {\n $this->metaDescription = $metaDescription;\n }", "title": "" } ]
[ { "docid": "38a8342d4c12fcc605418c7169c4dbe7", "score": "0.8529808", "text": "function md_set_the_meta_description($description) {\n\n // Call the properties class\n $properties = (new MidrubBase\\Classes\\Properties);\n\n // Set meta description\n $properties->set_the_single...
a6d28bcfc1f5f0e5997ec3c010217bbe
Update the specified resource in storage.
[ { "docid": "d83e64b69b80af2975c049484c145e41", "score": "0.0", "text": "public function update(Request $request, Passwords $password)\n {\n if(parent::checkLogin() == false){\n return parent::response(\"There is a problem with your session\",301);\n }\n\n $newCategory ...
[ { "docid": "1e58026b8952df10026ace5fc59fe274", "score": "0.7423347", "text": "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'D...
bc0165ac867dfa5015436226c8045506
Returns all matching company's ids and names.
[ { "docid": "96d86d887282c050ec29089ab29ae772", "score": "0.0", "text": "public static function getAllCompanies( $str_to_match, $limit= NULL, $offset=NULL)\n\t{\n\t\t$em = \\Zend_Registry::get('em');\n\t\t$qb_1 = $em->createQueryBuilder();\n\t\t$q_1 = $qb_1->select('comp')\n\t\t\t->from( '\\Entities\\com...
[ { "docid": "00ed771a06918711d5267f7767477fcc", "score": "0.75645435", "text": "function getCompanies() {\n\n\t\t/******************************\n\t\t* Get which fields to fetch\n\t\t******************************/\n\n\t\t$ids = array();\n\n\t\tfor($i = 0, $num = func_num_args(); $i < $num; $i++) {\n\t\t...
fba5cfefabb2b65932d6fdc28af220e4
Remove the specified resource from storage.
[ { "docid": "10291edd37279e18c8caf3423051fc6f", "score": "0.0", "text": "public function destroy($id)\n\t{\n\t\t//\n\t}", "title": "" } ]
[ { "docid": "37dd170c1eaea50870a9bd20839ad070", "score": "0.7137241", "text": "public function remove(ResourceInterface $resource): void\n {\n }", "title": "" }, { "docid": "6f5cb91b0423a11c78f100fc165554df", "score": "0.6959094", "text": "public function delete(ResourceInterfac...
9af009919e4be3c75e6f8d1524c5db86
add_group method. Add a new Form_Group object to form
[ { "docid": "59d7abdcafadb97e4e4d811382c67c16", "score": "0.5977088", "text": "public function add_group($name, $values, $info=NULL)\n\t{\n\t\t$add_name = strtolower(preg_replace('/\\[\\]/','',$name));\n\n\t\t$defaults = $this->_make_defaults($add_name, $add_name);\n\t\t$defaults_globals = array_merge($t...
[ { "docid": "f3c0bf1ece60363b35424bf3f38ff9e0", "score": "0.8077251", "text": "public function add()\n {\n $group = $this->Groups->newEntity();\n if ($this->request->is('post') && !empty($this->request->data)) {\n $this->Groups->patchEntity($group, $this->request->data);\n ...
8b210b3f1f685827015a17e83524754f
Simulates an oil painting Applies a special effect filter that simulates an oil painting. Each pixel is replaced by the most frequent color occurring in a circular region defined by radius.
[ { "docid": "b9325320cd1bbf3b17e12174ae2df06e", "score": "0.7232747", "text": "function oilPaintImage($radius){}", "title": "" } ]
[ { "docid": "370248d48413fbbeebb1825b2683c3d3", "score": "0.7461211", "text": "public function oilPaintImage ($radius) {}", "title": "" }, { "docid": "76a448c5fb7cba1c48ccf66d98acfe14", "score": "0.7283533", "text": "public function oilpaintimage($radius){}", "title": "" }, { ...
30d4829d9fdd4faa2a5bf3234ee30bc7
Performs the AJAX validation.
[ { "docid": "8847c910d8f8787bf40a7bb1e2d7250c", "score": "0.0", "text": "protected function performAjaxValidation($model)\n {\n if (isset($_POST['ajax']) && $_POST['ajax'] === 'questions-form') {\n echo CActiveForm::validate($model);\n Yii::app()->end();\n }\n }"...
[ { "docid": "1510fc6b21e9a919b09df48eb986d2da", "score": "0.6821783", "text": "public function ajaxValidation($model)\n\t{\n\t\tif (Yii::$app->request->isAjax) {\n\t\t\techo Json::encode(ActiveForm::validate($model));\n\t\t\tYii::$app->end();\n\t\t}\n\t}", "title": "" }, { "docid": "ce9291dab...
46959b42612b16dfc393f86fb73329b5
Adds a JOIN clause to the query using the SucursalRelatedByIdsucursaldestino relation
[ { "docid": "ad8f5712bbe76fe08a94a6f27a2364c0", "score": "0.66599923", "text": "public function joinSucursalRelatedByIdsucursaldestino($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n $tableMap = $this->getTableMap();\n $relationMap = $tableMap->getRelation('SucursalRelated...
[ { "docid": "3bdf9f68bf359b456b179e55cb7afbda", "score": "0.65819216", "text": "public function useSucursalRelatedByIdsucursaldestinoQuery($relationAlias = null, $joinType = Criteria::INNER_JOIN)\n {\n return $this\n ->joinSucursalRelatedByIdsucursaldestino($relationAlias, $joinType)...
58752f2b5008d1228d7d557f0fd3fe8a
/ Naudoti floor funkcija Paduodant 26 valandas resultatas turi buti 1 diena(u) ir 2 valandos(u)
[ { "docid": "b4ac69546a33a7eb405bfe0f5c86ee38", "score": "0.62161833", "text": "function kiekLaiko($valandos)\n{\n $dienos = floor($valandos / 24);\n $val = $dienos * 24;\n echo $dienos . ' dienos(u) ir ' .\n ($valandos - $val) . ' valandos(u)';\n}", "title": "" } ]
[ { "docid": "c85e55139b3796c816273383988e66cb", "score": "0.5489116", "text": "function jumlahHalaman($jmldata, $batas){\r\n$jmlhalaman = ceil($jmldata/$batas);\r\nreturn $jmlhalaman;\r\n}", "title": "" }, { "docid": "c85e55139b3796c816273383988e66cb", "score": "0.5489116", "text": "f...
74572b55c4ab2c3e16899436df055bc9
Bootstrap the application events.
[ { "docid": "106f9b660ee209e61b3863856f2081a4", "score": "0.0", "text": "public function boot()\n {\n //\n }", "title": "" } ]
[ { "docid": "aed57f4bebd4c75bd95859dee0768b9e", "score": "0.7527242", "text": "public function boot()\n {\n //\n Entry::observe(EntryObserver::class);\n }", "title": "" }, { "docid": "8d543cca20e8c6cfa5d5f80684e54940", "score": "0.7469123", "text": "public function...
26d71a0b0829d496c8e6bbe23ccaa28a
Display a listing of the resource.
[ { "docid": "926ecd7026c8af66bf7c5ba222833b46", "score": "0.0", "text": "public function index()\n {\n //$user = auth('api')->user();\n\n //$contacts = Vault::latest()->paginate(10);\n \n \n //return response()->json($contacts);\n\n\n \n // $con...
[ { "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...
f2f94a3b5bc28cd7e1c2c25532cdf711
Sets allowExtra flag to true, which allows headers other than the one specified to be present within the response.
[ { "docid": "d214bbf7cc84275c74ccc88936f7a1cb", "score": "0.70717674", "text": "public function allowExtraHeaders(): self\n {\n $this->headersMatcher->allowExtra();\n return $this;\n }", "title": "" } ]
[ { "docid": "fbb969f3b6d765875611d32f7a093314", "score": "0.6643725", "text": "public function setOmitHeader($flag) {}", "title": "" }, { "docid": "2f2c6b03421e7178091d8de965e8bc1a", "score": "0.6224472", "text": "public static function allowHeader()\n {\n if (count(cfg::ALL...
fd82b5b28da1fa0bfd5b6b4905847ee3
Displays a single Antrian model.
[ { "docid": "866765f66dc1b9e239a68500e6a52d86", "score": "0.0", "text": "public function actionView($id)\n {\n $this->layout = 'dashboard';\n\n $jumlah_antrian_selesai = Nomorantrian::find()->where(['status_antrian' => 3])->count();\n $jumlah_antrian_belum_selesai ...
[ { "docid": "f033957453ad1d6cc1ab31c3835c0ceb", "score": "0.67808026", "text": "public function show()\n {\n $this->model->load('TacGia');\n $tacgia = $this->model->TacGia->findById($_GET['id']);\n $data = array(\n 'title' => 'show',\n 'tacgia' => $tacgia\n ...
f4accb73185681fa803cde4826209d84
Sets the default admin area settings screen.
[ { "docid": "3d5ffdb9d18532c0b07ab040303407e3", "score": "0.0", "text": "function nkd_default_admin_color($user_id) {\n $args = array(\n 'ID' => $user_id,\n 'admin_color' => 'midnight'\n );\n wp_update_user( $args );\n}", "title": "" } ]
[ { "docid": "b57f188b86e3decf209a9080ea544f62", "score": "0.71262586", "text": "public function settings()\n\t{\n\t\t$this->admin_model->admin_logged_in();\n\n\t\t$data = array(\n\t\t\t'title' => 'Settings',\n\t\t\t'content' => 'settings',\n\t\t\t'common' => $this->admin_model->load_common_data(),\n\t\t\...
d8c8894e4002b05e31fa4435a9d72d11
Should ship in one box
[ { "docid": "bf149949a0f314df86a96b0c764f2127", "score": "0.0", "text": "public function test4MaxWeight20lb() {\n\n Mage::helper('webshopapps_wsatestframework/log')->debug('test4MaxWeight20lb - test selects right box weight 20lb * 4' );\n\n $packages = $this->getPackages('4*SML_20LB');\n\n...
[ { "docid": "b6e07f87e2989ed37b34f5a8d1a9f3a8", "score": "0.62035114", "text": "function takeMemberShip() {\n\t}", "title": "" }, { "docid": "b7f8322533ec20e25458af55cb3b2b82", "score": "0.5871563", "text": "protected function isHit(){\n \t$grid = $this->saveData->get()['unhidden...
bda21f22bd11061ba447dcd0a3f5f258
Update Single Dolibarr Entity Field Data
[ { "docid": "658013603801f5ab4515fa19c8119707", "score": "0.0", "text": "public function setDatabaseField($name, $value, $table = null, $rowId = null)\n {\n global $db;\n\n //====================================================================//\n // Parameters Overide\n $r...
[ { "docid": "c89806fda95a35c599d032130207037c", "score": "0.68384844", "text": "public function testUpdateEntity()\n {\n }", "title": "" }, { "docid": "fb11866a6a28a176de895e06a4b06028", "score": "0.66521806", "text": "function update( $entity );", "title": "" }, { "...
bc5ed32e6db1e86c8af4c3437b0a922d
Function to get the count of message
[ { "docid": "8610c7fd5d8ed0924eb09812bb51835b", "score": "0.0", "text": "function get_count_list() { \n\t\n\t\t$this->db->select('count(*) as total');\n\t\t$this->db->from(DB_PREFIX.'broadcast');\t\n\t\t$query = $this->db->get();\n\t\n\t\t$result = $query->result();\n\t\t\n\t\treturn $result;\n\t}", ...
[ { "docid": "431f78f319409870247890f9bdf7a4d4", "score": "0.83822", "text": "public function getCount()\n {\n return $this->get('msg_count');\n }", "title": "" }, { "docid": "3875a6055e7a1702da1502384187f751", "score": "0.83359265", "text": "public function count() {\n ...
1cfc7f317ddd6d50d022ecaf1e848645
OneToMany (owning side) Get fkPessoalContratoServidorContaSalarioHistoricos
[ { "docid": "66042a819cfe785843017e0b3dbf23b3", "score": "0.75493896", "text": "public function getFkPessoalContratoServidorContaSalarioHistoricos()\n {\n return $this->fkPessoalContratoServidorContaSalarioHistoricos;\n }", "title": "" } ]
[ { "docid": "dcf59ccca1bc6a03f4f152773fda4927", "score": "0.6477444", "text": "public function getFkPessoalTcepeConfiguracaoRelacionaHistoricos()\n {\n return $this->fkPessoalTcepeConfiguracaoRelacionaHistoricos;\n }", "title": "" }, { "docid": "adb4b22944f0eac5e25b3348e29ba749",...
e59e952762f1af6fe98b430149898e7c
Adds a new after event handler closure to the collection
[ { "docid": "9f7fa9a76093d1b2bedfff514af16147", "score": "0.7471183", "text": "public function after(Closure $callback): void\n {\n $this->afterCollection->append($callback);\n }", "title": "" } ]
[ { "docid": "bd7d9898b84414d9d5eba5161ae1825b", "score": "0.6469292", "text": "public function after($callback)\n {\n $this->addGlobalFilter('after', $callback);\n }", "title": "" }, { "docid": "099e1ae16bfd95a2f93b1914a6ca4918", "score": "0.6451303", "text": "public func...
526bbbe9d04040fe6412f8b3958c519b
Generic method for sending PLAINTEXT response
[ { "docid": "3006c8ab0bb18f649dfba26f0979a34c", "score": "0.55348915", "text": "protected function sendTextResponse($text) {\n $httpResponse=$this->getHttpResponse();\n $httpResponse->setContentType('text/plain','UTF-8');\n $this->sendResponse(new TextResponse($text));\n }", "title": "" }...
[ { "docid": "5e3f4100341750506faba9589b6d8c1f", "score": "0.6048338", "text": "public function sendResponse(){\n //ENVIA LOS HEADERS\n $this->sendHeaders();\n\n //IMPRIME EL CONTENIDO\n switch ($this->contentType) {\n case 'text/html':\n echo $this->c...
56d69949e6772b7398579740d122bff8
Retorna o nome do lote
[ { "docid": "5487dfc10384a38e44394b236668dc47", "score": "0.0", "text": "public function getNome() {\n return $this->sNome;\n }", "title": "" } ]
[ { "docid": "3b6c7afb96bd9c5b277a041fe61f33a4", "score": "0.7553206", "text": "public function get_name();", "title": "" }, { "docid": "3b6c7afb96bd9c5b277a041fe61f33a4", "score": "0.7553206", "text": "public function get_name();", "title": "" }, { "docid": "3b6c7afb96bd9c...
cc623655eb48de97155341655e807691
/Purchase List from existing purchase entry
[ { "docid": "e9d50f8077ad640a0067ee5c2be5391d", "score": "0.662544", "text": "public function purchase_list($purchase_id){\n\t\techo $this->purchase->purchase_list($purchase_id);\n\t}", "title": "" } ]
[ { "docid": "3f4b49671f81776e45f5ae867505e9a5", "score": "0.604169", "text": "public static function purchaseList() {\n\t\t\t$user = self::checkAuth();\n\t\t\tself::checkRole($user, [\"Staf\", \"Manager\"]);\n\t\t\t$purchases = Purchase::all();\n\t\t\tView::render('pages/purchase/index',[\n\t\t\t\t'user'...
563174fcd64749a5f42a19afc48e851a
Sets last activity date.
[ { "docid": "e158415c78f8f0c3f6c337b1da8c7029", "score": "0.8049473", "text": "public function setLastActivityDate(\\DateTime $lastActivityDate);", "title": "" } ]
[ { "docid": "15fef2c4d21c9525c637a3e7dc040f35", "score": "0.675019", "text": "public function getLastActivityDate();", "title": "" }, { "docid": "482618cc6f19465f3772e6c21be97bff", "score": "0.65526646", "text": "public function setLast_Update()\n {\n $this->last_update = ne...
73319084aa6b8a0fbc351864b71fd266
Creates a new Proxy model. If creation is successful, the browser will be redirected to the 'view' page.
[ { "docid": "e3286da7ae1a46571c60a044418b08be", "score": "0.82265574", "text": "public function actionCreate()\n {\n $model = new Proxy();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n...
[ { "docid": "99679257768b5e3ce0f2350071f6a455", "score": "0.6781489", "text": "public function actionCreate()\n {\n $model = new Redirect();\n\n $hostInfo = $this->getHostInfo();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redir...
93066ea6bc60a7b43093ba3a6df1d9d1
Handle inncoming request to the application
[ { "docid": "505639398580a64ee07c15527a9b7f1e", "score": "0.0", "text": "public function handle(RequestInterface $request): ResponseInterface\n\t{\n\t\tif (extension_loaded('zlib') && $request->hasHeader('Accept-Encoding')) {\n\t\t\tif (substr_count($request->getHeaderLine('Accept-Encoding'), 'gzip')) {\...
[ { "docid": "98b870f79aefe06ba02f2c1dcaef4fcd", "score": "0.72030413", "text": "function request_handle() {\r\n\t\tif (isset($_GET['btev_recent_event_rss'])) {\r\n\t\t\tif (isset($_GET['btev_access_key'])) {\r\n\t\t\t\t$this->recent_events_rss($_GET['btev_access_key']);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t...
e3682081e0e11e009015ebe8cbb6b8de
Change entity before store in the database
[ { "docid": "7190fa498993e5125d83fcf4819a97f1", "score": "0.0", "text": "public function preFlush(PreFlushEventArgs $args)\n {\n $em = $args->getEntityManager();\n $uow = $em->getUnitOfWork();\n $requestStack = $this->container->get('request_stack');\n $currentRequest = $re...
[ { "docid": "3a154f821d65abae65d2a2997307d370", "score": "0.7509748", "text": "protected abstract function setEntity(): void;", "title": "" }, { "docid": "02e094b0b08d9e624acd4e3ce0bb5f4f", "score": "0.72796303", "text": "public function storeEntity();", "title": "" }, { "...
ba5583177b788062cb1c7629700757c1
Devuelve el valor correspondiente a idcategoria
[ { "docid": "d66d22cfe4eb453c40bda66fbba1fcd8", "score": "0.79931056", "text": "public function getIdcategoria(){\n return $this->idcategoria;\n }", "title": "" } ]
[ { "docid": "30e6aff4938b41ee19b2c2eec16d9a9e", "score": "0.77619123", "text": "public function getIdcategoria()\n {\n return $this->idcategoria;\n }", "title": "" }, { "docid": "1a2baa4209016d499a655c279bd355a8", "score": "0.77073354", "text": "public function getId_cate...
ab6d4b977b18d57b112c9fbfb3360874
The Console_Table filter callback limits output to 80 columns.
[ { "docid": "94f2f7c14b7460c435882918d8d21dfc", "score": "0.0", "text": "function _splitFilename($data)\r\n {\r\n $str = '';\r\n if (strlen($data) > 0) {\r\n $sep = DIRECTORY_SEPARATOR;\r\n $base = basename($data);\r\n $padding = $this->split - strlen($th...
[ { "docid": "639fad16cdbebec731e4869d6a2016e2", "score": "0.5676517", "text": "public function applyFilter()\n {\n\n $ilMyTableGUI = new ilMyTableGUI($this, self::CMD_STANDARD);\n $ilMyTableGUI->writeFilterToSession();\n $ilMyTableGUI->resetOffset();\n $this->ctrl->redirect...
5cde645bb842af010c148e670880067a
this is for new services
[ { "docid": "22107bcf8d00c49f929bc34ddcb58754", "score": "0.0", "text": "function setNewCommissionCredit($newCommissionCredit) {\n $this->newCommissionCredit = $newCommissionCredit;\n }", "title": "" } ]
[ { "docid": "017efadbd17876e6a6e919d2f1469b23", "score": "0.684728", "text": "protected function register_services() { // phpcs:ignore\n\t\tparent::register_services();\n\t}", "title": "" }, { "docid": "4d07e5e052e708105f407931da8bed51", "score": "0.657699", "text": "private function ...
6953b74584b5b67d7a2b6967aa0497ca
obtiene la URL actual y la deja como variables
[ { "docid": "f7b2c6deaf2121f288113268209a0446", "score": "0.0", "text": "function setVariable($variable,$valor){if(strlen($variable)==0){return $valor;}return $variable;}", "title": "" } ]
[ { "docid": "5414ec49e4597b6e45463b51b4d48c02", "score": "0.68088746", "text": "private static function getUrl()\n\t{\n\t\t(input::get('url')) ? self::$url[] = input::get('url') : self::$url[] = '/';\n\t}", "title": "" }, { "docid": "0d45d2cb7553fd4751f43cc0b54f92fd", "score": "0.66718435...
2a1b69faa3e86698751ba8f4f5f24b26
THIS FUNCTION IS USED FOR GETTING Room Type LIST $conditions :db clauses $limit:specifies limit orderBy:sort on which column Author :Gurkeerat Sidhu Created on : (19.05.2009) Copyright 20082009 syenergy Technologies Pvt. Ltd.
[ { "docid": "1f13625c783d47718daf365afa70934c", "score": "0.8017039", "text": "public function getRoomTypeList($conditions='', $orderBy=' roomType', $limit = '') {\n \n $query = \"\tSELECT * \n\t\t\t\t\tFROM room_type \n\t\t\t\t\t$conditions\n\t\t\t ORDER BY $orderBy \n\t\t\t\t\t$limi...
[ { "docid": "31334eee6f120b455401de57c61f240f", "score": "0.736307", "text": "public function getRoomType($conditions='') {\n $query = \"SELECT * \n FROM room_type\n $conditions\";\n return SystemDatabaseManager::getInstance()->executeQuery($query,\"Query: $query\");\n }", ...
c892926d8436a497f97bcb5d45f9192b
Return TBS render result as string.
[ { "docid": "e02164e109e85d521baf49707a802bbd", "score": "0.0", "text": "function getTBSRender() {\r\n\t\tif (is_null($this->tbs)) return FALSE;\r\n\t\t$this->tbs->Show(TBS_NOTHING);\r\n\t\treturn $this->tbs->Source;\r\n\t}", "title": "" } ]
[ { "docid": "1711872fee2df4a162c8050a11b275e2", "score": "0.7441254", "text": "public function renderIntoString($resultParams = array())\r {\r ob_start();\r $this->renderHtml($resultParams);\r $_template_content = ob_get_contents();\r ob_end_clean();\r return $_templ...
8e600f16cfb7342c1541382f114892cd
Gets the context string that uniquely identifies the editor instance.
[ { "docid": "d3a6b71595909b68ed0aa2eaa0590bc4", "score": "0.6543706", "text": "public function getContextString();", "title": "" } ]
[ { "docid": "f4b1315b00dcfe05bd92e1262a64c279", "score": "0.7092612", "text": "public function getContext(): string\n {\n return $this->context;\n }", "title": "" }, { "docid": "e8bd38d9a348fc0b536af35acff262a7", "score": "0.6682323", "text": "public function getEditorTok...
7b3ee9f8ec69fb52e7fb22f895a64bea
Is this a HEAD method request?
[ { "docid": "9bf4ec7a04bd8e0b0d15f86af26f1c9b", "score": "0.79124635", "text": "public function isHead ()\n {\n return ($this->method === self::METHOD_HEAD);\n }", "title": "" } ]
[ { "docid": "d9e74ede34658ca0b7149721c0f66cdf", "score": "0.83257914", "text": "public function isHead()\n {\n return $this->isMethod('HEAD');\n }", "title": "" }, { "docid": "3e475a01c36db4c21fa6716f00347f96", "score": "0.8249841", "text": "public function isHead()\n ...
9af50ad9428152260f855a852dbd1efe
Validates a given code, optionally for a given timestamp and future window.
[ { "docid": "6dd889444a8ff280772ede609a5f5c33", "score": "0.7064338", "text": "public function validateCode(string $code, int $window = null) : bool;", "title": "" } ]
[ { "docid": "df092f853272dec22ba135b4a20a9004", "score": "0.574835", "text": "public function validate($code)\n {\n $aux = explode('-', $this->getSessionValue());\n //si no existe el momento en que se creo el captcha => no es valido\n if (!isset($aux[1])) {\n return fal...
5df69c23d5a160cd8e26bbdf802afb4c
Lists the usage of a given entity.
[ { "docid": "5db06913f96f0acd373581a0c7180c61", "score": "0.0", "text": "public function listUsageLocalTask(RouteMatchInterface $route_match) {\n $entity = $this->getEntityFromRouteMatch($route_match);\n return parent::listUsagePage($entity->getEntityTypeId(), $entity->id());\n }", "title": ""...
[ { "docid": "a623b2a389450a642612b74f73d5d83b", "score": "0.6452495", "text": "public function listUsagePage($entity_type, $entity_id) {\n $all_rows = $this->getRows($entity_type, $entity_id);\n if (empty($all_rows)) {\n return [\n '#markup' => $this->t('There are no recorded usages for...
fac7fbd8f0dade0c96e4d57c22f04c64
Very basic password generator
[ { "docid": "dee3244fb658e4d062af76715b24fc7e", "score": "0.0", "text": "private function generatePWD()\n\t{\n\t\t$letters=\"abcdefghijklmnopqrstuvwxyz\";\n\t\t$numbers =\"0123456789\";\n\t\t\n\t\t$randomstring = '';\n\t\tfor ($i=0;$i<1;$i++)\n\t\t{\n\t\t\t$rlet = rand(0,strlen($letters));\n\t\t\t$random...
[ { "docid": "cc0e80f05a16757c54ee202e751d5704", "score": "0.85167974", "text": "public function generatePassword();", "title": "" }, { "docid": "3131220333db9a6c81173dd7ebf75a86", "score": "0.8229798", "text": "public function generatePassword() {\n srand();\n $pass = \"\";\n\n ...
13723369ee210991fbaeff150e6325a0
Display the specified resource.
[ { "docid": "3c8444cc8e89040ab8c1730c597127a8", "score": "0.0", "text": "public function show($id)\n {\n $funcionario = new Funcionario();\n $item = $funcionario->get($id);\n return view('funcionario.main.show', compact('item'));\n }", "title": "" } ]
[ { "docid": "165e2bbcf8f47c0adbed93548f33d6c1", "score": "0.8019291", "text": "public function show(resource $resource)\n {\n //\n }", "title": "" }, { "docid": "e5e8acc247b28ba8722842dd97070847", "score": "0.74223363", "text": "abstract protected function makeDisplayFrom...