query
stringlengths
7
5.25k
document
stringlengths
15
1.06M
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
/! \brief Execute this plugin Handle actions/events, locking, snapshots, dialogs, tabs,...
function execute() { // Ensure that html posts and gets are kept even if we see a 'Entry islocked' dialog. $vars = array('/^act$/','/^listing/','/^PID$/','/^FILTER_PID$/'); session::set('LOCK_VARS_TO_USE', $vars); /* Display the copy & paste dialog, if it is currently open */ $ret = $this->copyPa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run () {\n\t\trequire_once $this->pluginFile;\n\t}", "protected function executeAction() {}", "protected function executeAction() {}", "protected function executeAction() {}", "protected function executeAction() {}", "public function Execute()\n {\n // i.e. --> $this->OBJ_TOUCHP...
[ "0.67240405", "0.67088425", "0.67083955", "0.67083955", "0.67083955", "0.66942465", "0.6625088", "0.65973353", "0.65973264", "0.6595552", "0.64382774", "0.63943684", "0.63827866", "0.636502", "0.634073", "0.63294053", "0.6286043", "0.62841654", "0.6246228", "0.6240354", "0.62...
0.6267962
18
/! \brief Updates the status for a list of services.
function updateServiceStatus($action, $target, $all) { /* Skip if this is a new server */ if ($this->dn == "new") { msg_dialog::display(_("Information"), _("Cannot update service status until it has been saved!"), INFO_DIALOG); return; } /* Is this an existing action */ if (!isset(sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateStatus(array $jobs);", "function update_status()\n\t{\n\t\t$data = filter_forwarded_data($this);\n\t\tif(!empty($data['t']) && !empty($data['list'])) $result = $this->_bid->update_status($data['t'], explode('--',$data['list']));\n\t\t\n\t\t$data['msg'] = !empty($result['boolean']) && $resul...
[ "0.6621634", "0.6532585", "0.6461127", "0.64142805", "0.639287", "0.6369591", "0.63390523", "0.6298918", "0.62922907", "0.6215053", "0.619058", "0.619058", "0.6136992", "0.6097271", "0.6083418", "0.60473", "0.60130614", "0.5994864", "0.5939064", "0.59371185", "0.5877184", "...
0.7052105
0
/! \brief Updates the status of a service and calls an external hook if specified in fusiondirectory.conf
private function updateSingleServiceStatus($action, $service) { if ($this->plugins[$service]->is_account) { $this->updateServicesVars($service); $s_daemon = new supportDaemon(); if ($s_daemon->is_error()) { msg_dialog::display( sprintf(_("Could not get execute action %s on ser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function update_status();", "public function testUpdateService()\n {\n\n }", "public function hookUpdate(): void\n {\n $this->say(\"Executing the Plugin's update hook...\");\n $this->_exec(\"php ./src/hook_update.php\");\n }", "public function updating(Service $Service)\n ...
[ "0.61929244", "0.60010886", "0.5959199", "0.58522296", "0.5827563", "0.57852453", "0.5784981", "0.57613826", "0.575801", "0.5755635", "0.57478446", "0.57388586", "0.5688334", "0.5596721", "0.55025566", "0.54468364", "0.54137474", "0.5390216", "0.5358307", "0.5326208", "0.5325...
0.66479594
0
/! \brief Returns a list of all used services CLASSNAME => _($this>plugins[]>DisplayName);
function getAllUsedServices() { $ret = array(); foreach ($this->plugins as $name => $obj) { if ($obj->is_account) { if (isset($obj->DisplayName)) { $ret[$name] = $obj->DisplayName; } else { $ret[$name] = $name; } } } return $ret; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function get_services() {\n\t\treturn [\n\t\t\tServices\\Language_Loader::class,\n\t\t\tServices\\Setup_Database::class,\n\t\t\tServices\\Scripts_And_Templates::class,\n\t\t\tServices\\Admin_Pages::class,\n\t\t\tServices\\Setup_Settings_Page::class,\n\t\t\tServices\\Loggers_Loader::class,\n\t\t\tServices\\...
[ "0.7040355", "0.6973125", "0.6946765", "0.6926431", "0.691777", "0.6877789", "0.6796921", "0.67913777", "0.6765748", "0.6726817", "0.6630286", "0.6595965", "0.6578168", "0.6510909", "0.6510546", "0.6507702", "0.64790314", "0.64664596", "0.6432358", "0.6424015", "0.6406699", ...
0.83596385
0
/! \brief Returns a list of all unused services.
function getAllUnusedServices() { $tmp = $this->getAllUsedServices(); $pool_of_ocs = array(); foreach ($tmp as $name => $value) { $pool_of_ocs[] = get_class($this->plugins[$name]); if (isset($this->plugins[$name]->conflicts)) { $pool_of_ocs = array_merge($pool_of_ocs, $this->plugins[$n...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function listAllAvailableServices()\n {\n\t\t$data = $this->call(array(), \"GET\", \"sensors/services/available.json\");\n\t\t$data = $data->{'services'};\n\t\t$serviceArray = new ArrayObject();\n\t\tfor($i = 0; $i<count($data);$i++){\n\t\t\t$serviceArray->append(new Service($data[$i], $this));\n\t\t}\n\...
[ "0.73377377", "0.722843", "0.69160146", "0.6892129", "0.6772187", "0.66971886", "0.65814096", "0.63706046", "0.63466865", "0.633627", "0.6324876", "0.63051397", "0.63051397", "0.63051397", "0.630276", "0.6280854", "0.6279807", "0.62582827", "0.62582827", "0.6201976", "0.61896...
0.77746826
0
/! \brief No checks here.
function check() { return array(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _i() {\n }", "private function __() {\n }", "public function oops () {\n }", "public static function dummy() {}", "final private function __construct() {}", "final private function __construct() {}", "public function helper()\n\t{\n\t\n\t}", "final private function __c...
[ "0.64917386", "0.6326657", "0.5959073", "0.5957188", "0.59195113", "0.59195113", "0.58917195", "0.58728105", "0.58728105", "0.58728105", "0.5841702", "0.5828926", "0.5774969", "0.576838", "0.574273", "0.5730248", "0.5722153", "0.57199574", "0.56975675", "0.5684486", "0.567974...
0.0
-1
/! \brief Keep posted form values in opened dialogs
function save_object() { if ($this->dialog && is_object($this->dialogObject)) { if (method_exists($this->dialogObject, 'save_object')) { $this->dialogObject->save_object(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function valiteForm();", "public function GetFormPostedValues() {\n\t\t$req_fields=array(\"description\",\"date_open\",\"date_closed\");\n\n\t\tfor ($i=0;$i<count($req_fields);$i++) {\n\n\t\t\t//echo $_POST['application_id'];\n\t\t\tif (ISSET($_POST[$req_fields[$i]]) && !EMPTY($_POST[$req_fields[$i]])) {\...
[ "0.662641", "0.6396938", "0.62347704", "0.6100368", "0.6001398", "0.59531176", "0.5949333", "0.5880548", "0.5866881", "0.58403265", "0.5780932", "0.5736477", "0.57327163", "0.5690857", "0.5679435", "0.5676651", "0.56687355", "0.5662438", "0.5661249", "0.56457907", "0.5645011"...
0.0
-1
/! \brief Remove all active services
function remove_from_parent() { foreach ($this->plugins as $name => $obj) { $this->updateServicesVars($name); if ($this->plugins[$name]->initially_was_account) { if (isset($this->plugins[$name]->krb_host_key) && $this->plugins[$name]->krb_host_key instanceof krbHostKeys) { $this->plu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function removeServices(Host $host): void;", "public function destroy(Services $services)\n {\n //\n }", "public function destroy(Services $services)\n {\n //\n }", "public final function destroy_all()\n {\n }", "public function deactivateService() {}", "pub...
[ "0.7102608", "0.69645053", "0.69645053", "0.6340352", "0.6281512", "0.624305", "0.61352575", "0.60993737", "0.6058023", "0.6058023", "0.6008888", "0.5959794", "0.5914593", "0.5914593", "0.5914593", "0.5904464", "0.58808064", "0.5869994", "0.5869994", "0.5869994", "0.5869994",...
0.0
-1
/! \brief Save all active services
function save() { foreach ($this->plugins as $name => $obj) { $this->updateServicesVars($name); if ($this->plugins[$name]->is_account) { $this->plugins[$name]->save(); } elseif ($this->plugins[$name]->initially_was_account) { $this->plugins[$name]->remove_from_parent(); } ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\r\n {\r\n $services = App\\service::all();\r\n\r\n foreach ($services as $service)\r\n {\r\n $service->stylists()->save(\\App\\service::find(1));\r\n $service->stylists()->save(\\App\\service::find(2));\r\n $service->stylists()->save(\\App\\s...
[ "0.67092216", "0.66469413", "0.6508124", "0.64762366", "0.642712", "0.61602926", "0.60592383", "0.6048486", "0.59927267", "0.59487385", "0.5923953", "0.58666855", "0.5776853", "0.5774722", "0.57502913", "0.5748942", "0.57358444", "0.57256705", "0.5714027", "0.5699974", "0.569...
0.65923405
2
/! \brief Prepare active services to be copied.
function resetCopyInfos() { $this->dn = 'new'; foreach ($this->plugins as &$plugin) { $plugin->resetCopyInfos(); } unset($plugin); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initializeServices()\n {\n $this->emailManager = $this->getService('mycp.service.email_manager');\n $this->translatorService = $this->getService('translator');\n $this->securityService = $this->getService('Secure');\n $this->router = $this->getService('router');\n ...
[ "0.562213", "0.55845654", "0.5512528", "0.5482004", "0.5406627", "0.5299918", "0.52158177", "0.5196003", "0.51228446", "0.51192963", "0.5075538", "0.5050376", "0.50496876", "0.50335145", "0.5028224", "0.5025981", "0.50161135", "0.49657443", "0.49565414", "0.49474058", "0.4938...
0.0
-1
/! \brief Prepare active services to be copied.
function postCopyHook() { foreach ($this->plugins as &$plugin) { $plugin->postCopyHook(); } unset($plugin); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function initializeServices()\n {\n $this->emailManager = $this->getService('mycp.service.email_manager');\n $this->translatorService = $this->getService('translator');\n $this->securityService = $this->getService('Secure');\n $this->router = $this->getService('router');\n ...
[ "0.562213", "0.55845654", "0.5512528", "0.5482004", "0.5406627", "0.5299918", "0.52158177", "0.5196003", "0.51228446", "0.51192963", "0.5075538", "0.5050376", "0.50496876", "0.50335145", "0.5028224", "0.5025981", "0.50161135", "0.49657443", "0.49565414", "0.49474058", "0.4938...
0.0
-1
/! \brief Check if there is an active service which prevents complete service removal.
function allow_remove() { foreach ($this->plugins as $obj) { $str = $obj->allow_remove(); if (!empty($str)) { return $str; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function isService() {\r\n\t\treturn false;\r\n\t}", "public function isServiceContentDeactivationSuccessful(){\n \n $cmd =Yii::app()->db->createCommand();\n $result = $cmd->update('website_services',\n array(\n ...
[ "0.6826592", "0.6588942", "0.65440136", "0.6538319", "0.63970464", "0.63772005", "0.62827736", "0.6275691", "0.62646896", "0.62199605", "0.6203545", "0.6193636", "0.61149967", "0.6067219", "0.60358435", "0.60297287", "0.6009794", "0.5920987", "0.59140015", "0.5897413", "0.589...
0.0
-1
/! \brief Forward plugin acls
function set_acl_base($base) { $this->acl_base = $base; foreach ($this->plugins as $name => $obj) { $this->plugins[$name]->set_acl_base($base); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function plugin_classes() {\n\t\t$this->options = new Options( $this ) ;\n\t\t$this->helpers = new Helpers( $this );\n\t\t$this->core = new Core( $this );\n\t}", "public function plugin_activate(){\n\t\t\n\t\t//call our custom content type function\n\t \t$this->register_location_content_type();\n\t\t//...
[ "0.6139873", "0.58667225", "0.5790669", "0.5725044", "0.57025534", "0.5685241", "0.56785566", "0.566157", "0.5645913", "0.56161046", "0.55661166", "0.55433965", "0.54695606", "0.5449446", "0.544547", "0.542351", "0.541232", "0.53835815", "0.53727955", "0.5338268", "0.5292509"...
0.0
-1
/! \brief Forward plugin acls
function set_acl_category($category) { $this->acl_category = $category; foreach ($this->plugins as $name => $obj) { $this->plugins[$name]->set_acl_category($category); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function plugin_classes() {\n\t\t$this->options = new Options( $this ) ;\n\t\t$this->helpers = new Helpers( $this );\n\t\t$this->core = new Core( $this );\n\t}", "public function plugin_activate(){\n\t\t\n\t\t//call our custom content type function\n\t \t$this->register_location_content_type();\n\t\t//...
[ "0.6141588", "0.5866899", "0.57910633", "0.5725688", "0.57051605", "0.56870294", "0.5680755", "0.5663773", "0.5647666", "0.5615219", "0.55653846", "0.5544228", "0.54708827", "0.54491067", "0.54474586", "0.5424856", "0.54117125", "0.5384669", "0.53725505", "0.53394574", "0.529...
0.0
-1
Create the event listener.
public function __construct() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addRequestCreateListener($listener);", "public function onEvent();", "private function init_event_listeners() {\n\t\t// add_action('wp_ajax_example_action', [$this, 'example_function']);\n\t}", "public function listener(Listener $listener);", "protected function setupListeners()\n {\n ...
[ "0.65685207", "0.62875676", "0.6221792", "0.6197413", "0.61627764", "0.6129312", "0.6096226", "0.6056844", "0.6051069", "0.6041841", "0.596228", "0.596194", "0.5957539", "0.59439605", "0.58821785", "0.58821785", "0.5874665", "0.5864387", "0.5856076", "0.584338", "0.5824244", ...
0.0
-1
/ REVIEWS Block Functions
function modules() { global $hlpfile, $prefix, $dbi, $multilingual; include ("header.php"); $hlpfile = "manual/reviews.html"; GraphicAdmin($hlpfile); OpenTable(); echo "<center><font class=\"title\"><b>"._MODULESADMIN."</b></font></center>"; CloseTable(); $handle=opendir('modules...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction() {\n if (!Engine_Api::_()->core()->hasSubject('sitereview_listing') && !Engine_Api::_()->core()->hasSubject('sitereview_review')) {\n return $this->setNoRender();\n }\n\n if (Engine_Api::_()->core()->hasSubject('sitereview_listing')) {\n $this->view->sitereview = $si...
[ "0.67501146", "0.6693666", "0.6548856", "0.62919134", "0.62867993", "0.62618506", "0.62001765", "0.61810946", "0.6118148", "0.6086512", "0.6073546", "0.60662174", "0.60506845", "0.6037928", "0.6029649", "0.6029649", "0.6029649", "0.6029649", "0.6016457", "0.60145056", "0.5984...
0.0
-1
Retrieve an instance of this class.
public static function getInstance($instance_name = 'default') { if (!isset(self::$instances)) { self::$instances = array(); } if (!isset(self::$instances[$instance_name])) { $class = __CLASS__; self::$instances[$instance_name] = new $class($instance_name); } return sel...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function instance()\n {\n global $container;\n return $container->getByType(self::class);\n }", "public static function fetch()\n {\n if (!isset(self::$instance)) {\n $c = __CLASS__;\n self::$instance = new $c;\n }\n\n return self::$...
[ "0.78860617", "0.77761847", "0.77654874", "0.77335393", "0.77029496", "0.76778144", "0.76565516", "0.76565516", "0.76565516", "0.76565516", "0.7628472", "0.7617403", "0.7600806", "0.75739115", "0.7543972", "0.75096804", "0.749861", "0.749861", "0.7492609", "0.747397", "0.7456...
0.0
-1
getInstance() Check if a instance exists.
public static function hasInstance($instance_name = 'default') { return isset(self::$instances[$instance_name]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function hasInstance(){\n\t\tif(self::$instance !== null){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private function hasInstance()\n {\n return !self::$_instance ? false : true;\n }", "public static function getInstance()\n\t{\n\t\tif (static::$instance === null) {\n\t\t...
[ "0.7769936", "0.76531273", "0.7602773", "0.7306402", "0.725763", "0.72462916", "0.72221667", "0.71989805", "0.71858215", "0.71858215", "0.71858215", "0.71858215", "0.71845454", "0.71831334", "0.7002269", "0.6996062", "0.69900376", "0.69900376", "0.69900376", "0.69900376", "0....
0.69433016
28
hasInstance() Instanciate a new CSprite.
public function __construct($name = 'default') { $this->name = $name; $this->spriteTemplateRegistry = new SpriteTemplateRegistry($this); $this->spriteImageRegistry = new SpriteImageRegistry($this); $this->spriteStyleRegistry = new SpriteStyleRegistry($this); $this->spriteConfig = CSpriteConfig::ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function &CreateInstanceIfNotExists(){\n static $oInstance = null;\n\n if(!$oInstance instanceof self)\n $oInstance = new self();\n\n return $oInstance;\n }", "public static abstract function createInstance();", "private function hasInstance(...
[ "0.5883403", "0.55234593", "0.53372353", "0.52536696", "0.52214706", "0.51265466", "0.51055896", "0.50838864", "0.50825363", "0.5060049", "0.5051174", "0.5049575", "0.5045584", "0.5035685", "0.50242096", "0.49941835", "0.49726403", "0.49716422", "0.49461263", "0.49438742", "0...
0.47922382
40
__construct() Get this object CSprite instance.
public function getCSprite() { return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t{\n\t\t$this->game = new BowlingGame;\n\t}", "public function __construct()\n {\n $this->cpu = new CPU();\n $this->player = new Player();\n }", "public function construct()\n {\n return $this->object;\n }", "public function getCSprite()\n {\n...
[ "0.65402466", "0.6528637", "0.62953895", "0.6264603", "0.6146216", "0.6129432", "0.6119235", "0.6110909", "0.6062796", "0.606225", "0.6047425", "0.6018409", "0.59744364", "0.59674585", "0.59674585", "0.59620947", "0.5959209", "0.5950519", "0.59475416", "0.590886", "0.5896933"...
0.719942
0
getCSprite() Get this instance configuration.
public function getSpriteConfig() { return $this->spriteConfig; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getCSprite()\n {\n return $this->spriteImageRegistry->getCSprite();\n }", "public function getSpriteConfig()\n {\n return $this->spriteImageRegistry->getSpriteConfig();\n }", "public function getCSprite()\n {\n return $this;\n }", "public function getSpriteCache()\n {\n ret...
[ "0.73720866", "0.7350156", "0.7312734", "0.5723863", "0.57031745", "0.560343", "0.56013554", "0.55858415", "0.5556608", "0.5545413", "0.55231106", "0.5475459", "0.5456261", "0.54552394", "0.5450682", "0.54487634", "0.5442738", "0.54408145", "0.5425102", "0.5394908", "0.538206...
0.75944084
0
getSpriteConfig() Get this instance cache manager.
public function getSpriteCache() { return $this->spriteCache; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSpriteConfig()\n {\n return $this->spriteConfig;\n }", "public function getSpriteConfig()\n {\n return $this->spriteImageRegistry->getSpriteConfig();\n }", "public function getSpriteCache()\n {\n return $this->spriteImageRegistry->getSpriteCache();\n }", "public function get...
[ "0.7876202", "0.7762464", "0.7058248", "0.60824525", "0.6069641", "0.58817476", "0.5821229", "0.58058345", "0.5708618", "0.568944", "0.5672047", "0.56685954", "0.56665224", "0.56588656", "0.56206846", "0.5597092", "0.55964154", "0.5555123", "0.55536646", "0.5549273", "0.55449...
0.71840113
2
getSpriteCache() Get this instance name.
public function getName() { return $this->name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getSpriteCache()\n {\n return $this->spriteCache;\n }", "public function getSpriteCache()\n {\n return $this->spriteImageRegistry->getSpriteCache();\n }", "public function getCacheName();", "protected static function getCacheName()\n\t{\n\t\tstatic $strCacheName;\n\t\tif (!isset($st...
[ "0.75116014", "0.7309405", "0.70992297", "0.665547", "0.65349126", "0.6505665", "0.63204116", "0.62644064", "0.62576973", "0.62316835", "0.62171704", "0.6215167", "0.6214975", "0.62129885", "0.6164887", "0.61304957", "0.61184853", "0.60787964", "0.60277635", "0.6024799", "0.5...
0.0
-1
getName() Get the template registry.
public function getTemplateRegistry() { return $this->spriteTemplateRegistry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getTemplateName() {\n\t\treturn $this->templateName;\n\t}", "public function getRegisterTpl(){\n return $this->templates['register'];\n }", "public function getTemplateName()\n {\n return $this->templateName;\n }", "public function getTemplateName()\n {\n }", "public functio...
[ "0.6642682", "0.6521775", "0.63660914", "0.6331903", "0.6254645", "0.624497", "0.61934227", "0.6114543", "0.61105937", "0.6086938", "0.6056717", "0.6048571", "0.6037646", "0.60367525", "0.6007794", "0.5991045", "0.599049", "0.5974496", "0.5973275", "0.59590894", "0.59392494",...
0.68292594
0
getTemplateRegistry() Get the image registry.
public function getImageRegistry() { return $this->spriteImageRegistry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplateRegistry()\n {\n return $this->spriteTemplateRegistry;\n }", "public function registry()\n {\n if(!$this->defaultRegistry) {\n $this->defaultRegistry = $this('registry');\n }\n\n return $this->defaultRegistry;\n }", "...
[ "0.79117835", "0.648659", "0.63764477", "0.63603956", "0.63342166", "0.62918615", "0.6244733", "0.61262417", "0.6096462", "0.58326966", "0.58079904", "0.57800484", "0.57171875", "0.5639005", "0.5637214", "0.5611751", "0.5580527", "0.5562324", "0.5562324", "0.55464685", "0.552...
0.69325733
1
getImageRegistry() Get the style registry.
public function getStyleRegistry() { return $this->spriteStyleRegistry; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getImageRegistry()\n {\n return $this->spriteImageRegistry;\n }", "public function getSpriteImageRegistry()\n {\n return $this->spriteImageRegistry;\n }", "public function getTemplateRegistry()\n {\n return $this->spriteTemplateRegistry;\n }", "public function getRegistryArray(...
[ "0.7306808", "0.6684028", "0.6571037", "0.6259464", "0.618814", "0.600374", "0.59624726", "0.5875376", "0.5873722", "0.5839037", "0.5703135", "0.5633389", "0.5621689", "0.54181725", "0.53901887", "0.53840905", "0.53783303", "0.5371194", "0.5368176", "0.5363021", "0.53401476",...
0.8072847
0
getStyleRegistry() Compute the sprite image and its CSS rules.
public function process() { $this->spriteImageRegistry->processSprites(); $this->spriteTemplateRegistry->preprocessTemplates(); $this->spriteTemplateRegistry->processTemplates(); $this->spriteStyleRegistry->processCss(); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getStyleRegistry()\n {\n return $this->spriteStyleRegistry;\n }", "public function getSpriteImageRegistry()\n {\n return $this->spriteImageRegistry;\n }", "public function getImageRegistry()\n {\n return $this->spriteImageRegistry;\n }", "public function getTemplateRegistry()\n...
[ "0.7998522", "0.6572027", "0.6500058", "0.5982109", "0.55134934", "0.5488444", "0.54645306", "0.54645306", "0.5443039", "0.5374171", "0.5352468", "0.5347881", "0.5333721", "0.5328327", "0.5328289", "0.5315488", "0.52706474", "0.5270339", "0.52664137", "0.5239269", "0.5238501"...
0.47438353
80
process() Register a new template file
public function registerTemplate($relativeTemplatePath, $outputName = null, $outputPath = null) { $this->spriteTemplateRegistry->registerTemplate($relativeTemplatePath, $outputName, $outputPath); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setTemplate($file);", "private function renderTemplate(){\n\t\trequire($this->TemplateFile);\n\t}", "public function FrontendOutputPostGenerate() {\n\t\t\tfile_put_contents($this->location, $this->template);\n\t\t}", "function files_handle_on_email_templates(&$templates) {\n $templates[FIL...
[ "0.6778215", "0.6290222", "0.6121769", "0.60905653", "0.6087986", "0.6075845", "0.60604346", "0.60322225", "0.59922594", "0.5965061", "0.59491664", "0.5937029", "0.59129214", "0.5908895", "0.5901057", "0.5889556", "0.5886067", "0.58699733", "0.58690727", "0.5861437", "0.58508...
0.0
-1
registerTemplate() Get the SpriteStyleNode for the given image path.
public function getStyleNode($path) { $node = $this->spriteStyleRegistry->getStyleNode($path); if(! $node) { throw new SpriteException(sprintf('Error: no node found for path "%s". Available nodes are: %s.', $path, implode(', ', $this->spriteStyleRegistry->getStyleNodesPaths())), 102); } re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTemplateRegistry()\n {\n return $this->spriteTemplateRegistry;\n }", "public function getImageTemplate() { return $this->imageTemplate; }", "abstract public function getTemplate();", "function getTemplate();", "function get_template()\n {\n }", "public function draw_template...
[ "0.6140705", "0.5202701", "0.50394803", "0.49838272", "0.49628812", "0.4951277", "0.48921677", "0.48664862", "0.48664862", "0.48664862", "0.48664862", "0.48664862", "0.48664862", "0.48507774", "0.4779319", "0.47376958", "0.47047833", "0.46994162", "0.4658522", "0.4648182", "0...
0.56901944
1
style() Add a several images from a directory to the sprite. Accepted params are: name : the sprite name. imageType : the image type. spritemargin : margins of the image in the sprite. hoverXOffset : Offset to the background X position on hover hoverYOffset : Offset to the background Y position on hover
public function ppRegister($path, array $params = array()) { $this->spriteImageRegistry->register($path, $params); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function my_generate_css($info, $scandir, $pos, $i){\n ($pos == 0) ? $neg = \"\" : $neg = \"-\";\n global $nameCSS;\n $chaine = '|.(.*?)/|iU';\n $scandir = preg_replace($chaine,'',$scandir);\n$css = \".sprite-\".substr($scandir[$i], 0,-4).\"{ \\n\n width: \".$info[0].\"px;\\n\n height: \".$info[1...
[ "0.59268916", "0.5885091", "0.5727244", "0.56267846", "0.54945207", "0.53966445", "0.5392959", "0.5336733", "0.52773243", "0.5238542", "0.5199803", "0.51492035", "0.51310116", "0.51057315", "0.5078821", "0.5070848", "0.5046838", "0.5017325", "0.49549738", "0.49318972", "0.490...
0.0
-1
ppRegister() Add a single image to the sprite. Accepted params are: name : the sprite name. imageType : the image type. spritemargin : margins of the image in the sprite. hoverXOffset : Offset to the background X position on hover hoverYOffset : Offset to the background Y position on hover
public function addImage($path, array $params = array()) { $this->spriteImageRegistry->addImage($path, $params); return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function register_style_team_member_image() {\n\t\t$this->start_controls_section(\n\t\t\t'section_team_member_image_style',\n\t\t\tarray(\n\t\t\t\t'label' => __( 'Image', 'uael' ),\n\t\t\t\t'tab' => Controls_Manager::TAB_STYLE,\n\t\t\t)\n\t\t);\n\n\t\t$this->add_control(\n\t\t\t'image_position',\n\t\t\...
[ "0.566786", "0.5074075", "0.50409997", "0.49044564", "0.48734578", "0.48704782", "0.48675692", "0.48675692", "0.48449573", "0.48377955", "0.48265865", "0.48222038", "0.48125386", "0.4802835", "0.47948465", "0.47677484", "0.474333", "0.4741028", "0.47388023", "0.47375807", "0....
0.47099936
25
styleWithBackground() Generate the image tag for the style node. Available parameters are: inline: true to use style attribute instead of class. background: allow to choose a different backgroundrepeat value (default to norepeat). augmentX: add a offset to background X position. augmentY: add a offset to background Y p...
public function image_tag($path, $params = array(), $attributes = array()) { return $this->getStyleNode($path)->image_tag($params, $attributes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function image_create($background = null)\r\n {\r\n // Check for GD2 support\r\n if ( ! \\function_exists('imagegd2') ) \\Core::show_500(\\__('captcha.requires_GD2'));\r\n\r\n // Create a new image (black)\r\n static::$image = \\imagecreatetruecolor(static::$config['width']...
[ "0.55999446", "0.55529004", "0.54923546", "0.54606146", "0.54446465", "0.54216987", "0.5356394", "0.53329045", "0.51457304", "0.5143552", "0.5142739", "0.5142294", "0.5142176", "0.5101435", "0.50628686", "0.5048754", "0.5021864", "0.49153537", "0.482612", "0.47802806", "0.470...
0.45161647
41
Run the database seeds.
public function run() { User::truncate(); $user = new User; $user['name'] = "Budi Purnomo"; $user['username'] = "budi-purnomo@outlook.com"; $user['password'] = 'admin123'; $user['role'] = 'admin'; if(!$user->save()){ dd($user->getErrors()); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function run()\n {\n // $this->call(UserTableSeeder::class);\n // $this->call(PostTableSeeder::class);\n // $this->call(TagTableSeeder::class);\n // $this->call(PostTagTableSeeder::class);\n\n /*AB - use faker to populate table see file ModelFactory.php */\n fact...
[ "0.8013876", "0.79804534", "0.7976992", "0.79542726", "0.79511505", "0.7949612", "0.794459", "0.7942486", "0.7938189", "0.79368967", "0.79337025", "0.78924936", "0.78811055", "0.78790957", "0.78787595", "0.787547", "0.7871811", "0.78701615", "0.7851422", "0.7850352", "0.78414...
0.0
-1
Creates a TSFE object which can be used in Backend
protected function buildTsfe() { if (!is_object($GLOBALS['TT'])) { $GLOBALS['TT'] = $this->getTimeTrackerInstance(); $GLOBALS['TT']->start(); } $GLOBALS['TSFE'] = $this->getTsfeInstance(); $GLOBALS['TSFE']->initFEuser(); $GLOBALS['TSFE']->fetch_the_id(); $GLOBALS['TSFE']->getPageAndRootline(); $GLOB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function initTSFE() {\n\t\tif (!is_object($GLOBALS['TSFE'])) {\n\t\t\t$GLOBALS['TSFE'] = t3lib_div::makeInstance('tslib_fe', $GLOBALS['TYPO3_CONF_VARS'], 0, 0, TRUE);\n\t\t\t$GLOBALS['TSFE']->initFEuser();\n\t\t\t$GLOBALS['TSFE']->fetch_the_id();\n\t\t\t$GLOBALS['TSFE']->getPageAndRootline();\n\t\t\t$GLO...
[ "0.6976391", "0.6676943", "0.6447059", "0.636777", "0.6349801", "0.6219838", "0.6138009", "0.58910096", "0.5665983", "0.56044847", "0.5567781", "0.5494795", "0.5494795", "0.5494795", "0.5494795", "0.5494795", "0.5494795", "0.5494795", "0.5494795", "0.5494795", "0.5494795", ...
0.67782396
1
Returns a new instance of the TypoScriptFrontendController
protected function getTsfeInstance() { $tsfeClassname = 'TYPO3\\CMS\\Frontend\\Controller\\TypoScriptFrontendController'; return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($tsfeClassname, $GLOBALS['TYPO3_CONF_VARS'], $this->pid, '0', 1, '', '', '', ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTypoScriptFrontendController() {}", "protected static function getTypoScriptFrontendController() {}", "protected function initTypoScriptFrontendController() {\n\t\t// Get page uid and mount point, if any\n\t\t$this->pageUid = GeneralUtility::_GET('id');\n\t\tif (!isset($this->pageUid)) {\...
[ "0.79384834", "0.79227966", "0.75614", "0.70132416", "0.68769276", "0.6699539", "0.6581561", "0.6536159", "0.6407699", "0.62580484", "0.617519", "0.61700404", "0.6053599", "0.6024901", "0.59333235", "0.59240365", "0.5914302", "0.58498365", "0.5845815", "0.5845497", "0.5839779...
0.7317331
3
Returns a new instance of TimeTracker
protected function getTimeTrackerInstance() { return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\TimeTracker\\TimeTracker'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTimeTracker() {}", "protected function initializeTimeTracker() {}", "public function create(array $values = array()) {\n // Add values that are specific to our timetracking\n $values += array( \n 'timetracking_id' => '',\n 'is_new' => true,\n 'type' => 'timetracking',...
[ "0.6842531", "0.67228603", "0.63513404", "0.6069141", "0.60221213", "0.6018472", "0.6001118", "0.5845434", "0.5842843", "0.58261526", "0.57741", "0.5714983", "0.5706969", "0.56792456", "0.5652791", "0.5652356", "0.55930454", "0.5590635", "0.55813164", "0.55407757", "0.5514445...
0.8074251
0
Returns an object manager mock that is capable of returning one or more documents for find(). $documents should be an associative array of searchString => document (mock object)
protected function getObjectManager(array $documents) { $objectManager = $this->getMock('Doctrine\Common\Persistence\ObjectManager'); $objectManager ->expects($this->any()) ->method('find') ->will( $this->returnCallback( functio...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createMongoDBMock()\n {\n return m::mock(\\MongoDB\\Database::class);\n }", "abstract public function getDocuments();", "public function getDocuments();", "public function get_documents()\n {\n $this->validate_query_key();\n\n $objDocuments = $this\n ...
[ "0.59144634", "0.5902094", "0.5843777", "0.57373106", "0.5725653", "0.555542", "0.5534641", "0.5527029", "0.5469903", "0.54365957", "0.5423823", "0.5379411", "0.53657925", "0.5352716", "0.5317109", "0.529315", "0.52746946", "0.52632755", "0.52503985", "0.52421135", "0.5240509...
0.82971185
0
Returns a manager registry mock that is capable of returning one or more object managers for getManager(). $objectManagers should be an associative array of managerName => manager (mock object)
protected function getManagerRegistry(array $objectManagers) { $managerRegistry = $this->getMock('Doctrine\Common\Persistence\ManagerRegistry'); $managerRegistry ->expects($this->any()) ->method('getManager') ->will( $this->returnCallback( ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getObjectManager()\n {\n return $this->managerRegistry->getManager($this->managerName);\n }", "public function getManagers()\n {\n // TODO: Implement getManagers() method.\n }", "public function getObjectManager() {}", "protected function getObjectManager(array $d...
[ "0.6343053", "0.6185559", "0.60922706", "0.60772777", "0.6070378", "0.6070378", "0.5949157", "0.5914144", "0.59079576", "0.59040743", "0.5897192", "0.588894", "0.588894", "0.588894", "0.588894", "0.5882814", "0.5822005", "0.5812113", "0.5764868", "0.57554394", "0.57025963", ...
0.86300325
0
/ Smarty plugin File: outputfilter.highlight.php Type: outputfilter Name: highlight Version: 1.1 Date: Sep 18, 2003 Version: 1.0 Date: Aug 10, 2003 Purpose: Adds Googlecachelike highlighting for terms in a template after its rendered. This can be used easily integrated with the wiki search functionality to provide high...
function smarty_outputfilter_highlight($source, &$smarty) { global $feature_referer_highlight; $highlight = $_REQUEST['highlight']; if(isset($feature_referer_highlight) && $feature_referer_highlight == 'y') { $refererhi = _refererhi(); if(isset($refererhi) && !empty($refererhi)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function smarty_outputfilter_highlight($source, &$smarty) {\n\n $highlight = $_REQUEST['highlight'];\n\n if (isset($_GET['keywords'])) {\n $highlight .= oos_var_prep_for_os($_GET['keywords']);\n }\n\n $highlight = strip_tags($highlight);\n $sStrSize = strlen($highlight);\n\n if ($sStrSize <=...
[ "0.8028608", "0.783048", "0.66046", "0.6578342", "0.65324086", "0.6372852", "0.6329961", "0.6322366", "0.61186475", "0.6043705", "0.59569335", "0.59206915", "0.5904857", "0.5879596", "0.5789604", "0.5759375", "0.57091266", "0.5682206", "0.5596766", "0.5573278", "0.55549794", ...
0.7781293
2
helper function q= for Google, p= for Yahoo
function _refererhi() { $referer = parse_url($_SERVER['HTTP_REFERER']); parse_str($referer['query'],$vars); if (isset($vars['q'])) { return $vars['q']; } else if (isset($vars['p'])) { return $vars['p']; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getQuery() ;", "function bq_get_quotes() {\n\t/** These are quotes from A P J Abul Kalam */\n $quotes=[\n \"“স্বপ্ন বাস্তবায়ন না হওয়া পর্যন্ত তোমাকে স্বপ্ন দেখে যেতে হবে” – Abdul Kalam\",\n \"“স্বপ্ন সেটা নয় যেটা তুমি ঘুমিয়ে ঘুমিয়ে দেখো | স্বপ্ন হলো সেটাই যা পূরণের অদম্য ইচ্ছা তোমায় ঘুম...
[ "0.57425797", "0.55637753", "0.5513406", "0.54645324", "0.54507446", "0.54474247", "0.53783107", "0.53776395", "0.5368028", "0.53600353", "0.5324716", "0.53084165", "0.52961016", "0.5293768", "0.5281911", "0.5256313", "0.5203149", "0.51928633", "0.5182243", "0.5179579", "0.51...
0.5169194
23
Sends an activation email.
public function send(UserInterface $user = null): bool { if (empty($user)) { $this->error = lang('Auth.error.noUserToActivate'); return false; } $email = service('email'); $emailConfig = config(Email::class); $settings = $this->getSettings(); $prepareData = $settings->prepareViewData; $data = $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function sendActivationEmail(){\n\t\t// generate the url\n\t\t$url = 'http://'.$_SERVER['HTTP_HOST'].'/signup/activate/'.$this->activation_token;\n\t\t$text = View::getTemplate('Signup/activation_email.txt', ['url' => $url]);\n\t\t$html = View::getTemplate('Signup/activation_email.html', ['url' => $url]);\n...
[ "0.89438015", "0.85568154", "0.8419658", "0.81587243", "0.7747446", "0.7437791", "0.74117357", "0.7386635", "0.73545647", "0.72183096", "0.7153", "0.71295124", "0.7127572", "0.7120684", "0.7113314", "0.70098597", "0.70066625", "0.69819194", "0.69802016", "0.6968287", "0.69545...
0.0
-1
get user info by email
public function loadUserByEmail($email) { $user = $this->createQueryBuilder('u') ->where('u.email = :email') ->setParameter('email', $email) ->getQuery() ->getOneOrNullResult(); return $user; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getUser($email);", "public function getUserByEmail($email);", "function get_user_by_email($email)\n {\n }", "public function get_user($email){\n\t\t$email_md5_hash = md5($email); \n\t\t$endpoint = '/lists/'. LIST_ID . '/members/'. $email_md5_hash;\n\t\t$result = $this->mc->get($endpoint...
[ "0.83973944", "0.8173564", "0.8135668", "0.76943725", "0.75954133", "0.7583059", "0.75733256", "0.75127935", "0.75108767", "0.7443272", "0.74401045", "0.7436396", "0.7411334", "0.73964334", "0.7384469", "0.737062", "0.7345715", "0.7338967", "0.7335936", "0.7322129", "0.731948...
0.0
-1
Dynamically call the default driver instance.
public function __call($method, $parameters) { return $this->manager->$method(...$parameters); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getDefaultDriver();", "public static function getDefaultDriver()\n {\n }", "abstract protected function getDriver();", "protected function getDriver() {}", "public function getDefaultDriver()\n {\n \treturn 'default';\n }", "public function getDefaultDriver...
[ "0.83606505", "0.7717996", "0.74386233", "0.73421013", "0.7325159", "0.7140512", "0.7060018", "0.70520353", "0.70209527", "0.70209527", "0.70209527", "0.6973281", "0.67342716", "0.6721562", "0.66846865", "0.66843116", "0.66638494", "0.6567712", "0.65222967", "0.6508803", "0.6...
0.0
-1
This is the default 'index' action that is invoked
public function actionIndex($id = null) { $status = array(); if (isset($_GET['status']) && $_GET['status'] == 'deleted') { $status = array( 'code' => 'success', 'message' => 'Certificate deleted Successfully!' ); } if (...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function actionIndex() {}", "public function actionIndex() {}", "public function actionIndex()\n {\n $this->render('index');\n }", "public function actionIndex(){\r\r\n\t\t$this->render('index', array());\r\r\n\t}", "protected function indexAction() {}", "public function indexAction()...
[ "0.8918154", "0.8918154", "0.8807795", "0.8799434", "0.8776453", "0.8773893", "0.87724197", "0.87592155", "0.87495244", "0.87495244", "0.87495244", "0.87495244", "0.8728183", "0.8723083", "0.8698629", "0.8691714", "0.8690949", "0.86904883", "0.86904883", "0.86904883", "0.8690...
0.0
-1
This is the action to handle external exceptions.
public function actionError() { if ($error = Yii::app()->errorHandler->error) { if (Yii::app()->request->isAjaxRequest) echo $error['message']; else $this->render('error', $error); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function executeActionWithErrorHandling() {\n \n }", "function exception_handler($ex) {\n // now let the plugin send the exception to client\n $this->send_error($ex);\n // not much else we can do now, add some logging later\n exit(1);\n }", "protected functio...
[ "0.7286617", "0.69130844", "0.6828128", "0.6765496", "0.6732437", "0.65824705", "0.6526459", "0.6403522", "0.63426304", "0.6252801", "0.62523055", "0.62226164", "0.6202877", "0.62017435", "0.6192582", "0.6192206", "0.6192138", "0.6180666", "0.6158045", "0.6144492", "0.6124394...
0.0
-1
Logs out the current user and redirect to homepage.
public function actionLogout() { Yii::app()->user->logout(); $this->redirect(Yii::app()->homeUrl); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function logUserOut()\n\t{\n\t\t# destroy the session\n\t\tSession::flush();\n\n\t\t# generate a new session ID\n\t\tSession::regenerate();\n\n\t\t# ... and show the homepage\n\t\treturn Redirect::home();\n\t}", "public function logOutUser() {\r\n\t\tif (isset($_SESSION)) {\r\n\t\t\tunset($_SESSION);\r\n\...
[ "0.80444497", "0.8028213", "0.7812711", "0.7794865", "0.7757136", "0.7740386", "0.7736372", "0.77337325", "0.77147937", "0.7698057", "0.76774144", "0.7659646", "0.76329297", "0.75914097", "0.75885266", "0.7586672", "0.7585362", "0.75682825", "0.7547765", "0.75433844", "0.7514...
0.0
-1
Display a listing of the resource.
public function index() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { $produtos = Produtos::all(); return view('estoque.create')->with('produtos', $produtos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { Validator::make($request->all(), [ 'quantidade_estoque'=>'required|numeric' ])->validate(); $e = Estoque::where('produto_estoque_id', $request->produto_estoque_id)->first(); if(!$e){ $estoque = new Estoque; $...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72875285", "0.71454394", "0.71323526", "0.6639812", "0.6620611", "0.6568348", "0.6526527", "0.6509403", "0.64499927", "0.6375791", "0.63739914", "0.6365971", "0.6365971", "0.6365971", "0.6342667", "0.6342667", "0.6342667", "0.6342667", "0.6342667", "0.6342667", "0.6342667"...
0.0
-1
Display the specified resource.
public function show($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8233718", "0.8190437", "0.6828712", "0.64986944", "0.6495974", "0.6469629", "0.6462615", "0.6363665", "0.6311607", "0.62817234", "0.6218966", "0.6189695", "0.61804265", "0.6171014", "0.61371076", "0.61207956", "0.61067593", "0.6105954", "0.6094066", "0.6082806", "0.6045245...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
module id used in JavaScript module initialization
function init($module, $params) { // getting module ID - automatically (from Joomla! database) or manually $this->module_id = ($params->get('automatic_module_id',0) == 1) ? 'nsp_'.$module->id : $params->get('module_unique_id',0); $this->config['module_id'] = $this->module_id; // module dimensions $this->con...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_id() {\n\t\treturn self::MODULE_ID;\n\t}", "function getUniqueID(){\n\t\treturn $this->module.'_'.$this->ID;\n\t}", "public function getId(){\n\t\treturn $this->idModule;\n\t}", "public function get_module_id()\n {\n return C__MODULE__EVENTS;\n }", "function sloodle_get_mod...
[ "0.7263905", "0.6653679", "0.655711", "0.6513401", "0.643907", "0.643223", "0.6388334", "0.63871145", "0.6306334", "0.6290364", "0.6290364", "0.61884207", "0.61200505", "0.5994462", "0.5848091", "0.5848091", "0.5797264", "0.57865715", "0.577877", "0.57780594", "0.576942", "...
0.0
-1
RENDER PORTAL MODE LAYOUT
function render_portal_mode($mode) { if(!class_exists('NSP_GK4_'.$mode)) { require_once (dirname(__FILE__).DS.'gk_classes'.DS.'portal_modes'.DS.'gk.'.strtolower($mode).'.php'); } $class_name = 'NSP_GK4_'.$mode; $renderer = new $class_name(); $renderer->init($this); $renderer->output(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function renderLayout();", "public function render_screen_layout()\n {\n }", "public function render_view_mode()\n {\n }", "static function renderLayout($root = false)\n {\n extract(self::$data_layout);\n if ($root) {\n include_once \"views/layou...
[ "0.70597297", "0.6792209", "0.6225219", "0.6036751", "0.5970511", "0.57362556", "0.5713587", "0.5661241", "0.56190664", "0.560725", "0.5585721", "0.5573768", "0.55175126", "0.55162704", "0.55090976", "0.5508628", "0.5500143", "0.54994655", "0.54647815", "0.5457474", "0.542992...
0.60908324
3
You have a similar example in:
public function implementation_pending() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function helper()\n\t{\n\t\n\t}", "private function __construct () {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", "private function __construct() {}", ...
[ "0.6026492", "0.5794186", "0.5767129", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "0.5765738", "...
0.0
-1
/============================================= MOSTRAR HORARIOS Y NIVELES =============================================
public function ctrVerHorasAsistencia($dni,$apeP,$apeM,$nombre,$fechainicio,$fechafin){ $objHoras = new AsistenciasModel(); $resultadoHoras = $objHoras->mdlVerHorasAsistencia($dni,$apeP,$apeM,$nombre,$fechainicio,$fechafin); return $resultadoHoras; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function CsomagHozzaadasa()\r\n {\r\n foreach (Lap::Nevkeszlet() as $nev)\r\n {\r\n foreach (Lap::Szinkeszlet() as $szin)\r\n {\r\n $this->lapok[]=new Lap($szin,$nev);\r\n }\r\n }\r\n }", "public function Monta_Horario() {\n\t\t$L...
[ "0.6071356", "0.5863233", "0.58313197", "0.5744254", "0.5736769", "0.5569827", "0.55261886", "0.54899937", "0.54586387", "0.5396164", "0.5384011", "0.53797597", "0.53667516", "0.53482294", "0.53432465", "0.53309596", "0.53264725", "0.53264725", "0.53203356", "0.53029567", "0....
0.0
-1
Create a new controller instance.
public function __construct() { $this->middleware('auth'); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function createController()\n {\n $this->createClass('controller');\n }", "protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this-...
[ "0.82668066", "0.8173394", "0.78115296", "0.77052677", "0.7681875", "0.7659338", "0.74860525", "0.74064577", "0.7297601", "0.7252339", "0.7195181", "0.7174191", "0.70150065", "0.6989306", "0.69835985", "0.69732994", "0.6963521", "0.6935819", "0.68973273", "0.68920785", "0.687...
0.0
-1
Show the application dashboard.
public function index() { $shipping = ShippingAddress::findOrFail(Auth::user()->id); $billing = BillingAddress::findOrFail(Auth::user()->id); $user = User::findOrFail(Auth::user()->id); return view('client.index', compact('shipping', 'billing', 'user')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
Constructor method to initialize the class If specific year or month is given, set defaults accordingly. Otherwise set defaults to the current date.
public function __construct($y=null,$m=null) { if(is_null($y)) { $this->curYear = date('Y'); } else { if(preg_match("/^[0-9]{4}$/", $y)) { $this->curYear = $y; } else { $this->curYear = date('Y'); } } if(is_null($m)) { $this->curMonth = date('m'); $this->curMonthName = date('F'); ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function __construct()\n\t\t{\n\t\t\t$this->today = date('Y-m-d');\n\n\t\t\t// Set a default start/run date to today. This can be\n\t\t\t// overridden using the setStartDate() method.\n\t\t\t$this->start_date = $this->today;\n\n\t\t\t// Some functions require an end_date. This is set to today\n\t\t\t// bu...
[ "0.70006955", "0.6900711", "0.6855318", "0.6721444", "0.6706209", "0.6342894", "0.63292485", "0.63168776", "0.6279233", "0.62442684", "0.62270725", "0.62163", "0.61647934", "0.6164299", "0.61519784", "0.6125481", "0.6118802", "0.6118802", "0.6118802", "0.6118802", "0.6118802"...
0.6543558
5
Set the calendar title Add the title string to the calendar (if any)
private function makeCalendarTitle() { if(strlen($this->headerTitle) > 0) { $this->calWeekDays .= "\t<tr>\n\t\t<th class=\"headerTitle\" colspan=\"7\">".$this->headerTitle."</th>\n\t</tr>"; $this->outArray['title'] = $this->headerTitle; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setTitle()\n {\n $this->title = $this->start_date;\n\n if ($this->start_date != $this->end_date) {\n $this->title .= ' - '.$this->end_date;\n }\n }", "protected function setTitle()\n\t{\n\t\tglobal $APPLICATION;\n\n\t\tif ($this->arParams[\"SET_TITLE\"] == '...
[ "0.7708907", "0.71849394", "0.7106481", "0.7106481", "0.70784795", "0.70748097", "0.7068428", "0.70663095", "0.7042291", "0.70176363", "0.700437", "0.7003127", "0.69973695", "0.69973695", "0.69933873", "0.6986058", "0.6975316", "0.6974538", "0.6966417", "0.6966417", "0.696641...
0.7574304
1
Set the calendar heading Add the heading string to the calendar.
private function makeCalendarHead() { if(strlen($this->headerStr) < 1) { $head = "\t<tr>\n\t\t<th colspan=\"7\" class=\"headerString\">"; if(!is_null($this->curDay)) { $head .= $this->curDayName.' the '.$this->curDayS.' of '.$this->curMonthName.', '.$this->curYear; } else { $head .= $this->curMonthN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "private function makeCalendarTitle()\n\t{\n\t\tif(strlen($this->headerTitle) > 0) {\n\t\t\t$this->calWeekDays .= \"\\t<tr>\\n\\t\\t<th class=\\\"headerTitle\\\" colspan=\\\"7\\\">\".$this->headerTitle.\"</th>\\n\\t</tr>\";\n\t\t\t$this->outArray['...
[ "0.7115865", "0.66175056", "0.6427874", "0.63250315", "0.60851115", "0.60145533", "0.59840727", "0.5885032", "0.58817357", "0.5842405", "0.58113235", "0.57994074", "0.57731843", "0.5755268", "0.57319266", "0.5720061", "0.56676507", "0.5650661", "0.5644111", "0.562266", "0.559...
0.6902673
1
Make Day Column Headings Build the row of day headings using the $daysArray array.
private function makeDayHeadings() { $this->outArray['dayheadings'] = array(); $this->dayHeadings .= "\t<tr>\n"; foreach($this->daysArray as $day) { $this->dayHeadings .= "\t\t<th class=\"dayHeading\">$day</th>\n"; array_push($this->outArray['dayheadings'], $day); } $this->dayHeadings .= "\t</tr>\n"; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function makeCalendarHead()\n\t{\n\t\tif(strlen($this->headerStr) < 1) {\n\t\t\t$head = \"\\t<tr>\\n\\t\\t<th colspan=\\\"7\\\" class=\\\"headerString\\\">\";\n\t\t\tif(!is_null($this->curDay)) {\n\t\t\t\t$head .= $this->curDayName.' the '.$this->curDayS.' of '.$this->curMonthName.', '.$this->curYear;\n\t\...
[ "0.6407736", "0.59913987", "0.59694207", "0.5830636", "0.580982", "0.5785261", "0.57791615", "0.5628445", "0.5607434", "0.551453", "0.55088216", "0.5440747", "0.54331005", "0.54277366", "0.5427073", "0.54121625", "0.539174", "0.5388485", "0.53517675", "0.5342108", "0.53218204...
0.8538074
0
Set start of month spacers Create a spacer cell that adds blank space for the start of the month before the first day of the month.
private function startMonthSpacers() { if($this->firstDayOfTheMonth != '0') { $this->calWeekDays .= "\t\t<td colspan=\"".$this->firstDayOfTheMonth."\" class=\"spacerDays\">&nbsp;</td>\n"; $this->outArray['firstday'] = $this->firstDayOfTheMonth; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function endMonthSpacers()\n\t{\n\t\tif((8 - $this->weekDayNum) >= '1') {\n\t\t\t$this->calWeekDays .= \"\\t\\t<td colspan=\\\"\".(8 - $this->weekDayNum).\"\\\" class=\\\"spacerDays\\\">&nbsp;</td>\\n\";\n\t\t\t$this->outArray['lastday'] = (8 - $this->weekDayNum);\t\t\t\n\t\t}\n\t}", "private function Wr...
[ "0.5999289", "0.5799576", "0.55208194", "0.5462961", "0.54257184", "0.5403874", "0.53747106", "0.5319116", "0.52447367", "0.5152501", "0.5072927", "0.5065767", "0.49980766", "0.49827915", "0.49784622", "0.4928414", "0.49255168", "0.49203742", "0.4913131", "0.49100062", "0.490...
0.834585
0
Set end of month spacers Create a spacer cell that adds blank space for the end of the month after the last day of the month.
private function endMonthSpacers() { if((8 - $this->weekDayNum) >= '1') { $this->calWeekDays .= "\t\t<td colspan=\"".(8 - $this->weekDayNum)."\" class=\"spacerDays\">&nbsp;</td>\n"; $this->outArray['lastday'] = (8 - $this->weekDayNum); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function startMonthSpacers()\n\t{\n\t\tif($this->firstDayOfTheMonth != '0') {\n\t\t\t$this->calWeekDays .= \"\\t\\t<td colspan=\\\"\".$this->firstDayOfTheMonth.\"\\\" class=\\\"spacerDays\\\">&nbsp;</td>\\n\";\n\t\t\t$this->outArray['firstday'] = $this->firstDayOfTheMonth;\n\t\t}\n\t}", "function Footer(...
[ "0.66103333", "0.5805584", "0.5805584", "0.58004963", "0.5792688", "0.5748435", "0.5729793", "0.5726929", "0.57091856", "0.55485076", "0.54882425", "0.5455331", "0.54490894", "0.5418281", "0.54126287", "0.5407858", "0.53825533", "0.5380916", "0.53771776", "0.53756195", "0.537...
0.78970635
0
Create a listing of events for HTML display Creates a listing of events occuring on the given day as items. These items are added into the cell of the calendar for the given day.
private function makeDayEventListHTML() { $showtext = ""; foreach($this->eventItems as $item) { if($item['date'] == $this->curYear.'-'.$this->curMonth.'-'.$this->dayOfMonth) { $category = (strlen($item['cat']) > 0 ? 'Category: '.$item['cat'].' - ' : ''); $outevents[$n]['category'] = $item['cat']; ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function makeHTMLIterator()\n\t{\n\t\t$this->weekDayNum = $this->firstDayOfTheMonth+1;\n\t\tfor($this->dayOfMonth; $this->dayOfMonth <= $this->daysInMonth; $this->dayOfMonth++) {\n\t\t\t// Set the default style\n\t\t\t$style = 'class=\"normalDay\"';\n\t\t\t\n\t\t\t// Set the style to a weekend day style\n\...
[ "0.6988883", "0.691454", "0.68001527", "0.6761365", "0.6699765", "0.6596786", "0.65746707", "0.6560422", "0.64417326", "0.63765466", "0.6351477", "0.6351217", "0.6314671", "0.62700576", "0.6258939", "0.6229247", "0.6220041", "0.6211291", "0.618858", "0.61027926", "0.6087735",...
0.78295594
0
Create a listing of events as an array Creates a listing of events occuring on the given day as array items. These items are added into the cell of the calendar for the given day.
private function makeDayEventListArray() { $outevents = array(); $n = 0; foreach($this->eventItems as $item) { if($item['date'] == $this->curYear.'-'.$this->curMonth.'-'.$this->dayOfMonth) { $outevents[$n]['category'] = $item['cat']; if($item['stdurl']) { $outevents[$n]['url'] = $item['url...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEventsByDay( $day ) {\n\n\t\t$rangestart = strtotime($day) * 1000; // zimbra always works with milliseconds in timestamps\n\t\t$rangeend = $rangestart + (24 * 60 * 60 * 1000);\n\n\t\t/**\n\t\t* build full call url\n\t\t*/\n\t\t$calendar = $this->getFromZimbra(\"/calendar?start=\" . $rangestart ....
[ "0.6671869", "0.6494189", "0.6369033", "0.63672584", "0.62191", "0.6172734", "0.61669075", "0.6152314", "0.61197495", "0.6069392", "0.59930086", "0.5899545", "0.5881705", "0.5879517", "0.5862057", "0.5854946", "0.5847806", "0.5821305", "0.5820824", "0.5739708", "0.5734776", ...
0.7613199
0
Iterate calendar days (HTML version) Loop through the calendar days for the given month and create cells for each day. Populate each cell with it's given events (if any) and output as a complete table contents.
private function makeHTMLIterator() { $this->weekDayNum = $this->firstDayOfTheMonth+1; for($this->dayOfMonth; $this->dayOfMonth <= $this->daysInMonth; $this->dayOfMonth++) { // Set the default style $style = 'class="normalDay"'; // Set the style to a weekend day style if(($this->weekDayNum == 8)||(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function draw_calendar($month,$year,$events = array()){\n\t\t$dayofweek = array('<td class=\"calendar-header\">Sunday</td>',\n\t\t'<td class=\"calendar-header\">Monday</td>',\n\t\t'<td class=\"calendar-header\">Tuesday</td>',\n\t\t'<td class=\"calendar-header\">Wednesday</td>',\n\t\t'<td class=\"calendar-header\">...
[ "0.72028095", "0.71000516", "0.70803356", "0.70312774", "0.70239383", "0.6909667", "0.690769", "0.6813331", "0.6793757", "0.67725843", "0.67438596", "0.67350274", "0.6697026", "0.6695359", "0.6692827", "0.6680418", "0.6673593", "0.6642261", "0.65114194", "0.6481101", "0.64571...
0.7805902
0
Iterate calendar days (Array version) Loop through calendar days for the given month and create a large multidimensional array of all the elements required to draw the calendar.
private function makeArrayIterator() { $this->weekDayNum = $this->firstDayOfTheMonth+1; for($this->dayOfMonth; $this->dayOfMonth <= $this->daysInMonth; $this->dayOfMonth++) { // Set the default style $this->outArray['days'][$this->dayOfMonth]['style'] = 'normalDay'; // Set the style to a weekend day...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function _getDaysArray($month, $year = 0)\n {\n if ($year == 0)\n {\n $year = $this->year;\n }\n\n $days = array();\n\n // Return everyday of the month if both bit[2] and bit[4] are '*'\n if ($this->bits[2] == '*' AND $this->bits[4] == '*')\n {\n $days = $this->_getDays($mon...
[ "0.7222785", "0.69435954", "0.69158983", "0.68997", "0.6889217", "0.6864905", "0.6826922", "0.68108207", "0.6707525", "0.67010236", "0.6694331", "0.66921747", "0.6622807", "0.65878236", "0.65718424", "0.6504943", "0.64617896", "0.6432567", "0.6409523", "0.64075303", "0.637946...
0.73546946
0
Set the calendar title string If a custom calendar title string is desired, this method is used to set it. Otherwise, no calendar title is used.
public function setTitle($str) { $this->headerTitle = $str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function setTitle()\n {\n $this->title = $this->start_date;\n\n if ($this->start_date != $this->end_date) {\n $this->title .= ' - '.$this->end_date;\n }\n }", "public function setEventTitle($eventTitle)\n {\n $this->eventTitle = isset($eventTitle) ? $eventT...
[ "0.6799438", "0.6777323", "0.67509794", "0.6608078", "0.6603208", "0.6578803", "0.657034", "0.6551813", "0.6529491", "0.65267116", "0.6501285", "0.6496687", "0.6484237", "0.6476406", "0.64763075", "0.6455568", "0.64471817", "0.6444261", "0.6444261", "0.6444261", "0.644399", ...
0.0
-1
Set the calendar header string If a custom header string is desired, this method is used to set it. Otherwise, a generated string is used.
public function setHeader($str) { $this->headerStr = $str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setHeader($string)\n {\n if (!empty($this->header))\n {\n $this->header .= $string;\n }\n else \n {\n $this->header = $string;\n }\n }", "private function makeCalendarHead()\n\t{\n\t\tif(strlen($this->headerStr) < 1) {\n\t\t\t$head = ...
[ "0.71618253", "0.6479801", "0.63369775", "0.62824106", "0.6113401", "0.60724556", "0.6051226", "0.6004536", "0.59938663", "0.5974067", "0.5961257", "0.59480304", "0.5910625", "0.58400047", "0.5788465", "0.5784349", "0.5776362", "0.5725765", "0.5719432", "0.57146394", "0.57121...
0.62983215
3
Toggle add event Set whether or not to show an "Add Event" link. Requires a destination for processing the "Add Event" logic.
public function setAddEvt($dest,$img=null) { $this->addEvtDest = $dest; $this->addEvtImg = (!is_null($img) ? $img : ''); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addFeedOptions($event) {\r\n return $this->linkedService\r\n ? $this->linkedService->addFeedOptions($event)\r\n : false;\r\n }", "function add()\n\t{\n\t\t// Initialize variables.\n\t\t$app = & JFactory::getApplication();\n\n\t\t// Clear the link id from the sessio...
[ "0.53746575", "0.52828264", "0.5167206", "0.51476413", "0.5139269", "0.5098985", "0.5089261", "0.50663704", "0.5061138", "0.5007276", "0.4970189", "0.49401695", "0.4909008", "0.47982687", "0.4776325", "0.47710362", "0.47618818", "0.47618818", "0.4755684", "0.47433564", "0.473...
0.4942969
11
Toggle showing weekday numbers Set whether or not to add the weekday number in addition to the month number for each calendar day cell.
public function setShowWeekDayNum($sw=false) { $this->addWeekDay = $sw; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function build_month_days($month, $number_of_days) {\r\n $days_of_month_html = '<tr class=\"week-day\">';\r\n \r\n $days_in_week = 1;\r\n for ($days = 1; $days <= $number_of_days; $days++) {\r\n\r\n // Split the weeks in rows\r\n if ($days_in_week == 8) {\r\n ...
[ "0.6188181", "0.6141272", "0.61172116", "0.59556955", "0.5809905", "0.58070767", "0.5771572", "0.5708788", "0.5641808", "0.5629857", "0.5550392", "0.5475904", "0.54352045", "0.53517", "0.5329178", "0.53151584", "0.53131", "0.53094345", "0.529378", "0.52783984", "0.52555025", ...
0.62755215
0
Add events to the calendar Handler method to add events to an array of events to be fed to the calendar.
public function setEvents($id,$date,$text,$desc,$cat=null,$catcolor=null,$stdurl=false,$url=null) { $events = array( 'id' => $id, 'date' => $date, 'text' => $text, 'desc' => $desc, 'cat' => $cat, 'catcolor' => $catcolor, 'stdurl' => $stdurl, 'url' => $url ); array_push($this->eventItems, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function add_events()\r\n {\r\n $events = $this->events;\r\n foreach ($events as $time => $items)\r\n {\r\n $column = date('H', $time) / $this->hour_step + 1;\r\n foreach ($items as $item)\r\n {\r\n $content = $item['content'];\r\n ...
[ "0.6427636", "0.5878333", "0.5878113", "0.58082396", "0.5797988", "0.5796478", "0.5640265", "0.5636678", "0.56365746", "0.5617171", "0.5592074", "0.5591888", "0.55742013", "0.5571144", "0.55322134", "0.5505282", "0.55038095", "0.549881", "0.54806536", "0.547888", "0.5474658",...
0.5235596
55
Generic method to output the calendar Outputs the calendar as an array
public function drawArray() { $this->outArray['days'] = array(); $this->makeCalendarTitle(); $this->makeCalendarHead(); $this->makeDayHeadings(); $this->startMonthSpacers(); $this->makeArrayIterator(); $this->endMonthSpacers(); return $this->outArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function CalendarData($month=null, $year=null) {\n if (is_null($year)) $year = date('Y');\n if (is_null($month)) $month = date('n');\n\n // RENDER\n exec(\"cal \".$month.\" \". $year, $cal); $this->dbgMsg( ' ### calendar '.$month.\" \". $year.\" :: \", $cal );\n $rxp[] = array_fill(0,7,' ');\n ...
[ "0.6879275", "0.6866407", "0.6681683", "0.66030675", "0.6585608", "0.65136975", "0.6499322", "0.6464244", "0.6386328", "0.636859", "0.6288093", "0.6283444", "0.6279114", "0.62678814", "0.6267044", "0.62599", "0.6204513", "0.61667717", "0.6158972", "0.6122414", "0.6097351", ...
0.74939036
0
Generic method to draw the calendar Outputs the HTML for drawing the calendar table.
public function drawHTML() { $this->calWeekDays .= "<table border=\"1\">\n"; $this->makeCalendarTitle(); $this->makeCalendarHead(); $this->makeDayHeadings(); $this->calWeekDays .= "\t<tr>\n"; $this->startMonthSpacers(); $this->makeHTMLIterator(); $this->endMonthSpacers(); $this->calWeekDays .= "\t</t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function output_calendar() // Generating calendar HTML content\r\n\t{\r\n\t\t# Apparently, it's not possible to dereference $this->callback()\r\n\t\t$cb = $this->callback;\r\n\r\n\t\t# Preliminary calculations\r\n\t\t$t = getdate(strtotime($this->date));\r\n\t\t$today = $t[\"mday\"];\r\n\t\t$year = $t[\"year\"];\r...
[ "0.7477533", "0.7392036", "0.7086154", "0.7049579", "0.703222", "0.7010395", "0.6995145", "0.6987137", "0.6983575", "0.687349", "0.68351984", "0.6822865", "0.6801249", "0.67956764", "0.67782706", "0.67735076", "0.6663788", "0.66468054", "0.6645773", "0.6644275", "0.6528975", ...
0.8193256
0
Get the list view.
public function getListView($actions) { $actionViews = [ 'index' => ['index', 'table'], 'create' => ['create', 'form'], 'edit' => ['edit', 'form'], 'show' => ['show'] ]; $views = collect($actionViews); if (! empty($actions)) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getListView()\n {\n if (null !== $this->listView) {\n return $this->listView;\n }\n\n $listView = $this->createListView();\n\n if ($listView instanceof TemplatingAwareInterface) {\n $listView->setTemplating($this->getTemplating());\n }\...
[ "0.7510305", "0.71312916", "0.70297104", "0.69293696", "0.68020314", "0.6791699", "0.67443913", "0.67443913", "0.66790694", "0.66179925", "0.66057694", "0.65931267", "0.65931267", "0.6585763", "0.65695614", "0.65447944", "0.6529988", "0.6505345", "0.6489708", "0.6489708", "0....
0.0
-1
Show the application dashboard.
public function index() { $user = Auth::user(); $terceros=terceros::where('user_id',$user{'id'})->count(); $empresa=empresa::where('user_id',$user{'id'})->count(); $evaluacion=evaluacion::where('user_id',$user{'id'}) ->where('estado_id','1') ->count(); if ($t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function dashboard()\n {\n\n $pageData = (new DashboardService())->handleDashboardLandingPage();\n\n return view('application', $pageData);\n }", "function dashboard() {\r\n\t\t\tTrackTheBookView::render('dashboard');\r\n\t\t}", "public function showDashboard() { \n\t\n ...
[ "0.77850926", "0.7760142", "0.7561336", "0.75147176", "0.74653697", "0.7464913", "0.73652893", "0.7351646", "0.7346477", "0.73420244", "0.7326711", "0.7316215", "0.73072463", "0.7287626", "0.72826403", "0.727347", "0.727347", "0.727347", "0.727347", "0.7251768", "0.7251768", ...
0.0
-1
Calls each plugin class for their custom logic before saving the entities into the database.
public function onSaveProjectExecBeforeSave( SaveProjectEvent $event, $eventName, EventDispatcherInterface $eventDispatcher ) { $instances = $event->getPluginInstances(); foreach ($instances as $instance) { if ($instance instanceof ProjectPluginInterface) { ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function save()\n {\n foreach ($this->plugins as $name => $obj) {\n $this->updateServicesVars($name);\n\n if ($this->plugins[$name]->is_account) {\n $this->plugins[$name]->save();\n } elseif ($this->plugins[$name]->initially_was_account) {\n $this->plugins[$name]->remove_from_paren...
[ "0.60499036", "0.5883606", "0.5878067", "0.5756851", "0.5727931", "0.572369", "0.5723658", "0.57137036", "0.56861293", "0.5673229", "0.56674117", "0.5665621", "0.5648855", "0.56486046", "0.5645121", "0.56314296", "0.5569917", "0.5564235", "0.5520951", "0.5518778", "0.54887575...
0.0
-1
Iterates the fieldlist and executes a mandatory check for each field.
public function onSaveProjectCheckMandatory( SaveProjectEvent $event, $eventName, EventDispatcherInterface $eventDispatcher ) { $fieldList = $event->getFieldList(); $data = $event->getData(); foreach ($fieldList as $field) { if ($field->checkMandatory($dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function validate_fields() {\n \n\t\t//...\n \n }", "public function validate_fields() {\n \n\t\t\n \n\t\t}", "public static function fieldListMandatory($method, $fieldList, $params) {\n $result = TRUE;\n $errorFieldList = array();\n foreach ($fieldList as $_field) {\n ...
[ "0.6557573", "0.6478085", "0.6364737", "0.627126", "0.6181725", "0.6176689", "0.61495155", "0.6127725", "0.61211014", "0.61063164", "0.60976934", "0.6081187", "0.60510814", "0.60347253", "0.6025397", "0.5946796", "0.5916256", "0.58908486", "0.5855788", "0.5837541", "0.5806396...
0.0
-1
Iterates the entities and fills the given data.
public function onSaveProjectFillData( SaveProjectEvent $event, $eventName, EventDispatcherInterface $eventDispatcher ) { $entities = $event->getEntities(); $data = $event->getData(); $fields = $event->getFieldList(); // iterate each entity foreach ($e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function fillEntity(array $data)\n {\n $this->entity->setData($data);\n }", "public function fillFromArray($entity, $data) {\n $this->_fillFromArray($entity, $data);\n }", "public function populateEntity($data = null) {\n //Preenchendo a entity com os dados novos.\n ...
[ "0.6971767", "0.6680029", "0.66602683", "0.66177315", "0.6547799", "0.6408321", "0.6385692", "0.6169057", "0.6084097", "0.6030228", "0.5998481", "0.5993636", "0.58495784", "0.58269155", "0.57274765", "0.56866175", "0.5633513", "0.56113017", "0.56023884", "0.5591265", "0.55885...
0.0
-1
Persists the entities into the database.
public function onSaveProjectSaveEntities( SaveProjectEvent $event, $eventName, EventDispatcherInterface $eventDispatcher ) { $entities = $event->getEntities(); $pid = 0; foreach ($entities as $entity) { try { if ($pid && !($entity instance...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function save()\n {\n $entities = $this->entities;\n Database::getInstance()->doTransaction(\n function() use ($entities)\n {\n foreach ($entities as $entity)\n {\n if ($entity->getMarkedAsDeleted())\n ...
[ "0.7667536", "0.71882254", "0.71665096", "0.70472205", "0.6962426", "0.6880654", "0.6850977", "0.6765697", "0.67552054", "0.67352366", "0.66884327", "0.667061", "0.6649584", "0.6636752", "0.6624606", "0.6620328", "0.6606439", "0.6604699", "0.6591183", "0.6541546", "0.6533928"...
0.0
-1
Define the model's default state.
public function definition() { return [ 'id' => Str::uuid(), 'category_id' => $this->faker->randomElement($this->categories), 'name' => $this->faker->unique()->word, 'description' => $this->faker->paragraph, 'image' => Str::remove('public/images/pr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function getDefaultState()\r\n\t{\r\n\t}", "static function get_default_state();", "public function getDefaultUserState();", "private function setDefaultStates(): void\n {\n foreach ($this->arr_attributes as $strParamName) {\n $this->states[$strParamName] = $this->params->get($strParamNa...
[ "0.77757794", "0.72255844", "0.6857964", "0.67950636", "0.67661", "0.6433752", "0.64074224", "0.63712305", "0.61876214", "0.61864567", "0.6159088", "0.61543477", "0.6153316", "0.61428887", "0.6116904", "0.61084956", "0.6106097", "0.60391295", "0.60389197", "0.6019848", "0.598...
0.0
-1
/ marker_waiting_name coords type marker_done
public function __construct($chat_id) { $this->chat_id = $chat_id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function finish(Marker $mark)\n\t{\n\t\t$this->finish = $mark;\n\t}", "public function getMarker($name);", "function ping(){\n\t\t$.ajax({url:\"handleajax.php\", success:function(result)\n\t\t{\n\t\t\tstat=false;\n\t\t\tvar obj=$.parseJSON(result);\n\t\t\tvar len=obj.length;\n\t\t\tvar i=0;\n\t\t\twhile...
[ "0.54770035", "0.5369358", "0.5180367", "0.49869728", "0.49708894", "0.48854458", "0.48742786", "0.4855595", "0.48252717", "0.4760046", "0.47098115", "0.46871704", "0.46787065", "0.46787065", "0.46241656", "0.4606739", "0.4592279", "0.4569218", "0.45580566", "0.45569363", "0....
0.0
-1
Generate Cart Summary Table
function cart_table($cols = 'full', $destination = '#', $showfooter = true) { $cart_table = ' <table class="table giftsum-table"> <thead> <tr> <th class="th-title-gift">Gift</th> <th class="th-title-frequency">Frequency</th> <th class="th-title-amount">Amount</th>'; if ($co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function show_cart(){\n \t$output = '';\n \t$no = 0;\n \tforeach ($this->cart->contents() as $items) {\n \t\t$no++;\n \t\t$output .='\n \t\t<tr>\n \t\t<td>'.$items['name'].'</td>\n \t\t<td>'.number_format($items['price']).'</td>\n \t\t<td>'.$items['qty'].'</td>\n \t\t<td>'.number_form...
[ "0.67015857", "0.6544991", "0.62063175", "0.60995525", "0.609372", "0.60135394", "0.59425807", "0.59392315", "0.59330654", "0.5931735", "0.5922259", "0.59191567", "0.58822095", "0.5873483", "0.58702695", "0.5863164", "0.58624804", "0.58436126", "0.58267885", "0.58216727", "0....
0.64410543
2
Display a listing of the resource.
public function index() { $vendor = DB::table('zenrolle_suppliers')->get(); $opening_bla = 0; $closing_bla = 0; $opening_bla = 0; foreach ($vendor as $key => $value) { $vendor_det = DB::table('zenrolle__pur_history')->where('vendor_id',$value->id)-...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function indexAction()\n {\n $limit = $this->Request()->getParam('limit', 1000);\n $offset = $this->Request()->getParam('start', 0);\n $sort = $this->Request()->getParam('sort', array());\n $filter = $this->Request()->getParam('filter', array());\n\n $result = $this->re...
[ "0.7446777", "0.736227", "0.73005503", "0.72478926", "0.71631265", "0.71489686", "0.7131636", "0.7105969", "0.71029514", "0.7101372", "0.70508176", "0.6995128", "0.69890636", "0.6934895", "0.6900203", "0.6899281", "0.6891734", "0.6887235", "0.68670005", "0.6849741", "0.683052...
0.0
-1
Show the form for creating a new resource.
public function create() { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return $this->showForm('create');\n }", "public function create()\n {\n return view('admin.resources.create');\n }", "public function create(){\n\n return view(...
[ "0.75948673", "0.75948673", "0.75863165", "0.7577412", "0.75727344", "0.7500887", "0.7434847", "0.7433956", "0.73892003", "0.73531085", "0.73364776", "0.73125", "0.7296102", "0.7281891", "0.72741455", "0.72424185", "0.7229325", "0.7226713", "0.7187349", "0.7179176", "0.717428...
0.0
-1
Store a newly created resource in storage.
public function store(Request $request) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function store($data, Resource $resource);", "public function store()\n {\n /* Check if logged in user is authorized to make this request */\n $this->authorizeAction();\n\n if (method_exists($this, 'storeValidations')) {\n $this->request->validate($this->storeValidations...
[ "0.72865677", "0.7145327", "0.71325725", "0.6640912", "0.66209733", "0.65685713", "0.652643", "0.65095705", "0.64490104", "0.637569", "0.63736665", "0.63657933", "0.63657933", "0.63657933", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.6342437", "0.63424...
0.0
-1
Display the specified resource.
public function show($id) { $po_order = DB::table('zenrolle__pur_history')->where('vendor_id',$id)->Where('payment','!=','NULL')->get(); $vendor = DB::table('zenrolle_suppliers')->where('id',$id)->get(); $TotalDebit = 0; $Closing_bla = 0; $opening_bla = 0; $closing_ba...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function show(Resource $resource)\n {\n // not available for now\n }", "public function show(Resource $resource)\n {\n //\n }", "function Display($resource_name, $cache_id = null, $compile_id = null)\n {\n $this->_smarty->display($resource_name, $cache_id, $compile_id...
[ "0.8232636", "0.81890994", "0.68296117", "0.64987075", "0.649589", "0.64692974", "0.64633286", "0.63640857", "0.6307513", "0.6281809", "0.621944", "0.61926234", "0.61803305", "0.6173143", "0.61398774", "0.6119022", "0.61085826", "0.6106046", "0.60947937", "0.6078597", "0.6047...
0.0
-1
Show the form for editing the specified resource.
public function edit($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function edit(Resource $resource)\n {\n return view('admin.resources.edit', compact('resource'));\n }", "public function edit(Resource $resource)\n {\n //\n }", "public function edit($id)\n {\n /* Check if logged in user is authorized to make this request */\n ...
[ "0.78550774", "0.7692893", "0.7273195", "0.7242132", "0.7170847", "0.70622855", "0.7053459", "0.6982539", "0.69467914", "0.6945275", "0.6941114", "0.6928077", "0.69019294", "0.68976134", "0.68976134", "0.6877213", "0.68636996", "0.68592185", "0.68566656", "0.6844697", "0.6833...
0.0
-1
Update the specified resource in storage.
public function update(Request $request, $id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function updateShopifyResource() {\n $this->saving();\n $this->getShopifyApi()->call([\n 'URL' => API::PREFIX . $this->getApiPathSingleResource(),\n 'METHOD' => 'PUT',\n 'DATA' => [\n static::getResourceSingularName() => $this->shopifyData\n ...
[ "0.7425105", "0.70612276", "0.70558053", "0.6896673", "0.6582159", "0.64491373", "0.6346954", "0.62114537", "0.6145042", "0.6119944", "0.61128503", "0.6099993", "0.6087866", "0.6052593", "0.6018941", "0.60060275", "0.59715486", "0.5946516", "0.59400934", "0.59377414", "0.5890...
0.0
-1
Remove the specified resource from storage.
public function destroy($id) { // }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function delete($resource){\n return $this->fetch($resource, self::DELETE);\n }", "public function destroy(Resource $resource)\n {\n //\n }", "public function removeResource($resourceID)\n\t\t{\n\t\t}", "public function unpublishResource(PersistentResource $resource)\n {\n ...
[ "0.6672584", "0.6659381", "0.6635911", "0.6632799", "0.6626075", "0.65424126", "0.65416265", "0.64648265", "0.62882507", "0.6175931", "0.6129922", "0.60893893", "0.6054415", "0.60428125", "0.60064924", "0.59337646", "0.5930772", "0.59199584", "0.5919811", "0.5904504", "0.5897...
0.0
-1
Update conversion group for list table.
public static function update_conversion_data( $conversion_id, $data ) { global $wpdb; $return_data = false; if ( absint( $conversion_id ) > 0 && ! empty( $data ) ) { $id = $conversion_id; $updated = $wpdb->update( self::$table_conversion_data, $data, array( 'id' => $id, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function updateLocaleFields(&$group) {\n\t\t$this->updateDataObjectSettings('group_settings', $group, array(\n\t\t\t'group_id' => $group->getId()\n\t\t));\n\t}", "public function testUpdateRuleGroup()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }", "public fun...
[ "0.5567111", "0.5210176", "0.50419265", "0.50071144", "0.49283427", "0.49266818", "0.49187356", "0.48852304", "0.48681566", "0.48593745", "0.4774165", "0.46699855", "0.46640554", "0.46598205", "0.4658053", "0.46376052", "0.4626412", "0.45963508", "0.4594862", "0.45842382", "0...
0.0
-1
Delete conversion group for list table.
public static function delete_conversion( $conversion_id ) { global $wpdb; $return_data = false; if ( isset( $conversion_id ) && ! empty( $conversion_id ) ) { $id = $conversion_id; $deleted = $wpdb->delete( self::$table_conversion_data, array( 'id' => $id, ) ); if ( fa...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function delete() {\n\t\t$sql = \"DELETE FROM umgroup\n\t\t\t\tWHERE GpID=?\";\n\t\t\n\t\t \n\t\t$this->ums->query($sql, array($this->GpID));\n\n\t}", "public function deleteTemplateGroup()\n\t{\n\t\tforeach( \\IPS\\cms\\Templates::$databaseDefaults as $field => $template )\n\t\t{\n\t\t\t\\IPS\\Db::i()->update( ...
[ "0.589493", "0.58875066", "0.58782786", "0.58577996", "0.58539796", "0.58400244", "0.5830755", "0.58146906", "0.57856", "0.5746383", "0.5709993", "0.5584709", "0.5554169", "0.55437773", "0.55437493", "0.55216944", "0.551611", "0.54693556", "0.54619956", "0.5454796", "0.541243...
0.0
-1
Get client IP address.
public static function get_client_ip() { return IBX_WPFomo_Helper::get_client_ip(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function get_client_ip()\r\n\t{\r\n\t\treturn $_SERVER['HTTP_CLIENT_IP'];\r\n\t}", "public function getIpClient() {\r\n if (!empty($_SERVER['HTTP_CLIENT_IP'])) {\r\n $ip = $_SERVER['HTTP_CLIENT_IP'];\r\n }\r\n elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {\r\n ...
[ "0.8571236", "0.8493415", "0.8443998", "0.8423234", "0.8409408", "0.8349934", "0.83151245", "0.83077615", "0.82909614", "0.824256", "0.8226428", "0.8221257", "0.82134783", "0.82002693", "0.81766695", "0.8176429", "0.8175878", "0.81451994", "0.81253725", "0.81174713", "0.80751...
0.8412161
4
Get client location from IP address.
public static function get_location_from_ip( $ip_address ) { return IBX_WPFomo_Helper::get_location_from_ip( $ip_address ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public function getIpLocation($ip);", "public static function get_client_ip() {\n\t\t\treturn IBX_WPFomo_Helper::get_client_ip();\n\t\t}", "public static function get_client_ip()\r\n\t{\r\n\t\treturn $_SERVER['HTTP_CLIENT_IP'];\r\n\t}", "function get_client_ip() {\n $ipaddress = '';\n\t\t\n\t...
[ "0.74736196", "0.7206504", "0.7156554", "0.7141598", "0.7113342", "0.7109655", "0.71082044", "0.7076533", "0.706735", "0.7040557", "0.7021562", "0.70210785", "0.7013181", "0.70105505", "0.70071965", "0.7004109", "0.6992635", "0.6990695", "0.69897944", "0.69889617", "0.6969811...
0.69266325
27
Return an array of required properties
public function getRequiredProperties() { return array( 'VPSProtocol', 'TxType', 'Vendor', 'VendorTxCode', 'Currency', 'NotificationURL', ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getRequiredProperties();", "protected function required(): array\n {\n return $this->required;\n }", "protected function required(): array\n {\n return [\n 'id',\n 'email',\n 'role',\n 'scopes',\n 'status',\n ...
[ "0.8835818", "0.7736289", "0.73310137", "0.7303255", "0.7276516", "0.7276516", "0.7213681", "0.71796113", "0.71503264", "0.7142943", "0.7136425", "0.71146566", "0.7035806", "0.7009279", "0.69762456", "0.69655895", "0.69222385", "0.68581134", "0.68581134", "0.68581134", "0.685...
0.75386834
2
Returns an associative array of properties Keys are in the correct Sagepay naming format Any values which could contain accented characters are converted from UTF8 to ISO88591 Empty keys are removed
public function toArray() { return array_filter(array( 'VPSProtocol' => $this->vpsProtocol, 'TxType' => $this->txType, 'Vendor' => $this->vendor, 'VendorTxCode' => $this->vendorTxCode, 'Currency' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function clean_properties(){\n global $database;\n\n $clean_properties = array();\n\n foreach ($this->properties() as $key => $value) {\n\n // the value is being escaped in cases of sql injections and etc.it is also being paired with the key \n $clean_properties...
[ "0.65443206", "0.6349035", "0.62003565", "0.60949284", "0.60949284", "0.5660701", "0.56556267", "0.5545687", "0.5545687", "0.5486726", "0.54776955", "0.54694986", "0.53971815", "0.5377428", "0.53323364", "0.53098935", "0.5300658", "0.52952003", "0.52595425", "0.5242723", "0.5...
0.0
-1
get the name of the event this class is subscribing to
abstract public function getEventName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getEventName()\n\t{\n\t\treturn is_null($this->event_name) ? get_class($this) : $this->event_name;\n\t}", "public function getName()\n {\n return \"event\";\n }", "protected function getName()\n\t{\n\t\treturn 'event';\n\t}", "public function getCustomEventName();", "public ...
[ "0.8079817", "0.8019447", "0.79874676", "0.7976003", "0.79487056", "0.7873412", "0.78153133", "0.7747132", "0.7702565", "0.7697265", "0.76173055", "0.76173055", "0.74943954", "0.74914193", "0.7378498", "0.7164775", "0.7137165", "0.7087442", "0.7076652", "0.7026024", "0.701283...
0.69702524
22
return the format that is needed for Subscribe's register method
public function getEventNames(){ return array($this->getEventName() => array($this,'handle')); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getFormat() {}", "public function getFormat() {}", "public function getFormat() {}", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "public function getFormat();", "pub...
[ "0.64959294", "0.64959294", "0.64959294", "0.6193194", "0.6193194", "0.6193194", "0.6193194", "0.6193194", "0.6193194", "0.6076418", "0.60698557", "0.60277885", "0.6026277", "0.58237624", "0.5771181", "0.5769537", "0.5753059", "0.57388896", "0.57095337", "0.57095337", "0.5678...
0.0
-1