query
stringlengths 7
5.25k
| document
stringlengths 15
1.06M
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
Checks whether requested template exists. | function TemplateExists($tpl_file)
{
return $this->_smarty->template_exists($tpl_file);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function templateExists($template);",
"public function templateExists(string $template_name);",
"public function templateExists(): bool\n {\n return isset($this->templatePath);\n }",
"abstract public function templateExists($name);",
"public function exists()\n {\n try {\n ($this->engine->getResolveTemplatePath())($this->name);\n return true;\n } catch (TemplateNotFound $e) {\n return false;\n }\n }",
"function template_exists($template)\n {\n return (bool)$this->get_template_path($template);\n }",
"public function hasTemplate() {}",
"public function templateFileExists() {\r\n\t\treturn isset($this->strTemplateFile);\r\n\t}",
"public function templateExists(string $templateFile = null): bool;",
"function tidyt_template_exists($template){\n if(!file_exists($template))\n return false;\n\n return true;\n}",
"public function templateExists($template)\n {\n return $this->sm->templateExists($template);\n }",
"public function hasTemplate() {\n return $this->intendedTemplate() == $this->template();\n }",
"public function templateExists($name)\n {\n return $this->engine->templateExists($name);\n }",
"public function templateExists($name)\n {\n return $this->engine->templateExists($name);\n }",
"public function TemplateExists($template_name)\n {\n return file_exists($this->tpl->dir . \"/\" . $this->patch . $template_name . \".tpl\");\n }",
"public function exists()\n {\n try {\n $result = $this->soapClient->templateExists(['filename' => $this->getName() ]);\n\n return ( bool ) $result->TemplateExistsResult;\n } catch ( SoapException $ex ) {\n throw new StatusException('Error while verifying the existence of a remote template' , $ex);\n }\n }",
"public static function exists(string $template) : bool\n {\n return file_exists(self::templatePath($template));\n }",
"function templateTypeExists($templateType) {\n\t\t\t\t\t$templateType = preg_replace('/^_[A-Z0-9\\/]+/i','',$templateType);\n\t\t\t\t\tif (!empty($templateType)) {\n\t\t\t\t\t\t$paths = \\Bonita\\Main::getPaths();\n\t\t\t\t\t\tforeach($paths as $basepath) {\n\t\t\t\t\t\t\t$path = $basepath . '/templates/'.$templateType.'/';\n\t\t\t\t\t\t\tif (file_exists($path)) return true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\treturn false;\n\t\t\t\t}",
"public function hasTemplate($aliasOrTemplatePath);",
"public function testTemplateFileExists1()\n {\n $tpl = $this->smarty->createTemplate('helloworld.tpl');\n $this->assertTrue($tpl->source->exists);\n }",
"public function hasTemplatePath()\r\n\t{\r\n\t\treturn !empty($this->templatePath);\r\n\t}",
"public function HasTemplate() {\r\n return true;\r\n }",
"function has_page_template($page_template, $pageid=null)\n{\n\t$template = get_template_of_page($pageid);\n\tif($template == $page_template)\n\t{\n\t\treturn TRUE;\n\t}\n\treturn FALSE;\n}",
"public function testExists()\n {\n $parser = $this->createMock('Symfony\\Component\\Templating\\TemplateNameParserInterface');\n $locator = $this->createMock('Symfony\\Component\\Config\\FileLocatorInterface');\n $locator\n ->expects($this->once())\n ->method('locate')\n ->will($this->returnValue($template = __DIR__.'/../../Resources/views/layout.twig'))\n ;\n $loader = new FilesystemLoader($locator, $parser);\n return $this->assertTrue($loader->exists($template));\n }",
"public function exists($templateName)\n {\n $file = $this->getTemplateFile($templateName);\n return file_exists($file);\n }",
"public function exists($template)\n {\n return $this->plates->exists($template);\n }",
"public function exists(string $template = \"\"): bool\n {\n if (!$template) {\n if (!$this->template) {\n throw new RuntimeException(\"No template specified\");\n }\n\n $template = $this->template;\n }\n\n $exists = $this->resolve($template);\n\n return $exists !== false;\n }",
"public function templateFileExists($templateFile) {\r\n\t\treturn is_file($templateFile) && is_readable($templateFile);\r\n\t}",
"public function testTemplateFileNotExists1()\n {\n $tpl = $this->smarty->createTemplate('notthere.tpl');\n $this->assertFalse($tpl->source->exists);\n }",
"function checkTemplatePage()\t{\n\t\t\n\t\t// Get the record\n\t\t$template = t3lib_BEfunc::getRecord('pages', $this->templateUid);\n\n\t\tif($template['doktype'] != '71') {\n\t\t\treturn false;\t\n\t\t}\n\t\t\n\t\treturn true;\n\t}",
"function cs_subtemplate_exists($mod, $action)\r\n{\r\n global $cs_main;\r\n\r\n $cs_main['def_theme'] = empty($cs_main['def_theme']) ? 'base' : $cs_main['def_theme'];\r\n\r\n $target = 'themes/' . $cs_main['def_theme'] . '/' . $mod . '/' . $action . '.tpl';\r\n if ($cs_main['def_theme'] != 'base' and !file_exists($target))\r\n {\r\n $target = 'themes/base/' . $mod . '/' . $action . '.tpl';\r\n }\r\n if (!file_exists($target))\r\n {\r\n return false;\r\n }\r\n return true;\r\n}",
"private function _view_file_exists()\n {\n $route = Rails::application()->dispatcher()->router()->route();\n # Build a simple path for the view file, as there's no support for\n # stuff like modules.\n # Note that the extension is PHP, there's no support for different\n # request formats.\n $base_path = Rails::config('views_path');\n $view_path = $base_path . '/' . $route->path() . '.php';\n return is_file($view_path);\n }",
"public function checkViewExists($view);",
"public function verifyTemplate($view_name)\n {\n if (!file_exists('view/' . $view_name . '.tpl.php')) {\n echo \"No such controller\";\n exit;\n }\n }",
"function checkTemplate($cacheRowFile){\n if(inDeveloperMode() || !empty($_SESSION['developerMode'])){\n return false;\n }\n return file_exists($cacheRowFile);\n }",
"public function testExists()\n {\n $parser = $this->getMock('Symfony\\Component\\Templating\\TemplateNameParserInterface');\n $locator = $this->getMock('Symfony\\Component\\Config\\FileLocatorInterface');\n $locator\n ->expects($this->once())\n ->method('locate')\n ->will($this->returnValue($template = __DIR__.'/../DependencyInjection/Fixtures/Resources/views/layout.html.hbs'))\n ;\n $loader = new FilesystemLoader($locator, $parser);\n\n $this->assertTrue($loader->exists($template));\n }",
"public function _stpl_exists($stpl_name = '', $force_storage = '')\n {\n // Exists in cache\n if ( ! $force_storage && isset($this->driver->CACHE[$stpl_name])) {\n return true;\n }\n return (bool) $this->_get_template_file($stpl_name, $force_storage, 1);\n }",
"static function exist($view, $context = NULL)\n {\n $file = static::find($view, $context);\n return $file ? file_exists($file) : FALSE;\n }",
"public function cachedRenderExists($template, array $options = array()) {\n\n\t\t$options = array(\n\t\t\t'partial' => true,\n\t\t\t'cache' => true,\n\t\t\t'cacheHandler' => $this->getCache()->getHandler(),\n\t\t\t'cachePrefix' => 'Juvasoft'\n\t\t) + $options;\n\t\treturn parent::cachedRenderExists($template, $options);\n\t}",
"public static function is_template($tpl) {\n\t\treturn (self::get_template($tpl)!==NULL);\n\t}",
"function view_exists($view, $viewtype = 'default') {\n global $CONFIG;\n\n if (isset($CONFIG->views->locations[$viewtype][$view]))\n return true;\n\n $result = view($view, $viewtype);\n if ($result)\n return true;\n\n return false;\n}",
"function st_get_template($file,$data = array()){\r $file = ST_DIR.'/templates/'.$file;\r if(file_exists($file)){\r include($file); return true;\r }\r return false;\r}",
"function variableExists ($variableName) {\n if (!$this->templateValid) {$this->triggerError (\"Template not valid.\"); return false; }\n return $this->lookupVariableName($variableName,$varNo); }",
"function exists()\n {\n return false;\n }",
"public function loadTemplate(){\n if($this->hasErrors()) return false;\n $template = $this->findTemplate();\n $this->updateBuffer();\n do_action($this->prefix('before_include_template'), $this);\n include($template);\n do_action($this->prefix('after_include_template'), $this);\n $this->updateBuffer();\n\n return self::$buffer === false ? $this->hasErrors() == false && $template !== false : $this->updateBuffer();\n }",
"protected function isTemplate($template)\n {\n return (boolean) preg_match('/^template\\:/i', $template);\n }",
"public function resolve_template() {\n\n\t\t/**\n\t\t * Returns the available template paths for column settings\n\t\t *\n\t\t * @param array $paths Template paths\n\t\t * @param string $template Current template path\n\t\t */\n\t\t$paths = apply_filters( 'ac/view/templates', [ AC()->get_dir() . 'templates' ], $this->template );\n\n\t\tforeach ( $paths as $path ) {\n\t\t\t$file = $path . '/' . $this->template . '.php';\n\n\t\t\tif ( is_readable( $file ) ) {\n\t\t\t\tinclude $file;\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public function isTemplateInProfile ($template) {\n foreach ($this->profileTemplates as $val){\n if ($val['module_name'] == $template){\n return true;\n }\n }\n return false; \n }",
"public function exists(string $name): bool\n {\n return $this->blade->exists($name);\n }",
"private static function viewCheckFileExists(): void\n {\n /**\n * The template file is required, so, if it doesn't exist, an exception is thrown.\n */\n if (self::$viewTemplateFile->fileNotExists()) {\n throw new Exception(self::TEMPLATE_FILE_NOT_FOUND[1], self::TEMPLATE_FILE_NOT_FOUND[0], [self::$viewTemplateFile->get()]);\n }\n\n /**\n * The view file isn't required if the 'viewPath' parameter wasn't defined in the route\n * configuration. In this case, if the file doesn't exist in the view directory, the\n * $viewPath property will be set as null. However, if there is a 'viewPath' parameter\n * defined, then an exception will be thrown if the file doesn't exist.\n */\n if (self::$viewPath->fileNotExists()) {\n if (empty(self::$routeController->getViewPath())) {\n self::$viewPath->set(null);\n } else {\n throw new Exception(self::VIEW_FILE_NOT_FOUND[1], self::VIEW_FILE_NOT_FOUND[0], [self::$viewPath->get()]);\n }\n }\n }",
"function check_exists()\n\t{\n\t\t$name = url_title($this->input->post('name'));\n\n\t\t$exists = $this->content_type_model->check_exists(\n\t\t\t'name',\n\t\t\t$name,\n\t\t\t$this->input->post('id_content_type')\n\t\t);\n\n\t\t$this->xhr_output($exists);\n\t}",
"protected function exists() {}",
"function viewExists ($view_name) {\n\t\treturn isset ($this->_views[$view_name]);\n\t}",
"public function loadTemplate() {\n if ( current_filter() !== 'template_redirect' ) {\n return FALSE;\n }\n if ( $this->preLoad() ) {\n return $this->loadFile( $this->getTemplate(), TRUE );\n }\n\n return FALSE;\n }",
"public function alreadyExists($name) {\r\n if ($this->classKey == 'modTemplate') {\r\n $c = array('templatename' => $name);\r\n } else {\r\n $c = array('name' => $name);\r\n }\r\n return $this->modx->getCount($this->classKey,$c) > 0;\r\n }",
"public function exists()\n {\n return file_exists($this->path('layout.php'));\n }",
"function read_template_file (){\n\n\t// Generate an error if the template file does not exist and return 'false'.\n if (! file_exists($this->template_file)) {\n print 'Template file does not exist: ['.$this->template_file.']';\n\t return false;\n }\n\t// We use templates and the template file exists\n\t// Capture the template, this way we can use php code inside templates\n\t\n\t$this->start_capture (); // Start capture to buffer\n\trequire $this->template_file; // Includes the template, this way php code can be used in templates\n\t$this->stop_capture ('template_html');\n\treturn true;\n }",
"public function Exists();",
"public function exists()\n {\n return false;\n }",
"public function testThrowsExceptionWhenNoTemplateIsFound()\n {\n $this->setExpectedException(\n 'Asar\\Template\\Exception\\TemplateFileNotFound',\n \"No template file found in '/foo/Namespace/Representation/' for resource 'FooResource' with method 'PUT' and type 'json'.\"\n );\n $this->commonFindingTemplate(array(\n 'resourceName' => $this->resourceName,\n 'options' => array('type' => 'json', 'method' => 'PUT', 'status' => 200),\n 'foundFiles' => array()\n ));\n }",
"public function offsetExists($offset)\n\t{\n\t\t$layoutTemplate = $this->getLayoutTemplate();\n\t\treturn isset($layoutTemplate[$offset]);\n\t}",
"public static function hasTemplate( $app, $key )\n\t{\n\t\tif( \\IPS\\IN_DEV )\n\t\t{\n\t\t\tforeach ( array( 'phtml', 'txt' ) as $type )\n\t\t\t{\n\t\t\t\tif( file_exists( \\IPS\\ROOT_PATH . \"/applications/{$app}/dev/email/{$key}.{$type}\" ) )\n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* See if we found anything from the store */\n\t\t\t$key = md5( $app . ';' . $key ) . '_email_html';\n\t\t\t$htmlTemplate\t= ( isset( \\IPS\\Data\\Store::i()->$key ) ) ? \\IPS\\Data\\Store::i()->$key : NULL;\n\n\t\t\tif( $htmlTemplate )\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\n\t\t\t$key = md5( $app . ';' . $key ) . '_email_plaintext';\n\t\t\t$plaintextTemplate\t= ( isset( \\IPS\\Data\\Store::i()->$key ) ) ? \\IPS\\Data\\Store::i()->$key : NULL;\n\n\t\t\tif( $plaintextTemplate )\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\n\t\t\treturn FALSE;\n\t\t}\n\t}",
"function in_vars($name){ // check the template variable\n\treturn array_key_exists($name, $this->vars);\n}",
"function skcw_check_directory($template) {\n\tif (is_dir($template) && is_readable($template)) {\n\t\treturn true;\n\t}\n\treturn false;\n}",
"public function exists() {\n\t\ttry {\n\t\t\t$this->load();\n\t\t\treturn true;\n\t\t} catch ( \\Exception $e ) {\n\t\t\treturn false;\n\t\t}\n\t}",
"function blockExists ($blockName) {\n if (!$this->templateValid) {$this->triggerError (\"Template not valid.\"); return false; }\n return $this->lookupBlockName($blockName,$blockNo); }",
"private function viewFileExists($viewPath)\n {\n return $this->file->exists($viewPath);\n }",
"public function resourceExists(): bool\n {\n $location = $this->route()->parameter('location');\n\n return $location instanceof Location && $location->exists;\n }",
"public function exists() {}",
"private function hasView($page) {\r\n return file_exists($this->getView($page));\r\n }",
"public function exists()\n {\n return true;\n }",
"protected function getTemplate($name)\n {\n $format = '%s/%s.tpl';\n\n if (file_exists($template = sprintf($format, WORKSPACE . '/template', $name))) {\n return $template;\n } elseif (file_exists($template = sprintf($format, TEMPLATE, $name))) {\n return $template;\n } else {\n return false;\n }\n }",
"public function has_email_template( $recipient = 'customer' ) {\n\t\treturn ( isset( $this->rule_data[ 'email_template_' . $recipient ] ) && ! empty( $this->rule_data[ 'email_template_' . $recipient ] ) ) ? true : false;\n\t}",
"function LoadTemplate( $name )\n{\n if ( file_exists(\"$name.html\") ) return file_get_contents(\"$name.html\");\n if ( file_exists(\"templates/$name.html\") ) return file_get_contents(\"templates/$name.html\");\n if ( file_exists(\"../templates/$name.html\") ) return file_get_contents(\"../templates/$name.html\");\n}",
"public function isExists(){\n\t\treturn file_exists($this->getFullName());\n\t}",
"public function isExists()\n\t{\n\t\treturn $this->storage->isExists() && $this->dictionary->isExists();\n\t}",
"private function is_template_supported( $template ) {\n\t\t// If the --include argument is present in the WP-CLI command, this template conditional must be present in it.\n\t\tif ( ! empty( $this->include_conditionals ) ) {\n\t\t\treturn in_array( $template, $this->include_conditionals, true );\n\t\t}\n\t\tif ( $this->force_crawl_urls ) {\n\t\t\treturn true;\n\t\t}\n\n\t\t$supportable_templates = AMP_Theme_Support::get_supportable_templates();\n\n\t\t// Check whether this taxonomy's template is supported, including in the 'AMP Settings' > 'Supported Templates' UI.\n\t\treturn ! empty( $supportable_templates[ $template ]['supported'] );\n\t}",
"public function loadTemplate(){\n\t\t$tpl = $this->template;\n\t\t$file = $this->path . DIRECTORY_SEPARATOR . $tpl . '.tmpl.php';\n\t\t$exists = file_exists($file);\n\t\t// Wenn Template vorhanden\n\t\tif( $exists ){\n\n\t\t\tob_start();\n\t\t\tinclude $file;\n\t\t\t$output = ob_get_contents();\n\t\t\tob_end_clean();\n\n\t\t\treturn $output;\n\t\t}else{\n\t\t\treturn 'Datei nicht gefunden!';\n\t\t}\n\t}",
"private function viewFileExists($viewPath)\n {\n return $this->file->exists($viewPath);\n }",
"public function exists()\r\n {\r\n }",
"function Engine_GetNonexistingTemplate($test) {\n\t\ttry {\n\t\t\t$tpl = $this->templum->template(\"GetNonexistingTemplate\");\n\t\t\t$test->failed('TemplumException not raised');\n\t\t} catch (TemplumError $e) {\n\t\t\t$test->passed();\n\t\t}\n\t}",
"public function exists()\n {\n }",
"public function exists()\n {\n }",
"public function findTemplate(){\n if($this->hasErrors()) return false;\n $located = false;\n if(!$this->hasErrors()){\n $module_file = trailingslashit($this->location).$this->type.'.php';\n $file = trailingslashit($this->module).trailingslashit($this->location).$this->type.'.php';\n switch(true){\n //Check Stylesheet directory first (Child Theme)\n case file_exists(trailingslashit(get_stylesheet_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file):\n $located = trailingslashit(get_stylesheet_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file;\n break;\n //Check Template directory Second (Parent Theme)\n case file_exists(trailingslashit(get_template_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file):\n $located = trailingslashit(get_template_directory()).trailingslashit(self::TEMPLATE_DIRECTORY).$file;\n break;\n //Check filtered custom template directory, if it's set.\n case (apply_filters($this->prefix('custom_template_directory_root'), '', $this) !== '' && file_exists(trailingslashit(apply_filters($this->prefix('custom_template_directory_root'), '', $this)).$file)):\n $located = trailingslashit($this->prefix('custom_template_directory_root')).$file;\n break;\n //If nothing else exists, go ahead and get the default\n default:\n $file = trailingslashit(ModuleLoader::getModuleDir($this->module)).$module_file;\n if($this->fileExists($file)) $located = $file;\n break;\n }\n }\n\n return $located;\n }",
"public function filterSearchformTemplate(): bool\n {\n $path = $this->getTemplatePath();\n\n locate_template([\"{$path}/searchform.php\", 'searchform.php'], true, false);\n\n return false;\n }",
"public function findTemplate($template_name) {\n $test_path = $this->wp_theme_root . 'templates/' . $template_name;\n if ( file_exists( $test_path ) ) {\n return $test_path;\n } else {\n $test_path = $this->path. 'templates/' . $template_name;\n if ( file_exists($test_path) ) {\n return $test_path;\n } else {\n throw new Exception( __('Core Template was not found: ') . ' ' . $template_name );\n }\n }\n }",
"public function findTemplate($template_name) {\n $test_path = $this->wp_theme_root . 'templates/' . $template_name;\n if ( file_exists( $test_path ) ) {\n return $test_path;\n } else {\n $test_path = $this->path. 'templates/' . $template_name;\n if ( file_exists($test_path) ) {\n return $test_path;\n } else {\n throw new Exception( __('Core Template was not found: ') . ' ' . $template_name );\n }\n }\n }",
"public function exists();",
"public function exists();",
"public function exists();",
"public function hasLinkTemplate($key);",
"public function exists()\n {\n $this->exists = false;\n\n if (is_array($this->temp_files)\n && count($this->temp_files) > 0\n ) {\n $this->exists = true;\n }\n\n return;\n }",
"public function exists()\n {\n if (get_post($this->id)) {\n return true;\n }\n\n return false;\n }",
"function dokan_get_template( $template_name, $args = array() ) {\n\n if ( file_exists( $template_name ) ) {\n extract( $args );\n\n include_once $template_name;\n }\n}",
"public function exists()\n\t{\n\t\treturn $this->get('fullPath') && file_exists($this->get('fullPath'));\n\t}",
"private function checkForView($name)\n {\n $viewFile = $this->config['views'] . '/' . $name . '.blade.php';\n if (!file_exists($viewFile)) {\n return false;\n }\n\n return true;\n }",
"protected function responseExists($name)\n {\n return file_exists(__DIR__ . '/_files/' . $name . '.response');\n }",
"private function check_exists()\n\t{\n\t\t// so this is sufficient to test for existence in accordance with\n\t\t// File::check_exists()\n\t\t// However, getFileInfo() is slow, since it involves a DB query,\n\t\t// so we'll cache the result in $this->exists and test that first...\n\t\tif ( $this->exists )\n\t\t\treturn true;\n\t\telse $this->getFileInfo();\n\t}",
"public function exists(): bool;",
"public function exists(): bool;"
] | [
"0.8582258",
"0.84927875",
"0.8253781",
"0.81498533",
"0.8123222",
"0.80842274",
"0.797904",
"0.79064876",
"0.7776526",
"0.7705633",
"0.76290977",
"0.7478985",
"0.7476798",
"0.7476798",
"0.7458653",
"0.7454222",
"0.7435063",
"0.7402916",
"0.7323297",
"0.72313386",
"0.7223117",
"0.7184379",
"0.7100133",
"0.700831",
"0.6968044",
"0.6924044",
"0.6885375",
"0.68601084",
"0.6754775",
"0.6617599",
"0.6552725",
"0.65258956",
"0.6500229",
"0.6498213",
"0.64739764",
"0.64439297",
"0.6399114",
"0.6392747",
"0.63790655",
"0.6321533",
"0.63204354",
"0.62839067",
"0.6235067",
"0.62277234",
"0.6221452",
"0.6198443",
"0.61978275",
"0.61883616",
"0.6166273",
"0.6133347",
"0.60947055",
"0.6092888",
"0.60379034",
"0.60112053",
"0.6008679",
"0.6000515",
"0.5975936",
"0.5967304",
"0.59321636",
"0.5904726",
"0.59024495",
"0.59021765",
"0.5900155",
"0.5898329",
"0.58835953",
"0.5883303",
"0.587759",
"0.58700824",
"0.5860652",
"0.5860283",
"0.58000934",
"0.5791167",
"0.57756937",
"0.5762378",
"0.5750121",
"0.57459366",
"0.57455367",
"0.57432497",
"0.5733621",
"0.57310396",
"0.57203907",
"0.5719197",
"0.57191396",
"0.57129365",
"0.56915975",
"0.56724805",
"0.56724805",
"0.56704086",
"0.56704086",
"0.56704086",
"0.5656824",
"0.5656551",
"0.56550384",
"0.5654041",
"0.56523997",
"0.56434584",
"0.5622419",
"0.56216925",
"0.5621455",
"0.5621455"
] | 0.75926805 | 11 |
Returns an array containing template variables | function &GetTemplateVars($name=null)
{
return $this->_smarty->get_template_vars($name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTemplateVariables(): array;",
"function getTemplateVars() {\n return array();\n }",
"public function getTemplateVariables()\n\t{\n\t\treturn array_merge($this->template_variables, [\n\t\t\t'options' => $this->getOptions(),\n\t\t\t'column' => $this->getColumn(),\n\t\t\t'key' => $this->getKey(),\n\t\t\t'status' => $this\n\t\t]);\n\t}",
"public function getVars()\r\n {\r\n return $this->_smarty->getTemplateVars();\r\n }",
"public function getTemplateVars(){\n\t\t\treturn $this->template_vars;\n\t\t}",
"public function getTemplateVars(){\n\n return $this->template_vars;\n\n }",
"public function getVariables()\n {\n \treturn isset($this->all['variables']) ? $this->all['variables'] : array();\n }",
"function getTemplateVariableContainer() ;",
"public function getTemplateVariables()\n {\n return self::$templateVariables;\n }",
"public function getVariables($template)\n {\n $pattern = '/<%text_[^%>]*%>/';\n\n //return array of placeholder within the message\n preg_match_all($pattern, $template, $matches);\n //matches contain array of array so to get first array\n $matches = $matches[0];\n //array containing key value pair array\n $messageVars = array();\n\n foreach ($matches as $match) {\n //extract key name from template\n $key = preg_replace(array('/<%/', '/%>/'), ' ', $match);\n $value = explode(\"_\", $key);\n //create variable name from key\n $data = '';\n for ($i = 1; $i < count($value); $i++) {\n $data .= ucfirst($value[$i]) . ' ';\n }\n $messageVars[trim($key)] = trim($data);\n }\n return $messageVars;\n }",
"public static function variables(): array\n {\n return [\n Variable::make('sorts', __('Array of available sorting')),\n\n Variable::make('directions', __('Array of sort directions')),\n\n Variable::make('items', __('HTML generated of blog items')),\n\n Variable::make('pagination', __('HTML generated of pagination links')),\n ];\n }",
"public static function variables(): array\n {\n return [\n Variable::make('id', __('Article Id')),\n\n Variable::make('name', __('Article Name')),\n\n Variable::make('summary', __('Article Summary')),\n\n Variable::make('url', __('Article URL')),\n\n Variable::make('hits', __('Article Hits')),\n\n Variable::make('creation_date', __('Article Creation Date')),\n\n Variable::make('last_update', __('Article Update Date')),\n\n Variable::make('author', __('Article Author')),\n\n Variable::make('image.templateName', __(\n 'Image with the required template (example: image.common-main)'\n )),\n ];\n }",
"public function getTemplateVariableContainer() {}",
"public function provideVariables()\n {\n return [\n 'first test' => [\n 'variables' => [\n 'var1' => 'val1',\n 'var2' => 'val2',\n 'var3' => 'val3',\n ],\n ]\n ];\n }",
"function getTemplateVars() {\n return $this->templateVars;\n }",
"public function variables(): array;",
"public function variables(): array;",
"public function templateData() {\n return array();\n }",
"public function getVars() {\n return array();\n }",
"protected function get_variables_for_view()\n\t{\n\t\t$ary = array();\n\t\tforeach (get_object_vars ($this->set) as $k => $v)\n\t\t\t$ary[$k] = $v;\n\t\treturn $ary;\n\t}",
"public function getTemplateVars()\n {\n $cart = $this->context->cart;\n $total = $this->trans(\n '%amount% (tax incl.)',\n [\n '%amount%' => Tools::displayPrice($cart->getOrderTotal(true, Cart::BOTH)),\n ]\n );\n\n return [\n 'totalAmount' => $total,\n ];\n }",
"public function getVariables ()\n {\n /**\n * Specification:\n * - itemkey used to identify variable in your other functions\n * - type text, textarea, yesno, password, hidden (type hidden are variables used by CE and are required)\n * - description description of the variable, displayed in ClientExec\n * - encryptable used to indicate the variable's value must be encrypted in the database\n */\n $variables = array(\n lang('Name') => array(\n 'type' => 'hidden',\n 'description' => lang('Used by ClientExec to display plugin. It must match the action function name(s).'),\n 'value' => 'InterWorx-CP'\n ),\n lang('Description') => array (\n 'type' => 'hidden',\n 'description' => lang('Description viewable by admin in server settings'),\n 'value' => lang('InterWorx-CP integration.')\n ),\n lang('Access Key') => array (\n 'type' => 'textarea',\n 'description' => lang('Access key used to authenticate to server.'),\n 'value' => '',\n 'encryptable' => true\n ),\n lang('Actions') => array (\n 'type' => 'hidden',\n 'description' => lang('Actions currently available for this plugin.'),\n 'value' => 'Create,Delete,Suspend,UnSuspend'\n )\n );\n\n return $variables;\n }",
"public function getVariablesList() {\n return $this->_get(2);\n }",
"public function getVars() : array {\n\n\t\t\treturn $this->variables;\n\t\t}",
"public function getVariablesList() {\n return $this->_get(4);\n }",
"function count_variables($template)\n {\n $varriablesArr= [];\n $removeSymbols=[\"%\" => \"\"];\n foreach ($template as $val) {\n $split_val = explode(\" \", $val); // spliting our string to words\n foreach ($split_val as $str) {\n if (preg_match('/%\\D{1,255}%/', $str)) { // check if word is template variable\n array_push($varriablesArr, strtr(substr(trim($str), 0, -1), $removeSymbols)); // to get clear variable name;\n };\n }\n }\n return $varriablesArr;\n }",
"public function getVariables()\n {\n $variables = $this->getVariablesForPart($this->tempDocumentMainPart);\n\n foreach ($this->tempDocumentHeaders as $headerXML) {\n $variables = array_merge($variables, $this->getVariablesForPart($headerXML));\n }\n\n foreach ($this->tempDocumentFooters as $footerXML) {\n $variables = array_merge($variables, $this->getVariablesForPart($footerXML));\n }\n\n return array_unique($variables);\n }",
"public function getGetVariables();",
"public function getVariables()\n {\n return $this->variables;\n }",
"public function getVariables()\n {\n return $this->variables;\n }",
"public function getVariables()\n {\n return $this->variables;\n }",
"private function getTemplateArgs(): array\n {\n $starting_view = preg_replace('/([^\\w \\-\\@\\.\\,])+/', '', $_POST['starting_view']);\n $envelope_id= isset($_SESSION['envelope_id']) ? $_SESSION['envelope_id'] : false;\n $args = [\n 'envelope_id' => $envelope_id,\n 'account_id' => $_SESSION['ds_account_id'],\n 'base_path' => $_SESSION['ds_base_path'],\n 'ds_access_token' => $_SESSION['ds_access_token'],\n 'starting_view' => $starting_view,\n 'ds_return_url' => $GLOBALS['app_url'] . 'index.php?page=ds_return'\n ];\n\n return $args;\n }",
"public function get_email_template_variables()\n\t{\n\t\t$user_data = $this->user_loader->get_user($this->get_data('from_user_id'));\n\n\t\treturn array(\n\t\t\t'AUTHOR_NAME'\t\t\t\t=> htmlspecialchars_decode($user_data['username']),\n\t\t\t'SUBJECT'\t\t\t\t\t=> htmlspecialchars_decode(censor_text($this->get_data('message_subject'))),\n\n\t\t\t'U_VIEW_MESSAGE'\t\t\t=> generate_board_url() . '/ucp.' . $this->php_ext . \"?i=pm&mode=view&p={$this->item_id}\",\n\t\t);\n\t}",
"function templates()\n {\n return [];\n }",
"public function getVariables() {\n\t\treturn $this->variables;\n\t}",
"function get_template_variables($type)\r\n {\r\n $rv = array();\r\n $CI = &get_instance();\r\n $CI->load->model('mail_model');\r\n $rv = $CI->mail_model->get_template_variables($type);\r\n return $rv;\r\n }",
"private function getTemplateArgs(): array\n {\n $envelope_id= isset($_SESSION['envelope_id']) ? $_SESSION['envelope_id'] : false;\n $args = [\n 'account_id' => $_SESSION['ds_account_id'],\n 'base_path' => $_SESSION['ds_base_path'],\n 'ds_access_token' => $_SESSION['ds_access_token'],\n 'envelope_id' => $envelope_id\n ];\n\n return $args;\n }",
"public function getAll(): array\n {\n return $this->variables;\n }",
"public function getData(): array\n {\n return $this->variables;\n }",
"public function getVariables(): Mailcode_Variables_Collection_Regular;",
"public function GetVariables()\n {\n $variables = '';\n if(count($this->variables)) {\n $vlist = array();\n foreach($this->variables as $name => $value) {\n $var = $name;\n if(is_array($value)) {\n if(isset($value[0]) && isset($value[count($value)-1])) {\n $var .= '=[' . implode(',', $value) . ']';\n } else {\n $vs = array();\n foreach($value as $k => $v)\n if($k)\n $vs[] = \"$k:$v\";\n\n $var .= '={' . implode(',', $vs) . '}';\n }\n } elseif(!is_null($value)) {\n $var .= \"=$value\";\n }\n $vlist[] = $var;\n }\n $variables = \"var \" . implode(', ', $vlist) . \";\";\n }\n // comments can be stuck with the variables\n if(count($this->comments)) {\n foreach($this->comments as $c) {\n if(!is_string($c))\n $c = print_r($c, TRUE);\n $variables .= \"\\n// \" . str_replace(\"\\n\", \"\\n// \", $c);\n }\n }\n return $variables;\n }",
"public function getVars()\n {\n return [\n 'get' => $this->get,\n 'session' => $this->session,\n ];\n }",
"public function getGetVariables() {}",
"public static function get_template_global_variables()\n {\n return [\n 'TemplateConfig' => 'current_template_config',\n ];\n }",
"public function templateTags() : array\n {\n return [\n 'get_page_part' => [$this, 'getPagePart'],\n 'get_header' => [$this, 'getHeader'],\n 'get_footer' => [$this, 'getFooter'],\n 'get_sidebar' => [$this, 'getSidebar'],\n 'get_template_part' => [$this, 'getTemplatePart']\n ];\n }",
"public function getVars()\n {\n return $this->_variables;\n }",
"private function getTemplateArgs(): array\n {\n $envelope_id= isset($_SESSION['envelope_id']) ? $_SESSION['envelope_id'] : false;\n $envelope_documents = isset($_SESSION['envelope_documents']) ? $_SESSION['envelope_documents'] : false;\n $document_id = preg_replace('/([^\\w \\-\\@\\.\\,])+/', '', $_POST['document_id' ]);\n $args = [\n 'account_id' => $_SESSION['ds_account_id'],\n 'base_path' => $_SESSION['ds_base_path'],\n 'ds_access_token' => $_SESSION['ds_access_token'],\n 'envelope_id' => $envelope_id,\n 'document_id' => $document_id,\n 'envelope_documents' => $envelope_documents\n ];\n\n return $args;\n }",
"public function templateStrings(){\n \n foreach($this->rules as $field => $rules){\n $array[$field] = array(\n 'rules' => $this->renderRules($field),\n 'value' => $this->value($field) \n );\n }\n \n $array['form_token'] = $this->renderToken();\n \n return $array;\n }",
"public function getVars()\n\t{\n\t\treturn $this->vars;\n\t}",
"function getPackageVariables(): array\n {\n return $this->compiler->getPackageVariables();\n }",
"public function __getVars(){\r\n $vars = isset($this->vars)? $this->vars:array();\r\n return $vars;\r\n }",
"public function GetAll()\n {\n $result = [];\n foreach ($this->vars as $key => $section) {\n $result[ $key ] = $this->GetKeys($key);\n }\n return $result;\n }",
"public function getVars()\n {\n return $this->vars;\n }",
"protected function variables()\n {\n $this->variables['grid'] = $this;\n\n return $this->variables;\n }",
"public function getVars() {\n\t\treturn $this->vars;\n\t}",
"public function getVars() {\n\t\treturn $this->vars;\n\t}",
"public function getVars()\n {\n return $this->vars;\n }",
"public function getVars()\n {\n return $this->vars;\n }",
"public function vars()\n\t{\n\t\treturn $this->vars;\n\t}",
"function getVariableContainer() ;",
"function get_template_selectvalues(){\n\t\t$dir \t= $this->base_dir.'/templates/';\n\t\t$files = glob($dir.'*.less');\n\t\t$array \t= array();\n\t\tforeach ($files as $filename) {\n\t\t\t$file \t\t= basename($dir.$filename, \".less\");\n\t\t\t$array[$file] \t= array( 'name' => $file );\n\t\t}\n\t\treturn $array;\n\t}",
"private function _buildArray($variables)\n {\n $i = 0;\n $j = 0;\n foreach ($variables as $key => $section) {\n foreach ($section as $value) {\n // avoid first and last values, and tag elements\n if ($i == 0 || $i == count($variables[$key])\n || $value[0] == '<') {\n $i++;\n continue;\n } else {\n $variableParts = $this->cleanExplode(\"_\", $value);\n switch ($variableParts[0]) {\n case 'BLOCK':\n self::$templateVariables[$key][$j]['TAG'] = $variableParts[0];\n $variableGroup = $this->cleanExplode(self::$_templateGroupSymbol, $variableParts[1]);\n self::$templateVariables[$key][$j]['NAME'] =\n $variableGroup[0];\n if (!empty ($variableGroup[1])) {\n self::$templateVariables[$key][$j]['TYPE'] =\n $variableGroup[1];\n }\n break;\n\n case 'GROUP':\n self::$templateVariables[$key][$j]['TAG'] = $variableParts[0];\n $variableGroup = $this->cleanExplode(self::$_templateGroupSymbol, $variableParts[1]);\n self::$templateVariables[$key][$j]['NAME'] =\n $variableGroup[0];\n if (!empty ($variableGroup[1])) {\n self::$templateVariables[$key][$j]['GROUPID'] =\n $variableGroup[1];\n }\n if (!empty ($variableGroup[2])) {\n //The group is nested inside other group\n self::$templateVariables[$key][$j]['GROUP'] =\n $variableGroup[2];\n }\n break;\n\n case 'TAB':\n self::$templateVariables[$key][$j]['TAG'] = $variableParts[0];\n $variableGroup = $this->cleanExplode(self::$_templateGroupSymbol, $variableParts[1]);\n self::$templateVariables[$key][$j]['NAME'] =\n $variableGroup[0];\n if (!empty ($variableGroup[1])) {\n self::$templateVariables[$key][$j]['TYPE'] =\n $variableGroup[1];\n }\n break;\n\n case 'HEADING':\n self::$templateVariables[$key][$j]['TAG'] = $variableParts[0];\n $variableGroup = $this->cleanExplode(self::$_templateGroupSymbol, $variableParts[1]);\n self::$templateVariables[$key][$j]['NAME'] =\n $variableGroup[0];\n break;\n\n case 'COMMENT':\n self::$templateVariables[$key][$j]['TAG'] = $variableParts[0];\n $variableGroup = $this->cleanExplode(self::$_templateGroupSymbol, $variableParts[1]);\n self::$templateVariables[$key][$j]['NAME'] =\n $variableGroup[0];\n if (!empty ($variableGroup[1])) {\n self::$templateVariables[$key][$j]['GROUP'] =\n $variableGroup[1];\n } elseif (!empty ($variableParts[2])) {\n self::$templateVariables[$key][$j]['GROUP'] =\n $variableParts[2];\n }\n break;\n\n case 'TEXT':\n case 'TEXTAREA':\n case 'SELECT':\n case 'DATE':\n self::$templateVariables[$key][$j]['TAG'] = $variableParts[0];\n $variableGroup = $this->cleanExplode(self::$_templateGroupSymbol, $variableParts[1]);\n self::$templateVariables[$key][$j]['NAME'] =\n $variableGroup[0];\n if (!empty ($variableGroup[1])) {\n self::$templateVariables[$key][$j]['GROUP'] =\n $variableGroup[1];\n }\n break;\n\n default:\n break;\n }\n $j++;\n }\n $i++;\n }\n }\n\n }",
"public function vars()\n {\n return $this->vars;\n }",
"public function getVars() {\r\n return $this->VARS;\r\n }",
"public function type_vars( ){\n\t\t\n\t\tglobal $disabled_settings;\n\t\t$alt = false;\n\t\tif ( is_array( $disabled_settings ) )\n\t\t\tif( !empty( $disabled_settings['typography'] ) )\n\t\t\t\t$alt = true;\n\t\t\n\t\t$vars = array(\n\t\t\t'plBaseFont'\t\t=> ($alt) ? '\"Helvetica\" Arial, serif' : pl_type_el('type_primary', 'stack'), \n\t\t\t'plBaseWeight'\t\t=> pl_type_el('type_primary', 'weight'), \n\t\t\t'plAltFont'\t\t\t=> ($alt) ? '\"Helvetica\" Arial, serif' : pl_type_el('type_secondary', 'stack'), \n\t\t\t'plAltWeight'\t\t=> pl_type_el('type_secondary', 'weight'), \n\t\t\t'plHeaderFont'\t\t=> ($alt) ? '\"Helvetica\" Arial, serif' : pl_type_el('type_headers', 'stack'), \n\t\t\t'plHeaderWeight'\t=> pl_type_el('type_headers', 'weight'),\n\t\t);\n\t\treturn $vars;\n\t}",
"public static function variables(): array\n {\n return [ \n Variable::make('method', __('Login form method')), \n Variable::make('action', __('Login form action')), \n Variable::make('token_field', __('Name of the csrf_token field')), \n Variable::make('token_value', __('The csrf_token field value')), \n Variable::make('widget_field', __('Name of the widget field')), \n Variable::make('widget_value', __('The widget field value')), \n\n Variable::make('username_field', __('Name of the username/email field')), \n Variable::make('username_error', __('The username/email field error')), \n Variable::make('username_value', __('The username/email field old value')), \n\n Variable::make('password_field', __('Name of the password field')), \n Variable::make('password_error', __('The password field error')), \n\n Variable::make('remember_field', __('Name of the remember field')), \n Variable::make('remember_checked', __('The remember field checked status')), \n Variable::make('registration_page', __('The registration page url')), \n ];\n }",
"public function getPlaceholderList($text)\n {\n $vars = array();\n\n $matches = array();\n if (preg_match_all(Varien_Filter_Template::CONSTRUCTION_PATTERN, $text, $matches, PREG_SET_ORDER))\n {\n foreach($matches as $index => $construction) {\n\n $match = $construction[0];\n $directiveType = $construction[1];\n $variableName = $construction[2];\n\n $callback = array($this, $directiveType.'Directive');\n\n if(!is_callable($callback)) {\n continue;\n }\n\n $tokenizer = new Varien_Filter_Template_Tokenizer_Variable();\n $tokenizer->setString($variableName);\n $params = $tokenizer->tokenize();\n\n if (!$this->containsMethod($params)) {\n\n if (in_array($directiveType, array('var'))) {\n $vars[] = trim($variableName);\n }\n\n $vars = array_merge($vars, $this->getVariableNamesOf($variableName));\n }\n }\n }\n\n // Every variable just one time\n $vars = array_unique($vars);\n\n // dispatch event with found vars\n Mage::dispatchEvent('mk_mailpreview_found_mail_preview_vars', array(\n 'sender' => $this,\n 'vars' => $vars\n ));\n\n return $vars;\n }",
"public function GetRawAll()\n {\n $result = [];\n foreach ($this->vars as $key => $section) {\n $result[ $key ] = $this->GetRawKeys($key);\n }\n return $result;\n }",
"function getVars() {\n return $this->vars;\n }",
"public function getBindVars(): array\n {\n return $this->container->getAll();\n }",
"public function getVars(){\n return $this->getClassVars()->getValues();\n }",
"public function vars()\n {\n $v = &$this->vars;\n return $v;\n }",
"public function getVariableContainer() {}",
"function get_template_variables( $instance, $args ) {\n\t\treturn array(\n\t\t\t'icon' => $instance['icon'],\n\t\t\t'url' => $instance['url'],\n\t\t\t'new_window' => $instance['new_window'],\n\t\t);\n\t}",
"public function getVariables(int $id): array;",
"public function getAvailableVariables() :array\n {\n return [];\n }",
"function get_template_variables( $instance, $args ) {\n if( empty( $instance ) ) return array();\n\n return array(\n 'yc_headline' => $instance['yc_headline']['text'],\n 'headline_tag' => $instance['yc_headline']['tag'],\n 'yc_sub_headline' => $instance['yc_sub_headline']['text'],\n 'sub_headline_tag' => $instance['yc_sub_headline']['tag'],\n 'yc_has_divider' => ! empty( $instance['yc_divider'] ) && $instance['yc_divider']['style'] != 'none'\n );\n }",
"public function __get($key)\n {\n return $this->get_template_vars($key);\n }",
"public function getVars()\n {\n return $this->_contents;\n }",
"protected function getVars()\n {\n if (!$this->vars) {\n $this->loadVarsByObjectType();\n }\n\n return $this->vars;\n }",
"private function getTemplateData(Enlight_Event_EventArgs $arguments)\n {\n $template = Shopware()->Template();\n /**@var $view Enlight_View_Default */\n $view = $arguments->getSubject()->View();\n $viewTemplate = $view->Template();\n\n $data = array(\n 'Loaded templates' => explode('|', $viewTemplate->template_resource),\n 'Cache directory' => $template->getCacheDir(),\n 'Compile directory' => $template->getCompileDir(),\n 'Config directory' => $template->getConfigDir(),\n 'Config variables' => $template->getConfigVars(),\n 'Debug template' => $template->getDebugTemplate(),\n 'Plugin directories' => $template->getPluginsDir(),\n 'Template directories' => $template->getTemplateDir(),\n 'Assignments' => $view->getAssign(),\n );\n\n return $data;\n }",
"public function envVariablesDataProvider(): array\n {\n return [\n 'only one existing expression' => [\n '{{null}}',\n ['{{null}}' => '']\n ],\n 'one existing expression with additional chars' => [\n 'prefix{{null}}suffix',\n ['{{null}}' => '']\n ],\n 'one expression existing two times with additional chars' => [\n 'prefix{{null}}suffix{{null}}suffix2',\n ['{{null}}' => '']\n ]\n ];\n }",
"public static function get_template_global_variables()\n {\n return [\n 'FoxyStripe' => 'current_foxystripe_setting',\n ];\n }",
"public function getGlobals()\n {\n return [\n 'snippets' => new SnippetsTwig($this->flextype)\n ];\n }",
"protected function GetDescriptionVariables()\n {\n return array();\n }",
"public function listPlaceHolders(): array\n {\n $find = !!preg_match_all('/\\{(\\w+?)\\}/', $this->pattern, $matches);\n if (!$find) {\n return [];\n }\n return $matches[1];\n }",
"protected function getVar(): array\n {\n if (!is_array($this->var)) {\n return [];\n }\n return $this->var;\n }",
"public static function templateKeys(string $template): array\n {\n preg_match_all('/{([^}]+)}/i', $template, $data);\n return $data[1];\n }",
"function &getVariables($question_id)\n\t{\n\t\tglobal $ilDB;\n\t\t\n\t\t$result_array = array();\n\t\t$result = $ilDB->queryF(\"SELECT svy_variable.*, svy_category.title FROM svy_variable LEFT JOIN \".\n\t\t\t\"svy_category ON svy_variable.category_fi = svy_category.category_id WHERE svy_variable.question_fi = %s \".\n\t\t\t\"ORDER BY svy_variable.sequence\",\n\t\t\tarray('integer'),\n\t\t\tarray($question_id)\n\t\t);\n\t\twhile ($row = $ilDB->fetchObject($result))\n\t\t{\n\t\t\t$result_array[$row->sequence] = $row;\n\t\t}\n\t\treturn $result_array;\n\t}",
"public function vars()\n {\n return array_merge(parent::vars(), [\n 'user' => (string) $this->key->sysuser ? $this->key->sysuser->name : 'sitepilot',\n 'key' => (string) $this->key->key\n ]);\n }",
"private function get_vars2export() {\n\t\treturn array(\n\t\t\t'var_id' => !empty($this->var_id) ? $this->var_id : FALSE\n\t\t);\n\t}",
"public function getTemplateNames() {\n\t\treturn array_keys(self::$_config->template->toArray());\n\t}",
"public function variables() : Variables {\n return $this->_variables;\n }",
"public function get_vars()\n\t{\n\t\treturn array(\"TsvOneFile\");\n\t}",
"public function vars()\n {\n \n return new ArrayWrapper(get_object_vars($this->object));\n \n }",
"private static function getInputVars() {\n\t\tif (static::$vars === null) {\n\t\t\t// take those vars only once\n\t\t\tparse_str(static::getRawData(), $vars);\n\t\t\tstatic::$vars = (array) $vars;\n\t\t}\n\t\t\n\t\treturn static::$vars;\n\t}",
"public function getAssignedVars()\n {\n return $this->_vars;\n }",
"protected function prepareVars(): array\n {\n return [];\n\n // $this->p_model = $model = $this->option('model');\n }",
"public function getVariables() : PageVariables {\n\t\t\treturn clone $this->variables;\n\t\t}",
"public function get_count_variables() {\r\n\t\treturn array( $this->where, $this->values );\r\n\t}"
] | [
"0.89054394",
"0.83720607",
"0.7979437",
"0.7566881",
"0.7539321",
"0.7534858",
"0.7453146",
"0.7427348",
"0.7414572",
"0.7366905",
"0.7284823",
"0.72440934",
"0.72354925",
"0.7211639",
"0.7158477",
"0.7144351",
"0.7144351",
"0.7130502",
"0.7045406",
"0.70416546",
"0.69844437",
"0.69546974",
"0.69532233",
"0.69173795",
"0.68917394",
"0.68819964",
"0.68653405",
"0.6852134",
"0.682041",
"0.682041",
"0.682041",
"0.6817065",
"0.6813708",
"0.6782091",
"0.67788225",
"0.6771668",
"0.67378664",
"0.6713381",
"0.6666841",
"0.6659958",
"0.66598266",
"0.66382587",
"0.66288275",
"0.6591359",
"0.6561487",
"0.65575343",
"0.65125734",
"0.6498157",
"0.6491463",
"0.6487811",
"0.6475543",
"0.64689773",
"0.6422162",
"0.6417416",
"0.6398589",
"0.6398589",
"0.6396303",
"0.6396303",
"0.6390714",
"0.6383783",
"0.63789696",
"0.635515",
"0.63494605",
"0.6348644",
"0.6330807",
"0.6314478",
"0.62742686",
"0.62618756",
"0.6247389",
"0.62440056",
"0.622169",
"0.6203711",
"0.6189883",
"0.61833066",
"0.6182143",
"0.6181546",
"0.6174139",
"0.61705583",
"0.61605173",
"0.61599946",
"0.61286855",
"0.6125335",
"0.6124582",
"0.61218226",
"0.61193544",
"0.61166394",
"0.6112853",
"0.6096578",
"0.6095762",
"0.60616493",
"0.6057255",
"0.6044065",
"0.6041468",
"0.6040362",
"0.60372835",
"0.60146385",
"0.5997674",
"0.59886783",
"0.59838176",
"0.5978838"
] | 0.65110856 | 47 |
Returns an array containing config variables | function &GetConfigVars($name=null)
{
return $this->_smarty->get_config_vars($name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function config_vars()\n\t{\n\t\tglobal $txt;\n\n\t\t$return_data = array();\n\n\t\t$core_features = $this->settings();\n\n\t\t// Convert this to a format that admin search will understand\n\t\tforeach ($core_features as $id => $data)\n\t\t{\n\t\t\t$return_data[] = array('switch', $data['title'] ?? $txt['core_settings_item_' . $id]);\n\t\t}\n\n\t\treturn $return_data;\n\t}",
"public function getConfigArray() {}",
"private static function _getConfigArray()\n\t{\n\t\treturn explode('.', self::_getConfig());\n\t}",
"function getSupportingConfigVars()\n {\n return array();\n }",
"function get_config_array();",
"public function getConfig(): array;",
"public function config(): array\n {\n return $this->config;\n }",
"public static function allConf() {\n\t\t\treturn (array)Configure::read( self::$confKey );\n\t\t}",
"public function getVars() {\n return array();\n }",
"public function getConfig(): array\n {\n return $this->_config;\n }",
"protected abstract static function getConfig(): array;",
"public static function &all(): array\n\t{\n\t\treturn static::$config;\n\t}",
"public function getEnvVars(): array {\n return $this->configVars['env-vars'];\n }",
"public function getVariables()\n {\n \treturn isset($this->all['variables']) ? $this->all['variables'] : array();\n }",
"public function getConfigArray(): array\n {\n return [\n 'paths' => [\n 'migrations' => $this->getCorrectedPath(__DIR__ . '/_files/migrations'),\n ],\n 'environments' => [\n 'default_migration_table' => 'phinxlog',\n 'default_database' => 'production',\n 'production' => [\n 'adapter' => 'mysql',\n 'host' => MYSQL_DB_CONFIG['host'],\n 'name' => MYSQL_DB_CONFIG['name'],\n 'user' => MYSQL_DB_CONFIG['user'],\n 'pass' => MYSQL_DB_CONFIG['pass'],\n 'port' => MYSQL_DB_CONFIG['port']\n ]\n ]\n ];\n }",
"public function getAll(){\n\t\treturn $this->configValues;\n\t}",
"public static function variables(): array\n {\n return [\n Variable::make('sorts', __('Array of available sorting')),\n\n Variable::make('directions', __('Array of sort directions')),\n\n Variable::make('items', __('HTML generated of blog items')),\n\n Variable::make('pagination', __('HTML generated of pagination links')),\n ];\n }",
"protected function getSettingArray()\n {\n return $this->container->get($this->getSettingKey());\n }",
"public function getConfiguration(): array;",
"public function getConfiguration(): array;",
"public function getConfigData()\n {\n return [\n 'alias' => $this->getAlias(),\n 'dbName' => $this->getName(),\n 'dbHost' => $this->getHost(),\n 'dbType' => $this->getType(),\n 'dbUser' => $this->getUserName(),\n 'dbPass' => $this->getPassword()\n ];\n }",
"public function getConfigData() {\n\t\treturn array(\n\t\t\t'storageType' => StorageFactory::TYPE_DUMMY,\n\t\t\t'debuggerDisabled' => $this->debuggerDisabled,\n\t\t);\n\t}",
"public function getAvailableVariables() :array\n {\n return [];\n }",
"public function getVars()\n {\n return [\n 'get' => $this->get,\n 'session' => $this->session,\n ];\n }",
"public function getConfig() : array {\n\t\treturn static::$options;\n\t}",
"function configuration()\r\n {\r\n global $db;\r\n $default_conf = $this->default_configuration();\r\n $conf = $db->getAssoc('\r\n select configuration_key, configuration_value from !\r\n where module_key = ?\r\n ', false, array(TABLE_CONFIGURATION, $this->module_key()));\r\n return array_merge($default_conf, $conf);\r\n }",
"public static function getArrayConfig(): array\n {\n require self::fixtureDir() . \"/fixture_config.php\";\n\n return $fixtureArray;\n }",
"public function getAllConfigs()\r\n\t{\r\n\t\treturn $this->arrConfig;\r\n\t}",
"public function provideVariables()\n {\n return [\n 'first test' => [\n 'variables' => [\n 'var1' => 'val1',\n 'var2' => 'val2',\n 'var3' => 'val3',\n ],\n ]\n ];\n }",
"public function variables(): array;",
"public function variables(): array;",
"public static function variables(): array\n {\n return [\n Variable::make('id', __('Article Id')),\n\n Variable::make('name', __('Article Name')),\n\n Variable::make('summary', __('Article Summary')),\n\n Variable::make('url', __('Article URL')),\n\n Variable::make('hits', __('Article Hits')),\n\n Variable::make('creation_date', __('Article Creation Date')),\n\n Variable::make('last_update', __('Article Update Date')),\n\n Variable::make('author', __('Article Author')),\n\n Variable::make('image.templateName', __(\n 'Image with the required template (example: image.common-main)'\n )),\n ];\n }",
"private function lazy_get_config(): array\n\t{\n\t\treturn array_merge_recursive($this->configs['app'], $this->construct_options);\n\t}",
"public function GetAll()\n {\n $result = [];\n foreach ($this->vars as $key => $section) {\n $result[ $key ] = $this->GetKeys($key);\n }\n return $result;\n }",
"protected static function getExtensionConfiguration(): array\n {\n return GeneralUtility::makeInstance(ExtensionConfiguration::class)->get('lux');\n }",
"public static function getAll()\n {\n return self::$config;\n }",
"public static function get_template_global_variables()\n {\n return [\n 'TemplateConfig' => 'current_template_config',\n ];\n }",
"function arrayConfig($namespace = 'thirdParty')\n {\n return config($namespace);\n }",
"public function getVars() : array {\n\n\t\t\treturn $this->variables;\n\t\t}",
"protected function getEnvironmentVariablesThatICareAbout()\n {\n return array(\n 'shell',\n 'tmpdir',\n 'user',\n 'pwd',\n 'lang',\n 'editor',\n 'home',\n );\n }",
"public static function all()\n {\n return self::$config;\n }",
"public function listAll() : array\n {\n return \\Cache::remember('query_list_all_config', 60 * 60, function () {\n return $this->config->all()->pluck('value', 'name')->all();\n });\n }",
"public function getAll(): array\n {\n return $this->variables;\n }",
"function getTemplateVars() {\n return array();\n }",
"private function getConfigFieldsValues()\n {\n $config = [];\n foreach (ConfigFieldsNames::getConfigFields() as $key) {\n $config[$key] = Configuration::get($key);\n }\n for ($i = 1; $i < TPAY_CARD_MIDS; $i++) {\n foreach (ConfigFieldsNames::getCardConfigFields() as $key) {\n $config[$key.$i] = Configuration::get($key.$i);\n }\n }\n\n return $config;\n }",
"function getConfigurationValues() ;",
"public function getRaw(): array\n {\n return $this->config;\n }",
"private function get_configurations()\n {\n return [\n Configuration\\Comments::class,\n Configuration\\Editor::class,\n Configuration\\Media::class,\n Configuration\\Misc::class,\n Configuration\\Menu::class,\n Configuration\\Plugins::class,\n ];\n }",
"public function getVariables ()\n {\n /**\n * Specification:\n * - itemkey used to identify variable in your other functions\n * - type text, textarea, yesno, password, hidden (type hidden are variables used by CE and are required)\n * - description description of the variable, displayed in ClientExec\n * - encryptable used to indicate the variable's value must be encrypted in the database\n */\n $variables = array(\n lang('Name') => array(\n 'type' => 'hidden',\n 'description' => lang('Used by ClientExec to display plugin. It must match the action function name(s).'),\n 'value' => 'InterWorx-CP'\n ),\n lang('Description') => array (\n 'type' => 'hidden',\n 'description' => lang('Description viewable by admin in server settings'),\n 'value' => lang('InterWorx-CP integration.')\n ),\n lang('Access Key') => array (\n 'type' => 'textarea',\n 'description' => lang('Access key used to authenticate to server.'),\n 'value' => '',\n 'encryptable' => true\n ),\n lang('Actions') => array (\n 'type' => 'hidden',\n 'description' => lang('Actions currently available for this plugin.'),\n 'value' => 'Create,Delete,Suspend,UnSuspend'\n )\n );\n\n return $variables;\n }",
"public function getConfiguration()\n {\n return self::$config_array;\n }",
"function getConfigContents() {\n\t\treturn $this->configContents;\n\t}",
"public function getBindVars(): array\n {\n return $this->container->getAll();\n }",
"private static function getConfigParameters()\n\t{\n\t\tif (self::$configParameters == null)\n self::$configParameters = parse_ini_file(\"config/config.ini\");\n\t\treturn self::$configParameters;\n\t}",
"public function getConfiguration(): array\n {\n }",
"public function getEnvVars(): array\n {\n return $this->envVars;\n }",
"public function getTemplateVariables(): array;",
"protected function GetDescriptionVariables()\n {\n return array();\n }",
"protected function getSettings(): array\n {\n static $settings = null;\n\n if ($settings === null) {\n $settings = GeneralUtility::makeInstance(ExtensionConfiguration::class)->get($this->extKey);\n }\n\n return $settings ?? [];\n }",
"private static function parseEnvProperties(): array\r\n {\r\n $envProperties = array();\r\n $vars = file(Config::$baseDir . '/../.env', FILE_IGNORE_NEW_LINES);\r\n foreach ($vars as $var) {\r\n if (substr($var, 0, 2) === '##') continue;\r\n $envProperties[explode('=', $var)[0]] = explode('=', $var)[1];\r\n }\r\n return $envProperties;\r\n }",
"public function rawConfig(): array\n {\n return $this->rawConfig;\n }",
"private function getConfig()\n {\n return [\n self::API_COUNTRY => [\n 'url' => 'https://restcountries.eu/rest/v2/',\n 'routes' => [\n 'name' => [\n 'route' => 'name',\n 'params' => [\n 'fullText' => 'bool'\n ],\n ],\n 'dialingCode' => [\n 'route' => 'callingcode',\n ],\n 'countryCode' => [\n 'route' => 'alpha',\n 'params' => [\n 'codes' => 'array'\n ],\n ],\n 'currency' => [\n 'route' => 'currency',\n ],\n 'languages' => [\n 'route' => 'lang',\n ],\n 'capital' => [\n 'route' => 'capital',\n ],\n 'region' => [\n 'route' => 'region',\n ],\n 'regionalbloc' => [\n 'route' => 'regionalbloc',\n ],\n ]\n ]\n ];\n }",
"public function getJsConfig()\n {\n return [\n 'env' => UnderstandFieldProvider::getEnvironment(),\n 'token' => $this->app['config']->get('understand-laravel.token'),\n 'context' => [\n 'session_id' => UnderstandFieldProvider::getSessionId(),\n 'request_id' => UnderstandFieldProvider::getProcessIdentifier(),\n 'user_id' => UnderstandFieldProvider::getUserId(),\n 'client_ip' => UnderstandFieldProvider::getClientIp()\n ]\n ];\n }",
"public function getVariablesList() {\n return $this->_get(2);\n }",
"protected function getConfigFormValues()\n {\n return array(\n 'B2BINPAY_TITLE' => Configuration::get('B2BINPAY_TITLE'),\n 'B2BINPAY_TEST_MODE' => Configuration::get('B2BINPAY_TEST_MODE'),\n 'B2BINPAY_AUTH_KEY' => Configuration::get('B2BINPAY_AUTH_KEY'),\n 'B2BINPAY_AUTH_SECRET' => Configuration::get('B2BINPAY_AUTH_SECRET'),\n 'B2BINPAY_WALLETS' => Configuration::get('B2BINPAY_WALLETS'),\n 'B2BINPAY_MARKUP' => Configuration::get('B2BINPAY_MARKUP'),\n 'B2BINPAY_LIFETIME' => Configuration::get('B2BINPAY_LIFETIME'),\n );\n }",
"public static function checkAndGetConfig()\n {\n return array(\n include(sfContext::getInstance()->getConfigCache()->checkConfig('config/bb_code_parser_config.yml')),\n include(sfContext::getInstance()->getConfigCache()->checkConfig('config/bb_code_parser_tags.yml'))\n );\n }",
"private function getConfig()\n\t{\n\t\t$apiKey = $this->getApiKey();\n\t\t$configArray = array('api_key'=> $apiKey,'outputtype'=>Wp_WhitePages_Model_Api::API_OUTPUT_TYPE);\n\t\t\n\t\treturn $configArray;\n\t}",
"public function toArray()\n {\n \n return $this->getConfig();\n }",
"function getPuppetConfiguration() {\n\t\t$puppetinfo = array( 'puppetclass' => array(), 'puppetvar' => array() );\n\t\tif ( isset( $this->hostInfo[0]['puppetclass'] ) ) {\n\t\t\tarray_shift( $this->hostInfo[0]['puppetclass'] );\n\t\t\tforeach ( $this->hostInfo[0]['puppetclass'] as $class ) {\n\t\t\t\t$puppetinfo['puppetclass'][] = $class;\n\t\t\t}\n\t\t}\n\t\tif ( isset( $this->hostInfo[0]['puppetvar'] ) ) {\n\t\t\tarray_shift( $this->hostInfo[0]['puppetvar'] );\n\t\t\tforeach ( $this->hostInfo[0]['puppetvar'] as $variable ) {\n\t\t\t\t$vararr = explode( '=', $variable );\n\t\t\t\t$varname = trim( $vararr[0] );\n\t\t\t\t$var = trim( $vararr[1] );\n\t\t\t\t$puppetinfo['puppetvar'][\"$varname\"] = $var;\n\t\t\t}\n\t\t}\n\t\treturn $puppetinfo;\n\t}",
"public function getAll()\n {\n return $this->config;\n }",
"public function configAll() {\n \n return $this->config;\n \n }",
"protected function getConfigFormValues()\n {\n return array(\n 'CAPTURELEADSXAVIER_LIVE_MODE' => Configuration::get('CAPTURELEADSXAVIER_LIVE_MODE', true),\n 'CAPTURELEADSXAVIER_ACCOUNT_EMAIL' => Configuration::get('CAPTURELEADSXAVIER_ACCOUNT_EMAIL', '[email protected]'),\n 'CAPTURELEADSXAVIER_ACCOUNT_PASSWORD' => Configuration::get('CAPTURELEADSXAVIER_ACCOUNT_PASSWORD', null),\n 'CAPTURELEADSXAVIER_COL_SEL' => Configuration::get('CAPTURELEADSXAVIER_COL_SEL', \"left\"),\n 'CAPTURELEADSXAVIER_NBR' => Configuration::get('CAPTURELEADSXAVIER_NBR', 3)\n );\n }",
"protected function getConfigFieldsValues()\n {\n return array(\n $this->mod_prefix.'SHOW_WEBPAGE' => Configuration::get($this->mod_prefix.'SHOW_WEBPAGE'),\n $this->mod_prefix.'SHOW_WEBSITE' => Configuration::get($this->mod_prefix.'SHOW_WEBSITE'),\n $this->mod_prefix.'SHOW_WEBSITE_SEARCHBOX' => Configuration::get($this->mod_prefix.'SHOW_WEBSITE_SEARCHBOX'),\n $this->mod_prefix.'SHOW_ORGANIZATION' => Configuration::get($this->mod_prefix.'SHOW_ORGANIZATION'),\n $this->mod_prefix.'SHOW_ORGANIZATION_LOGO' => Configuration::get($this->mod_prefix.'SHOW_ORGANIZATION_LOGO'),\n $this->mod_prefix.'SHOW_ORGANIZATION_CONTACT' => Configuration::get($this->mod_prefix.'SHOW_ORGANIZATION_CONTACT'),\n $this->mod_prefix.'ORGANIZATION_CONTACT_EMAIL' => Configuration::get($this->mod_prefix.'ORGANIZATION_CONTACT_EMAIL'),\n $this->mod_prefix.'ORGANIZATION_CONTACT_TELEPHONE' => Configuration::get($this->mod_prefix.'ORGANIZATION_CONTACT_TELEPHONE'),\n $this->mod_prefix.'SHOW_ORGANIZATION_FACEBOOK' => Configuration::get($this->mod_prefix.'SHOW_ORGANIZATION_FACEBOOK'),\n $this->mod_prefix.'ORGANIZATION_FACEBOOK' => Configuration::get($this->mod_prefix.'ORGANIZATION_FACEBOOK'),\n $this->mod_prefix.'SHOW_LOCALBUSINESS' => Configuration::get($this->mod_prefix.'SHOW_LOCALBUSINESS'),\n $this->mod_prefix.'LOCALBUSINESS_TYPE' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_TYPE'),\n $this->mod_prefix.'LOCALBUSINESS_STORENAME' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_STORENAME'),\n $this->mod_prefix.'LOCALBUSINESS_DESC' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_DESC'),\n $this->mod_prefix.'LOCALBUSINESS_VAT' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_VAT'),\n $this->mod_prefix.'LOCALBUSINESS_PHONE' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_PHONE'),\n $this->mod_prefix.'LOCALBUSINESS_PRANGE_SHOW' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_PRANGE_SHOW'),\n //$this->mod_prefix.'LOCALBUSINESS_PRANGE' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_PRANGE'),\n $this->mod_prefix.'LOCALBUSINESS_STREET' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_STREET'),\n $this->mod_prefix.'LOCALBUSINESS_COUNTRY' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_COUNTRY'),\n $this->mod_prefix.'LOCALBUSINESS_REGION' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_REGION'),\n $this->mod_prefix.'LOCALBUSINESS_CODE' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_CODE'),\n $this->mod_prefix.'LOCALBUSINESS_LOCALITY' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_LOCALITY'),\n $this->mod_prefix.'LOCALBUSINESS_GPS_SHOW' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_GPS_SHOW'),\n $this->mod_prefix.'LOCALBUSINESS_GPS_LAT' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_GPS_LAT'),\n $this->mod_prefix.'LOCALBUSINESS_GPS_LON' => Configuration::get($this->mod_prefix.'LOCALBUSINESS_GPS_LON')\n );\n }",
"public static function getConfig() {\n\t\tif (self::$temp_config !== null) {\n\t\t\treturn self::$temp_config;\n\t\t}\n\n\t\t$config_file = self::getConfigFile();\n\t\treturn (!file_exists($config_file)) ? array() : json_decode(file_get_contents($config_file), true);\n\t}",
"public function getConfigFieldsValues()\n {\n return array(\n 'SEND_SMS_API' => Tools::getValue('SEND_SMS_API', Configuration::get('ONEHOP_SEND_SMS_API')),\n 'ADMIN_MOBILE' => Tools::getValue('ADMIN_MOBILE', Configuration::get('ONEHOP_ADMIN_MOBILE'))\n );\n }",
"public static function checkConf()\n\t{\n\t\treturn array();\n\t}",
"public static function checkConf()\n\t{\n\t\treturn array();\n\t}",
"public static function variables(): array\n {\n return [ \n Variable::make('method', __('Login form method')), \n Variable::make('action', __('Login form action')), \n Variable::make('token_field', __('Name of the csrf_token field')), \n Variable::make('token_value', __('The csrf_token field value')), \n Variable::make('widget_field', __('Name of the widget field')), \n Variable::make('widget_value', __('The widget field value')), \n\n Variable::make('username_field', __('Name of the username/email field')), \n Variable::make('username_error', __('The username/email field error')), \n Variable::make('username_value', __('The username/email field old value')), \n\n Variable::make('password_field', __('Name of the password field')), \n Variable::make('password_error', __('The password field error')), \n\n Variable::make('remember_field', __('Name of the remember field')), \n Variable::make('remember_checked', __('The remember field checked status')), \n Variable::make('registration_page', __('The registration page url')), \n ];\n }",
"public function getFromDb()\n {\n $config = [];\n try {\n $query = (new Query)->from('{{%podium_config}}')->all();\n foreach ($query as $setting) {\n $config[$setting['name']] = $setting['value'];\n }\n }\n catch (Exception $e) {\n Log::error($e->getMessage(), null, __METHOD__);\n }\n \n return $config;\n }",
"protected function configurations(string $key): array\n {\n return $this['config'];\n }",
"public function getConfigurationValues() {}",
"public function getConfigurationValues() {}",
"public function getConfigurationValues() {}",
"public function getConfigurationValues() {}",
"public static function get_template_global_variables()\n {\n return [\n 'FoxyStripe' => 'current_foxystripe_setting',\n ];\n }",
"protected function getConfigFormValues()\n {\n return array(\n 'KUSHKIPAGOS_LIVE_MODE' => Configuration::get('KUSHKIPAGOS_LIVE_MODE', true),\n 'KUSHKIPAGOS_PUBLIC_KEY' => Configuration::get('KUSHKIPAGOS_PUBLIC_KEY', null),\n 'KUSHKIPAGOS_PRIVATE_KEY' => Configuration::get('KUSHKIPAGOS_PRIVATE_KEY', null),\n 'KUSHKIPAGOS_RAZON_SOCIAL' => Configuration::get('KUSHKIPAGOS_RAZON_SOCIAL', null),\n 'KUSHKIPAGOS_TRANSFER' => Configuration::get('KUSHKIPAGOS_TRANSFER', false),\n 'KUSHKIPAGOS_DEV' => Configuration::get('KUSHKIPAGOS_DEV', true)\n );\n }",
"public function getVariablesList() {\n return $this->_get(4);\n }",
"public function getSettings(): array {\n\t\treturn [\n\t\t\t// Enable debug mode (to print errors).\n\t\t\t'debug' => !empty(elgg_get_config('debug')),\n\t\t\t'security' => [\n\t\t\t\t'requestedAuthnContext' => false,\n\t\t\t],\n\t\t\t// Service Provider Data that we are deploying.\n\t\t\t'sp' => $this->getSPSettings(),\n\t\t\t\n\t\t\t// Identity Provider Data that we want connected with our SP.\n\t\t\t'idp' => $this->getIDPSettings(),\n\t\t];\n\t}",
"protected function getConfigFormValues()\n {\n return array(\n 'ORDERREF_LENGTH' => Configuration::get('ORDERREF_LENGTH'),\n 'ORDERREF_MODE' => Configuration::get('ORDERREF_MODE'),\n );\n }",
"public function getVars() {\r\n return $this->VARS;\r\n }",
"public function getSettingParameters() : array\n {\n \treturn $this->settings['parameters'];\n }",
"protected function declareConfig(){\n\n $output = '';\n \n foreach( $this->getConfig() as $key => $value ){\n \n $output .= $key . '=' . json_encode( $value ) . ';';\n \n }\n \n return $output;\n\n }",
"public function allConfig() {\n return $this->getConfigAugment()->all();\n }",
"public function getConfiguration(): array\n {\n return $this->configuration;\n }",
"protected function get_settings_array() {\n\t\t$plugin_path = Tribe__Events__Main::instance()->plugin_path;\n\t\treturn (array) include $plugin_path . 'src/admin-views/tribe-options-timezones.php';\n\t}",
"protected function getParametrizationValues(array $config): array\n {\n return [];\n }",
"abstract protected function configs(): array;",
"protected function getConfigFormValues()\n {\n return array(\n 'APISFACT_PRESTASHOP_TOKEN' => Configuration::get('APISFACT_PRESTASHOP_TOKEN', true),\n 'APISFACT_PRESTASHOP_SERIEF' => Configuration::get('APISFACT_PRESTASHOP_SERIEF', true),\n 'APISFACT_PRESTASHOP_NUMEROF' => Configuration::get('APISFACT_PRESTASHOP_NUMEROF', true),\n 'APISFACT_PRESTASHOP_SERIEB' => Configuration::get('APISFACT_PRESTASHOP_SERIEB', true),\n 'APISFACT_PRESTASHOP_NUMEROB' => Configuration::get('APISFACT_PRESTASHOP_NUMEROB', true)\n );\n }",
"public function all()\n {\n return $this->config;\n }",
"public function settingsData() {\n\n $arraySettings = array (\n 'Generic Param' => $this->_genericParam\n );\n\n return $arraySettings;\n\n }",
"public function ovpnCurrentConfig()\n {\n $readArr = unserialize(file_get_contents(\"./vpn/ovpn.array.config\"));\n return $readArr;\n }"
] | [
"0.76788557",
"0.7634818",
"0.75843424",
"0.7500844",
"0.7383072",
"0.73651004",
"0.7290107",
"0.724075",
"0.7205787",
"0.7198886",
"0.71388215",
"0.7077611",
"0.7074342",
"0.7029353",
"0.70162094",
"0.70117784",
"0.69787276",
"0.6977035",
"0.6975772",
"0.6975772",
"0.6955146",
"0.6949266",
"0.6934982",
"0.692244",
"0.690352",
"0.68970364",
"0.68918407",
"0.68798095",
"0.68732303",
"0.68726915",
"0.68726915",
"0.6869861",
"0.68638086",
"0.6845101",
"0.6823427",
"0.68216264",
"0.68012613",
"0.67992896",
"0.67964405",
"0.67904806",
"0.6742905",
"0.67331773",
"0.67207533",
"0.66935307",
"0.669153",
"0.668534",
"0.6672637",
"0.66579396",
"0.6647649",
"0.6641247",
"0.66189754",
"0.6615233",
"0.6609584",
"0.6590468",
"0.658339",
"0.65770453",
"0.65768844",
"0.65642214",
"0.65592355",
"0.6554277",
"0.65507555",
"0.6545908",
"0.65363187",
"0.6522578",
"0.6519906",
"0.6514973",
"0.65078723",
"0.6496093",
"0.6490199",
"0.6484394",
"0.6480803",
"0.64771515",
"0.64646226",
"0.6462063",
"0.64586115",
"0.64586115",
"0.6457146",
"0.64532405",
"0.64515716",
"0.6449242",
"0.6449242",
"0.6449242",
"0.6448643",
"0.6446609",
"0.6438554",
"0.6437044",
"0.64338005",
"0.64309555",
"0.64225966",
"0.6419814",
"0.6413614",
"0.6412616",
"0.64091885",
"0.64079773",
"0.6406183",
"0.64039963",
"0.64023757",
"0.6402268",
"0.6401643",
"0.64003354"
] | 0.6673355 | 46 |
executes & displays the template results | function Display($resource_name, $cache_id = null, $compile_id = null)
{
$this->_smarty->display($resource_name, $cache_id, $compile_id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function execute() {\n $this->updateTeamSelector();\n\n $this->display();\n $this->smartyHelper->displayTemplate();\n }",
"protected function render_result()\n\t{\n\t\tif (!array_key_exists('self', $this->vars)) {\n\t\t\t$this->vars['self'] = $this;\n\t\t}\n\n\t\t$tpl = new STemplate();\n\t\t$tpl->vars =& $this->vars;\n\t\t$tpl->controls =& $this->controls;\n\n\t\t$res = $tpl->process($this->template_name);\n\n\t\tif (array_key_exists(PAGE_FILTER_RENDER, $this->_events))\n\t\t{\n\t\t\t$filters = array_reverse($this->_events[PAGE_FILTER_RENDER]);\n\n\t\t\tforeach ($filters as $method) {\n\t\t\t\t$res = call_user_func(array($this, $method), $res);\n\t\t\t}\n\t\t}\n\n\t\tif (strlen($this->design_page_name) && @file_exists($this->design_page_name))\n\t\t{\n\t\t\t$tpl = new STemplate();\n\t\t\t$tpl->vars =& $this->vars;\n\t\t\t$tpl->controls =& $this->controls;\n\n\t\t\t$tpl->vars['__content__'] = $res;\n\t\t\t$res = $tpl->process($this->design_page_name);\n\t\t}\n\n\t\treturn $res;\n\t}",
"public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}",
"protected function _run()\n {\n $this->strictVars(true);\n\n //assign variables to the template engine\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if ('_' != substr($key, 0, 1)) {\n $this->_smarty->assign($key, $value);\n }\n }\n\n //why 'this'?\n //to emulate standard zend view functionality\n //doesn't mess up smarty in any way\n $this->_smarty->assign_by_ref('this', $this);\n\n //smarty needs a template_dir, and can only use templates,\n //found in that directory, so we have to strip it from the filename\n $file = func_get_arg(0);\n\n echo $this->_smarty->fetch($file);\n //process the template (and filter the output)\n }",
"function index(){\n\t\t$this->template->run();\n\t}",
"public function view_results()\n {\n $obj = new CombinedAnalysis();\n $this->final_results = $obj->fetchResultsFromFiles($this->id);\n\n // show everthing in template\n $this->show_template();\n }",
"public function display() {\r\n echo $this->template;\r\n }",
"function render() {\r\n $sendOutput = true;\r\n // check if plog is configured to use conditional http headers and stuff like\r\n // that... Also, use the HttpCache class to determine whether we should send the\r\n // content or not\r\n if ($this->isCached()) {\r\n // some debug information\r\n $timestamp = $this->_templateObject->getCreationTimestamp();\r\n // and now send the correct headers\r\n if (Http_Cache::httpConditional($timestamp, $this->getCacheTimeSeconds())) $sendOutput = false;\r\n $header = \"Last-Modified: \" . gmdate('D, d M Y H:i:s', $timestamp) . ' GMT';\r\n header($header);\r\n }\r\n else {\r\n // send the results if needed\r\n $sendOutput = true;\r\n }\r\n if ($sendOutput) {\r\n // pass all the values to the template object\r\n $this->_templateObject->assign($this->_params);\r\n // and finally send them after calling the pre-processing method\r\n $content = $this->_templateObject->fetch($this->getViewId());\r\n print ($content);\r\n }\r\n }",
"public function run ()\n\t{\n\t\t$dump = template::dump ();\n\n\t\t$head = '';\n\t\tforeach ( $dump ['css'] as $file )\n\t\t{\n\t\t\t$head .= $this->twig->render ( 'system/html/web/snippets/css.twig', [ 'file' => $file, 'defer' => substr ( $file, 0, 2 ) == '//' ] );\n\t\t}\n\n\t\tforeach ( $dump ['js'] as $file )\n\t\t{\n\t\t\t$head .= $this->twig->render ( 'system/html/web/snippets/js.twig', [ 'file' => $file, 'defer' => substr ( $file, 0, 2 ) == '//' ] );\n\t\t}\n\n\t\t$body = '';\n\t\tforeach ( $dump ['templates'] as $template )\n\t\t{\n\t\t\t$body .= $this->twig->render ( $template ['path'], $template ['environment'] );\n\t\t}\n\n\t\t// We do not use die incase some modules need to run after the layout have been generated\n\t\techo $this->twig->render ('system/html/web/base.twig', [\n\t\t\t'head' => $head,\n\t\t\t'body' => $body\n\t\t] );\n\t}",
"protected function doExecute()\n {\n $view = $this->getView('', 'html', 'edge');\n\n $view['fruit'] = ['Name' => 'Apple', 'Year' => '18'];\n\n return $view->setLayout('home')->render();\n }",
"public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }",
"public function perform()\n {\n // template var with charset used for the html pages\n $this->viewVar['charset'] = $this->config->getModuleVar('common', 'charset');\n $this->viewVar['cssFolder'] = JAPA_PUBLIC_DIR . 'styles/'.$this->config->getModuleVar('common', 'styles_folder');\n $this->viewVar['urlBase'] = $this->router->getBase(); \n $this->viewVar['loggedUserRole'] = $this->controllerVar['loggedUserRole'];\n $this->viewVar['isUserLogged'] = $this->controllerVar['isUserLogged'];\n $this->viewVar['adminWebController'] = $this->config->getVar('default_module_application_controller'); \n \n $this->viewVar['text'] = array();\n\n // get text for the front page\n $this->model->action('misc','getText', \n array('id_text' => 1,\n 'result' => & $this->viewVar['text'],\n 'fields' => array('body'))); \n \n // get result of the header and footer controller\n // \n $this->viewVar['header'] = $this->controllerLoader->header(); \n $this->viewVar['footer'] = $this->controllerLoader->footer(); \n $this->viewVar['rightBorder'] = $this->controllerLoader->rightBorder(); \n }",
"public function renderTemplate();",
"function display($template, $cache_id=null, $compile_id=null)\n {\n echo $this->fetch($template, $cache_id, $compile_id);\n }",
"public function execute() {\n\t\t$data = $this->getResultData();\n\t\t$this->printText($data[0]);\n\t}",
"function perform()\n { \n // template var with charset used for the html pages\n $this->viewVar['charset'] = $this->config->getModuleVar('common', 'charset');\n // template var with css folder\n $this->viewVar['cssFolder'] = JAPA_PUBLIC_DIR . 'styles/'.$this->config->getModuleVar('common', 'styles_folder');\n\n if(isset($this->dontPerform))\n {\n return;\n }\n \n // init template 'pic' variable \n $this->viewVar['pic'] = array();\n \n // get requested picture content\n $this->model->action($this->module,'getPicture', \n array('result' => & $this->viewVar['pic'],\n 'id_pic' => (int)$this->current_id_pic,\n 'fields' => array('title','description',\n 'file','size','width','height',\n 'mime','media_folder')));\n }",
"public function execute()\n {\n $translationId = $this->_initTranslation();\n\n /** @var \\Magento\\Backend\\Model\\View\\Result\\Page $resultPage */\n $resultPage = $this->resultPageFactory->create();\n $resultPage->setActiveMenu('Economix_DbTranslations::db_translations');\n $resultPage->getConfig()->getTitle()->prepend(__('Translations'));\n $resultPage->addBreadcrumb(__('Content'), __('Content'));\n $resultPage->addBreadcrumb(__('DB Translations'), __('DB Translations'), $this->getUrl('ecx_dbtranslations/dbtranslations'));\n\n if ($translationId === null) {\n $resultPage->addBreadcrumb(__('New Translation'), __('New Translation'));\n $resultPage->getConfig()->getTitle()->prepend(__('New Translation'));\n } else {\n $resultPage->addBreadcrumb(__('Edit Translation'), __('Edit Translation'));\n $resultPage->getConfig()->getTitle()->prepend(\n $this->translationFactory->create()->load($translationId)->getString()\n );\n }\n return $resultPage;\n }",
"public function Display()\n {\n include($this->template);\n }",
"function output( \\Smarty_Internal_Template $template, $results ) {\r\n\t\treturn $template->smarty->fetch( 'string:' . $results->body );\r\n\t}",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"function show_parsed(){ // parsing template (if needed) and showing the result of parsing\n\tif (isset($this->result)) echo $this->result;\n\telse {\n\t\t$this->parse();\n\t\techo $this->result;\n\t}\n}",
"public function processaTemplate() {\n return $this->fetch('ricerca_'.$this->_layout.'.tpl');\n }",
"public function run() {\n\n $this->render(\"search\");\n }",
"public function index() \n\t{\n\t\tif(! $this->xmlHttpRequest){\n\t\t\t$this->registry->template->show($this->file . $this->extension);\n\t\t}\n\t\telse{\n\t\t\t$this->process();\n\t\t}\n\t}",
"public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }",
"public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }",
"public function executeList()\n {\n $this->setTemplate('list');\n }",
"public function run()\n {\n $template = $this->_template;\n $positions = $template->getPositions();\n $assigned = [];\n foreach (Yii::$app->big->getFrontendThemePositions() as $name => $title) {\n $item = [\n 'title' => $title,\n 'blocks' => [],\n ];\n if (isset($positions[$name])) {\n $item['blocks'] = $this->getBlocks($positions[$name]);\n }\n $assigned[$name] = $item;\n }\n\n $this->registerScripts();\n\n return $this->render($this->viewFile, [\n 'availableBlocks' => $this->blocks,\n 'assignedBlocks' => $assigned,\n 'columns' => $this->columns,\n 'id' => $this->id,\n ]);\n }",
"protected function _display($template)\n {\n echo $this->_fetch($template);\n }",
"private function output() {\n \n Quantum\\Output::smartyRender();\n \n }",
"public function run()\n { \n\t\t$items = Carrito::getItems();\n\n $this->controller->render('administrar_carrito',array(\n\t\t\t'items' => $items\n ));\n }",
"public function executeShow()\n {\n $this->templateVars['posts'] = (new PostManager())->getPostsWithCommentsCountAndAuthorName(['dateCreated' => 'DESC']);\n $this->render('@admin/posts_list.html.twig');\n }",
"function execute( array $params = [], \\Smarty_Internal_Template $template = null ) {\r\n\t\t\r\n\t\t$this->parameters = $params;\r\n\t\t$results = static::$Delegate->getContentComponent( $params['name'], $this->name );\r\n\r\n\t\tif ( !$results ) {\r\n\t\t\treturn \"<!-- No matching component for '{$params['name']}' -->\";\r\n\t\t}\r\n\t\t// Evaluate smarty content retrieved from the DB\t\t\r\n\t\treturn $this->output( $template, $results );\r\n\t}",
"function fetch() {\r\n // pass all the values to the template object\r\n $this->_templateObject->assign($this->_params);\r\n // and finally send them after calling the pre-processing method\r\n return $this->_templateObject->fetch($this->getViewId());\r\n }",
"public function display() {\r\n\t\t$this->script();\r\n\t\t$this->html();\r\n\t\t\r\n\t}",
"function index()\n {\n //call some deafaults not to spoil template\n $data=$this->default_data();\n $this->template($data);\n\n }",
"protected function OnOutput()\n\t{\n\t\t$vars = array('title' => $this->title, 'content' => $this->content,'user' => $this->user,'scripts' => $this->scripts,'categories' => $this->categories);\n\t\t$page = $this->Template('view/tpl_main.php', $vars);\n\t\techo $page;\n\t}",
"function run() {\n\t\t$view = new View();\n\t\t\n\t\t$students = new Student();\n\t\tif ($view->students_tbl = $students->get_students_as_tbl_arr() ) {\n\t\t\t$view->error = $students->get_error();\n\t\t}\n\n\t\t$view->student_desc = $students->get_student_desc();\n\t\t$view->render('main_page.php');\n\t}",
"public function run()\n {\n $this->runAction();\n\n $this->view->setTemplate($this->request->getRequestedResource() . DIRECTORY_SEPARATOR . $this->getTemplateName() . '.twig');\n }",
"public function render() {\n\t\tob_start();\n\n\t\t$this->resolve_template();\n\n\t\treturn ob_get_clean();\n\t}",
"public function execute()\n {\n $document = $this->getApplication()->getDocument();\n $viewFormat = $this->getInput()->getWord('format', 'html');\n $viewName = $this->getInput()->getWord('view', 'dashboard');\n $layoutName = $this->getInput()->getWord('layout', 'default');\n\n $this->getInput()->set('view', $viewName);\n\n // Register the layout paths for the view\n $paths = new \\SplPriorityQueue;\n\n $themeOverride = JPATH_THEMES . '/' . $this->getApplication()->get('theme') . '/html/' . strtolower($viewName);\n if (is_dir($themeOverride)) {\n $paths->insert($themeOverride, 'normal');\n }\n\n $paths->insert(JPATH_COBALT . '/View/' . ucfirst($viewName) . '/tmpl', 'normal');\n\n $viewClass \t= 'Cobalt\\\\View\\\\' . ucfirst($viewName) . '\\\\' . ucfirst($viewFormat);\n $modelClass = ucfirst($viewName);\n\n if (class_exists('Cobalt\\\\Model\\\\'.$modelClass) === false) {\n $modelClass = 'DefaultModel';\n }\n\n $model = $this->getModel($modelClass);\n\n /** @var $view \\Joomla\\View\\AbstractHtmlView **/\n $view = new $viewClass($model, $paths);\n $view->setLayout($layoutName);\n $view->document = $document;\n\n // Render our view.\n echo $view->render();\n\n return true;\n }",
"public function run() {\n $this->render('dataSaved', array());\n }",
"public function index() {\n $this->template->allFoundItems = Found::showAll();\n $this->template->display( 'index.html.php' );\n }",
"public function execute ()\n\t{\n\t\tparent::execute();\n\t\t\n\t\t// set our template\n\t\t$this->setTemplate(\"ServerExplorerSuccess.php\");\n\n\t\t// set the title\n\t\t$this->setTitle(\"Server Explorer\");\n\t}",
"public function execute()\n {\n //echo __('Hello Webkul Team.');\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }",
"public function execute()\n {\n return $this->renderMyQuestionsAdminPage(__('Questions'));\n }",
"public function renderAction(\\TYPO3\\Semantic\\Domain\\Model\\Sparql\\Query $query) {\n\t\t$this->view->assign('results', $query->execute());\n\t}",
"public function render()\n {\n \n $v = $this->vars;\n \n ob_start();\n foreach( $this->templates as $template )\n {\n if( Fs::exists( GAIA_PATH.'modules/'.$template.'.tpl' ) )\n include GAIA_PATH.'modules/'.$template.'.tpl';\n elseif( Fs::exists( GAIA_PATH.'wbf/'.$template.'.tpl' ) )\n include GAIA_PATH.'wbf/'.$template.'.tpl';\n else \n echo 'Missing Template '.$template.NL;\n }\n \n $maincontent = ob_get_contents();\n ob_end_clean();\n \n $this->renderedContent = $maincontent;\n\n return $this->renderedContent;\n\n }",
"function run()\r\n\t{\r\n//\t\t$trail->add(new Breadcrumb($this->get_browse_cda_languages_url(), Translation :: get('Cda')));\r\n//\t\t$trail->add(new Breadcrumb($this->get_variable_translations_searcher_url(), Translation :: get('SearchVariableTranslations')));\r\n\r\n\t\t$this->display_header($trail);\r\n\t\techo $this->display_form();\r\n\t\techo '<br />';\r\n echo $this->get_table();\r\n\t\t$this->display_footer();\r\n\t}",
"public function index()\n {\n Template::render();\n }",
"public function index()\n {\n Template::render();\n }",
"function view($template, $data = array(), $return = FALSE)\n\t{\n\t\tforeach ($data as $key => $val)\n\t\t{\n\t\t\t$this->assign($key, $val);\n\t\t}\n\n\t\tif ($return == FALSE)\n \t\t{\n \t\t$CI =& get_instance();\n \tif (method_exists( $CI->output, 'set_output' ))\n \t{\n \t$CI->output->set_output( $this->fetch($template) );\n }\n else\n {\n $CI->output->final_output = $this->fetch($template);\n }\n return;\n\t\t}\n\t\telse\n {\n return $this->fetch($template);\n \t}\n }",
"protected function content_template() {}",
"protected function content_template() {}",
"public function execute()\n\t{\n\t\t$isAjax = $this->getRequest()->isAjax();\n\t\tif ($isAjax){\n\t\t\t$layout = $this->_layout;\n\t\t\t$layout->getUpdate()->load(['listingtabs_index_ajax']);\n\t\t\t$layout->generateXml();\n $output = $layout->getOutput();\n $this->getResponse()->setHeader('Content-type', 'application/json');\n\t\t\tdie($this->jsonEncoder->encode(array('items_markup' => $output)));\n }\n\t\t$resultPage = $this->resultPageFactory->create();\n\t\t$resultPage->getConfig()->getTitle()->prepend(__('SM Listing Tabs'));\n\t\treturn $resultPage;\n\t}",
"public function indexAction(array $results)\n { \n return $this->render('default/result.html.twig', array ('results'=>$results));\n }",
"public function display() {\n echo $this->render();\n }",
"protected function display($templateData) {\n }",
"public function run() : void\n {\n $passwordsArray = [];\n $dataParams = $this->dataValidation();\n //validation ok\n if( $dataParams['page'] === \"resultPage\") {\n $page = $dataParams['page']; \n $passwordsArray = $this->generatePassword($dataParams);\n //invalid validation\n } else {\n $page = $dataParams['page'];\n }\n\n $page = $dataParams['page'];\n //passing parameters to View\n $this->view->render($page, $dataParams, $passwordsArray);\n }",
"public function executeAction()\n {\n $this->_helper->viewRenderer->setNoRender(true);\n \n $usersAll = $this->prepareUsersForExecution($this->provider_name, $this->provider_type);\n $ret = $this->executeAllUsers($usersAll);\n \n echo $ret;\n }",
"public function processaTemplate() {\n return $this->fetch('partita_'.$this->_layout.'.tpl');\n }",
"public function execute()\r\n\t{\r\n\t\t// Provide instantiation\r\n\t\tstatic $jblesta = array();\r\n\t\t\r\n\t\tif (! empty( $jblesta ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Lets establish our default to return just in case\r\n\t\t$jblesta\t=\tarray(\r\n\t\t\t\t'enabled'\t=>\tfalse,\r\n\t\t\t\t'showinfo'\t=>\ttrue,\r\n\t\t\t\t//'template'\t=>\t'templates/' . ( isset( $vars['template'] ) ? $vars['template'] : 'default' )\r\n\t\t\t\t);\r\n\t\t\r\n\t\t// If we are disabled don't run ;-)\r\n\t\tif (! ensure_active( 'visual' ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$config\t=\tdunloader( 'config', 'jblesta' );\r\n\t\t$api\t=\tdunloader( 'api', 'jblesta' );\r\n\t\t$doc\t=\tdunloader( 'document', true );\r\n\t\t$params\t=\t$this->_assembleCall();\r\n\t\t$task\t=\t'Render';\r\n\t\t\r\n\t\t// Make the call\r\n\t\t$call = $api->render( $params );\r\n\t\t\r\n\t\t// Grab for debugging purposes\r\n\t\t$this->debugcurl\t=\t$api->debug;\r\n\t\t\r\n\t\tif (! $call ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$call->htmlheader\t=\t$this->_utf8convert( base64_decode( $call->htmlheader ) );\r\n\t\t$call->htmlfooter\t=\t$this->_utf8convert( base64_decode( $call->htmlfooter ) );\r\n\t\t\r\n\t\t// Set pieces into place\r\n\t\t$this->setHead( $call );\r\n\t\t$this->setFooter( $call );\r\n\t\t$this->setHeader( $call );\r\n\t\t\r\n\t\t// Do cleanup work\r\n\t\t$regexes\t=\t$this->_gatherRegex();\r\n\t\t\r\n\t\tforeach( $regexes as $type => $regex ) {\r\n\t\t\t$this->_cleanup( $regex, $type );\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Reset CSS\r\n\t\tif ( $config->get( 'resetcss', 0 ) ) {\r\n\t\t\t$this->headoutput\t.=\t\"\\r\\n\"\r\n\t\t\t\t\t\t\t\t.\t'<link rel=\"stylesheet\" href=\"' . rtrim( get_baseurl( 'jblesta' ), '/' ) . '/css/index?f=reset&t=assets\" type=\"text/css\" />';\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Custom CSS\r\n\t\tif ( get_path( 'assets', 'jblesta', 'custom.css' ) ) {\r\n\t\t\t$this->headoutput\t.=\t\"\\r\\n\"\r\n\t\t\t\t\t.\t'<link rel=\"stylesheet\" href=\"' . rtrim( get_baseurl( 'jblesta' ), '/' ) . '/css/index?f=custom&t=assets\" type=\"text/css\" />';\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Hide asides (myinfos)\r\n\t\tif (! $config->get( 'showmyinfo', true ) ) {\r\n\t\t\t$doc->addStyleDeclaration( \"#jblestawrapper aside.left_content { display: none; }\" );\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Gather variables to return to template\r\n\t\t// -------------------------------------------\r\n\t\t$jblesta['enabled']\t\t=\ttrue;\t\t\t\t\t\t\t\t\t\t\t// Are we enabled?\r\n\t\t$jblesta['showinfo']\t=\t(bool) $config->get( 'showmyinfo', false );\r\n\t\t$jblesta['showheader']\t=\t(bool) $config->get( 'showheader', false );\r\n\t\t$jblesta['headoutput']\t=\t$this->getItem( 'head' );\t\t\t\t\t\t// Grab the head data?\r\n\t\t$jblesta['templatedir']\t=\trtrim( get_baseurl( 'jblesta' ), '/' ) . '/templates/' . get_version() . '/';\r\n\t\t$jblesta['cssdir']\t\t=\trtrim( get_baseurl( 'jblesta' ), '/' ) . '/css/index?f=';\r\n\t\t\r\n\t\t$doc->setVar( 'jblesta', (object) $jblesta );\r\n\t\treturn true;\r\n\t}",
"public function run()\n { \n if(isset($_GET['nombre'])){\n\t\t\t$nombre = $_GET['nombre'];\n\t\t}\n\t\telse{\n\t\t\t$nombre = '';\n\t\t}\n\t\t\n\t\tif(isset($_GET['tipo'])){\n\t\t\t$tipo = $_GET['tipo'];\n\t\t}\n\t\telse{\n\t\t\t$tipo = '';\n\t\t}\n\t\t\n\t\t$model = new Variables;\n\t\t$criteria = new CDbCriteria;\n\t\t$criteria->addCondition('descripcion_tipo_variable LIKE \"%'. $nombre . '%\"');\n\t\tif($tipo != '')\n\t\t\t$criteria->compare('id_tipo_variable', $tipo);\n\t\t$criteria->order = 'id_tipo_variable DESC';\n\t\t\n\t\t$tipos_variable = CHtml::listData(TiposVariable::model()->findAll(), 'id', 'nombre_tipo_variable');\n\t\t$tipos_variable[\"\"] = \"Todos los tipos de variable\";\n\t\tksort($tipos_variable);\n\n\t\t\n\t\t$reporte = new CActiveDataProvider($model, array('criteria' => $criteria));\n\t\t$errores = \"\";\n\n $this->controller->render('lista_variables',array(\n\t\t\t'nombre' => $nombre,\n\t\t\t'tipo' => $tipo,\n\t\t\t'errores' => $errores,\n\t\t\t'tipos_variable' => $tipos_variable,\n\t\t\t'dataProvider' => $reporte,\n ));\n }",
"public function output(){\n\t\t$this->index($this->input->get('action'));\n\t}",
"public function print_template()\n {\n }",
"public function draw() {\n\n $templates = $this->templateDao->get_all_templates();\n if ($templates === null) {\n $templates = [];\n echo \"</br><b>ERROR: get_all_templates did not return a valid result.</b>\";\n }\n\n include_once Config::VIEW_PATH.\"admin-main-page.php\";\n }",
"public function execute()\n\t{\n\t\t$this->output = $this->output->getHelpOutput();\n\t\t$this->help();\n\t\t$this->output->render();\n\t}",
"public function print_template()\n {\n }",
"public function respond()\n\t{\n\t\t$this->setTemplate();\n\t\t$this->template->setGuid( $this->request['guid'] );\n\t\t$this->template->setContent( $this->view->getContent() );\n\t\n\t\techo $this->template->request();\t\n\t}",
"public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }",
"public function run()\n\t{\n\t\tif ( $this->notFound() ) {\n\t\t $this->setNotFoundContent();\n\t\t}\n elseif ( $this->success() ) {\n\t\t $this->setSuccessContent();\n\t\t}\n else {\n $this->setFormContent();\n }\n\t}",
"protected function _run() {\n $tmpContent = $this->_content;\n $this->_content = $this->_getCurrentTemplateContent();\n $spaceContent = $this->_parse();\n $this->_content = $tmpContent;\n $content = '';\n\n if(!$spaceContent) {\n $spaceContent = $this->_parse();\n }\n\n $this->_parseParams();\n $news = Newslog_Models_Mapper_NewsMapper::getInstance()->fetchAll(null, array('created_at ' . $this->_orderDirection), $this->_limit, 0);\n\n if(!is_array($news) || empty($news)) {\n return 'You don\\'t have news yet.';\n }\n\n $this->_spaceContent = $spaceContent;\n foreach($news as $newsItem) {\n if(Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_ADMINPANEL)) {\n $spaceContent = '<input type=\"hidden\" class=\"news-list-hidden news-list-hidden-' . $newsItem->getId() . '\" />' . $this->_spaceContent;\n }\n $content .= preg_replace('~{\\$' . self::NEWS_WIDGET_NAME . ':(.+)}~uU', '{$' . self::NEWS_WIDGET_NAME . ':' . $newsItem->getPageId() . ':$1}', $spaceContent);\n }\n $parser = new Tools_Content_Parser($content, array());\n return $parser->parseSimple();\n }",
"public function run()\n {\n $cache = new Cache();\n $this->menuHtml = $cache->get($this->cacheKey);\n if( ! $this->menuHtml) {\n $this->data = \\R::getAssoc(\"SELECT * FROM {$this->table}\");\n $this->tree = $this->getTree();\n $this->menuHtml = $this->getMenuHtml($this->tree);\n\n $cache->set($this->cacheKey, $this->menuHtml, $this->cache);\n }\n $this->output();\n }",
"public function render() {\n\n\t\t$context = $this->options;\n\t\t$context = $this->load($context);\n\n\t\textract($context);\n\n\t\tinclude __DIR__ . '/../views/' . $this->template();\n\t}",
"protected function render()\n {\n $params = ['title' => $this->title, 'content' => $this->content];\n $html = $this->template('Views/v_main.php', $params);\n echo $html;\n }",
"function showResults(){\n global $ilUser, $tpl, $ilTabs, $ilLocator, $ilToolbar;\n\n $ilTabs->activateTab(\"showResults\");\n\n $ilToolbar->setFormAction($this->ctrl->getFormAction($this));\n $ilToolbar->addFormButton($this->txt(\"results_export\"), 'exportResultData');\n\n $tpl->setContent($this->initResultsTable());\n }",
"public function run()\n {\n $this->render('search-triple-widget');\n }",
"public function dispAction()\n {\n // Return the rendered webpage\n return $this->render('default/disp.html.twig');\n }",
"public function render()\r\n\t{\r\n\t\t// The formatted result has not been generated yet\r\n\t\tif( empty($this->result) )\r\n\t\t{\r\n\t\t\t// Generate the result using the default format for the chosen template\r\n\t\t\t$this->format('{+BALANCE}');\r\n\t\t}\r\n\r\n\t\t// Prepare item data for template\r\n\t\t$item = get_object_vars($this);\r\n\t\tunset($item['template'], $item['options']);\r\n\r\n\t\t// Load the chosen template\r\n\t\t$template = new ThumbsUp_Template(THUMBSUP_DOCROOT.'templates/'.$this->template.'.php');\r\n\r\n\t\t// Pass on all item data to the template\r\n\t\t$template\r\n\t\t\t->set('item', (object) $item)\r\n\t\t\t->set('template', $this->template)\r\n\t\t\t->set('options', (object) $this->options);\r\n\r\n\t\t// Render the template output\r\n\t\treturn $template->render();\r\n\t}",
"public function execute()\n {\n $smarty = get_smarty();\n\n $smarty->assign(\"kopanoAccount\", ($this->kopanoAccount)?\"checked\":\"\");\n $smarty->assign(\"kopanoHidden\", ($this->kopanoHidden)?\"checked\":\"\");\n $smarty->assign(\"kopanoHttpPort\", $this->kopanoHttpPort);\n $smarty->assign(\"kopanoSslPort\", $this->kopanoSslPort);\n $smarty->assign(\"kopanoContainsPublic\", ($this->kopanoContainsPublic)?\"checked\":\"\");\n $smarty->assign(\"kopanoFilePath\", $this->kopanoFilePath);\n $smarty->assign(\"goKopanoArchiveServer\", ($this->goKopanoArchiveServer)?\"checked\":\"\");\n\n return($smarty->fetch(get_template_path('kopanoServer.tpl', TRUE, dirname(__FILE__))));\n }",
"function execute()\r\n {\r\n\t\t$cardName = urldecode($this->getRequest()->cardName);\r\n\t\t$cardInfo = TextHelper::getCardText($cardName);\r\n\r\n switch($this->getFormat())\r\n {\r\n case \"json\":\r\n $this->getResponse()->cardInfo = json_encode($cardInfo);\r\n $this->getResponse()->render(ROOT_DIRECTORY . \"/views/textData.json.tpl.php\");\r\n break;\r\n case \"html\":\r\n $this->getResponse()->cardInfo = $cardInfo;\r\n $this->getResponse()->render(ROOT_DIRECTORY . \"/views/textData.html.tpl.php\");\r\n break;\r\n default:\r\n $this->getResponse()->redirect(BASE_URL);\r\n break;\r\n }\r\n }",
"public function Run() {\n\t\tif(!$this->IfDebug()) {\n\t\t\t$this->PageViewSetErrorStatus(404, 'NO Twig-TPL-DEBUG Service has been activated on this server ...');\n\t\t\treturn;\n\t\t} //end if\n\t\t//--\n\n\t\t//--\n\t\t$tpl = $this->RequestVarGet('tpl', '', 'string');\n\t\t//--\n\n\t\t//--\n\t\t$this->PageViewSetCfg('rawpage', true);\n\t\t//--\n\t\t$this->PageViewSetVar(\n\t\t\t'main',\n\t\t\t(string) SmartMarkersTemplating::render_file_template(\n\t\t\t\t'lib/core/templates/debug-profiler-util.htm',\n\t\t\t\t[\n\t\t\t\t\t'CHARSET' \t=> Smart::escape_html(SmartUtils::get_encoding_charset()),\n\t\t\t\t\t'TITLE' \t=> '{{ Twig-TPL }} Template Debug Profiling',\n\t\t\t\t\t'MAIN' \t\t=> (string) (new \\SmartModExtLib\\TplTwig\\Templating())->debug($tpl)\n\t\t\t\t],\n\t\t\t\t'no'\n\t\t\t)\n\t\t);\n\t\t//--\n\n\t}",
"private function renderTemplate(){\n\t\trequire($this->TemplateFile);\n\t}",
"static public function display($action) {\n if (!file_exists(\"$action.html\")) return;\n $template = new PHPTAL(\"$action.html\");\n $template->setPhpCodeDestination('./tmp/');\n // $template->setPostFilter(new RestoreBrTags());\n $template->instances = self::$instances;\n $template->levels = self::$levels;\n switch ($action) {\n case 'boxes':\n $template->setPostFilter(new RestoreBrTags());\n break;\n case 'manage':\n View::init();\n $template->views = View::$instances;\n break;\n }\n print $template->execute();\n }",
"function render()\n\t{\n\t\tif (isset($this->result)) {\n\t\t\t$this->usageError('Nothing to render!');\n\t\t}\n\t\t// @todo render\n\t}",
"public static function renderTemplate()\n {\n echo self::$template;\n }",
"public function index() {\n\t $this->registry->template->show();\n\t}",
"function viewresult($rendered=false){\n\t\tif($rendered){\n\t\t\treturn $this->view->renderresultsimple($this->result);\n\t\t}\n\t\treturn $this->view->returnresultsimple($this->result);\n\t}",
"public function run()\n\t{\n\t\t$this->renderContent();\n\t\t$content=ob_get_clean();\n\t\tif($this->hideOnEmpty && trim($content)==='')\n\t\t\treturn;\n\t\techo $content;\n\t}",
"protected function content_template()\n\t{\n\t\t//\n\t}",
"public function display(){\n\t\t$this->smarty->assign(\"main_content\",$this->template) ;\n\t\t$this->setTemplate(\"common/page.tpl\") ;\n\t\tparent::display() ;\n\t}",
"public function render_page() {\n\t\t$this->render_template();\n\t}",
"public function makeDisplay()\n\t{\n\t\t$config = Config::getInstance();\n\n\t\t$this->runtimeProcessTemplate();\n\t\t$display = $this->display;\n\n\t\t$headerTemplate = new ViewStringTemplate($this->headerTemplate);\n\t\t$footerTemplate = new ViewStringTemplate($this->footerTemplate);\n\n\t\t// This is a list of all of the 'array' items that need to be cycled through and added as a single items\n\t\t$groups = array('script',\n\t\t\t\t\t\t'scriptStartup',\n\t\t\t\t\t\t'meta',\n\t\t\t\t\t\t'jsIncludes',\n\t\t\t\t\t\t'cssIncludes',\n\t\t\t\t\t\t'preStartupJs',\n\t\t\t\t\t\t'headerContent');\n\n\t\t$output = PHP_EOL;\n\t\tforeach($groups as $variable)\n\t\t{\n\t\t\t$content = '';\n\t\t\t$output = '';\n\t\t\tforeach($this->$variable as $content)\n\t\t\t{\n\t\t\t\t$output .= $content . PHP_EOL;\n\t\t\t}\n\t\t\t$headerTemplate->addContent(array($variable => $output));\n\t\t\t$footerTemplate->addContent(array($variable => $output));\n\t\t}\n\n\t\tforeach($this->regions as $name => $content)\n\t\t{\n\n\t\t\t$display->addContent(array($name => $content));\n\t\t}\n\n\t\t$jsInclude = ActiveSite::getLink() . 'javascript/';\n\t\t$headerFinal = $headerTemplate->getDisplay();\n\t\t$footerFinal = $footerTemplate->getDisplay();\n\n\t\t$display->addContent(array('js_path' => $jsInclude, 'head' => $headerFinal, 'foot' => $footerFinal));\n\t\t$this->addTemplateContent($display);\n\n\t\treturn $display->getDisplay();\n\t}",
"public function execute()\n {\n if ($this->argument === NULL) {\n $this->controller->{$this->action}();\n }\n else {\n $this->controller->{$this->action}($this->argument);\n }\n\n // TODO: check for non-default template\n $template = DEFAULT_TEMPLATE;\n\n $view = new AppView($this->page, $template);\n $view->show_view_with_context_variables($this->controller->getModelViewContext());\n }",
"protected function output_result($res)\n\t{\n\t\tglobal $s_runconf;\n\t\t$nw = get_microtime();\n\n\t\t$this->output_headers();\n\t\techo $res;\n\n\t\tif (DEBUG)\n\t\t{\n\t\t\tdwrite('**[Page processing end]**');\n\t\t\tdwrite('Page processing takes: ' . number_format(($nw - $this->_start_time), 8));\n\t\t\tdwrite('SQL parsing takes: ' . number_format($s_runconf->get('time.sql.parse'), 8));\n\t\t\tdwrite('SQL queries takes: ' . number_format($s_runconf->get('time.sql.query'), 8));\n\t\t\tdwrite('Templates takes: ' . number_format($s_runconf->get('time.template'), 8) . ' (approx, including template loading)');\n\n\t\t\t$debuglog_str = dflush_str();\n\n\t\t\tif (LOG_DEBUG_INFO) {\n\t\t\t\t_log(\"[[ Page info ]]\\n\\n$debuglog_str\\n\\n\");\n\t\t\t}\n\n\t\t\tif ($this->content_type=='text/html' && SHOW_DEBUG_INFO)\n\t\t\t{\n\t\t\t\techo '<div style=\"z-index:99999;position:absolute;top:0;left:0;font-size:10px;font-family:Tahoma;font-weight:bold;background-color:#000;color:#FFF;cursor:pointer;cursor:hand;\"';\n\t\t\t\techo ' onclick=\"var s=document.getElementById(\\'__s_debug__\\').style;s.display=s.display==\\'\\'?\\'none\\':\\'\\';return false;\">#</div>';\n\t\t\t\techo '<div id=\"__s_debug__\" style=\"z-index:99999;position:absolute;top:15px;left:10px;border:1px solid #888;background-color:#FFF;overflow:auto;width:800px;height:300px;display:none;\">';\n\t\t\t\techo '<pre style=\"text-align:left;padding:5px;margin:0;\" class=\"s-debug\">';\n\t\t\t\techo get_debuglog_html($debuglog_str);\n\t\t\t\techo '</pre></div>';\n\t\t\t}\n\t\t}\n\t}",
"public function displayTask()\n\t{\n\t\t// Get filters\n\t\t$filters = array(\n\t\t\t'component' => urldecode(Request::getState(\n\t\t\t\t$this->_option . '.' . $this->_controller . '.component',\n\t\t\t\t'component',\n\t\t\t\t''\n\t\t\t)),\n\t\t\t'sort' => Request::getState(\n\t\t\t\t$this->_option . '.' . $this->_controller . '.sort',\n\t\t\t\t'filter_order',\n\t\t\t\t'c.name'\n\t\t\t),\n\t\t\t'sort_Dir' => Request::getState(\n\t\t\t\t$this->_option . '.' . $this->_controller . '.sortdir',\n\t\t\t\t'filter_order_Dir',\n\t\t\t\t'ASC'\n\t\t\t),\n\t\t\t// Get paging variables\n\t\t\t'limit' => Request::getState(\n\t\t\t\t$this->_option . '.' . $this->_controller . '.limit',\n\t\t\t\t'limit',\n\t\t\t\tConfig::get('list_limit'),\n\t\t\t\t'int'\n\t\t\t),\n\t\t\t'start' => Request::getState(\n\t\t\t\t$this->_option . '.' . $this->_controller . '.limitstart',\n\t\t\t\t'limitstart',\n\t\t\t\t0,\n\t\t\t\t'int'\n\t\t\t)\n\t\t);\n\n\t\t$obj = Message\\Component::blank();\n\n\t\t// Get a record count\n\t\t$total = $obj->getCount($filters, true);\n\n\t\t// Get records\n\t\t$rows = $obj->getRecords($filters, true);\n\n\t\t$components = $obj->getComponents();\n\n\t\t// Output the HTML\n\t\t$this->view\n\t\t\t->set('filters', $filters)\n\t\t\t->set('total', $total)\n\t\t\t->set('rows', $rows)\n\t\t\t->set('components', $components)\n\t\t\t->display();\n\t}",
"public function main()\n {\n // Set mode\n $mode = $this->getMode();\n if ( $mode < 1 )\n {\n return false;\n }\n\n $this->init();\n\n $arr_result = $this->initSql();\n if ( $arr_result[ 'error' ][ 'status' ] )\n {\n $template = $arr_result[ 'error' ][ 'header' ] . $arr_result[ 'error' ][ 'prompt' ];\n return $template;\n }\n\n $arr_result = $this->getRows( $arr_result );\n if ( $arr_result[ 'error' ] )\n {\n return $arr_result[ 'error' ];\n }\n $rows = $arr_result[ 'rows' ];\n unset( $arr_result );\n\n $this->pObj->rows = $rows;\n // #59669, dwildt, 1+\n $this->pObj->rowsLocalised = $rows;\n\n $rows = $this->getRowsConsolidated( $rows );\n $this->pObj->rows = $rows;\n\n $this->pObj->objConsolidate->children_relation();\n $rows = $this->pObj->rows;\n\n $this->hook_afterConsolidatetRows();\n\n// var_dump( __METHOD__, __LINE__, $rows );\n// die( ' :( ' );\n // Prompt status of rows to the DRS\n $this->mainRowsDRS( $rows );\n\n $template = $this->template( $rows );\n\n $this->mainStatistics();\n// var_dump( __METHOD__, __LINE__, $template );\n//die( ':(' );\n\n return $template;\n }",
"public function run()\n {\n \\App\\Model\\TemplateLib::create([\n 'name' => 'FNK Test',\n 'stylesheet' => 'body {background:white};',\n 'javascript' => '',\n 'code_header' => $this->codeHeader,\n 'code_footer' => $this->codeFooter,\n 'code_index' => $this->codeIndex,\n 'code_search' => '<h1>saya di search</h1>',\n 'code_category' => '<h1>saya di category</h1>',\n 'code_page' => $this->codePage,\n 'code_post' => $this->codePost,\n 'code_about' => '<h1>saya di about</h1>',\n 'code_404' => '<h1>saya di 404</h1>',\n ]);\n }"
] | [
"0.7692251",
"0.7268508",
"0.7235308",
"0.70113623",
"0.69297725",
"0.6907735",
"0.68597895",
"0.6858899",
"0.6796389",
"0.67761177",
"0.67365605",
"0.6734185",
"0.67292106",
"0.6666255",
"0.6638964",
"0.66284394",
"0.6626553",
"0.6622789",
"0.6615504",
"0.6603581",
"0.6602555",
"0.6602555",
"0.6602555",
"0.6586464",
"0.6580522",
"0.6562954",
"0.6562699",
"0.6558826",
"0.6558826",
"0.6553388",
"0.65452576",
"0.65081346",
"0.6479252",
"0.64123666",
"0.6410705",
"0.6380943",
"0.6379257",
"0.63714737",
"0.63665146",
"0.63635164",
"0.6349539",
"0.6348636",
"0.6326685",
"0.6325851",
"0.63041794",
"0.6304177",
"0.62886196",
"0.62785023",
"0.62761813",
"0.6273928",
"0.6240993",
"0.6237879",
"0.6235916",
"0.6235916",
"0.62342453",
"0.62193036",
"0.62193036",
"0.62141275",
"0.6205349",
"0.6194622",
"0.61905676",
"0.6189859",
"0.61889464",
"0.61791253",
"0.6177774",
"0.61706555",
"0.61593604",
"0.6155941",
"0.6155563",
"0.61552906",
"0.6154711",
"0.6154568",
"0.6143777",
"0.6140921",
"0.6138409",
"0.6131172",
"0.6129718",
"0.61258465",
"0.61225426",
"0.6114255",
"0.6113212",
"0.61029285",
"0.6101384",
"0.60920423",
"0.6087957",
"0.6087261",
"0.6086884",
"0.60842794",
"0.6078382",
"0.60722554",
"0.6069274",
"0.6068114",
"0.60666466",
"0.60653657",
"0.6061916",
"0.60587585",
"0.6057432",
"0.6054565",
"0.60534215",
"0.6042824",
"0.60423857"
] | 0.0 | -1 |
executes & returns or displays the template results | function Fetch($resource_name, $cache_id = null, $compile_id = null, $display = false)
{
return $this->_smarty->fetch($resource_name, $cache_id, $compile_id, $display);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function render_result()\n\t{\n\t\tif (!array_key_exists('self', $this->vars)) {\n\t\t\t$this->vars['self'] = $this;\n\t\t}\n\n\t\t$tpl = new STemplate();\n\t\t$tpl->vars =& $this->vars;\n\t\t$tpl->controls =& $this->controls;\n\n\t\t$res = $tpl->process($this->template_name);\n\n\t\tif (array_key_exists(PAGE_FILTER_RENDER, $this->_events))\n\t\t{\n\t\t\t$filters = array_reverse($this->_events[PAGE_FILTER_RENDER]);\n\n\t\t\tforeach ($filters as $method) {\n\t\t\t\t$res = call_user_func(array($this, $method), $res);\n\t\t\t}\n\t\t}\n\n\t\tif (strlen($this->design_page_name) && @file_exists($this->design_page_name))\n\t\t{\n\t\t\t$tpl = new STemplate();\n\t\t\t$tpl->vars =& $this->vars;\n\t\t\t$tpl->controls =& $this->controls;\n\n\t\t\t$tpl->vars['__content__'] = $res;\n\t\t\t$res = $tpl->process($this->design_page_name);\n\t\t}\n\n\t\treturn $res;\n\t}",
"public function execute() {\n $this->updateTeamSelector();\n\n $this->display();\n $this->smartyHelper->displayTemplate();\n }",
"public function renderTemplate();",
"function render() {\r\n $sendOutput = true;\r\n // check if plog is configured to use conditional http headers and stuff like\r\n // that... Also, use the HttpCache class to determine whether we should send the\r\n // content or not\r\n if ($this->isCached()) {\r\n // some debug information\r\n $timestamp = $this->_templateObject->getCreationTimestamp();\r\n // and now send the correct headers\r\n if (Http_Cache::httpConditional($timestamp, $this->getCacheTimeSeconds())) $sendOutput = false;\r\n $header = \"Last-Modified: \" . gmdate('D, d M Y H:i:s', $timestamp) . ' GMT';\r\n header($header);\r\n }\r\n else {\r\n // send the results if needed\r\n $sendOutput = true;\r\n }\r\n if ($sendOutput) {\r\n // pass all the values to the template object\r\n $this->_templateObject->assign($this->_params);\r\n // and finally send them after calling the pre-processing method\r\n $content = $this->_templateObject->fetch($this->getViewId());\r\n print ($content);\r\n }\r\n }",
"public function processaTemplate() {\n return $this->fetch('ricerca_'.$this->_layout.'.tpl');\n }",
"function show_parsed(){ // parsing template (if needed) and showing the result of parsing\n\tif (isset($this->result)) echo $this->result;\n\telse {\n\t\t$this->parse();\n\t\techo $this->result;\n\t}\n}",
"public function run()\n\t{\n\t\techo vsprintf($this->template,$this->_contents);\n\t}",
"function output( \\Smarty_Internal_Template $template, $results ) {\r\n\t\treturn $template->smarty->fetch( 'string:' . $results->body );\r\n\t}",
"protected function _run()\n {\n $this->strictVars(true);\n\n //assign variables to the template engine\n $vars = get_object_vars($this);\n foreach ($vars as $key => $value) {\n if ('_' != substr($key, 0, 1)) {\n $this->_smarty->assign($key, $value);\n }\n }\n\n //why 'this'?\n //to emulate standard zend view functionality\n //doesn't mess up smarty in any way\n $this->_smarty->assign_by_ref('this', $this);\n\n //smarty needs a template_dir, and can only use templates,\n //found in that directory, so we have to strip it from the filename\n $file = func_get_arg(0);\n\n echo $this->_smarty->fetch($file);\n //process the template (and filter the output)\n }",
"protected function doExecute()\n {\n $view = $this->getView('', 'html', 'edge');\n\n $view['fruit'] = ['Name' => 'Apple', 'Year' => '18'];\n\n return $view->setLayout('home')->render();\n }",
"function index(){\n\t\t$this->template->run();\n\t}",
"public function display() {\r\n echo $this->template;\r\n }",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"protected function render_template()\n {\n }",
"function display($template, $cache_id=null, $compile_id=null)\n {\n echo $this->fetch($template, $cache_id, $compile_id);\n }",
"function fetch() {\r\n // pass all the values to the template object\r\n $this->_templateObject->assign($this->_params);\r\n // and finally send them after calling the pre-processing method\r\n return $this->_templateObject->fetch($this->getViewId());\r\n }",
"function view($template, $data = array(), $return = FALSE)\n\t{\n\t\tforeach ($data as $key => $val)\n\t\t{\n\t\t\t$this->assign($key, $val);\n\t\t}\n\n\t\tif ($return == FALSE)\n \t\t{\n \t\t$CI =& get_instance();\n \tif (method_exists( $CI->output, 'set_output' ))\n \t{\n \t$CI->output->set_output( $this->fetch($template) );\n }\n else\n {\n $CI->output->final_output = $this->fetch($template);\n }\n return;\n\t\t}\n\t\telse\n {\n return $this->fetch($template);\n \t}\n }",
"function execute( array $params = [], \\Smarty_Internal_Template $template = null ) {\r\n\t\t\r\n\t\t$this->parameters = $params;\r\n\t\t$results = static::$Delegate->getContentComponent( $params['name'], $this->name );\r\n\r\n\t\tif ( !$results ) {\r\n\t\t\treturn \"<!-- No matching component for '{$params['name']}' -->\";\r\n\t\t}\r\n\t\t// Evaluate smarty content retrieved from the DB\t\t\r\n\t\treturn $this->output( $template, $results );\r\n\t}",
"public function execute()\n {\n $translationId = $this->_initTranslation();\n\n /** @var \\Magento\\Backend\\Model\\View\\Result\\Page $resultPage */\n $resultPage = $this->resultPageFactory->create();\n $resultPage->setActiveMenu('Economix_DbTranslations::db_translations');\n $resultPage->getConfig()->getTitle()->prepend(__('Translations'));\n $resultPage->addBreadcrumb(__('Content'), __('Content'));\n $resultPage->addBreadcrumb(__('DB Translations'), __('DB Translations'), $this->getUrl('ecx_dbtranslations/dbtranslations'));\n\n if ($translationId === null) {\n $resultPage->addBreadcrumb(__('New Translation'), __('New Translation'));\n $resultPage->getConfig()->getTitle()->prepend(__('New Translation'));\n } else {\n $resultPage->addBreadcrumb(__('Edit Translation'), __('Edit Translation'));\n $resultPage->getConfig()->getTitle()->prepend(\n $this->translationFactory->create()->load($translationId)->getString()\n );\n }\n return $resultPage;\n }",
"public function render() {\n\t\tob_start();\n\n\t\t$this->resolve_template();\n\n\t\treturn ob_get_clean();\n\t}",
"public function Display()\n {\n include($this->template);\n }",
"public function run ()\n\t{\n\t\t$dump = template::dump ();\n\n\t\t$head = '';\n\t\tforeach ( $dump ['css'] as $file )\n\t\t{\n\t\t\t$head .= $this->twig->render ( 'system/html/web/snippets/css.twig', [ 'file' => $file, 'defer' => substr ( $file, 0, 2 ) == '//' ] );\n\t\t}\n\n\t\tforeach ( $dump ['js'] as $file )\n\t\t{\n\t\t\t$head .= $this->twig->render ( 'system/html/web/snippets/js.twig', [ 'file' => $file, 'defer' => substr ( $file, 0, 2 ) == '//' ] );\n\t\t}\n\n\t\t$body = '';\n\t\tforeach ( $dump ['templates'] as $template )\n\t\t{\n\t\t\t$body .= $this->twig->render ( $template ['path'], $template ['environment'] );\n\t\t}\n\n\t\t// We do not use die incase some modules need to run after the layout have been generated\n\t\techo $this->twig->render ('system/html/web/base.twig', [\n\t\t\t'head' => $head,\n\t\t\t'body' => $body\n\t\t] );\n\t}",
"public function processaTemplate() {\n return $this->fetch('partita_'.$this->_layout.'.tpl');\n }",
"public function perform()\n {\n // template var with charset used for the html pages\n $this->viewVar['charset'] = $this->config->getModuleVar('common', 'charset');\n $this->viewVar['cssFolder'] = JAPA_PUBLIC_DIR . 'styles/'.$this->config->getModuleVar('common', 'styles_folder');\n $this->viewVar['urlBase'] = $this->router->getBase(); \n $this->viewVar['loggedUserRole'] = $this->controllerVar['loggedUserRole'];\n $this->viewVar['isUserLogged'] = $this->controllerVar['isUserLogged'];\n $this->viewVar['adminWebController'] = $this->config->getVar('default_module_application_controller'); \n \n $this->viewVar['text'] = array();\n\n // get text for the front page\n $this->model->action('misc','getText', \n array('id_text' => 1,\n 'result' => & $this->viewVar['text'],\n 'fields' => array('body'))); \n \n // get result of the header and footer controller\n // \n $this->viewVar['header'] = $this->controllerLoader->header(); \n $this->viewVar['footer'] = $this->controllerLoader->footer(); \n $this->viewVar['rightBorder'] = $this->controllerLoader->rightBorder(); \n }",
"public function index() \n\t{\n\t\tif(! $this->xmlHttpRequest){\n\t\t\t$this->registry->template->show($this->file . $this->extension);\n\t\t}\n\t\telse{\n\t\t\t$this->process();\n\t\t}\n\t}",
"protected function content_template() {}",
"protected function content_template() {}",
"public function dispatch(){\n\t\t$this->structureObject->render();\n\t\t// It might be that we need to call the print view instead...\n\t\tif(isset(pRegister::arg()['print']))\n\t\t\treturn new pPrintTemplate;\n\t\t// Calling the view\n\t\treturn new pTemplate;\n\t}",
"protected function _show() {\n if ($this->_iId == '401')\n header('HTTP/1.0 401 Authorization Required');\n\n elseif ($this->_iId == '403')\n header('HTTP/1.0 403 Forbidden');\n\n elseif ($this->_iId == '404') {\n header('Status: 404 Not Found');\n header('HTTP/1.0 404 Not Found');\n }\n\n $oTemplate = $this->oSmarty->getTemplate($this->_sController, $this->_iId);\n $this->oSmarty->setTemplateDir($oTemplate);\n return $this->oSmarty->fetch($oTemplate, UNIQUE_ID);\n }",
"public function execute()\n {\n return $this->renderMyQuestionsAdminPage(__('Questions'));\n }",
"public function render()\n {\n \n $v = $this->vars;\n \n ob_start();\n foreach( $this->templates as $template )\n {\n if( Fs::exists( GAIA_PATH.'modules/'.$template.'.tpl' ) )\n include GAIA_PATH.'modules/'.$template.'.tpl';\n elseif( Fs::exists( GAIA_PATH.'wbf/'.$template.'.tpl' ) )\n include GAIA_PATH.'wbf/'.$template.'.tpl';\n else \n echo 'Missing Template '.$template.NL;\n }\n \n $maincontent = ob_get_contents();\n ob_end_clean();\n \n $this->renderedContent = $maincontent;\n\n return $this->renderedContent;\n\n }",
"public function view_results()\n {\n $obj = new CombinedAnalysis();\n $this->final_results = $obj->fetchResultsFromFiles($this->id);\n\n // show everthing in template\n $this->show_template();\n }",
"public function run()\n {\n $this->renderContent();\n echo ob_get_clean();\n }",
"function viewresult($rendered=false){\n\t\tif($rendered){\n\t\t\treturn $this->view->renderresultsimple($this->result);\n\t\t}\n\t\treturn $this->view->returnresultsimple($this->result);\n\t}",
"function perform()\n { \n // template var with charset used for the html pages\n $this->viewVar['charset'] = $this->config->getModuleVar('common', 'charset');\n // template var with css folder\n $this->viewVar['cssFolder'] = JAPA_PUBLIC_DIR . 'styles/'.$this->config->getModuleVar('common', 'styles_folder');\n\n if(isset($this->dontPerform))\n {\n return;\n }\n \n // init template 'pic' variable \n $this->viewVar['pic'] = array();\n \n // get requested picture content\n $this->model->action($this->module,'getPicture', \n array('result' => & $this->viewVar['pic'],\n 'id_pic' => (int)$this->current_id_pic,\n 'fields' => array('title','description',\n 'file','size','width','height',\n 'mime','media_folder')));\n }",
"function index()\n {\n //call some deafaults not to spoil template\n $data=$this->default_data();\n $this->template($data);\n\n }",
"public function dispAction()\n {\n // Return the rendered webpage\n return $this->render('default/disp.html.twig');\n }",
"protected function _run() {\n $tmpContent = $this->_content;\n $this->_content = $this->_getCurrentTemplateContent();\n $spaceContent = $this->_parse();\n $this->_content = $tmpContent;\n $content = '';\n\n if(!$spaceContent) {\n $spaceContent = $this->_parse();\n }\n\n $this->_parseParams();\n $news = Newslog_Models_Mapper_NewsMapper::getInstance()->fetchAll(null, array('created_at ' . $this->_orderDirection), $this->_limit, 0);\n\n if(!is_array($news) || empty($news)) {\n return 'You don\\'t have news yet.';\n }\n\n $this->_spaceContent = $spaceContent;\n foreach($news as $newsItem) {\n if(Tools_Security_Acl::isAllowed(Tools_Security_Acl::RESOURCE_ADMINPANEL)) {\n $spaceContent = '<input type=\"hidden\" class=\"news-list-hidden news-list-hidden-' . $newsItem->getId() . '\" />' . $this->_spaceContent;\n }\n $content .= preg_replace('~{\\$' . self::NEWS_WIDGET_NAME . ':(.+)}~uU', '{$' . self::NEWS_WIDGET_NAME . ':' . $newsItem->getPageId() . ':$1}', $spaceContent);\n }\n $parser = new Tools_Content_Parser($content, array());\n return $parser->parseSimple();\n }",
"public function dispatch(){\n\t\t$this->structureObject->render();\n\t\t// It might be that we need to call the print template instead...\n\t\tif(isset(pRegister::arg()['print']))\n\t\t\treturn new pPrintTemplate;\n\t\t// Calling the template\n\t\treturn new pMainTemplate;\n\t}",
"private function output() {\n \n Quantum\\Output::smartyRender();\n \n }",
"public function respond()\n\t{\n\t\t$this->setTemplate();\n\t\t$this->template->setGuid( $this->request['guid'] );\n\t\t$this->template->setContent( $this->view->getContent() );\n\t\n\t\techo $this->template->request();\t\n\t}",
"function render()\n\t{\n\t\tif (isset($this->result)) {\n\t\t\t$this->usageError('Nothing to render!');\n\t\t}\n\t\t// @todo render\n\t}",
"public function execute() {\n\t\t$data = $this->getResultData();\n\t\t$this->printText($data[0]);\n\t}",
"protected function _display($template)\n {\n echo $this->_fetch($template);\n }",
"public function execute()\n {\n $smarty = get_smarty();\n\n $smarty->assign(\"kopanoAccount\", ($this->kopanoAccount)?\"checked\":\"\");\n $smarty->assign(\"kopanoHidden\", ($this->kopanoHidden)?\"checked\":\"\");\n $smarty->assign(\"kopanoHttpPort\", $this->kopanoHttpPort);\n $smarty->assign(\"kopanoSslPort\", $this->kopanoSslPort);\n $smarty->assign(\"kopanoContainsPublic\", ($this->kopanoContainsPublic)?\"checked\":\"\");\n $smarty->assign(\"kopanoFilePath\", $this->kopanoFilePath);\n $smarty->assign(\"goKopanoArchiveServer\", ($this->goKopanoArchiveServer)?\"checked\":\"\");\n\n return($smarty->fetch(get_template_path('kopanoServer.tpl', TRUE, dirname(__FILE__))));\n }",
"function tpl_function_db_result_call($params, &$template_object)\r\n{\r\n if (empty($params['db_object'])) {\r\n $template_object->trigger_error(\"db_result_call: missing db_object parameter\");\r\n return;\r\n }\r\n \r\n if (! is_object($params['db_object'])) {\r\n $template_object->trigger_error(\"db_result_call: db_object isn't an object\");\r\n return;\r\n }\r\n \r\n $db = $params['db_object'];\r\n \r\n if (empty($params['db_result_object'])) {\r\n $template_object->trigger_error(\"db_result_call: missing db_result_object parameter\");\r\n return;\r\n }\r\n \r\n if (! is_object($params['db_result_object'])) {\r\n $template_object->trigger_error(\"db_result_call: db_result_object isn't an object\");\r\n return;\r\n }\r\n \r\n $result_object = $params['db_result_object'];\r\n \r\n if (empty($params['db_assign'])) {\r\n $template_object->trigger_error(\"db_result_call: missing db_assign parameter\");\r\n return;\r\n }\r\n \r\n if (empty($params['db_function'])) {\r\n $template_object->trigger_error(\"db_result_call: missing db_function parameter\");\r\n return;\r\n }\r\n \r\n $db_function = $params['db_function'];\r\n \r\n $result = $result_object->$db_function();\r\n \r\n $template_object->assign($params['db_assign'], $result);\r\n \r\n if (! empty($params['db_errornumber_assign'])) {\r\n $template_object->assign($params['db_errornumber_assign'], $db->ErrorNo());\r\n }\r\n \r\n if (! empty($params['db_error_assign'])) {\r\n $template_object->assign($params['db_error_assign'], $db->ErrorMsg());\r\n }\r\n \r\n if (! empty($params['db_EOF_assign'])) {\r\n $template_object->assign($params['db_EOF_assign'], $result_object->EOF);\r\n }\r\n}",
"public function forTemplate() {\n\t\treturn; \n\t}",
"protected function OnOutput()\n\t{\n\t\t$vars = array('title' => $this->title, 'content' => $this->content,'user' => $this->user,'scripts' => $this->scripts,'categories' => $this->categories);\n\t\t$page = $this->Template('view/tpl_main.php', $vars);\n\t\techo $page;\n\t}",
"protected function content_template() {\n\t}",
"public function run()\n {\n $template = $this->_template;\n $positions = $template->getPositions();\n $assigned = [];\n foreach (Yii::$app->big->getFrontendThemePositions() as $name => $title) {\n $item = [\n 'title' => $title,\n 'blocks' => [],\n ];\n if (isset($positions[$name])) {\n $item['blocks'] = $this->getBlocks($positions[$name]);\n }\n $assigned[$name] = $item;\n }\n\n $this->registerScripts();\n\n return $this->render($this->viewFile, [\n 'availableBlocks' => $this->blocks,\n 'assignedBlocks' => $assigned,\n 'columns' => $this->columns,\n 'id' => $this->id,\n ]);\n }",
"public function template();",
"protected function _processTpl() {\n $sResult = '';\n if (file_exists($this->_sTplName)) {\n ob_start();\n require_once $this->_sTplName;\n $sResult = ob_get_clean();\n }\n\n return $sResult;\n }",
"protected function content_template()\n\t{\n\t\t//\n\t}",
"public function execute() {\n if(isset($_POST) && count($_POST)) {\n (new FormService)->handleSubmit('bowlingConfig');\n }\n $bowlingConfig = (new SessionService)->get('bowlingConfig');\n if($bowlingConfig) {\n return (new TemplateService)->bowling($bowlingConfig) . (new TemplateService)->scoringForm();\n }\n if(!$bowlingConfig) {\n return (new TemplateService)->userConfig();\n }\n }",
"public function execute()\r\n\t{\r\n\t\t// Provide instantiation\r\n\t\tstatic $jblesta = array();\r\n\t\t\r\n\t\tif (! empty( $jblesta ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// Lets establish our default to return just in case\r\n\t\t$jblesta\t=\tarray(\r\n\t\t\t\t'enabled'\t=>\tfalse,\r\n\t\t\t\t'showinfo'\t=>\ttrue,\r\n\t\t\t\t//'template'\t=>\t'templates/' . ( isset( $vars['template'] ) ? $vars['template'] : 'default' )\r\n\t\t\t\t);\r\n\t\t\r\n\t\t// If we are disabled don't run ;-)\r\n\t\tif (! ensure_active( 'visual' ) ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$config\t=\tdunloader( 'config', 'jblesta' );\r\n\t\t$api\t=\tdunloader( 'api', 'jblesta' );\r\n\t\t$doc\t=\tdunloader( 'document', true );\r\n\t\t$params\t=\t$this->_assembleCall();\r\n\t\t$task\t=\t'Render';\r\n\t\t\r\n\t\t// Make the call\r\n\t\t$call = $api->render( $params );\r\n\t\t\r\n\t\t// Grab for debugging purposes\r\n\t\t$this->debugcurl\t=\t$api->debug;\r\n\t\t\r\n\t\tif (! $call ) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t$call->htmlheader\t=\t$this->_utf8convert( base64_decode( $call->htmlheader ) );\r\n\t\t$call->htmlfooter\t=\t$this->_utf8convert( base64_decode( $call->htmlfooter ) );\r\n\t\t\r\n\t\t// Set pieces into place\r\n\t\t$this->setHead( $call );\r\n\t\t$this->setFooter( $call );\r\n\t\t$this->setHeader( $call );\r\n\t\t\r\n\t\t// Do cleanup work\r\n\t\t$regexes\t=\t$this->_gatherRegex();\r\n\t\t\r\n\t\tforeach( $regexes as $type => $regex ) {\r\n\t\t\t$this->_cleanup( $regex, $type );\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Reset CSS\r\n\t\tif ( $config->get( 'resetcss', 0 ) ) {\r\n\t\t\t$this->headoutput\t.=\t\"\\r\\n\"\r\n\t\t\t\t\t\t\t\t.\t'<link rel=\"stylesheet\" href=\"' . rtrim( get_baseurl( 'jblesta' ), '/' ) . '/css/index?f=reset&t=assets\" type=\"text/css\" />';\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Custom CSS\r\n\t\tif ( get_path( 'assets', 'jblesta', 'custom.css' ) ) {\r\n\t\t\t$this->headoutput\t.=\t\"\\r\\n\"\r\n\t\t\t\t\t.\t'<link rel=\"stylesheet\" href=\"' . rtrim( get_baseurl( 'jblesta' ), '/' ) . '/css/index?f=custom&t=assets\" type=\"text/css\" />';\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Hide asides (myinfos)\r\n\t\tif (! $config->get( 'showmyinfo', true ) ) {\r\n\t\t\t$doc->addStyleDeclaration( \"#jblestawrapper aside.left_content { display: none; }\" );\r\n\t\t}\r\n\t\t\r\n\t\t// -------------------------------------------\r\n\t\t// Gather variables to return to template\r\n\t\t// -------------------------------------------\r\n\t\t$jblesta['enabled']\t\t=\ttrue;\t\t\t\t\t\t\t\t\t\t\t// Are we enabled?\r\n\t\t$jblesta['showinfo']\t=\t(bool) $config->get( 'showmyinfo', false );\r\n\t\t$jblesta['showheader']\t=\t(bool) $config->get( 'showheader', false );\r\n\t\t$jblesta['headoutput']\t=\t$this->getItem( 'head' );\t\t\t\t\t\t// Grab the head data?\r\n\t\t$jblesta['templatedir']\t=\trtrim( get_baseurl( 'jblesta' ), '/' ) . '/templates/' . get_version() . '/';\r\n\t\t$jblesta['cssdir']\t\t=\trtrim( get_baseurl( 'jblesta' ), '/' ) . '/css/index?f=';\r\n\t\t\r\n\t\t$doc->setVar( 'jblesta', (object) $jblesta );\r\n\t\treturn true;\r\n\t}",
"function exec_xcrud($matches)\r\n{\r\n try\r\n {\r\n eval('ob_start();' . $matches[1] . '$output = ob_get_contents();ob_end_clean();');\r\n }\r\n catch (exception $e)\r\n {\r\n return 'executing error';\r\n }\r\n return $output;\r\n}",
"function handle_view_result(View_Interface $view_result){\r\n\t\treturn $view_result->render();\r\n\t}",
"public function main()\n {\n // Set mode\n $mode = $this->getMode();\n if ( $mode < 1 )\n {\n return false;\n }\n\n $this->init();\n\n $arr_result = $this->initSql();\n if ( $arr_result[ 'error' ][ 'status' ] )\n {\n $template = $arr_result[ 'error' ][ 'header' ] . $arr_result[ 'error' ][ 'prompt' ];\n return $template;\n }\n\n $arr_result = $this->getRows( $arr_result );\n if ( $arr_result[ 'error' ] )\n {\n return $arr_result[ 'error' ];\n }\n $rows = $arr_result[ 'rows' ];\n unset( $arr_result );\n\n $this->pObj->rows = $rows;\n // #59669, dwildt, 1+\n $this->pObj->rowsLocalised = $rows;\n\n $rows = $this->getRowsConsolidated( $rows );\n $this->pObj->rows = $rows;\n\n $this->pObj->objConsolidate->children_relation();\n $rows = $this->pObj->rows;\n\n $this->hook_afterConsolidatetRows();\n\n// var_dump( __METHOD__, __LINE__, $rows );\n// die( ' :( ' );\n // Prompt status of rows to the DRS\n $this->mainRowsDRS( $rows );\n\n $template = $this->template( $rows );\n\n $this->mainStatistics();\n// var_dump( __METHOD__, __LINE__, $template );\n//die( ':(' );\n\n return $template;\n }",
"public function execute()\n {\n $document = $this->getApplication()->getDocument();\n $viewFormat = $this->getInput()->getWord('format', 'html');\n $viewName = $this->getInput()->getWord('view', 'dashboard');\n $layoutName = $this->getInput()->getWord('layout', 'default');\n\n $this->getInput()->set('view', $viewName);\n\n // Register the layout paths for the view\n $paths = new \\SplPriorityQueue;\n\n $themeOverride = JPATH_THEMES . '/' . $this->getApplication()->get('theme') . '/html/' . strtolower($viewName);\n if (is_dir($themeOverride)) {\n $paths->insert($themeOverride, 'normal');\n }\n\n $paths->insert(JPATH_COBALT . '/View/' . ucfirst($viewName) . '/tmpl', 'normal');\n\n $viewClass \t= 'Cobalt\\\\View\\\\' . ucfirst($viewName) . '\\\\' . ucfirst($viewFormat);\n $modelClass = ucfirst($viewName);\n\n if (class_exists('Cobalt\\\\Model\\\\'.$modelClass) === false) {\n $modelClass = 'DefaultModel';\n }\n\n $model = $this->getModel($modelClass);\n\n /** @var $view \\Joomla\\View\\AbstractHtmlView **/\n $view = new $viewClass($model, $paths);\n $view->setLayout($layoutName);\n $view->document = $document;\n\n // Render our view.\n echo $view->render();\n\n return true;\n }",
"public function fetch() {\r\n\t\tif(is_array($this->aVars)) {\r\n\t\t\t//$this->aVars['section'] = $this->controller->section;\r\n\t\t\t$this->aVars['messages'] = (count($this->aVars['messages'])) ? ('<span class=\"message\">'.implode('</span><span class=\"message\">', $this->aVars['messages']).'</span>') : '';\r\n\t\t\t$this->aVars['errors'] = (count($this->aVars['errors'])) ? ('<span class=\"error\">'.implode('</span><span class=\"error\">', $this->aVars['errors']).'</span>') : '';\r\n\r\n\t\t\textract($this->aVars); // Extract the vars to local namespace\r\n\t\t}\r\n\r\n\t\t/*if(is_array(self::$aWidgets)) {\r\n\t\t\textract(self::$aWidgets);\r\n\t\t}*/\r\n\r\n\t\tob_start(); // Start output buffering\r\n\r\n\t\t$contents = '';\r\n\r\n\t\t$strTemplateFile = $this->strTemplateFile;\r\n\t\tif(!file_exists($strTemplateFile)) {\r\n\t\t\tthrow new Exception(\"Template does not exist: \" . $strTemplateFile, 124);\r\n\t\t}\r\n\r\n\t\t$currentErrorReportingLevel = error_reporting();\r\n\t\terror_reporting(0);\r\n\t\tinclude($strTemplateFile); // Include the file\r\n\t\terror_reporting($currentErrorReportingLevel);\r\n\r\n\t\t$contents = ob_get_contents();\r\n\r\n\t\tob_end_clean(); // End buffering and discard\r\n\r\n\t\treturn $contents;\r\n\t}",
"public function run() {\n\n $this->render(\"search\");\n }",
"function tpl_display($template)\n{\n global $config;\n\n // caching enabled?\n if ($config['http_caching'])\n {\n require_once('./core/httpcache.php');\n httpCacheCaptureStart();\n }\n\n tpl_display_show($template, !$config['http_caching']);\n\n if ($config['http_caching'])\n {\n httpCacheOutput($template, httpCacheCaptureEnd());\n }\n}",
"public function render()\r\n\t{\r\n\t\t// The formatted result has not been generated yet\r\n\t\tif( empty($this->result) )\r\n\t\t{\r\n\t\t\t// Generate the result using the default format for the chosen template\r\n\t\t\t$this->format('{+BALANCE}');\r\n\t\t}\r\n\r\n\t\t// Prepare item data for template\r\n\t\t$item = get_object_vars($this);\r\n\t\tunset($item['template'], $item['options']);\r\n\r\n\t\t// Load the chosen template\r\n\t\t$template = new ThumbsUp_Template(THUMBSUP_DOCROOT.'templates/'.$this->template.'.php');\r\n\r\n\t\t// Pass on all item data to the template\r\n\t\t$template\r\n\t\t\t->set('item', (object) $item)\r\n\t\t\t->set('template', $this->template)\r\n\t\t\t->set('options', (object) $this->options);\r\n\r\n\t\t// Render the template output\r\n\t\treturn $template->render();\r\n\t}",
"function exec_xcrud($matches)\n{\n try\n {\n eval('ob_start();' . $matches[1] . '$output = ob_get_contents();ob_end_clean();');\n }\n catch (exception $e)\n {\n return 'executing error';\n }\n return $output;\n}",
"public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }",
"public function execute()\n {\n $this->_view->loadLayout();\n $this->_view->renderLayout();\n }",
"public function fetch($tpl);",
"public function executeList()\n {\n $this->setTemplate('list');\n }",
"public function fetch_builder_template()\n\t\t{\n\t\t $error = false;\n $name = isset($_POST['templateName']) ? $_POST['templateName'] : false;\n if(empty($name)) \n $error = true;\n \n $key = $this->generate_key($name);\n $template = $this->get_meta_values($key);\n \n if(empty($template)) $error = true;\n \n \n if($error)\n {\n echo \"avia_fetching_error\";\n }\n else\n {\n $text = str_replace('{{{'.$name.'}}}','',$template[0]);\n $return = $this->builder->text_to_interface($text);\n \n echo $return;\n }\n \n die();\n\t\t}",
"public function display() {\r\n\t\t$this->script();\r\n\t\t$this->html();\r\n\t\t\r\n\t}",
"public function display()\n\t{\n\t\tob_start();\n\t\t\n\t\t$display = true;\n\t\t\n\t\tif (isset($_GET['do']) && $_GET['do'] == \"login\")\n\t\t{\n\t\t\t// if we logged in successfully.\n\t\t\tif ($GLOBALS['super']->user->isLogged())\n\t\t\t{\n\t\t\t\t$success = new tpl(ROOT_PATH.'themes/Default/templates/success_redir.php');\n\t\t\t\t$success->add(\"message\", \"Logged In Successfully\");\n\t\t\t\t// we want to redirect to the page we were at before\n\t\t\t\t\n\t\t\t\tif (!isset($_SESSION['loginredirect']))\n\t\t\t\t\t$redirect = FORUM_ROOT;\n\t\t\t\telse\n\t\t\t\t\t$redirect = $_SESSION['loginredirect'];\n\n\t\t\t\t$success->add(\"url\", $redirect);\n\t\t\t\t\n\t\t\t\t$display = false;\n\t\t\t\t\n\t\t\t\techo $success->parse();\t\n\t\t\t\t\t\t\n\t\t\t\t// and erase that var\n\t\t\t\tunset($_SESSION['loginredirect']);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\t$error = new tpl(ROOT_PATH.'themes/Default/templates/error.php');\n\t\t\t\t$error->add(\"error_message\", \"Incorrect Username or Password\");\n\t\t\t\techo $error->parse();\t\n\t\t\t}\n\t\t}\n\t\telseif(isset($_GET['do']) && $_GET['do'] == \"out\")\n\t\t{\n\t\t\t$display = false;\n\t\t\t\n\t\t\t$success = new tpl(ROOT_PATH.'themes/Default/templates/success_redir.php');\n\t\t\t$success->add(\"message\", \"Logged Out Successfully\");\n\t\t\t$success->add(\"url\", FORUM_ROOT);\n\t\t\techo $success->parse();\t\n\t\t}\n\t\t\n\t\tif ($display)\n\t\t{\n\t\t\t// We want to save the page we were on before, so we can go back to it\n\t\t\tif (isset($_SERVER['HTTP_REFERER']) && !isset($_SESSION['loginredirect']))\n\t\t\t{\n\t\t\t\t$_SESSION['loginredirect'] = $_SERVER['HTTP_REFERER'];\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t$login = new tpl(ROOT_PATH.'themes/Default/templates/login.php');\n\t\t\techo $login->parse();\t\n\t\t}\n\t\t\n\t\t$output = ob_get_contents();\n\t\tob_end_clean();\n\t\treturn $output;\n\t}",
"protected function content_template()\n {\n }",
"protected function content_template()\n {\n }",
"protected function content_template()\n {\n }",
"protected function content_template()\n {\n }",
"protected function content_template()\n {\n }",
"protected function content_template()\n {\n }",
"public function executeShow()\n {\n $this->templateVars['posts'] = (new PostManager())->getPostsWithCommentsCountAndAuthorName(['dateCreated' => 'DESC']);\n $this->render('@admin/posts_list.html.twig');\n }",
"protected function display($templateData) {\n }",
"private function renderTemplate(){\n\t\trequire($this->TemplateFile);\n\t}",
"public function render() {\n\n\t\t$context = $this->options;\n\t\t$context = $this->load($context);\n\n\t\textract($context);\n\n\t\tinclude __DIR__ . '/../views/' . $this->template();\n\t}",
"protected function _run()\r\n {\r\n $file = func_num_args() > 0 &&\r\n file_exists(func_get_arg(0))\r\n ? func_get_arg(0)\r\n : '';\r\n if ($this->_customTemplate || $file) {\r\n $template = $this->_customTemplate;\r\n if (!$template) {\r\n $template = $file;\r\n }\r\n\r\n $this->_smarty->display($template);\r\n }\r\n else {\r\n throw new Zend_View_Exception(\r\n 'Cannot render view without any template\r\n being assigned or file does not exist'\r\n );\r\n }\r\n }",
"public function execute()\n {\n if ($this->argument === NULL) {\n $this->controller->{$this->action}();\n }\n else {\n $this->controller->{$this->action}($this->argument);\n }\n\n // TODO: check for non-default template\n $template = DEFAULT_TEMPLATE;\n\n $view = new AppView($this->page, $template);\n $view->show_view_with_context_variables($this->controller->getModelViewContext());\n }",
"public function render()\n\t{\n\t $templateFile = $this->template;\n\t $templateContents = $this->getTemplateContents($templateFile);\n\n\t $layout = $this->getTemplateLayout($templateContents);\n $arguments = $this->getTemplateArguments($templateContents);\n\n\t return $this->renderLayout(\n \t\t$layout, \n \t\tfunction () use ($templateFile) {\n\t\t $template = new Template($templateFile);\n\t\t return $template->render();\n\t \t},\n \t\t$arguments\n \t);\n\t}",
"public function run()\n { \n\t\t$items = Carrito::getItems();\n\n $this->controller->render('administrar_carrito',array(\n\t\t\t'items' => $items\n ));\n }",
"public function doCommand() {\n $basePath = $this->param('basePath');\n \n $tpl = $basePath . $this->param('template');\n \n if ($this->param('includeContext')) {\n $c = $this->context->toArray();\n extract($c);\n }\n \n if (is_readable($tpl) && is_file($tpl)) {\n // Do we need ob_flush()?\n ob_start();\n include $tpl;\n $str = ob_get_contents();\n ob_end_clean();\n return $str;\n }\n \n return 'Could not read template';\n }",
"function output($template) {\n\n\t\tglobal $polarbear_u, $polarbear_a;\n\t\t$isOk = false;\n\n\t\tif ($this->isPublished()) {\n\t\t\t$isOk = true;\n\t\t} else if ($this->getStatus()==\"preview\" && is_object($polarbear_u) && $polarbear_u->isAdmin()) {\n\t\t\t$isOk = true;\n\t\t}\n\t\t\n\t\tif ($isOk == false) {\n\t\t\treturn '';\n\t\t}\n\t\t$dwoo = new Dwoo();\n\t\t$dwoo->setCompileDir(POLARBEAR_STORAGEPATH . 'dwoo');\n\t\t$data = new Dwoo_Data(); \n\t\t$tpl = new Dwoo_Template_String($template);\n\n\t\t// add variables\n\t\t$data->assign('id', $this->getId());\n\t\t$data->assign('titleArticle', htmlspecialchars($this->getTitleArticle(), ENT_COMPAT, \"UTF-8\"));\n\t\t$data->assign('titleArticleRaw', $this->getTitleArticle());\n\t\t$data->assign('titlePage', htmlspecialchars($this->getTitlePage(), ENT_COMPAT, \"UTF-8\"));\n\t\t$data->assign('titleNav', htmlspecialchars($this->getTitleNav(), ENT_COMPAT, \"UTF-8\"));\n\t\t$data->assign('href', $this->href());\n\t\t$data->assign('hrefFull', $this->hrefFull());\n\t\t$data->assign('fullPageTitle', $this->fullPageTitle());\n\t\t$data->assign('teaser', $this->getTeaser());\n\t\t$data->assign('teaserNoTags', strip_tags($this->getTeaser()));\n\t\t$data->assign('hasTeaser', $this->hasTeaser());\n\t\t$data->assign('body', $this->getBody());\n\t\t$data->assign('bodyNoTags', strip_tags($this->getBody()));\n\t\t$data->assign('hasBody', $this->hasBody());\n\t\t$data->assign('datePublish', $this->getDatePublish());\n\t\t$data->assign('dateChanged', $this->getDateChanged());\n\t\t$data->assign('metaDescription', trim($this->getMetaDescription()));\n\t\t$data->assign('metaKeywords', trim($this->getMetaKeywords()));\n\n\t\tif ($this->getStatus()==\"preview\") {\n\t\t\t// no edit icons in preview mode\n\t\t} else {\n\t\t\t$data->assign('edit', $this->getEditString());\n\t\t\t$data->assign('editPrio', $this->getEditPrioString());\n\t\t\t$data->assign('editAdd', $this->getEditAddString());\n\t\t\t$data->assign('editAddChild', $this->getEditAddChildString());\n\t\t}\n\n\t\t$SEOMetaTags = \"\";\n\t\tif (trim($this->getMetaDescription())) {\n\t\t\t$SEOMetaTags .= '<meta name=\"description\" content=\"' . htmlspecialchars(trim($this->getMetaDescription()), ENT_COMPAT, \"UTF-8\") . '\" />';\n\t\t}\n\t\tif (trim($this->getMetaKeywords())) {\n\t\t\t$SEOMetaTags .= '<meta name=\"keywords\" content=\"' . htmlspecialchars(trim($this->getMetaKeywords()), ENT_COMPAT, \"UTF-8\") . '\" />';\n\t\t}\n\t\t$data->assign('SEOMetaTags', $SEOMetaTags);\n\n\t\t// $isCurrentArticle, good for using i lists\n\t\t$isCurrentArticle = false;\n\t\tif ($polarbear_a && $polarbear_a->getId() == $this->getId()) {\n\t\t\t$isCurrentArticle = true;\n\t\t}\n\t\t$data->assign('isCurrentArticle', $isCurrentArticle);\n\t\t\n\n\t\t// fetch parent so vi easily can check if current article is child of some article\n\t\t// todo: since these are the same as for the current article maybe we could make a wrapper for it.. somehow\n\t\t$parentA = PolarBear_Article::getInstance($this->parentID);\n\t\t$data->assign('parentId', $parentA->getId());\n\t\t$data->assign('parentTitleArticle', htmlspecialchars($parentA->getTitleArticle(), ENT_COMPAT, \"UTF-8\"));\n\t\t$data->assign('parentTitlePage', htmlspecialchars($parentA->getTitlePage(), ENT_COMPAT, \"UTF-8\"));\n\t\t$data->assign('parentTitleNav', htmlspecialchars($parentA->getTitleNav(), ENT_COMPAT, \"UTF-8\"));\n\t\t$data->assign('parentHref', $parentA->href());\n\t\t$data->assign('parentHrefFull', $parentA->href());\n\t\t$data->assign('parentFullPageTitle', $parentA->fullPageTitle());\n\t\t$data->assign('parentTeaser', $parentA->getTeaser());\n\t\t$data->assign('parentHasTeaser', $parentA->hasTeaser());\n\t\t$data->assign('parentBody', $parentA->getBody());\n\t\t$data->assign('parentHasBody', $parentA->hasBody());\n\t\t$data->assign('parentDatePublish', $parentA->getDatePublish());\n\t\t$data->assign('parentDateChanged', $parentA->getDateChanged());\n\t\t$data->assign('parentMetaDescription', $parentA->getMetaDescription());\n\t\t$data->assign('parentMetaKeywords', $parentA->getMetaKeywords());\n\n\t\t$fieldValues = $this->fieldValues();\n\t\t$data->assign('fields', $fieldValues);\n\t\t\n\t\t$out = $dwoo->get($tpl, $data);\n\t\t$out = pb_event_fire(\"article_output\", array(\"article\" => $this, \"output\" => $out));\n\t\t$out = $out[\"output\"];\n\n\t\t#pb_pqp_log_speed(\"article output()\");\n\n\t\treturn $out;\n\t}",
"function run() {\n\t\t$view = new View();\n\t\t\n\t\t$students = new Student();\n\t\tif ($view->students_tbl = $students->get_students_as_tbl_arr() ) {\n\t\t\t$view->error = $students->get_error();\n\t\t}\n\n\t\t$view->student_desc = $students->get_student_desc();\n\t\t$view->render('main_page.php');\n\t}",
"public static function renderTemplate()\n {\n echo self::$template;\n }",
"public function run()\n {\n $this->runAction();\n\n $this->view->setTemplate($this->request->getRequestedResource() . DIRECTORY_SEPARATOR . $this->getTemplateName() . '.twig');\n }",
"public function execute()\n {\n // HTTP Request Get\n if ($this->type == \"resource\") {\n $action = $this->getResourceAction();\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n } else {\n $action = $this->Request->action;\n switch ($action) {\n case \"show\":\n $this->show();\n break;\n case \"create\":\n $this->create();\n break;\n case \"edit\":\n $this->edit();\n break;\n case \"destroy\":\n $this->destroy();\n break;\n default:\n echo $this->render();\n break;\n }\n }\n }",
"public function execute($operation = NULL)\r\n\t{\r\n\t\tCore_Event::notify(get_class($this) . '.onBeforeExecute', $this, array($operation));\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\t$return = NULL;\r\n\r\n\t\t\t$Site_Controller_Template = Site_Controller_Template::instance()\r\n\t\t\t\t->templatePath(CMS_FOLDER . TMP_DIR)\r\n\t\t\t\t->chmodFile(CHMOD_FILE)\r\n\t\t\t\t//->server('http://hostcms')\r\n\t\t\t\t;\r\n\r\n\t\t\tswitch ($operation)\r\n\t\t\t{\r\n\t\t\t\tcase NULL: // Показ формы\r\n\t\t\t\t\t// Операция для кнопки\r\n\t\t\t\t\t$this->_formOperation = 'chooseTemplate';\r\n\r\n\t\t\t\t\t$oMainTab = Admin_Form_Entity::factory('Tab')\r\n\t\t\t\t\t\t->caption('Main')\r\n\t\t\t\t\t\t->name('main');\r\n\r\n\t\t\t\t\t$this->addTab($oMainTab);\r\n\r\n\t\t\t\t\t$this->title(Core::_('Site.choose_site_template'));\r\n\r\n\t\t\t\t\t$this->_Admin_Form_Controller->title(\r\n\t\t\t\t\t\t$this->title\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tob_start();\r\n\r\n\t\t\t\t\t$oXml = $Site_Controller_Template->loadTemplatesXml();\r\n\r\n\t\t\t\t\t?><div id=\"gallery\"><?php\r\n\t\t\t\t\t$aGroups = $oXml->children();\r\n\r\n\t\t\t\t\t$iKeyGroup = 0;\r\n\t\t\t\t\t// цикл по дереву group\r\n\t\t\t\t\tforeach ($aGroups as $oGroup)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// если в группе есть шаблоны\r\n\t\t\t\t\t\tif ($oGroup->templates)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$iKeyTemplate = 0;\r\n\t\t\t\t\t\t\t// цикл по дереву template\r\n\t\t\t\t\t\t\tforeach ($oGroup->templates->template as $oTemplate)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tif (strlen(trim((string)$oTemplate->template_file6)) && (int)$oTemplate['id'] != 2782)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t$small_width = (string)$oTemplate->template_preview['width'];\r\n\t\t\t\t\t\t\t\t\t$small_height = 200 + 40;\r\n\t\t\t\t\t\t\t\t\t// вывод информации о шаблоне\r\n\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t<div class=\"site_template_block\">\r\n\t\t\t\t\t\t\t\t\t<div class=\"bord_img\" style=\"width: <?php echo $small_width?>px; height:<?php echo $small_height?>px;\">\r\n\r\n\t\t\t\t\t\t\t\t\t\t<a href=\"<?php echo $Site_Controller_Template->server . trim((string)$oTemplate->template_full_preview)?>\" target=\"_blank\">\r\n\t\t\t\t\t\t\t\t\t\t<img src=\"<?php echo $Site_Controller_Template->server . trim((string)$oTemplate->template_preview)?>\" width=\"<?php echo $small_width?>\" />\r\n\t\t\t\t\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\t\t\t\t<div class=\"bottom\">\r\n\t\t\t\t\t\t\t\t\t\t\t<input style=\"float: left\" type=\"radio\" <?php if ($iKeyTemplate == 0 && $iKeyGroup == 0) {echo 'checked=\"checked\"';} ?> name=\"template_id\" id=\"template_<?php echo (string)$oTemplate['id']?>\" value=\"<?php echo (string)$oTemplate['id']?>\" />\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t<label for=\"template_<?php echo (string)$oTemplate['id']?>\" style=\"margin-left: 5px; float: left\">\r\n\t\t\t\t\t\t\t\t\t\t\t\t<b><?php echo (string)$oTemplate->template_name?></b>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<br />\r\n\t\t\t\t\t\t\t\t\t\t\t\t<span><?php echo (string)$oGroup->group_name?></span>\r\n\t\t\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t$iKeyTemplate++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t$iKeyGroup++;\r\n\r\n\t\t\t\t\t\t// Для HostCMS-6 доступен только основной макет\r\n\t\t\t\t\t\t//break;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t?>\r\n\t\t\t\t\t</div>\r\n\t\t\t\t\t<div style=\"clear: both\"></div>\r\n\t\t\t\t\t<?php\r\n\r\n\t\t\t\t\t$oMainTab->add(\r\n\t\t\t\t\t\tAdmin_Form_Entity::factory('Code')->html(\r\n\t\t\t\t\t\t\tob_get_clean()\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t$return = $this->_showEditForm();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 'chooseTemplate':\r\n\t\t\t\t\t// Операция для кнопки\r\n\t\t\t\t\t$this->_formOperation = 'chooseTemplateType';\r\n\r\n\t\t\t\t\t$oMainTab = Admin_Form_Entity::factory('Tab')\r\n\t\t\t\t\t\t->caption('Main')\r\n\t\t\t\t\t\t->name('main');\r\n\r\n\t\t\t\t\t$this->addTab($oMainTab);\r\n\r\n\t\t\t\t\t$this->title(Core::_('Site.choose_color_scheme'));\r\n\r\n\t\t\t\t\t$this->_Admin_Form_Controller->title(\r\n\t\t\t\t\t\t$this->title\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tob_start();\r\n\r\n\t\t\t\t\t$oXml = $Site_Controller_Template->loadTemplatesXml();\r\n\r\n\t\t\t\t\t$iTemplateId = intval(Core_Array::getPost('template_id'));\r\n\t\t\t\t\t$Templates = $oXml->xpath(\"//group/templates/template[@id='{$iTemplateId}']\");\r\n\r\n\t\t\t\t\tif (isset($Templates[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// у выбранного шаблона есть цветовые схемы\r\n\t\t\t\t\t\tif (count($Templates[0]->template_types->template_type) > 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t<div id=\"gallery\">\r\n\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t// цикл по цветовым схемам\r\n\t\t\t\t\t\t\tforeach ($Templates[0]->template_types as $iKeyTemplateType => $oTemplateType)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$small_width = (string)$oTemplateType->template_type_full_preview['width'];\r\n\t\t\t\t\t\t\t\t$small_height = 200 + 40;\r\n\r\n\t\t\t\t\t\t\t\t?><div class=\"bord_img\" style=\"width: <?php echo $small_width?>px; height:<?php echo $small_height?>px;\">\r\n\r\n\t\t\t\t\t\t\t\t<a href=\"<?php echo $Site_Controller_Template->server . trim((string)$oTemplateType->template_type_full_preview)?>\">\r\n\t\t\t\t\t\t\t\t<img src=\"<?php echo $Site_Controller_Template->server . trim((string)$oTemplateType->template_type_preview)?>\"\r\n\t\t\t\t\t\t\t\twidth=\"<?php echo $small_width?>\" />\r\n\t\t\t\t\t\t\t\t</a>\r\n\r\n\t\t\t\t\t\t\t\t<div style=\"position: absolute; width: 100%; bottom: 5px;\">\r\n\t\t\t\t\t\t\t\t\t<input style=\"float: left;\" type=\"radio\" <?php echo ($iKeyTemplateType == 0) ? 'checked=\"checked\"' : ''?> name=\"template_id\" id=\"template_<?php echo (string)$oTemplateType['id']?>\" value=\"<?php echo (string)$oTemplateType['id']?>\" />\r\n\r\n\t\t\t\t\t\t\t\t\t<label for=\"template_<?php echo (string)$oTemplateType['id']?>\" style=\"margin-left: 5px; float: left\">\r\n\t\t\t\t\t\t\t\t\t\t<b><?php echo (string)$oTemplateType->template_type_name?></b>\r\n\t\t\t\t\t\t\t\t\t</label>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t<?php\r\n\r\n\t\t\t\t\t\t\t$oMainTab->add(\r\n\t\t\t\t\t\t\t\tAdmin_Form_Entity::factory('Code')->html(\r\n\t\t\t\t\t\t\t\t\tob_get_clean()\r\n\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t$return = $this->_showEditForm();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t//break; // Если цветовой схемы нет, переходим к следующему шагу\r\n\t\t\t\tcase 'chooseTemplateType':\r\n\r\n\t\t\t\t\t// Операция для кнопки\r\n\t\t\t\t\t$this->_formOperation = 'createSite';\r\n\r\n\t\t\t\t\t$oMainTab = Admin_Form_Entity::factory('Tab')\r\n\t\t\t\t\t\t->caption('Main')\r\n\t\t\t\t\t\t->name('main');\r\n\r\n\t\t\t\t\t$this->addTab($oMainTab);\r\n\r\n\t\t\t\t\t$this->title(Core::_('Site.template_settings'));\r\n\r\n\t\t\t\t\t$this->_Admin_Form_Controller->title(\r\n\t\t\t\t\t\t$this->title\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\tob_start();\r\n\r\n\t\t\t\t\t$oXml = $Site_Controller_Template->loadTemplatesXml();\r\n\r\n\t\t\t\t\t$iTemplateId = intval(Core_Array::getPost('template_id'));\r\n\t\t\t\t\t$iTemplateTypeId = intval(Core_Array::getPost('template_type_id'));\r\n\r\n\t\t\t\t\t$Templates = $oXml->xpath(\"//group/templates/template[@id='{$iTemplateId}']\");\r\n\r\n\t\t\t\t\tif (isset($Templates[0]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$Template = $Templates[0];\r\n\r\n\t\t\t\t\t\t// ссылка на макет файла\r\n\t\t\t\t\t\t$sTemplateFile = (string)$Template->template_file6;\r\n\r\n\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$Core_Http = Core_Http::instance()\r\n\t\t\t\t\t\t\t\t->url($Site_Controller_Template->server . $sTemplateFile)\r\n\t\t\t\t\t\t\t\t->port(80)\r\n\t\t\t\t\t\t\t\t->timeout(30)\r\n\t\t\t\t\t\t\t\t->execute();\r\n\r\n\t\t\t\t\t\t\t$sFileContents = $Core_Http->getBody();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch (Exception $e)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCore_Message::show($e->getMessage(), 'error');\r\n\t\t\t\t\t\t\t$sFileContents = NULL;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// название архива макета\r\n\t\t\t\t\t\t$aTemplateFileUrl = explode('/', $Site_Controller_Template->server . $sTemplateFile);\r\n\t\t\t\t\t\t$sTemplateFileName = end($aTemplateFileUrl);\r\n\r\n\t\t\t\t\t\t// путь к локальному архиву макета\r\n\t\t\t\t\t\t$sTemplateFileUrl = $Site_Controller_Template->templatePath . $sTemplateFileName;\r\n\r\n\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t// запись в файл данных макета\r\n\t\t\t\t\t\t\tif (Core_File::write($sTemplateFileUrl, $sFileContents))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t// распаковка архива макета\r\n\t\t\t\t\t\t\t\t$Core_Tar = new Core_Tar($sTemplateFileUrl);\r\n\t\t\t\t\t\t\t\t$Core_Tar->extractModify($Site_Controller_Template->templatePath, $Site_Controller_Template->templatePath);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tCore_Message::show(Core::_('install.write_error', $sTemplateFileUrl), 'error');\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch (Exception $e)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$flag = FALSE;\r\n\t\t\t\t\t\t\tCore_Message::show($e->getMessage(), 'error');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Массив из файла template.xml\r\n\t\t\t\t\t\t$oTemplateContentXml = $Site_Controller_Template->loadSelectedTemplateXml();\r\n\r\n\t\t\t\t\t\tif ($oTemplateContentXml)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$aXmlFields = $oTemplateContentXml->xpath(\"fields/field\");\r\n\r\n\t\t\t\t\t\t\tif (count($aXmlFields))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t?><p><?php echo Core::_('install.template_data_information')?></p>\r\n\t\t\t\t\t\t\t\t<table border=\"0\" cellspacing=\"2\" cellpadding=\"2\" class=\"admin_table\">\r\n\t\t\t\t\t\t\t\t<tr class=\"admin_table_title\">\r\n\t\t\t\t\t\t\t\t\t<td><?php echo Core::_('install.table_field_param')?></td>\r\n\t\t\t\t\t\t\t\t\t<td><?php echo Core::_('install.table_field_value')?></td>\r\n\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t<?php\r\n\r\n\t\t\t\t\t\t\t\t$aFields = $Site_Controller_Template->getFields($aXmlFields);\r\n\r\n\t\t\t\t\t\t\t\tforeach ($aFields as $aFieldsValue)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t$sFieldName = htmlspecialchars($aFieldsValue['Name']);\r\n\t\t\t\t\t\t\t\t\t$sFieldValue = htmlspecialchars($aFieldsValue['Value']);\r\n\t\t\t\t\t\t\t\t\t$sFieldMacros = htmlspecialchars($aFieldsValue['Macros']);\r\n\t\t\t\t\t\t\t\t\t$sFieldExtension = htmlspecialchars($aFieldsValue['Extension']);\r\n\t\t\t\t\t\t\t\t\t$sFieldMaxWidth = intval($aFieldsValue['MaxWidth']);\r\n\t\t\t\t\t\t\t\t\t$sFieldMaxHeight = intval($aFieldsValue['MaxHeight']);\r\n\t\t\t\t\t\t\t\t\t$sFieldListValue = $aFieldsValue['ListValue'];\r\n\r\n\t\t\t\t\t\t\t\t\t$iFieldType = intval($aFieldsValue['Type']);\r\n\r\n\t\t\t\t\t\t\t\t\t// Название поля\r\n\t\t\t\t\t\t\t\t\t?><tr class=\"row\">\r\n\t\t\t\t\t\t\t\t\t\t<td><?php echo $sFieldName?></td>\r\n\t\t\t\t\t\t\t\t\t\t<td><?php\r\n\r\n\t\t\t\t\t\t\t\t\tswitch ($iFieldType)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tcase 0: // текст\r\n\t\t\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"text\" size=\"50\" name=\"<?php echo $sFieldMacros?>\" value=\"<?php echo $sFieldValue?>\" />\r\n\t\t\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\tcase 1: // список\r\n\t\t\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t\t\t<select name=\"<?php echo $sFieldMacros?>\">\r\n\t\t\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t\t\t\tif (count($sFieldListValue) > 0)\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tforeach ($sFieldListValue as $option_key => $option_value)\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"<?php echo $option_key?>\"><?php echo $option_value?></option>\r\n\t\t\t\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t\t\t</select>\r\n\t\t\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\tcase 2: // файл\r\n\t\t\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" size=\"50\" name=\"<?php echo $sFieldMacros?>\" value=\"<?php echo $sFieldValue?>\" />\r\n\t\t\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t\t\t\tif (trim($sFieldExtension) != '')\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Разрешенные расширения файла\r\n\t\t\t\t\t\t\t\t\t\t\t\t?><br /><?php echo Core::_('install.allowed_extension', $sFieldExtension)?><?php\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tif ($sFieldMaxWidth > 0 && $sFieldMaxHeight > 0)\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t// Максимальный размер файла\r\n\t\t\t\t\t\t\t\t\t\t\t\t?><br /><?php echo Core::_('install.max_file_size', $sFieldMaxWidth, $sFieldMaxHeight)?><?php\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t\tcase 3: // большое текстовое поле\r\n\t\t\t\t\t\t\t\t\t\t\t?>\r\n\t\t\t\t\t\t\t\t\t\t\t<textarea name=\"<?php echo $sFieldMacros?>\" rows=\"5\" cols=\"47\"><?php echo $sFieldValue?></textarea>\r\n\t\t\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t?></td>\r\n\t\t\t\t\t\t\t\t\t</tr>\r\n\t\t\t\t\t\t\t\t\t<?php\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t?></table><?php\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t?><p><?php echo Core::_('install.empty_settings')?></p><?php\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCore_Message::show(Core::_('install.file_not_found', 'template.xml'), 'error');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t$oMainTab->add(\r\n\t\t\t\t\t\tAdmin_Form_Entity::factory('Code')->html(\r\n\t\t\t\t\t\t\tob_get_clean()\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\t$return = $this->_showEditForm();\r\n\t\t\t\tbreak;\r\n\t\t\t\tcase 'createSite':\r\n\t\t\t\t\t$iTemplateId = Core_Array::getPost('template_id');\r\n\t\t\t\t\t$iTemplateTypeId = Core_Array::getPost('template_type_id');\r\n\r\n\t\t\t\t\t// Копируем файлы из ./template/ в папку системы\r\n\t\t\t\t\tif (is_dir($Site_Controller_Template->templatePath . 'template'))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttry\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCore_File::copyDir($Site_Controller_Template->templatePath . 'template', CMS_FOLDER);\r\n\t\t\t\t\t\t\tCore_Message::show(Core::_('install.template_files_copy_success'));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch (Exception $e)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tCore_Message::show($e->getMessage(), 'error');\r\n\t\t\t\t\t\t\tCore_Message::show(Core::_('install.template_files_copy_error'), 'error');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (is_file($Site_Controller_Template->templatePath . 'template.php'))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Замены в макете\r\n\t\t\t\t\t\t$aReplace = array();\r\n\r\n\t\t\t\t\t\t// Массив из файла template.xml\r\n\t\t\t\t\t\t$oTemplateContentXml = $Site_Controller_Template->loadSelectedTemplateXml();\r\n\r\n\t\t\t\t\t\tif ($oTemplateContentXml)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$aXmlFields = $oTemplateContentXml->xpath(\"fields/field\");\r\n\r\n\t\t\t\t\t\t\tif (count($aXmlFields))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$aFields = $Site_Controller_Template->getFields($aXmlFields);\r\n\r\n\t\t\t\t\t\t\t\t// цикл по дереву 'fields'\r\n\t\t\t\t\t\t\t\tforeach ($aFields as $aFieldsValue)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t$sFieldName = $aFieldsValue['Name'];\r\n\t\t\t\t\t\t\t\t\t$sFieldMacros = $aFieldsValue['Macros'];\r\n\t\t\t\t\t\t\t\t\t$iFieldType = $aFieldsValue['Type'];\r\n\r\n\t\t\t\t\t\t\t\t\t// Файл\r\n\t\t\t\t\t\t\t\t\tif ($iFieldType == 2)\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\tif (isset($_FILES[$sFieldMacros]['tmp_name'])\r\n\t\t\t\t\t\t\t\t\t\t&& is_file($_FILES[$sFieldMacros]['tmp_name'])\r\n\t\t\t\t\t\t\t\t\t\t&& $_FILES[$sFieldMacros]['size'] > 0)\r\n\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t$sFieldPath = $aFieldsValue['Path'];\r\n\t\t\t\t\t\t\t\t\t\t\t$sFieldExtension = $aFieldsValue['Extension'];\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t$sExt = Core_File::getExtension($_FILES[$sFieldMacros]['name']);\r\n\t\t\t\t\t\t\t\t\t\t\t$aAllowedExt = explode(',', $sFieldExtension);\r\n\r\n\t\t\t\t\t\t\t\t\t\t\tif (strlen(trim($sFieldExtension)) == 0 || in_array($sExt, $aAllowedExt))\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (!move_uploaded_file($_FILES[$sFieldMacros]['tmp_name'], CMS_FOLDER . $sFieldPath))\r\n\t\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tCore_Message::show(Core::_('install.file_copy_error', $sFieldPath), 'error');\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t\t\tCore_Message::show(Core::_('install.file_disabled_extension', $sFieldName), 'error');\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t// Остальные типы полей\r\n\t\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\t\t$aReplace[\"%{$sFieldMacros}%\"] = $_REQUEST[$sFieldMacros];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tinclude($Site_Controller_Template->templatePath . 'template.php');\r\n\r\n\t\t\t\t\t\tCore_Message::show(Core::_('install.template_install_success'));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tCore_Message::show(Core::_('install.file_not_found', 'template.php'), 'error');\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\ttry\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tis_dir($Site_Controller_Template->templatePath . 'template') && Core_File::deleteDir($Site_Controller_Template->templatePath . 'template');\r\n\t\t\t\t\t\tis_dir($Site_Controller_Template->templatePath . 'tmp') && Core_File::deleteDir($Site_Controller_Template->templatePath . 'tmp');\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (Exception $e){}\r\n\r\n\t\t\t\t\t$return = NULL;\r\n\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\t$this->_applyObjectProperty();\r\n\t\t\t\t\t$return = FALSE; // Показываем форму\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception $e)\r\n\t\t{\r\n\t\t\tCore_Message::show($e->getMessage(), 'error');\r\n\t\t}\r\n\r\n\t\tCore_Event::notify(get_class($this) . '.onAfterExecute', $this, array($operation));\r\n\r\n\t\treturn $return;\r\n\t}",
"public function smarty_display($template) {\n\n // Generic hooks\n $hook_name = \"preDisplay\".ucfirst($this->view_p).\"Hook\";\n\n // echo $hook_name.PHP_EOL.\"<br/>\";\n\n if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tend_flickr'][$hook_name]))\n foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['tend_flickr'][$hook_name] as $cRef)\n $obj = & t3lib_div::callUserFunction($cRef,$this->smarty,$this);\n\n return $this->smarty->display($template);\n }",
"public function print_template()\n {\n }",
"public function print_template()\n {\n }",
"public function output(){\n\t\t$this->index($this->input->get('action'));\n\t}",
"public function run()\n\t{\n\t\t/** @var BackendTemplate|object $objTemplate */\n\t\t$objTemplate = new \\BackendTemplate('be_alerts');\n\t\t$objTemplate->theme = \\Backend::getTheme();\n\t\t$objTemplate->base = \\Environment::get('base');\n\t\t$objTemplate->language = $GLOBALS['TL_LANGUAGE'];\n\t\t$objTemplate->title = \\StringUtil::specialchars($GLOBALS['TL_LANG']['MSC']['systemMessages']);\n\t\t$objTemplate->charset = \\Config::get('characterSet');\n\t\t$objTemplate->messages = \\Message::generateUnwrapped() . \\Backend::getSystemMessages();\n\n\t\treturn $objTemplate->getResponse();\n\t}",
"public function execute()\n {\n $resultPage = $this->resultPageFactory->create();\n $resultPage->setActiveMenu(static::MENU_ID);\n // $resultPage->getConfig()->getTitle()->prepend(__('Custom Data'));\n return $resultPage;\n }",
"protected function _content_template() {\n\t}"
] | [
"0.7494398",
"0.7248122",
"0.69312125",
"0.68937737",
"0.6892385",
"0.6860905",
"0.68362683",
"0.678748",
"0.67867",
"0.664759",
"0.66441154",
"0.6640453",
"0.6617933",
"0.6616756",
"0.6616756",
"0.6616756",
"0.6614975",
"0.65842336",
"0.657975",
"0.6546187",
"0.65452504",
"0.65293854",
"0.6518441",
"0.6489",
"0.6478763",
"0.64686036",
"0.6441728",
"0.6404267",
"0.6404267",
"0.6382741",
"0.63796055",
"0.6372727",
"0.6362491",
"0.6360275",
"0.635573",
"0.6339739",
"0.6330544",
"0.6329545",
"0.63294363",
"0.6308795",
"0.6304041",
"0.6296577",
"0.62758976",
"0.6265434",
"0.62597793",
"0.6257997",
"0.62463754",
"0.6229505",
"0.62125564",
"0.6203601",
"0.6186891",
"0.6182321",
"0.61815196",
"0.61656994",
"0.6165691",
"0.6156386",
"0.614237",
"0.6131668",
"0.6117283",
"0.61146224",
"0.6113507",
"0.61102235",
"0.6110071",
"0.61098415",
"0.6097133",
"0.6092048",
"0.6090907",
"0.6090907",
"0.608185",
"0.60808605",
"0.6070859",
"0.6070573",
"0.6067845",
"0.6066532",
"0.6066532",
"0.6066532",
"0.6066532",
"0.6066532",
"0.6066532",
"0.6063473",
"0.6060335",
"0.6059591",
"0.60584754",
"0.605634",
"0.6040414",
"0.60330194",
"0.6020447",
"0.60199124",
"0.60191005",
"0.60026145",
"0.60018945",
"0.599864",
"0.5998523",
"0.59954053",
"0.59893227",
"0.598854",
"0.5986486",
"0.59856856",
"0.59836364",
"0.59781",
"0.59762126"
] | 0.0 | -1 |
return a reference to a registered object | function &GetRegisteredObject($name) {
return $this->_smarty->get_registered_object($name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getInstance(): object;",
"public function get_instance() {\r\n\t\treturn $this->obj;\r\n\t}",
"public static function & GetInstance ();",
"public static function getInstance()\r\n\t{\r\n\t\tif ( empty( self::$instance ) )\r\n\t\t{\r\n\t\t\tself::$instance = new Registry();\r\n\t\t\t$object = self::$instance;\r\n\t\t\t$object->init();\r\n\t\t}\r\n\t\t\r\n\t\treturn self::$instance;\r\n\t}",
"public function getInstance(): object\n {\n }",
"public function register($object);",
"public function getInstance(): mixed;",
"abstract public function get_instance();",
"public static function instance() {\n\t\tif (!Registry::exists($class=get_called_class())) {\n\t\t\t$ref=new \\Reflectionclass($class);\n\t\t\t$args=func_get_args();\n\t\t\tRegistry::set($class,\n\t\t\t\t$args?$ref->newinstanceargs($args):new $class);\n\t\t}\n\t\treturn Registry::get($class);\n\t}",
"static public function getInstance(){\r\n if(self::$_instance === NULL){\r\n self::$_instance = new Registry;\r\n }\r\n return self::$_instance;\r\n }",
"function get($object_name){\r\n if(isset($this->singleton_instances[$object_name]))\r\n return $this->singleton_instances[$object_name];\r\n \r\n $definition = parent::get($object_name);\r\n $this->singleton_instances[$object_name] = new lako_object($definition);\r\n return $this->singleton_instances[$object_name];\r\n }",
"public static function getInstance() {\n if(!self::$instance instanceof self) {\n self::$instance = new Registry;\n }\n return self::$instance;\n }",
"final public static function &instance() {\r\n\t\t\r\n\t\t$class = get_called_class();\r\n\t\tif(!isset(self::$instances[$class])) self::$instances[$class] = new $class;\r\n\t\treturn self::$instances[$class];\r\n\t\t\r\n\t}",
"private function registerObject(){\n \t$this->app->singleton(\\PenFramework\\Exceptions\\Handler::class);\n\n \t$this->app->singleton('pen_helper', function(){\n \t\treturn new \\PenFramework\\Library\\Helper();\n \t});\n\n \t$this->app->singleton('pen_loader', function(){\n \t\treturn new \\PenFramework\\Library\\Loader();\n \t});\n\n \t$this->app->singleton('pen_url', function(){\n \t\treturn new \\PenFramework\\Library\\PenUrl();\n \t});\n\n \t$this->app->singleton('pen_request', function(){\n \t\treturn new \\PenFramework\\Library\\PenRequest();\n \t});\n\n \t$this->app->singleton('pen_permission', function(){\n \t\treturn new \\PenFramework\\Library\\Permission();\n \t});\n\n \t$this->app->singleton('pen_config', function(){\n \t\treturn new \\PenFramework\\Library\\PenConfig();\n \t});\n\n \t$this->app->singleton('pen_language', function(){\n \t\treturn new \\PenFramework\\Library\\Language();\n \t});\n\n \t$this->app->singleton('pen_session', function(){\n \t\treturn new \\PenFramework\\Library\\PenSession();\n \t});\n\n \t$this->app->singleton('pen_validate', function(){\n \t\treturn new \\PenFramework\\Library\\Validate();\n \t});\n }",
"function get_instance()\r\n{\r\n\t\r\n}",
"public static function &get_instance()\n {\n return self::$instance;\n }",
"public function instance();",
"public function registerInstance($object) {\n $this->_pool->putref($object->hashCode(), $object);\n return TRUE;\n }",
"static function getInstance() {\n if (is_null(self::$instance)) {\n self::$instance = new Registry();\n }\n\n return self::$instance;\n }",
"public function getInstance() {\n\t\treturn $this->instance;\n\t}",
"public function register();",
"public function register();",
"public function register();",
"public function register();",
"public function register();",
"public function register();",
"public function register();",
"public function register();",
"public function getObject() {}",
"public function getObject() {}",
"public static function get_instance ();",
"public function getObject(): object;",
"function get_instance($class)\n {\n }",
"public static function &get_instance() {\n\n\t\treturn self::$instance;\n\n\t}",
"public function getInstance()\n {\n return $this->instance;\n }",
"public function getInstance()\n {\n return $this->instance;\n }",
"public function getInstance()\n {\n return $this->instance;\n }",
"public function getInstance()\n {\n return $this->instance;\n }",
"public static function get_instance() {\n\t\treturn self::$instance;\n\t}",
"public static function get_instance() {\n\t\treturn self::$instance;\n\t}",
"public function getObject();",
"public function getObject();",
"public static function getInstance()\n {\n if (null === self::$_instance) {\n self::$_instance = new Erfurt_Wrapper_Registry();\n }\n\n return self::$_instance;\n }",
"public static function getInstance()\n {\n return self::$instance ?? self::getNewInstance();\n }",
"public static function &getinstance()\n {\n\t\treturn self::$instance;\n\t}",
"public static function &instance()\n {\n return self::$instance;\n }",
"public static function &get_instance()\n\t{\n\t\treturn self::$instance;\n\t}",
"public static function &get_instance()\n\t{\n\t\treturn self::$instance;\n\t}",
"public static function &get_instance()\n\t{\n\t\treturn self::$instance;\n\t}",
"public static function instance();",
"public function get(string $object): mixed\n {\n return $this->exists($object) ? $this->registry[$object] : null;\n }",
"public function newInstance(): object\n {\n return $this->instantiator->instantiate($this->name);\n }",
"public function get($name)\n {\n $canonicalName = $this->getCanonicalName($name);\n\n if (isset($this->instances[$canonicalName])) {\n return $this->instances[$canonicalName];\n }\n\n if (isset($this->invokableClasses[$canonicalName])) {\n $instance = $this->createFromInvokable($canonicalName);\n $this->instances[$canonicalName] = $instance;\n return $instance;\n }\n\n $object = $this->serviceLocator->get($name);\n if ($object !== null) {\n return $object;\n }\n\n return null;\n }",
"public function getInstance(): ?object\n {\n return $this->instance;\n }",
"public function getInstance($objectClass);",
"public static function inst()\n {\n return static::get_one(__CLASS__);\n }",
"public static function &getObjectInstance()\n\t{\n\t\treturn self::$objectInstance;\n\t}",
"public static function get_object() {\n\t\treturn self::$object;\n\t}",
"public static function instance()\n {\n global $container;\n return $container->getByType(self::class);\n }",
"public static function getInstance(): self;",
"abstract public function register();",
"abstract public function register();",
"abstract public function register();",
"public static function getInstance(): object\n {\n if (!isset(static::$instance[static::$class])) {\n static::$instance[static::$class] = new static::$class(...func_get_args());\n }\n\n return static::$instance[static::$class];\n }",
"public function loadTheInstance();",
"static function &get_instance($context = FALSE)\n {\n if (!isset(self::$_instances[$context])) {\n $klass = get_class();\n self::$_instances[$context] = new $klass($context);\n }\n return self::$_instances[$context];\n }",
"public static function getInstance();",
"public static function getInstance();",
"public static function getInstance();",
"public static function getInstance();",
"public static function getInstance();",
"public static function getInstance();",
"public static function getInstance();",
"public static function getInstance();",
"public static function getInstance(){\n\t\treturn parent::_getInstance(get_class());\n\t}",
"public static function getObject(){\n\t\treturn self::$object_class;\n\t}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public static function getInstance() {}",
"public function getInstance()\n {\n return self::$instance;\n }",
"static function getInstance($match, $scope = null)\n\t{\n\t\t$object = self::fetchInstance($match);\n\t\tif ($object instanceof NoJQuery)\n\t\t{\n\t\t\t$calledClass = static::getCalledClass();\n\t\t\tself::$objectRegistry[$match] = new $calledClass($match, $scope);\n\t\t}\n\t\treturn self::$objectRegistry[$match];\n\t}",
"public static function registry()\n {\n\t\tif ( empty(self::$registry) ){\n\t\t\tself::$registry = new Registry();\n\t\t}\n\t\treturn self::$registry;\n\n }",
"public static function getInstance(){\r\n\t\treturn ($i = &self::$instance) ? $i : $i = new self;\r\n\t}",
"public function _loadRealInstance() {}",
"static function &getInstance($oid=0)\n\t{\n\t\tstatic $instances;\n\n\t\tif (!isset($instances))\n\t\t{\n\t\t\t$instances = array();\n\t\t}\n\n\t\tif (!isset($instances[$oid]))\n\t\t{\n\t\t\t$instances[$oid] = new self($oid);\n\t\t}\n\n\t\treturn $instances[$oid];\n\t}",
"public function getObject(): mixed\n {\n // how can i derive this class from a string?\n if (!$object = call_user_func('App\\\\'.ucfirst($this->object_type).'::find', $this->object_id)) {\n return $object;\n }\n\n return null;\n }",
"abstract public function instance();",
"public function getInstance() {\r\n\t\tif ($this->ref) {\r\n\t\t\treturn $this->getRef();\r\n\t\t}\r\n\t\treturn $this;\r\n\t}",
"public static function instance() {\n return self::$instance;\n }",
"protected static function register() {}",
"public function &create()\n {\n $obj = null;\n\n if (class_exists($this->_class_name)) {\n // Assigning the return value of new by reference\n $obj = new $this->_class_name();\n }\n\n return $obj;\n }",
"public static function instance() {\n\t\treturn static::$instance;\n\t}",
"function analogue()\n {\n return Manager::getInstance();\n }"
] | [
"0.70743287",
"0.6764894",
"0.6725573",
"0.66337436",
"0.6556568",
"0.65293354",
"0.64884645",
"0.6452232",
"0.64272535",
"0.6346797",
"0.63435245",
"0.6305692",
"0.63022596",
"0.62751055",
"0.6258482",
"0.62434673",
"0.62332594",
"0.6184605",
"0.6180519",
"0.6169918",
"0.6148395",
"0.6148395",
"0.6148395",
"0.6148395",
"0.6148395",
"0.6148395",
"0.6148395",
"0.6148395",
"0.6140098",
"0.6140098",
"0.61344594",
"0.6122717",
"0.61119354",
"0.609935",
"0.6090622",
"0.6090622",
"0.6090622",
"0.6090622",
"0.6080743",
"0.6080743",
"0.6076774",
"0.6076774",
"0.6042701",
"0.6022394",
"0.601464",
"0.60075206",
"0.60074735",
"0.60074735",
"0.60074735",
"0.60050315",
"0.5990491",
"0.5985014",
"0.59844106",
"0.59806406",
"0.5979581",
"0.59783155",
"0.5965538",
"0.5964781",
"0.59590065",
"0.59580195",
"0.59561753",
"0.59561753",
"0.59561753",
"0.59561634",
"0.5949445",
"0.59480274",
"0.5945416",
"0.5945416",
"0.5945416",
"0.5945416",
"0.5945416",
"0.5945416",
"0.5945416",
"0.5945416",
"0.5937688",
"0.5933127",
"0.593304",
"0.593304",
"0.593304",
"0.59329134",
"0.59329134",
"0.59329134",
"0.59329134",
"0.59319377",
"0.59319377",
"0.59319377",
"0.5928923",
"0.59205157",
"0.591911",
"0.59168977",
"0.58987856",
"0.58969384",
"0.5896697",
"0.58860683",
"0.587423",
"0.5866169",
"0.58645487",
"0.5861705",
"0.5860439",
"0.5846652"
] | 0.74176 | 0 |
Bootstrap any application services. | public function boot()
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function bootstrap(): void\n {\n if (! $this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n $this->app->loadDeferredProviders();\n }",
"public function boot()\n {\n // Boot here application\n }",
"public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrapperList);\n }\n\n $this->app->loadDeferredProviders();\n }",
"public function boot()\r\n {\r\n // Publishing is only necessary when using the CLI.\r\n if ($this->app->runningInConsole()) {\r\n $this->bootForConsole();\r\n }\r\n }",
"public function boot()\n {\n $this->app->bind(IUserService::class, UserService::class);\n $this->app->bind(ISeminarService::class, SeminarService::class);\n $this->app->bind(IOrganizationService::class, OrganizationService::class);\n $this->app->bind(ISocialActivityService::class, SocialActivityService::class);\n }",
"public function boot()\n {\n if ($this->booted) {\n return;\n }\n\n array_walk($this->loadedServices, function ($s) {\n $this->bootService($s);\n });\n\n $this->booted = true;\n }",
"public function boot()\n {\n\n $this->app->bind(FileUploaderServiceInterface::class,FileUploaderService::class);\n $this->app->bind(ShopServiceInterface::class,ShopService::class);\n $this->app->bind(CategoryServiceInterface::class,CategoryService::class);\n $this->app->bind(ProductServiceInterface::class,ProductService::class);\n $this->app->bind(ShopSettingsServiceInterface::class,ShopSettingsService::class);\n $this->app->bind(FeedbackServiceInterface::class,FeedbackService::class);\n $this->app->bind(UserServiceInterface::class,UserService::class);\n $this->app->bind(ShoppingCartServiceInterface::class,ShoppingCartService::class);\n $this->app->bind(WishlistServiceInterface::class,WishlistService::class);\n $this->app->bind(NewPostApiServiceInterface::class,NewPostApiService::class);\n $this->app->bind(DeliveryAddressServiceInterface::class,DeliveryAddressService::class);\n $this->app->bind(StripeServiceInterface::class,StripeService::class);\n $this->app->bind(OrderServiceInterface::class,OrderService::class);\n $this->app->bind(MailSenderServiceInterface::class,MailSenderSenderService::class);\n }",
"public function boot()\n {\n $this->setupConfig('delta_service');\n $this->setupMigrations();\n $this->setupConnection('delta_service', 'delta_service.connection');\n }",
"public function boot()\n {\n $configuration = [];\n\n if (file_exists($file = getcwd() . '/kaleo.config.php')) {\n $configuration = include_once $file;\n }\n\n $this->app->singleton('kaleo', function () use ($configuration) {\n return new KaleoService($configuration);\n });\n }",
"public function boot()\n {\n $this->shareResources();\n $this->mergeConfigFrom(self::CONFIG_PATH, 'amocrm-api');\n }",
"public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }",
"public function boot()\n {\n // Ports\n $this->app->bind(\n IAuthenticationService::class,\n AuthenticationService::class\n );\n $this->app->bind(\n IBeerService::class,\n BeerService::class\n );\n\n // Adapters\n $this->app->bind(\n IUserRepository::class,\n UserEloquentRepository::class\n );\n $this->app->bind(\n IBeerRepository::class,\n BeerEloquentRepository::class\n );\n }",
"public function boot()\n {\n $this->setupConfig($this->app);\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->loadMigrations();\n }\n if(config($this->vendorNamespace. '::config.enabled')){\n Livewire::component($this->vendorNamespace . '::login-form', LoginForm::class);\n $this->loadRoutes();\n $this->loadViews();\n $this->loadMiddlewares();\n $this->loadTranslations();\n }\n }",
"public function boot()\n {\n $source = dirname(__DIR__, 3) . '/config/config.php';\n\n if ($this->app instanceof LaravelApplication && $this->app->runningInConsole()) {\n $this->publishes([$source => config_path('dubbo_cli.php')]);\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('dubbo_cli');\n }\n\n $this->mergeConfigFrom($source, 'dubbo_cli');\n }",
"public function boot()\n {\n $this->package('domain/app');\n\n $this->setApplication();\n }",
"public function boot()\n {\n $this->setUpConfig();\n $this->setUpConsoleCommands();\n }",
"public function boot()\n {\n $this->strapRoutes();\n $this->strapViews();\n $this->strapMigrations();\n $this->strapCommands();\n\n $this->registerPolicies();\n }",
"public function boot()\n {\n $this->app->singleton('LaraCurlService', function ($app) {\n return new LaraCurlService();\n });\n\n $this->loadRoutesFrom(__DIR__.'/routes/web.php');\n }",
"public function boot()\n {\n $providers = $this->make('config')->get('app.console_providers', array());\n foreach ($providers as $provider) {\n $provider = $this->make($provider);\n if ($provider && method_exists($provider, 'boot')) {\n $provider->boot();\n }\n }\n }",
"public function boot()\n {\n foreach (glob(app_path('/Api/config/*.php')) as $path) {\n $path = realpath($path);\n $this->mergeConfigFrom($path, basename($path, '.php'));\n }\n\n // 引入自定义函数\n foreach (glob(app_path('/Helpers/*.php')) as $helper) {\n require_once $helper;\n }\n // 引入 api 版本路由\n $this->loadRoutesFrom(app_path('/Api/Routes/base.php'));\n\n }",
"public function bootstrap()\n {\n if (!$this->app->hasBeenBootstrapped()) {\n $this->app->bootstrapWith($this->bootstrappers());\n }\n\n //$this->app->loadDeferredProviders();\n\n if (!$this->commandsLoaded) {\n //$this->commands();\n\n $this->commandsLoaded = true;\n }\n }",
"protected function boot()\n\t{\n\t\tforeach ($this->serviceProviders as $provider)\n\t\t{\n\t\t\t$provider->boot($this);\n\t\t}\n\n\t\t$this->booted = true;\n\t}",
"public function boot()\n {\n $this->setupConfig();\n //register rotating daily monolog provider\n $this->app->register(MonologProvider::class);\n $this->app->register(CircuitBreakerServiceProvider::class);\n $this->app->register(CurlServiceProvider::class);\n }",
"public function boot(): void\n {\n if ($this->booted) {\n return;\n }\n\n array_walk($this->services, function ($service) {\n $this->bootServices($service);\n });\n\n $this->booted = true;\n }",
"public static function boot() {\n\t\tstatic::container()->boot();\n\t}",
"public function boot()\n {\n include_once('ComposerDependancies\\Global.php');\n //---------------------------------------------\n include_once('ComposerDependancies\\League.php');\n include_once('ComposerDependancies\\Team.php');\n include_once('ComposerDependancies\\Matchup.php');\n include_once('ComposerDependancies\\Player.php');\n include_once('ComposerDependancies\\Trade.php');\n include_once('ComposerDependancies\\Draft.php');\n include_once('ComposerDependancies\\Message.php');\n include_once('ComposerDependancies\\Poll.php');\n include_once('ComposerDependancies\\Chat.php');\n include_once('ComposerDependancies\\Rule.php');\n\n \n include_once('ComposerDependancies\\Admin\\Users.php');\n\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n if ($this->app instanceof LaravelApplication) {\n $this->publishes([\n __DIR__.'/../config/state-machine.php' => config_path('state-machine.php'),\n ], 'config');\n } elseif ($this->app instanceof LumenApplication) {\n $this->app->configure('state-machine');\n }\n }\n }",
"public function boot()\n {\n $this->bootEvents();\n\n $this->bootPublishes();\n\n $this->bootTypes();\n\n $this->bootSchemas();\n\n $this->bootRouter();\n\n $this->bootViews();\n \n $this->bootSecurity();\n }",
"public function boot()\n {\n //\n Configuration::environment(\"sandbox\");\n Configuration::merchantId(\"cmpss9trsxsr4538\");\n Configuration::publicKey(\"zy3x5mb5jwkcrxgr\");\n Configuration::privateKey(\"4d63c8b2c340daaa353be453b46f6ac2\");\n\n\n $modules = Directory::listDirectories(app_path('Modules'));\n\n foreach ($modules as $module)\n {\n $routesPath = app_path('Modules/' . $module . '/routes.php');\n $viewsPath = app_path('Modules/' . $module . '/Views');\n\n if (file_exists($routesPath))\n {\n require $routesPath;\n }\n\n if (file_exists($viewsPath))\n {\n $this->app->view->addLocation($viewsPath);\n }\n }\n }",
"public function boot()\n {\n resolve(EngineManager::class)->extend('elastic', function () {\n return new ElasticScoutEngine(\n ElasticBuilder::create()\n ->setHosts(config('scout.elastic.hosts'))\n ->build()\n );\n });\n }",
"public function boot(): void\n {\n try {\n // Just check if we have DB connection! This is to avoid\n // exceptions on new projects before configuring database options\n // @TODO: refcator the whole accessareas retrieval to be file-based, instead of db based\n DB::connection()->getPdo();\n\n if (Schema::hasTable(config('cortex.foundation.tables.accessareas'))) {\n // Register accessareas into service container, early before booting any module service providers!\n $this->app->singleton('accessareas', fn () => app('cortex.foundation.accessarea')->where('is_active', true)->get());\n }\n } catch (Exception $e) {\n // Be quiet! Do not do or say anything!!\n }\n\n $this->bootstrapModules();\n }",
"public function boot()\n {\n $this->app->register(UserServiceProvider::class);\n $this->app->register(DashboardServiceProvider::class);\n $this->app->register(CoreServiceProvider::class);\n $this->app->register(InstitutionalVideoServiceProvider::class);\n $this->app->register(InstitutionalServiceProvider::class);\n $this->app->register(TrainingServiceProvider::class);\n $this->app->register(CompanyServiceProvider::class);\n $this->app->register(LearningUnitServiceProvider::class);\n $this->app->register(PublicationServiceProvider::class);\n }",
"public function boot()\n {\n Schema::defaultStringLength(191);\n\n $this->app->bindMethod([SendMailPasswordReset::class, 'handle'], function ($job, $app) {\n return $job->handle($app->make(MailService::class));\n });\n\n $this->app->bindMethod([ClearTokenPasswordReset::class, 'handle'], function ($job, $app) {\n return $job->handle($app->make(PasswordResetRepository::class));\n });\n\n $this->app->bind(AuthService::class, function ($app) {\n return new AuthService($app->make(HttpService::class));\n });\n }",
"public function boot()\n {\n $this->makeRepositories();\n }",
"public function boot(): void\n {\n $this->loadMiddlewares();\n }",
"public function boot()\n {\n $this->app->when(ChatAPIChannel::class)\n ->needs(ChatAPI::class)\n ->give(function () {\n $config = config('services.chatapi');\n return new ChatAPI(\n $config['token'],\n $config['api_url']\n );\n });\n }",
"public function boot() {\r\n\t\t$hosting_service = HostResolver::get_host_service();\r\n\r\n\t\tif ( ! empty( $hosting_service ) ) {\r\n\t\t\t$this->provides[] = $hosting_service;\r\n\t\t}\r\n\t}",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n require(__DIR__ . '/../routes/console.php');\n } else {\n // Menus for BPM are done through middleware. \n Route::pushMiddlewareToGroup('web', AddToMenus::class);\n \n // Assigning to the web middleware will ensure all other middleware assigned to 'web'\n // will execute. If you wish to extend the user interface, you'll use the web middleware\n Route::middleware('web')\n ->namespace($this->namespace)\n ->group(__DIR__ . '/../routes/web.php');\n \n // If you wish to extend the api, be sure to utilize the api middleware. In your api \n // Routes file, you should prefix your routes with api/1.0\n Route::middleware('api')\n ->namespace($this->namespace)\n ->prefix('api/1.0')\n ->group(__DIR__ . '/../routes/api.php');\n \n Event::listen(ScreenBuilderStarting::class, function($event) {\n $event->manager->addScript(mix('js/screen-builder-extend.js', 'vendor/api-connector'));\n $event->manager->addScript(mix('js/screen-renderer-extend.js', 'vendor/api-connector'));\n });\n }\n\n // load migrations\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n\n // Load our views\n $this->loadViewsFrom(__DIR__.'/../resources/views/', 'api-connector');\n\n // Load our translations\n $this->loadTranslationsFrom(__DIR__.'/../lang', 'api-connector');\n\n $this->publishes([\n __DIR__.'/../public' => public_path('vendor/api-connector'),\n ], 'api-connector');\n\n $this->publishes([\n __DIR__ . '/../database/seeds' => database_path('seeds'),\n ], 'api-connector');\n\n $this->app['events']->listen(PackageEvent::class, PackageListener::class);\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->bindCommands();\n $this->registerCommands();\n $this->app->bind(InstallerContract::class, Installer::class);\n\n $this->publishes([\n __DIR__.'/../config/exceptionlive.php' => base_path('config/exceptionlive.php'),\n ], 'config');\n }\n\n $this->registerMacros();\n }",
"public function boot(){\r\n $this->app->configure('sdk');\r\n $this->publishes([\r\n __DIR__.'/../../resources/config/sdk.php' => config_path('sdk.php')\r\n ]);\r\n $this->mergeConfigFrom(__DIR__.'/../../resources/config/sdk.php','sdk');\r\n\r\n $api = config('sdk.api');\r\n foreach($api as $key => $value){\r\n $this->app->singleton($key,$value);\r\n }\r\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n EnvironmentCommand::class,\n EventGenerateCommand::class,\n EventMakeCommand::class,\n JobMakeCommand::class,\n KeyGenerateCommand::class,\n MailMakeCommand::class,\n ModelMakeCommand::class,\n NotificationMakeCommand::class,\n PolicyMakeCommand::class,\n ProviderMakeCommand::class,\n RequestMakeCommand::class,\n ResourceMakeCommand::class,\n RuleMakeCommand::class,\n ServeCommand::class,\n StorageLinkCommand::class,\n TestMakeCommand::class,\n ]);\n }\n }",
"public function boot()\n {\n $this->app->bind(WeatherInterface::class, OpenWeatherMapService::class);\n $this->app->bind(OrderRepositoryInterface::class, EloquentOrderRepository::class);\n $this->app->bind(NotifyInterface::class, EmailNotifyService::class);\n }",
"public function boot()\n {\n $this->app->bind(DateService::class,DateServiceImpl::class);\n $this->app->bind(DisasterEventQueryBuilder::class,DisasterEventQueryBuilderImpl::class);\n $this->app->bind(MedicalFacilityQueryBuilder::class,MedicalFacilityQueryBuilderImpl::class);\n $this->app->bind(RefugeCampQueryBuilder::class,RefugeCampQueryBuilderImpl::class);\n $this->app->bind(VictimQueryBuilder::class,VictimQueryBuilderImpl::class);\n $this->app->bind(VillageQueryBuilder::class,VillageQueryBuilderImpl::class);\n }",
"public function boot()\n {\n\t\tif ( $this->app->runningInConsole() ) {\n\t\t\t$this->loadMigrationsFrom(__DIR__.'/migrations');\n\n//\t\t\t$this->publishes([\n//\t\t\t\t__DIR__.'/config/scheduler.php' => config_path('scheduler.php'),\n//\t\t\t\t__DIR__.'/console/CronTasksList.php' => app_path('Console/CronTasksList.php'),\n//\t\t\t\t__DIR__.'/views' => resource_path('views/vendor/scheduler'),\n//\t\t\t]);\n\n//\t\t\tapp('Revolta77\\ScheduleMonitor\\Conntroller\\CreateController')->index();\n\n//\t\t\t$this->commands([\n//\t\t\t\tConsole\\Commands\\CreateController::class,\n//\t\t\t]);\n\t\t}\n\t\t$this->loadRoutesFrom(__DIR__.'/routes/web.php');\n }",
"public function boot()\n {\n $this->bootPackages();\n }",
"public function boot(): void\n {\n if ($this->app->runningInConsole()) {\n $this->commands($this->load(__DIR__.'/../Console', Command::class));\n }\n }",
"public function boot(): void\n {\n $this->publishes(\n [\n __DIR__ . '/../config/laravel_entity_services.php' =>\n $this->app->make('path.config') . DIRECTORY_SEPARATOR . 'laravel_entity_services.php',\n ],\n 'laravel_repositories'\n );\n $this->mergeConfigFrom(__DIR__ . '/../config/laravel_entity_services.php', 'laravel_entity_services');\n\n $this->registerCustomBindings();\n }",
"public function boot()\n {\n // DEFAULT STRING LENGTH\n Schema::defaultStringLength(191);\n\n // PASSPORT\n Passport::routes(function (RouteRegistrar $router)\n {\n $router->forAccessTokens();\n });\n Passport::tokensExpireIn(now()->addDays(1));\n\n // SERVICES, REPOSITORIES, CONTRACTS BINDING\n $this->app->bind('App\\Contracts\\IUser', 'App\\Repositories\\UserRepository');\n $this->app->bind('App\\Contracts\\IUserType', 'App\\Repositories\\UserTypeRepository');\n $this->app->bind('App\\Contracts\\IApiToken', 'App\\Services\\ApiTokenService');\n $this->app->bind('App\\Contracts\\IModule', 'App\\Repositories\\ModuleRepository');\n $this->app->bind('App\\Contracts\\IModuleAction', 'App\\Repositories\\ModuleActionRepository');\n }",
"public function bootstrap(): void\n {\n $globalConfigurationBuilder = (new GlobalConfigurationBuilder())->withEnvironmentVariables()\n ->withPhpFileConfigurationSource(__DIR__ . '/../config.php');\n (new BootstrapperCollection())->addMany([\n new DotEnvBootstrapper(__DIR__ . '/../.env'),\n new ConfigurationBootstrapper($globalConfigurationBuilder),\n new GlobalExceptionHandlerBootstrapper($this->container)\n ])->bootstrapAll();\n }",
"public function boot()\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'deniskisel');\n // $this->loadViewsFrom(__DIR__.'/../resources/views', 'deniskisel');\n// $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n // $this->loadRoutesFrom(__DIR__.'/routes.php');\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }",
"public function boot()\n {\n $this->bootingDomain();\n\n $this->registerCommands();\n $this->registerListeners();\n $this->registerPolicies();\n $this->registerRoutes();\n $this->registerBladeComponents();\n $this->registerLivewireComponents();\n $this->registerSpotlightCommands();\n\n $this->bootedDomain();\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->registerMigrations();\n $this->registerMigrationFolder();\n $this->registerConfig();\n }\n }",
"public function boot()\n {\n $this->bootModulesMenu();\n $this->bootSkinComposer();\n $this->bootCustomBladeDirectives();\n }",
"public function boot(): void\n {\n $this->app->bind(Telegram::class, static function () {\n return new Telegram(\n config('services.telegram-bot-api.token'),\n new HttpClient()\n );\n });\n }",
"public function boot()\n {\n\n if (! config('app.installed')) {\n return;\n }\n\n $this->loadRoutesFrom(__DIR__ . '/Routes/admin.php');\n $this->loadRoutesFrom(__DIR__ . '/Routes/public.php');\n\n $this->loadMigrationsFrom(__DIR__ . '/Database/Migrations');\n\n// $this->loadViewsFrom(__DIR__ . '/Resources/Views', 'portfolio');\n\n $this->loadTranslationsFrom(__DIR__ . '/Resources/Lang/', 'contact');\n\n //Add menu to admin panel\n $this->adminMenu();\n\n }",
"public function boot()\n {\n if (! config('app.installed')) {\n return;\n }\n\n $this->app['config']->set([\n 'scout' => [\n 'driver' => setting('search_engine', 'mysql'),\n 'algolia' => [\n 'id' => setting('algolia_app_id'),\n 'secret' => setting('algolia_secret'),\n ],\n ],\n ]);\n }",
"protected function bootServiceProviders()\n {\n foreach($this->activeProviders as $provider)\n {\n // check if the service provider has a boot method.\n if (method_exists($provider, 'boot')) {\n $provider->boot();\n }\n }\n }",
"public function boot(): void\n {\n // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'imc');\n $this->loadMigrationsFrom(__DIR__.'/../database/migrations');\n $this->loadViewsFrom(__DIR__.'/../resources/views', 'imc');\n $this->registerPackageRoutes();\n\n // Publishing is only necessary when using the CLI.\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }",
"public function boot()\n {\n // Larapex Livewire\n $this->mergeConfigFrom(__DIR__ . '/../configs/larapex-livewire.php', 'larapex-livewire');\n\n $this->loadViewsFrom(__DIR__ . '/../resources/views', 'larapex-livewire');\n\n $this->registerBladeDirectives();\n\n if ($this->app->runningInConsole()) {\n $this->registerCommands();\n $this->publishResources();\n }\n }",
"public function boot()\n {\n // Bootstrap code here.\n $this->app->singleton(L9SmsApiChannel::class, function () {\n $config = config('l9smsapi');\n if (empty($config['token']) || empty($config['service'])) {\n throw new \\Exception('L9SmsApi missing token and service in config');\n }\n\n return new L9SmsApiChannel($config['token'], $config['service']);\n });\n\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__.'/../config/l9smsapi.php' => config_path('l9smsapi.php'),\n ], 'config');\n }\n }",
"public function boot()\n\t{\n\t\t$this->bindRepositories();\n\t}",
"public function boot()\n {\n if (!$this->app->runningInConsole()) {\n return;\n }\n\n $this->commands([\n ListenCommand::class,\n InstallCommand::class,\n EventsListCommand::class,\n ObserverMakeCommand::class,\n ]);\n\n foreach ($this->listen as $event => $listeners) {\n foreach ($listeners as $listener) {\n RabbitEvents::listen($event, $listener);\n }\n }\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n MultiAuthInstallCommand::class,\n ]);\n }\n }",
"public function boot() {\n\n\t\t$this->registerProviders();\n\t\t$this->bootProviders();\n\t\t$this->registerProxies();\n\t}",
"public function boot(): void\n {\n // routes\n $this->loadRoutes();\n // assets\n $this->loadAssets('assets');\n // configuration\n $this->loadConfig('configs');\n // views\n $this->loadViews('views');\n // view extends\n $this->extendViews();\n // translations\n $this->loadTranslates('views');\n // adminer\n $this->loadAdminer('adminer');\n // commands\n $this->loadCommands();\n // gates\n $this->registerGates();\n // listeners\n $this->registerListeners();\n // settings\n $this->applySettings();\n }",
"public function boot()\n {\n $this->setupFacades();\n $this->setupViews();\n $this->setupBlades();\n }",
"public function boot()\n {\n\n $this->app->translate_manager->addTranslateProvider(TranslateMenu::class);\n\n\n\n $this->loadRoutesFrom(__DIR__ . '/../routes/api.php');\n $this->loadMigrationsFrom(__DIR__ . '/../migrations/');\n\n\n\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([\n __DIR__ . '/../config/larkeauth-rbac-model.conf' => config_path('larkeauth-rbac-model.conf.larkeauth'),\n __DIR__ . '/../config/larkeauth.php' => config_path('larkeauth.php.larkeauth')\n ], 'larke-auth-config');\n\n $this->commands([\n Commands\\Install::class,\n Commands\\GroupAdd::class,\n Commands\\PolicyAdd::class,\n Commands\\RoleAssign::class,\n ]);\n }\n\n $this->mergeConfigFrom(__DIR__ . '/../config/larkeauth.php', 'larkeauth');\n\n $this->bootObserver();\n }",
"public function boot(): void\n {\n $this->app\n ->when(RocketChatWebhookChannel::class)\n ->needs(RocketChat::class)\n ->give(function () {\n return new RocketChat(\n new HttpClient(),\n Config::get('services.rocketchat.url'),\n Config::get('services.rocketchat.token'),\n Config::get('services.rocketchat.channel')\n );\n });\n }",
"public function boot()\n {\n if ($this->booted) {\n return;\n }\n\n $this->app->registerConfiguredProvidersInRequest();\n\n $this->fireAppCallbacks($this->bootingCallbacks);\n\n /** array_walk\n * If when a provider booting, it reg some other providers,\n * then the new providers added to $this->serviceProviders\n * then array_walk will loop the new ones and boot them. // pingpong/modules 2.0 use this feature\n */\n array_walk($this->serviceProviders, function ($p) {\n $this->bootProvider($p);\n });\n\n $this->booted = true;\n\n $this->fireAppCallbacks($this->bootedCallbacks);\n }",
"public function boot()\n {\n $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n if ($this->app->runningInConsole()) {\n $this->bootForConsole();\n }\n }",
"public function boot()\n\t{\n\t\t$this->package('atlantis/admin');\n\n\t\t#i: Set the locale\n\t\t$this->setLocale();\n\n $this->registerServiceAdminValidator();\n $this->registerServiceAdminFactory();\n $this->registerServiceAdminDataTable();\n $this->registerServiceModules();\n\n\t\t#i: Include our filters, view composers, and routes\n\t\tinclude __DIR__.'/../../filters.php';\n\t\tinclude __DIR__.'/../../views.php';\n\t\tinclude __DIR__.'/../../routes.php';\n\n\t\t$this->app['events']->fire('admin.ready');\n\t}",
"public function boot()\n {\n $this->app->booted(function () {\n $this->callMethodIfExists('jobs');\n });\n }",
"public function boot()\n {\n $this->bootSetTimeLocale();\n $this->bootBladeHotelRole();\n $this->bootBladeHotelGuest();\n $this->bootBladeIcon();\n }",
"public function boot(): void\n {\n $this->registerRoutes();\n $this->registerResources();\n $this->registerMixins();\n\n if ($this->app->runningInConsole()) {\n $this->offerPublishing();\n $this->registerMigrations();\n }\n }",
"public function boot()\n {\n $this->dispatch(new SetCoreConnection());\n $this->dispatch(new ConfigureCommandBus());\n $this->dispatch(new ConfigureTranslator());\n $this->dispatch(new LoadStreamsConfiguration());\n\n $this->dispatch(new InitializeApplication());\n $this->dispatch(new AutoloadEntryModels());\n $this->dispatch(new AddAssetNamespaces());\n $this->dispatch(new AddImageNamespaces());\n $this->dispatch(new AddViewNamespaces());\n $this->dispatch(new AddTwigExtensions());\n $this->dispatch(new RegisterAddons());\n }",
"public function boot(): void\n {\n $this->loadViews();\n $this->loadTranslations();\n\n if ($this->app->runningInConsole()) {\n $this->publishMultipleConfig();\n $this->publishViews(false);\n $this->publishTranslations(false);\n }\n }",
"public function boot()\n {\n $this->bootForConsole();\n $this->loadRoutesFrom(__DIR__ . '/routes/web.php');\n $this->loadViewsFrom(__DIR__ . '/./../resources/views', 'bakerysoft');\n }",
"public function boot()\n {\n $this->app->booted(function () {\n $this->defineRoutes();\n });\n $this->defineResources();\n $this->registerDependencies();\n }",
"public function boot()\n {\n $this->app->bind(CustomersRepositoryInterface::class, CustomersRepository::class);\n $this->app->bind(CountryToCodeMapperInterface::class, CountryToCodeMapper::class);\n $this->app->bind(PhoneNumbersValidatorInterface::class, PhoneNumbersRegexValidator::class);\n $this->app->bind(CustomersFilterServiceInterface::class, CustomersFilterService::class);\n $this->app->bind(CacheInterface::class, CacheAdapter::class);\n\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->publishes([$this->configPath() => config_path('oauth.php')], 'oauth');\n }\n\n app()->bind(ClientToken::class, function () {\n return new ClientToken();\n });\n\n app()->bind(TokenParser::class, function () {\n return new TokenParser(\n app()->get(Request::class)\n );\n });\n\n app()->bind(OAuthClient::class, function () {\n return new OAuthClient(\n app()->get(Request::class),\n app()->get(ClientToken::class)\n );\n });\n\n app()->bind(AccountService::class, function () {\n return new AccountService(app()->get(OAuthClient::class));\n });\n }",
"public function boot()\n {\n Client::observe(ClientObserver::class);\n $this->app->bind(ClientRepositoryInterface::class, function ($app) {\n return new ClientRepository(Client::class);\n });\n $this->app->bind(UserRepositoryInterface::class, function ($app) {\n return new UserRepository(User::class);\n });\n }",
"public function boot()\n {\n $this->setupFacades(); \n //$this->setupConfigs(); \n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n //\n }\n\n $this->loadRoutesFrom(__DIR__ . '/routes.php');\n }",
"public function boot()\n {\n $path = __DIR__.'/../..';\n\n $this->package('clumsy/cms', 'clumsy', $path);\n\n $this->registerAuthRoutes();\n $this->registerBackEndRoutes();\n\n require $path.'/helpers.php';\n require $path.'/errors.php';\n require $path.'/filters.php';\n\n if ($this->app->runningInConsole()) {\n $this->app->make('Clumsy\\CMS\\Clumsy');\n }\n\n }",
"public function boot()\n {\n $this->mergeConfigFrom(__DIR__ . '/../../config/bs4.php', 'bs4');\n $this->loadViewsFrom(__DIR__ . '/../../resources/views', 'bs');\n $this->loadTranslationsFrom(__DIR__ . '/../../resources/lang', 'bs');\n\n if ($this->app->runningInConsole())\n {\n $this->publishes([\n __DIR__ . '/../../resources/views' => resource_path('views/vendor/bs'),\n ], 'views');\n\n $this->publishes([\n __DIR__ . '/../../resources/lang' => resource_path('lang/vendor/bs'),\n ], 'lang');\n\n $this->publishes([\n __DIR__ . '/../../config' => config_path(),\n ], 'config');\n }\n }",
"public function boot()\n {\n $this->client = new HttpClient([\n 'base_uri' => 'https://api.ipfinder.io/v1/',\n 'headers' => [\n 'User-Agent' => 'Laravel-GeoIP-Torann',\n ],\n 'query' => [\n 'token' => $this->config('key'),\n ],\n ]);\n }",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Check::class,\n Clear::class,\n Fix::class,\n Fresh::class,\n Foo::class,\n Ide::class,\n MakeDatabase::class,\n Ping::class,\n Version::class,\n ]);\n }\n }",
"public function boot()\n {\n $app = $this->app;\n\n if (!$app->runningInConsole()) {\n return;\n }\n\n $source = realpath(__DIR__ . '/config/config.php');\n\n if (class_exists('Illuminate\\Foundation\\Application', false)) {\n // L5\n $this->publishes([$source => config_path('sniffer-rules.php')]);\n $this->mergeConfigFrom($source, 'sniffer-rules');\n } elseif (class_exists('Laravel\\Lumen\\Application', false)) {\n // Lumen\n $app->configure('sniffer-rules');\n $this->mergeConfigFrom($source, 'sniffer-rules');\n } else {\n // L4\n $this->package('chefsplate/sniffer-rules', null, __DIR__);\n }\n }",
"public function boot()\r\n\t{\r\n\t\t$this->package('estey/hipsupport');\r\n\t\t$this->registerHipSupport();\r\n\t\t$this->registerHipSupportOnlineCommand();\r\n\t\t$this->registerHipSupportOfflineCommand();\r\n\r\n\t\t$this->registerCommands();\r\n\t}",
"public function boot()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n ControllerMakeCommand::class,\n ServiceMakeCommand::class,\n RepositoryMakeCommand::class,\n ModelMakeCommand::class,\n RequestRuleMakeCommand::class,\n ]);\n }\n }",
"public function boot() {\n $srcDir = __DIR__ . '/../';\n \n $this->package('baseline/baseline', 'baseline', $srcDir);\n \n include $srcDir . 'Http/routes.php';\n include $srcDir . 'Http/filters.php';\n }",
"public function boot()\n {\n $this->app->bind('App\\Services\\ProviderAccountService', function() {\n return new ProviderAccountService;\n });\n }",
"public function boot()\n {\n $this->loadViewsFrom(__DIR__ . '/resources/views', 'Counters');\n\n $this->loadTranslationsFrom(__DIR__ . '/resources/lang', 'Counters');\n\n\n //To load migration files directly from the package\n// $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');\n\n\n $this->app->booted(function () {\n $loader = AliasLoader::getInstance();\n $loader->alias('Counters', Counters::class);\n\n });\n\n $this->publishes([\n __DIR__ . '/../config/counter.php' => config_path('counter.php'),\n ], 'config');\n\n\n\n $this->publishes([\n __DIR__.'/../database/migrations/0000_00_00_000000_create_counters_tables.php' => $this->app->databasePath().\"/migrations/0000_00_00_000000_create_counters_tables.php\",\n ], 'migrations');\n\n\n if ($this->app->runningInConsole()) {\n $this->commands([\\Maher\\Counters\\Commands\\MakeCounter::class]);\n }\n\n\n }",
"public function boot(Application $app)\n {\n\n }",
"public function boot()\n {\n }",
"public function boot()\n {\n }",
"public function boot()\n {\n }",
"public function boot()\n {\n }",
"public function boot()\n {\n }"
] | [
"0.7344842",
"0.7212776",
"0.7207748",
"0.7123287",
"0.7109729",
"0.70822036",
"0.7076881",
"0.70718396",
"0.7051853",
"0.7025475",
"0.7011949",
"0.70043486",
"0.6955807",
"0.69322443",
"0.69319373",
"0.69272774",
"0.6911386",
"0.69069713",
"0.6898877",
"0.6898432",
"0.6896597",
"0.6889767",
"0.6886577",
"0.6880688",
"0.6875815",
"0.6874972",
"0.68696195",
"0.6864291",
"0.6864246",
"0.68631536",
"0.68599164",
"0.6857919",
"0.685537",
"0.68552583",
"0.68522125",
"0.6839775",
"0.683261",
"0.6831196",
"0.68272495",
"0.68250644",
"0.68241394",
"0.68181944",
"0.68132496",
"0.68117976",
"0.6811785",
"0.6808445",
"0.68066794",
"0.680175",
"0.68005246",
"0.67994386",
"0.67969066",
"0.67912513",
"0.67884964",
"0.678574",
"0.678558",
"0.6783794",
"0.67782456",
"0.6773669",
"0.6766658",
"0.6766194",
"0.67617613",
"0.67611295",
"0.6758855",
"0.6756636",
"0.6754412",
"0.6751842",
"0.6747439",
"0.6744991",
"0.67441815",
"0.6743506",
"0.67400324",
"0.6739403",
"0.6738356",
"0.6738189",
"0.6731425",
"0.6730627",
"0.67293024",
"0.6726232",
"0.67261064",
"0.67192256",
"0.6716676",
"0.6716229",
"0.671442",
"0.6713091",
"0.6702467",
"0.66990495",
"0.66913867",
"0.6689953",
"0.66861963",
"0.66840357",
"0.66826946",
"0.6681548",
"0.6680455",
"0.6676407",
"0.6675645",
"0.6672465",
"0.66722375",
"0.66722375",
"0.66722375",
"0.66722375",
"0.66722375"
] | 0.0 | -1 |
Register any application services. | public function register()
{
//
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function register()\n {\n $this->registerServices();\n }",
"public function register()\n {\n $this->registerAssets();\n $this->registerServices();\n }",
"public function register()\n\t{\n\n $this->registerUserService();\n $this->registerCountryService();\n $this->registerMetaService();\n $this->registerLabelService();\n $this->registerTypeService();\n $this->registerGroupeService();\n $this->registerActiviteService();\n $this->registerRiiinglinkService();\n $this->registerInviteService();\n $this->registerTagService();\n $this->registerAuthService();\n $this->registerChangeService();\n $this->registerRevisionService();\n $this->registerUploadService();\n //$this->registerTransformerService();\n }",
"public function register()\n { \n // User Repository\n $this->app->bind('App\\Contracts\\Repository\\User', 'App\\Repositories\\User');\n \n // JWT Token Repository\n $this->app->bind('App\\Contracts\\Repository\\JSONWebToken', 'App\\Repositories\\JSONWebToken');\n \n $this->registerClearSettleApiLogin();\n \n $this->registerClearSettleApiClients();\n \n \n }",
"public function register()\n {\n $this->registerRequestHandler();\n $this->registerAuthorizationService();\n $this->registerServices();\n }",
"public function register()\n {\n $this->app->bind(\n PegawaiServiceContract::class,\n PegawaiService::class \n );\n\n $this->app->bind(\n RiwayatPendidikanServiceContract::class,\n RiwayatPendidikanService::class \n );\n\n $this->app->bind(\n ProductionHouseServiceContract::class,\n ProductionHouseService::class\n );\n\n $this->app->bind(\n MovieServiceContract::class,\n MovieService::class\n );\n\n $this->app->bind(\n PangkatServiceContract::class,\n PangkatService::class \n );\n\n }",
"public function register()\n {\n // $this->app->bind('AuthService', AuthService::class);\n }",
"public function register()\n {\n $this->registerServiceProviders();\n $this->registerSettingsService();\n $this->registerHelpers();\n }",
"public function register()\n {\n $this->registerAccountService();\n\n $this->registerCurrentAccount();\n\n //$this->registerMenuService();\n\n //$this->registerReplyService();\n }",
"public function register()\n {\n $this->registerRepositories();\n }",
"public function register()\n {\n $this->registerFacades();\n $this->registerRespository();\n }",
"public function register()\n {\n $this->app->bind('App\\Services\\UserService');\n $this->app->bind('App\\Services\\PostService');\n $this->app->bind('App\\Services\\MyPickService');\n $this->app->bind('App\\Services\\FacebookService');\n $this->app->bind('App\\Services\\LikeService');\n }",
"public function register()\n {\n // service 由各个应用在 AppServiceProvider 单独绑定对应实现\n }",
"public function register()\n {\n //\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n\n\n\n\n $this->app->register(ResponseMacroServiceProvider::class);\n $this->app->register(TwitterServiceProvider::class);\n }",
"public function register()\n {\n $this->registerGraphQL();\n\n $this->registerConsole();\n }",
"public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n\n $this->registerCommand();\n $this->registerSchedule();\n $this->registerDev();\n\n }",
"public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/telescope-error-service-client.php', 'telescope-error-service-client'\n );\n\n $this->registerStorageDriver();\n\n $this->commands([\n Console\\InstallCommand::class,\n Console\\PublishCommand::class,\n ]);\n }",
"public function register()\n\t{\n\t\t$this->registerPasswordBroker();\n\n\t\t$this->registerTokenRepository();\n\t}",
"public function register()\n {\n $this->registerConfig();\n\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\UtilitiesServiceProvider');\n $this->registerLogViewer();\n $this->app->register('Arcanedev\\\\LogViewer\\\\Providers\\\\CommandsServiceProvider');\n }",
"public function register() {\n $this->registerProviders();\n $this->registerFacades();\n }",
"public function register()\n {\n // $this->app->make('CheckStructureService');\n }",
"public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'APIcoLAB\\Services\\Registrar'\n\t\t);\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Flight\\FlightRepository',\n 'APIcoLAB\\Repositories\\Flight\\SkyScannerFlightRepository'\n );\n\n $this->app->bind(\n 'APIcoLAB\\Repositories\\Place\\PlaceRepository',\n 'APIcoLAB\\Repositories\\Place\\SkyScannerPlaceRepository'\n );\n\t}",
"public function register()\n {\n $this->app->register(\\Maatwebsite\\Excel\\ExcelServiceProvider::class);\n $this->app->register(\\Intervention\\Image\\ImageServiceProvider::class);\n $this->app->register(\\Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\DatatablesServiceProvider::class);\n $this->app->register(\\Yajra\\Datatables\\ButtonsServiceProvider::class);\n\n $loader = null;\n if (class_exists('Illuminate\\Foundation\\AliasLoader')) {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n }\n\n // Facades\n if ($loader != null) {\n $loader->alias('Image', \\Intervention\\Image\\Facades\\Image::class);\n $loader->alias('Excel', \\Maatwebsite\\Excel\\Facades\\Excel::class);\n\n }\n\n if (app()->environment() != 'production') {\n // Service Providers\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n $this->app->register(\\Barryvdh\\Debugbar\\ServiceProvider::class);\n\n // Facades\n if ($loader != null) {\n $loader->alias('Debugbar', \\Barryvdh\\Debugbar\\Facade::class);\n }\n }\n\n if ($this->app->environment('local', 'testing')) {\n $this->app->register(\\Laravel\\Dusk\\DuskServiceProvider::class);\n }\n }",
"public function register()\n {\n $this->registerInertia();\n $this->registerLengthAwarePaginator();\n }",
"public function register()\n {\n $this->registerFlareFacade();\n $this->registerServiceProviders();\n $this->registerBindings();\n }",
"public function register()\n {\n $this->app->bind(\n 'Toyopecas\\Repositories\\TopoRepository',\n 'Toyopecas\\Repositories\\TopoRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ServicesRepository',\n 'Toyopecas\\Repositories\\ServicesRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\SobreRepository',\n 'Toyopecas\\Repositories\\SobreRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Toyopecas\\Repositories\\ProdutosRepository',\n 'Toyopecas\\Repositories\\ProdutosRepositoryEloquent'\n );\n }",
"public function register()\r\n {\r\n Passport::ignoreMigrations();\r\n\r\n $this->app->singleton(\r\n CityRepositoryInterface::class,\r\n CityRepository::class\r\n );\r\n\r\n $this->app->singleton(\r\n BarangayRepositoryInterface::class,\r\n BarangayRepository::class\r\n );\r\n }",
"public function register()\n {\n $this->registerRepositories();\n\n $this->pushMiddleware();\n }",
"public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__ . '/../config/laravel-base.php', 'laravel-base');\r\n\r\n $this->app->bind(UuidGenerator::class, UuidGeneratorService::class);\r\n\r\n }",
"public function register()\n {\n\n $this->app->register(RepositoryServiceProvider::class);\n }",
"public function register()\n {\n $this->app->bind(\n 'Uhmane\\Repositories\\ContatosRepository', \n 'Uhmane\\Repositories\\ContatosRepositoryEloquent'\n );\n }",
"public function register()\r\n {\r\n $this->app->bind(\r\n ViberServiceInterface::class,\r\n ViberService::class\r\n );\r\n\r\n $this->app->bind(\r\n ApplicantServiceInterface::class,\r\n ApplicantService::class\r\n );\r\n }",
"public function register()\n {\n $this->app->register('ProAI\\Datamapper\\Providers\\MetadataServiceProvider');\n\n $this->app->register('ProAI\\Datamapper\\Presenter\\Providers\\MetadataServiceProvider');\n\n $this->registerScanner();\n\n $this->registerCommands();\n }",
"public function register()\n {\n $this->app->bind(\n 'Larafolio\\Http\\HttpValidator\\HttpValidator',\n 'Larafolio\\Http\\HttpValidator\\CurlValidator'\n );\n\n $this->app->register(ImageServiceProvider::class);\n }",
"public function register()\n {\n // Register all repositories\n foreach ($this->repositories as $repository) {\n $this->app->bind(\"App\\Repository\\Contracts\\I{$repository}\",\n \"App\\Repository\\Repositories\\\\{$repository}\");\n }\n\n // Register all services\n foreach ($this->services as $service) {\n $this->app->bind(\"App\\Service\\Contracts\\I{$service}\", \n \"App\\Service\\Modules\\\\{$service}\");\n }\n }",
"public function register()\n {\n $this->registerAdapterFactory();\n $this->registerDigitalOceanFactory();\n $this->registerManager();\n $this->registerBindings();\n }",
"public function register()\n {\n // Only Environment local\n if ($this->app->environment() !== 'production') {\n foreach ($this->services as $serviceClass) {\n $this->registerClass($serviceClass);\n }\n }\n\n // Register Aliases\n $this->registerAliases();\n }",
"public function register()\n {\n $this->app->bind(\n 'App\\Contracts\\UsersInterface',\n 'App\\Services\\UsersService'\n );\n $this->app->bind(\n 'App\\Contracts\\CallsInterface',\n 'App\\Services\\CallsService'\n );\n $this->app->bind(\n 'App\\Contracts\\ContactsInterface',\n 'App\\Services\\ContactsService'\n );\n $this->app->bind(\n 'App\\Contracts\\EmailsInterface',\n 'App\\Services\\EmailsService'\n );\n $this->app->bind(\n 'App\\Contracts\\PhoneNumbersInterface',\n 'App\\Services\\PhoneNumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\NumbersInterface',\n 'App\\Services\\NumbersService'\n );\n $this->app->bind(\n 'App\\Contracts\\UserNumbersInterface',\n 'App\\Services\\UserNumbersService'\n );\n }",
"public function register()\n {\n //\n if (env('APP_DEBUG', false) && $this->app->isLocal()) {\n $this->app->register(\\Laravel\\Telescope\\TelescopeServiceProvider::class);\n $this->app->register(TelescopeServiceProvider::class);\n }\n }",
"public function register()\n {\n $this->registerBrowser();\n\n $this->registerViewFinder();\n }",
"public function register()\n {\n $this->registerFriendsLog();\n $this->registerNotifications();\n $this->registerAPI();\n $this->registerMailChimpIntegration();\n }",
"public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/awesio-auth.php', 'awesio-auth');\n\n $this->app->singleton(AuthContract::class, Auth::class);\n\n $this->registerRepositories();\n\n $this->registerServices();\n\n $this->registerHelpers();\n }",
"public function register()\n {\n $this->registerRepository();\n $this->registerMigrator();\n $this->registerArtisanCommands();\n }",
"public function register()\n {\n $this->mergeConfigFrom(\n __DIR__.'/../config/services.php', 'services'\n );\n }",
"public function register()\n {\n $this->registerRateLimiting();\n\n $this->registerHttpValidation();\n\n $this->registerHttpParsers();\n\n $this->registerResponseFactory();\n\n $this->registerMiddleware();\n }",
"public function register()\n {\n $this->registerConfig();\n $this->registerView();\n $this->registerMessage();\n $this->registerMenu();\n $this->registerOutput();\n $this->registerCommands();\n require __DIR__ . '/Service/ServiceProvider.php';\n require __DIR__ . '/Service/RegisterRepoInterface.php';\n require __DIR__ . '/Service/ErrorHandling.php';\n $this->registerExportDompdf();\n $this->registerExtjs();\n }",
"public function register()\n {\n $this->registerRepository();\n $this->registerParser();\n }",
"public function register()\n {\n $this->registerOtherProviders()->registerAliases();\n $this->loadViewsFrom(__DIR__.'/../../resources/views', 'jarvisPlatform');\n $this->app->bind('jarvis.auth.provider', AppAuthenticationProvider::class);\n $this->loadRoutes();\n }",
"public function register()\n {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n\n $loader->alias('Laratrust', 'Laratrust\\LaratrustFacade');\n $loader->alias('Form', 'Collective\\Html\\FormFacade');\n $loader->alias('Html', 'Collective\\Html\\HtmlFacade');\n $loader->alias('Markdown', 'BrianFaust\\Parsedown\\Facades\\Parsedown');\n\n $this->app->register('Baum\\Providers\\BaumServiceProvider');\n $this->app->register('BrianFaust\\Parsedown\\ServiceProvider');\n $this->app->register('Collective\\Html\\HtmlServiceProvider');\n $this->app->register('Laravel\\Scout\\ScoutServiceProvider');\n $this->app->register('Laratrust\\LaratrustServiceProvider');\n\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\AuthServiceProvider');\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\EventServiceProvider');\n $this->app->register('Christhompsontldr\\Laraboard\\Providers\\ViewServiceProvider');\n\n $this->registerCommands();\n }",
"public function register()\n {\n $this->registerGuard();\n $this->registerBladeDirectives();\n }",
"public function register()\n {\n $this->registerConfig();\n\n $this->app->register(Providers\\ManagerServiceProvider::class);\n $this->app->register(Providers\\ValidationServiceProvider::class);\n }",
"public function register()\n {\n $this->app->bind(ReviewService::class, function ($app) {\n return new ReviewService();\n });\n }",
"public function register()\n {\n $this->app->bind(\n Services\\UserService::class,\n Services\\Implementations\\UserServiceImplementation::class\n );\n $this->app->bind(\n Services\\FamilyCardService::class,\n Services\\Implementations\\FamilyCardServiceImplementation::class\n );\n }",
"public function register()\n {\n // register its dependencies\n $this->app->register(\\Cviebrock\\EloquentSluggable\\ServiceProvider::class);\n }",
"public function register()\n {\n $this->app->bind('gameService', 'App\\Service\\GameService');\n }",
"public function register()\n {\n $this->app->bind(VehicleRepository::class, GuzzleVehicleRepository::class);\n }",
"public function register()\n {\n $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function($app){\n return new ElasticsearchNedvizhimostsObserver(new Client());\n });\n\n // $this->app->bindShared(ElasticsearchNedvizhimostsObserver::class, function()\n // {\n // return new ElasticsearchNedvizhimostsObserver(new Client());\n // });\n }",
"public function register()\n {\n // Register the app\n $this->registerApp();\n\n // Register Commands\n $this->registerCommands();\n }",
"public function register()\n {\n $this->registerGeography();\n\n $this->registerCommands();\n\n $this->mergeConfig();\n\n $this->countriesCache();\n }",
"public function register()\n {\n $this->app->bind(CertificationService::class, function($app){\n return new CertificationService();\n });\n }",
"public function register()\n\t{\n\t\t$this->app->bind(\n\t\t\t'Illuminate\\Contracts\\Auth\\Registrar',\n\t\t\t'App\\Services\\Registrar'\n\t\t);\n \n $this->app->bind(\"App\\\\Services\\\\ILoginService\",\"App\\\\Services\\\\LoginService\");\n \n $this->app->bind(\"App\\\\Repositories\\\\IItemRepository\",\"App\\\\Repositories\\\\ItemRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IOutletRepository\",\"App\\\\Repositories\\\\OutletRepository\");\n $this->app->bind(\"App\\\\Repositories\\\\IInventoryRepository\",\"App\\\\Repositories\\\\InventoryRepository\");\n\t}",
"public function register()\n {\n $this->registerRollbar();\n }",
"public function register()\n {\n $this->app->bind('activity', function () {\n return new ActivityService(\n $this->app->make(Activity::class),\n $this->app->make(PermissionService::class)\n );\n });\n\n $this->app->bind('views', function () {\n return new ViewService(\n $this->app->make(View::class),\n $this->app->make(PermissionService::class)\n );\n });\n\n $this->app->bind('setting', function () {\n return new SettingService(\n $this->app->make(Setting::class),\n $this->app->make(Repository::class)\n );\n });\n\n $this->app->bind('images', function () {\n return new ImageService(\n $this->app->make(Image::class),\n $this->app->make(ImageManager::class),\n $this->app->make(Factory::class),\n $this->app->make(Repository::class)\n );\n });\n }",
"public function register()\n {\n App::bind('CreateTagService', function($app) {\n return new CreateTagService;\n });\n\n App::bind('UpdateTagService', function($app) {\n return new UpdateTagService;\n });\n }",
"public function register()\n {\n $this->registerDomainLocalization();\n $this->registerDomainLocaleFilter();\n }",
"public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(MailConfigServiceProvider::class);\n }",
"public function register()\n {\n $this->registerUserProvider();\n $this->registerGroupProvider();\n $this->registerNeo();\n\n $this->registerCommands();\n\n $this->app->booting(function()\n {\n $loader = \\Illuminate\\Foundation\\AliasLoader::getInstance();\n $loader->alias('Neo', 'Wetcat\\Neo\\Facades\\Neo');\n });\n }",
"public function register()\n {\n //\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\CompanyInterface', \n 'App\\Repositories\\CompanyRepo'\n );\n $this->app->bind(\n 'App\\Repositories\\Interfaces\\UtilityInterface', \n 'App\\Repositories\\UtilityRepo'\n );\n }",
"public function register()\n {\n $this->registerPayment();\n\n $this->app->alias('image', 'App\\Framework\\Image\\ImageService');\n }",
"public function register()\n {\n $this->app->bind(AttributeServiceInterface::class,AttributeService::class);\n $this->app->bind(ProductServiceIntarface::class,ProductService::class);\n\n\n }",
"public function register()\n {\n App::bind('App\\Repositories\\UserRepositoryInterface','App\\Repositories\\UserRepository');\n App::bind('App\\Repositories\\AnimalRepositoryInterface','App\\Repositories\\AnimalRepository');\n App::bind('App\\Repositories\\DonationTypeRepositoryInterface','App\\Repositories\\DonationTypeRepository');\n App::bind('App\\Repositories\\NewsAniRepositoryInterface','App\\Repositories\\NewsAniRepository');\n App::bind('App\\Repositories\\DonationRepositoryInterface','App\\Repositories\\DonationRepository');\n App::bind('App\\Repositories\\ProductRepositoryInterface','App\\Repositories\\ProductRepository');\n App::bind('App\\Repositories\\CategoryRepositoryInterface','App\\Repositories\\CategoryRepository');\n App::bind('App\\Repositories\\TransferMoneyRepositoryInterface','App\\Repositories\\TransferMoneyRepository');\n App::bind('App\\Repositories\\ShippingRepositoryInterface','App\\Repositories\\ShippingRepository');\n App::bind('App\\Repositories\\ReserveProductRepositoryInterface','App\\Repositories\\ReserveProductRepository');\n App::bind('App\\Repositories\\Product_reserveRepositoryInterface','App\\Repositories\\Product_reserveRepository');\n App::bind('App\\Repositories\\Ordering_productRepositoryInterface','App\\Repositories\\Ordering_productRepository');\n App::bind('App\\Repositories\\OrderingRepositoryInterface','App\\Repositories\\OrderingRepository');\n App::bind('App\\Repositories\\UserUpdateSlipRepositoryInterface','App\\Repositories\\UserUpdateSlipRepository');\n }",
"public function register()\n {\n if ($this->app->runningInConsole()) {\n $this->registerPublishing();\n }\n }",
"public function register()\n {\n $this->app->bind(HttpClient::class, function ($app) {\n return new HttpClient();\n });\n\n $this->app->bind(SeasonService::class, function ($app) {\n return new SeasonService($app->make(HttpClient::class));\n });\n\n $this->app->bind(MatchListingController::class, function ($app) {\n return new MatchListingController($app->make(SeasonService::class));\n });\n\n }",
"public function register()\n {\n $this->setupConfig();\n\n $this->bindServices();\n }",
"public function register()\n {\n if ($this->app->runningInConsole()) {\n $this->commands([\n Console\\MakeEndpointCommand::class,\n Console\\MakeControllerCommand::class,\n Console\\MakeRepositoryCommand::class,\n Console\\MakeTransformerCommand::class,\n Console\\MakeModelCommand::class,\n ]);\n }\n\n $this->registerFractal();\n }",
"public function register()\n {\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(AuthServiceProvider::class);\n }",
"public function register()\n {\n\n $config = $this->app['config']['cors'];\n\n $this->app->bind('Yocome\\Cors\\CorsService', function() use ($config){\n return new CorsService($config);\n });\n\n }",
"public function register()\n {\n // Bind facade\n\n $this->registerRepositoryBibdings();\n $this->registerFacades();\n $this->app->register(RouteServiceProvider::class);\n $this->app->register(\\Laravel\\Socialite\\SocialiteServiceProvider::class);\n }",
"public function register()\n {\n\n\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\UserRepository',\n 'Onlinecorrection\\Repositories\\UserRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ClientRepository',\n 'Onlinecorrection\\Repositories\\ClientRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\ProjectRepository',\n 'Onlinecorrection\\Repositories\\ProjectRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentRepository',\n 'Onlinecorrection\\Repositories\\DocumentRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderRepository',\n 'Onlinecorrection\\Repositories\\OrderRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\OrderItemRepository',\n 'Onlinecorrection\\Repositories\\OrderItemRepositoryEloquent'\n );\n\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\DocumentImageRepository',\n 'Onlinecorrection\\Repositories\\DocumentImageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\PackageRepository',\n 'Onlinecorrection\\Repositories\\PackageRepositoryEloquent'\n );\n $this->app->bind(\n 'Onlinecorrection\\Repositories\\StatusRepository',\n 'Onlinecorrection\\Repositories\\StatusRepositoryEloquent'\n );\n\n }",
"public function register()\n {\n $this->registerConfig();\n\n $this->registerDataStore();\n\n $this->registerStorageFactory();\n\n $this->registerStorageManager();\n\n $this->registerSimplePhoto();\n }",
"public function register()\n {\n // Default configuration file\n $this->mergeConfigFrom(\n __DIR__.'/Config/auzo_tools.php', 'auzoTools'\n );\n\n $this->registerModelBindings();\n $this->registerFacadesAliases();\n }",
"public function register()\n {\n $this->app->bind(\\Cookiesoft\\Repositories\\CategoryRepository::class, \\Cookiesoft\\Repositories\\CategoryRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\BillpayRepository::class, \\Cookiesoft\\Repositories\\BillpayRepositoryEloquent::class);\n $this->app->bind(\\Cookiesoft\\Repositories\\UserRepository::class, \\Cookiesoft\\Repositories\\UserRepositoryEloquent::class);\n //:end-bindings:\n }",
"public function register()\n {\n $this->app->singleton(ThirdPartyAuthService::class, function ($app) {\n return new ThirdPartyAuthService(\n config('settings.authentication_services'),\n $app['Laravel\\Socialite\\Contracts\\Factory'],\n $app['Illuminate\\Contracts\\Auth\\Factory']\n );\n });\n\n $this->app->singleton(ImageValidator::class, function ($app) {\n return new ImageValidator(\n config('settings.image.max_filesize'),\n config('settings.image.mime_types'),\n $app['Intervention\\Image\\ImageManager']\n );\n });\n\n $this->app->singleton(ImageService::class, function ($app) {\n return new ImageService(\n config('settings.image.max_width'),\n config('settings.image.max_height'),\n config('settings.image.folder')\n );\n });\n\n $this->app->singleton(RandomWordService::class, function ($app) {\n return new RandomWordService(\n $app['App\\Repositories\\WordRepository'],\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.number_of_words_to_remember')\n );\n });\n\n $this->app->singleton(WordRepository::class, function ($app) {\n return new WordRepository(config('settings.min_number_of_chars_per_one_mistake_in_search'));\n });\n\n $this->app->singleton(CheckAnswerService::class, function ($app) {\n return new CheckAnswerService(\n $app['Illuminate\\Session\\SessionManager'],\n config('settings.min_number_of_chars_per_one_mistake')\n );\n });\n\n if ($this->app->environment() !== 'production') {\n $this->app->register(\\Barryvdh\\LaravelIdeHelper\\IdeHelperServiceProvider::class);\n }\n }",
"public function register()\n {\n $this->registerJWT();\n $this->registerJWSProxy();\n $this->registerJWTAlgoFactory();\n $this->registerPayload();\n $this->registerPayloadValidator();\n $this->registerPayloadUtilities();\n\n // use this if your package has a config file\n // config([\n // 'config/JWT.php',\n // ]);\n }",
"public function register()\n {\n $this->registerManager();\n $this->registerConnection();\n $this->registerWorker();\n $this->registerListener();\n $this->registerFailedJobServices();\n $this->registerOpisSecurityKey();\n }",
"public function register()\n {\n $this->app->register(RouterServiceProvider::class);\n }",
"public function register()\n {\n $this->app->bind('App\\Services\\TripService.php', function ($app) {\n return new TripService();\n });\n }",
"public function register()\n {\n $this->registerUserComponent();\n $this->registerLocationComponent();\n\n }",
"public function register()\n {\n $this->app->bind(\n \\App\\Services\\UserCertificate\\IUserCertificateService::class,\n \\App\\Services\\UserCertificate\\UserCertificateService::class\n );\n }",
"public function register()\n {\n $this->app->bind(FacebookMarketingContract::class,FacebookMarketingService::class);\n }",
"public function register()\n {\n /**\n * Register additional service\n * providers if they exist.\n */\n foreach ($this->providers as $provider) {\n if (class_exists($provider)) {\n $this->app->register($provider);\n }\n }\n }",
"public function register()\n {\n $this->app->singleton('composer', function($app)\n {\n return new Composer($app['files'], $app['path.base']);\n });\n\n $this->app->singleton('forge', function($app)\n {\n return new Forge($app);\n });\n\n // Register the additional service providers.\n $this->app->register('Nova\\Console\\ScheduleServiceProvider');\n $this->app->register('Nova\\Queue\\ConsoleServiceProvider');\n }",
"public function register()\n {\n\n\n\n $this->mergeConfigFrom(__DIR__ . '/../config/counter.php', 'counter');\n\n $this->app->register(RouteServiceProvider::class);\n\n\n }",
"public function register()\r\n {\r\n $this->mergeConfigFrom(__DIR__.'/../config/colissimo.php', 'colissimo');\r\n $this->mergeConfigFrom(__DIR__.'/../config/rules.php', 'colissimo.rules');\r\n $this->mergeConfigFrom(__DIR__.'/../config/prices.php', 'colissimo.prices');\r\n $this->mergeConfigFrom(__DIR__.'/../config/zones.php', 'colissimo.zones');\r\n $this->mergeConfigFrom(__DIR__.'/../config/insurances.php', 'colissimo.insurances');\r\n $this->mergeConfigFrom(__DIR__.'/../config/supplements.php', 'colissimo.supplements');\r\n // Register the service the package provides.\r\n $this->app->singleton('colissimo', function ($app) {\r\n return new Colissimo;\r\n });\r\n }",
"public function register(){\n $this->registerDependencies();\n $this->registerAlias();\n $this->registerServiceCommands();\n }",
"public function register()\n {\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyService::class,\n \\App\\Services\\Survey\\SurveyService::class\n );\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyQuestionService::class,\n \\App\\Services\\Survey\\SurveyQuestionService::class\n );\n\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyAttemptService::class,\n \\App\\Services\\Survey\\SurveyAttemptService::class\n );\n\n $this->app->bind(\n \\App\\Services\\Survey\\ISurveyAttemptDataService::class,\n \\App\\Services\\Survey\\SurveyAttemptDataService::class\n );\n }",
"public function register()\n {\n $this->mergeConfigFrom(\n __DIR__ . '/../config/atlas.php', 'atlas'\n );\n \n $this->app->singleton(CoreContract::class, Core::class);\n \n $this->registerFacades([\n 'Atlas' => 'Atlas\\Facades\\Atlas',\n ]);\n }",
"public function register()\n {\n $this->app->bind(TelescopeRouteServiceContract::class, TelescopeRouteService::class);\n }",
"public function register()\n {\n $this->registerRepositoryBindings();\n\n $this->registerInterfaceBindings();\n\n $this->registerAuthorizationServer();\n\n $this->registerResourceServer();\n\n $this->registerFilterBindings();\n\n $this->registerCommands();\n }",
"public function register()\n {\n $this->mergeConfigFrom(__DIR__.'/../config/faithgen-events.php', 'faithgen-events');\n\n $this->app->singleton(EventsService::class);\n $this->app->singleton(GuestService::class);\n }",
"public function register()\n {\n $this->registerAliases();\n $this->registerFormBuilder();\n\n // Register package commands\n $this->commands([\n 'CoreDbCommand',\n 'CoreSetupCommand',\n 'CoreSeedCommand',\n 'EventEndCommand',\n 'ArchiveMaxAttempts',\n 'CronCommand',\n 'ExpireInstructors',\n 'SetTestLock',\n 'StudentArchiveTraining',\n 'TestBuildCommand',\n 'TestPublishCommand',\n ]);\n\n // Merge package config with one in outer app \n // the app-level config will override the base package config\n $this->mergeConfigFrom(\n __DIR__.'/../config/core.php', 'core'\n );\n\n // Bind our 'Flash' class\n $this->app->bindShared('flash', function () {\n return $this->app->make('Hdmaster\\Core\\Notifications\\FlashNotifier');\n });\n\n // Register package dependencies\n $this->app->register('Collective\\Html\\HtmlServiceProvider');\n $this->app->register('Bootstrapper\\BootstrapperL5ServiceProvider');\n $this->app->register('Codesleeve\\LaravelStapler\\Providers\\L5ServiceProvider');\n $this->app->register('PragmaRX\\ZipCode\\Vendor\\Laravel\\ServiceProvider');\n $this->app->register('Rap2hpoutre\\LaravelLogViewer\\LaravelLogViewerServiceProvider');\n\n $this->app->register('Zizaco\\Confide\\ServiceProvider');\n $this->app->register('Zizaco\\Entrust\\EntrustServiceProvider');\n }"
] | [
"0.7879658",
"0.7600202",
"0.74930716",
"0.73852855",
"0.736794",
"0.7306089",
"0.7291359",
"0.72896826",
"0.72802424",
"0.7268026",
"0.7267702",
"0.72658145",
"0.7249053",
"0.72171587",
"0.7208486",
"0.7198799",
"0.7196415",
"0.719478",
"0.7176513",
"0.7176227",
"0.7164647",
"0.71484524",
"0.71337837",
"0.7129424",
"0.71231985",
"0.7120174",
"0.7103653",
"0.71020955",
"0.70977163",
"0.7094701",
"0.7092148",
"0.70914364",
"0.7088618",
"0.7087278",
"0.70827085",
"0.70756096",
"0.7075115",
"0.70741326",
"0.7071857",
"0.707093",
"0.7070619",
"0.7067406",
"0.7066438",
"0.7061766",
"0.70562875",
"0.7051525",
"0.7049684",
"0.70467263",
"0.7043264",
"0.7043229",
"0.70429426",
"0.7042174",
"0.7038729",
"0.70384216",
"0.70348704",
"0.7034105",
"0.70324445",
"0.70282733",
"0.7025024",
"0.702349",
"0.7023382",
"0.702262",
"0.7022583",
"0.7022161",
"0.702139",
"0.7021084",
"0.7020801",
"0.7019928",
"0.70180106",
"0.7017351",
"0.7011482",
"0.7008627",
"0.7007786",
"0.70065045",
"0.7006424",
"0.70060986",
"0.69992065",
"0.699874",
"0.69980377",
"0.69980335",
"0.6997871",
"0.6996457",
"0.69961494",
"0.6994749",
"0.6991596",
"0.699025",
"0.6988414",
"0.6987274",
"0.69865865",
"0.69862866",
"0.69848233",
"0.6978736",
"0.69779474",
"0.6977697",
"0.6976002",
"0.69734764",
"0.6972392",
"0.69721776",
"0.6970663",
"0.6968296",
"0.696758"
] | 0.0 | -1 |
/ Set the keys for a save update query. | protected function setKeysForSaveQuery(\Illuminate\Database\Eloquent\Builder $query)
{
$keys = $this->getKeyName();
if(!is_array($keys)){
return parent::setKeysForSaveQuery($query);
}
foreach($keys as $keyName){
$query->where($keyName, '=', $this->getKeyForSaveQuery($keyName));
}
return $query;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addKeysToUpdates()\n\t{\n\t\t$keys = $this->database->getNewKeys();\n\n\t\tif (!empty($keys)) {\n\t\t\t$this->addToUpdates($keys);\n\t\t}\n\t}",
"protected function setKeysForSaveQuery(\\Illuminate\\Database\\Eloquent\\Builder $query)\n{\n $keys = $this->getKeyName();\n if(!is_array($keys)){\n return parent::setKeysForSaveQuery($query);\n }\n\n foreach($keys as $keyName){\n $query->where($keyName, '=', $this->getKeyForSaveQuery($keyName));\n }\n\n return $query;\n}",
"protected function setKeysForSaveQuery($query)\n {\n $keys = $this->getKeyName();\n if (!is_array($keys)) {\n return parent::setKeysForSaveQuery($query);\n }\n\n foreach ($keys as $keyName) {\n $query->where($keyName, '=', $this->getKeyForSaveQuery($keyName));\n }\n\n return $query;\n }",
"protected function setKeysForSaveQuery(Builder $query)\n {\n $keys = $this->getKeyName();\n if (!is_array($keys)) {\n return parent::setKeysForSaveQuery($query);\n }\n\n foreach ($keys as $keyName) {\n $query->where($keyName, '=', $this->getKeyForSaveQuery($keyName));\n }\n\n return $query;\n }",
"public function testUpdateKey()\n {\n }",
"protected function setKeysForSaveQuery(\\Illuminate\\Database\\Eloquent\\Builder $query) {\n if (is_array($this->primaryKey)) {\n foreach ($this->primaryKey as $pk) {\n $query->where($pk, '=', $this->original[$pk]);\n }\n return $query;\n }else{\n return parent::setKeysForSaveQuery($query);\n }\n }",
"public function setKeysFromInserted()\n\t{\n\t\t$keys = $this->database->getNewKeys();\n\n\t\t$this->data = Arr::mergeDeep($this->data, $keys);\n\n\t\t$this->key = $keys[$this->primaryKey] ?? null;\n\t}",
"public function save(){\n\t\t$v = get_object_vars($this);\n\t\tunset($v['TABLE']);\n\t\tunset($v['IS_UPDATING']);\n\t\t$key_s = \"\";\n\t\t$key_v = \"\";\n\t\tforeach($v as $key => $val){\n\t\t\t$key_s .= \"$key, \";\n\t\t\t$key_v .= \"'$val', \";\n\t\t}\n\t\t$key_s = substr_replace($key_s, '', strlen($key_s)-2);\n\t\t$key_v = substr_replace($key_v, '', strlen($key_v)-2);\n\t\tif($this->IS_UPDATING){\n\t\t\t$str = \"\";\n\t\t\tunset($v['id']);\n\t\t\tforeach($v as $key => $val){\n\t\t\t\t$str .= $key . \"='$val', \";\n\t\t\t}\n\t\t\t$str = substr_replace($str, '', strlen($str)-2);\n\t\t\t$query = \"UPDATE {$this->TABLE} SET $str WHERE id = {$this->id}\";\n\t\t} else {\n\t\t\t$query = \"INSERT INTO {$this->TABLE} ($key_s) VALUES ($key_v)\";\n\t\t}\n\t\t$q = parent::query($query);\n\t\treturn $q;\n\t}",
"protected function setKeysForSaveQuery(Builder $query)\n {\n $query\n //Put appropriate values for your keys here:\n ->where('username', '=', $this->username)\n ->where('story_id', '=', $this->story_id);\n return $query;\n }",
"function save($keys=null,$extra_where=null)\n\t{\n\t\tif (is_array($keys) && count($keys) && !isset($keys[0]))\t// allow to use an etag, eg array('etag=etag+1')\n\t\t{\n\t\t\t$this->data_merge($keys);\n\t\t\t$keys = null;\n\t\t}\n\t\t$ret = parent::save($keys,$extra_where);\n\n\t\tif ($ret == 0 && $this->customfields)\n\t\t{\n\t\t\t$this->save_customfields($this->data);\n\t\t}\n\t\treturn $ret;\n\t}",
"protected function setKeysForSaveQuery(\\Illuminate\\Database\\Eloquent\\Builder $query)\n {\n $query\n //Put appropriate values for your keys here:\n ->where('idPlayer', '=', $this->idPlayer)\n ->where('idLevel', '=', $this->idLevel);\n\n return $query;\n }",
"public function update(){\n static::setConnection();\n $table = static::$table;\n $keyColumn = static::$keyColumn;\n $sql = \"UPDATE \".$table.\" SET \";\n foreach($this as $k=>$v){\n $sql .= $k.\" = '\".$v.\"',\";\n }\n $sql = trim($sql, ',');\n $sql .= \" WHERE \".$keyColumn.\" = \".$this->keyColumn;\n mysqli_query(static::$conn, $sql);\n }",
"protected function setKeysForSaveQuery(Builder $query){\n\t\t$query->where($this->getKeyForSaveQuery());\n\n\t\treturn $query;\n\t}",
"public function _getUpdateKeys() {\n return array(Model_Fields_PracticeFieldCoordinatorDB::DB_COLUMN_ID => $this->{Model_Fields_PracticeFieldCoordinatorDB::DB_COLUMN_ID});\n }",
"protected function setKeysForSaveQuery(Builder $query) {\n\t\treturn $query->where([\n\t\t\t'group_id' => $this->getAttribute('group_id'),\n\t\t\t'access_id' => $this->getAttribute('access_id'),\n\t\t]);\n\t}",
"protected function setUpdateArray() {\n $column_names = getColumnNames($this->table_name);\n foreach ($column_names as $column_name) {\n if (isset($_POST[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_POST[$column_name]);\n } else if (isset($_GET[$column_name])) {\n $this->update[$column_name] = Mysql::SQLValue($_GET[$column_name]);\n }\n }\n }",
"protected static function setKeys($options, $keys, $cmdname, \\BaseObject $propelitem) {\r\n foreach ($keys as $key => $data) {\r\n if (!isset($data['colname']) || !isset($data['actions']) || !isset($data['actions'][$cmdname]))\r\n continue;\r\n if ($data['actions'][$cmdname] == 'required' || $data['actions'][$cmdname] == 'internal')\r\n $propelitem->{\"set\" . $data['colname']}($options[$key]);\r\n else if ($data['actions'][$cmdname] == 'optional' && isset($options[$key]))\r\n $propelitem->{\"set\" . $data['colname']}($options[$key]);\r\n }\r\n }",
"public function _getUpdateKeys() {\n return array(Model_Fields_FieldDB::DB_COLUMN_ID => $this->{Model_Fields_FieldDB::DB_COLUMN_ID});\n }",
"protected function setKeysForSaveQuery(Builder $query)\n {\n $query\n //Put appropriate values for your keys here:\n ->where('locatieCode', '=', $this->locatieCode)\n ->where('productCode', '=', $this->productCode);\n\n return $query;\n }",
"protected function setKeysForSaveQuery(Builder $query)\n {\n $query\n ->where('entity_id', '=', $this->getAttribute('entity_id'))\n ->where('user_id', '=', $this->getAttribute('user_id'));\n return $query;\n }",
"public function _getUpdateKeys() {\r\n return array(Model_Fields_LeagueDB::DB_COLUMN_ID => $this->{Model_Fields_LeagueDB::DB_COLUMN_ID});\r\n }",
"public function actionSetKeys()\n {\n $this->setKeys($this->generateKeysPaths);\n }",
"public function setAll($values) {\n\t\tif (isset($values[self::$primaryKey[$this->table]])) {\n\t\t\t$this->originalData = $values;\n\t\t}\n\t\telse {\n\t\t\t$this->modifiedData = $values;\n\t\t}\n\t}",
"protected function setKeysForSaveQuery($query): Builder\n {\n $key = $this->getKey();\n\n $query->key(...array_values($key));\n\n return $query;\n }",
"private function update(){\n\t\t$q = Queries::update($this->authkey);\n\t\t$this->internalQuery($q);\n\t}",
"public function saveAll() {\n if (isset($this::$has)) {\n foreach ($this::$has as $key => $value) {\n if(isset($this->$key)) {\n foreach ($this->$key as $item) {\n $item->saveAll();\n }\n }\n }\n }\n $this->save();\n }",
"public function setPrimaryKey($keys)\n {\n $this->setSekolahId($keys[0]);\n $this->setSemesterId($keys[1]);\n }",
"function save($keys=null,$extra_where=null)\n\t{\n\t\tif (is_array($keys) && count($keys)) $this->data_merge($keys);\n\n\t\t// check if data contains user timezone during read AND user changed timezone since then\n\t\t// --> load old timezone for the rest of this request\n\t\t// this only a grude hack, better handle this situation in app code:\n\t\t// history logging eg. depends on old data read before calling save, which is then in new timezone!\n\t\t// anyway it's better fixing it here then not fixing it at all ;-)\n\t\tif (isset($this->data[self::USER_TIMEZONE_READ]) && $this->data[self::USER_TIMEZONE_READ] != egw_time::$user_timezone->getName())\n\t\t{\n\t\t\t//echo \"<p>\".__METHOD__.\"() User change TZ since read! tz-read=\".$this->data[self::USER_TIMEZONE_READ].' != current-tz='.egw_time::$user_timezone->getName().\" --> fixing</p>\\n\";\n\t\t\terror_log(__METHOD__.\"() User changed TZ since read! tz-read=\".$this->data[self::USER_TIMEZONE_READ].' != current-tz='.egw_time::$user_timezone->getName().\" --> fixing</p>\");\n\t\t\t$GLOBALS['egw_info']['user']['preferences']['common']['tz'] = $this->data[self::USER_TIMEZONE_READ];\n\t\t\tegw_time::setUserPrefs($this->data[self::USER_TIMEZONE_READ]);\n\t\t\t$this->set_times();\n\t\t}\n\t\t$this->data2db();\n\n\t\tif ((int) $this->debug >= 4) { echo \"so_sql::save(\".print_r($keys,true).\") autoinc_id='$this->autoinc_id', data=\"; _debug_array($this->data); }\n\n\t\tif ($this->autoinc_id && !$this->data[$this->db_key_cols[$this->autoinc_id]])\t// insert with auto id\n\t\t{\n\t\t\tforeach($this->db_cols as $db_col => $col)\n\t\t\t{\n\t\t\t\tif (!$this->autoinc_id || $db_col != $this->autoinc_id)\t// not write auto-inc-id\n\t\t\t\t{\n\t\t\t\t\tif (!array_key_exists($col,$this->data) && \t// handling of unset columns in $this->data\n\t\t\t\t\t\t(isset($this->table_def['fd'][$db_col]['default']) ||\t// we have a default value\n\t\t\t\t\t\t !isset($this->table_def['fd'][$db_col]['nullable']) || $this->table_def['fd'][$db_col]['nullable']))\t// column is nullable\n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\t// no need to write that (unset) column\n\t\t\t\t\t}\n\t\t\t\t\tif ($this->table_def['fd'][$db_col]['type'] == 'varchar' &&\n\t\t\t\t\t\tstrlen($this->data[$col]) > $this->table_def['fd'][$db_col]['precision'])\n\t\t\t\t\t{\n\t\t\t\t\t\t// truncate the field to mamimum length, if upper layers didn't care\n\t\t\t\t\t\t$data[$db_col] = substr($this->data[$col],0,$this->table_def['fd'][$db_col]['precision']);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$data[$db_col] = (string) $this->data[$col] === '' && $this->empty_on_write == 'NULL' ? null : $this->data[$col];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->db->insert($this->table_name,$data,false,__LINE__,__FILE__,$this->app);\n\n\t\t\tif ($this->autoinc_id)\n\t\t\t{\n\t\t\t\t$this->data[$this->db_key_cols[$this->autoinc_id]] = $this->db->get_last_insert_id($this->table_name,$this->autoinc_id);\n\t\t\t}\n\t\t}\n\t\telse // insert in table without auto id or update of existing row, dont write colums unset in $this->data\n\t\t{\n\t\t\tforeach($this->db_data_cols as $db_col => $col)\n\t\t\t{\n\t\t\t\t// we need to update columns set to null: after a $this->data[$col]=null:\n\t\t\t\t// - array_key_exits($col,$this->data) === true\n\t\t\t\t// - isset($this->data[$col]) === false\n\t\t\t\tif (!array_key_exists($col,$this->data) &&\t// handling of unset columns in $this->data\n\t\t\t\t\t($this->autoinc_id ||\t\t\t// update of table with auto id or\n\t\t\t\t\t isset($this->table_def['fd'][$db_col]['default']) ||\t// we have a default value or\n\t\t\t\t\t !isset($this->table_def['fd'][$db_col]['nullable']) || $this->table_def['fd'][$db_col]['nullable']))\t// column is nullable\n\t\t\t\t{\n\t\t\t\t\tcontinue;\t// no need to write that (unset) column\n\t\t\t\t}\n\t\t\t\t$data[$db_col] = !is_object($this->data[$col]) && (string) $this->data[$col] === '' && $this->empty_on_write == 'NULL' ? null : $this->data[$col];\n\t\t\t}\n\t\t\t// allow to add direct sql updates, eg. \"etag=etag+1\" with int keys\n\t\t\tif (is_array($keys) && isset($keys[0]))\n\t\t\t{\n\t\t\t\tfor($n=0; isset($keys[$n]); ++$n)\n\t\t\t\t{\n\t\t\t\t\t$data[] = $keys[$n];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$keys = $extra_where;\n\t\t\tforeach($this->db_key_cols as $db_col => $col)\n\t\t\t{\n\t\t\t\t$keys[$db_col] = $this->data[$col];\n\t\t\t}\n\t\t\tif (!$data && !$this->autoinc_id)\t// happens if all columns are in the primary key\n\t\t\t{\n\t\t\t\t$data = $keys;\n\t\t\t\t$keys = False;\n\t\t\t}\n\t\t\tif ($this->autoinc_id)\n\t\t\t{\n\t\t\t\t$this->db->update($this->table_name,$data,$keys,__LINE__,__FILE__,$this->app);\n\t\t\t\tif (($nothing_affected = !$this->db->Errno && !$this->db->affected_rows()) && $extra_where)\n\t\t\t\t{\n\t\t\t\t\treturn true;\t// extra_where not met, eg. etag wrong\n\t\t\t\t}\n\t\t\t}\n\t\t\t// always try an insert if we have no autoinc_id, as we dont know if the data exists\n\t\t\tif (!$this->autoinc_id || $nothing_affected)\n\t\t\t{\n\t\t\t\t$this->db->insert($this->table_name,$data,$keys,__LINE__,__FILE__,$this->app);\n\t\t\t}\n\t\t}\n\t\t$this->db2data();\n\n\t\treturn $this->db->Errno;\n\t}",
"public function setPrimaryKey($keys)\n {\n $this->setSessionid($keys[0]);\n $this->setRecno($keys[1]);\n $this->setOrderno($keys[2]);\n }",
"public function save()\n {\n $pdo = $this->getDbConnection();\n $valuesRow = $this->prepareValuesRow();\n\n $pdo->exec(\"REPLACE INTO {$this->dbTable} (`key`, `value`) VALUES {$valuesRow}\");\n }",
"public function setUpdate(array $source_key) {\n $query = $this->connection->update($this->mapTable)\n ->fields(array('needs_update' => MigrateMap::STATUS_NEEDS_UPDATE));\n $count = 1;\n foreach ($source_key as $key_value) {\n $query->condition('sourceid' . $count++, $key_value);\n }\n $query->execute();\n }",
"protected function setupUpdateOperation()\n {\n CRUD::setValidation(SettingRequest::class);\n\n $readonly = [];\n if (User::min('id') !== backpack_user()->id) {\n $readonly = ['readonly' => 'readonly'];\n }\n\n CRUD::field('key')->type('text')->label('ID key')->attributes($readonly);\n CRUD::field('name')->type('text')->label('Nom');\n CRUD::field('value')->type(CRUD::getCurrentEntry()->type)->label('Contenu');\n }",
"public function setPrimaryKey($keys)\n {\n $this->setSekolahId($keys[0]);\n $this->setSemesterId($keys[1]);\n $this->setIdRuang($keys[2]);\n $this->setHari($keys[3]);\n }",
"public function saveToDb()\n\t{\n\t\t$db = \\App\\Db::getInstance('admin');\n\t\t$tablesData = array_intersect_key($this->getData(), $this->changes);\n\t\tforeach ($tablesData as $key => $value) {\n\t\t\t$db->createCommand()->update($this->baseTable, ['value' => $value], ['type' => $this->type, 'name' => $key])->execute();\n\t\t}\n\t}",
"protected function setKeysForSaveQuery(Builder $query)\n {\n return $this->scopeFromTo(\n $query,\n $this->currency_from,\n $this->currency_to\n );\n }",
"public function setPrimaryKey($keys)\n {\n $this->setShnttype($keys[0]);\n $this->setShntseq($keys[1]);\n $this->setShntkey2($keys[2]);\n $this->setShntform($keys[3]);\n }",
"function set_keys($keys)\n\t{\n\t\tif(!is_array($keys)) $keys = explode(',', $keys);\n\t\tforeach($keys as $key) $this->set_key($key);\n\t}",
"function setExtraVarKeys($extra_keys)\n\t{\n\t\tif(!is_array($extra_keys) || count($extra_keys) < 1)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tforeach($extra_keys as $val)\n\t\t{\n\t\t\t$obj = new ExtraItem($val->module_srl, $val->idx, $val->name, $val->type, $val->default, $val->desc, $val->is_required, $val->search, $val->value, $val->eid);\n\t\t\t$this->keys[$val->idx] = $obj;\n\t\t}\n\t}",
"public function recUpdate($fillable,$key = null,$id) {\n $update = 'UPDATE '.static::getTable().' SET ';\n for($i=0;$i<count(static::getFillable())-1;$i++) {\n $set_num = $i+1;\n if($i==count($fillable)-2){\n $update .= \"$fillable[$set_num] = '$key[$set_num]' \";\n } else {\n $update .= \"$fillable[$set_num] = '$key[$set_num]', \";\n }\n }\n $update .= ' WHERE '.static::getColumn(). ' = '.$id;\n $query = self::getQuery($update);\n return $query;\n }",
"public function setKeysForSaveQuery(Builder $query)\n {\n $query\n ->where('id_ciudad', '=', $this->getAttribute('id_ciudad'))\n ->where('nombre', '=', $this->getAttribute('nombre'));\n return $query;\n }",
"public function editSaveQuery() {\n\t\t$this->expiredStatusToQuery('expired', 'expiration');\n\t}",
"abstract protected function prepareKeys($models);",
"public function save()\r\n\t{\r\n\t \tglobal $ilDB;\r\n\t \t\r\n\t \t$this->delete();\r\n\t \t\r\n\t \tforeach($this->mapping_rules as $keyword => $options)\r\n\t \t{\r\n\t \t\t$query = \"INSERT INTO ldap_attribute_mapping (server_id,keyword,value,perform_update) \".\r\n\t\t\t\t\"VALUES( \".\r\n\t \t\t\t$this->db->quote($this->server_id,'integer').\", \".\r\n\t \t\t\t$this->db->quote($keyword,'text').\", \".\r\n\t \t\t\t$this->db->quote($options['value'],'text').\", \".\r\n\t \t\t\t$this->db->quote($options['performUpdate'],'integer').\r\n\t \t\t\t')';\r\n\t\t\t$res = $ilDB->manipulate($query);\r\n\t \t}\r\n\t}",
"function update($table, $items, $field, $key)\n {\n\t\t$this->db->where($field, $key);\n $this->db->update($table, $items);\n }",
"function setKeys($llsec, $dtls){\n\t\tprint_r($llsec);\n\t\tprint_r($dtls);\n\t\ttry{\n\t\t $db = getConnection();\n\n\t\t $sql = \"UPDATE network_keys SET network_key=? WHERE name='llsec'\";\n\t\t $stmt = $db->prepare($sql);\n\t\t $stmt->execute(array($llsec));\n\n\t\t $sql = \"UPDATE network_keys SET network_key=? WHERE name='dtls'\";\n\t\t $stmt = $db->prepare($sql);\n\t\t $stmt->execute(array($dtls));\n\t\t}\n\t\tcatch(PDOException $e){\n\t\t echo $e->getMessage();\n\t }\n\t}",
"protected function saveUpdate()\n {\n }",
"public function set_keys( $keys )\n\t{\n\t\t$this->keys = $keys;\n\t}",
"function set_row($keys,$sql_set) {\r\n $sql_where = '';\r\n if (count($keys) > 0) {\r\n $sql_wheres = array();\r\n foreach ($keys as $key=>$val) {\r\n if (is_array($val)) die('setrow: multi value does not supported');\r\n $sql_wheres[] = \"`$key`='\".myaddslashes($val).\"'\";\r\n }\r\n $sql_where = ' where '.join(' and ',$sql_wheres);\r\n }\r\n if (is_array($sql_set)) { # Note, if using array, I DONOT support mysql function/expression!! use string for that.\r\n $sql_sets = array();\r\n foreach ($sql_set as $key=>$val) {\r\n $sql_sets[] = '`'.$key.'` = \\''.addslashes($url).'\\'';\r\n }\r\n $sql_set = join(',',$sql_sets);\r\n }\r\n assert($sql_where != ''); # safeguard against setting all rows\r\n $sql = 'update `'.$this->db_table.'` set '.$sql_set.$sql_where;\r\n #~ echo $sql;exit;\r\n $res = mysql_query($sql) or die('<br>'.$sql.'<br>'.mysql_error()); #do to database\r\n }",
"protected function getKeyForSaveQuery(){\n\t\treturn $this->getKey();\n\t}",
"public function update(){\n if(empty($this->attributes)){\n return;\n }\n if ($this->isAutoInc) {\n $fieldsList = \" SET \";\n foreach ($this->attributes as $column => $value) {\n $fieldsList.=$column.\"=\".'\\''.$value.'\\''.\", \";\n }\n $fieldsList = str_last_replace(\", \", \"\", $fieldsList);\n $sqlQuery = \"UPDATE \".$this->table.$fieldsList.\" WHERE \".$this->idName.\"=\".$this->attributes[$this->idName];\n\n Db::instance()->execute($sqlQuery,$this->attributes);\n }\n }",
"public function setKeys($keys)\n {\n $this->_keys = $keys;\n }",
"public function setPrimaryKey($keys)\n {\n $this->setId($keys[0]);\n $this->setNickname($keys[1]);\n }",
"public function maybe_update_meta_keys() {\n global $wpdb;\n\n // check, if the current version is greater than or equal 0.9.7\n if ( version_compare( $this->config->get( 'version' ), '0.9.7', '>=' ) ) {\n // map old values to new ones\n $meta_key_mapping = array(\n 'Teaser content' => 'laterpay_post_teaser',\n 'Pricing Post' => 'laterpay_post_pricing',\n 'Pricing Post Type' => 'laterpay_post_pricing_type',\n );\n\n $sql = 'UPDATE ' . $wpdb->postmeta . \" SET meta_key = '%s' WHERE meta_key = '%s'\";\n\n foreach ( $meta_key_mapping as $before => $after ) {\n $prepared_sql = $wpdb->prepare( $sql, array( $after, $before ) );\n $wpdb->query( $prepared_sql );\n }\n }\n }",
"public function copyAttributesToKey()\n\t{\n\t\t$primarykey = $this->factory->getPrimarykey ;\n\t\tforeach( $primarykey->fields as $n=>$field )\n\t\t{\n\t\t\t$this->key[$field] = $this->$field ;\n\t\t}\n\t}",
"function update_all_keys($keys,$file){\n\t\t$this->delete_all_keys($file);\n\t\treturn $this->add_keys($keys,$file);\n\t}",
"public function set_key_names($keys) {\n\t\t$this->keys = $keys;\n\t}",
"public function updateRecord() \n {\n $str = \"Id = :Id\";\n array_walk($this->arrayKeysValues(), function ($value, $key) use (&$str) {\n $str .= \", $key = :$key\";\n });\n $sql = sprintf(\"UPDATE Cubans SET %s WHERE Id = :Id\", $str);\n $statement = $this->connect->prepare($sql);\n $statement->execute(array_merge([\":Id\" => $this->id], $this->arrayKeysValues()));\n }",
"public function afterUpdateEvent($self, $pkeys){\n }",
"public function save($key, $data);",
"private function saveLastAnnotatorDictionaries() {\r\n\t\t$newValues=$this->lastAnnotatorDictionariesCache;\r\n\t\tif(is_null($newValues)) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//set all dictionaries (that have a settings entry) to false\r\n\t\t//NOTE by NOT including the addNotInCondition the $updatedCount (below) gives correct values \r\n\t\t$criteria=new CDbCriteria();\r\n\t\t$criteria->compare('userId', $this->userId);\r\n\t\tUserSettingsDictionaries::model()->updateAll(array('annotator'=>0), $criteria);\r\n\t\t\r\n\t\t//set all selected dictionaries (that have a settings entry) to true\r\n\t\t$criteria=new CDbCriteria();\r\n\t\t$criteria->compare('userId', $this->userId);\r\n\t\t$criteria->addInCondition('dictionaryId', $newValues);\r\n\t\t$updatedCount=UserSettingsDictionaries::model()->updateAll(array('annotator'=>1), $criteria);\r\n\t\t\r\n\t\tif($updatedCount!=count($newValues)) {\r\n\t\t\t//not all selected dictionaries have an entry\r\n\t\t\t//we need to add these to the db\r\n\r\n\t\t\t//first get a list of those already updated values\r\n\t\t\t$updatedList=UserSettingsDictionaries::model()->findAll($criteria);\r\n\t\t\t$updatedList=CHtml::listData($updatedList ,'dictionaryId','dictionaryId'); //convert it to an array, whose keys are IDs\r\n\t\t\t\r\n\t\t\tforeach ($newValues as $toInsert) {\r\n\t\t\t\tif(!array_key_exists($toInsert, $updatedList)) {\r\n\t\t\t\t\t$newEntry=new UserSettingsDictionaries;\r\n\t\t\t\t\t$newEntry->userId=$this->userId;\r\n\t\t\t\t\t$newEntry->dictionaryId=$toInsert;\r\n\t\t\t\t\t$newEntry->annotator=1;\r\n\t\t\t\t\t$newEntry->save(false);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"protected static function command_update($options, $keys) {\r\n $propel_class = call_user_func(array(get_called_class(), 'getPropelClass')) . 'Query';\r\n $q = new $propel_class;\r\n\r\n $item = $q->findOneBy($keys['id']['colname'], $options['id']);\r\n if ($item == null) {\r\n trigger_error(sprintf(\"No contact found for id %d.\\n\", $options['id']), E_USER_ERROR);\r\n }\r\n\r\n foreach ($keys as $key => $data) {\r\n if ($key != 'id' && isset($data['colname']) && isset($options[$key]))\r\n $item->{\"set\" . $data['colname']}($options[$key]);\r\n }\r\n\r\n $lines = $item->save();\r\n printf(\"%d line(s) udpated.\\n\", $lines);\r\n }",
"public function setPrimaryKey($keys)\n {\n $this->setPhadtype($keys[0]);\n $this->setPhadid($keys[1]);\n $this->setPhadsubid($keys[2]);\n $this->setPhadsubidseq($keys[3]);\n $this->setPhadcont($keys[4]);\n }",
"public static function update()\n {\n $json = json_encode(self::get());\n $json = Utils::json_pretty_print($json);\n file_put_contents(CACHEDIR . \"filter-keys/filter_keys.json\", $json);\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function setEntityKeys($entityKey)\n {\n $this->_entityKey = $entityKey;\n }",
"public function forUpdate($set = TRUE);",
"public function update(DataObject $updateObject, array $updateKeys, Database_Config $databaseConfig = NULL);",
"public function db_update() {}",
"function Update()\n\t{\n\t\tglobal $dal_info;\n\t\t\n\t\t$tableinfo = &$dal_info[ $this->infoKey ];\n\t\t$updateParam = \"\";\n\t\t$updateValue = \"\";\n\t\t$blobs = array();\n\n\t\tforeach($tableinfo as $fieldname => $fld)\n\t\t{\n\t\t\t$command = 'if(isset($this->'.$fld['varname'].')) { ';\n\t\t\tif( $fld[\"key\"] )\n\t\t\t\t$command.= '$this->Param[\\''.escapesq($fieldname).'\\'] = $this->'.$fld['varname'].';';\n\t\t\telse\n\t\t\t\t$command.= '$this->Value[\\''.escapesq($fieldname).'\\'] = $this->'.$fld['varname'].';';\n\t\t\t$command.= ' }';\n\t\t\t\n\t\t\teval($command);\n\t\t\t\n\t\t\tif( !$fld[\"key\"] && !array_key_exists( strtoupper($fieldname), array_change_key_case($this->Param, CASE_UPPER) ) )\n\t\t\t{\n\t\t\t\tforeach($this->Value as $field => $value)\n\t\t\t\t{\n\t\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t$updateValue.= $this->_connection->addFieldWrappers( $fieldname ).\"=\".$this->PrepareValue($value, $fld[\"type\"]) . \", \";\n\t\t\t\t\t\n\t\t\t\t\tif( $this->_connection->dbType == nDATABASE_Oracle || $this->_connection->dbType == nDATABASE_DB2 || $this->_connection->dbType == nDATABASE_Informix )\n\t\t\t\t\t{\n\t\t\t\t\t\tif( IsBinaryType( $fld[\"type\"] ) )\n\t\t\t\t\t\t\t$blobs[ $fieldname ] = $value;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif( $this->_connection->dbType == nDATABASE_Informix && IsTextType( $fld[\"type\"] ) )\t\n\t\t\t\t\t\t\t$blobs[ $fieldname ] = $value;\t\t\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach($this->Param as $field=>$value)\n\t\t\t\t{\n\t\t\t\t\tif( strtoupper($field) != strtoupper($fieldname) )\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t$updateParam.= $this->_connection->addFieldWrappers( $fieldname ).\"=\".$this->PrepareValue($value, $fld[\"type\"]) . \" and \";\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//\tconstruct SQL and do update\t\n\t\tif ($updateParam)\n\t\t\t$updateParam = substr($updateParam, 0, -5);\n\t\tif ($updateValue)\n\t\t\t$updateValue = substr($updateValue, 0, -2);\n\t\t\t\n\t\tif ($updateValue && $updateParam)\n\t\t{\n\t\t\t$dalSQL = \"update \".$this->_connection->addTableWrappers( $this->m_TableName ).\" set \".$updateValue.\" where \".$updateParam;\n\t\t\t$this->Execute_Query($blobs, $dalSQL, $tableinfo);\n\t\t}\n\n\t\t//\tcleanup\n\t\t$this->Reset();\n\t}",
"function updateKeyField($id, $field, $value){\r\n\t\t $query = \"UPDATE \".TBL_USED_KEYS.\" SET \".$field.\" = :value WHERE key_id = :id\";\r\n\t\t $stmt = $this->connection->prepare($query);\r\n\t\t return $stmt->execute(array(':id' => $id, ':value' => $value));\r\n }",
"function SetKey( $i ) { $this->_key = $i; $this->SetValue('_key', $i ); }",
"public function saveAll() {\n\t\t$originalCaret = $this->caret;\n\t\tforeach($this as $key => $row) {\n\t\t\t$this->save();\n\t\t}\n\t\t$this->caret = $originalCaret;\n\t}",
"function update() {\n\t\t\t$updateQuery = \"UPDATE \".$this->table.\" SET \";\n\n\t\t\t$keysAR = array_keys($this->activeRecord);\n\n\t\t\tfor ($loopUp = 0; $loopUp < count($this->activeRecord); $loopUp++) {\n\n $updateQuery .= $keysAR[$loopUp] . \" = ?, \";\n $paramArray[] = $this->activeRecord[$keysAR[$loopUp]];\n\n\t\t\t}\n\n\t\t\t$updateQuery = substr($updateQuery, 0, -2); // Haal de laatste komma weg.\n\n\t\t\t$updateQuery .= \" WHERE \";\n\n\t\t\t// Fetch de primary key van de tabel.\n $fetchPrimary = $this->mysqlConnection->query(\"SHOW INDEX FROM \".$this->table);\n $arrayIndex = $fetchPrimary->fetch(PDO::FETCH_ASSOC);\n $kolomIndex = $arrayIndex['Column_name'];\n\n $updateQuery .= $kolomIndex.\" = \".$this->originalValues[$kolomIndex];\n\n\t\t\t$this->lastQuery = $updateQuery;\n\n $updateTable = $this->mysqlConnection->prepare($this->lastQuery);\n $updateTable->execute($paramArray);\n\n\t\t}",
"public function update($table, $keyColumnName, $id, $update_values) {\n foreach($update_values as $key=>$value) {\n $sets[] = $key.'=\\''.$value.'\\'';\n }\n $sets = implode(',', $sets);\n $sql = \"UPDATE $table SET $sets WHERE $keyColumnName = '$id'\";\n mysql_query($sql);\n }",
"protected function saveMeta() {\n if (empty($this->_metaModified)) {\n // no dirty attributes, nothing to deal with\n return;\n }\n\n $owner = static::tableName();\n $owner_id = $this->{static::meta_id_field()};\n $metaBatchInsert = [];\n\n $mpLen = strlen(static::meta_prefix());\n\n foreach ($this->_metaModified as $key => $mode) {\n // get key without prefix\n $db_key = substr($key, $mpLen);\n\n switch ($mode) {\n case self::META_ADDED:\n $attrs = [\n 'owner' => $owner,\n 'owner_id' => $owner_id,\n 'meta_key' => $db_key,\n 'meta_value' => (string)$this->_meta->$key\n ];\n // the code below is very slow\n $um = new Meta($attrs);\n if ($um->validate()) {\n $metaBatchInsert[] = $attrs;\n } else {\n throw new Exception('Failed to save invalid meta key: ' . $db_key . ' ' . json_encode($um->getFirstErrors(),\n JSON_PRETTY_PRINT));\n }\n// $um->insert();\n break;\n case self::META_MODIFIED:\n Meta::updateAll(\n [\n 'meta_value' => (string)$this->_meta->$key\n ],\n [\n 'owner' => $owner,\n 'owner_id' => $owner_id,\n 'meta_key' => $db_key\n ]);\n break;\n case self::META_UNSET:\n Meta::deleteAll([\n 'owner' => $owner,\n 'owner_id' => $owner_id,\n 'meta_key' => $db_key\n ]);\n break;\n }\n }\n\n if (!empty($metaBatchInsert)) {\n Meta::getDb()->createCommand()->batchInsert(Meta::tableName(),\n ['owner', 'owner_id', 'meta_key', 'meta_value'], $metaBatchInsert)->execute();\n }\n\n $this->_metaModified = [];\n\n $this->trigger(self::EVENT_META_SAVE);\n }",
"private function _update() {\n\n $this->db->replace(XCMS_Tables::TABLE_USERS, $this->getArray());\n $this->attributes->save();\n\n }",
"public function setKeyName($key)\n {\n $this->primaryKey = $key;\n }",
"function set($keys, $data) {\n\n $SET = array();\n\n foreach ($keys as $key) {\n $index = $key;\n $value = $data[$key];\n $SET[] = \"`$index` = '\" . str_replace(\"'\", \"\\'\", $value) . \"'\";\n }\n\n return implode(', ', $SET);\n}",
"public function testStore_UpdateMultiple()\n {\n \t$this->conn->store('test', array('id', 'key', 'title', 'status'), array(1, 'one', 'updated row ONE', 'PASSIVE'), array(2, 'two', 'updated row TWO', 'ACTIVE'), array(null, 'new1', 'new row ONE', 'NEW'));\n \t\n \t$result = $this->conn->query(\"SELECT * FROM test\");\n \t$this->assertEquals(array(1, 'one', 'updated row ONE', 'PASSIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(2, 'two', 'updated row TWO', 'ACTIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(3, 'three', 'another row', 'PASSIVE'), $result->fetchOrdered());\n \t$this->assertEquals(array(4, 'new1', 'new row ONE', 'NEW'), $result->fetchOrdered());\n }",
"abstract public function save(string $key, $value): void;",
"function setPrimaryKey($inKey) {\n\t\tlist($movieID, $CountryID) = explode(self::PRIMARY_KEY_SEPARATOR, $inKey);\n\t\t$this->setMovieID($movieID);\n\t\t$this->setCountryID($CountryID);\n\t}",
"public function set_update_batch($key, $index = '', $escape = NULL)\n\t{\n\t\t$key = $this->_object_to_array_batch($key);\n\n\t\tif ( ! is_array($key))\n\t\t{\n\t\t\t// @todo error\n\t\t}\n\n\t\tis_bool($escape) OR $escape = $this->_protect_identifiers;\n\n\t\tforeach ($key as $k => $v)\n\t\t{\n\t\t\t$index_set = FALSE;\n\t\t\t$clean = array();\n\t\t\tforeach ($v as $k2 => $v2)\n\t\t\t{\n\t\t\t\tif ($k2 === $index)\n\t\t\t\t{\n\t\t\t\t\t$index_set = TRUE;\n\t\t\t\t}\n\n\t\t\t\t$clean[$k2] = array(\n\t\t\t\t\t'field' => $this->protect_identifiers($k2, FALSE, $escape),\n\t\t\t\t\t'value' => ($escape === FALSE ? $v2 : $this->escape($v2))\n\t\t\t\t);\n\t\t\t}\n\n\t\t\tif ($index_set === FALSE)\n\t\t\t{\n\t\t\t\treturn $this->display_error('db_batch_missing_index');\n\t\t\t}\n\n\t\t\t$this->qb_set_ub[] = $clean;\n\t\t}\n\n\t\treturn $this;\n\t}",
"public function updatesettings($key='',$value='')\r\n {\r\n $whrArray = array('key_text'=>$key);\r\n $updateArray = array('value_text'=>$value);\r\n\r\n $this->CI->DatabaseModel->access_database('ts_settings','update', $updateArray , $whrArray);\r\n }",
"function update($table='', $keyandvalue, ...$wherekeys) { \n if ( ! is_array( $keyandvalue ) || ! isset($table) || $table=='' ) {\n\t\t\t$this->setParamaters();\n return false;\n }\n \n $sql=\"UPDATE $table SET \";\n \n foreach($keyandvalue as $key=>$val) {\n if(strtolower($val)=='null') {\n\t\t\t\t$sql.= \"$key = NULL, \";\n } elseif(in_array(strtolower($val), array( 'current_timestamp()', 'date()', 'now()' ))) {\n\t\t\t\t$sql.= \"$key = CURRENT_TIMESTAMP(), \";\n\t\t\t} else {\n\t\t\t\tif ($this->getPrepare()) {\n\t\t\t\t\t$sql.= \"$key = \"._TAG.\", \";\n\t\t\t\t\t$this->setParamaters($val);\n\t\t\t\t} else \n\t\t\t\t\t$sql.= \"$key = '\".$this->escape($val).\"', \";\n\t\t\t}\n }\n \n $where = $this->where(...$wherekeys);\n if (is_string($where)) { \n $sql = rtrim($sql, ', ') . $where;\n return (($this->getPrepare()) && !empty($this->getParamaters())) ? $this->query($sql, true) : $this->query($sql) ; \n } else {\n\t\t\t$this->setParamaters();\n return false;\n\t\t}\n }",
"private function setInfoKeys() {\n\t\tif (!empty(self::$s_aInfoKeys)) {\n\t\t\treturn;\n\t\t}\n\n\t\tself::$s_aInfoKeys = array(\n\t\t\t'ID', 'ProfileID', 'Nickname', 'Level', 'TempLevel',\n\t\t\t'IP', 'JoinTime', 'LogInTime',\n\t\t);\n\t}",
"private function tinydb_invalidate($key)\n {\n $this->tinydb_needing_update[] = $key;\n }",
"private\tfunction\t_prepareSaveQuery()\n\t\t{\n\t\t\tif(!$this->_columns) {\n\t\t\t\tself::$_queries[$this->_class]['save']\t=\tNULL;\n\t\t\t} else {\n\t\t\t\tself::$_queries[$this->_class]['save']\t=\t'INSERT INTO `'.$this->_table.'`(`'.implode('`,`', array_keys($this->_columns)).'`)'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.\t\"\\rVALUES(?\".str_repeat(',?', sizeof($this->_columns) - 1).')'\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.\t\"\\rON DUPLICATE KEY UPDATE \".trim(self::$_queries[$this->_class]['updates'],', ');\n\t\t\t}\n\t\t\tunset(self::$_queries[$this->_class]['updates']);\n\t\t\t\n\t\t\treturn\tself::$_queries[$this->_class]['save'];\n\t\t}",
"public function SET_hash($field_names_and_values) {\n\t\t//$this->scriptForceHint('UPDATE');\n\t\tif (!$field_names_and_values) throw new Exception(\"Attempting to SET an empty associative array\");\n\t\tforeach ($field_names_and_values as $field_name => $value) {\n\t\t\t$this->SET_once($field_name, $value);\n\t\t}\t\n\t}",
"public function setKey($keys = null){\n\t\t\t$otherClass=$this->class;\n\t\t\tif(is_array($keys)){//multiple primary keys\n\t\t\t\t$this->keys = $keys;\n\t\t\t}elseif(is_string($keys)){//single primary key\n\t\t\t\t$this->keys = array(\"$keys\");\n\t\t\t}elseif(is_numeric($keys) && count($this->columns) >= $keys){\n\t\t\t\t$this->keys = array_slice($this->columns, 0, $keys);\n\t\t\t}elseif(isset($otherClass::$primaryKeys) && is_array($otherClass::$primaryKeys)){//else if static primaryKeys is defined, those are the keys\n\t\t\t\t$this->keys = $otherClass::$primaryKeys;\n\t\t\t}elseif(isset($this->columns[0])){//default is the first property of the class\n\t\t\t\t$this->keys = array($this->columns[0]);\n\t\t\t}else{//else no primary key is given\n\t\t\t\t$this->keys = false;\n\t\t\t}\n\t\t\t$this->loadColumns();//update columns by removing the keys\n\t\t}",
"public function SQL_UPDATE() {\r\n\t}"
] | [
"0.6675114",
"0.66498077",
"0.6467627",
"0.64091283",
"0.63779414",
"0.6356516",
"0.627572",
"0.6265914",
"0.621046",
"0.61448205",
"0.6114518",
"0.6106898",
"0.6088502",
"0.60521454",
"0.60185254",
"0.60025865",
"0.59955984",
"0.5974698",
"0.5863001",
"0.5860046",
"0.5852031",
"0.58172864",
"0.57900536",
"0.57873607",
"0.5785034",
"0.578191",
"0.57381177",
"0.5708503",
"0.568183",
"0.5662809",
"0.56509537",
"0.5637353",
"0.5611958",
"0.5606551",
"0.5598001",
"0.55864984",
"0.557556",
"0.5573918",
"0.55596185",
"0.5550357",
"0.55106664",
"0.5509373",
"0.54970986",
"0.54921097",
"0.5486533",
"0.54776704",
"0.54532725",
"0.5451533",
"0.5442051",
"0.54417807",
"0.5435021",
"0.54324955",
"0.54303354",
"0.542587",
"0.54013634",
"0.5400569",
"0.53891027",
"0.5383341",
"0.5379932",
"0.5378893",
"0.5378156",
"0.5372021",
"0.53587556",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.53386927",
"0.5333176",
"0.53295493",
"0.5322003",
"0.53091216",
"0.5304542",
"0.5292176",
"0.5291147",
"0.5286027",
"0.52822644",
"0.52770734",
"0.5271989",
"0.5266854",
"0.52633554",
"0.5243038",
"0.523259",
"0.5224587",
"0.5223359",
"0.52150893",
"0.52098334",
"0.5208383",
"0.5176916",
"0.5174724",
"0.5161727",
"0.5148462",
"0.51437384"
] | 0.64100367 | 4 |
Get the primary key value for a save query. | protected function getKeyForSaveQuery($keyName = null)
{
if(is_null($keyName)){
$keyName = $this->getKeyName();
}
if (isset($this->original[$keyName])) {
return $this->original[$keyName];
}
return $this->getAttribute($keyName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getKeyForSaveQuery(){\n\t\treturn $this->getKey();\n\t}",
"public static function getPk(){\n return static::$_primaryKey;\n }",
"public function getPk()\n {\n return $this->{static::primaryKey()};\n }",
"public static function getPrimaryKey()\n {\n return self::getRepo()->getPrimaryKey();\n }",
"public function getPrimaryKey() {\n\t\treturn $this->_key_primary->name;\n\t}",
"protected function _getPrimaryKeyValue(){\n $primaryKey = $this->_getPrimaryKey();\n return $this->{$primaryKey};\n }",
"public function getPrimaryKey()\n {\n if ($this->_primaryKey === null) {\n $schema = $this->getSchema();\n $key = $schema->getPrimaryKey();\n if (count($key) === 1) {\n $key = $key[0];\n }\n $this->_primaryKey = $key;\n }\n\n return $this->_primaryKey;\n }",
"protected function getPrimaryKey()\n {\n return $this->getSubject()->getLastEntityId();\n }",
"protected function _getPrimaryKey(): string\n {\n if (!$this->_primaryKey) {\n $primaryKey = (array)$this->_table->getPrimaryKey();\n $this->_primaryKey = $primaryKey[0];\n }\n\n return $this->_primaryKey;\n }",
"public function getPrimaryKey()\r\n\t{\r\n\t\treturn $this->primaryKey;\r\n\t}",
"private function getPrimaryKey()\n {\n $result = database()->fetchResult('SHOW KEYS FROM ' . $this->table . ' WHERE Key_name = \"PRIMARY\"');\n\n return ($result['Column_name'] ?? null);\n }",
"public function getPrimaryKey()\n {\n return $this->primaryKey;\n }",
"protected function _getPrimaryId()\n {\n return $this->_getParam($this->_getPrimaryIdKey());\n }",
"protected function _getPrimaryIdKey()\n {\n if ($this->_primaryIdKey == null) {\n $info = $this->_getTable()->info();\n\n $this->_primaryIdKey = (string) array_shift($info[Zend_Db_Table_Abstract::PRIMARY]);\n }\n\n return $this->_primaryIdKey;\n }",
"public function getPrimaryKey()\n {\n return $this->getid();\n }",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"public function getPrimaryKey();",
"public function getPrimaryKeyField()\n\t{\n\t\treturn $this->primaryKey;\n\t}",
"public function getPrimaryKey()\n {\n return $this->getOpPrimeId();\n }",
"protected function getLastPrimaryKey()\n {\n return $this->getLastEntityId();\n }",
"public function get_primary_row(){\r\n $result = $this->db->query(\"SHOW KEYS FROM \". $this->db->formatTableName($this->table). \"\r\n WHERE Key_name = %s\"\r\n , \"PRIMARY\");\r\n $pk = \"\";\r\n foreach ($result as $res){\r\n $pk = $res[\"Column_name\"];\r\n }\r\n return $pk;\r\n }",
"function getPrimaryKey() {\n\n $count = $this->find('count');\n $primaryKey = $count + 1;\n\n if ($this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey))) > 0) {\n\n $i = (int) $count;\n\n while ($i >= 1) {\n\n $i += 1;\n\n $primaryKey = $i;\n\n $returnValue = $this->find('count', array('conditions' => array($this->name . '.' . $this->primaryKey => $primaryKey)));\n\n if ($returnValue == 0) {\n\n break;\n }\n\n $i++;\n }\n\n return $primaryKey;\n } else {\n\n return $primaryKey;\n }\n }",
"public function getPrimaryKey()\n {\n return $this->getSekolahId();\n }",
"public function primary_key()\n\t{\n\t\treturn $this->primary_key;\n\t}",
"public function primaryKey()\n {\n return $this->data[static::$primaryKey] ?? null;\n }",
"public function getPk()\n {\n return $this->_pk;\n }",
"public function getPkValue(){\n $pk = static::getPk();\n return (int) $this->$pk;\n }",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"public function PrimaryKey() {\n\t\t\treturn $this->intId;\n\t\t}",
"public function getKeyValue() {\n $primaryKey = $this->getKeyName();\n return $this->$primaryKey;\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getId();\n\t}",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey() {\n return $this->_data->getDeepValue('indexes/primary/columns/0', null);\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->_rowKey;\n\t}",
"public function getPrimaryKey()\n\t{\n $indexes = $this->getIndexes();\n\n foreach ($indexes as $index){\n if ($index['Key_name'] == \"PRIMARY\"){\n return $index;\n }\n }\n\n \t\t\n\t}",
"public function getPrimaryKey()\n {\n return $this->getPothnbr();\n }",
"function getPrimaryKey () {\n\t\t\n\t\t$count = $this->find('count');\n\t\t\n\t\t$primaryKey = $count+1;\n\t\t\n\t\tif( $this->find('count',array('conditions'=>array($this->name . '.' . $this->primaryKey=>$primaryKey))) > 0) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t$i = (int) $count;\n\n while ( $i >= 1 ) {\n\n $i += 1;\n\t\t\t\t\t\n\t\t\t\t\t$primaryKey = $i;\n \n\t\t\t\t\t$returnValue = $this->find('count',array('conditions'=>array($this->name . '.' . $this->primaryKey=>$primaryKey)));\n\n if ($returnValue == 0) {\n \t\t\t\t\t\t\t\t\t\n break;\n }\n\t\t\t\t\t\n\t\t\t\t\t$i++;\n }\n\n return $primaryKey;\n\t\t\t\n\t\t} else {\n\t\t\n\t\t\treturn $primaryKey;\n\n\t\t}\t\n\t\n\t}",
"abstract public function getPrimaryKey();",
"abstract public function getPrimaryKey();",
"public function id()\n {\n return $this->read($this->metadata['pk']->name);\n }",
"public function getPrimaryKey($entity)\n\t{\n\t\treturn $entity->{$this->primaryKeyField};\n\t}",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"function getPrimaryKey() {\n\t\treturn $this->_ID;\n\t}",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public function getPrimaryKey()\n {\n $cols = $this->info('cols');\n return $cols[0];\n }",
"public function get_id()\n {\n $pkey = static::tinydb_get_table_info()->primary_key;\n if (is_array($pkey)) {\n $val = array();\n foreach ($pkey as $field) {\n $val[$field] = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($field)->type,\n $this->tinydb_rowdata[$field]);\n }\n } else {\n $val = \\TinyDb\\Internal\\SqlDataAdapters::decode(static::tinydb_get_table_info()->field_info($pkey)->type,\n $this->tinydb_rowdata[$pkey]);\n }\n\n\n return $val;\n }",
"protected function actionGetPrimaryKey()\n {\n return $this->_static_block->getPrimaryKey();\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"function getPk()\n {\n return $this->pk;\n }",
"public function getPrimaryKey(phpDataMapper_Model_Row $row)\n\t{\n\t\t$pkField = $this->getPrimaryKeyField();\n\t\treturn $row->$pkField;\n\t}",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('ProjectsListingsModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public function getKeyName()\n {\n if (!$this->primaryKey) {\n if ($key = $this->getPrimaryFromFields()) {\n $this->primaryKey = $key;\n } else {\n $this->primaryKey = 'id';\n }\n }\n\n return $this->primaryKey;\n }",
"abstract function getPrimaryKey();",
"private function _fetch_primary_key()\n {\n if($this->primaryKey == NULl)\n {\n $this->primaryKey = $this->db->query(\"SHOW KEYS FROM `\".$this->_table.\"` WHERE Key_name = 'PRIMARY'\")->row()->Column_name;\n }\n }",
"public function getPrimaryKeyFieldName(){\n\t\treturn $this->primaryKey;\n\t}",
"protected function getPrimaryKeyName(): string\n {\n return $this->query->getModel()->getKeyName();\n }",
"public function getPrimaryKeyName()\n {\n return self::$primary_key_name;\n }",
"public static function _getPK(){\n return (property_exists(get_called_class(), '_pk') ? static::$_pk : 'id');\n }",
"public function getID()\n {\n return $this->getKey();\n }",
"public function getKey()\n {\n return $this->id;\n }",
"public function getPrimaryKeyField()\n\t{\n\t\tif ($this->primaryKeyField === null)\n\t\t{\n\t\t\tthrow new DataMapper_Exception('No primary key field set for ' . __CLASS__);\n\t\t}\n\t\treturn $this->primaryKeyField;\n\t}",
"public function id()\n\t{\n\t\treturn $this->get($this->meta()->primary_key);\n\t}",
"public function getPrimaryKeyName()\n {\n return $this->primaryKeyName;\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->name;\n\t}",
"public function getStoragePrimaryKey();",
"public function getPKField() {\n return $this->_key_field;\n }",
"public function getKey()\n {\n return $this->getId();\n }",
"public function getPrimaryKey()\n {\n return $this->getIdmontacargas();\n }",
"public function getPrimaryKey($value = FALSE) {\n\t\t$pK = self::$primaryKey[$this->table];\n\t\tif ($value)\t\n\t\t\treturn $this->$pK;\n\t\treturn $pK;\n\t}",
"function get_primary_key_column()\n {\n return $this->object->_primary_key_column;\n }",
"public function getPrimary(){\n return $this->primaryKey;\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_dl' => $this->iid_dl);\n }\n return $this->aPrimary_key;\n }",
"public function PK() {\n $returnvalue = '';\n $returnvalue .= $this->getDeterminationID();\n return $returnvalue;\n }",
"public function getId()\n {\n return $this->{self::getPrimaryKey()};\n }",
"public function getId() {\n\t\treturn $this->getData(static::$_primaryKey);\n\t}",
"public function PK() {\n $returnvalue = '';\n $returnvalue .= $this->getDNASequencingRunID();\n return $returnvalue;\n }",
"public function primaryKey($class = null) {\n\t\tif (!$class) {\n\t\t\t$class = $this->currentPathClass();\n\t\t}\n\t\t\n\t\t$model = ClassRegistry::init($class);\n\t\tif ($model) {\n\t\t\treturn $model->primaryKey;\n\t\t}\n\n\t\treturn $this->Form->primaryKey();\n\t}",
"public function getKeyName()\n {\n return isset($this->primaryKey) ? $this->primaryKey : static::$defaultPrimaryKey;\n }",
"public static function primaryKey() {\n return (new static)->getKeyName();\n }",
"function get_pk($key_id)\n\t{\n\t\t$key_id\t= $this->prepare_input($key_id, 42);\n\t\t$key\t= $this->call(\"{$this->context} --export $key_id\");\n\n\t\tif (false === $error = $this->get_error())\n\t\t{\n\t\t\treturn $key;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie($error);\n\t\t}\n\t}",
"public function getId()\n {\n return $this->getKey();\n }",
"function getPrimary_key()\n {\n if (!isset($this->aPrimary_key)) {\n $this->aPrimary_key = array('id_ubi' => $this->iid_ubi, 'id_tarifa' => $this->iid_tarifa, 'year' => $this->iyear, 'id_serie' => $this->iid_serie);\n }\n return $this->aPrimary_key;\n }",
"public function getPrimaryKey()\n\t{\n\t\treturn $this->getCoParticipante();\n\t}",
"public function getKeyName()\n {\n return $this->primaryKey;\n }",
"public function getKeyName()\n {\n return $this->primaryKey;\n }",
"public function getPrimaryKey() {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[0])) return (int) $this->_result[0];\n\t\t\telse parent::throwGetColException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('DiscussCategoriesModel::getPrimaryKey', __LINE__, __FILE__);\n\t}",
"public function getPrimaryKey()\n {\n return $this->getArticleId();\n }",
"public static function primaryKey()\n {\n return static::PRIMARY_KEY;\n }"
] | [
"0.8211914",
"0.7569415",
"0.7536089",
"0.74918836",
"0.7451381",
"0.741932",
"0.7415454",
"0.7403018",
"0.73652804",
"0.7349977",
"0.73089516",
"0.72853315",
"0.7247654",
"0.72351366",
"0.7220505",
"0.7194817",
"0.7194817",
"0.7194817",
"0.7177431",
"0.7170786",
"0.71634156",
"0.71521854",
"0.7126336",
"0.7109452",
"0.7106709",
"0.7106004",
"0.7043376",
"0.70427686",
"0.7023605",
"0.7023605",
"0.7013892",
"0.70110804",
"0.70110804",
"0.70110804",
"0.70110804",
"0.70110804",
"0.70110804",
"0.70110804",
"0.70110804",
"0.6996493",
"0.6996493",
"0.6996493",
"0.6996493",
"0.6996493",
"0.6972422",
"0.6971065",
"0.6949545",
"0.6945382",
"0.6919578",
"0.6916695",
"0.6916695",
"0.6915192",
"0.69067466",
"0.69024366",
"0.69024366",
"0.69024366",
"0.6888092",
"0.68865246",
"0.6874907",
"0.68633056",
"0.6857504",
"0.6852864",
"0.68524826",
"0.6830876",
"0.6829721",
"0.681616",
"0.68149775",
"0.6806725",
"0.67992574",
"0.67990786",
"0.6788734",
"0.67643535",
"0.67543197",
"0.67514354",
"0.6751094",
"0.67437714",
"0.67377436",
"0.67330897",
"0.67322963",
"0.6722034",
"0.670687",
"0.66976374",
"0.66938406",
"0.66926384",
"0.6690857",
"0.6683072",
"0.66727114",
"0.6650378",
"0.66400313",
"0.663498",
"0.6634315",
"0.66264784",
"0.6616177",
"0.6615587",
"0.66152203",
"0.66020775",
"0.65884733",
"0.65884733",
"0.65855104",
"0.65849775",
"0.65773594"
] | 0.0 | -1 |
Get product control details | private function _control($requset, ProductRepository $productRepo)
{
$this->_data = $productRepo->getControl($requset->id);
if (is_object($this->_data)) {
return true;
}
throw new ApiServiceException('product not found!', 400);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getProduct()\r\n {\r\n return $this->_params['product'];\r\n }",
"public function product_detail() {\n global $product;\n WC_Gokeep_JS::get_instance()->product_detail( $product );\n }",
"public function getProduct()\n\t{\n\t\treturn $this->getKeyValue('product'); \n\n\t}",
"public function getProduct();",
"public function getCssCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/css_product');\n }",
"private function getProductInformation()\r\n {\r\n \r\n // if product is repairable get the repair agents details as well as products and suppliers\r\n if ($this->claimType == \"repair-warranty\" || $this->claimType == \"repair-no-warranty\" || \r\n $this->claimType == \"repair-no-transaction\")\r\n {\r\n $result = mysql_query( \"SELECT *\r\n FROM ProductSupplierRepairAgent_VIEW\r\n WHERE Keycode = $this->keycode\");\r\n \r\n $this->keycodeResult = mysql_fetch_array($result);\r\n }\r\n // if the product is not repairable grab the product information and supplier information only\r\n else\r\n {\r\n $result = mysql_query( \"SELECT *\r\n FROM ProductSupplier_VIEW\r\n WHERE Keycode = $this->keycode\");\r\n \r\n $this->keycodeResult = mysql_fetch_array($result);\r\n }\r\n }",
"public function getShowInProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/show_product');\n }",
"public function getProductOption();",
"public function productDetailsAction()\n {\n $vars['productId'] = $this->route['id'];\n $vars['product'] = $this->model->getById($vars['productId']);\n $vars['colors'] = $this->model->getAvailableColors($vars['productId']);\n $this->view->render('Riding Gear', $vars);\n }",
"public function getProduct() {\n return $this->_registry->registry ( 'current_product' );\n }",
"public function actionWalmartproductinfo()\n {\n $sku = false;\n $productdata = \"add sku on url like ?sku=product_sku\";\n if (isset($_GET['sku'])) {\n $sku = $_GET['sku'];\n }\n $merchant_id = MERCHANT_ID;\n $config = Data::getConfiguration($merchant_id);\n $walmartHelper = new Walmartapi($config['consumer_id'], $config['secret_key']);\n if ($sku) {\n $productdata = $walmartHelper->getItem($sku);\n }\n print_r($productdata);\n die;\n }",
"public function getProduct()\r\n {\r\n return $this->product;\r\n }",
"public function getProduct()\n {\n return $this->coreRegistry->registry('product');\n }",
"public function getProduct(){\r\n return Mage::registry('current_product');\r\n }",
"public function getProduct()\n {\n return Mage::registry('product');\n }",
"public function getProduct()\n {\n return Mage::registry('product');\n }",
"public function getProduct()\n {\n return Mage::registry('product');\n }",
"abstract protected function extractProductDetail();",
"public function getProduct() {\n return Mage::registry('product');\n }",
"public function get_product()\n {\n return $this->_product;\n }",
"public function getProduct()\n {\n return Mage::registry('current_product');\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getJsCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/js_product');\n }",
"public function getProduct() {\r\n return $this->_product;\r\n }",
"public function getProductData()\n {\n return $this->_coreRegistry->registry('current_product');\n }",
"public function product()\n {\n return $this->m_product;\n }",
"public function getPropertyDetails(){\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n return $objectManager->get ( 'Apptha\\Airhotels\\Model\\Attributes' );\n }",
"protected function getProduct() {\n return $this->registry->registry('product');\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getProduct()\n {\n return $this->product;\n }",
"public function getproductinfoAction() {\n\t\t$id = $this->getRequest ()->getParam ( 'id' );\n\t\t$product = Doctrine::getTable ( 'Products' )->find ( $id )->toArray ();\n\t\tdie ( json_encode ( $product ) );\n\t}",
"public function getShowInProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/show_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }",
"public function getProduct_desc () {\n\t$preValue = $this->preGetValue(\"product_desc\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"product_desc\")->preGetData($this);\n\treturn $data;\n}",
"public function getViewedProduct();",
"function getProductCode()\n {\n return $this->productCode;\n }",
"public function getProduct() {\n return $this->getValueOrDefault('Product');\n }",
"public function viewdetailsAction()\n {\n $productId = $this->_getParam('product_id');\n $product = $this->_model->setId($productId);\n $this->view->product = $product->fetch(); \n \n }",
"public function getCssCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/css_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }",
"public function product_details($product_id)\n\t{\n\t\t$this->product_id=$product_id;\n\t\t$CI =& get_instance();\n\t\t$this->auth->check_admin_auth();\n\t\t$CI->load->library('lproduct');\t\n $content = $CI->lproduct->product_details($product_id);\n\t\t$this->template->full_admin_html_view($content);\n\t}",
"public function getProductName(){\n return $this->product_name;\n }",
"public function product_details($product_id) {\n\n $this->product_id = $product_id;\n\n $CI = & get_instance();\n\n $this->auth->check_admin_auth();\n\n $CI->load->library('lproduct');\n\n $content = $CI->lproduct->product_details($product_id);\n\n $this->template->full_admin_html_view($content);\n\n }",
"protected function getCurrentProductDetails(){\n\t\t\n\t\treturn FALSE;\n\t}",
"public function getProductData()\n {\n // use\n //$this->request->getParams(); // all params\n $id= $this->request->getParam('param');\n $product = $this->_product->create()->load($id);\n return $product;\n\n }",
"public function actionWalmartproductinventoryinfo()\n {\n $sku = false;\n $productdata = \"add sku on url like ?sku=product_sku\";\n if (isset($_GET['sku'])) {\n $sku = $_GET['sku'];\n }\n $merchant_id = MERCHANT_ID;\n $config = Data::getConfiguration($merchant_id);\n $walmartHelper = new Walmartapi($config['consumer_id'], $config['secret_key']);\n if ($sku) {\n $productdata = $walmartHelper->getInventory($sku);\n }\n\n print_r($productdata);\n die;\n }",
"public function actionProductdetail()\n {\n $route = 'merchant.getProduct';\n $request = new getProductRequest();\n $request->setCustomerId($this->customer_id);\n $request->setAuthToken($this->auth_token);\n $request->setWholesalerId(33);\n $request->appendProductIds(4678);\n $result = Proxy::sendRequest($route, $request);\n $header = $result->getHeader();\n $body = getProductResponse::parseFromString($result->getPackageBody());\n return $this->render('index',[\n 'request' => $request->toArray(),\n 'route' => $route,\n 'header' => $header,\n 'body' => $body\n ]);\n }",
"public function get_product_details($product) {\n // I will assume the connection is there and working and\n // the data is returned correctly.\n return json_encode($this->products[$product]);\n }",
"public function getProductDescription()\n\t{\n\t\treturn $this->getKeyValue('product_description'); \n\n\t}",
"public function product_detail() {\n\t\t// double tracking as there could be multiple buy buttons on the page.\n\t\tif ( $this->has_tracked_detail ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->has_tracked_detail = true;\n\n\t\t// If page reload, then return\n\t\tif ( monsterinsights_is_page_reload() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$product_id = get_the_ID();\n\n\t\t// Output view product details EE\n\t\t$js = $this->enhanced_ecommerce_add_product( $product_id );\n\n\t\t// Output setAction for EC funnel\n\t\t$js .= $this->get_funnel_js( 'viewed_product' );\n\n\t\t// Add JS to output queue\n\t\t$this->enqueue_js( 'event', $js );\n\n\t\t// Send view product event\n\t\t$properties = array(\n\t\t\t'eventCategory' => 'Products',\n\t\t\t'eventLabel' => esc_js( get_the_title() ),\n\t\t\t'nonInteraction' => true,\n\t\t);\n\n\t\t$this->js_record_event( 'Viewed Product', $properties );\n\t}",
"public function paramsAction() {\n\n$product_collection = Mage::getModel('catalog/category')->load(3)->getProductCollection();\n\n// Now let's loop through the product collection and print the ID of every product \nforeach($product_collection as $product) {\n // Get the product ID\n\n$product_id = $product->getId();\n\n // Load the full product model based on the product ID\n\n$full_product = Mage::getModel('catalog/product')->load($product_id);\n\n // Now that we loaded the full product model, let's access all of it's data\n\n // Let's get the Product Name\n\n $product_name = $full_product->getName();\n\n // Let's get the Product URL path\n\n $product_url = $full_product->getProductUrl();\n\n // Let's get the Product Image URL\n\n $product_image_url = $full_product->getImageUrl();\n\n // Let's print the product information we gathered and continue onto the next one\n\n echo $product_name;\n\n echo $product_image_url;\n}\n }",
"public function getProductInfosList(){\n return $this->_get(1);\n }",
"public function componentDetails()\n {\n return[\n 'name' => 'Logo',\n 'description' => ' Logo'\n ];\n }",
"public function getProductListingDetails()\n {\n return $this->productListingDetails;\n }",
"public function getProductSaveInfo($product, $data) {\n $product->setColor ( $data [11] );\n $product->setCost ( $data [12] );\n $product->setCountry ( $data [13] );\n $product->setCountryOfManufacture ( $data [14] );\n $product->setCreatedAt ( $data [15] );\n $product->setDescription ( $data [20] );\n $product->setEnableGooglecheckout ( $data [21] );\n $product->setGallery ( $data [22] );\n $product->setGiftMessageAvailable ( $data [23] );\n $product->setHasOptions ( $data [24] );\n $product->setHostemail ( $data [25] );\n $product->setHouserule ( $data [26] );\n $product->setImage ( $data [27] );\n $product->setImageLabel ( $data [28] );\n $product->setMediaGallery ( $data [30] );\n $product->setMinimalPrice ( $data [34] );\n $product->setMsrp ( $data [35] );\n $product->setMsrpDisplayActualPriceType ( $data [36] );\n $product->setMsrpEnabled ( $data [37] );\n $product->setName ( $data [38] );\n $product->setNewsFromDate ( strtotime ( $data [39] ) );\n $product->setNewsToDate ( '' );\n if (isset ( $data [41] )) {\n $product->setOptionsContainer ( $data [41] );\n }\n if (isset ( $data [43] )) {\n $product->setPrice ( $data [43] );\n }\n if (isset ( $data [44] )) {\n $product->setPrivacy ( $data [44] );\n }\n if (isset ( $data [45] )) {\n $product->setPropertyadd ( $data [45] );\n }\n if (isset ( $data [46] )) {\n $product->setPropertytype ( $data [46] );\n }\n if (isset ( $data [47] )) {\n $product->setPropertyWebsite ( $data [47] );\n }\n if (isset ( $data [48] )) {\n $product->setRequiredOptions ( $data [48] );\n }\n if (isset ( $data [49] )) {\n $product->setShortDescription ( $data [49] );\n }\n if (isset ( $data [50] )) {\n $product->setSmallImage ( $data [50] );\n }\n if (isset ( $data [51] )) {\n $product->setSmallImageLabel ( $data [51] );\n }\n if (isset ( $data [52] )) {\n $product->setSpecialFromDate ( $data [52] );\n }\n if (isset ( $data [53] )) {\n $product->setSpecialPrice ( $data [53] );\n }\n if (isset ( $data [54] )) {\n $product->setSpecialToDate ( $data [54] );\n }\n if (isset ( $data [55] )) {\n $product->setStatus ( $data [55] );\n }\n if (isset ( $data [56] )) {\n $product->setTaxClassId ( $data [56] );\n }\n if (isset ( $data [57] )) {\n $product->setThumbnail ( $data [57] );\n } \n return $product;\n }",
"public function getJsCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/js_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }",
"public function productDetails($productId = null) \r\n {\r\n // Setting the page title\r\n $this->set(\"title_for_layout\",\"Product Details\");\r\n\r\n // if nothing passing then redirecting to home page.\r\n if (empty($productId))\r\n {\r\n\t \t$this->redirect('home');\r\n }\r\n \r\n $this->set('productId', $productId);\r\n \r\n\r\n // have to user before filter\r\n $whereCondition = \" Product.id = '\".$productId.\"' \";\r\n $conditions[] = $whereCondition;\r\n $productDetails = $this->Product->getSearchResults($conditions);\r\n $this->set('productDetails', $productDetails);\r\n\r\n // These setting for breadcrump.\r\n $productCatNameArray = $this->Product->getProductCategories($productId);\r\n\r\n $productCatName = $productCatNameArray['Category']['category_name'];\r\n $productCatId = $productCatNameArray['Category']['id'];\r\n \r\n\t\t$this->set('productCatName', $productCatName);\r\n $this->set('productCatId', $productCatId);\r\n\r\n $this->set('productSubCatName',$productCatNameArray['SubCategory']['sub_category_name']);\r\n $this->set('productSubCatId',$productCatNameArray['SubCategory']['id']);\r\n\r\n }",
"public function getProductName() {\n //return the value product name\n return $this->ProductName;\n }",
"public function getProductDetailId()\n {\n return $this->product_detail_id;\n }",
"public function getProductName()\n {\n return $this->product_name;\n }",
"static function getProductProperty($prob_name,$prod_id, $wid){\n $vdo = vpdo::getVdo(DB_PREFIX.$wid) ;\n return $vdo->fetchOne(\"select ov.name from options o \n inner join options_values ov on o.id = ov.option_id where o.name = ? and product_id = ?\", array($prob_name, $prod_id));\n }",
"public function getProduct_Id() {\n return $this->product_Id;\n }",
"public function getProduct_name () {\n\t$preValue = $this->preGetValue(\"product_name\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_name;\n\treturn $data;\n}",
"public function getProduct_code () {\n\t$preValue = $this->preGetValue(\"product_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->product_code;\n\treturn $data;\n}",
"public function getProductInfo($getProductId) {\r\n return Mage::getModel ( 'catalog/product' )->load ( $getProductId );\r\n }",
"function getProduct($params = array()){\n\t\tMpApi::sleep(); \n\t\treturn json_decode($this->callCurl(MpApi::GET , '/multivendor/product/id/'.(int)$params['id'].'.json'),true);\n\t}",
"private function setExternalProductDetails() {\n /** @var ExternalProductAdapter $product */\n $product = $this->product;\n\n $product->set_button_text($this->wcData->getButtonText());\n $product->set_product_url($this->wcData->getProductUrl());\n }",
"public function getName_product()\n {\n return $this->name_product;\n }",
"function info()\n\t{\n\t\t$class=str_replace('hook_pointstore_','',strtolower(get_class($this)));\n\n\t\t$items=array();\n\t\t$rows=$GLOBALS['SITE_DB']->query_select('pstore_customs',array('*'),array('c_enabled'=>1));\n\t\tforeach ($rows as $row)\n\t\t{\n\t\t\tif ($row['c_one_per_member']==1)\n\t\t\t{\n\t\t\t\t// Test to see if it's been bought\n\t\t\t\t$test=$GLOBALS['SITE_DB']->query_value_null_ok('sales','id',array('purchasetype'=>'PURCHASE_CUSTOM_PRODUCT','details2'=>strval($rows[0]['id']),'memberid'=>get_member()));\n\t\t\t\tif (!is_null($test)) continue;\n\t\t\t}\n\n\t\t\t$next_url=build_url(array('page'=>'_SELF','type'=>'action','id'=>$class,'sub_id'=>$row['id']),'_SELF');\n\t\t\t$items[]=do_template('POINTSTORE_'.strtoupper($class),array('NEXT_URL'=>$next_url,'TITLE'=>get_translated_text($row['c_title']),'DESCRIPTION'=>get_translated_tempcode($row['c_description'])));\n\t\t}\n\t\treturn $items;\n\t}",
"public function getProductName()\n {\n return $this->product_name;\n }",
"function getDetails()\n\t{\n\t\tglobal $con;\n\n\t\t$product_id = $_GET['pro_id'];\n\t\t$get_products = \"select * from products where prod_id='$product_id'\";\n\t\t$run_products = mysqli_query($con, $get_products);\n\n\t\twhile($row = mysqli_fetch_array($run_products)) {\n\t\t\t$prod_cat = $row['prod_cat'];\n\t\t\t$prod_brand = $row['prod_brand'];\n\t\t\t$prod_title = $row['prod_title'];\n\t\t\t$prod_price = $row['prod_price'];\n\t\t\t$prod_image = $row['prod_img'];\n\t\t\t$prod_desc = $row['prod_desc'];\n\t\techo \"\n\t\t\t<div class='product_detail'>\n\t\t\t\t<h3>$prod_title</h3>\n\t\t\t\t<img src='admin_area/product_images/$prod_image'>\t\n\t\t\t\t<h2>$prod_price</h2>\n\t\t\t\t<p>$prod_desc</p>\n\t\t\t\t<a href='index.php'>Go Back</a>\n\t\t\t\t<a href='index.php?add_cart='$product_id'><button>Add to Cart</button></a>\n\t\t\t</div>\n\t\t\";\n\t\t}\n\t}",
"public function getProductID()\n {\n }",
"function get_productinfo_by_id(){\n\tif(isset($_POST['pid']) && !empty($_POST['pid'] )){\n\t\tglobal $wpdb;\n\t\t$sale = $price = $width = $height = 0;\n\t\t/* \n\t\t$price = get_post_meta( $_POST['pid'], '_regular_price', true);\n\t\t$sale = get_post_meta( $_POST['pid'], '_sale_price', true);\t\t\n\t\t */\n\t\t\n\t\t$tcplugin_10_19 = get_post_meta($_POST['pid'],'tcplugin_10_19',TRUE); \n\t\t\n\t\t\n\t\t$sale = $tcplugin_10_19;\n\t\t\n\t\t$width = get_post_meta($_POST['pid'],'pr_width',TRUE);\n\t\t$height = get_post_meta($_POST['pid'],'pr_height',TRUE);\n\t\t\n\t\techo json_encode(array('sale'=>$sale,'price'=>$price,'width'=>$width,'height'=>$height));\n\t}\n\tdie();\n}",
"function info() {\r\n\t\t$this -> Producto -> recursive = -1;\r\n\t\t$producto = $this -> Producto -> read(null, $this -> data[\"Producto\"][\"id\"]);\r\n\t\techo json_encode($producto);\r\n\t\tConfigure::write('debug', 0);\r\n\t\t$this -> autoRender = false;\r\n\t\texit();\r\n\t}",
"public function getProduct()\n {\n return isset($this->product) ? $this->product : null;\n }",
"protected function getMoreInformation($product)\n {\n $data = [];\n $excludeAttr = [];\n $attributes = $product->getAttributes();\n foreach ($attributes as $attribute) {\n if ($attribute->getIsVisibleOnFront() && !in_array($attribute->getAttributeCode(), $excludeAttr)) {\n $value = $attribute->getFrontend()->getValue($product);\n\n if (!$product->hasData($attribute->getAttributeCode())) {\n $value = __('N/A');\n } elseif ((string)$value == '') {\n $value = __('No');\n } elseif ($attribute->getFrontendInput() == 'price' && is_string($value)) {\n $value = $this->priceCurrency->convertAndFormat($value);\n }\n\n if (is_string($value) && strlen($value)) {\n $data[$attribute->getAttributeCode()] = [\n 'label' => __($attribute->getStoreLabel()),\n 'value' => $value,\n 'code' => $attribute->getAttributeCode(),\n ];\n }\n }\n }\n\n return $data;\n }",
"function viewProductDetail()\n{\n\t$cf = new Fwcore();\n\t\n\t$data = array();\n\t$data['auth_token'] = $_POST['auth_token'];\n\t$data['product_id'] = $_POST['product_id'];\n\t$data['app_id'] = isset($_POST['app_id']) != '' ? $_POST['app_id'] : '';\n\t$cf->viewProductDetail($data);\n}",
"public function show($product) {\n \n }",
"function productoption()\n\t{\n\t\t$res = $this->product_model->productOptionList();\n\t\techo \"<pre />\";\n\t\tprint_r($res);\n\t\texit;\n\t\t\n\t\t//check if product type list is pulled. if not, list is set to empty array\n\t\t// $productTypeList = ( $res->rc == 0 ) ? $res->data->producttypelist : array();\n\t\t\n\t\t// $data['mainContent'] = 'producttype_list_view.tpl';\n\t\t\n\t\t// $data['data'] = array(\n\t\t\t// 'baseUrl'\t\t\t=> base_url(),\n\t\t\t// 'title'\t\t\t\t=> 'Product Type',\n\t\t\t// 'msgClass'\t\t\t=> $this->msgClass,\n\t\t\t// 'msgInfo'\t\t\t=> $this->msgInfo,\n\t\t\t// 'productTypeList'\t=> $productTypeList\n\t\t// );\n\t\t\n\t\t// $this->load->view($this->globalTpl, $data);\t\n\t}",
"function product_get()\n {\n $product_id = $this->uri->segment(3);\n\n $product = $this->api_model->get_product($product_id);\n\n if(!empty($product))\n {\n $this->response(array('status' => 'success', 'message' => $product));\n }\n else\n {\n $this->response(array('status' => 'failure', 'message' => 'The specified product could not be found'), REST_CONTROLLER::HTTP_NOT_FOUND);\n }\n\n\t}",
"public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }",
"public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }",
"public function getCurrentProduct()\n {\n return $this->_registry->registry('current_product');\n }",
"public static function getProductOptions()\n {\n return self::get('product') ?: [];\n }",
"function getId_Producto(){\r\n\t\treturn $this->nId_Producto;\r\n\t}",
"public function getProduct()\r\n {\r\n return $this->item->getParentObject()->getProduct();\r\n }",
"private function getPurchasePageData(){\n\t\t$this->template->imgurl = $this->getParam('imgurl');\n\t\tif ($this->isError()) {\n\t\t\treturn;\n\t\t}\n\t\t$this->getItem();\n\t\tif ($this->isError()) {\n\t\t\treturn;\n\t\t}\n\t\n\t\t// TODO Add 'name' to productdata\n\t\t$itemView = $this->template->item;\n\t\t$name = substr($itemView->description, 0, 35);\n\t\t$itemView->name = $name . '...';\n\n\t\t// Build shippng costs (including insurance)\n\t\t$shippingbase = shop_shipping_fee;\n\t\t$optionShipping = array();\n\t\t$options = $itemView->options;\n\t\tfor ($i = 0; $i < sizeof($options); $i++) {\n\t\t\t$option = $options[$i];\n\t\t\tif ($option->price < 100) {\n\t\t\t\t$ship = $shippingbase + 4;\n\t\t\t} else {\n\t\t\t\t$ship = $shippingbase + 8;\n\t\t\t}\n\t\t\t$optionShipping[$option->seq] = $ship;\n\t\t}\n\t\t$this->template->optionShipping = $optionShipping;\n\t\t\n\t\tLogger::info('Purchase page view ['.$this->template->item->id.']['.$this->template->item->code.']');\n\t}",
"public function getProduct() {\r\n\t\t$id = $this->getRequest()->getParam('id');\r\n\t\t$products = Mage::getModel('catalog/product')->load($id);\r\n\t\treturn $products;\r\n\t}",
"public function getProductDetails($params){\n\t\ttry {\t\n\t\t\t\n\t\t\t//$query = \"select * from store_products where product_id=\".$params['id'];\n\t\t\t\n\t\t\t$query = \"SELECT\n\t\t\tsp.product_id, sp.attributes_group_id, sp.merchant_id, sp.brand_id, sp.product_sku, sp.product_title,\n\t\t\tsp.product_small_description, sp.product_meta_title, sp.product_meta_description,\n\t\t\tspd.description_id, spd.product_description\n\t\t\tFROM store_products sp\n\t\t\tLEFT JOIN store_products_description spd ON (sp.product_id=spd.product_id) where sp.product_id=\".$params['id'];\n\t\t\t\n\t\t\t//exit;\t\t\t\n\t\t\t$stmt = $this->db->query($query);\t\t\t\n\t\t\treturn $stmt->fetch();\n\t\t\t\n\t\t} catch(Exception $e) {\n\t\t\tApplication_Model_Logging::lwrite($e->getMessage());\n\t\t\tthrow new Exception($e->getMessage());\n\t\t}\n\t}",
"public function getProducte()\n {\n return $this->producte;\n }",
"public function getProductData()\n {\n $p = Mage::registry('current_product');\n\n $data = array();\n if($p) {\n $data['name'] = $this->escapeSingleQuotes($p->getName());\n $data['productId'] = $this->escapeSingleQuotes($p->getSku());\n $data['price'] = Mage::helper('affirm/util')->formatCents(\n $this->getProductPrice($p)\n );\n $data['currency'] = $this->getCurrentCurrencyCode();\n }\n\n return $data;\n }",
"public function getProductDetails(){\n\t\tif (($productId = $this->input->get_post('productId')) && ($userId = $this->input->get_post('userId'))) {\n\n $data = array(\n 'id' => $productId,\n 'shop_id' => $userId\n \n );\n \n $ret = $this->Lootel_model->getProductDetails($data);\n \n if($ret){\n\t\t\t\t$response = array(\"status\"=>true,\"message\"=>\"Success\",$ret);\n\t\t\t}else{\n\t\t\t\t$response = array(\"status\"=>false,\"message\"=>\"Record not found\");\n\t\t\t}\n\t\t}else{\n\t\t\t$response = array(\"status\"=>false,\"message\"=>\"Required parameter not found\");\n\t\t}\n\t\techo json_encode($response);\t\n\t}",
"function product()\n {\n if (($data['logedUser'] = $this->_admin_pages()))\n { \n \n $product['content'] = Modules::run('product/_index'); \n \n $data['header'] = '';\n $data['titelHeader'] = $this->lang->line('product');\n $data['content'] = Modules::run('ajaxme/ajaxmeAdminProduct',$product);\n \n \n $this->load->view('general',$data);\n \n }\n }",
"public static function getMetaData()\n {\n $site_controller = \\Yii::$app->urlManager->parseRequest(\\Yii::$app->request)[0];\n if ('site/show-product' == $site_controller )\n {\n $prodId = \\Yii::$app->urlManager->parseRequest(\\Yii::$app->request)[1];\n return Teg::findOne(['id'=>$prodId]);\n }\n }",
"public function getProducts_options() {\n\t\treturn $this->products_options;\n\t}",
"public function getProduct()\n {\n return $this->getSubscription()->getProduct();\n }",
"public function getAttributeDetails(){\n $objectManager = \\Magento\\Framework\\App\\ObjectManager::getInstance ();\n return $objectManager->get('Magento\\Eav\\Model\\Config' );\n }",
"public function getProductDetailsById($productId){\n if($productId!=''){\n $this->db->select('id,title,image,pdf_file,sp1,sp2,sp3,sp4,description');\n $query = $this->db->get_where('product',array('id' => $productId));\n return $query->row(); \n }\n }"
] | [
"0.63553184",
"0.63131213",
"0.6260689",
"0.6250101",
"0.62280726",
"0.6215257",
"0.6209954",
"0.6198918",
"0.61938477",
"0.6162146",
"0.6112782",
"0.607487",
"0.60442144",
"0.6042314",
"0.60341465",
"0.60341465",
"0.60341465",
"0.60251933",
"0.6022629",
"0.6020318",
"0.60193855",
"0.6017181",
"0.6017181",
"0.6017181",
"0.6017181",
"0.6017181",
"0.6017181",
"0.59936225",
"0.59796554",
"0.59621847",
"0.59521097",
"0.5943404",
"0.593489",
"0.5909898",
"0.5909898",
"0.5902965",
"0.58744866",
"0.5856136",
"0.5839849",
"0.58350736",
"0.5830803",
"0.5828905",
"0.5796248",
"0.5789121",
"0.57796377",
"0.57724667",
"0.5769169",
"0.5760608",
"0.5756228",
"0.5749192",
"0.573331",
"0.5698638",
"0.5697532",
"0.5684907",
"0.56617963",
"0.56323117",
"0.5611258",
"0.5597763",
"0.55937356",
"0.55895907",
"0.5587726",
"0.5580421",
"0.5578701",
"0.55736095",
"0.5569047",
"0.5568903",
"0.556822",
"0.5555394",
"0.5554764",
"0.5549504",
"0.552997",
"0.55278516",
"0.5518848",
"0.55102265",
"0.5509325",
"0.550904",
"0.5506095",
"0.5505361",
"0.5500259",
"0.549088",
"0.54814374",
"0.5465365",
"0.5464117",
"0.54617476",
"0.54617476",
"0.54617476",
"0.5457757",
"0.54393697",
"0.54384756",
"0.54131573",
"0.54109234",
"0.5406437",
"0.54055387",
"0.5404413",
"0.54040384",
"0.54039574",
"0.5389072",
"0.5382415",
"0.53747064",
"0.53697246",
"0.5354406"
] | 0.0 | -1 |
Get product last comments | private function _lastComments($requset, ProductRepository $productRepo)
{
$this->_data = $productRepo->getLastComments($requset->id);
if (is_object($this->_data) && $this->_data->count() > 0) {
return true;
}
throw new ApiServiceException('there is no comment!', 400);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLatestComment() {\n\t\t$lastComment = NULL;\n\t\tforeach ($this->comments as $comment) {\n\t\t\t$lastComment = $comment;\n\t\t}\n\t\treturn $lastComment;\n\t}",
"public function getLastCommentDate()\n {\n return $this->dibi->fetchAll('\n SELECT\n `thread_id`, MAX(`date`) AS date\n FROM\n `comment`\n GROUP BY\n `thread_id`\n ');\n \n \n }",
"public function comments()\n {\n return $this->hasMany(Comment::class)->latest();\n }",
"public function getLastCommentTime()\n {\n return $this->last_comment_time;\n }",
"public function lastBlog()\n {\n $chapitres = $this->chapitre->getLastBlog();\n $commentaires = $this->comment->lastComments();\n }",
"public function get_last_pending_comments($limit)\n {\n $sql = \"SELECT comments.*, posts.title_slug as post_slug FROM comments \n INNER JOIN posts ON posts.id = comments.post_id WHERE comments.status = 0\n ORDER BY comments.id DESC LIMIT ?\";\n $query = $this->db->query($sql, array(clean_number($limit)));\n return $query->result();\n }",
"public function getComments()\n {\n return $this->tpComments;\n }",
"public function last()\n {\n return $this->execGetRequest(['allow_state' => true], UrlBuilder::RESOURCE_GET_LATEST_NEWS);\n }",
"public function getComments()\n {\n return $this->comments;\n }",
"public function getComments()\n {\n return $this->comments;\n }",
"public function getComments()\n {\n return $this->comments;\n }",
"public function getComments()\n {\n return $this->comments;\n }",
"public function get_lastComment($result)\n\t{\n\t\t$this->db->order_by('id','ASC')->select(\"discussion_comments.*, users_details.fullname, users_details.profile_image\");\n\t\t$this->db->from(\"discussion_comments\");\n\t\t$this->db->join('users_details', 'discussion_comments.user_id=users_details.id');\n\t\t$this->db->where('discussion_comments.id=', $result);\n\t\t$query=$this->db->get();\n\t\tif($query->num_rows()){\n\t\t\t$result = $query->row_array();\n\t\t\treturn $result;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"public function getComments() {}",
"function getComment() {\n return DataObjectPool::get($this->getAdditionalProperty('comment_type'), $this->getAdditionalProperty('comment_id'));\n }",
"function getLatestCommentID() {\n $latestCommentID = 0;\n $dbr = wfGetDB( DB_SLAVE );\n $s = $dbr->selectRow(\n 'Comments',\n array( 'CommentID' ),\n array( 'Comment_Page_ID' => $this->id ),\n __METHOD__,\n array( 'ORDER BY' => 'Comment_Date DESC', 'LIMIT' => 1 )\n );\n if ( $s !== false ) {\n $latestCommentID = $s->CommentID;\n }\n return $latestCommentID;\n }",
"public function getTopComments()\n {\n $comments = array();\n $db= DB::conn();\n\n $rows = $db->rows('SELECT * FROM comment WHERE liked != 0 ORDER BY liked DESC, disliked ASC');\n\n foreach ($rows as $row) {\n $comments[] = new Comment($row);\n }\n \n return $comments;\n }",
"public function fetch_comments($limit, $start,$product_id)\n {\n $this->db->select(\"*\");\n $this->db->from(\"comments\");\n $this->db->order_by(\"id\", \"DESC\");\n $this->db->where(\"product_id\", $product_id);\n $this->db->limit($limit, $start);\n $query = $this->db->get();\n return $query;\n\n\t\t\t\t\t\t\t \n }",
"function fetchArticleComments()\r\n\t{\r\n\t\t$comments = array();\r\n\t\t$sql = $GLOBALS['db']->Query(\"SELECT * FROM \" . PREFIX . \"_modul_shop_artikel_kommentare WHERE Publik = '1' AND ArtId = '\" . (int)$_REQUEST['product_id'] . \"' ORDER BY Id DESC\");\r\n\t\twhile($row = $sql->fetchrow())\r\n\t\t{\r\n\t\t\t$sql_u = $GLOBALS['db']->Query(\"SELECT Vorname,Nachname FROM \" . PREFIX . \"_users WHERE Id = '$row->Benutzer'\");\r\n\t\t\t$row_u = $sql_u->fetchrow();\r\n\r\n\t\t\t$row->Titel = htmlspecialchars($row->Titel);\r\n\t\t\t$row->Kommentar = nl2br(htmlspecialchars($row->Kommentar));\r\n\t\t\t$row->Autor = substr($row_u->Vorname,0,1) . '. ' . $row_u->Nachname;\r\n\t\t\tarray_push($comments, $row);\r\n\t\t}\r\n\t\treturn $comments;\r\n\t}",
"public function getComments()\n\t{\n\n\t\treturn $this->comments;\n\t}",
"public function getComments()\n {\n return $this->api->_request('GET', '/api/comments?id='.$this->ID);\n }",
"public function getComments() {\n \n return $this->comments;\n }",
"public function getLatestComments($number = 7) {\n $query = $this->createQuery();\n $query->addOrderBy('{dateAdded} DESC');\n $query->setLimit($number);\n\n return $query->query();\n }",
"function show_lastcommented()\n\t{\n\t\tglobal $required_position, $userdata, $template, $db, $SID, $lang, $phpEx, $phpbb_root_path, $garage_config, $board_config;\n\t\n\t\tif ( $garage_config['lastcommented_on'] != TRUE )\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$template_block = 'block_'.$required_position;\n\t\t$template_block_row = 'block_'.$required_position.'.row';\n\t\t$template->assign_block_vars($template_block, array(\n\t\t\t'BLOCK_TITLE' => $lang['Latest_Vehicle_Comments'],\n\t\t\t'COLUMN_1_TITLE' => $lang['Vehicle'],\n\t\t\t'COLUMN_2_TITLE' => $lang['Author'],\n\t\t\t'COLUMN_3_TITLE' => $lang['Posted_Date'])\n\t\t);\n\t\n\t // What's the count? Default to 10\n\t $limit = $garage_config['lastcommented_limit'] ? $garage_config['lastcommented_limit'] : 10;\n\t \t\t \t\t\n\t \t$sql = \"SELECT gb.garage_id AS id, CONCAT_WS(' ', g.made_year, makes.make, models.model) AS vehicle, \n\t gb.author_id AS member_id, gb.post_date AS POI, m.username \n\t FROM \" . GARAGE_GUESTBOOKS_TABLE . \" AS gb \n\t \tLEFT JOIN \" . GARAGE_TABLE . \" AS g ON gb.garage_id = g.id\n\t LEFT JOIN \" . GARAGE_MAKES_TABLE . \" AS makes ON g.make_id = makes.id \n\t LEFT JOIN \" . GARAGE_MODELS_TABLE . \" AS models ON g.model_id = models.id\n\t LEFT JOIN \" . USERS_TABLE . \" AS m ON gb.author_id = m.user_id\n\t\t\tWHERE makes.pending = 0 AND models.pending = 0\n\t ORDER BY POI DESC LIMIT $limit\";\n\t\n\t \tif(!$result = $db->sql_query($sql))\n\t\t{\n\t\t\tmessage_die(GENERAL_ERROR, \"Could not query vehicle information\", \"\", __LINE__, __FILE__, $sql);\n\t\t}\n\t \t\t \n\t \twhile ( $vehicle_data = $db->sql_fetchrow($result) )\n\t \t{\n\t\t\t$template->assign_block_vars($template_block_row, array(\n\t\t\t\t'U_COLUMN_1' => append_sid(\"garage.$phpEx?mode=view_vehicle&CID=\".$vehicle_data['id'].\"\"),\n\t\t\t\t'U_COLUMN_2' => append_sid(\"profile.$phpEx?mode=viewprofile&\".POST_USERS_URL.\"=\".$vehicle_data['member_id'].\"\"),\n\t\t\t\t'COLUMN_1_TITLE' => $vehicle_data['vehicle'],\n\t\t\t\t'COLUMN_2_TITLE' => $vehicle_data['username'],\n\t\t\t\t'COLUMN_3' => create_date('D M d, Y G:i', $vehicle_data['POI'], $board_config['board_timezone']))\n\t\t\t);\n\t \t}\n\t\n\t\t$required_position++;\n\t\treturn ;\n\t}",
"function getcomment()\n\t{\n\t\t## variable initialization\n\t\tglobal $option, $mainframe, $db;\n\t\t$commentId = JRequest::getVar('cmtid', '', 'get', 'int');\n\t\t$id = JRequest::getVar('id', '', 'get', 'int');\n\n\t\t## for pagination\n\t\t$limit = $mainframe->getUserStateFromRequest($option . '.limit', 'limit', $mainframe->getCfg('list_limit'), 'int');\n\t\t$limitstart = $mainframe->getUserStateFromRequest($option . 'limitstart', 'limitstart', 0, 'int');\n\n\t\t## \tquery for delete the comments\n\t\tif ($commentId)\n\t\t{\n\t\t\t$query = \"DELETE FROM #__hdflv_comments\n \t\t WHERE id=\" . $commentId . \"\n \t\t OR parentid=\" . $commentId;\n\t\t\t$db->setQuery($query);\n\t\t\t$db->query();\n\t\t\t## message for deleting comment\n\t\t\t$mainframe->enqueueMessage( 'Comment Successfully Deleted' );\n\t\t}\n\n\t\t$id = JRequest::getVar('id', '', 'get', 'int');\n\t\t$query = \"SELECT COUNT(id) FROM #__hdflv_comments\n \t\t WHERE videoid = $id\";\n\t\t$db->setQuery($query);\n\t\t$db->query();\n\t\t$commentTotal = $db->getNumRows();\n\t\tif (!$commentTotal)\n\t\t{\n\t\t\t$strRedirectPage = 'index.php?layout=adminvideos&option=' . JRequest::getVar('option') . '&user=' . JRequest::getVar('user');\n \t$mainframe->redirect($strRedirectPage);\n\t\t}\n\n\t\t$query=\"SELECT id as number,id,parentid,videoid,subject,name,created,message\n\t\t\t\tFROM #__hdflv_comments where parentid = 0 and published=1 and videoid=$id union\n\t\t\t\tSELECT parentid as number,id,parentid,videoid,subject,name,created,message\n\t\t\t\tFROM #__hdflv_comments where parentid !=0 and published=1 and videoid=$id\n\t\t\t\tORDER BY number desc,parentid\";## Query is to display the comments posted for particular video\n\n\t\t$db->setQuery($query);\n\t\t$db->query();\n\t\t$commentTotal = $db->getNumRows();\n\n\t\t$pageNav = new JPagination($commentTotal, $limitstart, $limit);\n\n $query = \"$query LIMIT $pageNav->limitstart,$pageNav->limit\";\n\t\t$db->setQuery($query);\n\t\t$comment = $db->loadObjectList();\n\n\t\t$query = \"SELECT `title` FROM #__hdflv_upload WHERE id = $id\";\n\t\t$db->setQuery($query);\n\t\t$videoTitle = $db->loadResult();\n\n\t\t/**\n\t\t * get the most recent database error code\n\t\t * display the last database error message in a standard format\n\t\t *\n\t\t */\n\t\tif ($db->getErrorNum())\n\t\t{\n\t\t\tJError::raiseWarning($db->getErrorNum(), $db->stderr());\n\t\t}\n\n\t\t$comment = array('pageNav' => $pageNav, 'limitstart' => $limitstart, 'comment' => $comment ,'videotitle' => $videoTitle);\n\t\treturn $comment;\n\t}",
"public function get_comments()\n {\n }",
"function render_block_core_latest_comments($attributes = array())\n {\n }",
"public function selectLastNews()\n {\n $query = \"SELECT description FROM \" . static::TABLE . \" ORDER BY news_date ASC LIMIT 3\";\n\n return $this->pdo->query($query)->fetchAll();\n }",
"public function getLastComment($user){\n $comments = $this->getComments($user, false, 1, false, ['deleted' => false]);\n\n if (count($comments)) {\n return $comments[0];\n }\n\n return null;\n }",
"public function readComment(){\n $sql='SELECT idComentario, comentario, producto.nombre as producto,cliente.nombre as cliente, comentarios.estado as estado, cliente.usuario as usuario FROM cliente, producto, comentarios where producto.idProducto=comentarios.idProducto and cliente.idCliente=comentarios.idCliente and comentarios.idProducto=?';\n $params=array($this->id);\n return Database::getRows($sql, $params);\n }",
"public function getAllComments()\n {\n $req = $this->pdo->prepare('SELECT * FROM comments ORDER BY `date` DESC');\n $req->execute();\n\n return $req->fetchAll();\n }",
"public function getComments() {\n\t\treturn $this->api->getCommentsByPhotoId($this->getId());\n\t}",
"public function getComments() {\n\t\treturn $this->arrComments;\n\t}",
"public function getLastCommentTime()\n\t{\n\t\treturn NULL;\n\t}",
"function get_comment() {\n\t\treturn $this->comment;\n\t}",
"public function selectComments() {\n $query=\"SELECT c.id_comentario, c.comentario, c.valoracion, cp.catalogo_producto, ec.estado_comentario, CONCAT(cl.nombres, ' ', cl.apellidos) as cliente, c.fecha_comentario\n FROM comentarios c\n INNER JOIN catalogo_productos cp\n ON cp.id_catalogo_producto = c.id_catalogo_producto\n INNER JOIN estados_comentario ec\n ON ec.id_estado_comentario = c.id_estado_comentario\n INNER JOIN clientes cl\n ON cl.id_cliente = c.id_cliente\";\n $params = null;\n return Database::getRow($query, $params);\n }",
"public function getLatestProduct()\n {\n $this->db->connect();\n $sql = \"SELECT * FROM $this->table ORDER BY added LIMIT 4;\";\n $product = $this->db->executeFetchAll($sql);\n return $product;\n }",
"public function findLatest()\n {\n return $this->productRepository->getLatest();\n }",
"function sp_most_commented($comment_posts = 5 , $avatar_size = 60){\n$comments = get_comments('status=approve&number='.$comment_posts);\nforeach ($comments as $comment) { ?>\n\t<li>\n\t\t<div class=\"post-thumbnail\">\n\t\t\t<?php echo get_avatar( $comment, $avatar_size ); ?>\n\t\t</div>\n\t\t<a href=\"<?php echo get_permalink($comment->comment_post_ID ); ?>#comment-<?php echo $comment->comment_ID; ?>\">\n\t\t<?php echo strip_tags($comment->comment_author); ?>: <?php echo wp_html_excerpt( $comment->comment_content, 60 ); ?>... </a>\n\t</li>\n<?php } \n}",
"public function getLastPost() {\r\n $db = $this->dbConnect();\r\n $req = $db->query('SELECT id, title, content,adress_street, adress_city, DATE_FORMAT(date_creation, \\'%d/%m/%Y à %Hh%imin%ss\\') AS date_creation_fr FROM articles ORDER BY date_creation DESC LIMIT 0, 1');\r\n\r\n return $req->fetchAll();\r\n }",
"public function readCommentCustomer(){\n $sql='SELECT idComentario, comentario, producto.nombre as producto,cliente.nombre as cliente, comentarios.estado as estado, cliente.usuario as usuario FROM cliente, producto, comentarios where producto.idProducto=comentarios.idProducto and cliente.idCliente=comentarios.idCliente and comentarios.idProducto=? and comentarios.estado = 1';\n $params=array($this->id);\n return Database::getRows($sql, $params);\n\n }",
"public function getCommentsData()\n {\n $query = $this->getComments()->orderBy(['tree' => SORT_ASC, 'lft' => SORT_ASC]);\n $dependency = new TagDependency(['tags' => [self::CACHE_TAG_POST_ALL_COMMENTS]]);\n return self::getDb()->cache(static function () use ($query) {\n return $query->all();\n }, self::CACHE_DURATION, $dependency);\n }",
"function get_lastcommentmodified($timezone = 'server')\n {\n }",
"public function get_comment()\n\t{\n\t\treturn $this->comment;\n\t}",
"public function getComment() {}",
"public function getCommentsAdmin() \n {\n $db = $this->dbConnect();\n $reqPostComments = $this->bdd->query('SELECT id, id_post, author, comment, DATE_FORMAT(date_comment, \\'Le %d/%m/%Y à %H h %i\\') AS date_comment FROM comments ORDER BY date_comment DESC');\n $commentsId = $reqPostComments->fetchAll();\n $reqPostComments->closeCursor();\n return $commentsId;\n }",
"public function getComment()\n { \n return $this->comment;\n }",
"public function getComment()\n {\n return $this->comment;\n }",
"public function getComment()\n {\n return $this->comment;\n }",
"public function getComment()\n {\n return $this->comment;\n }",
"public function getComment()\n {\n return $this->comment;\n }",
"public function getComment()\n {\n return $this->comment;\n }",
"public function getComment()\n {\n return $this->comment;\n }",
"public function getComment()\n {\n return $this->comment;\n }",
"public function getComment()\r\n {\r\n return $this->comment;\r\n }",
"public function getComment()\n {\n return $this->_comment;\n }",
"public function lastMessage()\n\t{\n\t\t$data = $this->getDoctrine()->getRepository(Posting::class)->findBy(array(), ['id' => 'DESC'], 3);\n\t\t//$data = $posting->addOrderBy('id', 'desc')->take(3)->get();\n\t\treturn $this->render('page/main.html.twig', ['data' => $data]);\n\t}",
"function getComment()\n {\n return $this->comment;\n }",
"function getRecentComments() {\n global $con;\n try {\n $sql = \"SELECT `comment`, username, `id`, `title`, `title_id` FROM `comments` ORDER BY `id` DESC LIMIT 3\";\n $sql = $con->prepare($sql);\n $sql->execute();\n buildRecentComments($sql->fetchAll());\n } catch (PDOException $e) {\n echo $e;\n }\n}",
"public function getAllPostsMostCommented($limit){\n $entityManager = $this->getEntityManager();\n $queryBuilder = $entityManager->createQueryBuilder();\n $queryBuilder\n ->select('bp')\n ->from('App:BlogPost', 'bp')\n ->join('bp.comments','c','WITH', 'bp.id=c.blogPost')\n ->groupBy('bp.title')\n ->orderBy('count(c.blogPost)','DESC')\n ->setMaxResults($limit);\n\n return $queryBuilder->getQuery()->getResult();\n }",
"function lastcomments_block() {\r\n\r\n\tglobal $template;\r\n\t// Action if sidepanel is enabled\r\n\tif (pluginGetVariable('lastcomments', 'sidepanel')) {\r\n\t\t$template['vars']['plugin_lastcomments'] = lastcomments();\r\n\t} else {\r\n\t\t$template['vars']['plugin_lastcomments'] = \"\";\r\n\t}\r\n}",
"public function getNumberOfComments()\n {\n return count($this->comments);\n \n /*$redis = Yii::$app->redis;\n $key = 'post:'. $this->id .':comments';\n \n return ($redis->get($key)>0)?$redis->get($key):0;*/\n }",
"function getComments($post_id){\n GLOBAL $CONNECTION; \n $sql = \"SELECT * FROM comment WHERE post_id=$post_id ORDER BY commented_at DESC\";\n $comments = mysqli_query($CONNECTION, $sql);\n return $comments;\n }",
"public function getLastPost()\n\t{\n\t\t$table = new Zend_Db_Table(array('name'=>PrecurioTableConstants::FORUM_POSTS, 'rowClass'=>'Post'));\n\t\t$select = $table->select(false);\n\t\t\n\t\t$select->setTable($table)->setIntegrityCheck(false);\t\t\t\n\t\t\t\n\t\t$select = $select->from(array('a' => PrecurioTableConstants::FORUM_POSTS))\n\t\t\t->join(array('b' => PrecurioTableConstants::USERS), 'a.user_id = b.user_id', array('first_name', 'last_name'))\t\n\t\t\t->join(array('d' => PrecurioTableConstants::FORUM_TOPICS), 'd.id = a.topic_id', array())\n\t\t\t->join(array('c' => PrecurioTableConstants::FORUMS), 'c.id = d.forum_id', array())\n\t\t\t\t\t\t\n\t\t\t->where(\"a.active = 1 AND c.id = {$this->getId()}\")\n\t\t\t->order(\"a.id DESC\");\n\t\t\n\t\n\t\treturn $table->fetchRow($select);\n\t}",
"public function getComment() {\n return $this->comment;\n }",
"public function getLastPost()\n {\n $db = Db::connect();\n\n $sql = 'SELECT post.id, post.title, post.content, post.created_at, user.name as author FROM post INNER JOIN user ON post.author = user.id ORDER BY post.id DESC LIMIT 1';\n\n $query = $db->prepare($sql);\n\n $query->execute();\n\n $result = $query->fetch(PDO::FETCH_OBJ);\n\n $result->id = $result->id + 1;\n return $result;\n }",
"function get_comments(){\n\n\t}",
"public function getComments ()\n {\n $db = $this->dbConnect ();\n $req = $db->prepare ('SELECT id_comment,signalement,id_chapter,author,comment,DATE_FORMAT(dateComment, \\'%d/%m/%Y \\') AS dateComment FROM comments WHERE ? ORDER BY id_comment DESC ');\n $req->execute (array ( 1 ));\n return $req;\n }",
"public function getComment()\n\t{\n\t\treturn $this->comment;\n\t}",
"public static function recentProducts(){\n $recent = Product::find()\n ->where(['>=','actual_date',time()]) // show before actual_date\n ->orderBy(['created_at'=>SORT_DESC, 'updated_at'=>SORT_DESC])\n ->limit( self::SHOW_NUMBER_OF_FOOTER_PRODUCT)\n ->all();\n return $recent;\n }",
"public function getLastOrder();",
"public function getComments()\n\t\t{\n\t\t\tif ($this->comments === NULL)\n\t\t\t{\n\t\t\t\t$this->comments = new ECash_Application_Comments($this->db, $this->application_id, $this->getCompanyId());\n\t\t\t}\n\n\t\t\treturn $this->comments;\n\t\t}",
"function get_comments($articleId){\n global $db;\n $req = $db->query(\"SELECT * FROM comments WHERE articleId = '{$articleId}' ORDER BY postTime DESC LIMIT 8\");\n $results = [];\n while($rows = $req->fetchObject()) {\n $results[] = $rows;\n }\n return $results;\n}",
"function wp_cache_set_comments_last_changed()\n {\n }",
"function zanblog_latest_comments_list($list_number, $avatar_size, $cut_length) {\r\n global $wpdb;\r\n\r\n $sql = \"SELECT DISTINCT ID, post_title, post_password, comment_ID, comment_post_ID, comment_author, comment_date_gmt, comment_approved, comment_type,comment_author_url,comment_author_email, comment_content AS com_excerpt FROM $wpdb->comments LEFT OUTER JOIN $wpdb->posts ON ($wpdb->comments.comment_post_ID = $wpdb->posts.ID) WHERE comment_approved = '1' AND comment_type = '' AND comment_author != 'zwwooooo' AND post_password = '' ORDER BY comment_date_gmt DESC LIMIT $list_number\" ;\r\n \r\n $comments = $wpdb->get_results($sql);\r\n \r\n foreach ($comments as $comment) {\r\n $output .= \"\\n<li class=\\\"list-group-item\\\">\" . get_avatar(get_comment_author_email(), $avatar_size) . \"<span class=\\\"comment-log\\\"> <a href=\\\"\" . htmlspecialchars(get_comment_link( $comment->comment_ID )) . \"\\\" title=\\\"on \" .$comment->post_title . \"\\\">\" . zanblog_cut_string(strip_tags($comment->com_excerpt), $cut_length).\" </a></span></li>\";\r\n }\r\n\r\n $output = convert_smilies($output);\r\n\r\n return $output;\r\n}",
"public function getLastPosts() {\n $repository = $this->entityManager->getRepository(\"DUT\\\\Models\\\\Post\");\n return $repository->findBy([], [\"idPost\" => \"DESC\"], 10);\n }",
"public function getAllComment()\n {\n return Comment::find()->with('user')->orderBy(['created_date'=>SORT_DESC])->all();\n \n }",
"public function getFirstThreePostComments($post_id)\n {\n return $init_comments = Comment::find()->with('user')->with('post')->where(['post_id' => \"$post_id\",'status' => '1','parent_comment_id'=>'0'])->orderBy(['created_date'=>SORT_DESC])->limit(3)->all();\n \n }",
"public function getComment();",
"public function getComment();",
"public function getComment();",
"public function getComment();",
"public function getComment();",
"public function getComment();",
"public function comments() {\n\t\treturn $this->hasMany('NGiraud\\News\\Models\\Comment')->where('parent_id', 0)->orderBy('updated_at', 'desc');\n\t}",
"public function getCustomerOrderComment()\n\t{\n\t\treturn $this->getAurednikOrder()->getData('aurednik_order_comment');\n\t}",
"public function GetLastRecord(){$this->LastPosts();return $this->lastrecord;}",
"public function commentDesc(){\n \n return $this->hasMany('Comment','id_phone')->orderBy('created_at','DESC');\n \n }",
"public static function getLastDiscussions(){\n $sql = \"select * from discussions ORDER BY `id` DESC LIMIT 5\";\n return App::$db->query($sql);\n }",
"public function comment() {\n\t\treturn $this->comment;\n\t}",
"public function getAllComments()\n\t{\n\t\t$req=$this->_bdd->query('SELECT Comments.id, content_com AS content, DATE_FORMAT(date_com, \"%d/%m/%Y %Hh%imin%ss\") AS date, id_users, id_post, moderate, login FROM Comments INNER JOIN Users ON id_users=Users.id WHERE moderate >0 ORDER BY moderate DESC');\n\t\t\n\t\t$comments=[];\n\t\twhile($datas=$req->fetch(PDO::FETCH_ASSOC))\n\t\t{\n\t\t\t\n\t\t\t\t $comments[]=new Comments($datas);\n\t\t\t\t //return $comments;\n\t\t\t\n\t\t\t\n\t\t}\n\t\treturn $comments;\n\t}",
"public function getLast()\n {\n return (\n is_null($this->parent) ?\n null :\n $this->parent->content[count($this->parent->content) - 1]\n );\n }",
"public function get_comment()\n {\n return $this->get_default_property(self::PROPERTY_COMMENT);\n }",
"Public function getPurchaseComments() {\n return $this->purchaseComments;\n }",
"public function getComments()\n {\n $id = $this->getId();\n\n $stmt = \" SELECT c.*, c.id as id, u.username, u.profile_picture FROM _xyz_article_comment_pivot acp \" .\n \" LEFT JOIN _xyz_comment c ON c.id = acp.comment_id \" .\n \" LEFT JOIN _xyz_user u ON u.id = c.user_id \" .\n \" WHERE acp.article_id = $id \"\n ;\n\n $sql = DB::instance()->query( $stmt );\n\n $rows = $sql->fetchAll(\\PDO::FETCH_UNIQUE|\\PDO::FETCH_ASSOC );\n\n $result = CommentCollection::toTree( $rows );\n\n return $result;\n }",
"public function list_comments()\n {\n $url = $this->instanceUrl() . '/comments';\n list($response, $opts) = $this->_request('get', $url, null, null);\n\n // This is needed for nextPage() and previousPage()\n $response['url'] = $url;\n\n $obj = Util\\Util::convertToTelnyxObject($response, $opts);\n return $obj;\n }",
"public function getAllPostsWithNewComment($limit){\n $entityManager = $this->getEntityManager();\n $queryBuilder = $entityManager->createQueryBuilder();\n $queryBuilder\n ->select('bp')\n ->from('App:BlogPost', 'bp')\n ->join('bp.comments','c','WITH', 'bp.id=c.blogPost')\n ->orderBy('c.updatedAt','DESC')\n ->setMaxResults($limit);\n\n return $queryBuilder->getQuery()->getResult();\n }",
"public function getPublishComment() \n {\n $select = $this->select()\n ->from($this->_name)\n ->where(\"status =?\", 'publish')\n // ->where(\"blog_id =?\", $commentId)\n ->order(array(\"{$this->_primaryKey} DESC\"));\n\n return $this->returnResultAsAnArray($this->fetchAll($select));\n }",
"public function getLatestReply(): ?ContentCommentItem {\n\t\t$this->calculateThreadSummary();\n\t\treturn $this->latestReply;\n\t}",
"public function getCustomerComment() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->customerComment;\r\n\t}"
] | [
"0.7459056",
"0.6778314",
"0.6726884",
"0.6581781",
"0.63107115",
"0.6274467",
"0.6262245",
"0.6240596",
"0.62229055",
"0.62229055",
"0.62229055",
"0.62229055",
"0.61898863",
"0.61786586",
"0.61600304",
"0.61392236",
"0.61260897",
"0.6118771",
"0.60879153",
"0.6073995",
"0.60697293",
"0.605643",
"0.6047152",
"0.60217863",
"0.6017225",
"0.60111827",
"0.6011029",
"0.6003996",
"0.5996006",
"0.5987957",
"0.5975297",
"0.5969746",
"0.5957582",
"0.59530383",
"0.5950928",
"0.5950302",
"0.5943763",
"0.59313583",
"0.59171355",
"0.5907146",
"0.5905875",
"0.5904898",
"0.590274",
"0.589922",
"0.58932096",
"0.5888005",
"0.58807",
"0.5875016",
"0.5875016",
"0.5875016",
"0.5875016",
"0.5875016",
"0.5875016",
"0.5875016",
"0.5867576",
"0.5864589",
"0.5862168",
"0.585793",
"0.5849042",
"0.58471715",
"0.5835106",
"0.5834529",
"0.583066",
"0.5830549",
"0.5810829",
"0.58095235",
"0.5802366",
"0.57965523",
"0.5793926",
"0.57917833",
"0.5790874",
"0.5790644",
"0.5783932",
"0.5779792",
"0.5778335",
"0.5772334",
"0.57706225",
"0.57614297",
"0.5759432",
"0.5759432",
"0.5759432",
"0.5759432",
"0.5759432",
"0.5759432",
"0.57534516",
"0.57493657",
"0.5735352",
"0.5732173",
"0.5727714",
"0.57142425",
"0.57127416",
"0.57125384",
"0.57005817",
"0.56958306",
"0.5690887",
"0.5690693",
"0.56895095",
"0.56724423",
"0.5670701",
"0.56647086"
] | 0.61243623 | 17 |
Sets the controller name | public function setUp()
{
$this->controller_name = 'CreateController';
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function _setControllerName($name) {\n\t\t$this->controller = $name;\n\t}",
"public function setControllerName()\n {\n $this->name = \"tagui\";\n }",
"public function setControllerName($controllerName){\n\t\tself::$_controllerName[get_class($this)] = $controllerName;\n\t}",
"protected function name ($controllerName)\n {\n $this->controllerName = $controllerName;\n }",
"public function setControllerName($controllerName)\n {\n $this->_controllerName = $controllerName;\n }",
"public function setControllerName($controllerName) {\n $this->controllerName = $controllerName;\n }",
"public function setControllerName( $controllerName )\n {\n $controllerName = strtolower( $controllerName );\n\n $controllerName = str_replace(\"controller\", \"\", $controllerName);\n\n $controllerName = ucfirst($controllerName) . \"Controller\";\n\n $this->_controllerName = $controllerName;\n }",
"public function setActiveController($name)\n {\n $this->_active_controller = $name;\n }",
"public function CompleteControllerName ($controllerNamePascalCase);",
"public function setBaseControllerName(string $baseControllerName): void;",
"private function setController()\n\t\t{\n\t\t\t$this->_controller = $this->_separetor[1];\n\t\t}",
"public function getControllername()\r\n {\r\n return $this->controllername;\r\n }",
"public function getControllerName()\n\t{\n\t\t$explodedArray = explode('/', $_SERVER['REQUEST_URI']);\n\t\tif (array_key_exists(1, $explodedArray) && !empty($explodedArray[1]) && !strstr($explodedArray[1], '?')) {\n\t\t\t$this->controllerName = $explodedArray[1];\n\t\t}else\n\t\t\t$this->controllerName = 'main';\n\t}",
"public function getControllerName() {}",
"public function setControllername($controllername)\r\n {\r\n $this->controllername = $controllername;\r\n\r\n return $this;\r\n }",
"public function & SetDefaultControllerName ($defaultControllerName);",
"private function buildControllerNameWithNamespace() : void\n\t{\n\t\t$this->controllerName = '\\\\' . $this->namespace . '\\\\Controllers\\\\' . $this->request->getControllerName() . '\\\\Controller';\n\t}",
"protected function controller_class($name) {\n return str_replace('/', '_', Support_Inflector::camelize($name)) . 'Controller';\n }",
"public function getControllerName(){\n\t\t$className = get_class($this);\n\t\tif(isset(self::$_controllerName[$className])){\n\t\t\treturn self::$_controllerName[$className];\n\t\t} else {\n\t\t\treturn $className;\n\t\t}\n\t}",
"public function getControllerName() {\n\t\treturn $this->controller;\n\t}",
"public function getControllerName()\n {\n return Inflector::id2camel($this->getControllerId(),'-');\n }",
"public function getControllerName()\n {\n return $this->controller;\n }",
"public function getControllerName() {\n return $this->controllerName;\n }",
"private function getControllerName() {\n if(isset($_GET['c']) && !empty($_GET['c'])) {\n return $_GET['c'];\n }\n return Config::getDefaultController();\n }",
"public function getControllerName() {\n\n\t\treturn $this->_controller;\n\t}",
"public function getControllerName()\n {\n return $this->_controller;\n }",
"public function setDefaultControllerName($controllerName)\n {\n $this->defaultControllerName = $controllerName;\n }",
"private function setControllerChildName(): self\n {\n // Get the child controller classname\n $childClassName = get_class($this);\n\n $className = str_replace('Controller', '', $childClassName);\n $className = explode('\\\\', $className);\n $className = ltrim(preg_replace('/[A-Z]/', '_$0', end($className)), '_');\n \n $this->controllerChildName = $className;\n\n return $this;\n }",
"public function setControllerName($controller) {\n\t\tif (!is_string($controller))\n\t\t{\n\t\t\tthrow new Yaf_Request_Exception('Expect a string controller name');\n\t\t}\n\t\t$this->controller = $controller;\n\n\t\treturn $this;\n\t}",
"public function getControllerName()\n {\n return preg_replace(\"/(.*)[\\\\\\\\](.*)(Controller)/\", '$2', get_class($this));\n }",
"public function setAuthenticationControllerName($controllerName)\n {\n $this->authenticationControllerName = $controllerName;\n }",
"public static function getControllerName()\r\n\t{\r\n\t\treturn TRequest::getCmd('controller');\r\n\t}",
"public function getControllerName()\n {\n if (is_null($this->_controllerName)) {\n $this->getController();\n }\n return $this->_controllerName;\n }",
"public static function name()\n {\n $path = explode('\\\\', get_called_class());\n $controller_name = array_pop($path);\n return trim(str_replace(\"Controller\", \"\", $controller_name));\n }",
"public function SetController ($controller);",
"public static function setDefaultController($value) {\n self::$defaultController = (string) $value;\n }",
"public function setDefaultControllerName($controller)\n {\n $this->_defaultController = (string) $controller;\n return $this;\n }",
"public function getName()\n {\n return Craft::t('Controller Action');\n }",
"abstract protected function setMainActionName();",
"protected function controller_name($class) {\n if (substr($class, -10) == 'Controller')\n $class = substr($class, 0, -10);\n return Support_Inflector::underscore(str_replace('_', '/', $class));\n }",
"protected static function getControllerName()\n {\n //控制器cname对应的中文名称\n $cnames['UsersController'] = '用户管理';\n $cnames['CatesController'] = '栏目管理';\n $cnames['AdminuserController'] = '管理员管理';\n $cnames['RoleController'] = '岗位管理';\n $cnames['NodeController'] = '权限管理';\n $cnames['BannersController'] = '轮播图管理';\n $cnames['LinksController'] = '链接管理';\n $cnames['NewsController'] = '新闻管理';\n $cnames['AddressController'] = '收货地址管理';\n $cnames['BrandsController'] = '品牌管理';\n $cnames['SpecificController'] = '商品规格管理';\n $cnames['GoodsController'] = '商品管理';\n $cnames['BlogController'] = '商城头条管理';\n $cnames['RecommendController'] = '今日推荐管理';\n $cnames['SeckillController'] = '秒杀管理';\n\n return $cnames;\n }",
"public function getControllerObjectName() {}",
"public function getControllerObjectName() {}",
"public function getShortName() {\n return lcfirst(str_replace('Controller', '', get_class($this)));\n }",
"function getControllerObjectName() ;",
"public function setController($controller);",
"public function forceController($controller_name);",
"public static function getActionName()\r\n\t{\r\n\t\treturn TRequest::getCmd('controller');\r\n\t}",
"public function getBaseControllerName(): string;",
"public function getDefaultControllerName()\n {\n return $this->_defaultController;\n }",
"public static function qualifyController($name)\n {\n $shellClass = self::qualifyShell($name);\n\n if ((new $shellClass())->isInternal()) {\n return config('beluga.internal_controller_namespace').'\\\\'.class_basename($name).'Controller';\n }\n\n $class = config('beluga.controller_namespace').'\\\\'.$name.'Controller';\n\n if (class_exists($class)) {\n return $class;\n }\n\n return $name;\n }",
"public function getControllerFileName() // \"controller/ContactosController.php\"\n {\n\n return 'controller/' . $this->getControllerClassName().'.php';\n\n }",
"protected function getNameInput()\n {\n return trim($this->argument('name') . 'Controller');\n }",
"public function formatControllerName($unformatted)\n {\n\t return ucfirst($this->_formatName($unformatted)) . 'Controller';\n }",
"public function getControllerSimpleName()\n {\n return end(explode('\\\\', $this->controllerName));\n }",
"public static function controller($name)\n {\n $name = ucfirst(strtolower($name));\n \n $directory = 'controller';\n $filename = $name;\n $tracker = 'controller';\n $init = (boolean) $init;\n $namespace = 'controller';\n $class_name = $name;\n \n return self::_load($directory, $filename, $tracker, $init, $namespace, $class_name);\n }",
"function setName($value) {\n $this->name = $value;\n }",
"protected function getNameInput()\n {\n $this->model = trim($this->argument('name'));\n return $this->model . 'Controller';\n }",
"public static function getControllerName()\n {\n //get the name of the page from URL \n $page_name = request::get('page', 'home');\n //$page_uri = $_SERVER['REQUEST_URI'];//get the uri of the current page\n //$url_parts = explode('/',$page_uri);//break it into parts\n //$page_name = array_pop($url_parts);//gets the last part (contact from www.site.com/contact)\n //get the path to the proper controller file based on the page name\n\n //if(trim($page_name)=='') $page_name = 'home';//if none was specified, make ot home\n\n $controller_file = static::getControllerFile($page_name);\n //if such a controller exists\n if(file_exists($controller_file))\n {\n //return the name of the page \n return $page_name;\n }\n else\n {\n //otherwise throw a nice error!\n return 'error404';\n }\n }",
"function setName($value) {\n $this->name = $value;\n }",
"public function set_name($new_name) {\r\n\t\t$this->name = strtoupper($new_name);\r\n\t}",
"protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}",
"protected function setName($value)\n\t{\n\t\t$this->name = $value;\n\t}",
"public function formatControllerName($unformatted)\n {\n return ucfirst($this->_formatName($unformatted)) . 'Controller';\n }",
"protected function createController()\n {\n $name = str_replace(\"Service\",\"\",$this->argument('name'));\n\n $this->call('make:controller', [\n 'name' => \"{$name}Controller\"\n ]);\n }",
"public function setName($name)\n {\n $this->action['name'] = isset($this->action['name']) ? $this->action['name'] . '.' . $name : $name;\n return $this;\n }",
"public function getController()\n {\n return ucfirst($this->controller).'Controller';\n }",
"public function setController($controller)\n {\n $this->controller = $controller;\n }",
"public function getErrorControllerName()\n {/*{{{*/\n return $this->get(self::KEY_ERROR_CONTROLLER_NAME);\n }",
"private function _getControllerClassName($name)\n {\n $parts = explode('/', $name);\n $result = '';\n \n //Vendor part\n foreach ( explode('_', $parts[0]) as $key )\n {\n $result .= ucfirst($key) . '_';\n }\n //Package part\n foreach ( explode('_', $parts[1]) as $key )\n {\n $result .= ucfirst($key) . '_';\n }\n //Module part\n foreach ( explode('_', $parts[2]) as $key )\n {\n $result .= ucfirst($key) . '_';\n }\n \n $result .= 'Controller';\n \n if (empty($parts[3]))\n {\n $result .= '_Default';\n }\n else foreach ( explode('_', $parts[3]) as $key )\n {\n $result .= '_'.ucfirst($key);\n }\n return $result;\n }",
"public function & SetController (\\MvcCore\\IController $controller = NULL);",
"function set_name($name) {\n $this->name = $name;\n }",
"public function getControllerActionName() {}",
"public function setController($controller) {\n\t\t$this->controller = $controller;\n\t}",
"public function setController($controller)\n {\n if (is_string($controller)) {\n $this->controller = $controller;\n }\n }",
"public function getControllerTitle()\n {\n if(strpos($this->controller, '/') >= 0) {\n return preg_replace(\"/\\/[\\w-_]+$/\", '', $this->controller);\n }\n else {\n return '';\n }\n }",
"public function set_controller($value)\n\t{\n\t\tif(empty($this->controller))\n\t\t{\n\t\t\t$this->controller = 'Controller_' . $value;\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"function setName($name) {\n $this->name = $name;\n }",
"public function setRequestorName(?string $value): void {\n $this->getBackingStore()->set('requestorName', $value);\n }",
"protected function createController()\n {\n $controller = Str::studly(class_basename($this->getNameInput()));\n\n $modelName = $this->qualifyClass('Models/'.$this->getNameInput());\n\n $this->call('make:controller', array_filter([\n 'name' => \"{$controller}Controller\",\n '--model' => $modelName,\n '--api' => true,\n ]));\n }",
"protected function setName($name)\n\t{\n\t\t$this->pageName = $name;\n\t}",
"public function generateController () {\r\n $controllerParam = \\app\\lib\\router::getPath();\r\n $controllerName = \"app\\controller\\\\\" . end($controllerParam);\r\n $this->controller = new $controllerName;\r\n }",
"public function setName($name){\n\t\t$this->name = $name;\n\t}",
"public function setName($name){\n\t\t$this->name = $name;\n\t}",
"public function setName( string $name ) {\n\t\t$this->name = $name;\n\t}",
"public function setFormName($name){\n\t\t$this->_form_name = $name;\t\n\t}",
"function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }",
"function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }",
"function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }",
"function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }",
"function setName( $value )\r\n {\r\n $this->Name = $value;\r\n }",
"public function setName($name) {\n $this->name = $name;\n }",
"protected function createController()\n {\n $controller = Str::studly(class_basename($this->argument('name')));\n\n $modelName = $this->qualifyClass($this->getNameInput());\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n ]));\n\n $this->call(ControllerMakeCommand::class, array_filter([\n 'name' => \"Api/{$controller}/{$controller}Controller\",\n '--model' => $this->option('resource') || $this->option('api') ? $modelName : null,\n '--api' => true,\n ]));\n }",
"public function getControllerClassName() //\"HomeController\"\n {\n\n return Inflector::camel($this->getController()).'Controller'; //clase estatica NO se instancia \n }",
"public function setName($name){\n \n $this->name = $name;\n \n }",
"public function setName($value)\r\n {\r\n $this->name = $value;\r\n }",
"public function setName($value)\r\n {\r\n $this->name = $value;\r\n }",
"public function setName($name) {\r\n\t\t$this->name = $name;\r\n\t}",
"public function index()\n {\n $this->name = 'Ata';\n }",
"public function setController($controller)\n\t{\n\t\t$this->controller = $controller;\n\t}"
] | [
"0.872904",
"0.82186496",
"0.7967094",
"0.7944833",
"0.7718446",
"0.7657226",
"0.7350347",
"0.7203237",
"0.7180779",
"0.70916677",
"0.7054864",
"0.69847864",
"0.6919807",
"0.6910895",
"0.6869911",
"0.68601984",
"0.6825656",
"0.6821593",
"0.68152213",
"0.67737854",
"0.67593503",
"0.675135",
"0.67405456",
"0.66965234",
"0.669443",
"0.6690467",
"0.6676195",
"0.66626257",
"0.6644359",
"0.65926886",
"0.6587632",
"0.658102",
"0.65779775",
"0.6572603",
"0.6408714",
"0.6396072",
"0.6391836",
"0.6390139",
"0.6379188",
"0.6365514",
"0.63413036",
"0.6338822",
"0.6338822",
"0.6281464",
"0.6244872",
"0.6243693",
"0.6229681",
"0.62064284",
"0.6205784",
"0.6193398",
"0.6186369",
"0.6179581",
"0.6168006",
"0.6157874",
"0.61293256",
"0.61210716",
"0.60966206",
"0.6096495",
"0.6076465",
"0.6073297",
"0.60723853",
"0.6069722",
"0.6069722",
"0.6063776",
"0.60577774",
"0.6043882",
"0.60260457",
"0.6021415",
"0.60192466",
"0.60125697",
"0.60097605",
"0.6004633",
"0.6002886",
"0.5988489",
"0.5977749",
"0.59749347",
"0.59747183",
"0.59732443",
"0.5969273",
"0.59619296",
"0.59560955",
"0.59556246",
"0.5954964",
"0.5954964",
"0.5952635",
"0.5949876",
"0.5945773",
"0.5945773",
"0.5945773",
"0.5945773",
"0.5945773",
"0.594312",
"0.594247",
"0.59410185",
"0.5933834",
"0.5933164",
"0.5933164",
"0.5913921",
"0.591348",
"0.5911284"
] | 0.59576744 | 80 |
Input Contains an array of test files for creating. | public function input_actionAssetCreate()
{
return [
[
TestController::COMPARISON_DIRECTORY . '/contain_aspect_true.png',
[
'actions' => [
[
Action_Image::NAME_KEY => "original",
Action_Image::WIDTH_KEY => 1000,
Action_Image::HEIGHT_KEY => 1000,
Action_Image::KEEP_ASPECT_RATIO_KEY => true,
Action_Image::PADDING_KEY => false,
self::EXPECTED_WIDTH_KEY => 1000,
self::EXPECTED_HEIGHT_KEY => 562
],
[
Action_Image::NAME_KEY => "thumbnail",
Action_Image::WIDTH_KEY => 150,
Action_Image::HEIGHT_KEY => 150,
self::EXPECTED_WIDTH_KEY => 150,
self::EXPECTED_HEIGHT_KEY => 150
]
]
]
],
[
TestController::COMPARISON_DIRECTORY . '/contain_aspect_true.png',
[
'actions' => [
[
Action_Image::NAME_KEY => "original",
Action_Image::WIDTH_KEY => 2000,
Action_Image::HEIGHT_KEY => 2000,
Action_Image::KEEP_ASPECT_RATIO_KEY => true,
Action_Image::PADDING_KEY => false,
self::EXPECTED_WIDTH_KEY => 2000,
self::EXPECTED_HEIGHT_KEY => 1125
],
[
Action_Image::NAME_KEY => "thumbnail",
Action_Image::WIDTH_KEY => 370,
Action_Image::HEIGHT_KEY => 280,
self::EXPECTED_WIDTH_KEY => 370,
self::EXPECTED_HEIGHT_KEY => 280
],
[
Action_Image::NAME_KEY => "thumbnail",
Action_Image::WIDTH_KEY => 152,
Action_Image::HEIGHT_KEY => 154,
self::EXPECTED_WIDTH_KEY => 152,
self::EXPECTED_HEIGHT_KEY => 154
]
]
]
],
[
TestController::COMPARISON_DIRECTORY . '/eckroth-coffeehouse_conversation.txt',
[
'actions' => [
[
Action_Document::NAME_KEY => "coffeehouse_conversation"
]
]
]
]
];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function _TestMultipleFiles()\n {\n\n }",
"public function buildFilesForFilterTest()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(\n array(\n $this->buildFilesSet1()[0],\n array(\n 'internal' => array(\n 'example/image2',\n ),\n 'external' => array(\n 'example/image1',\n ),\n ),\n ),\n array(\n $this->buildFilesSet2()[0],\n array(\n 'internal' => array(\n 'example/image2',\n 'example/image3',\n 'example/image4',\n ),\n 'external' => array(\n 'example/image1',\n 'example/image5',\n ),\n ),\n ),\n );\n }",
"protected function getFilesInDirCreateTestDirectory() {}",
"protected function createTestFiles(array $files)\n {\n foreach ($files as $file) {\n $result = fopen(__DIR__ . '/../../../files/' . $file, 'c');\n }\n }",
"public function buildFilesSet1()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(array(\n 'example/image2' =>\n (new DebianImage())->from('example/image1'),\n 'example/image1' =>\n (new DebianImage())->from('ubuntu')\n ,\n ));\n }",
"protected function createTests()\n {\n $name = $this->getNameInput();\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Store{$name}Test\",\n '--model' => $name,\n '--type' => 'store',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Update{$name}Test\",\n '--model' => $name,\n '--type' => 'update',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/View{$name}Test\",\n '--model' => $name,\n '--type' => 'view',\n ]);\n\n $this->call('make:test', [\n 'name' => \"Api/{$name}/Delete{$name}Test\",\n '--model' => $name,\n '--type' => 'delete',\n ]);\n }",
"public function createInput()\n {\n $file = new File();\n $this->assertEquals('file', $file->getAttribute('type'));\n }",
"private function createTestFiles($num_files) {\n // Create dir if doesn't exist.\n if (!is_dir($this->testsDestDir)) {\n mkdir($this->testsDestDir);\n }\n $files = glob($this->testsDestDir . '/*');\n foreach ($files as $file) {\n if (is_file($file)) {\n unlink($file);\n }\n }\n $test_code = '<?php\necho \"... \" . __FILE__;\nif ($memory_test) {\n echo \"-M\";\n for($i = 0; $i < 100000; $i++){\n $j[] = $i;\n }\n}\n';\n\n for ($testfile_index = 1; $testfile_index <= $num_files; $testfile_index++) {\n file_put_contents($this->testsDestDir . \"/testfile{$testfile_index}.php\", $test_code);\n }\n }",
"private function getTestFileList() {\n\t\treturn [\n\t\t\tself::makeFileInfo('a.txt', 4, 2.3 * \\pow(10, 9)),\n\t\t\tself::makeFileInfo('q.txt', 5, 150),\n\t\t\tself::makeFileInfo('subdir2', 87, 128, true),\n\t\t\tself::makeFileInfo('b.txt', 2.2 * \\pow(10, 9), 800),\n\t\t\tself::makeFileInfo('o.txt', 12, 100),\n\t\t\tself::makeFileInfo('subdir', 88, 125, true),\n\t\t];\n\t}",
"public function buildFileSets()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(\n $this->buildFilesSet1(), // data set for test run #1\n $this->buildFilesSet2(), // data set for test run #2\n );\n }",
"protected function getTestcaseFilenames() {\n\t\t$packageManager = $this->objectManager->getObject('F3\\FLOW3\\Package\\PackageManagerInterface');\n\t\t$packages = array();\n\t\t$testcaseFilenames = array(self::TYPE_UNIT => array(), self::TYPE_INTEGRATION => array(), self::TYPE_SYSTEM => array());\n\n\t\t$testcaseClassNameMatches = array();\n\t\tpreg_match('/F3\\\\\\\\([^\\\\\\\\]*)\\\\\\\\(.*)/', $this->testcaseClassName, $testcaseClassNameMatches);\n\t\tif (count($testcaseClassNameMatches) === 3) {\n\t\t\t$this->testcaseClassName = $testcaseClassNameMatches[2];\n\t\t\tif ($testcaseClassNameMatches[1] === '.*') {\n\t\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t} elseif ($packageManager->isPackageActive($testcaseClassNameMatches[1])) {\n\t\t\t\t$packages = array($packageManager->getPackage($testcaseClassNameMatches[1]));\n\t\t\t}\n\t\t} elseif ($this->packageKey == '*') {\n\t\t\t$packages = $packageManager->getActivePackages();\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t} elseif ($packageManager->isPackageActive($this->packageKey)) {\n\t\t\t$packages = array($packageManager->getPackage($this->packageKey));\n\t\t\t$this->testcaseClassName = '.*Test';\n\t\t}\n\n\t\tshuffle($packages);\n\t\tforeach ($packages as $package) {\n\t\t\tif (in_array($package->getPackageKey(), $this->testBlacklist)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tforeach (array(\n\t\t\t\t\tself::TYPE_UNIT => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_UNIT,\n\t\t\t\t\tself::TYPE_INTEGRATION => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_INTEGRATION,\n\t\t\t\t\tself::TYPE_SYSTEM => \\F3\\FLOW3\\Package\\Package::DIRECTORY_TESTS_SYSTEM,\n\t\t\t\t) as $type => $directory) {\n\t\t\t\t$testPath = $package->getPackagePath() . $directory;\n\t\t\t\tif (is_dir($testPath)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$testsDirectoryIterator = new \\RecursiveDirectoryIterator($testPath);\n\n\t\t\t\t\t\t$testcaseFilenames[$type] = $this->readDirectories($testcaseFilenames[$type], $testsDirectoryIterator);\n\t\t\t\t\t\t\\PHPUnit_Util_Filter::removeDirectoryFromFilter($package->getPackagePath() . 'Classes');\n\t\t\t\t\t} catch(\\Exception $exception) {\n\t\t\t\t\t\tthrow new \\RuntimeException($exception->getMessage(), 1170236926);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tshuffle($testcaseFilenames[$type]);\n\t\t\t}\n\t\t}\n\t\treturn $testcaseFilenames;\n\t}",
"public function buildFilesSet2()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(array(\n 'example/image4' =>\n (new DebianImage())->from('example/image2'),\n 'example/image2' =>\n (new DebianImage())->from('example/image1'),\n 'example/image1' =>\n (new DebianImage())->from('ubuntu'),\n 'example/image3' =>\n (new DebianImage())->from('example/image2'),\n 'example/image5' =>\n (new DebianImage())->from('debian'),\n ));\n }",
"public function testConstructSingleValueWithFilesArray()\n {\n $filter = new FileRename($this->newFile);\n\n $this->assertEquals(\n [0 => [\n 'source' => '*',\n 'target' => $this->newFile,\n 'overwrite' => false,\n 'randomize' => false,\n ]],\n $filter->getFile()\n );\n $this->assertEquals(\n ['tmp_name' => $this->newFile],\n $filter(['tmp_name' => $this->oldFile])\n );\n $this->assertEquals('falsefile', $filter('falsefile'));\n }",
"private function createFiles($request)\n {\n $this->createFilesFromArray($request, $request->getParams);\n $this->createFilesFromArray($request, $request->postParams);\n }",
"public function testFiles() {\n\t\t$repoSrc = ROOT . DS . 'src';\n\n\t\t$this->shell->args = [$repoSrc];\n\n\t\t$files = $this->shell->Stage->files();\n\t\tforeach ($files as &$file) {\n\t\t\t$file = str_replace(DS, '/', substr($file, strlen($repoSrc) + 1));\n\t\t}\n\n\t\t$expected = [\n\t\t\t'Shell/UpgradeShell.php',\n\t\t\t'Shell/Task/BaseTask.php',\n\t\t\t'Shell/Task/RenameCollectionsTask.php',\n\t\t\t'Shell/Task/NamespacesTask.php',\n\t\t\t'Shell/Task/StageTask.php',\n\t\t\t'Shell/Task/TestsTask.php',\n\t\t\t'Shell/Task/AppUsesTask.php',\n\t\t\t'Shell/Task/FixturesTask.php',\n\t\t\t'Shell/Task/RenameClassesTask.php',\n\t\t\t'Shell/Task/MethodNamesTask.php',\n\t\t\t'Shell/Task/MethodSignaturesTask.php',\n\t\t\t'Shell/Task/HelperTrait.php',\n\t\t\t'Shell/Task/ChangeTrait.php',\n\t\t\t'Shell/Task/LocationsTask.php',\n\t\t\t'Shell/Task/I18nTask.php',\n\t\t\t'Shell/Task/SkeletonTask.php',\n\t\t\t'Shell/Task/TemplatesTask.php',\n\t\t\t'Shell/Task/ModelToTableTask.php',\n\t\t\t'Shell/Task/CleanupTask.php',\n\t\t\t'Shell/Task/PrefixedTemplatesTask.php',\n\t\t\t'Shell/Task/CustomTask.php',\n\t\t\t'Shell/Task/LocaleTask.php',\n\t\t\t'Shell/Task/UrlTask.php',\n\t\t\t'Shell/Task/TableToEntityTask.php',\n\t\t\t'Shell/Task/FixtureLoadingTask.php',\n\t\t\t'Shell/Task/FixtureCasingTask.php',\n\t\t];\n\n\t\tforeach ($expected as $file) {\n\t\t\t$this->assertTrue(in_array($file, $files, true), 'The files to process should be all files in the src folder - ' . $file);\n\t\t}\n\t}",
"public function test_scenario1() {\n\n $data = array(array(\"filename\"=> \"data/iris.csv\",\n\t \"local_file\" => \"tmp/if_then_rules_iris.txt\",\n\t\t\t \"expected_file\" => \"data/model/if_then_rules_iris.txt\"),\n array(\"filename\"=> \"data/iris_sp_chars.csv\",\n \"local_file\" => \"tmp/iris_sp_chars.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_sp_chars.txt\"),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam.txt\"),\n array(\"filename\"=> \"data/grades.csv\",\n \"local_file\" => \"tmp/if_then_rules_grades.txt\",\n \"expected_file\" => \"data/model/if_then_rules_grades.txt\"),\n array(\"filename\"=> \"data/diabetes.csv\",\n \"local_file\" => \"tmp/if_then_rules_diabetes.txt\",\n \"expected_file\" => \"data/model/if_then_rules_diabetes.txt\"),\n array(\"filename\"=> \"data/iris_missing2.csv\",\n \"local_file\" => \"tmp/if_then_rules_iris_missing2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_iris_missing2.txt\"),\n array(\"filename\"=> \"data/tiny_kdd.csv\",\n \"local_file\" => \"tmp/if_then_rules_tiny_kdd.txt\",\n \"expected_file\" => \"data/model/if_then_rules_tiny_kdd.txt\")\n\t );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\t print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n\t $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n\t $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the local source is ready\\n\";\n\t $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n\t $dataset = self::$api->create_dataset($source->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n\t $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n\t $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n\t $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n\t $model = self::$api->create_model($dataset->resource);\n\t $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wail until the model is ready\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n\t $local_model = new Model($model->resource, self::$api);\n print \"I translate the tree into IF_THEN rules\\n\";\n\n\t $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n\t print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n\n }",
"protected function createTests() :void\n {\n $directory = app_path('tests');\n\n Storage::makeDirectory($directory, true);\n PhpUnit::create('phpunit', app_path());\n }",
"protected function getTestList() \n {\n $invalid = 'invalid';\n $description = 'text';\n $empty_description = '';\n $testlist = [];\n $testlist[] = new ArgumentTestConfig($this->empty_argument, $empty_description,CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description, \\InvalidArgumentException::class );\n \n $testlist[] = new ArgumentTestConfig($this->argument_name, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_optional, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_required, $this->argument_name, CreateModuleCommandArgument::REQUIRED, CreateModuleCommandArgument::STRING, $empty_description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_invalid, $this->argument_name, $invalid, CreateModuleCommandArgument::STRING, $empty_description, \\InvalidArgumentException::class);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_empty, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description);\n \n $testlist[] = new ArgumentTestConfig($this->argument_empty_need_optional, $empty_description, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description, \\InvalidArgumentException::class );\n $testlist[] = new ArgumentTestConfig($this->argument_empty_need_required, $empty_description, CreateModuleCommandArgument::REQUIRED, CreateModuleCommandArgument::STRING, $empty_description, \\InvalidArgumentException::class );\n $testlist[] = new ArgumentTestConfig($this->argument_empty_need_invalid, $empty_description, $invalid, CreateModuleCommandArgument::STRING, $empty_description, \\InvalidArgumentException::class );\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_optional_type_string, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_required_type_string, $this->argument_name, CreateModuleCommandArgument::REQUIRED, CreateModuleCommandArgument::STRING, $empty_description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_invalid_type_string, $this->argument_name, $invalid, CreateModuleCommandArgument::STRING, $empty_description, \\InvalidArgumentException::class);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_empty_type_string, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_empty_type_empty, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_optional_type_array, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::ARRAY, $empty_description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_required_type_array, $this->argument_name, CreateModuleCommandArgument::REQUIRED, CreateModuleCommandArgument::ARRAY, $empty_description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_invalid_type_array, $this->argument_name, $invalid, CreateModuleCommandArgument::ARRAY, $empty_description, \\InvalidArgumentException::class);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_optional_type_invalid, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, $invalid, $empty_description, \\InvalidArgumentException::class);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_required_type_invalid, $this->argument_name, CreateModuleCommandArgument::REQUIRED, $invalid, $empty_description, \\InvalidArgumentException::class);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_optional_type_string_description, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_required_type_string_description, $this->argument_name, CreateModuleCommandArgument::REQUIRED, CreateModuleCommandArgument::STRING, $description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_invalid_type_string_description, $this->argument_name, $invalid, CreateModuleCommandArgument::STRING, $description, \\InvalidArgumentException::class);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_optional_type_array_description, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::ARRAY, $description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_required_type_array_description, $this->argument_name, CreateModuleCommandArgument::REQUIRED, CreateModuleCommandArgument::ARRAY, $description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_invalid_type_array_description, $this->argument_name, $invalid, CreateModuleCommandArgument::ARRAY, $description, \\InvalidArgumentException::class);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_empty_type_empty_description, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $description);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_empty_type_empty_description_empty, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, CreateModuleCommandArgument::STRING, $empty_description);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_optional_type_invalid_description, $this->argument_name, CreateModuleCommandArgument::OPTIONAL, $invalid, $description, \\InvalidArgumentException::class);\n $testlist[] = new ArgumentTestConfig($this->argument_name_need_required_type_invalid_description, $this->argument_name, CreateModuleCommandArgument::REQUIRED, $invalid, $description, \\InvalidArgumentException::class);\n \n $testlist[] = new ArgumentTestConfig($this->argument_name_need_invalid_type_invalid_description, $this->argument_name, $invalid, $invalid, $description, \\InvalidArgumentException::class);\n \n return $testlist;\n }",
"public function buildFilesSet3()\n {\n // are used as the test method arguments. If we want to use an array\n // as a test data set, we need to return a nested array\n return array(array(\n 'example/image4' =>\n (new DebianImage())->from('example/image2'),\n 'example/image2' =>\n (new DebianImage())->from('example/image1'),\n 'example/image1' =>\n (new DebianImage())->from('ubuntu'),\n 'example/image3' =>\n (new DebianImage())->from('example/image2'),\n 'example/image5' =>\n (new DebianImage())->from('debian'),\n ));\n }",
"public function providerTestCreateRequest() {\n $tests = [];\n $tests[] = ['example.com', [], 'example.com'];\n $tests[] = ['localhost', [], 'localhost'];\n $tests[] = ['localhost', ['HTTP_HOST' => 'localhost'], 'localhost'];\n $tests[] = ['example.com', ['HTTP_HOST' => 'localhost'], 'example.com'];\n return $tests;\n }",
"public function create(array $input)\n {\n }",
"public function testConstructSingleArray()\n {\n $filter = new FileRename([\n 'source' => $this->oldFile,\n 'target' => $this->newFile]);\n\n $this->assertEquals(\n [0 => [\n 'source' => $this->oldFile,\n 'target' => $this->newFile,\n 'overwrite' => false,\n 'randomize' => false,\n ]],\n $filter->getFile()\n );\n $this->assertEquals($this->newFile, $filter($this->oldFile));\n $this->assertEquals('falsefile', $filter('falsefile'));\n }",
"function createSomeFiles(array $files = [])\n {\n $files = $files ?: [\n TMP . 'exampleDir' . DS . 'file1',\n TMP . 'exampleDir' . DS . 'subDir1' . DS . 'file2',\n TMP . 'exampleDir' . DS . 'subDir1' . DS . 'file3',\n TMP . 'exampleDir' . DS . 'subDir2' . DS . 'file4',\n TMP . 'exampleDir' . DS . 'subDir2' . DS . 'file5',\n TMP . 'exampleDir' . DS . 'subDir2' . DS . 'subDir3' . DS . 'file6',\n TMP . 'exampleDir' . DS . '.hiddenFile',\n TMP . 'exampleDir' . DS . '.hiddenDir' . DS . 'file7',\n ];\n\n //Creates directories and files\n array_walk($files, 'create_file');\n @mkdir(TMP . 'exampleDir' . DS . 'emptyDir', 0777, true);\n\n return $files;\n }",
"public function find_tests()\n {\n $command = \"find \" . $this->directory_path;\n if (!$this->recursive) {\n $command .= \" -maxdepth 1\";\n }\n $src_files = preg_split('/\\s+/', shell_exec($command . \" | grep .src$\"), -1, PREG_SPLIT_NO_EMPTY);\n $out_files = preg_split('/\\s+/', shell_exec($command . \" | grep .out$\"), -1, PREG_SPLIT_NO_EMPTY);\n $rc_files = preg_split('/\\s+/', shell_exec($command . \" | grep .rc$\"), -1, PREG_SPLIT_NO_EMPTY);\n $in_files = preg_split('/\\s+/', shell_exec($command . \" | grep .in$\"), -1, PREG_SPLIT_NO_EMPTY);\n\n foreach ($src_files as $src) {\n $test = new TestRepresentation();\n $base_name = preg_replace(\"/.src$/\", \"\", $src, 1);\n if (!in_array($base_name . \".out\", $out_files)) {\n touch($base_name . \".out\");\n }\n if (!in_array($base_name . \".rc\", $rc_files)) {\n touch($base_name . \".rc\");\n $rc_file = fopen($base_name . \".rc\", \"w\");\n fprintf($rc_file, \"0\");\n }\n if (!in_array($base_name . \".in\", $in_files)) {\n touch($base_name . \".in\");\n }\n $test->set_name($base_name);\n $this->add_test($test);\n }\n }",
"public function testConstructSingleArrayDirectory()\n {\n $filter = new FileRename([\n 'source' => $this->oldFile,\n 'target' => $this->newDir]);\n\n $this->assertEquals(\n [0 => [\n 'source' => $this->oldFile,\n 'target' => $this->newDir,\n 'overwrite' => false,\n 'randomize' => false,\n ]],\n $filter->getFile()\n );\n $this->assertEquals($this->newDirFile, $filter($this->oldFile));\n $this->assertEquals('falsefile', $filter('falsefile'));\n }",
"public function test_scenario6() {\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/summarize_iris.txt', 'local_file' => 'tmp/summarize_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/summarize_iris_sp_chars.txt', 'local_file' => 'tmp/summarize_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/summarize_spam.txt', 'local_file' => 'tmp/summarize_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/summarize_grades.txt', 'local_file' => 'tmp/summarize_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/summarize_diabetes.txt', 'local_file' => 'tmp/summarize_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/summarize_iris_missing2.txt', 'local_file' => 'tmp/summarize_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/summarize_tiny_kdd.txt', 'local_file' => 'tmp/summarize_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and check its summary information:\\n\";\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\t $local_model->summarize(fopen($item[\"local_file\"],'w'));\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\t $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n\n }",
"public function provideFakeFiles()\n {\n return [\n [__DIR__ . DIRECTORY_SEPARATOR . 'foo.bar'],\n ['dummy.file']\n ];\n }",
"private function createFilesFromArray($request, $array)\n {\n foreach ($array as $key => $value) {\n if ($file = $this->client->getResourceHandler($value)) {\n $request->files[] = new FileReference([\n 'field' => $key,\n 'file' => $file,\n ]);\n } elseif (is_array($value)) {\n foreach ($value as $id => $_value) {\n if ($file = $this->client->getResourceHandler($_value)) {\n $request->files[] = new FileReference([\n 'field' => $key,\n 'id' => $id,\n 'file' => $file,\n ]);\n }\n }\n }\n }\n }",
"public function testFindFiles()\n {\n\n }",
"public function getFilenames(): array\n {\n return array_values(array_map(static fn (TestCaseFactory $factory): string => $factory->filename, $this->testCases));\n }",
"public function testAddFile()\n {\n\n }",
"public static function create($formInputs,$fileInputs){\n $formArray = []; \n // var_dump($formInputs);\n // die;\n foreach($formInputs as $key => $value) {\n $formArray[$key] = $value;\n if($value==Null){\n $formArray[$key]=Null;\n }\n }\n foreach($fileInputs as $key => $value) {\n \n if($value[\"name\"] != \"\"){\n $formArray[$key] = wp_upload_dir()[\"subdir\"] .\"/\". $value[\"name\"];\n }\n else{\n $formArray[$key] = Null;\n }\n\n }\n \n\n\n DataWebGl::create($formArray);\n }",
"function create($p_filelist)\n {\n }",
"public function create(array $input);",
"public function directoryWithFilesDataProvider(): array\n {\n $multiMap = ['OtherFile' => 'other_file.json', 'JSONFile' => 'j_s_o_n_file.json'];\n $multiDirMap = ['FileFirst' => 'first/file_first.exe', 'FileSecond' => 'first/file_second.exe'];\n $multiDirMap['FileThird'] = 'second/file_third.exe';\n $multiDirMap['SomeExt'] = 'some_ext.exe';\n $singleLoadData = ['OneFile' => ['param1' => 'some_value']];\n $multiLoadData = ['OtherFile' => ['param2' => 'other_value'], 'JSONFile' => ['param3' => 'last_value']];\n $multiDirLoadData = ['FileFirst' => ['param4' => 'no_value'], 'FileSecond' => ['param5' => 'ext_value']];\n $multiDirLoadData['FileThird'] = ['param6' => 'this_value'];\n $multiDirLoadData['SomeExt'] = ['param7' => 'that_value'];\n\n return [\n 'single file' => ['single', '/^.*\\..*$/', ['OneFile' => 'one_file.json'], $singleLoadData],\n 'multiple files with mask' => ['multi', '/^.*\\.json$/', $multiMap, $multiLoadData],\n 'multiple directories' => ['container', '/^.*\\.exe$/', $multiDirMap, $multiDirLoadData],\n ];\n }",
"public function provideTestLoadsOfFiles()\n {\n AutoloaderTestHelper::deleteDirectory(\"testLoadsOfFiles\");\n $alTestHelper = new AutoloaderTestHelper($this);\n\n for ($i = 0; $i < 150; $i++) {\n $alTestHelper->makeClass(\"anyClass\", \"testLoadsOfFiles/flat\");\n\n }\n\n for ($i = 0; $i < 150; $i++) {\n $alTestHelper->makeClass(\n \"anyClass\", \"testLoadsOfFiles\" . str_repeat('/sub', $i)\n );\n\n }\n\n return array(\n array(\n new AutoloaderFileIterator_PriorityList(),\n \"testLoadsOfFiles/flat\"\n ),\n array(\n new AutoloaderFileIterator_Simple(),\n \"testLoadsOfFiles/flat\"\n ),\n array(\n new AutoloaderFileIterator_SimpleCached(),\n \"testLoadsOfFiles/flat\"\n ),\n array(\n new AutoloaderFileIterator_PriorityList(),\n \"testLoadsOfFiles/sub\"\n ),\n array(\n new AutoloaderFileIterator_Simple(),\n \"testLoadsOfFiles/sub\"\n ),\n array(\n new AutoloaderFileIterator_SimpleCached(),\n \"testLoadsOfFiles/sub\"\n )\n );\n }",
"public function makeFiles($input, array $attributes = array(), array $config = array()) {\n\t\tif (!isset(self::$files)) {\n\t\t\tself::$files = array();\n\t\t}\n\t\tif (!array_key_exists($input, self::$files)) {\n\t\t\tself::$attributes = $attributes;\n\t\t\tself::$config = $config;\n\t\t\tself::$files[$input] = self::entityFactory($input);\n\t\t}\n\n\t\treturn self::$files[$input];\n\t}",
"public abstract function getNewFiles();",
"public function testFileRefs() {}",
"public function setUp(){\n $this->testCases = Files::listFilesInFolder(__DIR__.\"/../../examples/sections/components\",\"ExamplePanel.php\");\n }",
"public function testGetPhpFiles()\n {\n // Files arrays\n $files = [];\n $phpFiles = [];\n\n // For every specified folder\n foreach ($this->phpFolders as $folder) {\n\n // Get files from directory\n $files = array_merge($files, FileHelper::directoryFiles($folder));\n }\n\n // Select php only files\n foreach ($files as $file) {\n if (substr($file, -4) === '.php') {\n $phpFiles[] = $file;\n }\n }\n\n // Check that we have at least 10 php files across all collected\n $count = count($phpFiles);\n $this->assertTrue($count > 10, json_encode([\n 'count' => $count,\n 'expected' => 'total number of php files must exceed 10 files',\n ], JSON_UNESCAPED_SLASHES));\n\n // Return end point data\n return $phpFiles;\n }",
"public function testAddItemSubCategoryFile()\n {\n }",
"public function get_test_file_uploads()\n {\n }",
"public function generateTestCases(): iterable\n {\n yield 'When arrays are same without fuzzy' => [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'value'],\n 'exception' => null\n ];\n\n yield 'Test array same with fuzzy' =>\n [\n 'actual' => ['key' => 'value', 'date' => '2010-10-10T01:03:06Z'],\n 'expected' => ['key' => 'value', 'date' => ':fuzzy:'],\n 'exception' => null\n ];\n\n yield 'Test array same fails' =>\n [\n 'actual' => ['key' => 'value'],\n 'expected' => ['key' => 'missing'],\n 'exception' => new AssertionFailedError(\n 'Failed asserting that two arrays are identical.'\n ),\n 'comparisionCreated' => true\n ];\n\n yield 'Test when actual is not an array' =>\n [\n 'actual' => '',\n 'expected' => ['key' => 'value'],\n 'exception' => new AssertionFailedError('Failed asserting that string is an array.'),\n 'comparisionCreated' => false\n ];\n }",
"public function test()\n {\n Artisan::call('migrate:refresh');\n Artisan::call('db:seed');\n \n $CSVIC = new CSVImportController();\n\n $CSVFolder = base_path() . '/tests/FilesForTesting/S16/';\n /* Here are we testing Succesful uploading of professors */\n $_FILES = array('ProfessorsCSV' => [\n 'name' => 'Professors.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'professors.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals(' All 4 Professors added successfully.', $CSVIC->csvUploadProfessorsToDB());\n\n\n /* ProfessorsLengthError */\n $_FILES = array('ProfessorsCSV' => [\n 'name' => 'Professors.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'professorsLengthError.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('email is larger than the acceptable size. (wow '\n . 'that description is way to long and will not be able to be '\n . 'inserted into the database and will give an error when you '\n . 'try to upload this file its not good good thing we build the '\n . 'site to be able to stop this from braking the website! At '\n . 'row 3)', $CSVIC->csvUploadProfessorsToDB());\n\n /* ProfessorsMissingHeader */\n $_FILES = array('ProfessorsCSV' => [\n 'name' => 'ProfessorsMissingHeader.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'professorsMissingHeader.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('Header userID, not present in the Comma-Seperated'\n . ' values file(may be spelt wrong).', $CSVIC->csvUploadProfessorsToDB());\n\n /* ProfessorsMissing any Entries */\n $_FILES = array('ProfessorsCSV' => [\n 'name' => 'ProfessorsNoEntires.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'ProfessorsNoEntires.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('There are no Entries in the CSV File', $CSVIC->csvUploadProfessorsToDB());\n\n /* ProfessorNotCSV File test */\n $_FILES = array('ProfessorsCSV' => [\n 'name' => 'ProfessorsNotCSVFile.docx',\n 'type' => 'application/vnd.openxmlformats-officedocument.'\n . 'wordprocessingml.document',\n 'tmp_name' => $CSVFolder . 'ProfessorsNotCSVFile.docx',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('ProfessorsNotCSVFile.docx is not a Comma-'\n . 'Seperated values file.', $CSVIC->csvUploadProfessorsToDB());\n\n //======================================================================\n // Students\n //======================================================================\n\n $_POST['Section'] = 'J03';\n\n $_POST['Classes'] = 'CDBM190';\n\n $sectionID = $CSVIC->createSectionForStudents();\n\n /* Testing Students Successful Upload */\n $_FILES = array('StudentsCSV' => [\n 'name' => 'Students.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'students.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals(' All 9 Students added successfully to the Database.<br/> All 9 Students added successfully to CDBM190 sec J03.', \n $CSVIC->csvUploadStudentToDB($sectionID));\n\n\n\n\n /* Testing Students Length Error */\n $_FILES = array('StudentsCSV' => [\n 'name' => 'StudentsLenghtError.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'StudentsLenghtError.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('email is larger than the acceptable size. '\n . '(wow that description is way to long and will not be '\n . 'able to be inserted into the database and will give an '\n . 'error when you try to upload this file its not good good '\n . 'thing we build the site to be able to stop this from braking '\n . 'the website! At row 3)', $CSVIC->csvUploadStudentToDB($sectionID));\n\n /* Testing Students Missing Header */\n $_FILES = array('StudentsCSV' => [\n 'name' => 'StudentsMissingHeader.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'StudentsMissingHeader.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('Header userID, not present in the Comma-Seperated'\n . ' values file(may be spelt wrong).', $CSVIC->csvUploadStudentToDB($sectionID));\n\n /* Testing Students Missing Required Rows */\n $_FILES = array('StudentsCSV' => [\n 'name' => 'StudentsMissingRequiredRows.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'StudentsMissingRequiredRows.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('userID is required but is empty at row 2', $CSVIC->csvUploadStudentToDB($sectionID));\n\n /* Students Not CSV File */\n $_FILES = array('StudentsCSV' => [\n 'name' => 'StudentsNotCSVFile.docx',\n 'type' => 'application/vnd.openxmlformats-officedocument.'\n . 'wordprocessingml.document',\n 'tmp_name' => $CSVFolder . 'StudentsNotCSVFile.docx',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('StudentsNotCSVFile.docx is not a Comma-Seperated '\n . 'values file.', $CSVIC->csvUploadStudentToDB($sectionID));\n\n\n /* Testing Students Missing Required Rows */\n $_FILES = array('StudentsCSV' => [\n 'name' => 'StudentsNoEntries.csv',\n 'type' => 'application/vnd.ms-excel',\n 'tmp_name' => $CSVFolder . 'StudentsNoEntries.csv',\n 'error' => 0,\n 'size' => 173\n ]);\n\n $this->assertEquals('There are no Entries in the CSV File', $CSVIC->csvUploadStudentToDB($sectionID));\n }",
"public function test_listUnsupportedFileTypes() {\n\n }",
"protected function createFeatureTest()\n {\n $model_name = Str::studly(class_basename($this->argument('name')));\n $name = Str::contains($model_name, ['\\\\']) ? Str::afterLast($model_name, '\\\\') : $model_name;\n\n $this->call('make:test', [\n 'name' => \"{$model_name}Test\",\n ]);\n\n $path = base_path() . \"/tests/Feature/{$model_name}Test.php\";\n $this->cleanupDummy($path, $name);\n }",
"function _generateFilesList() {\n return array();\n }",
"public static function passing_files() : array {\n\t\t$directory = dirname( __DIR__ ) . '/fixtures/ruleset/Lipe/pass';\n\n\t\treturn static::get_files_from_dir( $directory );\n\t}",
"public function run()\n {\n $count = CountString::$countTests;\n $ar = $this->getAr();\n for ($i = 1, $ii = 1; $i <= $count; $i++, $ii++) {\n if ($ii > 3) {\n $ii = 1;\n }\n\n if ((Test::where('id', '=', $i)->first()) === null) {\n $Test = Test::create([\n 'user_id' => '1',\n 'grade_id' => $ii ,\n 'subject_id' => $ii,\n 'page_id' => $ii,\n 'name' => ($i) . '-й тест',\n 'slug' => str_slug(($i) . '-й тест', '_', 'en'),\n\n\n 'text_input' => $ar['input'][$ii-1],\n 'text_html' => $ar['html'][$ii-1],\n\n 'difficulty' => 0,\n 'difficulty_2' => 0,\n 'difficulty_3' => 0,\n\n\n 'comment' => 'comment - ' . $i,\n 'description' => 'description - ' . $i,\n\n\n 'active' => 1,\n 'published_at' => now()\n\n ]);\n\n $Test->save();\n }\n }\n }",
"public function testCreate(): void\n {\n /** @var Filesystem $files */\n $files = $this->app->make('files');\n $path = $this->getTemporaryDirectoryPath() . DIRECTORY_SEPARATOR . 'test_migrations_creating';\n\n // Cleanup at first\n if ($files->isDirectory($path)) {\n $files->deleteDirectory($path);\n }\n\n $this->assertDirectoryDoesNotExist($path);\n\n $migration_files = new Files($files, $path);\n\n $this->assertFileDoesNotExist(\n $expected_path = $path . DIRECTORY_SEPARATOR . $migration_files->generateFileName($name = 'test_migration')\n );\n $result = $migration_files->create($name);\n $this->assertEquals($expected_path, $result);\n $this->assertFileExists($result);\n $this->assertStringEqualsFile($result, '');\n\n $result = $migration_files->create('some 2', null, null, $content = 'foo baz');\n $this->assertStringEqualsFile($result, $content);\n\n $result = $migration_files->create('some 2', null, $connection = 'foo_connection', $content = 'bar');\n $this->assertDirectoryExists($path . DIRECTORY_SEPARATOR . $connection);\n $this->assertEquals([$connection], $migration_files->connections());\n $this->assertStringEqualsFile($result, $content);\n\n $files->deleteDirectory($path);\n }",
"public function testGetReplenishmentFiles()\n {\n }",
"public function testGetFiles() : void {\n $expected = 0;\n $this->assertEquals($expected, count($this->dataManager->getFiles([])));\n }",
"public function parseTestedFiles(UnitInterface &$unit);",
"public function testAll()\n {\n for ($i=0, $ii=count($this->files); $i<$ii; $i++) {\n $result = $this->compare($this->files[$i]);\n $this->assertEquals(\n $result[0],\n $result[1],\n \"Failed at file: {$this->files[$i]}\"\n );\n }\n }",
"public function testSetFileNames() {\n $myfiles = array('file1.tmp', 'file2.dat');\n $this->up->setFileNames($myfiles);\n $this->assertEquals($myfiles, $this->up->_fileNames);\n }",
"public function create_files($FILES){\n $result = array();\n foreach ($FILES as $file){\n $result[] = $this->create_file($file);\n }\n return $result;\n }",
"public function createByFiles($files_array = array(), $customHeaders = array()){\n\t\t$_api = new API('',true);\n\t\t$response = $this->createByType($files_array, $_api, 'FILES', $customHeaders);\n\t\t$response_success = $response['response']['Success'];\n\t\t$success_processes = array();\n\t\tforeach ($response_success as $process_response){\n\t\t\tarray_push($success_processes, new CopyleaksProcess($process_response['ProcessId'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$process_response['CreationTimeUTC'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->loginToken->authHeader(),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$this->typeOfService,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$process_response['Filename']));\n\t\t}\n\t\t$response_errors = $response['response']['Errors'];\n\t\t$errors = array();\n\t\tforeach ($response_errors as $process_response){\n\t\t\tarray_push($errors, new Errorhandler((int)$process_response['ErrorCode'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $process_response['ErrorMessage'],\n\t\t\t\t\t\t\t\t\t\t\t\t\t $process_response['Filename']));\n\t\t}\n\t\treturn array($success_processes, $errors);\n\t}",
"abstract protected function getTestData() : array;",
"public function input_actionAsset()\n {\n $basic_test_name = 'basic_test' . time() . rand(0, 10000);\n $type_test_name = 'type_test' . time() . rand(0, 10000);\n $used_test_name = 'used_test' . time() . rand(0, 10000);\n\n return [\n [\n $basic_test_name,\n [\n 'uploaded_name' => $basic_test_name,\n ]\n ],\n [\n $type_test_name,\n [\n 'type' => AssetType::IMAGE,\n 'uploaded_name' => $type_test_name,\n ]\n ],\n [\n $used_test_name,\n [\n 'is_used' => Asset::IS_NOT_USED,\n 'type' => AssetType::IMAGE,\n 'uploaded_name' => $used_test_name,\n ]\n ]\n ];\n }",
"public function testGetItemSubCategoryFiles()\n {\n }",
"public function provideTestCases()\n {\n return [\n ['time', ['time'], false],\n ['bar', null, true],\n ];\n }",
"public function testConstructFullOptionsArray()\n {\n $filter = new FileRename([\n 'source' => $this->oldFile,\n 'target' => $this->newFile,\n 'overwrite' => true,\n 'randomize' => false,\n 'unknown' => false\n ]);\n\n $this->assertEquals(\n [0 => [\n 'source' => $this->oldFile,\n 'target' => $this->newFile,\n 'overwrite' => true,\n 'randomize' => false,\n ]],\n $filter->getFile()\n );\n $this->assertEquals($this->newFile, $filter($this->oldFile));\n $this->assertEquals('falsefile', $filter('falsefile'));\n }",
"public function testGetOrderFiles()\n {\n }",
"public function saveTestFilePaths() {\n // Write the test file paths into the file\n $paths = implode(\"\\n\", $this->getTestFilePaths());\n $file = sprintf('<?php return \"%1$s\";', addslashes($paths));\n FileService::getInstance()->getFileSystem()->put($this->getFilePath(), $file);\n }",
"public function testGetFile()\n {\n\n }",
"private static function php_files($input_name) {\n\t\tif (!isset($_FILES[$input_name])) {\n\t\t\treturn [];\n\t\t}\n\t\tif (!is_array($_FILES[$input_name]['name'])) {\n\t\t\treturn [$_FILES[$input_name]];\n\t\t}\n\n\t\t$files = [];\n\t\t$fields = [\n\t\t\t\"type\",\n\t\t\t\"tmp_name\",\n\t\t\t\"error\",\n\t\t\t\"size\",\n\t\t\t\"name\"\n\t\t];\n\t\tforeach ($_FILES[$input_name]['name'] as $i => $name) {\n\t\t\t$input = [];\n\t\t\tforeach ($fields as $f) {\n\t\t\t\t$input[$f] = $_FILES[$input_name][$f][$i];\n\t\t\t}\n\t\t\t$files[] = $input;\n\t\t}\n\t\treturn $files;\n\t}",
"public function testScan_array() {\n $this->createExampleFile($this->fixturePath . '/modules/example.txt');\n $this->createExampleFile($this->fixturePath . '/sites/all/modules/extra-2/example.txt');\n $this->createExampleRepo($this->fixturePath . '/sites/all/themes/ignore-1');\n $this->createExampleRepo($this->fixturePath . '/sites/all/modules/real-1');\n $this->createExampleRepo($this->fixturePath . '/sites/default/real-2');\n\n $scanner = new GitRepoScanner();\n $gitRepos = $scanner->scan(array(\n $this->fixturePath . '/sites/all/modules',\n $this->fixturePath . '/sites/default',\n ));\n\n $this->assertRepos($gitRepos, array(\n $this->fixturePath . '/sites/all/modules/real-1',\n $this->fixturePath . '/sites/default/real-2',\n ));\n }",
"public function testGetFiles()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"public function test_create__multiple()\n {\n\n // Element\n $element = [\n 'attributes' => [\n 'type' => 'text',\n 'name' => 'my-text',\n 'id' => 'my-id'\n ],\n 'label' => 'My label'\n ];\n // ChoiceElement\n $choice = [\n 'attributes' => [\n 'type' => 'select',\n 'name' => 'my-select',\n 'id' => 'my-id'\n ]\n ];\n // Collection - with additional elements\n $collection = [\n 'attributes' => [\n 'type' => 'collection',\n 'name' => 'my-collection',\n 'id' => 'my-collection'\n ],\n 'elements' => [$element, $choice]\n ];\n\n $elements = (new ElementFactory())->createMultiple([$element, $choice, $collection]);\n\n static::assertCount(3, $elements);\n static::assertInstanceOf(ElementInterface::class, $elements[ 0 ]);\n static::assertInstanceOf(ChoiceElementInterface::class, $elements[ 1 ]);\n static::assertInstanceOf(CollectionElementInterface::class, $elements[ 2 ]);\n }",
"function writeToFile($testname, $testdesc, $array) {\n\tif($handler = fopen(\"/datafiles/testscriptjson/\" . $testname . '.json', 'w+')){\n\t\t// encode array to JSON format\n\t\t$jsonArray = json_encode($array);\n\t\t\n\t\t// write json string to the file\n\t\tif(fwrite($handler, $jsonArray) === FALSE){\n\t\t\techo \"Cannot write to file ($testname.json)\";\n\t\t\texit;\n\t\t} else {\n\t\t\t// if successful, close the handler\n\t\t\tfclose($handle);\n\t\t}\n\t} else {\n\t\techo \"Cannot open file ($testname.json)\";\n\t\texit;\n\t}\n\t\n\t// open a file for writing to xml file, if it does not exist, create one\n\tif($handler = fopen(\"/datafiles/testscriptfiles/\" . $testname . '.xml', 'w+')){\n\t\t// decode JSON to an array\n\t\t$arrayJson = json_decode($jsonArray);\n\t\t\n\t\t// make a string according to invader+ xml format\n\t\t$xmlString = \"<test id=\\\"$testname\\\" des=\\\"$testdesc\\\">\";\n\t\t\n\t\tforeach ($arrayJson as $item) {\n\t\t\t// remove return key\n\t\t\t$targetItem = preg_replace(\"/\\n/\", \"\", $item->target);\n\t\t\t$companionItem = preg_replace(\"/\\n/\", \"\", $item->companion);\n\t\t\t\n\t\t\tif (strlen($targetItem) > 0 And strlen($companionItem) > 0) {\n\t\t\t\t$xmlString = $xmlString . \"<block concurrent=\\\"true\\\" id=\\\"$testname\\\">\";\n\t\t\t} else {\n\t\t\t\t$xmlString = $xmlString . \"<block id=\\\"$testname\\\">\";\n\t\t\t}\n\t\t\t\n\t\t\t// write target field\n\t\t\tif (strlen($targetItem) > 0) {\n\t\t\t\t$xmlString = $xmlString .\n\t\t\t\t\t\t\t\"\\t<module method=\\\"\" . getMethod($targetItem) . \"\\\" class=\\\"\" . getClass($targetItem) . \"\\\" id=\\\"$testname\\\"\" .\n\t\t\t\t\t\t\tgetConfig($targetItem, \"delay=\") . \">\" .\n\t\t\t\t\t\t\t\"\\t\\t<param name=\\\"deviceID\\\">TARGET_DEV</param>\";\n\t\t\t\t\n\t\t\t\t$xmlString = $xmlString . parseParameterValues($targetItem) . \"</module>\";\n\t\t\t}\n\t\t\t\n\t\t\t// write companion field\n\t\t\tif (strlen($companionItem) > 0) {\n\t\t\t\t$xmlString = $xmlString .\n\t\t\t\t\t\t\t \"\\t<module method=\\\"\" . getMethod($companionItem) . \"\\\" class=\\\"\" . getClass($companionItem) . \"\\\" id=\\\"$testname\\\"\" .\n\t\t\t\t\t\t\t getConfig($companionItem, \"delay=\") . \">\" .\n\t\t\t\t\t\t\t \"\\t\\t<param name=\\\"deviceID\\\">COMPANION_DEV</param>\";\n\t\t\t\t\n\t\t\t\t$xmlString = $xmlString . parseParameterValues($companionItem) . \"</module>\";\n\t\t\t}\n\t\t\t\n\t\t\t$xmlString = $xmlString . \"</block>\";\n\t\t}\n\t\t\n\t\t$xmlString = $xmlString . \"</test>\";\n\t\t\n\t\t// convert & to & to be compatible with html special characters\n\t\t$xmlString = str_replace(\"&\", \"&\", $xmlString);\n\n\t\t// write xml string to the file\n\t\tif(fwrite($handler, $xmlString) === FALSE){\n\t\t\techo \"Cannot write to file ($testname.xml)\";\n\t\t\texit;\n\t\t} else {\n\t\t\t// if successful, close the handler\n\t\t\tfclose($handle);\n\t\t\t\n\t\t\t// write xml string to temp XML file for XML Viewer: Script Viewer\n\t\t\tif($handler = fopen(\"../../tempdata/testscript.xml\", 'w+')) {\n\t\t\t\tif(fwrite($handler, $xmlString) === FALSE){\n\t\t\t\t\techo \"Cannot write to temp file (testscript.xml)\";\n\t\t\t\t\texit;\n\t\t\t\t} else {\n\t\t\t\t\tfclose($handler);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\techo \"Cannot open temp file (testscript.xml)\";\n\t\t\t\texit;\n\t\t\t}\n\t\t\t\n\t\t\techo \"Successfully saved ($testname.xml)\";\n\t\t}\n\t} else {\n\t\techo \"Cannot open file ($testname.xml)\";\n\t\texit;\n\t}\n}",
"public function test_scan_files()\n {\n $content = array('.gitignore','.htaccess','index.php','README');\n $object = Directory::factory(ROOT);\n $res = $object->scan(Directory::SORT_ASC, Directory::SCAN_FILES);\n \n $this->assertEquals(count($content), count($res));\n foreach($res as $path=>$dir){\n $this->assertTrue(in_array($dir->get_base_name(), $content));\n $this->assertInstanceOf('\\Kaili\\File', $dir);\n }\n }",
"public function testExecuteIntoAll() {\n\t\t$this->Task->connection = 'test';\n\t\t$this->Task->path = '/my/path/';\n\t\t$this->Task->args = array('all');\n\t\t$this->Task->LegacyModel->expects($this->any())\n\t\t->method('listAll')\n\t\t->will($this->returnValue(array(\n\t\t\t\tarray('articles', 'bake_odd'),\n\t\t\t\tarray('Article', 'BakeOdd')\n\t\t\t)));\n\n\t\t$filename = '/my/path/ArticleFixture.php';\n\t\t$this->Task->expects($this->at(0))\n\t\t->method('createFile')\n\t\t->with($filename, $this->stringContains('class ArticleFixture'));\n\n\t\t$filename = '/my/path/BakeOddFixture.php';\n\t\t$this->Task->expects($this->at(1))\n\t\t->method('createFile')\n\t\t->with($filename, $this->stringContains('public $table = \\'bake_odd\\';'));\n\n\t\t$this->Task->execute();\n\t}",
"abstract public function getTestData(): array;",
"public function test_scenario3() {\n\n $data = array(array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_1.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_1.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_2.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_2.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => true, \"stem_words\" => true, \"use_stopwords\" => false))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_3.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_3.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => false, \"use_stopwords\" => false, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_4.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_4.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"case_sensitive\" => false, \"stem_words\" => true, \"use_stopwords\" => true, \"language\" => \"en\"))))),\n array(\"filename\"=> \"data/spam.csv\",\n \"local_file\" => \"tmp/if_then_rules_spam_textanalysis_5.txt\",\n \"expected_file\" => \"data/model/if_then_rules_spam_textanalysis_5.txt\",\n \"options\" => array(\"fields\" => array(\"000001\" => array(\"optype\" => \"text\", \"term_analysis\" => array(\"token_mode\" => \"full_terms_only\", \"language\" => \"en\" )))))\n );\n\n\n foreach($data as $item) {\n print \"\\nSuccessfully creating a model and translate the tree model into a set of IF-THEN rules\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I update the source with options \" . json_encode($item[\"options\"]) . \"\\n\";\n\t $source = self::$api->update_source($source->resource, $item[\"options\"]);\n\t $this->assertEquals(BigMLRequest::HTTP_ACCEPTED, $source->code);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 10000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"And I translate the tree into IF_THEN rules\\n\";\n\n $fp = fopen($item[\"local_file\"], 'w');\n $local_model->rules($fp);\n fclose($fp);\n print \" Then I check the output is like \" . $item[\"expected_file\"] . \" expected file\\n\";\n $this->assertEquals(0, strcmp(trim(file_get_contents($item[\"local_file\"])), trim(file_get_contents($item[\"expected_file\"]))));\n\n }\n }",
"protected function createRealTestdir() {}",
"public function test_attach_files() {\n global $DB;\n\n $fs = get_file_storage();\n\n // Returns the instance as long as the area is supported.\n $searcharea = \\core_search\\manager::get_search_area($this->forumpostareaid);\n $this->assertInstanceOf('\\mod_forum\\search\\post', $searcharea);\n\n $user1 = self::getDataGenerator()->create_user();\n $user2 = self::getDataGenerator()->create_user();\n\n $course1 = self::getDataGenerator()->create_course();\n\n $this->getDataGenerator()->enrol_user($user1->id, $course1->id, 'student');\n $this->getDataGenerator()->enrol_user($user2->id, $course1->id, 'student');\n\n $record = new stdClass();\n $record->course = $course1->id;\n\n $forum1 = self::getDataGenerator()->create_module('forum', $record);\n\n // Create discussion1.\n $record = new stdClass();\n $record->course = $course1->id;\n $record->userid = $user1->id;\n $record->forum = $forum1->id;\n $record->message = 'discussion';\n $record->attachemt = 1;\n $discussion1 = self::getDataGenerator()->get_plugin_generator('mod_forum')->create_discussion($record);\n\n // Attach 2 file to the discussion post.\n $post = $DB->get_record('forum_posts', array('discussion' => $discussion1->id));\n $filerecord = array(\n 'contextid' => context_module::instance($forum1->cmid)->id,\n 'component' => 'mod_forum',\n 'filearea' => 'attachment',\n 'itemid' => $post->id,\n 'filepath' => '/',\n 'filename' => 'myfile1'\n );\n $file1 = $fs->create_file_from_string($filerecord, 'Some contents 1');\n $filerecord['filename'] = 'myfile2';\n $file2 = $fs->create_file_from_string($filerecord, 'Some contents 2');\n\n // Create post1 in discussion1.\n $record = new stdClass();\n $record->discussion = $discussion1->id;\n $record->parent = $discussion1->firstpost;\n $record->userid = $user2->id;\n $record->message = 'post2';\n $record->attachemt = 1;\n $discussion1reply1 = self::getDataGenerator()->get_plugin_generator('mod_forum')->create_post($record);\n\n $filerecord['itemid'] = $discussion1reply1->id;\n $filerecord['filename'] = 'myfile3';\n $file3 = $fs->create_file_from_string($filerecord, 'Some contents 3');\n\n // Create post2 in discussion1.\n $record = new stdClass();\n $record->discussion = $discussion1->id;\n $record->parent = $discussion1->firstpost;\n $record->userid = $user2->id;\n $record->message = 'post3';\n $discussion1reply2 = self::getDataGenerator()->get_plugin_generator('mod_forum')->create_post($record);\n\n // Now get all the posts and see if they have the right files attached.\n $searcharea = \\core_search\\manager::get_search_area($this->forumpostareaid);\n $recordset = $searcharea->get_recordset_by_timestamp(0);\n $nrecords = 0;\n foreach ($recordset as $record) {\n $doc = $searcharea->get_document($record);\n $searcharea->attach_files($doc);\n $files = $doc->get_files();\n // Now check that each doc has the right files on it.\n switch ($doc->get('itemid')) {\n case ($post->id):\n $this->assertCount(2, $files);\n $this->assertEquals($file1->get_id(), $files[$file1->get_id()]->get_id());\n $this->assertEquals($file2->get_id(), $files[$file2->get_id()]->get_id());\n break;\n case ($discussion1reply1->id):\n $this->assertCount(1, $files);\n $this->assertEquals($file3->get_id(), $files[$file3->get_id()]->get_id());\n break;\n case ($discussion1reply2->id):\n $this->assertCount(0, $files);\n break;\n default:\n $this->fail('Unexpected post returned');\n break;\n }\n $nrecords++;\n }\n $recordset->close();\n $this->assertEquals(3, $nrecords);\n }",
"public function testConstructDoubleArrayDirectory()\n {\n $filter = new FileRename([\n 0 => [\n 'source' => $this->oldFile,\n 'target' => $this->newDir]]);\n\n $this->assertEquals(\n [0 => [\n 'source' => $this->oldFile,\n 'target' => $this->newDir,\n 'overwrite' => false,\n 'randomize' => false,\n ]],\n $filter->getFile()\n );\n $this->assertEquals($this->newDirFile, $filter($this->oldFile));\n $this->assertEquals('falsefile', $filter('falsefile'));\n }",
"public function newInputs($inputs = array())\n {\n return new RapidShare_MoveFilesToRealFolder_Inputs($inputs);\n }",
"function getTestFilesForAllProjects(): array\n {\n $ret = array();\n foreach (config::$projects as $project) {\n $testFiles = $this->getDirContents($project[\"dir\"], config::$excludeFiles);\n foreach ($testFiles as $idx => $testFile) {\n $tests = $this->getTestClassMethodsFromFile($testFile[\"dir\"] . $testFile[\"file\"]);\n $asserts=0;\n foreach ($tests as $count) {\n $asserts +=$count;\n }\n $testFiles[$idx][\"tests\"] = sizeof($tests);\n $testFiles[$idx][\"asserts\"] = $asserts;\n $testFiles[$idx][\"name\"] = $project[\"name\"];\n }\n $ret=array_merge($ret, $testFiles);\n }\n return $ret;\n }",
"private function setup_files() {\n $this->record_progress(\n \"Step 6: Preparing files for further analysis\");\n\n $path_new_input = $this->path_new_input;\n $path_spliceman = $this->path_spliceman;\n $path_RBPs_new = $this->path_RBPs_new;\n $path_errors = $this->path_errors;\n\n exec(\"perl\\\n /var/www/html/spliceman_beta/scripts/setup_spliceman_RBP_files.pl\\\n /var/www/html/spliceman_beta/genome_data/hg19.fa\\\n '$path_new_input'\\\n '$path_spliceman'\\\n '$path_RBPs_new'\\\n '$path_errors'\", \n $output, \n $return);\n\n if ($return) {\n $this->pipeline_error(\n \"Error in pipeline, please contact administrator\n and provide step 6\");\n }\n if (count($output) > 0) {\n $this->pipeline_error($output);\n }\n }",
"static function uploads($input_name)\n\t{\n\t\t$uploads = [];\n\t\tforeach (self::php_files($input_name) as $file) {\n\t\t\t// Happens with multiple file inputs with the same name marked with '[]'.\n\t\t\tif ($file['error'] == UPLOAD_ERR_NO_FILE) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ($file['error'] || !$file['size']) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tunset($file['error']);\n\t\t\t$uploads[] = new upload($file);\n\t\t}\n\t\treturn $uploads;\n\t}",
"public function testConstructDoubleArray()\n {\n $filter = new FileRename([\n 0 => [\n 'source' => $this->oldFile,\n 'target' => $this->newFile]]);\n\n $this->assertEquals(\n [0 => [\n 'source' => $this->oldFile,\n 'target' => $this->newFile,\n 'overwrite' => false,\n 'randomize' => false,\n ]],\n $filter->getFile()\n );\n $this->assertEquals($this->newFile, $filter($this->oldFile));\n $this->assertEquals('falsefile', $filter('falsefile'));\n }",
"protected function createTest()\n {\n $name = Str::studly($this->argument('name'));\n\n $this->call('make:test', [\n 'name' => 'Controllers\\\\' . $name . 'Test',\n '--unit' => false,\n ]);\n }",
"public function test_scenario5() {\n\n $data = array(array('filename' => 'data/iris.csv', 'expected_file' => 'data/model/predictions_distribution_iris.txt'),\n array('filename' => 'data/iris_sp_chars.csv', 'expected_file' => 'data/model/predictions_distribution_iris_sp_chars.txt'),\n array('filename' => 'data/spam.csv', 'expected_file' => 'data/model/predictions_distribution_spam.txt'),\n array('filename' => 'data/grades.csv', 'expected_file' => 'data/model/predictions_distribution_grades.txt'),\n array('filename' => 'data/diabetes.csv', 'expected_file' => 'data/model/predictions_distribution_diabetes.txt'),\n array('filename' => 'data/iris_missing2.csv', 'expected_file' => 'data/model/predictions_distribution_iris_missing2.txt'),\n array('filename' => 'data/tiny_kdd.csv', 'expected_file' => 'data/model/predictions_distribution_tiny_kdd.txt')\n );\n\n foreach($data as $item) {\n print \"\\n Successfully creating a model and check its predictions distribution\\n\";\n\n print \"Given I create a data source uploading a \". $item[\"filename\"]. \" file\\n\";\n $source = self::$api->create_source($item[\"filename\"], $options=array('name'=>'local_test_source', 'project'=> self::$project->resource));\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $source->code);\n $this->assertEquals(1, $source->object->status->code);\n\n print \"And I wait until the source is ready\\n\";\n $resource = self::$api->_check_resource($source->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create dataset with local source\\n\";\n $dataset = self::$api->create_dataset($source->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $dataset->code);\n $this->assertEquals(BigMLRequest::QUEUED, $dataset->object->status->code);\n\n print \"And I wait until the dataset is ready\\n\";\n $resource = self::$api->_check_resource($dataset->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create model\\n\";\n $model = self::$api->create_model($dataset->resource);\n $this->assertEquals(BigMLRequest::HTTP_CREATED, $model->code);\n\n print \"And I wait until the model is ready \". $model->resource . \"\\n\";\n $resource = self::$api->_check_resource($model->resource, null, 3000, 30);\n $this->assertEquals(BigMLRequest::FINISHED, $resource[\"status\"]);\n\n print \"And I create a local model\\n\";\n $local_model = new Model($model->resource, self::$api);\n print \"Then I check the predictions distribution with \". $item[\"expected_file\"] . \" file\\n\";\n\n $file_distribution = file_get_contents($item[\"expected_file\"]);\n $distribution = $local_model->get_prediction_distribution();\n $distribution_str='';\n\n foreach($distribution as $key => $value) {\n $distribution_str= $distribution_str . \"[\" . $key . \",\" . $value . \"]\\n\";\n }\n\n $this->assertEquals(trim($distribution_str), trim($file_distribution));\n\n }\n }",
"function createFiles()\n {\n $this->debug(\"start createFiles $this->tempdir\");\n\n if (!file_exists($this->tempdir)) {\n\n return false;\n }\n $fh = opendir($this->tempdir);\n if (!$fh) {\n return false;\n }\n $this->debug(\"start processFiles $fh\");\n $jsonfiles = array();\n while (false !== ($file = readdir($fh))) {\n\n if (strpos($file, 'json') !== false) {\n $jsonfiles[] = $file;\n }\n }\n closedir($fh);\n unset($this->playlistID);\n //Playlist\n\n if (count($jsonfiles) > 0) {\n $this->debug(\"process playlist $this->playlistID\");\n //TODO Create folder xml\n $videos = array();\n foreach ($jsonfiles as $jsonfile) {\n $this->debug(\"start processFiles file $jsonfile\");\n if (!$this->createVideoXMLAndCopy($jsonfile)) {\n return false;\n }\n }\n }\n if (count($jsonfiles) > 1 && isset($this->playlistID)) {\n //Playlist\n foreach ($jsonfiles as $jsonfile) {\n $json = json_decode(file_get_contents(\"$this->tempdir/$jsonfile\"));\n $playlistname = $json->playlist;\n $nr = $json->playlist_index;\n $id = $json->id;\n $videos[$nr] = $id;\n }\n $plfile = \"$this->tempdir/$this->playlistID.xml\";\n $data = \"<playlist xmlns=\\\"http://www.make.tv/smt/playout/library\\\" id=\\\"$this->playlistID\\\">\\n<title><![CDATA[$playlistname]]></title>\";\n foreach ($videos as $video) {\n $data .= \"\\n<video id=\\\"$video\\\" libraryId=\\\"\\\" status=\\\"0\\\" />\";\n };\n $data .= \"\\n</playlist>\";\n if (file_put_contents($plfile, $data, LOCK_EX) === false) {\n return false;\n }\n $this->deleteJSONFiles();\n rename($this->tempdir, \"$this->targetdir/$this->playlistID\");\n } else {\n //single videofile\n $this->debug(\"rename files\");\n $fh = opendir($this->tempdir);\n while (false !== ($file = readdir($fh))) {\n $this->debug(\"rename $file\");\n if (strpos($file, '.xml') !== false || strpos($file, '.mp4') !== false) {\n rename(\"$this->tempdir/$file\", \"$this->targetdir/$file\");\n }\n }\n closedir($fh);\n $this->deleteJSONFiles();\n }\n\n $this->debug(\"end createFiles \");\n return true;\n }",
"public function getTests()\n {\n return array();\n }",
"public function getTests()\n {\n return array();\n }",
"public function get_expected_data()\n {\n //expect the submission of one or more files\n //return array('answer' => question_attempt::PARAM_FILES);\n return array('answer' => question_attempt::PARAM_FILES, 'answerraw' => PARAM_RAW, 'attemptid' => PARAM_INT);\n }",
"public function testRenderControllerWithMultipleArguments(): void\n {\n $this->assertFileExists(self::OUTPUT_DIRECTORY . '/test/1/index.html');\n $this->assertFileExists(self::OUTPUT_DIRECTORY . '/test/2/index.html');\n $this->assertFileExists(self::OUTPUT_DIRECTORY . '/foo/1/index.html');\n $this->assertFileExists(self::OUTPUT_DIRECTORY . '/foo/2/index.html');\n\n foreach (['test', 'foo'] as $type) {\n foreach ([1, 2] as $param) {\n $this->assertFileEquals(\n self::EXPECTED_DIRECTORY . '/two-params/' . $type . $param . '.html',\n self::OUTPUT_DIRECTORY . sprintf('/%s/%s/index.html', $type, $param)\n );\n }\n }\n }",
"protected static function uploadFactory($_files = array()) {\n\n\t\t$_files = self::normalize($_files);\n\n\t\tforeach ($_files as $input => $uploads) {\n\t\t\tforeach ($uploads as $upload) {\n\t\t\t\t$object = new stdClass();\n\t\t\t\tif (is_array($upload)) {\n\t\t\t\t\tforeach ($upload as $key => $value) {\n\t\t\t\t\t\t$object->$key = $value;\n\t\t\t\t\t}\n\n\t\t\t\t\t$object->error = self::getError($object->error);\n\t\t\t\t\tif (!$object->error) {\n\t\t\t\t\t\t$object->filesize = $upload['size'];\n\t\t\t\t\t\t$object->mimetype = self::detectMimeType($upload);\n\t\t\t\t\t\t$object->simpletype = self::parseSimpletype($object->mimetype);\n\t\t\t\t\t\t$object->path = $upload['tmp_name'];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tself::$uploads[$input][] = $object;\n\t\t\t}\n\t\t}\n\n\t\treturn self::$uploads;\n\t}",
"public function setupTestFiles() {\n\t\t$css = '\n\t\t.example-urla {\n\t\t\tcolor: black;\n\t\t\tbackground: transparent url(\"/img/cdnmd5test.png\") no-repeat center center;\n\t\t}\n\t\t.example-background-image {\n\t\t\tbackground-image: url(\"/img/cdnmd5test.png\");\n\t\t}\n\t\t.example-background-a {\n\t\t\tbackground-image: url(\\'/img/cdnmd5test-a.png\\');\n\t\t}\n\t\t.example-background-b {\n\t\t\tbackground-image: url(\"/img/cdnmd5test-b.png\");\n\t\t}\n\t\t.example-background-c {\n\t\t\tbackground-image: url(/img/cdnmd5test-c.png);\n\t\t}\n\t\t.example-background-relative {\n\t\t\tbackground-image: url(\"../img/cdnmd5test-relative.png\");\n\t\t}\n\t\t.example-background-missing {\n\t\t\tbackground-image: url(\"/img/cdnmd5test-missing-file.png\");\n\t\t}\n\t\t';\n\t\t$this->testfile_css = WWW_ROOT . 'css' . DS . 'cdnmd5test.css';\n\t\tfile_put_contents($this->testfile_css, $css);\n\t\t$this->testfile_css_hash = md5(file_get_contents($this->testfile_css));\n\n\t\t$js = '\n\t\tblah = \"blah blah\";\n\t\tvar stuff = function() { alert(\\'yo\\'); };\n\t\tjunk = ' . rand() . time() . ';\n\t\t';\n\t\t$this->testfile_js = WWW_ROOT . 'js' . DS . 'cdnmd5test.js';\n\t\tfile_put_contents($this->testfile_js, $js);\n\t\t$this->testfile_js_hash = md5(file_get_contents($this->testfile_js));\n\n\t\t$this->testfile_img = WWW_ROOT . 'img' . DS . 'cdnmd5test.png';\n\t\t$testfile_img_content = base64_decode($this->testfile_img_content);\n\t\tfile_put_contents($this->testfile_img, $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-a.png', $this->testfile_img), $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-b.png', $this->testfile_img), $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-c.png', $this->testfile_img), $testfile_img_content);\n\t\tfile_put_contents(str_replace('.png', '-relative.png', $this->testfile_img), $testfile_img_content);\n\t}",
"public function testArrangeFiles($files, $expectedOutput)\n {\n $actualOutput = $this->testModel->arrange_files($files);\n \n $this->assertEquals($expectedOutput, $actualOutput);\n\n }",
"function testFileTypes()\r\n {\r\n $nautilus = $this->nautilus->uploadDir('/tmp');\r\n $image = array('name' => $this->testingImage,\r\n 'type' => 'image/jpeg',\r\n 'size' => 542,\r\n 'tmp_name' => $this->testingImage,\r\n 'error' => 0\r\n );\r\n\r\n /* should not accept gif*/\r\n $nautilus->fileTypes(array('gif'));\r\n $this->setExpectedException('Image\\ImageException',' This is not allowed file type!\r\n Please only upload ( gif ) file types');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n\r\n /* should not accept png*/\r\n $nautilus->fileTypes(array('png'));\r\n $this->setExpectedException('Image\\ImageException',' This is not allowed file type!\r\n Please only upload ( png ) file types');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n /* shouldn't accept this file */\r\n $nautilus->fileTypes(array('exe'));\r\n $this->setExpectedException('Image\\ImageException',' This is not allowed file type!\r\n Please only upload ( exe ) file types');\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n\r\n /* example file is actually jpeg, not jpg */\r\n $nautilus->fileTypes(array('png', 'jpeg'));\r\n $upload = $nautilus->upload($image,'nautilus_test_image');\r\n $this->assertEquals('uploads/nautilus_test_image.jpeg',$upload);\r\n }",
"public function testFileManagement()\n {\n $limit = 5;\n $filesystem = $this->createFilesystemMock($limit, 0, $limit);\n $instance = $this->createTestInstance($filesystem);\n $this->assertEmpty($instance->getTemporaryFiles());\n $files = array();\n for ($i = 0; $i < 5; $i++) {\n $files[] = $instance->createTemporaryFile();\n }\n $this->assertCount($limit, $instance->getTemporaryFiles());\n $this->assertContains($files[0], $instance->getTemporaryFiles());\n $instance->removeTemporaryFile($files[0]);\n $this->assertCount($limit - 1, $instance->getTemporaryFiles());\n $this->assertNotContains($files[0], $instance->getTemporaryFiles());\n $instance->removeTemporaryFiles();\n $this->assertCount(0, $instance->getTemporaryFiles());\n }",
"public function newInputs($inputs = array())\n {\n return new RapidShare_ListFiles_Inputs($inputs);\n }",
"public function testGetFilesParams()\n {\n $files = $this->_req->getFilesParams();\n $picture = $files['picture'];\n $this->assertInstanceOf('Mad_Controller_FileUpload', $picture);\n\n $icon = $files['document']['icon'];\n $this->assertInstanceOf('Mad_Controller_FileUpload', $icon);\n\n $photo = $files['document']['photo'];\n $this->assertInstanceOf('Mad_Controller_FileUpload', $photo);\n }",
"private function prepareTestFile(string $name, array $content): string\n {\n file_put_contents($name, implode(PHP_EOL, $content));\n\n return $this->getRealPath($name);\n }",
"public function set_test_directory_list() {\n\t\tforeach ($this->directory_list as $dir_name) {\n\t\t\t$dir=dir($dir_name);\n\t\t\twhile(( $file=$dir->read()) !==false) {\n\t\t\t\tif (preg_match(\"/\\w+\\.phpt$/\", $file)) {\n\t\t\t\t\tarray_push($this->test_directory_list, $dir_name);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function testRefusesToProvideQuotationIfFileKeyParameterDoesNotHaveCorrespondingRecordInFilesArray()\n {\n $jobs = array(\n 'job_01' => array(\n 'type' => 'file',\n 'file_key' => 'no_such_file',\n 'lc_src' => 'en',\n 'lc_tgt' => 'ja',\n 'tier' => 'standard',\n ),\n );\n\n $files = array('file_01' => __DIR__.'/testfiles/test_file1.txt');\n\n $serviceAPI = new Service();\n\n $this->expectException(Exception::class);\n $this->expectExceptionMessage('is missing in filepath array');\n $serviceAPI->quote($jobs, $files);\n }"
] | [
"0.6878193",
"0.6773069",
"0.65201503",
"0.6481515",
"0.63780355",
"0.6357926",
"0.6269971",
"0.6264422",
"0.62612647",
"0.6177899",
"0.61460507",
"0.6095894",
"0.602382",
"0.6014188",
"0.59868956",
"0.5959627",
"0.5893516",
"0.5891921",
"0.5883151",
"0.5868972",
"0.5862968",
"0.5858994",
"0.5822879",
"0.5822293",
"0.58167696",
"0.58144057",
"0.57873094",
"0.5773464",
"0.5741143",
"0.5726639",
"0.5723237",
"0.56731826",
"0.5671476",
"0.5646375",
"0.5622619",
"0.559489",
"0.55754596",
"0.55680454",
"0.5562809",
"0.55394375",
"0.5528845",
"0.55281824",
"0.5495504",
"0.545883",
"0.5454919",
"0.5420013",
"0.5406941",
"0.54018486",
"0.5386689",
"0.5367939",
"0.534307",
"0.53340685",
"0.5328781",
"0.5326855",
"0.53145546",
"0.53139687",
"0.5313247",
"0.5299267",
"0.52878225",
"0.5286918",
"0.52853537",
"0.52719617",
"0.5267575",
"0.5267183",
"0.52637184",
"0.5260719",
"0.5250179",
"0.5250149",
"0.52413344",
"0.5236576",
"0.5234566",
"0.52278966",
"0.52263844",
"0.5216922",
"0.5208895",
"0.5191418",
"0.5184283",
"0.51827174",
"0.51791435",
"0.51776916",
"0.51746863",
"0.51695913",
"0.51678526",
"0.515406",
"0.5152072",
"0.5147762",
"0.51452667",
"0.51452667",
"0.5138261",
"0.5129194",
"0.5122991",
"0.5119822",
"0.5118742",
"0.5117681",
"0.51124626",
"0.51030755",
"0.51013535",
"0.51010936",
"0.50993556",
"0.50992566"
] | 0.51836264 | 77 |
Test Tests the actionIndex method error resonse. | public function test_actionIndexError()
{
$expected_output = "HTTP/1.1 424 \n" .
"Content-type: application/json\n" .
'{"errors":{"general":["Not a proper http method type, please send a FILE"]}}';
$this->assertControllerResponse('actionIndex', '/create/', $expected_output);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function test_IndexError(){\n\t\t$this->validateTestException(\n\t\t\t$this->fullURL,\n\t\t\t'GET',\n\t\t\t$this->data,\n\t\t\t'NotImplementedException',\n\t\t\t'index'\n\t\t);\n\t}",
"public function testIndexActionError() : void\n {\n $res = $this->controller->indexActionPost();\n $this->assertInternalType(\"array\", $res);\n\n list($json, $status) = $res;\n $this->assertEquals($json[\"message\"], \"Ingen IP address skickades.\");\n $this->assertEquals($status, 400);\n }",
"public function testIndexActionFail() : void\n {\n $this->di->request->setPost(\"ip\", \"1200:0000:AB00:1234:O000:2552:7777:1313\");\n\n $res = $this->controller->indexActionPost();\n $this->assertInternalType(\"array\", $res);\n\n list($json, $status) = $res;\n $this->assertEquals($json[\"valid\"], false);\n $this->assertEquals($status, 200);\n }",
"public function testIndexAction()\n {\n $request = $this->di->get(\"request\");\n $request->setServer(\"REMOTE_ADDR\", \"127.0.0.1\");\n $res = $this->controller->indexAction();\n $this->assertIsArray($res);\n\n $json = $res[0];\n $this->assertEquals(\"Oops, platsinformation saknas\", $json[\"err\"]);\n }",
"public function testIndexAction()\n {\n $res = $this->controller->indexAction();\n $this->assertIsObject($res);\n }",
"public function test_indexAction ( )\n {\n $params = array(\n 'action' => 'index',\n 'controller'=> 'index',\n 'module' => 'default'\n );\n\n $urlParams = $this->urlizeOptions($params);\n $url = $this->url($urlParams);\n $this->dispatch($url);\n\n // assertions\n $this->assertModule($urlParams['module']);\n $this->assertController($urlParams['controller']);\n $this->assertAction($urlParams['action']);\n }",
"public function testIndexAction()\n {\n $res = $this->controller->indexAction();\n $this->assertInternalType(\"object\", $res);\n $this->assertInstanceOf(ResponseUtility::class, $res);\n }",
"public function testIndexSuccess()\n {\n $this->setAdminSession();\n $this->get($this->indexUrl);\n $this->assertResponseOk();\n }",
"public function testIndexActionGetFail()\n {\n // Setup the controller\n $controller = new LocWeatherController();\n $controller->setDI($this->di);\n\n // Test the controller action\n $_GET[\"ip\"] = \"test.ip.not.real\";\n $res = $controller->indexActionGet();\n $body = $res->getBody();\n $this->assertStringContainsString(\"<h5 style='color:red;'>Vädret misslyckades att hämtas.</h5>\", $body);\n }",
"public function testIndexFailNotAdmin()\n {\n $this->setUserSession();\n $this->get($this->indexUrl);\n $this->assertRedirect('/');\n }",
"public function testActionIndex()\n {\n // Create five actions.\n factory(Action::class, 5)->create();\n\n $response = $this->getJson('api/v3/actions');\n $decodedResponse = $response->decodeResponseJson();\n\n $response->assertStatus(200);\n $this->assertEquals(5, $decodedResponse['meta']['pagination']['count']);\n }",
"public function testIndexActionCanBeAccessed()\n\t{\n\t\t$this->dispatch('/');\n\t\t$this->assertResponseStatusCode(200);\n\t\t$this->assertModuleName('DEC');\n\t\t$this->assertControllerName('DEC\\Controller\\Index');\n\t\t$this->assertControllerClass('IndexController');\n\t\t$this->assertMatchedRouteName('home');\n\t}",
"public function testIndex()\n {\n $this->get(route('index'))\n ->assertResponseStatus(200);\n }",
"public function testIndex()\n {\n $response = $this->action('GET', '\\Modules\\Admin\\Http\\Controllers\\FaqCategoryController@index');\n $this->assertResponseStatus(200, $response->status());\n $this->assertInstanceOf('Illuminate\\Http\\Response', $response);\n }",
"public function testIndexAction()\n {\n\n $res = $this->controller->indexAction();\n $this->assertInstanceOf(ResponseUtility::class, $res);\n //$this->assertStringEndsWith(\"active\", $res);\n }",
"public function test_bad_index_route()\n {\n //incorrect uri\n $response = $this->get('api/students/1234');\n $response->assertStatus(404);\n }",
"public function testIndexActionGet()\n {\n $res = $this->controller->indexActionGet();\n $this->assertContains(\"View all items\", $res->getBody());\n }",
"public function testIndexAction() : void\n {\n $this->di->request->setPost(\"ip\", \"2002:c0a8:101::42\");\n\n $res = $this->controller->indexActionPost();\n $this->assertInternalType(\"array\", $res);\n\n list($json, $status) = $res;\n $this->assertEquals($json[\"valid\"], true);\n $this->assertEquals($status, 200);\n }",
"public function testIndexActionCanBeAccessed()\n {\n $this->elasticsearchClientMock->expects($this->once())\n ->method('getIndexStats')\n ->will($this->returnValue(array()));\n\n $serviceManager = $this->controller->getServiceLocator();\n $serviceManager->setAllowOverride(true);\n $serviceManager->setService('ElasticsearchManager', $this->elasticsearchClientMock);\n\n $this->routeMatch->setParam('action', 'index');\n\n $result = $this->controller->dispatch($this->request);\n $response = $this->controller->getResponse();\n\n $this->assertEquals(200, $response->getStatusCode());\n }",
"public function testIndexActionCanBeAccessed()\n {\n $this->dispatch('/venue');\n $this->assertResponseStatusCode(200);\n }",
"public function test_err404()\n {\n $this->request('GET', ['err404', 'index']);\n $this->assertResponseCode(404);\n }",
"public function testIndexActionIsOk(){\n $this->dispatch('/administrator/manage-supplier');\n $this->assertResponseCode(200);\n }",
"public function test_dispatchIndexAction ( )\n {\n $params = array(\n 'action' => 'index',\n 'controller'=> 'scales',\n 'module' => 'default'\n );\n\n $urlParams = $this->urlizeOptions($params);\n $url = $this->url($urlParams);\n $this->dispatch($url);\n\n // assertions\n $this->assertModule($urlParams['module']);\n $this->assertController($urlParams['controller']);\n $this->assertAction($urlParams['action']);\n\n }",
"public function testIndexActionCanBeAccessed()\n {\n $apartmentGeneralDao = $this->getApplicationServiceLocator()->get('dao_apartment_general');\n $apartment = $apartmentGeneralDao->fetchOne();\n\n $this->dispatch('/apartment/' . $apartment['id'] . '/inventory-range');\n $this->assertResponseStatusCode(200);\n\n $this->assertModuleName('apartment');\n $this->assertControllerName('controller_apartment_inventory_range');\n $this->assertControllerClass('InventoryRange');\n $this->assertActionName('index');\n $this->assertMatchedRouteName('apartment/inventory-range');\n }",
"public function testIndexTahun()\n\t{\n\t\t$response = $this->action('GET', 'TahunController@index');\n\t}",
"public function testGetActionMethodForIndexAction()\n {\n $application = new BasicTestApplication(FilePath::parse('/var/www/'));\n $request = new BasicTestRequest(Url::parse('http://www.domain.com/'), new Method('GET'));\n $response = new BasicTestResponse();\n $controller = new BasicTestController();\n $controller->processRequest($application, $request, $response, '', []);\n\n self::assertSame('indexAction', $controller->getActionMethod()->getName());\n }",
"public function test_getNotFound() {\n\t\t$this->testAction('/disease/index/1', array('method'=>'get'));\n\t}",
"public function test_listIndexAction ( )\n {\n $params = array(\n 'event_id' => 1,\n 'action' => 'list',\n 'controller'=> 'scales',\n 'module' => 'default'\n );\n\n $urlParams = $this->urlizeOptions($params);\n $url = $this->url($urlParams);\n $this->dispatch($url);\n\n // assertions\n $this->assertModule($urlParams['module']);\n $this->assertController($urlParams['controller']);\n $this->assertAction($urlParams['action']);\n\n }",
"public function testIndexMethodAuthorised()\n {\n $response = $this->actingAs($this->user)\n ->get($this->routeIndex);\n\n $response->assertStatus(200);\n $response->assertViewIs('pages.eventtype.index');\n }",
"public function testDispatchErrorNoAction()\n {\n $this->expectException(ResourceNotFoundException::class);\n\n $this->uut->dispatch($this->buildRequest('/unknown-action'));\n }",
"public function testIndex()\n {\n $model = $this->makeFactory();\n $model->save();\n\n $this->json('GET', static::ROUTE)\n ->seeStatusCode(JsonResponse::HTTP_OK);\n }",
"public function testIndexActionCanBeAccessed()\n {\n $this->bookingTable->fetchAll()->willReturn(['test']);\n\n $this->dispatch('/booking');\n $this->assertResponseStatusCode(200);\n $this->validateModuleClassNames();\n\n $this->dispatch('/booking/add');\n $this->assertResponseStatusCode(200);\n $this->validateModuleClassNames();\n\n $this->dispatch('/booking/edit');\n $this->assertResponseStatusCode(200);\n $this->validateModuleClassNames();\n\n $this->dispatch('/booking/delete');\n $this->assertResponseStatusCode(200);\n $this->validateModuleClassNames();\n }",
"protected function errorAction() {}",
"public function testIndex()\n {\n $request = $this->mockHttpRequest([]);\n $service = $this->mockGoogleSearchServiceBasic();\n $controller = new SearchResultsController($request, $service);\n\n $result = $controller->index();\n\n $this->assertInstanceOf(Views\\Index::class, $result);\n $this->assertIsArray($result->getData());\n $this->assertEquals($result->getData(), []);\n }",
"public function testIndex()\n\t{\n\t\t// correct route for posts\n\t\t$this->call('GET', '/api/posts');\n\t}",
"public function testIndex()\n {\n $response = $this->getJson(route('users.index'), $this->headers);\n\n $response->assertStatus(200);\n }",
"public function testNotFoundAction()\n {\n $this->routeMatch->setParam('action', 'merda');\n \n $result = $this->controller->dispatch($this->request, $this->response);\n \n // Verifica o response\n $response = $this->controller->getResponse();\n \n $this->assertEquals(404, $response->getStatusCode());\n \n }",
"public function actionIndex()\n {\n return ['status' => '404','message' => 'Not Found'];\n }",
"public function testOnExecuteActionException()\n {\n // Start of user code RouterSpecialEventsControllerTest.testonExecuteActionException\n $controller = new RouterSpecialEventsController();\n $httpResponse = $controller->onExecuteActionException(\n AssociativeArray::createFromNativeArray(\n 'string',\n array(\n 'type' => 'SomeException',\n 'code' => 0,\n 'message' => 'Message of a simulated exception',\n 'file' => '/var/some-folder/some-file.som',\n 'controller' => 'SomeController',\n 'action' => 'someAction'\n )\n ));\n $this->assertEquals(500, $httpResponse->getStatusCode());\n $this->assertEquals(\n \"<html><h1>Error 500 : An exception has been thrown</h1><p>While executing SomeController::someAction</p><p>SomeException : Message of a simulated exception</p><p>TiBeN Framework</p></html>\", \n $httpResponse->getMessage()\n );\n // End of user code\n }",
"public function test_err404_2()\n {\n $this->request('GET', ['pages/test', 'index']);\n $this->assertResponseCode(404);\n }",
"public function testIndexMethod()\n {\n $this->authentication();\n $this->get(route('members.index'));\n $this->seeStatusCode(200);\n }",
"public function testIndex()\n {\n $this->call('GET', '/');\n $this->assertResponseOk();\n }",
"public function testIndex()\n {\n $response = $this->get('/');\n $response->assertStatus(200);\n }",
"public function actionIndex()\n\n {\n\n echo 'Index action has not used.';\n\n }",
"public function testPaymentIndexActionCanBeAccessed()\n {\n $this->dispatch('/payment');\n $this->assertResponseStatusCode(200);\n\n $this->assertModuleName('Payment');\n $this->assertControllerName('payment/index');\n $this->assertControllerClass('IndexController');\n $this->assertMatchedRouteName('standardPayment');\n }",
"public function testIndex()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }",
"public function testIndex()\n {\n $response = $this->get('/');\n\n $response->assertStatus(200);\n }",
"public function testIndexFailNotLoggedIn()\n {\n $this->get($this->indexUrl);\n $this->assertRedirectContains(Router::url([\n 'prefix' => false,\n 'controller' => 'Users',\n 'action' => 'login'\n ]));\n }",
"public function testIndexActionPostFail()\n {\n // Setup the controller\n $controller = new LocWeatherController();\n $controller->setDI($this->di);\n\n unset($_POST[\"ip\"]);\n unset($_POST[\"lat\"]);\n unset($_POST[\"long\"]);\n unset($_GET[\"ip\"]);\n\n // Test the controller action\n $_POST[\"ip\"] = \"not.a.real.ip\";\n $res = $controller->indexActionPost();\n $this->assertEquals(\"Failed to fetch weather/location from entered information. Make sure entered data is correct.\", $res[0][\"result\"]);\n unset($_POST[\"ip\"]);\n\n $_POST[\"ipx\"] = \"194.47.150.9\";\n $res = $controller->indexActionPost();\n $this->assertEquals(\"Body is missing, or fetch failed for some other reason. Make sure you send IP (or lat&long) in body.\", $res[0][\"result\"]);\n }",
"public function testRenderIndexWrongCode()\n {\n // Populate data\n $this->_populate();\n \n // Make Request\n $this->withSession($this->customSession)\n ->call('GET', '/dashboard');\n\n $this->assertRedirectedTo('/dashboard/login');\n }",
"public function actionIndex() {\n error_log(\"asdfasdfasdfa\");\n echo \"index\";\n }",
"public function indexAction()\n {\n $e = $this->getException();\n if ($e instanceof \\FMUP\\Exception\\Status) {\n $this->errorStatus($e->getStatus());\n }\n $this->render();\n }",
"public function index_get()\n {\n $this->response([\n 'Operation' => \"error\",\n 'Message' => 'Please Post Data'\n ], REST_Controller::HTTP_NOT_FOUND); // NOT_FOUND (404) being the HTTP response code\n }",
"public function test_admin_index_b()\n {\n $this->request('GET', ['pages/memberdsc', 'index']);\n $this->assertResponseCode(404);\n }",
"public function testIndexActionGet()\n {\n $request = $this->di->get(\"request\");\n $request->setGet(\"ip\", \"8.8.8.8\");\n\n\n $res = $this->controller->indexActionGet();\n\n $body = $res->getBody();\n\n // var_dump($body);\n $this->assertInstanceOf(\"Anax\\Response\\ResponseUtility\", $res);\n $this->assertContains(\"Kolla vädret\", $body);\n }",
"public function indexAction() {\n\t\ttry{\n\t\t\t\n\t\t\t\n\t\t}catch (Exception $e){\n\t\t\tApplication_Model_Logging::lwrite($e->getMessage());\n\t\t\tthrow new Exception($e->getMessage());\n\t\t}\n\t}",
"public function indexAction()\n {\n Extra_ErrorREST::setInvalidHTTPMethod($this->getResponse());\n }",
"public function index() {\n\n\t\treturn $this->httpError(404);\n\t}",
"public function testGetActionMethodForInvalidAction()\n {\n $application = new BasicTestApplication(FilePath::parse('/var/www/'));\n $request = new BasicTestRequest(Url::parse('http://www.domain.com/'), new Method('GET'));\n $response = new BasicTestResponse();\n $controller = new BasicTestController();\n $controller->processRequest($application, $request, $response, 'foo', []);\n\n self::assertNull($controller->getActionMethod());\n }",
"public function test_index() {\r\n\t\t$result = $this->testAction('form_builders/form_builders/index/');\r\n }",
"public function test_actionAssetError()\n {\n $expected_output = \"HTTP/1.1 424 \\n\" .\n \"Content-type: application/json\\n\" .\n '{\"errors\":{\"general\":[\"Please send a valid GET. Include type, uploaded_name or is_used\"]}}';\n\n $this->assertControllerResponse('actionAsset', '/query/asset/', $expected_output);\n }",
"public function testIndex(){\r\n\t\t$destino = Enhance::getCodeCoverageWrapper('EventosControllerClass');\r\n\t\t$destino->index();\r\n\t\t$this->call('GET', 'admin');\r\n\t\t$this->assertResponseOk();\r\n\t}",
"public function testRenderIndexNoCode()\n {\n // Populate data\n $this->_populate();\n \n // Make Request\n $this->call('GET', '/dashboard');\n\n $this->assertRedirectedTo('/dashboard/login');\n }",
"public function testIndexResponseStatus()\n\t{\n\t\t$this->client->request('GET', '/orders/');\n\n\t\t$this->assertSame(Response::HTTP_OK, $this->client->getResponse()->getStatusCode());\n\t}",
"public function test_good_index_route()\n {\n //correct uri\n $response = $this->get('api/students');\n $response \n ->assertStatus(200)\n ->assertJson([['first_name'=> 'Chadwick'], ['first_name'=> 'Evelyn']]);\n }",
"public function test_PostIndex() {\n\t\t$this->testAction('/disease/index', array('method' => 'post'));\n\t}",
"public function actionError() {\n \n }",
"public function indexAction() \n {\n\t\tif (!isset($this->view->flagFailedSearch)) {\n\t\t\t$this->view->flagFailedSearch = FALSE;\n\t\t}\n }",
"public function testIndexMaintenance()\n {\n $response = $this->get('/api/maintenance');\n\n $response->assertStatus(200);\n }",
"public function testDbFailedAction()\n {\n $this->renderToSegment('body');\n }",
"public function testIndexResponseStatus()\n\t{\n\t\t$this->client->request('GET', '/merchants/');\n\n\t\t$this->assertSame(Response::HTTP_OK, $this->client->getResponse()->getStatusCode());\n\t}",
"public function errorAction()\n\t{\n\t}",
"public function indexAction() : string\n {\n // Deal with the action and return a response.\n return \"index\";\n }",
"public function testAnonIndex404() : void {\n $crawler = $this->client->request('GET', '/pln/33/box/');\n $this->assertSame(302, $this->client->getResponse()->getStatusCode());\n }",
"public function testIndexActionGet()\n {\n // Setup the controller\n $controller = new LocWeatherController();\n $controller->setDI($this->di);\n\n unset($_POST[\"ip\"]);\n unset($_GET[\"ip\"]);\n\n // Test the controller action\n $res = $controller->indexActionGet();\n $body = $res->getBody();\n $this->assertStringContainsString(\"<p>Skriv in koordinater nedan för att ta fram en väderleksrapport!</p>\", $body);\n }",
"public function testIndexActionIpNoLocation()\n {\n $request = $this->di->get(\"request\");\n $request->setGet(\"ip\", \"::1\");\n $res = $this->controller->indexAction();\n $this->assertIsArray($res);\n\n $json = $res[0];\n $this->assertEquals(\"Oops, platsinformation saknas\", $json[\"err\"]);\n }",
"public function failAction()\n {\n //====================================================================//\n // Return Dummy Response\n return new JsonResponse(array('result' => 'Ko'), 500);\n }",
"public function testIndex()\n {\n if ($this->skipBaseTests) $this->markTestSkipped('Skipping Base Tests');\n\n $items = $this->model->factory(5)->create();\n\n // Check index :: Get the json response from index and check if the above factory is in it\n $response = $this->get($this->baseUrl, ['FORCE_CONTENT_TYPE'=>'json'])->assertStatus(200);\n $data = $response->json()['data']??[];\n\n\n // Check that the returned data from the index, has at least as many items created by the factory\n $this->assertGreaterThan(0, count($data));\n $this->assertGreaterThanOrEqual(count($data), count($items));\n\n }",
"public function indexAction(){\n $this->view->render('404');\n\t}",
"public function test_index_rest()\n {\n $item = Rest::factory()->create();\n $response = $this->get('/api/v1/rest');\n $response->assertStatus(200);\n $response->assertJsonFragment([\n 'message' => $item->message,\n 'url' => $item->url\n ]);\n }",
"public function testIndexActionClientIp()\n {\n $request = $this->di->get(\"request\");\n $request->setServer(\"HTTP_CLIENT_IP\", \"127.0.0.1\");\n $res = $this->controller->indexAction();\n $this->assertIsArray($res);\n\n $json = $res[0];\n $this->assertEquals(\"Oops, platsinformation saknas\", $json[\"err\"]);\n }",
"public function testDispatchErrorNoController()\n {\n $this->expectException(ResourceNotFoundException::class);\n\n $this->uut->dispatch($this->buildRequest('/unknown-controller'));\n }",
"public function actionIndex() {\n\t\tif ($error = Yii::app()->errorHandler->error) {\n\t\t\tif (Yii::app()->request->isAjaxRequest)\n\t\t\t\techo $error['message'];\n\t\t\telse\n\t\t\t\t$this->render('index', $error);\n\t\t}\n\t}",
"public function testInvalidRouteAction()\n {\n $res = $this->controller->catchAll();\n $body = $res->getBody();\n $this->assertStringContainsString(\"Route not found\", $body);\n }",
"public function testIndex()\n {\n\n\n\n\n\n }",
"protected function indexAction() {}",
"public function testGetRequestWithoutParametersIsRoutedToIndexAction()\n\t{\n\t\t$this->request->setMethod('GET');\n\t\t$this->dispatch('/api/event');\n\n\t\t$this->assertModule('api');\n\t\t$this->assertController('event');\n\t\t$this->assertAction('index');\t\t\n\t}",
"abstract public function actionIndex();",
"abstract function indexAction();",
"public function testIndexActionForwaredIp()\n {\n $request = $this->di->get(\"request\");\n $request->setServer(\"HTTP_X_FORWARDED_FOR\", \"127.0.0.1\");\n $res = $this->controller->indexAction();\n $this->assertIsArray($res);\n\n $json = $res[0];\n $this->assertEquals(\"Oops, platsinformation saknas\", $json[\"err\"]);\n }",
"public function actionError() {\n if ($error = Yii::app()->errorHandler->error) {\n\t\t\t$this->sendRestResponse(500,array(\n\t\t\t\t'status' => false,\n\t\t\t\t'message' => $error['message'],\n\t\t\t\t'data' => $error,\n\t\t\t));\t\t\t\n }\n\t}",
"public function testIndex()\n {\n Page::create([\n 'slug' => 'index',\n 'title' => 'Test Index',\n ]);\n $this->get('/')->assertStatus(200)->assertSee('Test Index');\n }",
"public function testMeiliToolsException(): void\n {\n config(['scout.driver' => null]);\n\n $this->expectException(MeiliToolsException::class);\n\n $action = $this->app->make(EnsuresIndexExists::class);\n $details = ($action)(self::INDEX);\n }",
"public function testAdminIndex404() : void {\n $this->login('user.admin');\n $crawler = $this->client->request('GET', '/pln/33/box/');\n $this->assertSame(404, $this->client->getResponse()->getStatusCode());\n }",
"public function testFindPageThrowsErrorMessageForInvalidItemNumber()\n\t{\n\t\t$this->mock('Item')->shouldReceive('search')->once()->andReturn(Null);\n\t\t$this->getActionWithException('ItemsController@show', 1, 404, 'Item 1 was not found');\n\t}",
"public function test_index_returns_view()\n {\n $controller = new UsersController();\n $view = $controller->index();\n $this->assertEquals('admin.users.index', $view->getName());\n $this->assertArrayHasKey('users', $view->getData());\n }",
"public function testIndexDenyNotAdmin() {\n\t\t$this->setExpectedException('MissingActionException');\n\t\t$userRoles = [\n\t\t\tUSER_ROLE_USER => '',\n\t\t\tUSER_ROLE_USER | USER_ROLE_SECRETARY => 'secret',\n\t\t\tUSER_ROLE_USER | USER_ROLE_HUMAN_RESOURCES => 'hr',\n\t\t];\n\t\t$opt = [\n\t\t\t'method' => 'GET',\n\t\t];\n\t\tforeach ($userRoles as $userRole => $userPrefix) {\n\t\t\t$userInfo = [\n\t\t\t\t'role' => $userRole,\n\t\t\t\t'prefix' => $userPrefix,\n\t\t\t];\n\t\t\t$this->applyUserInfo($userInfo);\n\t\t\t$this->generateMockedController();\n\t\t\t$url = [\n\t\t\t\t'controller' => 'logs',\n\t\t\t\t'action' => 'index',\n\t\t\t];\n\t\t\tif (!empty($userPrefix)) {\n\t\t\t\t$url['prefix'] = $userPrefix;\n\t\t\t\t$url[$userPrefix] = true;\n\t\t\t}\n\t\t\t$this->testAction($url, $opt);\n\t\t\t$this->checkIsNotAuthorized();\n\t\t\t$this->checkRedirect(true);\n\t\t}\n\t}",
"public function testIndex()\n {\n $this->getBrowser()->\n getAndCheck('partenaire', 'index', '/partenaire/index', 404)\n ;\n }",
"public function testSearchActionCanBeAccessed()\n {\n $this->elasticsearchClientMock->expects($this->once())\n ->method('getIndexStats')\n ->will($this->returnValue(array()));\n\n $serviceManager = $this->controller->getServiceLocator();\n $serviceManager->setAllowOverride(true);\n $serviceManager->setService('ElasticsearchManager', $this->elasticsearchClientMock);\n\n $this->routeMatch->setParam('action', 'search');\n\n $result = $this->controller->dispatch($this->request);\n $response = $this->controller->getResponse();\n\n $this->assertEquals(200, $response->getStatusCode());\n }",
"public function testIndexRedirect()\n {\n $response = $this->get('/');\n\n $response->assertStatus(302);\n }"
] | [
"0.8301092",
"0.81969786",
"0.7672064",
"0.75928533",
"0.75710267",
"0.74921393",
"0.7352798",
"0.7274661",
"0.7235742",
"0.72279215",
"0.7203987",
"0.7203978",
"0.71928483",
"0.718473",
"0.71792525",
"0.7144754",
"0.71398324",
"0.70941406",
"0.70781696",
"0.70765716",
"0.7073462",
"0.69981843",
"0.69739294",
"0.6971501",
"0.69481486",
"0.69157606",
"0.6862777",
"0.68621385",
"0.6845079",
"0.6825212",
"0.6802732",
"0.67796904",
"0.67538404",
"0.67445946",
"0.67435825",
"0.6735052",
"0.67133754",
"0.66763735",
"0.6672307",
"0.6664794",
"0.6664693",
"0.6658792",
"0.6658294",
"0.6649481",
"0.6648951",
"0.6644655",
"0.6644655",
"0.6633437",
"0.662531",
"0.66057545",
"0.65824556",
"0.65757334",
"0.6552319",
"0.65424585",
"0.6517341",
"0.65155065",
"0.6509342",
"0.6504897",
"0.6503647",
"0.65019214",
"0.6488193",
"0.64857966",
"0.6467208",
"0.6463744",
"0.6462767",
"0.64581674",
"0.6447978",
"0.6446189",
"0.6437227",
"0.642367",
"0.6421492",
"0.64194876",
"0.64194316",
"0.64183366",
"0.64115083",
"0.6407816",
"0.6403195",
"0.6398598",
"0.6397946",
"0.6397408",
"0.63913894",
"0.63836884",
"0.6381864",
"0.6380879",
"0.6369326",
"0.636552",
"0.6352377",
"0.63501483",
"0.63484955",
"0.6345686",
"0.634337",
"0.63396114",
"0.63363576",
"0.63357884",
"0.6331445",
"0.6324321",
"0.6322503",
"0.6309361",
"0.63012123",
"0.6300456"
] | 0.8300544 | 1 |
Adds a file to the $_FILE variable and calls the create controller | public function test_actionAssetCreate($file_path = "", array $post = [])
{
$_FILES = [
'file' => [
'tmp_name' => $file_path,
'name' => 'Hello'
]
];
$_POST = $post;
$_SERVER['REDIRECT_URL'] = '/create/';
ob_start();
$controller = new $this->controller_name(rand(0,1000));
Reflection::setProperty('allowGenerateHeader', $this->controller_name, $controller, false);
Reflection::callMethod('actionIndex', $this->controller_name, [], $controller);
$response = ob_get_contents();
ob_end_clean();
$json_response = str_replace("HTTP/1.1 200 OK\n", "", $response);
$json_response = str_replace("Content-type: application/json\n", "", $json_response);
$asset_json = json_decode($json_response);
$this->assertTrue(Asset::model()->fileName($asset_json->public_url)->exists());
if (Asset::model()->fileName($asset_json->public_url)->exists()) {
$this->assertCreationEquals(Asset::model()->fileName($asset_json->public_url)->find());
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function new_file()\n {\n $input = JFactory::getApplication()->input;\n\n $ecr_project = $input->get('ecr_project');\n\n if($input->get('do_action') == 'new_file')\n {\n $reqPath = $input->getPath('act_path');\n $reqName = $input->getPath('act_name');\n\n $path = JPath::clean(JPATH_ROOT.DS.$reqPath.DS.$reqName);\n\n if(is_dir($path))\n {\n EcrHtml::message(array(jgettext('This is a folder'), $path), 'error');\n\n return;\n }\n\n if(is_file($path))\n {\n EcrHtml::message(array(jgettext('The file already exists'), $path), 'error');\n\n return;\n }\n\n //-- @todo file from template\n $template = 'new file';\n\n if( ! is_int(file_put_contents($path, $template)))\n {\n EcrHtml::message(array(jgettext('Unable to create file'), $path), 'error');\n\n return;\n }\n\n //-- Clean the cache\n JFactory::getCache('EasyCreator_'.$ecr_project)->clean();\n\n echo '*OK*';\n\n return;\n }\n\n $this->actForm(jgettext('New file'), 'add', jgettext('Create'));\n $this->processForm('new_file', $ecr_project, 'file', 'new', true, true);\n }",
"protected function createFile() {}",
"public function addFile($file);",
"public function createFile(File $file): void;",
"function create($file = null) {\n $file = (isset($this->_file) && !$file) ? $this->_file : $file;\n \n \tif (!Fire_File_Helper::exists($file)) {\n $io = new Fire_File_IO_Helper($file);\n $io->open('w+');\n $io->close();\n } else {\n Fire_Error::throwError(sprintf('File \"%s\" already exists.',\n $file\n ), __FILE__, __LINE__\n );\n }\n \n }",
"public function create_from_file($file);",
"public function add(){\n\t\t\n\t\t// Open or create file\n\t\t$f = fopen($this->file, 'wb');\n\t\tfclose($f);\n\t}",
"public function addFileAction() \n {\n // Get the file name from GET variable\n $fileName = $this->params()->fromQuery('name', '');\n \n $userId = $this->params()->fromQuery('id', '');\n \n // Check whether the user needs a thumbnail or a full-size image\n $isThumbnail = (bool)$this->params()->fromQuery('thumbnail', false);\n \n // Validate input parameters\n if (empty($fileName) || strlen($fileName)>128) {\n throw new \\Exception('File name is empty or too long');\n }\n \n // Get path to image file\n $fileName = $this->imageManager->getAddImagePathByName($fileName, $userId);\n \n if($isThumbnail) { \n // Resize the image\n $fileName = $this->imageManager->resizeImage($fileName);\n }\n \n // Get image file info (size and MIME type).\n $fileInfo = $this->imageManager->getImageFileInfo($fileName); \n if ($fileInfo===false) {\n // Set 404 Not Found status code\n $this->getResponse()->setStatusCode(404); \n return;\n }\n \n // Write HTTP headers.\n $response = $this->getResponse();\n $headers = $response->getHeaders();\n $headers->addHeaderLine(\"Content-type: \" . $fileInfo['type']); \n $headers->addHeaderLine(\"Content-length: \" . $fileInfo['size']);\n \n // Write file content \n $fileContent = $this->imageManager->getImageFileContent($fileName);\n if($fileContent!==false) { \n $response->setContent($fileContent);\n } else { \n // Set 500 Server Error status code\n $this->getResponse()->setStatusCode(500);\n return;\n }\n \n if($isThumbnail) {\n // Remove temporary thumbnail image file.\n unlink($fileName);\n }\n \n // Return Response to avoid default view rendering.\n return $this->getResponse();\n }",
"private function add_file()\n {\n \t$helperPluginManager = $this->getServiceLocator();\n \t$serviceManager = $helperPluginManager->getServiceLocator();\n \t\n \t$file = $serviceManager->get('PM/Model/Files');\n \t\n \t$result = $file->getFileById($this->pk);\n \tif($result)\n \t{\n \t\tif($result['company_name'] != '' && $result['company_id'] && $result['company_id'] > 0)\n \t\t{\n \t\t\t$company_url = $this->view->url('companies/view', array('company_id' => $result['company_id']));\n \t\t\t$this->add_breadcrumb($company_url, $result['company_name']);\n \t\t}\n \t\t\n \t\tif($result['project_name'] != '' && $result['project_id'] && $result['project_id'] > 0)\n \t\t{ \t\t\n \t\t\t$project_url = $this->view->url('projects/view', array('project_id' => $result['project_id']));\n \t\t\t$this->add_breadcrumb($project_url, $result['project_name']);\n \t\t}\n \t\t\n \t\tif($result['task_name'] != '' && $result['task_id'] && $result['task_id'] > 0)\n \t\t{\n \t\t\t$task_url = $this->view->url('tasks/view', array('task_id' => $result['task_id']));\n \t\t\t$this->add_breadcrumb($task_url, $result['task_name']);\n \t\t}\n \t\t\n \t\t$file_url = $this->view->url('pm', array('module' => 'pm','controller' => 'files','action'=>'view', 'id' => $result['file_id']), null, TRUE);\n \t\t$this->add_breadcrumb($file_url, 'File: '.$result['name'], TRUE); \t\t\n \t}\n }",
"function create_file($file_path, $content=''){\r\n die( __FILE__ . ' : ' . __LINE__ );\r\n }",
"public function actionCreate()\n {\n $model = new File();\n\n if ($model->load(Yii::$app->request->post()) && $model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"public function createFile(Request $request)\n {\n if( !$this->checkPermissions(['view-my-files']) ){ return $this->genResponse(401); };\n\n return $this->doCreateFile($request);\n }",
"public function setFile($file) {}",
"public function addFile(\\Models\\File $file) {\n $this->files[] = $file;\n }",
"public function uploadFile(){\n\n if (!$this->request->is('post'))\n {\n $this->setErrorMessage('Post method required');\n return;\n }\n\n if (!isset($this->request->data['currentPath']) ||\n !isset($this->request->params['form']) ||\n !isset($this->request->params['form']['idia'])\n ){\n $this->setErrorMessage('Invalid parameters');\n return;\n }\n\n $path = ltrim(trim($this->request->data['currentPath']), DS);\n $tokens = explode(DS, strtolower($path));\n\n ($tokens[0] == 'root') && ($tokens = array_slice($tokens, 1, null, true));\n\n $path = implode(DS, $tokens);\n $fullPath = WWW_FILE_ROOT . strtolower($path);\n\n if(!is_dir($fullPath)){\n $this->setErrorMessage('Invalid path');\n return;\n }\n\n if(is_file($fullPath . DS . strtolower($this->request->params['form']['idia']['name']))){\n $this->setErrorMessage('File with similar name already exist');\n return;\n }\n\n $newFile = new File($fullPath . DS . strtolower($this->request->params['form']['idia']['name']), true );\n $newFile->close();\n\n $tempFile = new File(($this->request->params['form']['idia']['tmp_name']));\n $tempFile->copy($fullPath . DS .$this->request->params['form']['idia']['name']);\n $tempFile->delete();\n\n $this->set(array(\n 'status' => 'ok',\n \"message\" => 'successful',\n \"_serialize\" => array(\"message\", \"status\")\n ));\n }",
"public function addPostFile($name, $file, $content_type = null) {}",
"public function createFile($file){\n \t\ttry{\n\t \t\t$f=fopen($file,'w'); \n\t \t\t\n\t \t\tfclose($f);\n\t \t\tif(!file_exists($file)) {\n\t \t\t\t$this->log(\"UNBXD_MODULE:Couldn't create the file\");\n\t \t\t\treturn false;\n\t \t\t}\n\t \t\t$this->log(\"UNBXD_MODULE: created the file\");\n\t \t\treturn true;\n \t\t} catch (Exception $ex) {\n\t \t$this->log(\"UNBXD_MODULE:Error while creating the file\");\n\t \t$this->log($ex->getMessage());\n\t \treturn false;\n\t }\n \t}",
"function create_new(){\n\t\tif($this->request->post() && ($d = $this->form->validate($this->params))){\n\t\t\tclass_exists(\"TemporaryFileUpload\"); // make sure that all the relevant constants are defined\n\n\t\t\tif(!TEMPORARY_FILE_UPLOADS_ENABLED){\n\t\t\t\t$this->_report_fail(_(\"Temporary file uploading is not enabled\"),array(\n\t\t\t\t\t\"status_code\" => 403\n\t\t\t\t));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t$file = $d[\"file\"];\n\n\t\t\tif($file->getTotalFileSize() > TEMPORARY_FILE_UPLOADS_MAX_FILESIZE){\n\t\t\t\t$this->_report_fail(sprintf(_(\"The file exceeds the maximum file size, which is %s\"),$this->_format_bytes(TEMPORARY_FILE_UPLOADS_MAX_FILESIZE)));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// TODO: To be removed...\n\t\t\tif($file->getFileName()==\"error.txt\"){\n\t\t\t\t$this->_report_fail(\"Testing error message!\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif($file->chunkedUpload()){\n\t\t\t\t$token = $file->getToken();\n\t\t\t\tif($file->firstChunk()){\n\t\t\t\t\t$temporary_file_upload = TemporaryFileUpload::CreateNewRecordByHttpUploadedFile($file);\n\t\t\t\t\t$this->session->s(\"temporary_file_upload_id_$token\",$temporary_file_upload->getId());\n\n\t\t\t\t\t$this->_selfclean();\n\t\t\t\t}else{\n\t\t\t\t\t$id = $this->session->g(\"temporary_file_upload_id_$token\");\n\t\t\t\t\tif(is_null($id)){\n\t\t\t\t\t\t$this->_report_fail(_(\"Error 1\"));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t$temporary_file_upload = TemporaryFileUpload::GetInstanceById($id);\n\t\t\t\t\tif(!$temporary_file_upload){\n\t\t\t\t\t\t$this->_report_fail(_(\"Error 2\"));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t$full_path = $temporary_file_upload->getFullPath();\n\t\t\t\t\tif(!file_exists($full_path)){\n\t\t\t\t\t\t$this->_report_fail(_(\"Error 3 (file $full_path doen't exist)\"));\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t$temporary_file_upload->appendChunk($file);\n\t\t\t\t\tunlink($file->getTmpFileName());\n\t\t\t\t}\n\t\t\t}else{\n\n\t\t\t\t$temporary_file_upload = TemporaryFileUpload::CreateNewRecordByHttpUploadedFile($file);\n\n\t\t\t\t$this->_selfclean();\n\n\t\t\t}\n\n\t\t\t// the mime type is verified at the upload end\n\t\t\tif($temporary_file_upload->fullyUploaded()){\n\t\t\t\t$mime_type = Files::DetermineFileType($temporary_file_upload->getFullPath(),[\"original_filename\" => $temporary_file_upload->getFilename()]);\n\t\t\t\tif($mime_type && $temporary_file_upload->getMimeType()!==$mime_type){\n\t\t\t\t\t$temporary_file_upload->s(\"mime_type\",$mime_type);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->api_data = $this->_dump_temporary_file_upload($temporary_file_upload);\n\t\t}\n\t}",
"abstract public function createFile(FileData $fileData);",
"public function addFile($file = null){\n $client = Yii::$app->fileService;\n return $client->add(['sid'=>$this->sid,'file'=>$file]);\n }",
"public function createFile()\n {\n return $this->addExcludesNameEntry($this->files);\n }",
"function post_file()\r\n\t{\r\n\r\n\t}",
"public static function setFile($file) {}",
"protected static function file()\n {\n }",
"public function createAction()\n {\n $entity = new File();\n $request = $this->getRequest();\n $form = $this->createForm(new FileType(), $entity);\n $form->bindRequest($request);\n\n if ($form->isValid()) {\n $em = $this->getDoctrine()->getEntityManager();\n $em->persist($entity);\n $em->flush();\n\n return $this->redirect($this->generateUrl('hypo_test_file_show', array('id' => $entity->getId())));\n \n }\n\n return array(\n 'entity' => $entity,\n 'form' => $form->createView()\n );\n }",
"public function addFileTask(string $fileName, $_globals = NULL): void {}",
"private function createAsset($file_name = \"\")\n {\n $this->controller_name = 'CreateController';\n\n $_FILES = [\n 'file' => [\n 'tmp_name' => TestController::COMPARISON_DIRECTORY . self::DEFAULT_FILE_NAME,\n 'name' => $file_name\n ]\n ];\n\n // default thumbnail post\n $_POST = [\n 'actions' => [\n [\n Action_Image::NAME_KEY => \"thumbnail\",\n Action_Image::WIDTH_KEY => 150,\n Action_Image::HEIGHT_KEY => 150,\n self::EXPECTED_WIDTH_KEY => 150,\n self::EXPECTED_HEIGHT_KEY => 150\n ]\n ]\n ];\n\n $_SERVER['REDIRECT_URL'] = '/create/';\n ob_start();\n $controller = new $this->controller_name(rand(0,1000));\n Reflection::setProperty('allowGenerateHeader', $this->controller_name, $controller, false);\n Reflection::callMethod('actionIndex', $this->controller_name, [], $controller);\n $response = ob_get_contents();\n ob_end_clean();\n\n $json_response = str_replace(\"HTTP/1.1 200 OK\\n\", \"\", $response);\n $create_json_response = str_replace(\"Content-type: application/json\\n\", \"\", $json_response);\n\n $this->controller_name = 'QueryController';\n\n return $create_json_response;\n }",
"function addFile($filename){\n\t\t$this->_Items[] = new StringBufferFileItem($filename);\n\t}",
"public function add() {\n $this->usePostRequest();\n //$this->dbFileModel->add_file();\n }",
"private function createFile($file)\n\t{\n\t\t//exit;\n\n\t\t$extension = $file->guessExtension();\n\t\t$dir = $this->getUploadDir();\n\t\tif (!$extension) {\n\t\t\t$extension = 'bin';\n\t\t}\n\t\t$newName = $this->createRandCode() . '.' . $extension;\n\t\t$file->move($dir, $newName);\n\t\t/*\n\t\t * Создание и сохранение информации о файле\n\t\t */\n\t\t$File = new File();\n\t\t$File->setName($newName);\n\t\t$File->setType($file->getClientMimeType());\n\t\t$File->setSize($file->getClientSize());\n\t\treturn $File;\n\t}",
"private function _addFile($file, $params)\n {\n $this->_files[basename($file)] = $this->_element->insertFile(\n basename($file),\n $params['role'],\n $this->_getFileInsertionPoint(basename($file))\n );\n }",
"public function getFile()\r\n {\r\n // check permission\r\n $this->_check_group_permission();\r\n\r\n $access_full_path = $this->_get_access_full_path();\r\n $filename = $this->input->get_post('filename');\r\n $alt = $this->input->get_post('alt');\r\n\r\n // insert userlog\r\n if (empty($alt))\r\n {\r\n $this->_insert_userlog(Userlog_model::FILE_PREVIEW);\r\n }\r\n\r\n if ($this->files_model->is_document($filename))\r\n {\r\n header('Location: /files/preview?'. $_SERVER['QUERY_STRING']);\r\n return;\r\n }\r\n if ($this->files_model->is_extension($filename, 'nes'))\r\n {\r\n header('Location: /files/jsnes?'. $_SERVER['QUERY_STRING']);\r\n return;\r\n }\r\n if ( ! $this->files_model->is_browser_viewable($filename))\r\n {\r\n header('Location: /files/show_download?'. $_SERVER['QUERY_STRING']);\r\n return;\r\n }\r\n\r\n $this->files_model->get_file($access_full_path, $filename, $alt);\r\n }",
"function createFile($file, $parent_id = null){\n // Opening the google client with existing refresh_token.\n // $client = new Google_Client;\n // $client->refreshToken(Auth::user()->refresh_token);\n\n // // // Opening the user drive using the google client.\n // $drive = new Google_Service_Drive($client);\n\n // Uploading file\n $name = gettype($file) === 'object' ? $file->getClientOriginalName() : $file;\n $fileMetadata = new Google_Service_Drive_DriveFile([\n 'name' => time().'_'.$name,\n 'parent' => $parent_id ? $parent_id : 'root'\n ]);\n\n $content = gettype($file) === 'object' ? File::get($file) : Storage::get($file);\n $mimeType = gettype($file) === 'object' ? File::mimeType($file) : Storage::mimeType($file);\n\n $file = $this->drive->files->create($fileMetadata, [\n 'data' => $content,\n 'mimeType' => $mimeType,\n 'uploadType' => 'multipart',\n 'fields' => 'id'\n ]);\n\n // Changing file permission.\n $userPermission = new Google_Service_Drive_Permission(array(\n 'type' => 'anyone',\n 'role' => 'reader'\n ));\n\n $request = $this->drive->permissions->create($file->id, $userPermission, array('fields' => 'id'));\n\n if($request){\n return \"https://drive.google.com/file/d/\".$file->id.\"/preview\";\n }\n }",
"public function create()\n\t{\n\t\t$this->auth->restrict('Upload.Developer.Create');\n\n\t\tif (isset($_POST['save']))\n\t\t{\n\t\t\tif ($insert_id = $this->save_upload())\n\t\t\t{\n\t\t\t\t// Log the activity\n\t\t\t\t$this->activity_model->log_activity($this->current_user->id, lang('upload_act_create_record').': ' . $insert_id . ' : ' . $this->input->ip_address(), 'upload');\n\n\t\t\t\tTemplate::set_message(lang('upload_create_success'), 'success');\n\t\t\t\tredirect(SITE_AREA .'/developer/upload');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tTemplate::set_message(lang('upload_create_failure') . $this->upload_model->error, 'error');\n\t\t\t}\n\t\t}\n\t\tAssets::add_module_js('upload', 'upload.js');\n\n\t\tTemplate::set('toolbar_title', lang('upload_create') . ' Upload');\n\t\tTemplate::render();\n\t}",
"function addFile($path)\n {\n }",
"public function indexNewFile(File $file)\n {\n $query = $this->pdo->prepare(\"INSERT INTO rt_files VALUES(:id_bind, :name_bind)\");\n $query->bindValue(\":id_bind\", $file->getId(), \\PDO::PARAM_INT);\n $query->bindValue(\":name_bind\", $file->getClientFilename(), \\PDO::PARAM_STR);\n $query->execute();\n }",
"public function fileAction() \n {\n // Get the file name from GET variable\n $fileName = $this->params()->fromQuery('name', '');\n \n $postId = $this->params()->fromQuery('id', '');\n \n // Check whether the user needs a thumbnail or a full-size image\n $isThumbnail = (bool)$this->params()->fromQuery('thumbnail', false);\n \n // Validate input parameters\n if (empty($fileName) || strlen($fileName)>128) {\n throw new \\Exception('File name is empty or too long');\n }\n \n // Get path to image file\n $fileName = $this->imageManager->getImagePathByName($fileName, $postId);\n \n if($isThumbnail) { \n // Resize the image\n $fileName = $this->imageManager->resizeImage($fileName);\n }\n \n // Get image file info (size and MIME type).\n $fileInfo = $this->imageManager->getImageFileInfo($fileName); \n if ($fileInfo===false) {\n // Set 404 Not Found status code\n $this->getResponse()->setStatusCode(404); \n return;\n }\n \n // Write HTTP headers.\n $response = $this->getResponse();\n $headers = $response->getHeaders();\n $headers->addHeaderLine(\"Content-type: \" . $fileInfo['type']); \n $headers->addHeaderLine(\"Content-length: \" . $fileInfo['size']);\n \n // Write file content \n $fileContent = $this->imageManager->getImageFileContent($fileName);\n if($fileContent!==false) { \n $response->setContent($fileContent);\n } else { \n // Set 500 Server Error status code\n $this->getResponse()->setStatusCode(500);\n return;\n }\n \n if($isThumbnail) {\n // Remove temporary thumbnail image file.\n unlink($fileName);\n }\n \n // Return Response to avoid default view rendering.\n return $this->getResponse();\n }",
"public function openFile() {\n $this->file = fopen($this->_dir . $this->_filename,\"r\");\n }",
"function add_file($file) {\n if(isset($_POST[\"submit\"])) {\n $check = getimagesize($file[\"tmp_name\"]);\n if($check == false) {\n throw new Exception(\"File is not an image.\");\n }\n }\n\n // Check file size\n if ($file[\"size\"] > $this->max_size) {\n throw new Exception(\"Sorry, your file is too large.\");\n }\n\n // Allow certain file formats\n $ext = strtolower(pathinfo($file[\"name\"],PATHINFO_EXTENSION));\n $allowed = in_array($ext,explode(\",\",$this->allowed_files));\n if(!$allowed) {\n throw new Exception(\"Sorry, only {$this->allowed_files} files are allowed.\");\n }\n\n # find a free path in the archive\n do{\n $target_file = $this->get_path($file[\"name\"]);\n } while(file_exists($target_file));\n\n // Create the directory if it does not exist\n $target_path = substr($target_file,0,strripos($target_file,\"/\"));\n if(!is_dir($target_path)) mkdir($target_path,0750,true); \n\n if (!move_uploaded_file($file[\"tmp_name\"], $target_file)) {\n throw new Exception(\"Sorry, there was an error uploading your file.\");\n }\n return $target_file;\n }",
"public function newFile($filename, $ftype, $fsize, $created) {\n\n\t\t$this->pdo = config_db::getConnected();\n\n\t\t//new record in table files\n\t\t$statement = $this->pdo->prepare(\"INSERT INTO `files` (filename, ftype, filesize, created_at) VALUES (:filename, :ftype, :fsize, :created)\");\n\t\t$result = $statement->execute(array('filename' => $filename, 'ftype' => $ftype, 'fsize' => $fsize, 'created' => $created));\n\n\t\t$userid = $_SESSION['userid'];\n\t\t$fileid = $this->pdo->lastInsertId();\n\n\t\t//new record in table user_files\n\t\t$stmt = $this->pdo->prepare(\"INSERT INTO `user_files` (uid, fileid) VALUES (:userid, :fileid)\");\n\t\t$stmt->execute(array('userid' => $userid, 'fileid' => $fileid));\n\n\t\t\n\t\tif ($_FILES['upload']['name'] != \"\") {\n\n\t\t // file uploaded, remove it\n\t\t $moved = move_uploaded_file($_FILES['upload']['tmp_name'], config_db::FILEFOLDER .'/'. $_FILES['upload']['name']);\n\t }\n\n\t\tif ($moved) {\n\t\t\techo \"Datei wurde verschoben\";\n\t\t} else {\n\t\t\techo \"Datei konnte nicht verschoben werden\";\n\t\t}\n\n\n\t}",
"public function create_file($file){\n\n // handle ekstensi\n if (empty($this->mime[$file['type']])) {\n // jika extensi tidak terdaftar, ambil dari nama file\n $path = $_FILES['image']['name'];\n $ext = pathinfo($path, PATHINFO_EXTENSION);\n } else {\n $ext = '.'.$this->mime[$file['type']]; // tambah titik sebelum ekstensi\n }\n\n $folder = $this->folder.'/'.$this->user['folder'].'/'; // path folder user\n $file_path = $folder.$this->encrypt_name();// encrypt nama \n $this->confirm_folder($folder); // pastikan folder ada\n $this->ck->putObjectFile($file['tmp_name'], \n $this->bucket,\n $file_path.$ext, // tambah ekstensi\n $this->ck::ACL_PUBLIC_READ // izin dibaca publik\n );\n // upload thumb\n if (isset($file['tmp_name_thumb'])){\n $this->ck->putObjectFile($file['tmp_name_thumb'], \n $this->bucket,\n $file_path.'_thumb'.$ext, // tambah suffix dan ekstensi\n $this->ck::ACL_PUBLIC_READ // izin dibaca publik\n );\n }\n\n $result = array(\n 'url'=>$this->create_url($file_path.$ext),\n 'error'=>false,\n 'success'=>true\n );\n return $result;\n }",
"protected function openFile ()\n {\n $this->file_handle = fopen($this->file_path, \"a+\");\n }",
"public function create()\n {\n //加载文件上传模板\n return view(\"Admin.Req.files\");\n }",
"function addFile(FileUpload $file)\n\t{\n\t\t$file->move($this->getUniqueFilePath());\n\t\t$this->query('INSERT INTO files (queueID, created, data, name) VALUES (\"' . sqlite_escape_string($this->getQueueID()) . '\",' . time() . ',\\'' . sqlite_escape_string(serialize($file)) . '\\', \\'' . sqlite_escape_string($file->getName()) . '\\')');\n\t}",
"private function createFile()\n {\n $payload = json_decode(file_get_contents('php://input'));\n if (!isset($payload)) {\n $this->info = 'No input data';\n return false;\n }\n $fileName = strtolower($payload->path) . CONTENT_EXT;\n if (file_exists(CONTENT_DIR . $fileName)) {\n $this->info = 'File exist';\n return false;\n }\n if (\n strlen($fileName) > strlen(CONTENT_EXT) &&\n file_put_contents(CONTENT_DIR . $fileName, $payload->content)\n ) {\n return true;\n }\n return false;\n }",
"function addFile(File $newFile)\r\n\t{\r\n\t\tif( file_exists( $this->path . '/' . $newFile->getName( ) ) )\r\n\t\t{\r\n\t\t\t$this->filesCollection->add( $newFile );\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error( \"arquivo inexistente! não foi possível adicionar\" );\r\n\t\t}\r\n\t}",
"public function setFileName($file);",
"public function store(CreateFilesRequest $request)\n\t{\n\t\t//obtenemos el campo file definido en el formulario\n\t\t$file = $request->file('file');\n\n\t\t// dd($request->file('file'));\n\n\t\t//obtenemos las propiedades del archivo\n\t\t$nombre\t\t= $file->getClientOriginalName();\n\t\t$mimeType \t= $file->getClientMimeType();\n\t\t$size \t\t= $file->getClientSize();\n\t\t$extension \t= $file->guessClientExtension();\n\t\t// Obtener path del archivo temporal\n\t\t$path \t\t= $file->getRealPath();\n\n\t\t$message \t= 'El archivo ' . $nombre . ' se ha subido con éxito.';\n\n\t\t//indicamos que queremos guardar un nuevo archivo en el disco local\n\t\t// dd(storage_path());\n\n\t\t\\Storage::disk('local')->put($nombre, \\File::get($file));\n\n\t\t// $file = Files::create($request->all());\n\n\t\t$myfile = new Files;\n\n\t\t// asignamos las propiedades para guardarlas en la base\n\t\t$myfile->name \t\t\t\t= $request->name;\n\t\t$myfile->mime \t\t\t\t= $mimeType;\n\t\t$myfile->original_filename\t= $nombre;\n\t\t$myfile->filepath\t\t\t= 'files';\n\t\t$myfile->extension\t\t\t= $extension;\n\t\t$myfile->size \t\t\t\t= $size;\n\t\t$myfile->description \t\t= $request->description;\n\n\t\t$myfile->save();\n\n\t\tSession::flash('message', $message);\n\n\t\treturn redirect()->route('admin.files.create');\n\t}",
"public function addFile($file) {\n $this->files[$file->getName()] = $file;\n }",
"private function createFile($file) {\n\t\tif (!@touch($file)) {\n\t\t\tthrow new FlintstoneException('Could not create file ' . $file);\n\t\t}\n\t}",
"private function auto_create(){\n\n if ( $this->firebug ) \\FB::info(get_called_class().\": auto creating file\");\n\n $root = $this->use_codeza_root ? (string)new Code_Alchemy_Root_Path() : '';\n\n $filename = $root . $this->template_file;\n\n if ( file_exists($filename) && ! file_exists($this->file_path)) {\n\n $copier = new Smart_File_Copier($filename,$this->file_path,$this->string_replacements,false);\n\n $copier->copy();\n\n }\n\n\n\n }",
"function addFile($file_name,$uploaded_file,$description=null) {\n\t\t\n\t\t\t$this->success = false;\n\t\t\t\t\t\t\n\t\t\t// if the file already exists, update it.\n\t\t\tif (!$file = $this->files()->contains('file_name',$file_name)) { \n\t\t\t\t// create a new file\n\t\t\t\t$file = $this->POD->getFile();\n\t\t\t}\n\t\t\n\t\t\tif ($uploaded_file['name']!='') {\n\t\t\t\t\t\n\t\t\t\t\t$file->set('file_name',$file_name);\n\t\t\t\t\t$file->set('original_name',$uploaded_file['name']);\n\t\t\t\t\t$file->set('tmp_name',$uploaded_file['tmp_name']);\n\t\t\t\t\t$file->set('contentId',$this->get('id'));\n\t\t\t\t\t$file->set('description',$description);\n\t\t\t\t\t$file->save();\t\t\n\t\t\t\t\tif (!$file->success()) {\n\t\t\t\t\t\t$this->throwError($file->error());\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->success = true;\n\t\t\t\t\t\treturn $file;\n\t\t\t\t\t}\n\t\t\t} else if ($uploaded_file['error']!= 0 && $uploaded_file['error']!= UPLOAD_ERR_NO_FILE) {\n\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_INI_SIZE) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' exceeds the maximum allowed upload size on this server.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_FORM_SIZE) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' exceeds the maximum allowed upload size for this form.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_PARTIAL) {\n\t\t\t\t\t$this->throwError('The file ' . $file_name . ' did not successfully upload.');\n\t\t\t\t}\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_NO_TMP_DIR) {\n\t\t\t\t\t$this->throwError('PeoplePods cannot find a temporary folder to store the uploaded files.');\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_CANT_WRITE) {\n\t\t\t\t\t$this->throwError('PeoplePods cannot write to the temporary folder.');\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif ($uploaded_file['error'] == UPLOAD_ERR_EXTENSION) {\n\t\t\t\t\t$this->throwError('A PHP extension stopped the file upload.');\n\t\t\t\t}\t\t\t\t\n\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t} else {\n\n\t\t\t\t// sometimes an invalid record gets into $_FILES where no tmp_name is specified\n\t\t\t\t// this normally happens when a javascript form validator has caused the file input to submit\n\t\t\t\t// even though there is no file!\n\t\t\t\t// we don't want to throw an error if this happens, we just want to silently ignore this record.\n\n\t\t\t\t//$file->set('description',$description);\n\t\t\t\t//$file->save();\n\t\t\t\t\n\t\t\t\t$this->success = true;\n\t\t\t}\n\t\t\n\t\t\treturn $this->success;\n\t\t\n\t\t}",
"public function actionCreate()\n {\n $model = new Files();\n $data = Yii::$app->request->post();\n if($data)\n {\n\t $files = UploadedFile::getInstanceByName('files');\n\t \n\t if($files)\n\t {\n\t \t$path = \\Yii::getAlias('@webroot') . '/upload/' . date('Ym') . \"/\";//每月一个文件夹\n\t \tif(! file_exists($path))\n\t \t{\n\t \t\tBaseFileHelper::createDirectory($path);\n\t \t}\n\t \t\n\t \t$fileName = date(\"YmdHis\") . '_' . rand(10000, 99999).'.'.$files->getExtension();\n\t \tif($files->saveAs($path .$fileName))\n\t \t{\n\t \t\t$model->load($data);\n\t \t\t$model->path = date('Ym').'/'.$fileName;\n\t \t\t$model->username = Yii::$app->user->identity->username;\n\t \t\t\n\t \t\tif($model->save())\n\t \t\t{\n\t \t\t\treturn json_encode([\n\t \t\t\t\t'statusCode'=>'200',\n\t \t\t\t\t'message'=>'操作成功',\n\t \t\t\t\t'navTabId'=>'files_list',\n\t \t\t\t\t'callbackType'=> 'closeCurrent'\n\t \t\t\t]);\n\t \t\t}\n\t \t\telse \n\t \t\t{\n\t \t\t\treturn json_encode(['statusCode'=>'300','message'=>'操作失败,数据保存失败','navTabId'=>'files_add']);\n\t \t\t}\n\t \t}\n\t \telse \n\t \t{\n\t \t\treturn json_encode(['statusCode'=>'300','message'=>'操作失败,文件保存失败','navTabId'=>'files_add']);\n\t \t}\n\t }\n }\n else \n {\n \treturn $this->renderAjax('create');\n }\n }",
"public function store(FileCreateRequest $request)\n {\n \t$file = $request->file('file');\n \t$original_name = $file->getClientOriginalName();\n $original_name = time() .'_.' . $file->getClientOriginalExtension();\n\n \tif(file_exists(storage_path().'/app/private/'.$original_name)){\n \t\t$datos = explode('.', $original_name);\n \t\t$original_name = $datos[0].'-'.rand(10000,90000);\n \t}\n \t//dd($original_name);\n \t$path = $request->file('file')->storeAs( 'private',$original_name);\n \t$name_file = str_replace('private/', '', $path);\n\n $data = $this->repository->create([\n 'name' => $name_file,\n 'original_name' => $file->getClientOriginalName(),\n 'size' => $file->getSize(),\n 'extension' => $file->getClientOriginalExtension()\n ]);\n $resp = [\n 'data' => $data,\n 'message' => 'Archvio Almacenado!'\n ];\n\n return response()->json( $resp, 200 );\n\n }",
"abstract public function store(File $file);",
"public function uploadAction()\n {\n // default file URI\n $defaultUri = $this->_config->urlBase . 'files/';\n\n // store for sparql queries\n $store = $this->_owApp->erfurt->getStore();\n\n // DMS NS var\n $dmsNs = $this->_privateConfig->DMS_NS;\n\n // check if DMS needs to be imported\n if ($store->isModelAvailable($dmsNs) && $this->_privateConfig->import_DMS) {\n $this->_checkDMS();\n }\n\n $url = new OntoWiki_Url(\n array('controller' => 'files', 'action' => 'upload'),\n array()\n );\n\n // check for POST'ed data\n if ($this->_request->isPost()) {\n $event = new Erfurt_Event('onFilesExtensionUploadFile');\n $event->request = $this->_request;\n $event->defaultUri = $defaultUri;\n // process upload in plugin\n $eventResult = $event->trigger();\n if ($eventResult === true) {\n if (isset($this->_request->setResource)) {\n $this->_owApp->appendMessage(\n new OntoWiki_Message('File attachment added', OntoWiki_Message::SUCCESS)\n );\n $resourceUri = new OntoWiki_Url(array('route' => 'properties'), array('r'));\n $resourceUri->setParam('r', $this->_request->setResource, true);\n $this->_redirect((string)$resourceUri);\n } else {\n $url->action = 'manage';\n $this->_redirect((string)$url);\n }\n }\n }\n\n $this->view->placeholder('main.window.title')->set($this->_owApp->translate->_('Upload File'));\n OntoWiki::getInstance()->getNavigation()->disableNavigation();\n\n $toolbar = $this->_owApp->toolbar;\n $url->action = 'manage';\n $toolbar->appendButton(\n OntoWiki_Toolbar::SUBMIT, array('name' => 'Upload File')\n );\n $toolbar->appendButton(\n OntoWiki_Toolbar::EDIT, array('name' => 'File Manager', 'class' => '', 'url' => (string)$url)\n );\n\n $this->view->defaultUri = $defaultUri;\n $this->view->placeholder('main.window.toolbar')->set($toolbar);\n\n $url->action = 'upload';\n $this->view->formActionUrl = (string)$url;\n $this->view->formMethod = 'post';\n $this->view->formClass = 'simple-input input-justify-left';\n $this->view->formName = 'fileupload';\n $this->view->formEncoding = 'multipart/form-data';\n if (isset($this->_request->setResource)) {\n // forward URI to form so we can redirect later\n $this->view->setResource = $this->_request->setResource;\n }\n\n if (!is_writable($this->_privateConfig->path)) {\n $this->_owApp->appendMessage(\n new OntoWiki_Message('Uploads folder is not writable.', OntoWiki_Message::WARNING)\n );\n return;\n }\n\n // FIX: http://www.webmasterworld.com/macintosh_webmaster/3300569.htm\n header('Connection: close');\n }",
"public function testSendFile(): void\n {\n $this->get('/posts/file');\n $this->assertFileResponse(TEST_APP . 'TestApp' . DS . 'Controller' . DS . 'PostsController.php');\n }",
"public function addTaskFile($task_id){\n\n $err=\"\";\n $file=\"\";\n // Testons si le fichier n'est pas trop gros\n if ($_FILES['myfile']['error'] == 0){\n if ($_FILES['myfile']['size'] <= MAX_FILE_SIZE)\n {\n // On peut valider le fichier et le stocker définitivement\n if (!is_dir(REPOSITORY_PATH . '/'. $task_id .'/')) {\n mkdir(REPOSITORY_PATH . '/'. $task_id .'/', 0777, true);\n }\n //move file to 'uploads' repository\n $file=REPOSITORY_PATH . '/'. $task_id .'/'. basename($_FILES['myfile']['name']);\n move_uploaded_file($_FILES['myfile']['tmp_name'], $file);\n\n //retrieve the task team id\n $bdd = $this->connectDB();\n $req=$bdd->prepare('SELECT team from task WHERE id= ?');\n $req->execute(array($task_id));\n\n if ($req->rowCount()){\n $row = $req->fetch();\n $team=$row['team'];\n }\n\n //update history\n $history_manager=new historyManager();\n $history_manager->addEvent($team,'attach_file',$task_id);\n\n }else{\n $err=\"fichier trop volumineux\";\n }\n }else{\n $err=\"erreur lors de l'envoi du fichier\";\n }\n\n\n $file_add=array(\n 'error'=>$err,\n 'file'=>$file\n );\n\n return $file_add;\n }",
"function file_create($route) {\n\tif (!file_exists($route)) {\n\t\t$file = fopen($route, 'x');\n\t\tfclose($file);\n\t}\n}",
"protected abstract function createUrl($file);",
"public function __construct($file);",
"public function setFile($file){\n $this->file = $file;\n }",
"public function create()\n\t{\n\t\treturn View::make('file.create');\n\t}",
"public function add_file($filepath) {\n\t\t\t$this->hasfile = true;\n\t\t\t$this->files[] = $filepath;\n\t\t}",
"public function add($file) {\n\t\tarray_push($this->files, $file);\n\t}",
"protected function _actionAdd($context)\n\t{\t\n\t\t$data = $context->data;\t\t\n\t\t$file = KRequest::get('files.file', 'raw');\n\t\t$content = @file_get_contents($file['tmp_name']);\n\t\t$filesize = strlen($content);\n\t\t$uploadlimit = $this->_max_upload_limit * 1024 * 1024; \n\t\t\n\t\t$exif = (function_exists('exif_read_data')) ? @exif_read_data($file['tmp_name']) : array();\n\n\t\tif($filesize == 0)\n\t\t{\n\t\t throw new LibBaseControllerExceptionBadRequest('File is missing');\t\n\t\t\t\n\t\t return;\n\t\t}\n\t\t\n\t\tif($filesize > $uploadlimit)\n\t\t{\n\t\t throw new LibBaseControllerExceptionBadRequest('Exceed maximum size');\t\n\n\t\t return;\n\t\t}\n\n\t\t$orientation = 0;\n\t\t\n\t\tif(!empty($exif) && isset($exif['Orientation']) )\n {\n $orientation = $exif['Orientation']; \n }\t\t\n\t\t\n\t\t$data['portrait'] = array('data'=>$content,'rotation'=>$orientation,'mimetype'=>isset($file['type']) ? $file['type'] : null);\t\t\t\t\n \n\t\t$photo = $this->actor->photos->addNew($data);\t\n\t\t\n\t\t$photo->setExifData($exif);\n\t\t\n\t\t$photo->save();\n\t\t\n\t\t$this->setItem($photo);\n\t\t\n\t\t$this->getResponse()->status = KHttpResponse::CREATED;\n\t\t\n if($photo->body && preg_match('/\\S/',$photo->body))\n {\n $context->append(array( \n 'story' => array('body'=>$photo->body)\n )); \n }\n\n\t\treturn $photo;\n\t}",
"public function getFile() {}",
"public function getFile() {}",
"public function setFile($file)\n {\n $this->file = $file;\n }",
"function create($filename, $filetype, $filesize, $file, $description='None', $importData = array()) {\n\t\t// Some browsers don't supply mime type if they don't know it\n\t\tif ($filetype == \"text/html\") {\n\t\t $this->setError(_('File type not allowed.'));\n\t\t return false;\n\t\t}\n\t\tif (!$filetype) {\n\t\t\t// Let's be on safe side?\n\t\t\t$filetype = 'application/octet-stream';\n\t\t}\n\n\t\t//\n\t\t//\tdata validation\n\t\t//\n\t\tif (!$filename || !$filetype || !$filesize || !$file) {\n\t\t\t//echo '<p>|'.$filename.'|'.$filetype.'|'.$filesize.'|'.$file.'|';\n\t\t\t$this->setError(_('ArtifactFile: File, name, type, size are required'));\n\t\t\treturn false;\n\t\t}\n\n\t\tif (array_key_exists('user', $importData)){\n\t\t\t$user_id = $importData['user'];\n\t\t} else {\n\t\t\tif (session_loggedin()) {\n\t\t\t\t$user_id=user_getid();\n\t\t\t} else {\n\t\t\t\t$user_id=100;\n\t\t\t}\n\t\t}\n\n\t\tif (array_key_exists('time',$importData)){\n\t\t\t$time = $importData['time'];\n\t\t} else {\n\t\t\t$time = time();\n\t\t}\n\n\t\tdb_begin();\n\n\t\t$res = db_query_params ('INSERT INTO artifact_file\n\t\t\t(artifact_id,description,bin_data,filename,filesize,filetype,adddate,submitted_by)\n\t\t\tVALUES ($1,$2,$3,$4,$5,$6,$7,$8)',\n\t\t\t\t\tarray ($this->Artifact->getID(),\n\t\t\t\t\t $description,\n\t\t\t\t\t '',\n\t\t\t\t\t $filename,\n\t\t\t\t\t $filesize,\n\t\t\t\t\t $filetype,\n\t\t\t\t\t $time,\n\t\t\t\t\t $user_id)) ;\n\n\t\t$id=db_insertid($res,'artifact_file','id');\n\n\t\tArtifactStorage::instance()->store($id, $file);\n\n\t\tif (!$res || !$id) {\n\t\t\tdb_rollback();\n\t\t\tArtifactStorage::instance()->rollback();\n\t\t\t$this->setError('ArtifactFile: '.db_error());\n\t\t\treturn false;\n\t\t} else {\n\t\t\tdb_commit();\n\t\t\tArtifactStorage::instance()->commit();\n\n\t\t\t//\n\t\t\t//\tNow set up our internal data structures\n\t\t\t//\n\t\t\tif (!$this->fetchData($id)) {\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\t// If time is set, no need to add to history, will be done in batch\n\t\t\tif (!array_key_exists('time', $importData)){\n\t\t\t\t$this->Artifact->addHistory('File Added',$id.': '.$filename);\n\t\t\t}\n\t\t\t$this->Artifact->UpdateLastModifiedDate();\n\t\t\t$this->clearError();\n\t\t\treturn $id;\n\t\t}\n\t}",
"public function __construct($file)\n {\n }",
"public function __construct($file)\n {\n }",
"public function actionCreate()\n {\n $model = new ProjectFiles();\n if($p = Yii::$app->request->get('ProjectFiles')){\n $model->project_id = !empty($p['project_id']) ? $p['project_id'] : null;\n $model->type = !empty($p['type']) ? $p['type'] : null;\n $searchModel = new ProjectFilesSearch();\n $searchModel->project_id = $model->project_id;\n }\n\n if(\\Yii::$app->user->can('viewProject', ['project'=>$model->project])){ \n if ($model->load(Yii::$app->request->post())) {\n $model->docFile = UploadedFile::getInstance($model, 'docFile');\n if($model->save()){\n if ($model->docFile) {\n $image = $model->uploadFiles();\n $model->file_id = $image;\n $model->save();\n } \n return $this->refresh();\n } \n } elseif(\\Yii::$app->request->post('step_form')){\n $model->project->setup_status = 'pics';\n $model->project->save();\n return $this->redirect($model->project->setupRedirect);\n } else {\n return $this->render('create', [\n 'model' => $model,\n 'dataProvider' => $searchModel->search(Yii::$app->request->queryParams),\n ]);\n }\n } else {\n throw new \\yii\\web\\ForbiddenHttpException('Nemate prava da pristupite ovoj stranici.');\n }\n }",
"public function crear(){\n\t\t$this->archivo = fopen($this->nombre , \"w+\");\n\t}",
"public function __construct($file = \"\")\n {\n $this->file = $file;\n }",
"public function addFile($path, $name, $content_type, $content_disposition);",
"public function testPostFile()\n {\n // TODO: implement\n $this->markTestIncomplete('Not implemented');\n }",
"public function __construct($file)\n {\n $this->file = $file;\n }",
"final public function getFile($file) {\n $this->template = file_get_contents('app/'.$file);\n }",
"protected function getFileFactory() {}",
"public function setFile($file)\r\n {\r\n $this->file = $file;\r\n }",
"protected function feedCreate($file){\n\t\tHeaderPrint($file,queryBuilder('head'));\n\t\tMerchPrint($file,queryBuilder(''));\n\t}",
"public function actionCreate()\r\n\t{\r\n\t\t$model=new FileUploads;\r\n\t\t$academic_yr = Configurations::model()->findByPk(35);\r\n\r\n\t\t// Uncomment the following line if AJAX validation is needed\r\n\t\t// $this->performAjaxValidation($model);\r\n\r\n\t\tif(isset($_POST['FileUploads']))\r\n\t\t{\t\t\t\r\n\t\t\t$model->attributes\t=\t$_POST['FileUploads'];\t\t\t\r\n\t\t\t$model->created_by\t=\tYii::app()->user->id;\t\t\t\r\n\t\t\t$model->file\t\t=\tCUploadedFile::getInstance($model,'file');\r\n\t\t\t$obj_img\t\t\t=\tCUploadedFile::getInstance($model,'file');\r\n\t\t\t//var_dump(CUploadedFile::getInstance($model,'file'));exit;\t\t\t\r\n\t\t\t$model->file_type\t=\t$obj_img->type;\r\n\t\t\t$model->academic_yr_id = $academic_yr->config_value;\r\n\t\t\t\r\n\t\t\tif($model->save()){\r\n\t\t\t\tif($obj_img!=NULL){\t\r\n\t\t\t\t\t$path\t=\t'uploads/shared/'.$model->id.'/';\r\n\t\t\t\t\tif(!is_dir($path)){\r\n\t\t\t\t\t\tmkdir($path);\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t\t//generate random image name\r\n\t\t\t\t\t//$randomImage\t=\t$this->generateRandomString(rand(10,15)).'.'.$obj_img->extensionName;\r\n\t\t\t\t\t\r\n\t\t\t\t\t//$randomImage = $obj_img->name;\r\n\t\t\t\t\t//var_dump($obj_img);exit;\r\n\t\t\t\t\tif(!$obj_img->saveAs($path.$obj_img->name)){\r\n\t\t\t\t\t\t$model->file\t=\tNULL;\t\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\t$model->file\t=\t$obj_img->name;\r\n\t\t\t\t\t}\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t$model->file\t=\tNULL;\r\n\t\t\t\t}\r\n\t\t\t\t$model->save();\r\n\t\t\t\t$this->redirect(array('view','id'=>$model->id));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t$this->render('create',array(\r\n\t\t\t'model'=>$model,\r\n\t\t));\r\n\t}",
"public function run()\n {\n //\n //$file = new File();\n //$file->id = 1;\n //$file->name_file = \"test\";\n //$file->counter_lines = 125;\n //$file->counter_lines = 'storage/public';\n //$file->save();\n }",
"public function uploadAction($file) {\n\t\t\n\t\t$renderPartial = $this->request->hasArgument('renderPartial') ? $this->request->getArgument('renderPartial') : '';\n\t\t$mode = $this->request->hasArgument('mode') ? $this->request->getArgument('mode') : '';\n\t\t$filetype = $this->request->hasArgument('filetype') ? $this->request->getArgument('filetype') : 'file';\n\t\tif ($filetype == 'pdf') {\n\t\t\tif ($file->getOriginalResource()->getFileextension() !== 'pdf') {\n\t\t\t\t$this->forward('new', NULL, NULL, array('file' => $file,'mode'=>$mode,'renderPartial'=>$renderPartial, 'filetype' => $filetype));\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($this->persistenceManager->isNewObject($file)) {\n\t\t\t$this->fileResourceRepository->add($file);\n\t\t} else {\n\t\t\t$this->fileResourceRepository->update($file);\n\t\t}\n\t\t\n\t\t$this->forward('edit', NULL, NULL, array('file' => $file,'mode'=>$mode,'renderPartial'=>$renderPartial, 'filetype' => $filetype));\n\t}",
"public function mkfile($path, $fileName, $data = null)\n {\n \n }",
"public function storeDocument($file);",
"public function created(File $file)\n {\n $file->upload_by = Auth::user()->id;\n $file->modified_by = Auth::user()->id;\n\n $file->save();\n }",
"private function createFile(array $options): void\n {\n if (class_exists($options['className'])) {\n Console::fatal($options['entityName'] . ' ' . $options['fileKind'] . ' file already exists.');\n }\n\n Console::write('Generating ' . $options['entityName'] . ' ' . $options['fileKind'] . ' file..');\n\n $templateContent = $this->getFileTemplate($options['fileKind']);\n $fileContent = str_replace($options['replace']['tags'], $options['replace']['values'], $templateContent);\n\n if (file_put_contents(Config::get('BaseDir') . 'app/' . $options['filePath'], $fileContent)) {\n Console::success('[OK]' . PHP_EOL);\n } else {\n Console::error('[FAIL]' . PHP_EOL);\n }\n }",
"public function store(FileRequest $request)\n { \n $this->authorize('create', File::class);\n $f = $request->file('path');\n if(empty($f)){return null;}\n $file = new File(array_merge($request->only(['type_id']), [\n 'path' => Storage::disk($request->input('storage'))->putFile(config('site.files.path'), new \\Illuminate\\Http\\File($f->getPathName())),\n 'mime' => $f->getMimeType(),\n 'storage' => $request->input('storage'),\n 'size' => $f->getSize(),\n 'name' => $f->getClientOriginalName(),\n ]));\n\n $file->save();\n\n if($file->fileable_type=='tenders'){\n $receiver_id = Auth::user()->getKey();\n $text='Добавлен файл ' .$file->name;\n $file->fileable->messages()->save(Auth::user()->outbox()->create(['text'=>$text, 'receiver_id'=>$receiver_id, 'personal'=>'1']));\n } \n \n //ProcessFile::dispatch($file)->onQueue('images');\n \n return response()->json([\n 'file' => view('site::file.create.card')\n ->with('file', $file)\n ->with('success', trans('site::file.loaded'))\n ->render(),\n ]);\n }",
"public function __construct($file) {\n $this->file = $file;\n }",
"protected function _create_file($file = null, $path = null)\n {\n if (file_exists(APPPATH . $path . '.php')) {\n $this->_message(\"This \" . $this->_command . \": \" . $this->_name . \" file already exists.\");\n return false;\n } else {\n $write = write_file(APPPATH . $path . '.php', $file);\n // If unable to write file in path\n if (!$write) {\n $this->_message(\"Unable to write the file \" . $this->_command . \": \" . $this->_name . \".\");\n return false;\n } else\n echo $this->_message($this->_command . \": \" . $this->_name . \" was created!!\");\n return true;\n }\n }",
"public static function getFile() {}",
"public function post_file_action() {\n Utils\\verifyPostRequest();\n $this->verifyUnsafeRequest();\n\n // store uploaded files as StudIP documents\n $response = array(); // data for HTTP response\n $folder_id = Utils\\getFolderId(\n 'RichText',\n studip_utf8decode(_('Durch das RichText-Plugin hochgeladene Dateien.')));\n\n foreach (Utils\\FILES() as $file) {\n try {\n $newfile = Utils\\uploadFile($file, $folder_id);\n $response['files'][] = Array(\n 'name' => utf8_encode($newfile['filename']),\n 'type' => $file['type'],\n 'url' => GetDownloadLink($newfile->getId(), $newfile['filename']));\n } catch (AccessDeniedException $e) { // creation of Stud.IP doc failed\n $response['files'][] = Array(\n 'name' => $file['name'],\n 'type' => $file['type'],\n 'error' => $e->getMessage());\n }\n }\n Utils\\sendAsJson($response);\n }",
"public function upload()\n {\n App::import('Lib', 'Uploads.file_receiver/FileReceiver');\n App::import('Lib', 'Uploads.file_dispatcher/FileDispatcher');\n App::import('Lib', 'Uploads.file_binder/FileBinder');\n App::import('Lib', 'Uploads.UploadedFile');\n\n $this->cleanParams();\n $Receiver = new FileReceiver($this->params['url']['extensions'], $this->params['url']['limit']);\n $Dispatcher = new FileDispatcher(\n Configure::read('Uploads.base'),\n Configure::read('Uploads.private')\n );\n $Binder = new FileBinder($Dispatcher, $this->params['url']);\n try {\n $File = $Receiver->save(Configure::read('Uploads.tmp'));\n $Binder->bind($File);\n $this->set('response', $File->getResponse());\n file_put_contents(LOGS.'mh-uploads.log', date('Y-m-d H:i > ').'Uploaded '.$File->getName().chr(10), FILE_APPEND);\n } catch (RuntimeException $e) {\n file_put_contents(LOGS.'mh-uploads.log', date('Y-m-d H:i > ').$e->getMessage().chr(10), FILE_APPEND);\n $this->set('response', $this->failedResponse($e));\n }\n $this->layout = 'ajax';\n $this->RequestHandler->respondAs('js');\n }",
"public function actionCreate()\n {\n $model = new Abonent();\n\n if ($model->load(Yii::$app->request->post())){\n \n /**\n * model saves file using event AFTER_INSERT \n */\n $model->imageFile = UploadedFile::getInstance($model, 'imageFile');\n if($model->save()) {\n return $this->redirect(['view', 'id' => $model->id]);\n }\n }\n return $this->render('create', [\n 'model' => $model,\n ]);\n }",
"function createFileInterface($filePath)\n{\n //$sxe=simplexml_load_file( $filePath );//Default file type\n if (file_exists($filePath)) \n {\n $xml = simplexml_load_file($filePath);\n createSaveForm($filePath);\n dispFile( $xml);\n }\n else \n {\n exit('Failed to open' . $filePath);\n }\n}",
"protected function createFile($file, $contents)\n {\n // since we don't set the main dir, this needs to be changed to the base sugar dir so the\n // name spaces will work\n file_put_contents(SUGAR_BASE_DIR . '/' .$file, $contents);\n \\SugarAutoLoader::addToMap($file, false);\n $this->toDelete[] = SUGAR_BASE_DIR . '/' . $file;\n }",
"protected function openFile() {}",
"public function run()\n {\n $file = new OrderFile();\n $file->order_id = '1';\n $file->url = 'test.jpg';\n $file->save();\n\n $file = new OrderFile();\n $file->order_id = '1';\n $file->url = 'test2.jpg';\n $file->save();\n\n $file = new OrderFile();\n $file->order_id = '1';\n $file->url = 'test3.jpg';\n $file->save();\n }",
"protected function _setFile()\n\t{\n\t\t$this->_moveToImageDir();\n\n\t\tif (!$this->_validateMimeType()) {\n\t\t\tunlink($this->getFilePath()); // delete file\n\t\t\tthrow new Exception('Not Allowed MIME Type File ERROR!');\n\t\t}\n\n\t\t$this->_file = file_get_contents($this->getFilePath());\n\t}"
] | [
"0.75235176",
"0.7298397",
"0.701416",
"0.69964314",
"0.69767463",
"0.6932889",
"0.68535817",
"0.66675746",
"0.6646344",
"0.6547899",
"0.6430936",
"0.638995",
"0.6388957",
"0.63450015",
"0.63408405",
"0.6272578",
"0.6268846",
"0.6268002",
"0.6256753",
"0.6248846",
"0.6245969",
"0.6233696",
"0.62087005",
"0.6206108",
"0.619164",
"0.6186068",
"0.6173704",
"0.61736923",
"0.61702335",
"0.61672705",
"0.61640805",
"0.6156768",
"0.6143727",
"0.6143499",
"0.61377275",
"0.6132063",
"0.61257535",
"0.6109091",
"0.6079724",
"0.60668236",
"0.60649806",
"0.60434556",
"0.6040903",
"0.60215646",
"0.6012487",
"0.6001983",
"0.5989351",
"0.5985589",
"0.5985116",
"0.59772784",
"0.59674305",
"0.59667367",
"0.59499174",
"0.5932831",
"0.5932532",
"0.5924306",
"0.5908582",
"0.5903942",
"0.59004986",
"0.589729",
"0.5892291",
"0.58804065",
"0.5878655",
"0.5871877",
"0.5860453",
"0.58556366",
"0.58475",
"0.5845798",
"0.5844619",
"0.58347446",
"0.583416",
"0.5833616",
"0.58288264",
"0.58254266",
"0.582299",
"0.582154",
"0.58193594",
"0.58190876",
"0.58043224",
"0.58038443",
"0.5801456",
"0.58000535",
"0.5796866",
"0.5791815",
"0.5789709",
"0.5789293",
"0.5787748",
"0.57862616",
"0.5784825",
"0.57837856",
"0.57806563",
"0.5775472",
"0.5770738",
"0.576786",
"0.57580906",
"0.57538766",
"0.5752397",
"0.57429343",
"0.57410705",
"0.5737935",
"0.57374567"
] | 0.0 | -1 |
Confirms that the asset images created are of same style as the actions passed in the post. | private function assertCreationEquals(Asset $asset) {
foreach ($_POST['actions'] as $action) {
if (count($asset->images) > 0)
{
$size_exists = false;
foreach ($asset->images as $image) {
if ($image->width <= $action[self::EXPECTED_WIDTH_KEY] + 1 &&
$image->width >= $action[self::EXPECTED_WIDTH_KEY] - 1 &&
$image->height <= $action[self::EXPECTED_HEIGHT_KEY] + 1 &&
$image->height >= $action[self::EXPECTED_HEIGHT_KEY] - 1) {
$size_exists = true;
}
}
$this->assertTrue($size_exists);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function input_actionAssetCreate()\n {\n return [\n [\n TestController::COMPARISON_DIRECTORY . '/contain_aspect_true.png',\n [\n 'actions' => [\n [\n Action_Image::NAME_KEY => \"original\",\n Action_Image::WIDTH_KEY => 1000,\n Action_Image::HEIGHT_KEY => 1000,\n Action_Image::KEEP_ASPECT_RATIO_KEY => true,\n Action_Image::PADDING_KEY => false,\n self::EXPECTED_WIDTH_KEY => 1000,\n self::EXPECTED_HEIGHT_KEY => 562\n ],\n [\n Action_Image::NAME_KEY => \"thumbnail\",\n Action_Image::WIDTH_KEY => 150,\n Action_Image::HEIGHT_KEY => 150,\n self::EXPECTED_WIDTH_KEY => 150,\n self::EXPECTED_HEIGHT_KEY => 150\n ]\n ]\n ]\n ],\n [\n TestController::COMPARISON_DIRECTORY . '/contain_aspect_true.png',\n [\n 'actions' => [\n [\n Action_Image::NAME_KEY => \"original\",\n Action_Image::WIDTH_KEY => 2000,\n Action_Image::HEIGHT_KEY => 2000,\n Action_Image::KEEP_ASPECT_RATIO_KEY => true,\n Action_Image::PADDING_KEY => false,\n self::EXPECTED_WIDTH_KEY => 2000,\n self::EXPECTED_HEIGHT_KEY => 1125\n ],\n [\n Action_Image::NAME_KEY => \"thumbnail\",\n Action_Image::WIDTH_KEY => 370,\n Action_Image::HEIGHT_KEY => 280,\n self::EXPECTED_WIDTH_KEY => 370,\n self::EXPECTED_HEIGHT_KEY => 280\n ],\n [\n Action_Image::NAME_KEY => \"thumbnail\",\n Action_Image::WIDTH_KEY => 152,\n Action_Image::HEIGHT_KEY => 154,\n self::EXPECTED_WIDTH_KEY => 152,\n self::EXPECTED_HEIGHT_KEY => 154\n ]\n ]\n ]\n ],\n [\n TestController::COMPARISON_DIRECTORY . '/eckroth-coffeehouse_conversation.txt',\n [\n 'actions' => [\n [\n Action_Document::NAME_KEY => \"coffeehouse_conversation\"\n ]\n ]\n ]\n ]\n ];\n }",
"public function actionVerifyImages()\n {\n $srcImgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR .\n 'web' . DIRECTORY_SEPARATOR .\n 'images' . DIRECTORY_SEPARATOR .\n 'i1' . DIRECTORY_SEPARATOR;\n\n $dstImgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR .\n 'web' . DIRECTORY_SEPARATOR .\n 'images' . DIRECTORY_SEPARATOR .\n 'product' . DIRECTORY_SEPARATOR;\n\n echo 'Checking missing images in: ' . $srcImgDir . ' to ' . $dstImgDir . PHP_EOL;\n\n $imgDst = glob($dstImgDir . '*.{jpg,JPG}', GLOB_BRACE);\n $cId = count($imgDst);\n if ($cId) {\n echo 'Found ' . $cId . ' in ' . $dstImgDir . ' folder '. PHP_EOL;\n }\n\n $imgSrc = glob($srcImgDir . '*.{jpg,JPG}', GLOB_BRACE);\n $cIs = count($imgSrc);\n if ($cIs) {\n echo 'Found ' . $cIs . ' in ' . $srcImgDir . ' folder '. PHP_EOL;\n\n $cOk = $cErr = $j = 0;\n foreach ($imgSrc as $i) {\n /* if ($j == 7) {\n break;\n } */\n $art = substr($i, strlen($srcImgDir) + 1, -4);\n echo 'Checking image ' . $i . ' Checking articul: ' . $art . PHP_EOL;\n\n $civQuery = CatalogItemVariant::find()\n ->where(['published' => 1]);\n $civ = $civQuery->andFilterWhere(['like', 'img_url', $art])\n ->asArray()\n ->all();\n\n // echo 'Found: ' . print_r($civ, 1) . PHP_EOL;\n if (!empty($civ[0]['img_url'])) {\n $bsDst = basename($civ[0]['img_url']);\n echo 'Checking destination file: ' . $dstImgDir . $bsDst . PHP_EOL;\n if (file_exists($dstImgDir . $bsDst)) {\n echo 'Skip destination file exists: ' . $dstImgDir . $bsDst . PHP_EOL;\n } else {\n if (copy($i, $dstImgDir . $bsDst)) {\n echo 'Copied ' . $i . ' to ' . $dstImgDir . $bsDst . PHP_EOL;\n $cOk ++;\n } else {\n echo 'Error: can`t copy ' . $i . ' to ' . $dstImgDir . $bsDst . PHP_EOL;\n $cErr ++;\n }\n }\n }\n $j ++;\n }\n }\n $imgDst2 = glob($dstImgDir . '*.{jpg,JPG}', GLOB_BRACE);\n $cId2 = count($imgDst2);\n if ($cId2) {\n echo 'Found ' . $cId2 . ' in ' . $dstImgDir . ' folder '. PHP_EOL;\n }\n echo 'Checked ' . $j . ' image files. Copied ' . $cOk . ' images. Image copy errors: ' . $cErr . PHP_EOL;\n }",
"function post_edit_style() {\n\n\t\t$icon_url = trailingslashit( plugin_dir_url( __FILE__ ) ) . 'assets/icon_lock.png';\n\t\t$icon_url_2x = trailingslashit( plugin_dir_url( __FILE__ ) ) . 'assets/[email protected]';\n\n\t\tif ( is_admin() && 'attachment' == get_current_screen()->id && $this->is_attachment_private( get_the_id() ) ) : ?>\n\n\t\t\t<style>\n\t\t\t\t#titlediv { padding-left: 60px; }\n\t\t\t\t#titlediv::before { content: ' '; display: block; height: 26px; width: 21px; background: url(<?php echo $icon_url; ?>) no-repeat center center; position: relative; float: left; margin-left: -40px; top: 4px; }\n\t\t\t\t@media only screen and ( -webkit-min-device-pixel-ratio : 1.5 ), only screen and ( min-device-pixel-ratio : 1.5 ) {\n\t\t\t\t\t#titlediv::before { background-image: url(<?php echo $icon_url_2x; ?>); }\n\t\t\t\t}\n\t\t\t</style>\n\n\t\t<?php endif;\n\n\t}",
"public function input_actionAsset()\n {\n $basic_test_name = 'basic_test' . time() . rand(0, 10000);\n $type_test_name = 'type_test' . time() . rand(0, 10000);\n $used_test_name = 'used_test' . time() . rand(0, 10000);\n\n return [\n [\n $basic_test_name,\n [\n 'uploaded_name' => $basic_test_name,\n ]\n ],\n [\n $type_test_name,\n [\n 'type' => AssetType::IMAGE,\n 'uploaded_name' => $type_test_name,\n ]\n ],\n [\n $used_test_name,\n [\n 'is_used' => Asset::IS_NOT_USED,\n 'type' => AssetType::IMAGE,\n 'uploaded_name' => $used_test_name,\n ]\n ]\n ];\n }",
"function checkImg(){\n global $postpath;\n return getimagesize($postpath) !== false;\n }",
"function /*test*/CreateActionNoRange(){\n //range box with the element's colour\n foreach($this->elements as $element){\n //The path of the image used to create the new image\n $imageCopySourceFile = $_SERVER[\"DOCUMENT_ROOT\"].'/C&C_Companion/pages/cards/templates/templateImages/'.$element->getName().'ActionRange.jpg';\n\n //The path of the image being created\n $imageCopyDestFile = $_SERVER[\"DOCUMENT_ROOT\"].'/C&C_Companion/pages/cards/templates/templateImages/'.$element->getName().'ActionNoRange.jpg';\n\n //Copy the contents of the old image to the new image's path\n copy($imageCopySourceFile, $imageCopyDestFile);\n\n //Create an image object from the new image's path\n $imageCopy = imagecreatefromjpeg($imageCopyDestFile);\n\n //Fill in the new image's range box\n $image = $this->actionFillInRange($imageCopy, $element);\n\n //Write the image object's contents to the destination file path\n imagejpeg($image, $imageCopyDestFile);\n }\n\n $this->assertTrue(true);\n }",
"public function correctImage(){\n parent::isImage();\n parent::exist();\n parent::sizeFile();\n return $this->uploadOk;\n }",
"function testCompatible(){\n\t\tif($this->$imageAsset[\"type\"] == \"image/jpeg\" || $_FILES[\"image_upload_box\"][\"type\"] == \"image/pjpeg\"){\t\n\t\t\t$this->imgType = 'jpg';\n\t\t}\t\t\n\t\t// if uploaded image was GIF\n\t\tif($this->$imageAsset[\"type\"] == \"image/gif\"){\t\n\t\t\t$this->imgType = 'gif';\n\t\t}\t\n\t\t// if uploaded image was PNG\n\t\tif($this->$imageAsset[\"type\"] == \"image/x-png\"){\n\t\t\t$this->imgType = 'png';\n\t\t}\n\t\telse {\n\t\t\t$this->imgType = 'invalid';\n\t\t}\n\t\t\n\t}",
"function hook_image_style_delete($style) {\n // Administrators can choose an optional replacement style when deleting.\n // Update the modules style variable accordingly.\n if (isset($style['old_name']) && $style['old_name'] == variable_get('mymodule_image_style', '')) {\n variable_set('mymodule_image_style', $style['name']);\n }\n}",
"public function actionCreate() {\n\n if (!\\Yii::$app->user->isGuest) {\n $model = new Cars();\n $model_images = new CarsImages();\n\n $old_model_id = Cars::find()->orderBy(['id' => SORT_DESC])->one();\n if (sizeof($old_model_id) < 1) {\n $project_id_for_images = 1;\n } else {\n $project_id_for_images = (int) $old_model_id->id + 1;\n }\n\n\n\n if ($model->load(Yii::$app->request->post()) && $model->validate()) {\n\n $post = Yii::$app->request->post();\n// die(var_dump($post));\n $size_of_features = sizeof($post['check']);\n $car_features = $post['check'];\n\n function manageImageInspection($image) {\n $image_extention = $image->extension;\n if ($image_extention == \"jpg\" || $image_extention == \"jpeg\" || $image_extention == \"png\") {\n if ($image->saveAs($full_path = dirname(__FILE__) . '/../../' . \"/frontend/web/media/inspection/original/\" . $inspection_image_name = $path = time() . \"_\" . Yii::$app->security->generateRandomString() . '.' . $image->extension)) {\n $array = array(0, 1);\n $waterMark_image = dirname(__FILE__) . '/../../' . \"/frontend/web/images/logo/logo_1.png\";\n// Image::watermark($full_path, $waterMark_image, $array)\n// ->resize(new Box(284, 251))\n// ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/284x251/\" . $path, ['quality' => 50]);\n\n\n $watermarkImage = '@webroot/images/watermark/watermark_arabic_dark.png';\n $image = $full_path;\n $newImage = Image::watermark($image, $watermarkImage);\n $newImage->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/inspection/arabic_dark/\" . $inspection_image_name);\n\n $watermarkImage = '@webroot/images/watermark/watermark_arabic_white.png';\n $image = $full_path;\n $newImage = Image::watermark($image, $watermarkImage);\n $newImage->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/inspection/arabic_white/\" . $inspection_image_name);\n\n\n $watermarkImage = '@webroot/images/watermark/watermark_english_dark.png';\n $image = $full_path;\n $newImage = Image::watermark($image, $watermarkImage);\n $newImage->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/inspection/english_dark/\" . $inspection_image_name);\n\n\n $watermarkImage = '@webroot/images/watermark/watermark_english_white.png';\n $image = $full_path;\n $newImage = Image::watermark($image, $watermarkImage);\n $newImage->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/inspection/english_white/\" . $inspection_image_name);\n\n\n\n//\n// $thumbnail = Image::thumbnail($full_path, $img_size, $img_size);\n// $size = $thumbnail->getSize();\n// if ($size->getWidth() < $img_size or $size->getHeight() < $img_size) {\n// $white = Image::getImagine()->create(new Box($img_size, $img_size));\n// $thumbnail = $white->paste($thumbnail, new Point($img_size / 2 - $size->getWidth() / 2, $img_size / 2 - $size->getHeight() / 2));\n// }\n// $thumbnail->save($save_path);\n\n\n\n\n\n\n\n\n\n\n\n\n return $path;\n } else {\n return \"error\";\n }\n } else {\n return \"not image\";\n }\n }\n\n function manageImage($image) {\n $image_extention = $image->extension;\n if ($image_extention == \"jpg\" || $image_extention == \"jpeg\" || $image_extention == \"png\") {\n if ($image->saveAs($full_path = dirname(__FILE__) . '/../../' . \"/frontend/web/media/original/\" . $path = time() . \"_\" . Yii::$app->security->generateRandomString() . '.' . $image->extension)) {\n\n Image::thumbnail($full_path, 284, 251)\n ->resize(new Box(284, 251))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/284x251/\" . $path);\n\n Image::thumbnail($full_path, 620, 485)\n ->resize(new Box(620, 485))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/620x485/\" . $path);\n\n Image::thumbnail($full_path, 115, 85)\n ->resize(new Box(115, 85))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/115x85/\" . $path);\n\n Image::thumbnail($full_path, 270, 150)\n ->resize(new Box(270, 150))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/media/270x150/\" . $path);\n\n\n return $path;\n } else {\n return \"error\";\n }\n } else {\n return \"not image\";\n }\n }\n\n $path = $model->image = UploadedFile::getInstance($model, \"image\");\n $inspection = $model->inspection = UploadedFile::getInstance($model, \"inspection\");\n $images = $model_images->images = UploadedFile::getInstances($model_images, 'images');\n\n\n if (($model->image)) {\n $manage_image = manageImage($model->image);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', 'images must be image (jpg or jpeg or png');\n return $this->redirect(['projects/create']);\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', 'Something went wrong, could not upload images');\n return $this->redirect(['projects/create']);\n } else {\n $model->image = $manage_image;\n Yii::$app->session->setFlash('success', 'image successfully uploaded!');\n }\n } else {\n Yii::$app->session->setFlash('error', 'image cannot be empty!');\n return $this->redirect(['projects/create']);\n }\n\n\n\n\n if (($model->inspection)) {\n $manage_image = manageImageInspection($model->inspection);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', 'images must be image (jpg or jpeg or png');\n return $this->redirect(['projects/create']);\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', 'Something went wrong, could not upload images');\n return $this->redirect(['projects/create']);\n } else {\n $model->inspection = $manage_image;\n Yii::$app->session->setFlash('success', 'image successfully uploaded!');\n }\n } else {\n Yii::$app->session->setFlash('error', 'image cannot be empty!');\n return $this->redirect(['projects/create']);\n }\n\n\n\n\n $array = \"\";\n $error_1 = \"\";\n $size_of_images = sizeof($images);\n for ($i = 0; $i < $size_of_images; $i++) {\n $upload_image = $images[$i];\n $manage_images = manageImage($upload_image);\n if ($manage_images == \"not image\") {\n Yii::$app->session->setFlash('error', $images[$i] . ' Not Image');\n } else if ($manage_images == \"error\") {\n Yii::$app->session->setFlash('error', $images[$i] . ' Error');\n } else {\n $model_images->car_id = $project_id_for_images;\n $new_image = $model_images->images = $manage_images;\n $save_into_images = Yii::$app->db->createCommand('INSERT INTO cars_images (car_id,images)\n\t\t\t\tVALUES (\n\t\t\t\t\"' . $project_id_for_images . '\",\n\t\t\t\t\"' . $new_image . '\")')\n ->execute();\n }\n }\n\n\n if ($size_of_features > 0) {\n foreach ($car_features as $car_feat => $features) {\n $save_into_features = Yii::$app->db->createCommand('INSERT INTO car_features (car_id,cat_id)\n\t\t\t\tVALUES (\n\t\t\t\t\"' . $project_id_for_images . '\",\n\t\t\t\t\"' . $features . '\")')\n ->execute();\n }\n }\n\n\n\n\n\n if (!$model->save()) {\n die(var_dump($model->errors));\n } else {\n return $model->slug;\n }\n return $this->redirect(['/cars']);\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n } else {\n return $this->redirect('/login');\n }\n }",
"public function actionFixImageNames()\n {\n $prodImgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR .\n 'web' . DIRECTORY_SEPARATOR .\n 'images' . DIRECTORY_SEPARATOR .\n 'product' . DIRECTORY_SEPARATOR;\n // $prImgs = glob($prodImgDir . '*.{jpg,JPG}', GLOB_BRACE);\n $prImgs = glob($prodImgDir . '*.{jpg}', GLOB_BRACE);\n $c = count($prImgs);\n $y = $x = $r = $n = 0;\n if ($c > 0) {\n foreach ($prImgs as $img) {\n $bN = basename($img);\n $art = substr($bN, 0, -4);\n if (strlen($art) > 16) {\n $art = substr($art, 0, 16);\n }\n if ($n <= 16 || $n == 19 || $n == 85 || $n == 159) {\n echo 'Skipped image ' . $n . '...' . PHP_EOL;\n $n ++;\n continue;\n }\n echo 'Checking image (' . $n . '): ' . $bN . ' check articul: ' . $art . PHP_EOL;\n\n $civQuery = CatalogItemVariant::find()\n ->where(['published' => 1]);\n $civ = $civQuery->andFilterWhere(['like', 'img_url', $art])\n ->asArray()\n ->one();\n if (!empty($civ['img_url'])) {\n // echo 'Found CIV: ' . var_export($civ, 1) . PHP_EOL;\n $bNok = basename($civ['img_url']);\n if ($bNok != $bN) {\n echo 'Base name OK: ' . $bNok . ' != ' . $bN . PHP_EOL;\n\n $oldName = $prodImgDir . $bN;\n $newName = $prodImgDir . $bNok;\n if (file_exists($newName)) {\n echo 'Destination file exists: ' . $newName . PHP_EOL;\n $x ++;\n } else {\n try {\n $oldName = escapeshellarg($oldName);\n $newName = escapeshellarg($newName);\n if (rename($oldName, $newName)) {\n echo 'Renamed image from: ' . $bN . ' to: ' . $bNok . PHP_EOL;\n $r ++;\n }\n } catch (Exception $e) {\n echo 'Caught exception: ', $e->getMessage(), PHP_EOL;\n continue;\n }\n }\n \n } else {\n $y ++;\n }\n }\n $n ++;\n }\n echo 'Renamed ' . $r . ' images. Good names: ' . $y . '. Images exists: ' . $x . '.' . PHP_EOL;\n }\n }",
"public function images_done_resizing() {\r\n\t\treturn (int)$this->images_done === 1;\r\n\t}",
"public function cleanImagesAction()\n {\n parent::cleanImagesAction();\n $this->clearRespizrImageCache();\n }",
"private function sameImages($imageOne, $imageTwo)\n\t{\n\t\t$widthOne = imagesx($imageOne);\n\t\t$heightOne = imagesy($imageOne);\n\t\t$widthTwo = imagesx($imageTwo);\n\t\t$heightTwo = imagesy($imageTwo);\n\n\t\tif ($widthOne == $widthTwo && $heightOne == $heightTwo) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}",
"public function actionCreate() {\n $post = new Post;\n $postDetails = array();\n for ($i = 0; $i < 2; $i++) {\n $postDetail = new PostDetail;\n if ($i == 0) {\n $postDetail->language = 'vi';\n } else {\n $postDetail->language = 'en';\n }\n $postDetails[] = $postDetail;\n }\n $message = ''; //show message to view\n $postImage = new PostImage;\n // Uncomment the following line if AJAX validation is needed\n // $this->performAjaxValidation($model);\n\n if (isset($_POST['Post']) && isset($_POST['PostDetail'])) {\n $post->attributes = $_POST['Post'];\n $valid = true;\n foreach ($postDetails as $i => $postDetail) {\n $postDetail->attributes = $_POST['PostDetail'][$i];\n $postDetails[$i] = $postDetail;\n $valid = $postDetail->validate() && $valid;\n }\n if ($valid) {\n //get images and check\n $canSave = true;\n $images = CUploadedFile::getInstancesByName('path');\n if (isset($images) && count($images) > 0) {\n foreach ($images as $image => $pic) {\n $imageName = $this->renameImage($pic->name);\n /* if (PostImage::model()->existedImagePath('contents/uploads/images/post/' . $imageName)) {//check duplicated images path in database\n $message = '\"' . $imageName . '\":' . Yii::t('post', 'existedImageName');\n $canSave = false;\n break;\n } else { */\n if (strlen('contents/uploads/images/post/' . $imageName) > 255) {//check length of images name\n $message = '\"' . $imageName . '\":' . Yii::t('post', 'longImageName');\n $canSave = false;\n break;\n }\n }\n }\n if ($canSave) {\n //begin upload images\n $imagesName = array();\n foreach ($images as $image => $pic) {\n $imageName = $this->renameImage($pic->name);\n $path = Yii::getPathOfAlias('webroot.contents.uploads.images.post') . DIRECTORY_SEPARATOR . $imageName;\n if ($pic->saveAs($path)) {\n $imagesName[] = $imageName;\n }\n }\n //save model to database\n try {\n if ($post->save()) {\n foreach ($postDetails as $postDetail) {\n $postDetail->post_id = $post->id;\n $postDetail->save();\n }\n //create list product images\n foreach ($imagesName as $imageName) {\n $postImage = new PostImage;\n $postImage->post_id = $post->id;\n $postImage->path = 'contents/uploads/images/post/' . $imageName;\n $saved = $postImage->save();\n if (!$saved) {//if saving fail, delete uploaded images\n $path = Yii::getPathOfAlias('webroot.contents.uploads.images.post') . DIRECTORY_SEPARATOR . $imageName;\n unlink($path);\n }\n }\n Yii::app()->user->setFlash('message', Yii::t('post', 'successCreate'));\n $this->refresh();\n $this->redirect(array('create'));\n }\n } catch (Exception $ex) {\n echo $ex->getMessage();\n Yii::app()->user->setFlash('message', Yii::t('post', 'failCreate'));\n $this->redirect(array('list'));\n }\n }\n } else {\n $message = Yii::t('post', 'notValid');\n }\n }\n\n $this->render('create', array(\n 'message' => $message,\n 'post' => $post,\n 'postDetails' => $postDetails,\n 'postImage' => $postImage,\n ));\n }",
"public function test_actionAssetCreate($file_path = \"\", array $post = [])\n {\n $_FILES = [\n 'file' => [\n 'tmp_name' => $file_path,\n 'name' => 'Hello'\n ]\n ];\n\n $_POST = $post;\n\n $_SERVER['REDIRECT_URL'] = '/create/';\n ob_start();\n $controller = new $this->controller_name(rand(0,1000));\n Reflection::setProperty('allowGenerateHeader', $this->controller_name, $controller, false);\n Reflection::callMethod('actionIndex', $this->controller_name, [], $controller);\n $response = ob_get_contents();\n ob_end_clean();\n \n $json_response = str_replace(\"HTTP/1.1 200 OK\\n\", \"\", $response);\n $json_response = str_replace(\"Content-type: application/json\\n\", \"\", $json_response);\n $asset_json = json_decode($json_response);\n\n $this->assertTrue(Asset::model()->fileName($asset_json->public_url)->exists());\n \n if (Asset::model()->fileName($asset_json->public_url)->exists()) {\n $this->assertCreationEquals(Asset::model()->fileName($asset_json->public_url)->find());\n }\n }",
"function hook_image_style_save($style) {\n // If a module defines an image style and that style is renamed by the user\n // the module should update any references to that style.\n if (isset($style['old_name']) && $style['old_name'] == variable_get('mymodule_image_style', '')) {\n variable_set('mymodule_image_style', $style['name']);\n }\n}",
"protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( KISSIT_MAIN_PRODUCT_WATERMARK_SIZE == 0 ) {\n \tif ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n \t\treturn 'abort';\n \t} \n \tif (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n \t\treturn 'abort';\n \t}\n }\n }",
"public function is_valid_image() {\n\n if ( get_post_type( $this->slide->ID ) === 'attachment' ) {\n $image_id = $this->slide->ID;\n } else {\n $image_id = get_post_thumbnail_id( $this->slide->ID );\n }\n\n $meta = wp_get_attachment_metadata( $image_id );\n\n $is_valid = isset( $meta['width'], $meta['height'] );\n\n return apply_filters( 'metaslider_is_valid_image', $is_valid, $this->slide );\n }",
"function it_converts_the_image_with_an_additional_image_magick_command_for_every_style() {\n $this->beConstructedWith( 'image', [\n 'styles' => [\n 'small' => '240x240#'\n , 'medium' => '300x350#'\n , 'original' => '640x640>'\n ]\n , 'convert' => [\n 'small' => '-colorspace Gray'\n , 'medium' => '\\( +clone -sepia-tone 60% \\) -average'\n ]\n ]);\n $this->tmpName( 'small' )->shouldBeString();\n $this->tmpName( 'medium' )->shouldBeString();\n $this->tmpName( 'original' )->shouldBeString();\n }",
"public function isButtonValidBrokenSetupMultiplePrimaryActionsGivenExpectFalse() {}",
"function image_edit_apply_changes($image, $changes)\n {\n }",
"private function _generateStyles()\n\t{\n\t\t$flag = true;\n\n\t\tforeach($this->_options['styles'] as $style_name => $size)\n\t\t\t$flag = $flag && $this->_getStyleFor($size)->resize($this->path(), $this->path($style_name), $size);\n\n\t\treturn $flag;\n\t}",
"function _wp_image_editor_choose($args = array())\n {\n }",
"public function isTaskShouldApplyFilters(): bool\n {\n $this->consistencyCheck();\n\n if ($this->concat_fade_duration > 0) {\n return true;\n }\n \n if (! $this->isInputsHaveSameRatio()) {\n return true;\n }\n \n if ($this->isInputsFromDifferentCodecs()) {\n return true;\n }\n \n return false;\n }",
"protected function _checkImage() {\n if ( !is_file ( $this->src ) ) {\n $this->src = $this->default_missing_image; \n }\n $image_path_parts = pathinfo ( $this->src );\n $this->_image_name = $image_path_parts['basename'];\n $this->_thumb_filename = $this->attributes['width'] . 'x' . $this->attributes['height'] . '_' . $this->_image_name;\n $this->_thumb_src = $this->thumbs_dir_path . $this->_thumb_filename;\n if ( is_readable ( $this->_thumb_src ) ) {\n $this->_calculated_width = $this->attributes['width'];\n $this->_calculated_height = $this->attributes['height'];\n $this->src = $this->_thumb_src;\n return 'no_thumb_required';\n }\n if ( !$this->_original_image_info = getimagesize ( $this->src ) ) {\n return 'abort';\n } \n if (!in_array ( $this->_original_image_info['mime'], $this->_valid_mime ) ) {\n return 'abort';\n }\n }",
"public function test_multi_resize_does_not_create() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'height' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'height' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'height' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => 0,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => null,\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'width' => '',\n\t\t\t\t'crop' => true,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t// If no images are generated, the returned array is empty.\n\t\t$this->assertEmpty( $resized );\n\t}",
"public function can_add_a_submission_media_image_to_end_of_submission_collection_of_checked_answere()\n {\n $this->create_user('admin');\n\n // \"answere\" is missing\n $old_values = [\n \"challenge_id\" => $this->create(\"Challenge\", [\n \"game_type\" => \"text_answere\",\n \"game_id\" => $this->create(\"GameTextAnswere\")->id,\n \"playfield_type\" => \"city\",\n \"playfield_id\" => $this->create(\"City\")->id,\n ])->id,\n \"user_id\" => $this->create(\"User\")->id,\n \"answere\" => \"sadffasfaf adsf afds.\",\n \"score\" => 25000\n ];\n\n $old_checked_answere = $this->create(\"AnswereChecked\", $old_values);\n $this->file_factory($old_checked_answere, \"submission\", [\"submission1\", \"submission2\"]);\n \n $files = [\n \"submission\" => [\n UploadedFile::fake()->image(\"submission3.jpg\"),\n UploadedFile::fake()->image(\"submission4.jpg\"),\n ]\n ];\n\n // When\n $res = $this->json(\"PUT\",\"$this->api_base/checked/\".$old_checked_answere->id, $files);\n\n // Then\n $res->assertStatus(200)\n ->assertJsonCount(4, \"data.media_submission\"); // assert that 2 images have been added to submission\n\n // Check if db file media data urls actually exist as files in storage\n if($stored_header_files_array = $this->spread_media_urls($res->getData()->data->media_submission)){\n \\Storage::disk(\"test\")->assertExists($stored_header_files_array);\n }\n }",
"public function testS2imageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = '';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }",
"public function inlineImageExists()\n {\n }",
"public function testPostImage()\n {\n }",
"function test_html_fix() {\n $posts = CompliantPost::published();\n $first_post = $posts[0];\n $first_image = $first_post->embedded_images[0];\n\n // Test\n $content_before = $first_post->wp_post->post_content;\n $updated_content = $first_post->update_content_img_alt_attributes();\n\n // Dump output.\n var_dump(array(\n 'before' => $content_before,\n 'after' => $updated_content\n ));\n var_dump($first_post->errors);\n var_dump($first_post->updates_counter);\n }",
"function imagesetstyle($image, $style)\n{\n}",
"private function checkImage()\n\t{\n\t\tif (!$this->imageResized) {\n\t\t\t$this->resize($this->width, $this->height);\n\t\t}\n\t}",
"public function testS3imageShouldBeAdded()\n {\n $imageLabel = '';\n $imageUrl = 'someText';\n $expected = 0;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }",
"public static function edit_image()\n{\n\n\n\t/*\n\t* Change Background\n\t*/\n\n\t/*\n\t* Change other setting\n\t*/\n}",
"function cleanImages()\r\n {\r\n if (!count($this->imagesContent)) return true;\r\n $this->_echo('<br>Очистка не используемых файлов картинок...');\r\n foreach ($this->imagesContent as $file) {\r\n @unlink($this->rootPath.$file);\r\n }\r\n }",
"public function auditColoriser($contentType, $actionType){\n }",
"public function reprocess()\n {\n $fileLocation = $this->storage == 'filesystem' ? $this->path('original') : $this->url('original');\n\n if (!$this->originalFilename() || !file_exists($fileLocation)) {\n return;\n }\n\n foreach ($this->styles as $style) {\n $file = FileFactory::create($fileLocation);\n\n $ext = pathinfo($file->getFilename(), PATHINFO_EXTENSION);\n if (\n $style->dimensions\n && (\n $file->isImage()\n || in_array($ext, ['psd', 'ai', 'eps', 'ar3'])\n )\n ) {\n if ($ext == 'psd') {\n $uploadedFile = new UploadedFile(\n new SymfonyUploadedFile(public_path('img/files/psd.png'), 'psd.png')\n );\n $file = $this->resizer->resize($uploadedFile, $style);\n }\n else if ($ext == 'ai') {\n $uploadedFile = new UploadedFile(\n new SymfonyUploadedFile(public_path('img/files/ai.png'), 'ai.png')\n );\n $file = $this->resizer->resize($uploadedFile, $style);\n }\n else if ($ext == 'eps') {\n $uploadedFile = new UploadedFile(\n new SymfonyUploadedFile(public_path('img/files/eps.png'), 'eps.png')\n );\n $file = $this->resizer->resize($uploadedFile, $style);\n }\n else if ($ext == 'ar3') {\n $uploadedFile = new UploadedFile(\n new SymfonyUploadedFile(public_path('img/files/ar3.png'), 'ar3.png')\n );\n $file = $this->resizer->resize($uploadedFile, $style);\n }\n else if ($file->isImage()) {\n $file = $this->resizer->resize($file, $style);\n }\n }\n else {\n $file = $file->getRealPath();\n }\n\n $filePath = $this->path($style->name);\n $this->move($file, $filePath);\n }\n }",
"protected function _shouldApplyBannerHandle()\n {\n return in_array($this->_getFullActionName(), $this->_getBannerHandles());\n }",
"private function are_batch_assets_enqueued() {\n\n\t\t// Run the check on both the style and script enqueue.\n\t\tif ( false !== wp_style_is( 'batch-process-styles', 'enqueued' ) && false !== wp_script_is( 'batch-js', 'enqueued' ) ) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public function testThemeImageWithSizes() {\n // Test with multipliers.\n $sizes = '(max-width: ' . rand(10, 30) . 'em) 100vw, (max-width: ' . rand(30, 50) . 'em) 50vw, 30vw';\n $image = [\n '#theme' => 'image',\n '#sizes' => $sizes,\n '#uri' => reset($this->testImages),\n '#width' => rand(0, 1000) . 'px',\n '#height' => rand(0, 500) . 'px',\n '#alt' => $this->randomMachineName(),\n '#title' => $this->randomMachineName(),\n ];\n $this->render($image);\n\n // Make sure sizes is set.\n $this->assertRaw($sizes, 'Sizes is set correctly.');\n }",
"function do_bbcode_img ($action, $attributes, $content, $params, $node_object) {\r\n\r\n if ($action == 'validate') {\r\n return true;\r\n }\r\n return '<img border=\"0\" src=\"'.htmlspecialchars($content).'\" alt=\"\">';\r\n}",
"protected function isTargetCorrect() {}",
"function _post_submitbox_misc_actions($post){\n \n $status = $post->post_status === 'publish' || $post->post_status === 'auto-draft' ? __(\"Active\",'acf') : __(\"Inactive\",'acf');\n $name = $this->get_name($post->ID);\n \n $tools = array();\n \n foreach($this->tools as $action){\n \n $action_name = $action === 'php' ? 'PHP' : 'Json';\n $tools[] = '<a href=\"' . admin_url(\"edit.php?post_type=acf-field-group&page=acf-tools&tool={$this->tool}&action={$action}&keys={$name}\") . '\">' . $action_name . '</a>';\n \n }\n \n if($tools){ ?>\n <div class=\"misc-pub-section acfe-misc-export\">\n <span class=\"dashicons dashicons-editor-code\"></span>\n Export: <?php echo implode(' ', $tools); ?>\n </div>\n <?php } ?>\n <script type=\"text/javascript\">\n (function($) {\n $('#post-status-display').html('<?php echo $status; ?>');\n <?php if($tools){ ?>$('.acfe-misc-export').insertAfter('.misc-pub-post-status');<?php } ?>\n })(jQuery);\n </script>\n <?php\n \n $this->post_submitbox_misc_actions($post);\n \n }",
"public function isImage()\n\t{\n\t\treturn in_array($this->getMimetype(), $this->imagesMimeTypes);\n\t}",
"function edit_form_image_editor($post)\n {\n }",
"public function test_actionAsset($file_name = \"\", $get = [])\n {\n $create_json_response = $this->createAsset($file_name);\n\n $_GET = $get;\n\n $_SERVER['REDIRECT_URL'] = '/query/asset/';\n ob_start();\n $controller = new $this->controller_name(rand(0,1000));\n Reflection::setProperty('allowGenerateHeader', $this->controller_name, $controller, false);\n Reflection::callMethod('actionAsset', $this->controller_name, [], $controller);\n $response = ob_get_contents();\n ob_end_clean();\n\n $json_response = str_replace(\"HTTP/1.1 200 OK\\n\", \"\", $response);\n $json_response = str_replace(\"Content-type: application/json\\n\", \"\", $json_response);\n\n $this->assertEquals(\"[\" . $create_json_response . \"]\", $json_response);\n }",
"public function check(Asset $asset)\n { \n $url = $this->getPicscoutUrl($asset);\n $content = $this->callPicscout($url);\n \t\n \tif(isset($content['ids'][0])) { //check if we had reponse from picscout\n \t\t$img_id = $content['ids'][0];\n \n \t\t$getty_image_img = $this->getGettyImageId($img_id); \n if(!is_null($getty_image_img)) {\n \n $g = new GettyImage;\n $rs = $g->getImageDetails($getty_image_img);\n if($rs !== null) { \n if(empty($rs->Images) === false) { \n $getty_data['imageId'] = $getty_image_img;\n $getty_data['picScoutImageId'] = $img_id;\n\n $image = $rs->Images[0];\n $meta = array(\n 'artist' => $image->Artist,\n 'copyright' => $image->Artist . ' / ' . $image->CollectionName\n ); \n $asset->setMeta($meta);\n $asset->setFromGetty(true); \n $asset->setGettyData($getty_data);\n $this->dm->persist($asset);\n $this->dm->flush(); \n }\n }\n }\n\n \t}\n \n \t//no ids was found, we can use asset\n \treturn true;\n }",
"function aurum_woocommerce_3_3_transfer_image_sizes() {\n\t\t$do_resize = false;\n\t\t\n\t\t// WooCommerce Thumbnail\n\t\tif ( ( $shop_catalog_image_size = get_theme_mod( 'shop_catalog_image_size' ) ) ) {\n\t\t\t\n\t\t\t// {width}x{height} format\n\t\t\tif ( preg_match( '#^(?<width>[0-9]+)x(?<height>[0-9]+)(x(?<cropped>0|1))?$#', $shop_catalog_image_size, $shop_catalog_image_size_matches ) ) {\n\t\t\t\t$width = $shop_catalog_image_size_matches['width'];\n\t\t\t\t$height = $shop_catalog_image_size_matches['height'];\n\t\t\t\t$cropping = ! isset( $shop_catalog_image_size_matches['cropped'] ) || $shop_catalog_image_size_matches['cropped'];\n\t\t\t\t\n\t\t\t\t$ratio = _get_aspect_ratio( $width, $height );\n\t\t\t\t\n\t\t\t\tupdate_option( 'woocommerce_thumbnail_cropping', $cropping ? 'custom' : 'uncropped' );\n\t\t\t\tupdate_option( 'woocommerce_thumbnail_cropping_custom_width', $ratio[0] );\n\t\t\t\tupdate_option( 'woocommerce_thumbnail_cropping_custom_height', $ratio[1] );\n\t\t\t\t\n\t\t\t\t$do_resize = true;\n\t\t\t}\n\t\t\t// Crop width only\n\t\t\telse if( is_numeric( $shop_catalog_image_size ) ) {\n\t\t\t\tupdate_option( 'woocommerce_thumbnail_cropping', 'uncropped' );\n\t\t\t\tupdate_option( 'woocommerce_thumbnail_cropping_custom_width', $shop_catalog_image_size );\n\t\t\t\t\n\t\t\t\t$do_resize = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Single image\n\t\tif ( ( $shop_single_image_size = get_theme_mod( 'shop_single_image_size' ) ) ) {\n\t\t\t\n\t\t\tif ( preg_match( '#^(?<width>[0-9]+)(x(?<height>[0-9]+))?(x(?<cropped>0|1))?$#', $shop_single_image_size, $shop_single_image_size_matches ) ) {\n\t\t\t\tupdate_option( 'woocommerce_single_image_width', $shop_single_image_size_matches['width'] );\n\t\t\t\t\n\t\t\t\t$do_resize = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Request image regeneration\n\t\tif ( $do_resize && class_exists( 'WC_Regenerate_Images' ) ) {\n\t\t\tWC_Regenerate_Images::queue_image_regeneration();\n\t\t}\n\t\t\n\t\t// Lightbox has moved\n\t\tset_theme_mod( 'shop_single_lightbox', ! get_theme_mod( 'shop_single_lightbox_disable', false ) );\n\t\t\n\t\t\n\t\t// WooCommerce columns\n\t\t$shop_product_columns = get_data( 'shop_product_columns' );\n\t\t\n\t\tupdate_option( 'woocommerce_catalog_columns', aurum_get_number_from_word( 'decide' == $shop_product_columns ? 4 : $shop_product_columns ) );\n\t\t\n\t\tif ( preg_match( '#[0-9]+#', get_data( 'shop_products_per_page' ), $matches ) ) {\n\t\t\tupdate_option( 'woocommerce_catalog_rows', $matches[0] );\n\t\t}\n\t\t\n\t\t// Run this once\n\t\tupdate_option( 'aurum_woocommerce_3_3_transfer_image_sizes', true );\n\t}",
"public function testSimageShouldBeAdded()\n {\n $imageLabel = 'someText';\n $imageUrl = 'someOtherText';\n $expected = 1;\n $actual = imageShouldBeAdded($imageLabel, $imageUrl);\n $this->assertEquals($expected, $actual);\n }",
"public function isInputsHaveSameRatio(): bool\n {\n $this->consistencyCheck();\n \n $input_list = ProjectInputs::query()->where('project', $this->id)->get();\n if (count($input_list) > 1) {\n return $input_list->where('status', InputStatuses::WRONG_RATIO)->isNotEmpty();\n } else {\n return false;\n }\n }",
"protected function isExternalImage() {}",
"protected function doAssetCheck()\n {\n if ($this->value instanceof StandardAsset) {\n if ($this->value->provides() !== $this->is_asset) {\n if ($this->throws === null) {\n throw new \\InvalidArgumentException(' did not pass the \"' . $this->is_asset . '\" Asset validator');\n } else {\n throw (new Callback($this->throws))->call();\n }\n }\n } elseif ($this->value instanceof ServiceManager) {\n if (!$this->value->provides($this->is_asset)) {\n if ($this->throws === null) {\n throw new \\InvalidArgumentException(' did not pass the \"' . (is_array($this->is_asset) ? '[' . implode(', ', $this->is_asset) . ']' : $this->is_asset) . '\" Asset validator');\n } else {\n throw (new Callback($this->throws))->call();\n }\n }\n } else {\n if ($this->throws === null) {\n throw new \\InvalidArgumentException(' is not a valid \"Asset\" or \"Service\\Manager\"');\n } else {\n throw (new Callback($this->throws))->call();\n }\n }\n }",
"public function test_comicEntityIsCreated_images_setImages()\n {\n $sut = $this->getSUT();\n $images = $sut->getImages();\n $expected = [\n Image::create(\n 'http://i.annihil.us/u/prod/marvel/i/mg/c/30/4fe8cb51f32e0',\n 'jpg'\n ),\n ];\n\n $this->assertEquals($expected, $images);\n }",
"public function imageStylesOperations(array $image_styles, $file_uri, $create_derivative = FALSE) {\n /** @var \\Drupal\\image\\Entity\\ImageStyle $image_style */\n foreach ($image_styles as $image_style) {\n if ($create_derivative) {\n // Generate the image derivative uri.\n $destination_uri = $image_style->buildUri($file_uri);\n\n // Create a derivative of the original image with a good uri.\n $image_style->createDerivative($file_uri, $destination_uri);\n }\n // Flush the cache of this ImageStyle.\n $image_style->flush($file_uri);\n }\n }",
"public function validate_parameters() {\n\t\t// phpcs:disable WordPress.Security.NonceVerification.Recommended\n\n\t\tif ( empty( $_REQUEST['id'] ) ) {\n\t\t\t/* translators: 1: parameter markup */\n\t\t\twp_die( sprintf( esc_html__( 'Invalid %s parameter.', 'wpcom-thumbnail-editor' ), '<code>id</code>' ) );\n\t\t}\n\n\t\t$attachment = get_post( intval( $_REQUEST['id'] ) );\n\t\tif ( ! $attachment ) {\n\t\t\t/* translators: 1: parameter markup */\n\t\t\twp_die( sprintf( esc_html__( 'Invalid %s parameter.', 'wpcom-thumbnail-editor' ), '<code>id</code>' ) );\n\t\t}\n\n\t\tif ( 'attachment' != $attachment->post_type || ! wp_attachment_is_image( $attachment->ID ) ) {\n\t\t\twp_die( esc_html__( 'That is not a valid image attachment.', 'wpcom-thumbnail-editor' ) );\n\t\t}\n\n\t\tif ( ! current_user_can( get_post_type_object( $attachment->post_type )->cap->edit_post, $attachment->ID ) ) {\n\t\t\twp_die( esc_html__( 'You are not allowed to edit this attachment.', 'wpcom-thumbnail-editor' ) );\n\t\t}\n\n\t\tif ( $this->use_ratio_map ) {\n\t\t\tif ( empty( $_REQUEST['size'] ) || ! in_array( $_REQUEST['size'], $this->get_image_sizes_by_ratio(), true ) ) {\n\t\t\t\t/* translators: 1: parameter markup */\n\t\t\t\twp_die( sprintf( esc_html__( 'Invalid %s parameter.', 'wpcom-thumbnail-editor' ), '<code>size</code>' ) );\n\t\t\t}\n\t\t} else {\n\t\t\tif ( empty( $_REQUEST['size'] ) || ! in_array( $_REQUEST['size'], $this->get_intermediate_image_sizes(), true ) ) {\n\t\t\t\t/* translators: 1: parameter markup */\n\t\t\t\twp_die( sprintf( esc_html__( 'Invalid %s parameter.', 'wpcom-thumbnail-editor' ), '<code>size</code>' ) );\n\t\t\t}\n\t\t}\n\n\t\t// phpcs:enable\n\n\t\treturn $attachment;\n\t}",
"function hook_image_styles_alter(&$styles) {\n // Check that we only affect a default style.\n if ($styles['thumbnail']['storage'] == IMAGE_STORAGE_DEFAULT) {\n // Add an additional effect to the thumbnail style.\n $styles['thumbnail']['effects'][] = array(\n 'name' => 'image_desaturate',\n 'data' => array(),\n 'weight' => 1,\n 'effect callback' => 'image_desaturate_effect',\n );\n }\n}",
"public function submittask($values){\n $file1 = $values[\"file1\"];\n $tmp1 = $values[\"tmp1\"];\n $type1 = $values[\"type1\"];\n // Extractin second values from array\n $file2 = $values[\"file2\"];\n $tmp2 = $values[\"tmp2\"];\n $type2 = $values[\"type2\"];\n // Extractin third values from array\n $file3 = $values[\"file3\"];\n $tmp3 = $values[\"tmp3\"];\n $type3 = $values[\"type3\"];\n\n // check if first image is not empty\n if ($file1 != \"\"){\n // Check if image format is valid\n if ($type1 == \"image/jpeg\" || $type1 == \"image/jpg\" || $type1 == \"image/png\") {\n if ($type1 == \"image/jpeg\" || $type1 == \"image/jpg\"){\n $src = imagecreatefromjpeg($tmp1);\n }else if ($type1 == \"image/png\" ){\n $src = imagecreatefrompng($tmp1);\n }\n list($width, $heigth) = getimagesize($tmp1);\n $new_width = 350;\n $new_heigth = (($heigth/$width) * $new_width);\n $tmp_alt = imagecreatetruecolor($new_width, $new_heigth);\n imagecopyresampled($tmp_alt, $src, 0,0,0,0 ,$new_width, $new_heigth, $width, $heigth);\n imagejpeg($tmp_alt, \"../../images/submit/$file1\");\n }else {\n return \"failed\";\n }\n }\n // Check if second file is empty\n if ($file2 != \"\"){\n // Check if image format is valid\n if ($type2 == \"image/jpeg\" || $type2 == \"image/jpg\" || $type2 == \"image/png\") {\n if ($type2 == \"image/jpeg\" || $type2 == \"image/jpg\"){\n $src = imagecreatefromjpeg($tmp2);\n }else if ($type2 == \"image/png\" ){\n $src = imagecreatefrompng($tmp2);\n }\n list($width, $heigth) = getimagesize($tmp2);\n $new_width = 350;\n $new_heigth = (($heigth/$width) * $new_width);\n $tmp_alt = imagecreatetruecolor($new_width, $new_heigth);\n imagecopyresampled($tmp_alt, $src, 0,0,0,0 ,$new_width, $new_heigth, $width, $heigth);\n imagejpeg($tmp_alt, \"../../images/submit/$file2\");\n }else {\n return \"failed\";\n }\n }\n // Check if third file is empty\n if ($file3 != \"\"){\n // Check if image format is valid\n if ($type3 == \"image/jpeg\" || $type3 == \"image/jpg\" || $type3 == \"image/png\") {\n if ($type3 == \"image/jpeg\" || $type3 == \"image/jpg\"){\n $src = imagecreatefromjpeg($tmp3);\n }else if ($type3 == \"image/png\" ){\n $src = imagecreatefrompng($tmp3);\n }\n list($width, $heigth) = getimagesize($tmp3);\n $new_width = 350;\n $new_heigth = (($heigth/$width) * $new_width);\n $tmp_alt = imagecreatetruecolor($new_width, $new_heigth);\n imagecopyresampled($tmp_alt, $src, 0,0,0,0 ,$new_width, $new_heigth, $width, $heigth);\n imagejpeg($tmp_alt, \"../../images/submit/$file3\");\n }else {\n return \"failed\";\n }\n }\n // SQL statement\n $sql = \"SELECT * FROM user WHERE user_name = ? \";\n // Prepared Statement\n $stmt = $this->con->prepare($sql);\n $stmt->bind_param(\"s\", $_SESSION['user']);\n $stmt->execute();\n $result = $stmt->get_result();\n $result = $result->fetch_assoc();\n $user_id = $result['user_id'];\n $plan = $result['plan'];\n $expiry = $result['other_plans_expiry'];\n $expiry++;\n // Get task id\n\n // SQL statement\n $date = date(\"Y/m/d\");\n $sql = \"SELECT * FROM task WHERE date = ? ORDER BY task_id DESC LIMIT 1\";\n // Prepared Statement\n $stmt = $this->con->prepare($sql);\n $stmt->bind_param(\"s\", $date);\n $stmt->execute();\n $result = $stmt->get_result();\n $result = $result->fetch_assoc();\n $task_id = $result['task_id'];\n\n // Check if id user already submitted task\n $sql = \"SELECT * FROM approval WHERE user_id = '\".$user_id.\"' AND task_id = '\".$task_id.\"' AND date = '\".$date.\"' \";\n $count = $this->con->query($sql);\n if ($count->num_rows == 0){\n // INSERT into database\n\n // SQL statement\n $sql = \"INSERT INTO approval (task_id,user_id,task_1,task_2,task_3,date) VALUES (?,?,?,?,?,?)\";\n\n // prepared statement\n $stmt = $this->con->prepare($sql);\n $stmt->bind_param(\"iissss\", $task_id,$user_id,$file1,$file2,$file3,$date);\n // Incerement expiry date by 1 if post submitted amd user isnt Basic\n if ($stmt->execute()){\n if ($plan != \"basic\"){\n // SQL statement\n $sql = \"UPDATE user SET other_plans_expiry = '\".$expiry.\"' WHERE user_id = '\".$user_id.\"'\";\n $this->con->query($sql);\n }\n return \"success\";\n }\n } else {\n return \"exists\";\n }\n }",
"public function apply()\n {\n if ($this->_params['preserve']) {\n Horde_Image_Imagick::frameImage($this->_image->imagick,\n $this->_params['bordercolor'],\n $this->_params['borderwidth'],\n $this->_params['borderwidth']);\n } else {\n $this->_image->imagick->borderImage(\n new ImagickPixel($this->_params['bordercolor']),\n $this->_params['borderwidth'],\n $this->_params['borderwidth']);\n }\n\n return true;\n }",
"public function actionPublishWighImg()\n {\n $imgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR . 'web';\n $sql = \"SELECT ci.id, ci.category_id, cc.name AS category_name, cc.lang, ci.published, ci.sku, civ.articul, civ.img_url\nFROM catalog_item ci \nLEFT JOIN catalog_item_variant civ ON civ.product_id = ci.id\nLEFT JOIN catalog_category cc ON cc.id = ci.category_id\nWHERE ci.published = 0\";\n $items = CatalogItemVariant::findBySql($sql)\n ->asArray()\n ->all();\n if (!empty($items)) {\n $i = $j = 0;\n foreach ($items as $it) {\n // echo print_r($it, 1) . PHP_EOL;\n $imgPathFull = $imgDir . $it['img_url'];\n if (file_exists($imgPathFull)) {\n echo 'File exists: ' . $imgPathFull . PHP_EOL;\n $j ++;\n\n $ci = CatalogItem::findOne(['id' => $it['id'], 'published' => 0]);\n if (!empty($ci)) {\n $ci->published = 1;\n $ci->save();\n }\n }\n $i ++;\n }\n echo 'Checked ' . $i . ' items. Found ' . $j . ' items with images.' . PHP_EOL;\n }\n }",
"private function getImageStylesConfig() {\n static $styles = [];\n if (!empty($styles)) {\n return $styles;\n }\n $image_style_config_files = Utils::getConfigFiles($this->scaffolder->getConfigDir() . '/image_style');\n if (!empty($image_style_config_files)) {\n foreach ($image_style_config_files as $image_style_config_file) {\n $config_data = Utils::getConfig($image_style_config_file);\n if ($config_data) {\n if (!empty($config_data['image_styles'])) {\n $prefix_machine_name = isset($config_data['prefix']['machine_name']) ? $config_data['prefix']['machine_name'] : '';\n $prefix_name = isset($config_data['prefix']['name']) ? $config_data['prefix']['name'] : '';\n $multiplier_config = isset($config_data['multiplier']) ? $config_data['multiplier'] : ['1x' => '1x'];\n $multiplier = [];\n foreach ($multiplier_config as $key => $value) {\n $multiplier[$value] = floatval(str_replace('x', '', $value));\n }\n\n $new_image_styles = [];\n foreach ($multiplier as $suffix => $scale) {\n foreach ($config_data['image_styles'] as $config) {\n $config['name'] = empty($config['name']) ? $config['machine_name'] : $config['name'];\n $config['name'] = $prefix_name . $config['name'];\n $config['machine_name'] = $prefix_machine_name . $config['machine_name'];\n if (count($multiplier) > 1) {\n $config['name'] .= '@' . $suffix;\n $config['machine_name'] .= '_' . $suffix;\n }\n $config['machine_name'] = preg_replace(\"/[^a-z0-9_]/\", '_', $config['machine_name']);\n\n if ($config['effects']) {\n foreach ($config['effects'] as $key => &$effects) {\n $index = $key + 1;\n $effects['index'] = $index;\n $effects['weight'] = empty($effects['weight']) ? $index : $effects['weight'];\n foreach (array('width', 'height') as $k) {\n if (isset ($effects['data'][$k])) {\n $effects['data'][$k] = round($effects['data'][$k] * $scale);\n }\n }\n }\n }\n $styles[$config['machine_name']] = $this->getImageData($config);\n }\n }\n }\n }\n }\n }\n return $styles;\n }",
"public function test_is_valid_post_action() {\n\n\t\t$post_types = array(\n\t\t\t'course' => false,\n\t\t\t'section' => false,\n\t\t\t'lesson' => false,\n\t\t\t'llms_membership' => false,\n\t\t\t'llms_access_plan' => false,\n\t\t\t'llms_order' => false,\n\t\t\t'llms_transaction' => false,\n\t\t\t'post' => false,\n\t\t\t'page' => false,\n\t\t);\n\n\t\t$tests = array(\n\t\t\t'course.deleted' => array_merge( $post_types, array( 'course' => true ) ),\n\t\t\t'section.deleted' => array_merge( $post_types, array( 'section' => true ) ),\n\t\t\t'lesson.deleted' => array_merge( $post_types, array( 'lesson' => true ) ),\n\t\t\t'membership.deleted' => array_merge( $post_types, array( 'llms_membership' => true ) ),\n\t\t\t'access_plan.deleted' => array_merge( $post_types, array( 'llms_access_plan' => true ) ),\n\t\t\t'order.deleted' => array_merge( $post_types, array( 'llms_order' => true ) ),\n\t\t\t'transaction.deleted' => array_merge( $post_types, array( 'llms_transaction' => true ) ),\n\t\t);\n\n\t\tforeach ( $tests as $topic => $post_types ) {\n\n\t\t\t$webhook = LLMS_REST_API()->webhooks()->create( array(\n\t\t\t\t'delivery_url' => 'https://fake.tld',\n\t\t\t\t'topic' => $topic,\n\t\t\t) );\n\n\t\t\tforeach ( $post_types as $type => $expect ) {\n\n\t\t\t\t$post_id = $this->factory->post->create( array( 'post_type' => $type ) );\n\t\t\t\t$this->assertEquals( $expect, LLMS_Unit_Test_Util::call_method( $webhook, 'is_valid_post_action', array( $post_id ) ) );\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"public function testImageValue() : void {\n\t\t$this->assertEquals('kc_image', PostType::Image->value);\n\t}",
"function wpview_media_sandbox_styles()\n {\n }",
"function turnitintooltwo_get_post_actions() {\n return array('submit');\n}",
"function process_bulk_action() {\r\n if( 'apporve'===$this->current_action() ) {\r\n wp_die('Items deleted (or they would be if we had items to delete)!');\r\n }\r\n elseif( 'reject'===$this->current_action() ) {\r\n wp_die('Items deleted (or they would be if we had items to delete)!');\r\n }\r\n \r\n }",
"function PricerrTheme_category_images()\n{\n $id_icon = 'icon-options-general-img';\n $ttl_of_stuff = 'PricerrTheme - ' . __('Category Images', 'PricerrTheme');\n global $menu_admin_PricerrTheme_theme_bull;\n\n //------------------------------------------------------\n\n $arr = array(\"yes\" => __(\"Yes\", 'PricerrTheme'), \"no\" => __(\"No\", 'PricerrTheme'));\n\n echo '<div class=\"wrap\">';\n echo '<div class=\"icon32\" id=\"' . $id_icon . '\"><br/></div>';\n echo '<h2 class=\"my_title_class_sitemile\">' . $ttl_of_stuff . '</h2>';\n\n ?>\n\n<?php\n\nif (isset($_POST['set_category_image'])) {\n $category_id = $_POST['category_id'];\n $category_image = $_POST['category_image'];\n\n if (!empty($_FILES['category_image']['name'])):\n\n $upload_overrides = array('test_form' => false);\n $uploaded_file = wp_handle_upload($_FILES['category_image'], $upload_overrides);\n\n $file_name_and_location = $uploaded_file['file'];\n $file_title_for_media_library = $_FILES['category_image']['name'];\n\n $arr_file_type = wp_check_filetype(basename($_FILES['category_image']['name']));\n $uploaded_file_type = $arr_file_type['type'];\n\n if ($uploaded_file_type == \"image/png\" or $uploaded_file_type == \"image/jpg\" or $uploaded_file_type == \"image/jpeg\" or $uploaded_file_type == \"image/gif\") {\n\n $attachment = array(\n 'post_mime_type' => $uploaded_file_type,\n 'post_title' => addslashes($file_title_for_media_library),\n 'post_content' => '',\n 'post_status' => 'inherit',\n 'post_parent' => 0,\n\n 'post_author' => $cid,\n );\n\n $attach_id = wp_insert_attachment($attachment, $file_name_and_location, 0);\n $attach_data = wp_generate_attachment_metadata($attach_id, $file_name_and_location);\n wp_update_attachment_metadata($attach_id, $attach_data);\n\n update_post_meta($attach_id, 'category_image', $category_id);\n\n }\n\n echo '<div class=\"saved_thing\">' . __('Image attached. Done.', 'PricerrTheme') . '</div>';\n\n else:\n\n\n echo '<div class=\"saved_thing\">' . __('Please select an image.', 'PricerrTheme') . '</div>';\n\n endif;\n\n}\n\n?>\n\n <style>\n\n .crme_brullet {\n padding: 2px;\n background: white;\n border: 1px solid #ccc;\n }\n\n </style>\n\n\n <script type=\"text/javascript\">\n\n function delete_this_my_pic(id) {\n jQuery.ajax({\n method: 'get',\n url: '<?php echo get_bloginfo('siteurl');?>/index.php?_ad_delete_pid=' + id,\n dataType: 'text',\n success: function (text) {\n window.location.reload();\n\n return false;\n }\n });\n //alert(\"a\");\n\n return false;\n\n }\n\n </script>\n\n\n<div id=\"usual2\" class=\"usual\">\n <ul>\n <li><a href=\"#tabs1\"><?php _e('Set Images', 'PricerrTheme'); ?></a></li>\n </ul>\n\n <div id=\"tabs1\">\n <?php\n\n $categories = get_terms('job_cat', array(\n 'parent' => '0',\n 'hide_empty' => 0\n ));\n if (count($categories) > 0) {\n ?>\n\n <table class=\"sitemile-table\" width=\"650\">\n <tr>\n <td><strong><?php echo __('Category Name', 'PricerrTheme') ?></strong></td>\n <td><strong><?php echo __('Upload Picture', 'PricerrTheme') ?></strong></td>\n <td><strong><?php echo __('Current Picture', 'PricerrTheme') ?></strong></td>\n </tr>\n\n\n <?php\n foreach ($categories as $cat) {\n\n $PricerrTheme_get_cat_pic_attached = PricerrTheme_get_cat_pic_attached($cat->term_id);\n\n ?>\n\n <form method=\"post\" enctype=\"multipart/form-data\">\n <input type=\"hidden\" value=\"<?php echo $cat->term_id ?>\" name=\"category_id\"/>\n <tr>\n <td><?php echo $cat->name ?></td>\n <td><?php if ($PricerrTheme_get_cat_pic_attached == false): ?>\n\n <input type=\"file\" name=\"category_image\" size=\"20\"/>\n\n <?php else: ?>\n <?php _e('Picture attached already.', 'PricerrTheme'); ?>\n <?php endif; ?>\n </td>\n <td>\n\n <?php if ($PricerrTheme_get_cat_pic_attached == false): ?>\n\n <input type=\"submit\" name=\"set_category_image\" size=\"20\" value=\"<?php _e('Upload Image', 'PricerrTheme'); ?>\"/>\n\n <?php else: ?>\n\n <img src=\"<?php echo PricerrTheme_generate_thumb2($PricerrTheme_get_cat_pic_attached, 40, 40); ?>\" width=\"40\" height=\"40\" class=\"crme_brullet\"/>\n <a href=\"\" onclick=\"return delete_this_my_pic('<?php echo $PricerrTheme_get_cat_pic_attached ?>')\">\n <img src=\"<?php bloginfo('template_url') ?>/images/delete.gif\" border=\"0\"/>\n </a>\n <?php endif; ?>\n\n </td>\n </tr>\n </form>\n\n <?php } ?>\n\n </table>\n <?php } ?>\n\n </div>\n\n <?php\n\n echo '</div>';\n\n}",
"public function ensureIndividualAppearanceStreams() {}",
"public function isNeedAppearancesSet() {}",
"public function test_it_has_images()\n {\n $business = BusinessFactory::create();\n $this->assertContainsOnlyInstancesOf(Image::class, $business->images);\n }",
"public function isNeedAppearancesSet() {}",
"function post_submitbox_misc_actions()\n {\n }",
"function images() {\n \n \tswitch($_POST['action']) {\n \tcase \"Delete\": \n\t\t\t\t\t\t\t$this->delete_image($_POST['imageId']); \n\t\t\t\t\t\t\tbreak;\n \tcase \"Delete Selected\":\n \t\t\t\t\tforeach($_POST['images'] as $imageId) \n\t\t\t\t\t\t\t\t$this->delete_image($imageId);\n \t\t\t\t\tbreak;\n \tcase \"uploaduniversal\": \n\t\t\t\t\t\t\t$this->upload_universal(); \n\t\t\t\t\t\t\tbreak;\n }\n\n switch($_POST['do']) {\n \tcase \"Upload New Asset\": \n\t\t\t\t\t\t\t\t\t\t$this->upload_uni_form(); \n\t\t\t\t\t\t\t\t\t\tbreak;\n\n \tdefault : {\n\t \t\t\t\t\t\t\techo $this->printHeader(\"Assets\");\n\t\t \t\t\t\t\t\t\t$this->images_list();\n\t \t}\n }\n echo \"</div>\";\n\n }",
"public function testIfStockManagementHasImage()\n {\n $this->assertNotNull($this->stock->getImage());\n }",
"public function onBeforeDelete(){\n\t\tparent::onBeforeDelete();\n\n\t\tif($this->Images() && $images = $this->Images()){\n\t\t\tforeach($images as $image){\n\t\t\t\tif($image->exists()){\n\t\t\t\t\t$image->delete();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function testValidateDocumentImageValidation()\n {\n }",
"function image_process_gd($action = 'resize')\n\t{\t\n\t\t$v2_override = FALSE;\n\t\t\t\n\t\tif ($action == 'crop')\n\t\t{\n\t\t\t// If the target width/height match the source then it's pointless to crop, right?\n\t\t\n\t\t\tif ($this->dst_width >= $this->src_width AND $this->dst_height >= $this->src_width)\n\t\t\t{\n\t\t\t\t// We'll return true so the user thinks the process succeeded.\n\t\t\t\t// It'll be our little secret...\n\n\t\t\t\treturn TRUE; \n\t\t\t}\n\t\t\t\n\t\t\t// Reassign the source width/height if cropping\n\t\t\t\n\t\t\t$this->src_width = $this->dst_width;\n\t\t\t$this->src_height = $this->dst_height;\t\n\t\t\t\t\n\t\t\t// GD 2.0 has a cropping bug so we'll test for it\n\t\t\t\n\t\t\tif ($this->gd_version() !== FALSE)\n\t\t\t{\n\t\t\t\t$gd_version = str_replace('0', '', $this->gd_version());\t\t\t\n\t\t\t\t$v2_override = ($gd_version == 2) ? TRUE : FALSE;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// If the target width/height match the source, AND if\n\t\t\t// the new file name is not equal to the old file name\n\t\t\t// we'll simply make a copy of the original with the new name\t\t\n\t\t\n\t\t\tif (($this->src_width == $this->dst_width AND $this->src_height == $this->dst_height) AND ($this->file_name != $this->new_file_name))\n\t\t\t{\n\t\t\t\tif ( ! @copy($this->full_src_path, $this->full_dst_path))\n\t\t\t\t{\n\t\t\t\t\t$this->set_error('imglib_copy_failed');\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t\n\t\t\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t\t\n\t\t\t// If resizing the x/y axis must be zero\n\t\t\t\n\t\t\t$this->x_axis = 0;\n\t\t\t$this->y_axis = 0;\n\t\t}\n\t\t\n\t\t\n\t\t/** ---------------------------------\n\t\t/** Create the image handle\n\t\t/** ---------------------------------*/\n\t\t\n\t\tif ( ! ($src_img = $this->image_create_gd()))\n\t\t{\t\t\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t/** ---------------------------------\n\t\t/** Create The Image\n\t\t/** ---------------------------------*/\n\t\t\t\t\n\t\tif ($this->resize_protocol == 'gd2' AND function_exists('imagecreatetruecolor') AND $v2_override == FALSE)\n\t\t{\n\t\t\t$create\t= 'imagecreatetruecolor';\n\t\t\t$copy\t= 'imagecopyresampled';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$create\t= 'imagecreate';\t\n\t\t\t$copy\t= 'imagecopyresized';\n\t\t}\n\n\t\t$dst_img = $create($this->dst_width, $this->dst_height); \n\t\t\n\t\t$copy($dst_img, $src_img, 0, 0, $this->x_axis, $this->y_axis, $this->dst_width, $this->dst_height, $this->src_width, $this->src_height); \n\n\t\t/** ---------------------------------\n\t\t/** Save the Image\n\t\t/** ---------------------------------*/\n\t\tif ( ! $this->image_save_gd($dst_img))\n\t\t{\t\t\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\t/** ---------------------------------\n\t\t/** Kill the file handles\n\t\t/** ---------------------------------*/\n\t\timagedestroy($dst_img); \n\t\timagedestroy($src_img);\n\t\t\n\t\t// Set the file to 777\n\t\t\n\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\t\t\t\n\t\t\n\t\treturn TRUE;\n\t}",
"public function actionUpdate($id)\n {\n $model = $this->findModel($id);\n $model->scenario = 'update';\n \n// if (\\Yii::$app->user->can('updatePost', ['post' => $model])) {\n// die('own');\n// }\n \n $oldFile1 = $model->getImageFile($model->image1);\n $oldFile2 = $model->getImageFile($model->image2);\n $oldFile3 = $model->getImageFile($model->image3);\n $oldFile4 = $model->getImageFile($model->image4);\n $oldFile5 = $model->getImageFile($model->image5);\n $oldFile6 = $model->getImageFile($model->image6);\n $oldFile7 = $model->getImageFile($model->image7);\n $oldFile8 = $model->getImageFile($model->image8);\n $oldFile9 = $model->getImageFile($model->image9);\n $oldImage1 = $model->image1;\n $oldImage2 = $model->image2;\n $oldImage3 = $model->image3;\n $oldImage4 = $model->image4;\n $oldImage5 = $model->image5;\n $oldImage6 = $model->image6;\n $oldImage7 = $model->image7;\n $oldImage8 = $model->image8;\n $oldImage9 = $model->image9;\n \n $model->img2 = 0;\n $model->img3 = 0;\n $model->img4 = 0;\n $model->img5 = 0;\n $model->img6 = 0;\n $model->img7 = 0;\n $model->img8 = 0;\n $model->img9 = 0;\n \n if ($model->load(Yii::$app->request->post())) {\n $image1 = $model->uploadImage(1);\n $image2 = $model->uploadImage(2);\n $image3 = $model->uploadImage(3);\n $image4 = $model->uploadImage(4);\n $image5 = $model->uploadImage(5);\n $image6 = $model->uploadImage(6);\n $image7 = $model->uploadImage(7);\n $image8 = $model->uploadImage(8);\n $image9 = $model->uploadImage(9);\n \n // revert back if image not valid\n if($image1 === FALSE){\n $model->image1 = $oldImage1;\n }\n if($image2 === FALSE){\n if($model->img2 == 1):\n if(is_file($oldFile2)){\n unlink($oldFile2);\n }\n $model->image2 = \"\";\n else:\n $model->image2 = $oldImage2;\n endif;\n }\n if($image3 === FALSE){\n if($model->img3 == 1):\n if(is_file($oldFile3)){\n unlink($oldFile3);\n }\n $model->image3 = \"\";\n else:\n $model->image3 = $oldImage3;\n endif;\n }\n if($image4 === FALSE){\n if($model->img4 == 1):\n if(is_file($oldFile4)){\n unlink($oldFile4);\n }\n $model->image4 = \"\";\n else:\n $model->image4 = $oldImage4;\n endif;\n }\n if($image5 === FALSE){\n if($model->img5 == 1):\n if(is_file($oldFile5)){\n unlink($oldFile5);\n }\n $model->image5 = \"\";\n else:\n $model->image5 = $oldImage5;\n endif;\n }\n if($image6 === FALSE){\n if($model->img6 == 1):\n if(is_file($oldFile6)){\n unlink($oldFile6);\n }\n $model->image6 = \"\";\n else:\n $model->image6 = $oldImage6;\n endif;\n }\n if($image7 === FALSE){\n if($model->img7 == 1):\n if(is_file($oldFile7)){\n unlink($oldFile7);\n }\n $model->image7 = \"\";\n else:\n $model->image7 = $oldImage7;\n endif;\n }\n if($image8 === FALSE){\n if($model->img8 == 1):\n if(is_file($oldFile8)){\n unlink($oldFile8);\n }\n $model->image8 = \"\";\n else:\n $model->image8 = $oldImage8;\n endif;\n }\n if($image9 === FALSE){\n if($model->img9 == 1):\n if(is_file($oldFile9)){\n unlink($oldFile9);\n }\n $model->image9 = \"\";\n else:\n $model->image9 = $oldImage9;\n endif;\n }\n \n if($model->save()){\n // upload jika image nya valid\n \n if($image1 !== FALSE){\n if(is_file($oldFile1)){\n unlink($oldFile1);\n }\n $path1 = $model->getImageFile($model->image1);\n $image1->saveAs($path1);\n }\n if($image2 !== FALSE){\n if(is_file($oldFile2)){\n unlink($oldFile2);\n }\n $path2 = $model->getImageFile($model->image2);\n $image2->saveAs($path2);\n }\n if($image3 !== FALSE){\n if(is_file($oldFile3)){\n unlink($oldFile3);\n }\n $path3 = $model->getImageFile($model->image3);\n $image3->saveAs($path3);\n }\n if($image4 !== FALSE){\n if(is_file($oldFile4)){\n unlink($oldFile4);\n }\n $path4 = $model->getImageFile($model->image4);\n $image4->saveAs($path4);\n }\n if($image5 !== FALSE){\n if(is_file($oldFile5)){\n unlink($oldFile5);\n }\n $path5 = $model->getImageFile($model->image5);\n $image5->saveAs($path5);\n }\n if($image6 !== FALSE){\n if(is_file($oldFile6)){\n unlink($oldFile6);\n }\n $path6 = $model->getImageFile($model->image6);\n $image6->saveAs($path6);\n }\n if($image7 !== FALSE){\n if(is_file($oldFile7)){\n unlink($oldFile7);\n }\n $path7 = $model->getImageFile($model->image7);\n $image7->saveAs($path7);\n }\n if($image8 !== FALSE){\n if(is_file($oldFile8)){\n unlink($oldFile8);\n }\n $path8 = $model->getImageFile($model->image8);\n $image8->saveAs($path8);\n }\n if($image9 !== FALSE){\n if(is_file($oldFile9)){\n unlink($oldFile9);\n }\n $path9 = $model->getImageFile($model->image9);\n $image9->saveAs($path9);\n }\n \n \n return $this->redirect(['view', 'id' => $model->id]);\n }else{\n \n }\n \n \n } else {\n return $this->render('update', [\n 'model' => $model,\n ]);\n }\n }",
"public function testSaveSameFileDifferentArguments(): void\n {\n $firstThumb = explode('_', basename($this->getThumbCreatorInstance()->resize(200)->save()));\n $secondThumb = explode('_', basename($this->getThumbCreatorInstance()->resize(300)->save()));\n $this->assertSame($firstThumb[0], $secondThumb[0]);\n $this->assertNotSame($firstThumb[1], $secondThumb[1]);\n }",
"public function image_process_gd($action = 'resize')\n\t{\n\t\t$v2_override = FALSE;\n\n\t\t// If the target width/height match the source, AND if the new file name is not equal to the old file name\n\t\t// we'll simply make a copy of the original with the new name... assuming dynamic rendering is off.\n\t\tif ($this->dynamic_output === FALSE && $this->orig_width === $this->width && $this->orig_height === $this->height)\n\t\t{\n\t\t\tif ($this->source_image !== $this->new_image && @copy($this->full_src_path, $this->full_dst_path))\n\t\t\t{\n\t\t\t\tchmod($this->full_dst_path, $this->file_permissions);\n\t\t\t}\n\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t// Let's set up our values based on the action\n\t\tif ($action === 'crop')\n\t\t{\n\t\t\t// Reassign the source width/height if cropping\n\t\t\t$this->orig_width = $this->width;\n\t\t\t$this->orig_height = $this->height;\n\n\t\t\t// GD 2.0 has a cropping bug so we'll test for it\n\t\t\tif ($this->gd_version() !== FALSE)\n\t\t\t{\n\t\t\t\t$gd_version = str_replace('0', '', $this->gd_version());\n\t\t\t\t$v2_override = ($gd_version == 2);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// If resizing the x/y axis must be zero\n\t\t\t$this->x_axis = 0;\n\t\t\t$this->y_axis = 0;\n\t\t}\n\n\t\t// Create the image handle\n\t\tif ( ! ($src_img = $this->image_create_gd()))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t/* Create the image\n\t\t *\n\t\t * Old conditional which users report cause problems with shared GD libs who report themselves as \"2.0 or greater\"\n\t\t * it appears that this is no longer the issue that it was in 2004, so we've removed it, retaining it in the comment\n\t\t * below should that ever prove inaccurate.\n\t\t *\n\t\t * if ($this->image_library === 'gd2' && function_exists('imagecreatetruecolor') && $v2_override === FALSE)\n\t\t */\n\t\tif ($this->image_library === 'gd2' && function_exists('imagecreatetruecolor'))\n\t\t{\n\t\t\t$create\t= 'imagecreatetruecolor';\n\t\t\t$copy\t= 'imagecopyresampled';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$create\t= 'imagecreate';\n\t\t\t$copy\t= 'imagecopyresized';\n\t\t}\n\n\t\t$dst_img = $create($this->width, $this->height);\n\n\t\tif ($this->image_type === 3) // png we can actually preserve transparency\n\t\t{\n\t\t\timagealphablending($dst_img, FALSE);\n\t\t\timagesavealpha($dst_img, TRUE);\n\t\t}\n\n\t\t$copy($dst_img, $src_img, 0, 0, $this->x_axis, $this->y_axis, $this->width, $this->height, $this->orig_width, $this->orig_height);\n\n\t\t// Show the image\n\t\tif ($this->dynamic_output === TRUE)\n\t\t{\n\t\t\t$this->image_display_gd($dst_img);\n\t\t}\n\t\telseif ( ! $this->image_save_gd($dst_img)) // Or save it\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Kill the file handles\n\t\timagedestroy($dst_img);\n\t\timagedestroy($src_img);\n\n\t\tchmod($this->full_dst_path, $this->file_permissions);\n\n\t\treturn TRUE;\n\t}",
"function wp_style_is($handle, $status = 'enqueued')\n {\n }",
"function _putimages() {\n parent::_putimages();\n $this->_putformxobjects();\n }",
"function zm_imagedeletionscheck ($data) {\n }",
"function img_compare($before,$after,$reportfile,$ci){\n\techo $before.\"\\n\";\n\techo $after.\"\\n\";\n\t$write = false;\n\t$report = \"# Report \\n\";\n\t//size\n\t$bs = filesize($before);\n\t$as = filesize($after);\n\t$report.= \"## filesize\\n\";\n\tif($as != $bs){\n\t\t$diff = $as - $bs;\n\t\t$report.=\" file is $diff bytes different after\\n\\n\";\n\t\t$write = true;\n\t}\n\t\n\t//md5\n\tif(md5_file($before) != md5_file($after)){\n\t\t$report.=\"## md5\\n hashes of before and after are different\\n\\n\";\n\t}\n\t\n\t$report.=\"## IMAGE PROCESSING\\n\";\n\t//try some GD stuff\n\t$img = imagecreatefromjpeg($before); \n $img2 = imagecreatefromjpeg($after); \n\t $w = imagesx($img); \n\t $h = imagesy($img); \n\n\t $w2 = imagesx($img2); \n\t $h2 = imagesy($img2); \n \t $write = true;\n\t if($w != $w2 || $h!=$h2){\n\t\t $report.=\"image dimensions are different $w x $h versus $w2 x $h2\\n\";\n\t }else{\n\t \t\t$report.=\"image dimensions are the same $w x $h \\n\";\n\t }\n \n \n \t //something to write different pixels to\n\t $cim = @imagecreatetruecolor($w, $h)\n\t or die('Cannot Initialize new GD image stream');\n \n \t $totalpix = 0;\n\t $diffpix = 0;\n\t \n\t //whip through the pixels, compare and write differences\n\t //to $cim\n\t for($y=0;$y<$h;$y++) { \n\t for($x=0;$x<$w;$x++) { \n\t $rgb = imagecolorat($img, $x, $y); \n\t $r = ($rgb >> 16) & 0xFF; \n\t $g = ($rgb >> 8) & 0xFF; \n\t $b = $rgb & 0xFF; \n\t\t\t $pixelcolor = \"#\".str_repeat(\"0\",2-strlen(dechex($r))).dechex($r). \n\tstr_repeat(\"0\",2-strlen(dechex($g))).dechex($g). \n\tstr_repeat(\"0\",2-strlen(dechex($b))).dechex($b);\n\t\t\t \n\t\t\t $rgb2 = imagecolorat($img2, $x, $y); \n\t $r2 = ($rgb2 >> 16) & 0xFF; \n\t $g2 = ($rgb2 >> 8) & 0xFF; \n\t $b2 = $rgb2 & 0xFF; \n\t\t\t $pixelcolor2 = \"#\".str_repeat(\"0\",2-strlen(dechex($r2))).dechex($r2). \n\tstr_repeat(\"0\",2-strlen(dechex($g2))).dechex($g2). \n\tstr_repeat(\"0\",2-strlen(dechex($b2))).dechex($b2);\n\t\t\t if($pixelcolor != $pixelcolor2){\n\t\t\t\t $diffpix++;\n\t\t\t\t //write to cim\n\t\t\t\t imagesetpixel($cim, $x,$y, $rgb2);\n\t\t\t\t \n\t\t\t\t \n\t\t\t }\n\t\t\t $totalpix++;\n\t //echo $pixelcolor.\",\"; \n\t } \n\n\t\t\t \n\t } \n $report.=\"total pixels = $totalpix\\n\";\n\t $report.=\"pixels different = $diffpix\\n\";\n\t $diff = ($diffpix/$totalpix)*100;\n\t $report.=\"percentage diff = \".round($diff,2); //might be good to get a %ag threshold for this\n\t \n\t //write cim to jpeg, path $ci\n\t $report.=\"\\ndifferences shown in \\n\";\n\t //put url in file - only write if X percent different ?\n\t imagejpeg($cim, $ci);\n\n\t // Free up memory\n\t imagedestroy($cim);\n\t\n\t //some kind of magic merge with before really light here?\n\t\n\t//image magic test/diff\n\t//if (!extension_loaded('imagick')){\n\t//\t echo 'imagick not installed\\n';\n\t//}else{\n\t\t//do tests\n\t//}\n\t\n\tif($write){\n\t\tfile_put_contents($reportfile, $report);\n\t}\n}",
"public function settings_validate_options()\n {\n $settings_options = get_option($this->option_name);\n\n // did the CSS save option change?\n if ($settings_options['css_save_to'] !== $_POST[$this->option_name]['css_save_to']\n || $settings_options['css_format'] !== $_POST[$this->option_name]['css_format']) {\n // the save option has changed so we better resave the current stack\n $stack_id = apply_filters('oxy-stack-current-id', '');\n if (!empty($stack_id)) {\n $this->save_post_css($stack_id, $_POST[$this->option_name]);\n }\n }\n }",
"public function image_sizes() {\n add_image_size('careerfy-job-medium', 358, 204, true); // posts for team grid and medium\n add_image_size('careerfy-posts-msmal', 85, 58, true); // posts for team grid and medium\n add_image_size('careerfy-emp-msmal', 132, 47, true); //\n add_image_size('careerfy-candidate-2', 350, 450, true); // posts for team grid and medium\n add_image_size('careerfy-testimonial-thumb', 268, 268, true); // posts for team grid and medium\n add_image_size('careerfy-service', 247, 252, true); // posts for team grid and medium\n }",
"public function test_single_multi_resize() {\n\t\t$file = DIR_TESTDATA . '/images/waffles.jpg';\n\n\t\t$imagick_image_editor = new WP_Image_Editor_Imagick( $file );\n\t\t$imagick_image_editor->load();\n\n\t\t$sizes_array = array(\n\t\t\tarray(\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 50,\n\t\t\t),\n\t\t);\n\n\t\t$resized = $imagick_image_editor->multi_resize( $sizes_array );\n\n\t\t# First, check to see if returned array is as expected\n\t\t$expected_array = array(\n\t\t\tarray(\n\t\t\t\t'file' => 'waffles-50x33.jpg',\n\t\t\t\t'width' => 50,\n\t\t\t\t'height' => 33,\n\t\t\t\t'mime-type' => 'image/jpeg',\n\t\t\t\t'filesize' => wp_filesize( dirname( $file ) . '/waffles-50x33.jpg' ),\n\t\t\t),\n\t\t);\n\n\t\t$this->assertSame( $expected_array, $resized );\n\n\t\t// Now, verify real dimensions are as expected\n\t\t$image_path = DIR_TESTDATA . '/images/' . $resized[0]['file'];\n\t\t$this->assertImageDimensions(\n\t\t\t$image_path,\n\t\t\t$expected_array[0]['width'],\n\t\t\t$expected_array[0]['height']\n\t\t);\n\t}",
"public function check_changes_action_handler() {\n\t\tglobal $wp_version;\n\n\t\tif ( ! ( isset( $_GET['post'] ) || isset( $_POST['post'] ) || // Input var okay.\n\t\t\t( isset( $_REQUEST['action'] ) && 'duplicate_post_check_changes' === $_REQUEST['action'] ) ) ) { // Input var okay.\n\t\t\t\\wp_die(\n\t\t\t\t\\esc_html__( 'No post has been supplied!', 'duplicate-post' )\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\t$id = ( isset( $_GET['post'] ) ? \\intval( \\wp_unslash( $_GET['post'] ) ) : \\intval( \\wp_unslash( $_POST['post'] ) ) ); // Input var okay.\n\n\t\t\\check_admin_referer( 'duplicate_post_check_changes_' . $id ); // Input var okay.\n\n\t\t$this->post = \\get_post( $id );\n\n\t\tif ( ! $this->post ) {\n\t\t\t\\wp_die(\n\t\t\t\t\\esc_html(\n\t\t\t\t\t\\sprintf(\n\t\t\t\t\t\t/* translators: %s: post ID. */\n\t\t\t\t\t\t\\__( 'Changes overview failed, could not find post with ID %s.', 'duplicate-post' ),\n\t\t\t\t\t\t$id\n\t\t\t\t\t)\n\t\t\t\t)\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\n\t\t$this->original = Utils::get_original( $this->post );\n\n\t\tif ( ! $this->original ) {\n\t\t\t\\wp_die(\n\t\t\t\t\\esc_html(\n\t\t\t\t\t\\__( 'Changes overview failed, could not find original post.', 'duplicate-post' )\n\t\t\t\t)\n\t\t\t);\n\t\t\treturn;\n\t\t}\n\t\t$post_edit_link = \\get_edit_post_link( $this->post->ID );\n\n\t\t$this->require_wordpress_header();\n\t\t?>\n\t\t<div class=\"wrap\">\n\t\t\t<h1 class=\"long-header\">\n\t\t\t<?php\n\t\t\t\techo \\sprintf(\n\t\t\t\t\t\t/* translators: %s: original item link (to view or edit) or title. */\n\t\t\t\t\t\\esc_html__( 'Compare changes of duplicated post with the original (“%s”)', 'duplicate-post' ),\n\t\t\t\t\tUtils::get_edit_or_view_link( $this->original ) // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t);\n\t\t\t?>\n\t\t\t\t</h1>\n\t\t\t<a href=\"<?php echo \\esc_url( $post_edit_link ); ?>\"><?php \\esc_html_e( '← Return to editor', 'default' ); ?></a>\n\t\t\t<div class=\"revisions\">\n\t\t\t\t<div class=\"revisions-control-frame\">\n\t\t\t\t\t<div class=\"revisions-controls\"></div>\n\t\t\t\t</div>\n\t\t\t\t<div class=\"revisions-diff-frame\">\n\t\t\t\t\t<div class=\"revisions-diff\">\n\t\t\t\t\t\t<div class=\"diff\">\n\t\t\t\t\t\t<?php\n\t\t\t\t\t\t$fields = [\n\t\t\t\t\t\t\t'post_title' => \\__( 'Title', 'default' ),\n\t\t\t\t\t\t\t'post_content' => \\__( 'Content', 'default' ),\n\t\t\t\t\t\t\t'post_excerpt' => \\__( 'Excerpt', 'default' ),\n\t\t\t\t\t\t];\n\n\t\t\t\t\t\t$args = array(\n\t\t\t\t\t\t\t'show_split_view' => true,\n\t\t\t\t\t\t\t'title_left' => __( 'Removed', 'default' ),\n\t\t\t\t\t\t\t'title_right' => __( 'Added', 'default' ),\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\tif ( \\version_compare( $wp_version, '5.7' ) < 0 ) {\n\t\t\t\t\t\t\tunset( $args['title_left'] );\n\t\t\t\t\t\t\tunset( $args['title_right'] );\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$post_array = \\get_post( $this->post, \\ARRAY_A );\n\t\t\t\t\t\t/** This filter is documented in wp-admin/includes/revision.php */\n\t\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reason: we want to use a WP filter from the revision feature.\n\t\t\t\t\t\t$fields = \\apply_filters( '_wp_post_revision_fields', $fields, $post_array );\n\n\t\t\t\t\t\tforeach ( $fields as $field => $name ) {\n\t\t\t\t\t\t\t/** This filter is documented in wp-admin/includes/revision.php */\n\t\t\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reason: we want to use a WP filter from the revision feature.\n\t\t\t\t\t\t\t$content_from = apply_filters( \"_wp_post_revision_field_{$field}\", $this->original->$field, $field, $this->original, 'from' );\n\n\t\t\t\t\t\t\t/** This filter is documented in wp-admin/includes/revision.php */\n\t\t\t\t\t\t\t// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound -- Reason: we want to use a WP filter from the revision feature.\n\t\t\t\t\t\t\t$content_to = \\apply_filters( \"_wp_post_revision_field_{$field}\", $this->post->$field, $field, $this->post, 'to' );\n\n\t\t\t\t\t\t\t$diff = \\wp_text_diff( $content_from, $content_to, $args );\n\n\t\t\t\t\t\t\tif ( ! $diff && 'post_title' === $field ) {\n\t\t\t\t\t\t\t\t// It's a better user experience to still show the Title, even if it didn't change.\n\t\t\t\t\t\t\t\t$diff = '<table class=\"diff\"><colgroup><col class=\"content diffsplit left\"><col class=\"content diffsplit middle\"><col class=\"content diffsplit right\"></colgroup><tbody><tr>';\n\t\t\t\t\t\t\t\t$diff .= '<td>' . \\esc_html( $this->original->post_title ) . '</td><td></td><td>' . \\esc_html( $this->post->post_title ) . '</td>';\n\t\t\t\t\t\t\t\t$diff .= '</tr></tbody>';\n\t\t\t\t\t\t\t\t$diff .= '</table>';\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ( $diff ) {\n\t\t\t\t\t\t\t\t?>\n\t\t\t\t\t\t\t\t<h3><?php echo \\esc_html( $name ); ?></h3>\n\t\t\t\t\t\t\t\t<?php\n\t\t\t\t\t\t\t\t\techo $diff; // phpcs:ignore WordPress.Security.EscapeOutput\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t?>\n\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t\t<?php\n\t\t$this->require_wordpress_footer();\n\t}",
"public function test_update_unsuccessfully(){\n $asset = Asset::factory()\n ->state(['state_key' => Asset::ASSIGNED])\n ->for($this->location)\n ->for($this->category)\n ->create();\n\n $edit_asset = [\n 'asset_name' => $this->faker->name(),\n 'specific' => $this->faker->sentence(50),\n 'installed_date' => $this->faker->date(),\n 'state_key' => $this->faker->randomElement(Asset::getUpdateRequestStates())\n ];\n\n $response = $this->patchJson('/api/assets/' . $asset->id, $edit_asset);\n\n $response->assertStatus(400);\n\n $response->assertJson(function (AssertableJson $json){\n $json->where('message', \"You can't do any actions on an asset has been assigned\");\n });\n }",
"function _wp_multiple_block_styles($metadata)\n {\n }",
"public function actionUnpublishNoImg()\n {\n $imgDir = Yii::getAlias('@frontend') . DIRECTORY_SEPARATOR . 'web';\n\n $civ = CatalogItemVariant::find()\n ->where(['published' => 1])\n ->asArray()\n ->all();\n\n $unPublish = $foundImg = $notFound = [];\n $foundImg['ru'] = $foundImg['uk'] = $foundImg['en'] = 0;\n $notFound['ru'] = $notFound['uk'] = $notFound['en'] = 0;\n $unPublish['ru'] = $unPublish['uk'] = $unPublish['en'] = 0;\n foreach ($civ as $iv) {\n echo 'Checking id #' . $iv['id'] . '; lang: ' . $iv['lang'] . '; img: ' . $iv['img_url'] . PHP_EOL;\n $imgPathFull = $imgDir . $iv['img_url'];\n if (file_exists($imgPathFull)) {\n $foundImg[$iv['lang']] += 1;\n } else {\n $notFound[$iv['lang']] += 1;\n //\n $oCiv = CatalogItemVariant::find()\n ->where([\n 'id' => intval($iv['id']), \n 'published' => 1,\n ])\n ->one();\n if (!empty($oCiv)) {\n $oCiv->published = 0;\n if ($oCiv->save()) {\n $unPublish[$iv['lang']] += 1;\n echo 'Saved ' . print_r($oCiv, 1) . PHP_EOL;\n } else {\n echo 'Error saving ' . print_r($oCiv, 1) . PHP_EOL;\n }\n } else {\n echo 'Can`t find item by id ' . var_export(intval($iv['id']), 1) . PHP_EOL;\n continue;\n }\n }\n }\n echo 'Found images: ' . var_export($foundImg, 1) . '. Not found images: ' . var_export($notFound, 1) . '. Unpublished: ' . var_export($unPublish, 1) . PHP_EOL;\n }",
"public function postActions(){\n\n $bulkAction = Input::get('bulk_action');\n $items = Input::get('tableItems');\n\n if(!$items){\n return Redirect::back()->with('error', NO_ITEMS_SELECTED);\n }\n\n if(in_array($bulkAction, ['delete'])){\n\n // Delete selected sizes.\n ProductBrand::whereIn('id', $items)->delete();\n }else{\n return Redirect::back()->with('error', NO_ACTION_SELECTED);\n }\n\n return Redirect::back()->with('success', DONE);\n }",
"public function testImageWithTimestampping() {\n\t\tConfigure::write('Asset.timestamp', 'force');\n\n\t\t$this->Html->request->webroot = '/';\n\t\t$result = $this->Html->image('cake.icon.png');\n\t\t$this->assertTags($result, array('img' => array('src' => 'preg:/\\/img\\/cake\\.icon\\.png\\?\\d+/', 'alt' => '')));\n\n\t\tConfigure::write('debug', 0);\n\t\tConfigure::write('Asset.timestamp', 'force');\n\n\t\t$result = $this->Html->image('cake.icon.png');\n\t\t$this->assertTags($result, array('img' => array('src' => 'preg:/\\/img\\/cake\\.icon\\.png\\?\\d+/', 'alt' => '')));\n\n\t\t$this->Html->request->webroot = '/testing/longer/';\n\t\t$result = $this->Html->image('cake.icon.png');\n\t\t$expected = array(\n\t\t\t'img' => array('src' => 'preg:/\\/testing\\/longer\\/img\\/cake\\.icon\\.png\\?[0-9]+/', 'alt' => '')\n\t\t);\n\t\t$this->assertTags($result, $expected);\n\t}",
"public function actionCreate() {\n $model = new Projects();\n $model2 = new ProjectImages();\n $old_model_id = Projects::find()->one();\n if (sizeof($old_model_id) < 1) {\n $project_id_for_images = 1;\n } else {\n $project_id_for_images = (int) $old_model_id->id + 1;\n }\n if ($model->load(Yii::$app->request->post())) {\n $post = Yii::$app->request->post();\n\n// if (!$model->validate()) {\n// Yii::$app->session->setFlash('error', 'Cannot add more item, Please make sure you fill all the form and upload the featured image!');\n// return $this->redirect(['create']);\n// }\n\n function manageImage($image) {\n $image_extention = $image->extension;\n if ($image_extention == \"jpg\" || $image_extention == \"jpeg\" || $image_extention == \"png\") {\n if ($image->saveAs($full_path = dirname(__FILE__) . '/../../' . \"/frontend/web/images/projects/\" . $path = time() . \"_\" . Yii::$app->security->generateRandomString() . '.' . $image->extension)) {\n\n Image::frame($full_path)\n ->resize(new Box(145, 105))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/images/projects_145x105/\" . $path, ['quality' => 80]);\n\n Image::frame($full_path)\n ->resize(new Box(200, 155))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/images/projects_200x155/\" . $path, ['quality' => 80]);\n\n Image::frame($full_path)\n ->resize(new Box(224, 114))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/images/projects_224x114/\" . $path, ['quality' => 80]);\n\n Image::frame($full_path)\n ->resize(new Box(224, 116))\n ->save(dirname(__FILE__) . '/../../' . \"/frontend/web/images/projects_224x116/\" . $path, ['quality' => 80]);\n\n return $path;\n } else {\n return \"error\";\n }\n } else {\n return \"not image\";\n }\n }\n\n $path = $model->path = UploadedFile::getInstance($model, \"path\");\n $path_icon_1 = $model->banner_icon_1 = UploadedFile::getInstance($model, \"banner_icon_1\");\n $path_icon_2 = $model->banner_icon_2 = UploadedFile::getInstance($model, \"banner_icon_2\");\n $path_icon_3 = $model->banner_icon_3 = UploadedFile::getInstance($model, \"banner_icon_3\");\n $path_icon_4 = $model->banner_icon_4 = UploadedFile::getInstance($model, \"banner_icon_4\");\n\n\n\n $image = $model2->image = UploadedFile::getInstances($model2, 'image');\n// die(sizeof($image) . \"lol\");\n $array = \"\";\n $error_1 = \"\";\n $size_of_images = sizeof($image);\n for ($i = 0; $i < $size_of_images; $i++) {\n $upload_image = $image[$i];\n $manage_image = manageImage($upload_image);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', $image[$i] . ' Not Image');\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', $image[$i] . ' Error');\n } else {\n $model2->project_id = $project_id_for_images;\n $new_image = $model2->image = $manage_image;\n $save_into_images = Yii::$app->db->createCommand('INSERT INTO project_images (project_id,image)\n\t\t\t\tVALUES (\n\t\t\t\t\"' . $project_id_for_images . '\",\n\t\t\t\t\"' . $new_image . '\")')\n ->execute();\n }\n }\n\n\n\n\n\n\n\n\n\n\n\n if (($model->path)) {\n $manage_image = manageImage($model->path);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', 'images must be image (jpg or jpeg or png');\n return $this->redirect(['projects/create']);\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', 'Something went wrong, could not upload images');\n return $this->redirect(['projects/create']);\n } else {\n $model->path = $manage_image;\n Yii::$app->session->setFlash('success', 'image successfully uploaded!');\n }\n } else {\n Yii::$app->session->setFlash('error', 'image cannot be empty!');\n return $this->redirect(['projects/create']);\n }\n\n\n if (($model->banner_icon_1)) {\n $manage_image = manageImage($model->banner_icon_1);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', 'images must be image (jpg or jpeg or png');\n return $this->redirect(['projects/create']);\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', 'Something went wrong, could not upload images');\n return $this->redirect(['projects/create']);\n } else {\n $model->banner_icon_1 = $manage_image;\n Yii::$app->session->setFlash('success', 'image successfully uploaded!');\n }\n } else {\n Yii::$app->session->setFlash('error', 'image cannot be empty!');\n return $this->redirect(['projects/create']);\n }\n\n if (($model->banner_icon_2)) {\n $manage_image = manageImage($model->banner_icon_2);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', 'images must be image (jpg or jpeg or png');\n return $this->redirect(['projects/create']);\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', 'Something went wrong, could not upload images');\n return $this->redirect(['projects/create']);\n } else {\n $model->banner_icon_2 = $manage_image;\n Yii::$app->session->setFlash('success', 'image successfully uploaded!');\n }\n } else {\n Yii::$app->session->setFlash('error', 'image cannot be empty!');\n return $this->redirect(['projects/create']);\n }\n\n\n if (($model->banner_icon_3)) {\n $manage_image = manageImage($model->banner_icon_3);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', 'images must be image (jpg or jpeg or png');\n return $this->redirect(['projects/create']);\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', 'Something went wrong, could not upload images');\n return $this->redirect(['projects/create']);\n } else {\n $model->banner_icon_3 = $manage_image;\n Yii::$app->session->setFlash('success', 'image successfully uploaded!');\n }\n } else {\n Yii::$app->session->setFlash('error', 'image cannot be empty!');\n return $this->redirect(['projects/create']);\n }\n\n\n\n\n if (($model->banner_icon_4)) {\n $manage_image = manageImage($model->banner_icon_4);\n if ($manage_image == \"not image\") {\n Yii::$app->session->setFlash('error', 'images must be image (jpg or jpeg or png');\n return $this->redirect(['projects/create']);\n } else if ($manage_image == \"error\") {\n Yii::$app->session->setFlash('error', 'Something went wrong, could not upload images');\n return $this->redirect(['projects/create']);\n } else {\n $model->banner_icon_4 = $manage_image;\n Yii::$app->session->setFlash('success', 'image successfully uploaded!');\n }\n } else {\n Yii::$app->session->setFlash('error', 'image cannot be empty!');\n return $this->redirect(['projects/create']);\n }\n\n\n if ($model->save()) {\n Yii::$app->session->setFlash('success', 'You have successfully created a new project.');\n return $this->redirect(['projects/create']);\n } else {\n Yii::$app->session->setFlash('error', 'Something went wrong');\n return $this->redirect(['projects/create']);\n }\n } else {\n return $this->render('create', [\n 'model' => $model,\n ]);\n }\n }",
"public function rules()\n {\n $userId = \\Auth::guard('api')->id();\n\n return [\n 'avatar_image_id' => 'exists:images,id,type,avatar,user_id,'.$userId,\n ];\n }",
"public function validateTestimonialsImages($image)\n {\n if (empty($image['name']))\n return;\n\n //if any one is invalid extension redirect\n foreach ($image['name'] as $img_name)\n {\n if ($img_name != \"\")\n {\n if(!ImageManager::isCorrectImageFileExt($img_name))\n $this->_postErrors[] = $this->l('Image format not recognized, allowed formats are: .gif, .jpg, .png', false);\n }\n }\n }",
"public function InlineImageExists() {\n\t foreach($this->attachment as $attachment) {\n\t if ($attachment[6] == 'inline') {\n\t return true;\n\t }\n\t }\n\t return false;\n\t}",
"public function testNormal() {\n // Pick a file for testing.\n $file = File::create((array) current($this->drupalGetTestFiles('image')));\n\n // Create derivative image.\n $styles = ImageStyle::loadMultiple();\n $style = reset($styles);\n $original_uri = $file->getFileUri();\n $derivative_uri = $style->buildUri($original_uri);\n $style->createDerivative($original_uri, $derivative_uri);\n\n // Check if derivative image exists.\n $this->assertFileExists($derivative_uri);\n\n // Clone the object so we don't have to worry about the function changing\n // our reference copy.\n $desired_filepath = 'public://' . $this->randomMachineName();\n $result = $this->fileRepository->move(clone $file, $desired_filepath, FileSystemInterface::EXISTS_ERROR);\n\n // Check if image has been moved.\n $this->assertFileExists($result->getFileUri());\n\n // Check if derivative image has been flushed.\n $this->assertFileDoesNotExist($derivative_uri);\n }",
"public function testDeleteAppearance()\n {\n }"
] | [
"0.5793317",
"0.5506888",
"0.5014556",
"0.4869687",
"0.48685825",
"0.48450437",
"0.48221874",
"0.48076284",
"0.47942662",
"0.4712479",
"0.47090158",
"0.46488148",
"0.46439707",
"0.4640079",
"0.4604765",
"0.45923954",
"0.45641297",
"0.45557365",
"0.4533187",
"0.45283931",
"0.4503585",
"0.450249",
"0.45005652",
"0.4499296",
"0.44955716",
"0.44922864",
"0.4468963",
"0.44576922",
"0.44563285",
"0.44536096",
"0.44528672",
"0.44490585",
"0.44478524",
"0.4442094",
"0.44309777",
"0.44286713",
"0.44285983",
"0.44166982",
"0.4400903",
"0.43977568",
"0.43914688",
"0.43911642",
"0.43899196",
"0.43778923",
"0.4356428",
"0.435565",
"0.43470466",
"0.43378815",
"0.43328434",
"0.43314767",
"0.43218794",
"0.4317211",
"0.43129444",
"0.43111083",
"0.43094382",
"0.42991152",
"0.4290715",
"0.42899364",
"0.4287742",
"0.4286657",
"0.42789084",
"0.4278176",
"0.42772955",
"0.42737278",
"0.42693076",
"0.42688778",
"0.42659688",
"0.42609462",
"0.42598802",
"0.42568007",
"0.42567837",
"0.42561355",
"0.4255644",
"0.42553705",
"0.42514917",
"0.42436707",
"0.4239665",
"0.42373386",
"0.42357785",
"0.4231487",
"0.42266914",
"0.4225464",
"0.42253694",
"0.42251047",
"0.42215785",
"0.42159334",
"0.42144188",
"0.42003584",
"0.41960743",
"0.41956672",
"0.41943207",
"0.41939035",
"0.41923374",
"0.41891062",
"0.41886023",
"0.41869587",
"0.41838008",
"0.41836092",
"0.41822183",
"0.41779748"
] | 0.5954099 | 0 |
Method to set the value of field user_id | public function setUserId($user_id)
{
$this->user_id = $user_id;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function setUserId() {\n $this->user_id = $user_id;\n }",
"public function setIduser($value)\n {\n $this->iduser = $value;\n }",
"public function set_id_user($value = \"\")\n {\n $this->_id_user = \\helpers\\Validator::valInt('f_id_user', $value, TRUE);\n }",
"public function setUserID($value) {\n\t\t$this->_user_id = $value;\n\t}",
"public function set_user_id( $value ) {\n\t\t$this->set_prop( 'user_id', absint( $value ) ) ;\n\t}",
"public function SetIdUser($id_user)\n {\n $this->id_user = $id_user;\n return;\n\n }",
"public function setId_user($id_user)\n {\n $id_user = (int) $id_user;\n if (is_int($id_user) && $id_user > 0) {\n $this->id_user = $id_user;\n }\n }",
"public function setUserID($user_id){\n\t\t$this->user_id = $user_id;\n\t}",
"public function setId_user($id_user)\n {\n $id_user = (int) $id_user;\n $this->_id_user = $id_user;\n }",
"public function setId_user($id_user)\n {\n $id_user = (int) $id_user;\n $this->_id_user = $id_user;\n }",
"public function setUserId($user_id)\n {\n $this->user_id = $user_id;\n }",
"public function set_user($id_user){\n if ( is_int($id_user) ){\n $this->id_user = $id_user;\n }\n return $this;\n }",
"public function set_user_id($userid) {\n $this->userid = (int)$userid;\n }",
"public function setUserid($value) {\n\t\tif(!check($value)) throw new Exception(lang('error_90'));\n\t\tif(!Validator::AccountId($value)) throw new Exception(lang('error_90'));\n\t\t\n\t\t$this->_userid = $value;\n\t}",
"public function set_user($var_user) {\r\n\t\t$this->id = $var_user;\r\n\t}",
"public function set_user_id( $user_id ) {\r\n\t\t$this->user_id = $user_id;\r\n\t\t$this->store->set_id( $user_id );\r\n\t}",
"public function set_user_id($user_id) {\n\n $this -> user_id = $user_id;\n\n }",
"public function setUserId($value)\n {\n parent::setValue('user_id', $value);\n\n return $this;\n }",
"function SetUser(&$user)\n\t{\n\t\t$this->userId = $user->userId;\n\t}",
"public function setUserId($value) {\n\t\tif(!is_numeric($value))\n\t\t\tthrow new \\Exception('Comment::setUserId() failed: value is not numeric');\n\n\t\t$this->user_id = $value;\n\t}",
"public function setUserId($id)\n {\n $this->userId = $id;\n }",
"public function setUserId($value)\n {\n $this->user_id = $value;\n return $this;\n }",
"public function setUserId($user_id) {\n $user_id = (int) $user_id;\n\n if (!isset($user_id) || $user_id == \"\") {\n $user_id = \"0\";\n }\n $this->fields[\"user_id\"] = $user_id;\n\n return $this;\n }",
"public function setUserId($value)\n {\n return $this->set(self::user_id, $value);\n }",
"public function setUserId($value)\n {\n return $this->set(self::_USER_ID, $value);\n }",
"public function setUserId($value)\n {\n return $this->set(self::_USER_ID, $value);\n }",
"public function setUserId($value)\n {\n return $this->set(self::_USER_ID, $value);\n }",
"public function setUserId($value)\n {\n return $this->set(self::_USER_ID, $value);\n }",
"public function setUserid($value)\n {\n return $this->set(self::_USERID, $value);\n }",
"public function setUserid($value)\n {\n return $this->set(self::_USERID, $value);\n }",
"public function setUserid($value)\n {\n return $this->set(self::_USERID, $value);\n }",
"public function setUserIdUser(int $user_id_user): void\n {\n $this->User_id_user = $user_id_user;\n }",
"public function setUserId(?string $value): void {\n $this->getBackingStore()->set('userId', $value);\n }",
"public function setUserId(?string $value): void {\n $this->getBackingStore()->set('userId', $value);\n }",
"public function setUserId(?string $value): void {\n $this->getBackingStore()->set('userId', $value);\n }",
"public function setId_user($id_user){\n $this->id_user = $id_user;\n return $this;\n }",
"function setUser( $user )\r\n {\r\n if ( is_a( $user, \"eZUser\" ) )\r\n {\r\n $userID = $user->id();\r\n\r\n $this->UserID = $userID;\r\n }\r\n }",
"public function setId_user($id_user)\n {\n $this->id_user = (int) $id_user;\n\n return $this;\n }",
"function get_id($user_id){\n\t\t$this->id = $user_id;\n\t}",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function setUserID($value)\n {\n return $this->set('UserID', $value);\n }",
"public function set_users_id($value) {\r\n $this->users_id = $value;\r\n data::add(\"users_id\", $this->users_id == \"\" ? session::get(CURRENT_USER_SESSION_NAME) : $this->users_id, $this->table_fields);\r\n }",
"protected function _setId($value)\n\t{\n\t\tvar_dump($value);\n\t\tif (empty($value) || ($value < 0)) {\n\t\t\ttrigger_error('Invalid value used to set the member id', E_USER_ERROR);\n\t\t\treturn;\n\t\t}\n\t\telse {\n\t\t\t$this->_id = $value;\n\t\t\t$_SESSION['user_id']=$value;\n\t\t\t\n\n\t\t}\n\t}",
"public function setIdUser($idUser) \n\t{\n\t\t$this->idUser = $idUser;\n\t\treturn $this;\n\t}",
"private function set_userId(int $userId)\n {\n $this->_id = $userId;\n }",
"function setUserId($userId)\n {\n $this->userId = $userId;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"public function setUserIdAttribute($input)\n {\n $this->attributes['user_id'] = $input ? $input : null;\n }",
"function set_login_user_id( $user_id )\n\t{\n\t\t$this->login_user_id = $user_id;\n\t}",
"public function set_id_user($id_user) \n\t{\n\t\t$this->id_user = $id_user;\n\t\treturn $this;\n\t}",
"function setUserId($userId) {\n\t\treturn $this->setData('userId', $userId);\n\t}",
"public function setId_user($id_user)\n {\n $this->id_user = $id_user;\n\n return $this;\n }",
"public function setId_user($id_user)\n {\n $this->id_user = $id_user;\n\n return $this;\n }",
"public function setUserId(int $userId): void\n {\n $this->_userId = $userId;\n }",
"Public Function setUserId($UserId) {\n\t\t$this->userId = $UserId;\n\t\n\t}",
"public function setUser_id($user_id)\n {\n $this->user_id = htmlspecialchars($user_id);\n return $this;\n }",
"public function setUserId($userId);",
"public function setIdUser($id_user)\n {\n $this->id_user = $id_user;\n\n return $this;\n }",
"public function setIdUser($id_user)\n {\n $this->id_user = $id_user;\n\n return $this;\n }",
"public function setIdUser($id_user)\n {\n $this->id_user = $id_user;\n\n return $this;\n }",
"public function setCreatedByUserId(?string $value): void {\n $this->getBackingStore()->set('createdByUserId', $value);\n }",
"public function setUserId($userId) {\n $this->userId = $userId;\n }",
"public function setUser()\n\t{\n\t\t$user = User::getInstance();\n\t\t\n\t\tif ( $this->session->get( 'user_id' ) ) {\n\t\t\t$user->set( 'id', $this->session->get( 'user_id' ) );\n\t\t\t$user->read();\n\t\t}\n\t}",
"public function setUser_id($user_id = null)\n {\n // validation for constraint: string\n if (!is_null($user_id) && !is_string($user_id)) {\n throw new \\InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($user_id, true), gettype($user_id)), __LINE__);\n }\n if (is_null($user_id) || (is_array($user_id) && empty($user_id))) {\n unset($this->user_id);\n } else {\n $this->user_id = $user_id;\n }\n return $this;\n }",
"public function set_user_id($userid, $ornone = true) {\n $this->userids = array($userid);\n $this->allownouser = $ornone;\n }",
"public function setIdusuario($value){\n $this->idusuario = $value;\n }",
"public function setUserId($user_id)\n\t{\n\t\t$column = self::COL_USER_ID;\n\t\t$this->$column = $user_id;\n\n\t\treturn $this;\n\t}",
"public function setUserId($user_id)\n\t{\n\t\t$column = self::COL_USER_ID;\n\t\t$this->$column = $user_id;\n\n\t\treturn $this;\n\t}"
] | [
"0.86287546",
"0.8509571",
"0.8502041",
"0.8406734",
"0.8308554",
"0.81851476",
"0.8162908",
"0.8144313",
"0.8134973",
"0.8134973",
"0.8002276",
"0.77926916",
"0.778664",
"0.77841157",
"0.77786696",
"0.77598673",
"0.77283037",
"0.77180254",
"0.765404",
"0.7652824",
"0.761687",
"0.7614227",
"0.76038295",
"0.75722265",
"0.7557489",
"0.7557489",
"0.7557489",
"0.7557489",
"0.75518405",
"0.75518405",
"0.75518405",
"0.75162935",
"0.74839234",
"0.74839234",
"0.74839234",
"0.7452256",
"0.7426558",
"0.7355876",
"0.7349899",
"0.7336921",
"0.7336921",
"0.7336921",
"0.7336921",
"0.7336921",
"0.7336921",
"0.7336921",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.7335054",
"0.73345554",
"0.7323838",
"0.7306326",
"0.72972655",
"0.7295307",
"0.7294961",
"0.7285478",
"0.7285478",
"0.7285478",
"0.7285478",
"0.7285478",
"0.7285478",
"0.7285478",
"0.7285478",
"0.7232559",
"0.7185191",
"0.7175739",
"0.71531606",
"0.71531606",
"0.7151776",
"0.7144876",
"0.71428794",
"0.7139804",
"0.71393275",
"0.71393275",
"0.71393275",
"0.71301204",
"0.71095884",
"0.70953166",
"0.70849746",
"0.7076639",
"0.70722055",
"0.7065691",
"0.7065691"
] | 0.0 | -1 |
Method to set the value of field key | public function setKey($key)
{
$this->key = $key;
return $this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __set($key, $value)\n {\n $this->fields[ $key ] = $value;\n }",
"public function setValue($key, $value);",
"public function setValue($key, $value);",
"public function set( $key, $value );",
"public function set( $key, $value );",
"function setKey($value) {\r\n $this->key = $value;\r\n }",
"public function __set($key, $value) {\n $this->setField($key, $value);\n }",
"public function __set($key, $value);",
"public function set($strKey, $varValue);",
"public function set($key, $value) {\n\n }",
"public function set(string $key, $value);",
"public function set(string $key, $value);",
"function offsetSet($key, $value)\n\t{\n\t\t$this->fields[$key] = $value;\n\t}",
"public function set ($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function setKeyField($keyField) {\n\t\t$this->keyField = $keyField;\n\t}",
"public function setData($key, $value);",
"public function setData($key, $value);",
"public function setFieldData($field, $key, $value)\n {\n $this->fields[$field][$key] = $value;\n }",
"public function getFieldsetDataValue($key);",
"public function setField($key, $value, $boost = FALSE) {\n $this->_fields[$key] = $value;\n $this->setFieldBoost($key, $boost);\n }",
"abstract public function set ($key, $value);",
"abstract public function set($key, $value);",
"abstract public function set($key, $value);",
"function setFormKey($key);",
"public function set($key,$val)\n {\n return (@$this->fields[$key] = $val);\n }",
"public function set(string $key, $data);",
"public function __set($key, $val);",
"public function set($field, $value);",
"public function set($field, $value);",
"public function setField($key,$val = null){\n $this->field_map[$key] = $val;\n return $this;\n }",
"function setKey( $key ) \n {\n $this->setValueByFieldName( 'label_key', $key );\n }",
"public function hset(string $key, string $field, mixed $value): void\n {\n }",
"public function __set($key, $value){\n \t$this->$key = $value;\n }",
"public function set($key, $data);",
"public function setValue($fieldname, $value);",
"public function __set($key, $value) {\n\t}",
"public function set($key,$value) {\n $this->_data[$key]=$value;\n }",
"function setField (&$data, $key, $value)\n{\n if (is_object ($data))\n $data->$key = $value;\n else if (is_array ($data))\n $data[$key] = $value;\n else throw new \\InvalidArgumentException;\n}",
"function setField($field, $value)\n {\n $this->_data[$field] = $value;\n }",
"public function setField(string $name, $value);",
"public static function set($key, $value){\n self::setRequestVar($key, $value);\n \n }",
"public function setParameter( $key, $value ) {\n\t\t$this->fields[ $this->parameterPrefix . trim( $key ) ] = $value;\n\t}",
"function __set( $key, $value ) {\n\t\t$this->{$key} = $value;\n\t}",
"public function __set($key,$value){\n if(!array_key_exists($key,$this->definition)){\n throw new \\Disco\\exceptions\\Exception(\"Field `{$key}` is not defined by this data model\");\n }//if\n $this->data[$key] = $value;\n }",
"public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }",
"public function __set($field, $value){\n if (array_key_exists($field, $this->fields)){\n $this->fields[$field] = $value;\n }\n }",
"protected function _setNameValue($key, $name) {}",
"public function setField($name, $value);",
"public function __set($key, $value){\n\t\t\t\t$this->$key = $value;\n\t\t\t}",
"public function __set($key, $value){\n\t\t\t\t$this->$key = $value;\n\t\t\t}",
"public function _set($key, $value){\r\n\t\t$this->_attributes[$key] = $value;\r\n\t}",
"public function setValue($field, $value){\n $this->values[$field] = $value;\n }",
"abstract public function Set(string $key, $value) : void;",
"public function __set($key, $value) {\n\t\t$this->{\"set_{$key}\"}($value);\n\t}",
"public function setField($value) {\n\t\t$this->_field = $value;\n\t}",
"public function __set($key, $value)\n {\n\n $this->setData($key, $value);\n\n }",
"public function set(string $key, $value): void;",
"public function __set($field, $value){\n\t\tif(array_key_exists($field, $this->fields)){\n\t\t\t$this->fields[$field]=$value;\n\t\t}\n\t}",
"public function __set($key, $value) {\n $this->pos = 0;\n $this->data[$key] = $value;\n $this->keys = array_keys($this->data);\n }",
"public function __set(string $key, $val): void;",
"public function __set($field, $value) {\n\t\t$this[$field] = $value;\n\t}",
"public function __set($key, $value)\n {\n }",
"public function __set($key, $value)\n {\n }",
"public function __set($key, $value)\n {\n }",
"public function __set($key, $value)\n {\n }",
"function set($key, $value);",
"function set($key, $value);",
"function set($key, $value);",
"function _set($key,$value){\n switch($key){\n case 'value': case 'val': $this->set($value); return TRUE;\n case 'settings': $this->set_settings($value); return TRUE;\n case 'key': $this->set_key($value); return TRUE;\n }\n return FALSE;\n }",
"public function set(string $key, $value) {\n\t\t$this->data[$key] = $value;\n\t}",
"public function set( $key , $value ) {\n\t\teval( '$this->items' . $this->nodelize( $key ) . ' = $value;' );\n\t}",
"public static function setFieldFromSession(string $fieldKey, $value)\n {\n self::$libraryData[$fieldKey] = $value;\n }",
"public function set($field, $value) {\r\n\t\t$this -> fields[$field] = $value;\r\n\t}",
"public function set ($key, $value) {\r\n\t\t$this->_data[$key] = $value;\r\n\t}",
"public function setData($key, $value = null);",
"static public function set($key, $value)\r\n {\r\n /* First we make sure we have a valid variable name */\r\n self::validateKey($key);\r\n\r\n /* Then we set the value */\r\n Fset::set(self::$values, $key, $value);\r\n }",
"public function set($key, $value)\n {\n if ($this->_doValidate) {\n // validate the value passed\n ValueValidator::validate($value);\n }\n\n if ($key[0] === '_') {\n if ($key === self::ENTRY_ID) {\n $this->setInternalId($value);\n return;\n }\n\n if ($key === self::ENTRY_KEY) {\n $this->setInternalKey($value);\n return;\n }\n\n if ($key === self::ENTRY_REV) {\n $this->setRevision($value);\n return;\n }\n\n if ($key === self::ENTRY_ISNEW) {\n $this->setIsNew($value);\n return;\n }\n }\n\n if (!$this->_changed) {\n if (!isset($this->_values[$key]) || $this->_values[$key] !== $value) {\n // set changed flag\n $this->_changed = true;\n }\n }\n\n // and store the value\n $this->_values[$key] = $value;\n }",
"public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }",
"public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }",
"public function __set( $key, $value ) {\n\n\t\t$this->_data[ $key ] = $value;\n\t}",
"public function set($key, $value) {\n\t\t$this->data[$key] = $value;\n\t}",
"function set($key,$val) {\n\t\treturn ($key=='_id')?FALSE:($this->document[$key]=$val);\n\t}",
"public function __set($key, $value)\n\t{\n\t\t// set\n\t\tif ($this->isCustomField($key)) {\n\t\t\tif ($value instanceof CustomField) {\n\t\t\t\t$this->$key = $value;\n\t\t\t} else {\n\t\t\t\t$this->customAttributes[ $key ] = $value;\n\t\t\t}\n\t\t} else {\n\t\t\tparent::__set($key, $value);\n\t\t}\n\t}",
"public function __set($key, $value)\n {\n if (strpos($key, '_') === 0) {\n return;\n }\n if ($this->_overwrite === true) {\n $this->_store[$key]=$value;\n if (isset($this->_engine)) {\n $this->_engine->save($this->_store);\n }\n } else {\n if (isset($this->$key) === true) {\n return;\n } else {\n $this->_store[$key]=$value;\n if (isset($this->_engine)) {\n $this->_engine->save($this->_store);\n }\n }\n }\n return;\n }"
] | [
"0.7391146",
"0.7381914",
"0.7381914",
"0.732008",
"0.732008",
"0.7163507",
"0.7144345",
"0.7122203",
"0.7120583",
"0.7111283",
"0.7108767",
"0.7108767",
"0.7107171",
"0.7093877",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.7071839",
"0.70686734",
"0.704626",
"0.704626",
"0.70419204",
"0.7031074",
"0.70054233",
"0.6971638",
"0.69562864",
"0.69562864",
"0.69464386",
"0.69391185",
"0.6924248",
"0.68837047",
"0.68805736",
"0.68805736",
"0.68698204",
"0.686123",
"0.68512404",
"0.68507785",
"0.6840775",
"0.68172085",
"0.6813034",
"0.6806662",
"0.6783807",
"0.6782269",
"0.67640984",
"0.6758758",
"0.6757044",
"0.674948",
"0.6748912",
"0.6740906",
"0.6740906",
"0.6738498",
"0.6734636",
"0.6734013",
"0.6734013",
"0.6732849",
"0.6727973",
"0.6723293",
"0.67191494",
"0.66886497",
"0.6680073",
"0.66737354",
"0.66734856",
"0.666035",
"0.66551554",
"0.6653857",
"0.6653634",
"0.66533035",
"0.66526353",
"0.66526353",
"0.6649756",
"0.6649756",
"0.6649756",
"0.6647067",
"0.6645674",
"0.66443866",
"0.66417783",
"0.66414315",
"0.6638183",
"0.6631258",
"0.6628033",
"0.66163886",
"0.6602037",
"0.6602037",
"0.6594158",
"0.6586054",
"0.65822184",
"0.65820986",
"0.6576255"
] | 0.0 | -1 |
Returns the value of field user_id | public function getUserId()
{
return $this->user_id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getUserId()\n {\n return parent::getValue('user_id');\n }",
"public function getId_user()\n {\n return $this->id_user;\n }",
"public function getId_user()\n {\n return $this->id_user;\n }",
"public function getId_user()\n {\n return $this->id_user;\n }",
"public function getId_user()\n {\n return $this->id_user;\n }",
"public function getUserId()\n {\n return (int) $this->_getVar('user_id');\n }",
"public function get_id_user()\n\t{\n\t\treturn $this->id_user;\n\t}",
"public function getIduser()\n {\n return $this->iduser;\n }",
"public function getUser_id()\n {\n return $this->user_id;\n }",
"public function getUser_id()\n {\n return $this->user_id;\n }",
"public function getUserId()\n {\n $this->checkIfKeyExistsAndIsInteger('user_id');\n\n return $this->data['user_id'];\n }",
"public function getIdUser()\n {\n return $this->id_user;\n }",
"public function getIdUser()\n {\n return $this->id_user;\n }",
"public function getIdUser()\n {\n return $this->id_user;\n }",
"public function getUserId()\n {\n $value = $this->get(self::user_id);\n return $value === null ? (integer)$value : $value;\n }",
"public function getId_user()\n {\n return $this->_id_user;\n }",
"public function getId_user()\n {\n return $this->_id_user;\n }",
"public function get_user_id();",
"public function getId_user(){\n return $this->id_user;\n }",
"public function getUserId() {\n return $this->user_id;\n }",
"public function getUserId() {\n return $this->user_id;\n }",
"public function getUserId()\n {\n return (int)$this->user_id;\n }",
"public function getUserId() {\n\t\treturn $this->user_id;\n\t}",
"public function getUser_id()\n {\n return $this->user_id;\n }",
"public function getUser_id()\n {\n return isset($this->user_id) ? $this->user_id : null;\n }",
"public function getIdUser()\n {\n return $this->idUser;\n }",
"public function getIdUser()\n {\n return $this->idUser;\n }",
"public function get_id_user()\n {\n return (isset($this->_id_user)) ? $this->_id_user : null;\n }",
"public function getIdUser() \n\t{\n\t\treturn $this->idUser;\n\t}",
"public function getUserId()\n {\n return $this->getValue('nb_user_id');\n }",
"public function getUserId()\n\t{\n\t\t$column = self::COL_USER_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"public function getUserId()\n\t{\n\t\t$column = self::COL_USER_ID;\n\t\t$v = $this->$column;\n\n\t\tif( $v !== null){\n\t\t\t$v = (string)$v;\n\t\t}\n\n\t\treturn $v;\n\t}",
"function getUserId() {\n\t\treturn $this->getData('userId');\n\t}",
"public function getUserID() {\n\t\tif (is_numeric($this->user_id)) {\n\t\t\treturn $this->user_id;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\t}",
"public function getUserId() {\n return $this->user === null ? null : $this->user->id;\n }",
"public function getUserID () {\n return $this->id;\n }",
"function get_user_id()\r\n {\r\n return $this->user->get_id();\r\n }",
"public function getUserId()\n {\n return $this->get(self::_USER_ID);\n }",
"public function getUserId()\n {\n return $this->get(self::_USER_ID);\n }",
"public function getUserId()\n {\n return $this->get(self::_USER_ID);\n }",
"public function getUserId()\n {\n return $this->get(self::_USER_ID);\n }",
"public function get_user_id() {\n\t\treturn $this->user_id;\n\t}",
"public function getUserID() {\n\t\treturn $this->_user_id;\n\t}",
"public function getUserID(){\n return($this->userID);\n }",
"public function getId()\n {\n return $this->ID_user;\n }",
"public function get_user_id() {\n\n return $this -> user_id;\n\n }",
"public function getUserIdUser(): int\n {\n return $this->User_id_user;\n }",
"function get_user_id(){\n return $this->user_id;\n }",
"public function getID() {\n return $this->user_id;\n }",
"public function getUserid()\n {\n return $this->userid;\n }",
"public function getUserid()\n {\n return $this->get(self::_USERID);\n }",
"public function getUserid()\n {\n return $this->get(self::_USERID);\n }",
"public function getUserid()\n {\n return $this->get(self::_USERID);\n }",
"public function getUserId()\n {\n return $this->userid;\n }",
"public function getUserId()\n {\n return $this->userid;\n }",
"public function getUserId()\n {\n return $this->id;\n }",
"public function getUserId()\n {\n return $this->getUserAttribute(static::ATTRIBUTE_ID);\n }",
"public function id() {\n return isset($this->_adaptee->user_info['user_id']) ? $this->_adaptee->user_info['user_id'] : null;\n }",
"protected function getUserId()\n {\n return object_get($this->getUser(), 'profile_id', $this->getDefaultProfileId() );\n }",
"public function getUserId()\n\t{\n\t\treturn $this->evaluateExpression($this->getUserIdExpression);\n\t}",
"public function getUserId () {\n\t\treturn ($this->userId);\n\t}",
"public function getId()\n {\n return $this->user['id'];\n }",
"function get_userid() {\n return $this->userid;\n }",
"Public Function UserId() {\n\t\treturn $this->userId;\n\t\n\t}",
"public function getUserId(){\n return $this->u_id;\n }",
"public function getUserId() {\n\t\treturn ($this->userId);\n\t}",
"public function getUserId()\r\n\t{\r\n\t\t$user = parent::getUser();\r\n\t\tif(!($user instanceof User))\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn $user->getId();\r\n\t}",
"public function getUserId() {\n return($this->userId);\n }",
"public function getUserId ()\n {\n return $this->storage->get(self::$prefix . 'userId');\n }",
"public function id()\n {\n return $this->user->id;\n }",
"public function getUserID()\n {\n return $this->userID;\n }",
"public function getUserID()\n {\n return $this->userID;\n }",
"public function getUserId();",
"public function getUserId();",
"public function getUserId();",
"public function getUserId();",
"public function getUserId();",
"public function getUserId();",
"public function getUserId();",
"public function getUserId();"
] | [
"0.84572583",
"0.81286794",
"0.81286794",
"0.81286794",
"0.81286794",
"0.81169534",
"0.81038785",
"0.80643123",
"0.8049839",
"0.8049839",
"0.8015119",
"0.80114496",
"0.80114496",
"0.80114496",
"0.800314",
"0.7995636",
"0.7995636",
"0.79931736",
"0.7960451",
"0.79597956",
"0.79597956",
"0.7939308",
"0.79368246",
"0.79293525",
"0.792874",
"0.7917259",
"0.7917259",
"0.7898323",
"0.78571683",
"0.78399765",
"0.78376377",
"0.78376377",
"0.7830719",
"0.7806534",
"0.7797889",
"0.77810246",
"0.7775888",
"0.7764392",
"0.7764265",
"0.7764265",
"0.7764265",
"0.7760925",
"0.7735406",
"0.7723659",
"0.7703774",
"0.77036846",
"0.7692739",
"0.7672836",
"0.7670245",
"0.76524466",
"0.7652127",
"0.7652127",
"0.7652127",
"0.76467884",
"0.76467884",
"0.7641825",
"0.76361847",
"0.7625133",
"0.7602861",
"0.75870746",
"0.757276",
"0.75594735",
"0.754707",
"0.75386935",
"0.75210756",
"0.75165606",
"0.75087607",
"0.7503552",
"0.7503476",
"0.7479643",
"0.74792826",
"0.74792826",
"0.7474518",
"0.7474518",
"0.7474518",
"0.7474518",
"0.7474518",
"0.7474518",
"0.7474518",
"0.7474518"
] | 0.7989601 | 38 |
Returns the value of field key | public function getKey()
{
return $this->key;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_field_key() {\n\t\treturn $this->get_field_attr( 'field_key' );\n\t}",
"public function getField(string $key);",
"public function getKeyField()\n {\n return $this->_key;\n }",
"function getFieldValue($field);",
"function __get( $key )\n {\n \t//Kint::dump($this->fields);\n return $this->fields[ $key ];\n }",
"public function __get($key) {\n return $this->_fields[$key];\n }",
"public function field($key)\n {\n $field = $this->metas()->where('key', $key)->select('value')->first();\n\n if($field == null) return '';\n \n return is_array(json_decode($field->value)) \n ? json_decode($field->value) \n : $field->value;\n }",
"public function getValue($key);",
"public function getValue($key);",
"public function getField($fieldKey){\n $fields = $this->getFields();\n return $fields->{$fieldKey};\n }",
"public function getKeyValue() {}",
"public function __get($key)\n {\n return $this->fields[ $key ];\n }",
"function getValueFromField()\r\n\t{\r\n\t\treturn $this->row[ key( $this->mapping ) ];\r\n\t}",
"function getValueFromField()\n {\n return $this->current_row[ key( $this->mapping ) ];\n }",
"public function value($key){\n if (isset($this->data[$key])) return $this->data[$key];\n else return $key;\n }",
"function get_field($key, $page_id = 0) { /// get_field é para somente pegar o valor do que quero\n $id = $page_id !== 0 ? $page_id : get_the_ID();\n return get_post_meta($id, $key, true);\n }",
"function getfield($field){\n\n\t\treturn($this->record[$field]);\n\t}",
"abstract protected function getValue($key);",
"function getKeyField() \n {\n return 'label_key';\n }",
"public function getKeyValue() {\n\t\t\treturn $this->getData(static::$_key);\n\t\t}",
"public function getFieldValue(/*string*/ $fieldName);",
"public function getValue($field) {\n if (array_key_exists($field, $this->data)) {\n return $this->data[$field];\n } else {\n die(\"Campo no encontrado\");\n }\n}",
"function getKey() \n {\n return $this->getValueByFieldName( 'label_key' );\n }",
"public function get_key_val($key){\n\t\t$key_val = explode('_', $key);\n\t\tif(in_array($key_val[0], array('title','first','last','email','designation','mobile',\n\t\t'phone','branch','status','id'))){\n\t\t\treturn ($key_val[0] == 'first' || $key_val[0] == 'last') ? $key_val[0].'_name' : $key_val[0];\n\t\t}\t\t\n\t\t\n\t}",
"public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }",
"public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }",
"public function getKey()\n {\n if (is_null($this->key)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_KEY);\n if (is_null($data)) {\n return null;\n }\n $this->key = (string) $data;\n }\n\n return $this->key;\n }",
"public function getFieldData($field, $key)\n {\n return $this->fields[$field][$key];\n }",
"public static function getKey();",
"public static function getKey();",
"function offsetGet($key)\n\t{\n\t\tif (isset($this->fields[$key]))\n\t\t\treturn $this->fields[$key];\n\t}",
"function getFieldValue($fieldName){\n\n\t\tif( isset($this->record[$fieldName]) ) return $this->record[$fieldName];\n\t\telse return false;\n\n\t}",
"public function get_field_value($field)\n\t{\n\t\t//$field = strtoupper($field);\t\t\n\t\tif ($this->is_bound($field))\n\t\t{\n\t\t\treturn $this->get_bound_value($field);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->_fields[$field];\n\t\t}\n\t}",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"public function getKey();",
"function getValue(int $field);",
"public function get($field) {\r\n\t\treturn $this -> fields[$field];\r\n\t}",
"function get($key);",
"public function getKey() {}",
"public function getKey() {}",
"final public function getKey(): string\n {\n return (string)array_flip(static::getValues())[$this->value];\n }",
"public function key () {\n return key($this->__fields);\n }",
"public function getKeyValue() {\n $primaryKey = $this->getKeyName();\n return $this->$primaryKey;\n }",
"function sage_get_field( $key, $id=false, $format=true ) {\n\n global $post;\n\n $key = trim( filter_var( $key, FILTER_SANITIZE_STRING ) );\n $result = '';\n\n if ( function_exists( 'get_field' ) ) {\n if ( isset( $post->ID ) && !$id )\n $result = get_field( $key, $post->ID, $format);\n else\n $result = get_field( $key, $id, $format );\n }\n\n return $result;\n}",
"abstract public function getKey();",
"abstract public function getKey();",
"public function getKlevuField($field)\n {\n return $this->_klevuFields[$field];\n }",
"public function getKey()\n\t{\n\t\treturn $this->data['key'];\n\t}",
"public function getParam($fieldKey){\n $params = $this->getParams();\n if(isset($params->{$fieldKey})){\n return $params->{$fieldKey};\n }\n else{\n return '';\n }\n\n }",
"public function getFieldValue($fieldname)\n {\n return $this->{'get'.$fieldname}();\n }",
"abstract public function get_meta_key();",
"public function get_field(/* .... */)\n {\n return $this->_field;\n }",
"public function getField($key,$default_val = null){\n return $this->existsField($key) ? $this->field_map[$key] : $default_val;\n }",
"public function getFieldByKey($fieldKey) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[$fieldKey])) return $this->_result[$fieldKey];\n\t\t\telse parent::throwGetColException('PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('PollTemplatesModel::getFieldByName', __LINE__, __FILE__);\n\t}",
"public function getField()\n {\n $value = $this->name;\n if (null != $this->field) {\n $value = $this->field;\n }\n return $value;\n }",
"public function getFieldByKey($fieldKey) {\n\t\tif ((bool) $this->_result) {\n\t\t\tif (isset($this->_result[$fieldKey])) return $this->_result[$fieldKey];\n\t\t\telse parent::throwGetColException('CampaignDefinitionsModel::getFieldByName', __LINE__, __FILE__);\n\t\t}\n\t\telse return parent::throwNoResException('CampaignDefinitionsModel::getFieldByName', __LINE__, __FILE__);\n\t}",
"public function getFieldKeyForConduit() {\n return $this->getFieldKey();\n }",
"public function getKey()\n {\n return $this->data['key'];\n }",
"public function getValue($key)\n {\n if (isset($this->fields[$key])) {\n return $this->fields[$key]->getValue();\n }\n return null;\n }",
"public function getKey()\n {\n return $this->getProperty()->getKey();\n }",
"public function get_field_name();",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);",
"public function get($key);"
] | [
"0.77407384",
"0.7700749",
"0.7580262",
"0.75453246",
"0.7459674",
"0.73867106",
"0.73767495",
"0.7301681",
"0.7301681",
"0.7301442",
"0.7270543",
"0.7196164",
"0.7173661",
"0.7173302",
"0.7115867",
"0.6985965",
"0.6977453",
"0.6937234",
"0.69032663",
"0.6864832",
"0.6839356",
"0.6833223",
"0.6795953",
"0.6764957",
"0.67526746",
"0.67526746",
"0.67526746",
"0.6743785",
"0.6711827",
"0.6711827",
"0.67001176",
"0.6697798",
"0.6694094",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.66728085",
"0.6659073",
"0.661689",
"0.6612293",
"0.6611506",
"0.6611506",
"0.6606367",
"0.65912277",
"0.6574343",
"0.6552196",
"0.6543061",
"0.6543061",
"0.6542854",
"0.6530823",
"0.65302014",
"0.6511823",
"0.651136",
"0.6505272",
"0.6496961",
"0.64689946",
"0.6458744",
"0.64527833",
"0.64512265",
"0.64510965",
"0.64491194",
"0.6438151",
"0.6431336",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156",
"0.6413156"
] | 0.0 | -1 |
the site is graded ok | public function graded($phase)
{
if($phase == 'a'){
$evaluations = Evaluation::where('site_id', $this->id)->get();
}
if($phase == 'b'){
$evaluations = Evaluation_b::where('site_id', $this->id)->get();
}
if($phase == 'c'){
$evaluations = Evaluation_c::where('site_id', $this->id)->get();
}
$counter = 0;
foreach($evaluations as $evaluation){
if($evaluation->complete()){
$counter++;
}
}
if($evaluations->count() >= 2 && $counter >= 2){
return true;
} else {
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function ms_site_check()\n {\n }",
"public function ee_breakouts_page_load() {}",
"public function index() {\r\n //echo \"test\";exit;\r\n //echo $this->data['base_url'];exit;\r\n if (strpos($this->data['base_url'],'beta') !== false && strpos($this->data['base_url'],'https') !== false) {\r\n header('location:http://beta.belajarujian.com');\r\n }\r\n //$this->production = FALSE;\r\n $this->production = TRUE;\r\n if ($this->production)\r\n $this->_production();\r\n else\r\n $this->_under_development();\r\n }",
"public function web_load(){\n\t\t$this->common();\n\t}",
"function grab(){\n\n\t\t$domains = explode(\",\",$this->conf->startUp[\"APPS.DOMAIN\"]);\n\t\tif(in_array(\"\".$_SERVER[\"HTTP_HOST\"],$domains)){\n\t\t\t$domain = $_SERVER[\"HTTP_HOST\"];\n\t\t}else{\n\t\t\t$domain = \"localhost\";\n\t\t}\t\n\n\t\t$bruto_url = $_SERVER[\"REQUEST_SCHEME\"].\"://\".\n\t\t\t$domain.$_SERVER[\"REQUEST_URI\"];\n\n\t\t$net_url = isset($bruto_url) ? $bruto_url : false;\n\n\t\tif($net_url)\n\t\t{\n\t\t\t//format HMVC [modules][controller ++model++views]\n\t\t\t//format MVC controler ++model++views\n\t\t\t$modeHMVC = self::$confStatic->startUp[\"APPS.MODULAR\"];\n\t\t\t$net_url \t= parse_url($net_url);\n\t\t\t$array_path = explode('/',ltrim($net_url['path'],'/'));\n\n\t\t\t$pageComponent=[];\n\t\t\tif($modeHMVC == \"true\"){ \n\t\t\t\t//jika dijalankan pada mode lokal atau online\n\t\t\t\tif($domain == \"localhost\" || $domain == \"127.0.0.1\"){\n\t\t\t\t\t$pageComponent['modul']\t\t= ucfirst($array_path[1]);\n\t\t\t\t\t$pageComponent['class'] \t= isset($array_path[2]) ? $array_path[2] : $this->conf->startUp[\"APPS.BASEPAGE\"];\n\t\t\t\t\t$pageComponent['func'] \t\t= isset($array_path[3]) ? $array_path[3] : $this->conf->startUp[\"APPS.FUNC\"];\n\t\t\t\t\t$pageComponent['params'] \t= isset($array_path[3]) ? array_slice($array_path,4) : null;\t\t\t\n\n\t\t\t\t}\n\t\t\t\t//jika tidak mode local\n\t\t\t\telse{\n\t\t\t\t\t$pageComponent['modul'] \t\t= ucfirst($array_path[0]);\n\t\t\t\t\t$pageComponent['class'] \t\t= isset($array_path[1]) ? $array_path[1] : $this->conf->startUp[\"APPS.BASEPAGE\"];\n\t\t\t\t\t$pageComponent['func'] \t\t\t= isset($array_path[2]) ? $array_path[2] : $this->conf->startUp[\"APPS.FUNC\"];\n\t\t\t\t\t$pageComponent['params']\t\t= isset($array_path[2]) ? array_slice($array_path,3) : null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\t//jika mode local\n\t\t\t\tif($domain == \"localhost\" || $domain == \"127.0.0.1\"){\n\t\t\t\t\t$pageComponent['modul'] \t\t= \"\";\n\t\t\t\t\t$pageComponent['class'] \t\t= $array_path[1];\n\t\t\t\t\t$pageComponent['func'] \t\t\t= isset($array_path[2]) ? $array_path[2] : $this->conf->startUp[\"APPS.FUNC\"];\n\t\t\t\t\t$pageComponent['params']\t\t= isset($array_path[2]) ? array_slice($array_path,3) : null;\n\t\t\t\t}\n\t\t\t\t//jika tidak mode lokal\n\t\t\t\telse{\n\t\t\t\t\t$pageComponent['modul'] \t\t= \"\";\n\t\t\t\t\t$pageComponent['class'] \t\t= $array_path[0];\n\t\t\t\t\t$pageComponent['func'] \t\t\t= isset($array_path[1]) ? $array_path[1] : $this->conf->startUp[\"APPS.FUNC\"];\n\t\t\t\t\t$pageComponent['params'] \t\t= isset($array_path[1]) ? array_slice($array_path,2) : null;\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\t$pageComponent = (object) $pageComponent;\n\n\n\t\t\tif(isset($net_url['query'])){\n\n\t\t\t\tparse_str($net_url['query'],$array_query_string);\n\t\t\t\treq::setQueryGET($array_query_string);\t\n\t\t\t\t//var_dump($array_query_string);\n\t\t\t}else{\n\t\t\t\t$array_query_string = [];\n\t\t\t\t//var_dump($array_query_string);\n\t\t\t}\n\n\t\t\tif($pageComponent->class==\"\"){$pageComponent->class = self::$confStatic->startUp[\"APPS.BASEPAGE\"];}\n\t\t\treq::setParamsFunc((array)$pageComponent->params);\n\t\t\tself::setupPage(self::$rutes,$pageComponent);\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo \"whoopppsss something went wrong\";\n\t\t\t//error whoopsss plugin\n\t\t}\n\t}",
"public function upgrade_check(){\n $this->upgrade_site();\n }",
"function cera_grimlock_before_site() {\n\t\tdo_action( 'grimlock_loader' );\n\t\tdo_action( 'grimlock_vertical_navigation' );\n\t}",
"function wp_dashboard_site_health()\n {\n }",
"function om13_wait_for_going_live() {\n\tif (time() < 1365447600 && !is_user_logged_in()) {\n\t\twp_die('Die Website der #om13 ist demnächst verfügbar. Bei Fragen kannst du gern den Twitteraccount <a href=\"https://twitter.com/openmindkonf\">@openmindkonf</a> kontaktieren. Wir freuen uns auf dich!'); // TODO: __\n\t}\n}",
"function site_maintenance(){\n\t\t/********* If page is active that means the site for temporarily down for maintenance *******************/\n\t\t$path_parts = pathinfo($_SERVER['PHP_SELF']);\n\n\t\t//echo $path_parts[\"dirname\"] . \"\\n\";\n\t\t//echo $path_parts[\"basename\"] . \"\\n\";\n\t\t//exit();\n\t\tif($path_parts[\"basename\"]!=\"site_down.php\"){\n\t\t\t$sql=\"select status from yp_site_down\";\n\t\t\t$page_status=getSingleResult($sql);\n\t\t\tif($page_status=='Inactive'){\n\t\t\t\theader(\"Location: site_down.php\");\n\t\t\t\texit();\n\t\t\t}\n\t\t}\n\t\t/********* End ***********/\n\t}",
"function open() {\n\t\t//recuperation de la page demande\n\t\tif (!empty($this->client_path_info)) {\n\t\t\t$actions=$this->compile_url($this->client_path_info);\n\t\t\tif (sizeof($actions)==0) { // page par defaut du site\n\t\t\t\t//a remplacer par l'index utilisateur\n\t\t\t\t//BASE_URL\n\t\t\t\t$base_url=CFG::get(\"BASE_URL\",\"Context\");\n\t\t\t\t$url=$base_url.MAIN.\".\".INDEX;\n\t\t\t\t//echo $url;\n\t\t\t\tURL::redirect($url);\n\t\t\t\texit;\n\t\t\t\t\n\t\t\t}\n\t\t\t$this->actions=$actions;\n\t\t} else { //page par defaut du site\n\t\t\t//a remplacer par l'index utilisateur\n\t\t\t$base_url=CFG::get(\"BASE_URL\",\"Context\");\n\t\t\t$url=$base_url.MAIN.\".\".INDEX;\n\t\t\t//echo $url;\n\t\t\tURL::redirect($url);\n\t\t\texit;\n\t\t\t\t\n\t\t}\n\n\t\tif ($this->validate()) {\n\t\t//if (Bleetz::config[\"Auth\"]===true) {//TODO\n\t\t\tif (true) {\n\n\t\t\tUS::checkpoint();\n\n\t\t\tif (!$this->authorize()) {\n\t\t\t\t//perform login\n\t\t\t\t//redirect to login page...\n\t\t\t\t//US::login...\n\t\t\t\t//URL::login...\n\t\t\t\theader('HTTP/1.1 401 Unauthorized');\n\t\t\t\t//ou page de demande de connection ou retour\n\t\t\t\t// exemple : vous n'avez pas accs la page demande\n\t\t\t\t// connectez vous....\n\t\t\t\tURL::redirect(\"admin.login\");\n\t\t\t\texit;\n\t\t\t};\n\n\t\t\t}\n\t\t} else {\n\t\t\t$this->actions=array();\n\t\t\t//par la suite\n\t\t\t//BZ::E404\n\t\t\tif (!CT::validate_action(E404)) {\n\t\t\t\tER::Report();\n\t\t\t\texit;\n\t\t\t}\n\t\t\t$ar=explode('.',E404);\n\t\t\t$controller=$ar[0];\n\t\t\t$action=$ar[1];\n\t\t\t$this->actions[]=array(\"controller\"=>$controller, \"action\"=>$action, \"case_items\"=>0 );\n/*\n\t\t\tif (!isset($this->admin)) {\n\t\t\t\t//BZ::LoadController(\"admin\");\n\t\t\t\techo CTLPATH;\n\t\t\t\trequire_once CTLPATH.\"admin.php\";\n\t\t\t\t$this->admin=$admin;\t\t\t//\n\t\t\t}\n*/\n\t\t}\n\t}",
"function on_page_init() {\n return true;\n }",
"final function what_is_good() {\n\t\t\techo \"Running is Good </br>\";\n\t\t}",
"function siteInformation_validate() {\n return true;\n}",
"public function gamed(){\n\t\t$this->data['game_content'] = \"we are always playing\" ;\n\t\t//$this->viewpage($this->data, null) ;\n\t\t$this->route();\n\t}",
"public function testUpdateSite()\n {\n }",
"function CheckVisitor(){\r\n\t\t// check banned IP addresses before serving webpage of any type\r\n\t\tif (BAN_IP_ADDRESSES == \"on\"){\r\n\t\t\t$this->check_IP_ban_list();\r\n\t\t}\r\n\r\n\t\t// maintenance mode detection\r\n\t\t$this_page_name = $_SERVER['PHP_SELF'];\r\n\t\tif (MAINTENANCE_MODE == \"on\" && $this_page_name != MAINTENANCE_MODE_PAGE)\r\n\t\t{\r\n\t\t\t$found = 0;\r\n\t\t\twhile (list ($key, $val) = each ($this->_maintenance_allow_ip)) {\r\n\t\t\t\tif ($this->checkIPorRange($val)) {\r\n\t\t\t\t\t$found = 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (!$found){\r\n\t\t\t\tinclude(DIR_SERVER_ROOT.\"htdocs/\".MAINTENANCE_MODE_PAGE);\r\n\t\t\t\texit();\r\n\t\t \t}\r\n\t\t}\r\n\t}",
"public function connect_to_site() {\n\t\treturn false;\n\t}",
"function init_site_secret()\n {\n \t$secret = md5(rand().microtime());\n \tif (datalist_set('__site_secret__', $secret))\n \t\treturn $secret;\n \t\t\n \treturn false;\n }",
"function stats(){\nglobal $sbulan,$shari,$sjam;\n if((preg_match(\"/Nav/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Gold/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/X11/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Mozilla/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Netscape/i\", getenv(\"HTTP_USER_AGENT\"))) AND (!preg_match(\"/MSIE/i\", getenv(\"HTTP_USER_AGENT\"))) AND (!preg_match(\"/Konqueror/i\", getenv(\"HTTP_USER_AGENT\")))) $browser =0; //\"Netscape\";\n // Opera needs to be above MSIE as it pretends to be an MSIE clone\n elseif(preg_match(\"/Opera/i\", getenv(\"HTTP_USER_AGENT\"))) $browser = 1; // \"Opera\";\n elseif(preg_match(\"/MSIE 4.0/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =2; //\"MSIE 4.0\";\n elseif(preg_match(\"/MSIE 5.0/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =3; // \"MSIE 5.0\";\n elseif(preg_match(\"/MSIE 6.0/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =4; //\"MSIE 6.0\";\n elseif(preg_match(\"/Lynx/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =5; // \"Lynx\";\n elseif(preg_match(\"/WebTV/i\", getenv(\"HTTP_USER_AGENT\"))) $browser = 6; //\"WebTV\";\n elseif(preg_match(\"/Konqueror/i\", getenv(\"HTTP_USER_AGENT\"))) $browser =7; //\"Konqueror\";\n elseif((preg_match(\"/bot/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Google/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Slurp/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Scooter/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Spider/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/Infoseek/i\", getenv(\"HTTP_USER_AGENT\")))) $browser =8; //\"Bot\";\n else $browser =9; // \"Other\";\n \n/* Get the Operating System data */\n\n if(preg_match(\"/Win/i\", getenv(\"HTTP_USER_AGENT\"))) $os =0;// \"Windows\";\n elseif((preg_match(\"/Mac/i\", getenv(\"HTTP_USER_AGENT\"))) || (preg_match(\"/PPC/i\", getenv(\"HTTP_USER_AGENT\")))) $os =1;// \"Mac\";\n elseif(preg_match(\"/Linux/i\", getenv(\"HTTP_USER_AGENT\"))) $os =2;// \"Linux\";\n elseif(preg_match(\"/FreeBSD/i\", getenv(\"HTTP_USER_AGENT\"))) $os =3;// \"FreeBSD\";\n elseif(preg_match(\"/SunOS/i\", getenv(\"HTTP_USER_AGENT\"))) $os =4;// \"SunOS\";\n elseif(preg_match(\"/IRIX/i\", getenv(\"HTTP_USER_AGENT\"))) $os =5;// \"IRIX\";\n elseif(preg_match(\"/BeOS/i\", getenv(\"HTTP_USER_AGENT\"))) $os =6;// \"BeOS\";\n elseif(preg_match(\"/OS2/i\", getenv(\"HTTP_USER_AGENT\"))) $os =7;// \"OS/2\";\n elseif(preg_match(\"/AIX/i\", getenv(\"HTTP_USER_AGENT\"))) $os =8;// \"AIX\";\n else $os =9;// \"Other\";\n \n//baca database \n//tampilkan data terbaru\n\n$query1 = \"SELECT * FROM stat_browse WHERE id='1'\";\n//---- baca data polling\n\n$hasil = mysql_query($query1);\n$data = mysql_fetch_array($hasil);\n$PJAWABAN_TMP = explode(\"#\", $data[\"pjawaban\"]);\n$jmljwb = count($PJAWABAN_TMP);\n$PJAWABAN_TMP[$browser]++;\n$PJAWABAN = '';\nfor($i=0;$i<$jmljwb;$i++){\n\t$PJAWABAN .= $PJAWABAN_TMP[$i] . \"#\";\n}\n$PJAWABAN = substr_replace($PJAWABAN, \"\", -1, 1);\n//-----------------------------------------------\n\t\n//---- simpan data terbaru\n$query2 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN' WHERE id='1'\";\nmysql_query($query2);\n// ----------------------------------------------------------------------\t\n\t\t\n\t\t\n//baca database \n//tampilkan data terbaru\n$query2= \"SELECT * FROM stat_browse WHERE id='2'\";\n//---- baca data polling\n\n\t\t$hasil2 = mysql_query($query2);\n\t\t$data = mysql_fetch_array($hasil2);\n\t\t$PJAWABAN_TMP2 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb2 = count($PJAWABAN_TMP2);\n\t\t$PJAWABAN_TMP2[$os]++;\n$PJAWABAN2 = '';\n\t\tfor($i=0;$i<$jmljwb2;$i++)\n\t\t{\n\t\t\t$PJAWABAN2 .= $PJAWABAN_TMP2[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN2 = substr_replace($PJAWABAN2, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query3 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN2' WHERE id='2'\";\n\t\tmysql_query($query3);\n\t\t// ----------------------------------------------------------------------\t\n\n\t\n// edit hari\n /* Month-Counter */\n $bulans = $sbulan - 1;\n \n //baca database \n //tampilkan data terbaru\n$query4= \"SELECT * FROM stat_browse WHERE id='4'\";\n//---- baca data polling\n\n\t\t$hasil4 = mysql_query($query4);\n\t\t$data = mysql_fetch_array($hasil4);\n\t\t$PJAWABAN_TMP4 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb4 = count($PJAWABAN_TMP4);\n\t\t$PJAWABAN_TMP4[$bulans]++;\n$PJAWABAN4 = '';\n\t\tfor($i=0;$i<$jmljwb4;$i++)\n\t\t{\n\t\t\t$PJAWABAN4 .= $PJAWABAN_TMP4[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN4 = substr_replace($PJAWABAN4, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query4 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN4' WHERE id='4'\";\n\t\tmysql_query($query4);\n\t\t// ----------------------------------------------------------------------\t\n \n /* Weekday-Counter */\n $haris = $shari;\n$query3= \"SELECT * FROM stat_browse WHERE id='3'\";\n//---- baca data polling\n\n\t\t$hasil3 = mysql_query($query3);\n\t\t$data = mysql_fetch_array($hasil3);\n\t\t$PJAWABAN_TMP3 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb3 = count($PJAWABAN_TMP3);\n\t\t$PJAWABAN_TMP3[$haris]++;\n$PJAWABAN3 = '';\n\t\tfor($i=0;$i<$jmljwb3;$i++)\n\t\t{\n\t\t\t$PJAWABAN3 .= $PJAWABAN_TMP3[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN3 = substr_replace($PJAWABAN3, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query3 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN3' WHERE id='3'\";\n\t\tmysql_query($query3);\n\t\t// ----------------------------------------------------------------------\t\n \n /* Per-Hour-Counter */\n $jams = $sjam;\n \n //baca database \n //tampilkan data terbaru\n$query5= \"SELECT * FROM stat_browse WHERE id='5'\";\n//---- baca data polling\n\n\t\t$hasil5 = mysql_query($query5);\n\t\t$data = mysql_fetch_array($hasil5);\n\t\t$PJAWABAN_TMP5 = explode(\"#\", $data[\"pjawaban\"]);\n\t\t$jmljwb5 = count($PJAWABAN_TMP5);\n\t\t$PJAWABAN_TMP5[$jams]++;\n$PJAWABAN5 = '';\n\t\tfor($i=0;$i<$jmljwb5;$i++)\n\t\t{\n\t\t\t$PJAWABAN5 .= $PJAWABAN_TMP5[$i] . \"#\";\n\t\t}\n\t\t$PJAWABAN5 = substr_replace($PJAWABAN5, \"\", -1, 1);\n\t\t//-----------------------------------------------\n\t\n\t\t//---- simpan data terbaru\n\t\t$query5 = \"UPDATE stat_browse SET pjawaban='$PJAWABAN5' WHERE id='5'\";\n\t\tmysql_query($query5);\n\t\t// ----------------------------------------------------------------------\t\n \n\n}",
"public function web();",
"function wp_ajax_health_check_site_status_result()\n {\n }",
"public function isSite() {\n return false;\n }",
"final function whatIsGood() {\n echo \"Running is good <br>\";\n }",
"function ready();",
"protected function after_load(){\n\n\n }",
"private function BrowserUpdate() {\n $readAgent = new Read; //Instanciando a classe Read\n $readAgent->ExeRead('siteviews_agent', \"WHERE agent_name = :agent\", \"agent={$this->Browser}\"); //Executando o metodo ExRead da classe Read\n if (!$readAgent->getResult())://Se não fizer leitura então se cria uma nova\n $ArrAgent = ['agent_name' => $this->Browser, 'agent_views' => 1];\n $createAgent = new Create; //Instanciando Classe Create\n $createAgent->ExeCreate('siteviews_agent', $ArrAgent); //Executando o Metodo ExCreate da classe Create passando os dados a serem criados no banco\n else://Se fez leitura então atualiza\n $ArrAgent = ['agent_views' => $readAgent->getResult()[0]['agent_views'] + 1];\n $updateAgent = new Update; //Instanciando o metodo Update\n $updateAgent->ExeUpdate('siteviews_agent', $ArrAgent, \"WHERE agent_name = :name\", \"name={$this->Browser}\"); //Executando o metodo ExUpdate da classe Update, neste atualizando as informações no banco\n endif;\n }",
"public function run()\n {\n // $site_us = new Locale_site();\n // $site_us->id = 1;\n\n // $site_us->locale = 'en';\n\n // $site_us->guid_title = 'Rock climbing In Georgia';\n // $site_us->guid_description = 'Rock climbing in Georgia is a developing sport, but the country has a great prospect in rock climbing and in mountaineering. We constantly collect information about promising rocks, we am happy to accept your messages about new and unknown places. \n // There are many ready-made regions for all kinds of climbing. Also there are many places to implement and establish new climbing routes and regions, so it is very attractive for those who are searching for new unique places and opportunities.\n // If you need any additional information feel free to contact us. We will provide you with all essential details, suggest a concrete way how to get to the site of climbing or offer his services for equipment and take you to the rock climbing areas.\n // Alse if you need a climbing guide you can contact us. We can accompany you to any mountaineering and rock climbing regions throughout Georgia. Tour prices depend on the complexity of the route and the size of the group. Write to us for more details. Celk here for write message.\n // We are constantly updating information about all regions so that you get full information. \n // Information partners. climbingingeorgia.wordpress.com\n // See information about climbing areas in neighboring countries.\n // Climbing in Armenia - uptherock.com\n // Climbing in Turkey - climbing-europe.com/RockClimbingTurkey';\n // $site_us->guid_short_description = 'Rock climbing and mountaineering in Georgia';\n // $site_us->films_title = 'Rock climbing films';\n // $site_us->films_description = 'Climbing movies';\n // $site_us->films_short_description = 'Climbing movies';\n // $site_us->forum_title = 'Georgian Climbing forum';\n // $site_us->forum_description = 'Georgian climbing forum';\n // $site_us->forum_short_description = 'Georgian climbing forum';\n // $site_us->shop_title = 'Climbing.ge products and services';\n // $site_us->shop_description = 'Climbing.ge products';\n // $site_us->shop_short_description = 'Climbing.ge products';\n // $site_us->other_activity_description = 'Other activity for active rest in Georgia';\n // $site_us->mount_description = 'Mountaineering in Georgia';\n // $site_us->outdoor_description = 'Outdoor rock climbing area in Georgia';\n // $site_us->event_description = 'event_description';\n // $site_us->tech_tips_description = 'Climbing tech tips';\n // $site_us->news_description = 'Georgian climbing news';\n // $site_us->index_gallery_description = 'Gallery';\n // $site_us->indoor_description = 'Indoor climbing gyms in Georgia';\n // $site_us->ice_description = 'Ice climbing in Georgia';\n // $site_us->topo_description = 'Climbing topo';\n // $site_us->what_we_do_description = 'Georgia rock climbing and mountaineering description';\n // $site_us->products_description = 'Climbing.ge products';\n // $site_us->services_description = 'Climbing.ge services';\n // // $site_us->save();\n\n\n // $site_ka = new Locale_site();\n // $site_ka->id = 2;\n\n // $site_ka->locale = 'ka';\n\n // $site_ka->guid_title_ka = 'მეკლდეურობა საქართველოში';\n // $site_ka->guid_description_ka = 'სერვისი climbing.ge, არის საინფორმაციო საიტი, რომელიც მიზნად ისახავს საქართველოს საცოცი და ალპინისტური მარშრუტების დეტალურ აღწერას და ამ იმფორმაციის მეტად პოპულარიზაციას, რათა ეს იმფორმაცია იყოს მეტად ხელმისაწვდომი, როგორც საქართველოს მოსახლეობისთვის, ასევე სხვა ქვეყნიდან ჩამოსული სპორცმენებისთვის. ჩვენი გუნდი მუდმივად მუსაობს ოიმისთვის, რომ იმფორმაცია ხშირად განახლდეს, დაემატოს მეტი სიახლე და ყველა საცოცი რეგიონი თუ ალპინისტური მარშრუტი იყოს რაც შეიძლება დეტალურად აღწერილი. \n // საქართველოში მეკლდეურობა და სპორტული ცოცვა ჯერჯერობით არ არის განვითარებული სათანადო დონეზე, მაგრამ ჩვენ მუდამ ვცდილობთ ვიპოვოთ და შევქმნათ თქვენთვის საინტერესო საცოცი რეგიონები. აღმოვაჩინოთ ახალი, საცოცად გამოსადეგი კლდეები და ამ ადგილებში რაც შეიძლება მეტი საცოცი მარშრუტი გავაკეთოთ . სამწუხაროდ ჯერჯერობით ყვეკაფერი ეს ჩვენი პირადი ხარჯებით ხორციელდება, ამიტომაც ეს ყველაფერი საკმაოდ ნელი ტემპებით მიმდინარეობს. ჩვენ მუდმივად მზად ვართ პარტნიორობისთის, რათა სპორტის ეს სახეობა უფრო მეტად განვითარდეს. ჩვენ მოხარულები ვიქნებით ყველა ტიპის დახმარებისთვის, იქნება ეს ფინანსური, ტექნიკური თუ გამოცდილების გაზიარება.\n // ასევე ჩვენს საიტზე თქვენ შეგიძლიათ იხილოთ ალპინისტური მარშრუტების არწერაც. საქართველოს უდიდესი ნაწილი მტებითაა დაფარული. აქ არის ბევრი ულამაზესი და ტექნიკურად რთული მწვერვალი. როგორიცაა: უშბა, ტეთნულდი, შხარა, მყინვარი, ჭაუხის მასივი და ბევრი სხვა. ამ მთებზე არის ბევრი მარშრუტი . სამწუხაროდ ეს მარშრუტები არ არის აღწერილი. ჩვენ ვცდილობთ შევაგროვოთ და ავღწეროთ ჩვენი თუ სხვის მიერ გავლილი მარშრუტები. თუ თქვენ გაქვთ იმფორმაცია და რომელიმე მარშრუტის აღწერა, თქვენ შეგიძლიათ გამოგვიგზავნოთ ის. ეს ჩვენ ძალიან დაგვეხმარება.\n // თუ თქვენ დაგწირდათ დამატებითი იმფორმაცია ან თქვენ გინდათ გიდის აყვანა საქართველოს ნებისმიერ რეგიონში, მოგვწერეთ ქვემოთ მოყვანილი ფორმის მეშვეობით. ჩვენ მალე გიპასუხებთ\n // Climbing.ge - ის გუნდი ყველას კარ ცოცვას და ვარჯიშს გისურვებთ.';\n\n // $site_ka->guid_short_description_ka = 'საქართველოს საცოცი სეკტორების და ალპინისტური მარშრუტების აღწერა';\n // $site_ka->films_title_ka = 'ცოცვის ფილმები';\n // $site_ka->films_description_ka = 'ცოცვის ფილმები';\n // $site_ka->films_short_description_ka = 'ცოცვის ფილმები';\n // $site_ka->forum_title_ka = 'ქართული ცოცვის ფორუმი';\n // $site_ka->forum_description_ka = 'ქართული ცოცვის ფორუმი';\n // $site_ka->forum_short_description_ka = 'ქართული ცოცვის ფორუმი';\n // $site_ka->shop_title_ka = 'Climbing.ge-ს საქონელი და მომსახურება';\n // $site_ka->shop_description_ka = 'საცოცი პროდუკტები წარმოებული ჩვენი კომპანიის მიერ';\n // $site_ka->shop_short_description_ka = 'საცოცი პროდუკტები წარმოებული ჩვენი კომპანიის მიერ';\n // $site_ka->other_activity_description_ka = 'სხვა აკტიობები';\n // $site_ka->mount_description_ka = 'ალპინისტური მარშრუტები საქართველოში(კავკასიონის ქედი)';\n // $site_ka->outdoor_description_ka = 'ცოცვა ბუნებრივ კლდეზე';\n // $site_ka->event_description_ka = 'ცოცვა ბუნებრივ კლდეზე';\n // $site_ka->tech_tips_description_ka = 'ცოცვის ტექნიკური რჩევები';\n // $site_ka->news_description_ka = 'ცოცვის სიახლეები საქართველოშე';\n // $site_ka->index_gallery_description_ka = 'გალერეა';\n // $site_ka->indoor_description_ka = 'საცოცი დარბაზები';\n // $site_ka->ice_description_ka = 'ყინულზე ცოცვა';\n // $site_ka->topo_description_ka = 'საქართველოს საცოცი მარშრუტები რუკაზე';\n // $site_ka->what_we_do_description_ka = 'საქართველოს საცოცი სეკტორების და ალპინისტური მარშრუტების აღწერა';\n // $site_ka->products_description_ka = 'Climbing.ge-ს პროდუქცია';\n // $site_ka->services_description_ka = 'Climbing.ge-ს მომსახურება';\n // // $site_ka->save();\n\n\n // $site_ru = new Locale_site();\n // $site_ru->id = 3;\n\n // $site_ru->locale = 'ru';\n\n // $site_ru->guid_title_ru = 'Скалолазание в Грузии';\n // $site_ru->guid_description_ru = 'Сервис Climbing.ge – это информационный сайт цель которого детальное описание альпинистких и скалолазных маршрутов в Грузии, и эту информацию сделать более доступной как для населения Грузии так и для спортсменов приезжающих из других стран.\n // Наша команда постоянно работает над обновлением информации и добавляет детальное описание во все скалолазные регионы и альпинсткие маршруты. Старается описать всё как можно подробнее.\n // В Грузии спортивное лазание и скалолазание в настоящее время не развито на должном уровне и недостаточно развито по регионам. Мы постоянно стараемся найти и создать для вас интересные маршруты для лазания и разрабатываем новые регионы, стараемся обнаружить новые, пригодные для лазания, скалы и в этом месте создать как можно больше маршрутов для скалолазания.\n // К сожалению, пока что, это всё происходит на наши личные средства и поэтому процесс разработки новых трасс и регионов продвигается в медленном темпе .Мы готовы к партнёрству и сотрудничеству для развития данного вида спорта. Мы будем рады помощи любого типа, будь то финансовая, техническая помощь или если вы поделитесь с нами вашим опытом.\n // Также на нашем сайте вы можете найти описание альпинистких маршрутов. Большая часть Грузии покрыта горами .Здесь есть красивейшие и технически сложные вершины , такие как: Ушба, Шхара, Казбег, Чаухский массив и многое другое. На склонах этих гор множество маршрутов. К сожалению эти маршруты не описаны. Мы старались собрать и описать пройденные нами или другими альпинистами маршруты. Если у вас есть информация и описание какого-либо маршрута, вы можете прислать эту информацию нам. Нам поможет эта информация в работе.\n // Если вам понадобится дополнительная информация или вам необходимо взять гида для любого региона Грузии, напишите нам ,внизу дана форма и мы ответим вам очень быстро,\n // CLIMBING.GE- желает вам хороших восхождений и тренировок.';\n // $site_ru->guid_short_description_ru = 'Скалолазание и альпинизм в Грузии';\n // $site_ru->films_title_ru = 'Фильмы о скалолазании';\n // $site_ru->films_description_ru = 'Фильмы о скалолазании';\n // $site_ru->films_short_description_ru = 'Фильмы о скалолазании';\n // $site_ru->forum_title_ru = 'Форум скалолазание Грузии';\n // $site_ru->forum_description_ru = 'Форум скалолазание Грузии';\n // $site_ru->forum_short_description_ru = 'Форум скалолазание Грузии';\n // $site_ru->shop_title_ru = 'Товары и услуги Climbing.ge';\n // $site_ru->shop_description_ru = 'Climbing.ge продукты';\n // $site_ru->shop_short_description_ru = 'Climbing.ge продукты';\n // $site_ru->other_activity_description_ru = 'Другая деятельность для активного отдыха в Грузии';\n // $site_ru->mount_description_ru = 'Альпинизм в Грузии';\n // $site_ru->outdoor_description_ru = 'Скалолазание на открытом воздухе в Грузии';\n // $site_ru->event_description_ru = 'Скалолазание на открытом воздухе в Грузии';\n // $site_ru->tech_tips_description_ru = 'Советы по альпинизму';\n // $site_ru->news_description_ru = 'Новости скалолазания в Грузинского ';\n // $site_ru->index_gallery_description_ru = 'Галерея';\n // $site_ru->indoor_description_ru = 'Скалолазные залы в грузии';\n // $site_ru->ice_description_ru = 'Ледолазание в Грузии';\n // $site_ru->topo_description_ru = 'Восхождение на вершину';\n // $site_ru->what_we_do_description_ru = 'Описание скалолазания и альпинизма в Грузии';\n // $site_ru->products_description_ru = 'Продукция Climbing.ge';\n // $site_ru->services_description_ru = 'Услуги Climbing.ge';\n // $site_ru->save();\n\n\n\n DB::table('locale_sites')->insert([\n [\n 'id' => 1,\n\n 'locale' => 'us',\n \n 'guid_title' => 'Rock climbing In Georgia',\n 'guid_description' => 'Rock climbing in Georgia is a developing sport, but the country has a great prospect in rock climbing and in mountaineering. We constantly collect information about promising rocks, we am happy to accept your messages about new and unknown places. \n There are many ready-made regions for all kinds of climbing. Also there are many places to implement and establish new climbing routes and regions, so it is very attractive for those who are searching for new unique places and opportunities.\n If you need any additional information feel free to contact us. We will provide you with all essential details, suggest a concrete way how to get to the site of climbing or offer his services for equipment and take you to the rock climbing areas.\n Alse if you need a climbing guide you can contact us. We can accompany you to any mountaineering and rock climbing regions throughout Georgia. Tour prices depend on the complexity of the route and the size of the group. Write to us for more details. Celk here for write message.\n We are constantly updating information about all regions so that you get full information. \n Information partners. climbingingeorgia.wordpress.com\n See information about climbing areas in neighboring countries.\n Climbing in Armenia - uptherock.com\n Climbing in Turkey - climbing-europe.com/RockClimbingTurkey',\n 'guid_short_description' => 'Rock climbing and mountaineering in Georgia',\n 'films_title' => 'Rock climbing films',\n 'films_description' => 'Climbing movies',\n 'films_short_description' => 'Climbing movies',\n 'forum_title' => 'Georgian Climbing forum',\n 'forum_description' => 'Georgian climbing forum',\n 'forum_short_description' => 'Georgian climbing forum',\n 'shop_title' => 'Climbing.ge products and services',\n 'shop_description' => 'Climbing.ge products',\n 'shop_short_description' => 'Climbing.ge products',\n 'other_activity_description' => 'Other activity for active rest in Georgia',\n 'mount_description' => 'Mountaineering in Georgia',\n 'outdoor_description' => 'Outdoor rock climbing area in Georgia',\n 'event_description' => 'event_description',\n 'tech_tips_description' => 'Climbing tech tips',\n 'news_description' => 'Georgian climbing news',\n 'index_gallery_description' => 'Gallery',\n 'indoor_description' => 'Indoor climbing gyms in Georgia',\n 'ice_description' => 'Ice climbing in Georgia',\n 'topo_description' => 'Climbing topo',\n 'what_we_do_description' => 'Georgia rock climbing and mountaineering description',\n 'products_description' => 'Climbing.ge products',\n 'services_description' => 'Climbing.ge services',\n ],\n [\n 'id' => 2,\n\n 'locale' => 'ka',\n \n 'guid_title_ka' => 'მეკლდეურობა საქართველოში',\n 'guid_description_ka' => 'სერვისი climbing.ge, არის საინფორმაციო საიტი, რომელიც მიზნად ისახავს საქართველოს საცოცი და ალპინისტური მარშრუტების დეტალურ აღწერას და ამ იმფორმაციის მეტად პოპულარიზაციას, რათა ეს იმფორმაცია იყოს მეტად ხელმისაწვდომი, როგორც საქართველოს მოსახლეობისთვის, ასევე სხვა ქვეყნიდან ჩამოსული სპორცმენებისთვის. ჩვენი გუნდი მუდმივად მუსაობს ოიმისთვის, რომ იმფორმაცია ხშირად განახლდეს, დაემატოს მეტი სიახლე და ყველა საცოცი რეგიონი თუ ალპინისტური მარშრუტი იყოს რაც შეიძლება დეტალურად აღწერილი.,\n საქართველოში მეკლდეურობა და სპორტული ცოცვა ჯერჯერობით არ არის განვითარებული სათანადო დონეზე, მაგრამ ჩვენ მუდამ ვცდილობთ ვიპოვოთ და შევქმნათ თქვენთვის საინტერესო საცოცი რეგიონები. აღმოვაჩინოთ ახალი, საცოცად გამოსადეგი კლდეები და ამ ადგილებში რაც შეიძლება მეტი საცოცი მარშრუტი გავაკეთოთ . სამწუხაროდ ჯერჯერობით ყვეკაფერი ეს ჩვენი პირადი ხარჯებით ხორციელდება, ამიტომაც ეს ყველაფერი საკმაოდ ნელი ტემპებით მიმდინარეობს. ჩვენ მუდმივად მზად ვართ პარტნიორობისთის, რათა სპორტის ეს სახეობა უფრო მეტად განვითარდეს. ჩვენ მოხარულები ვიქნებით ყველა ტიპის დახმარებისთვის, იქნება ეს ფინანსური, ტექნიკური თუ გამოცდილების გაზიარება.\n ასევე ჩვენს საიტზე თქვენ შეგიძლიათ იხილოთ ალპინისტური მარშრუტების არწერაც. საქართველოს უდიდესი ნაწილი მტებითაა დაფარული. აქ არის ბევრი ულამაზესი და ტექნიკურად რთული მწვერვალი. როგორიცაა: უშბა, ტეთნულდი, შხარა, მყინვარი, ჭაუხის მასივი და ბევრი სხვა. ამ მთებზე არის ბევრი მარშრუტი . სამწუხაროდ ეს მარშრუტები არ არის აღწერილი. ჩვენ ვცდილობთ შევაგროვოთ და ავღწეროთ ჩვენი თუ სხვის მიერ გავლილი მარშრუტები. თუ თქვენ გაქვთ იმფორმაცია და რომელიმე მარშრუტის აღწერა, თქვენ შეგიძლიათ გამოგვიგზავნოთ ის. ეს ჩვენ ძალიან დაგვეხმარება.\n თუ თქვენ დაგწირდათ დამატებითი იმფორმაცია ან თქვენ გინდათ გიდის აყვანა საქართველოს ნებისმიერ რეგიონში, მოგვწერეთ ქვემოთ მოყვანილი ფორმის მეშვეობით. ჩვენ მალე გიპასუხებთ\n Climbing.ge - ის გუნდი ყველას კარ ცოცვას და ვარჯიშს გისურვებთ.',\n \n 'guid_short_description_ka' => 'საქართველოს საცოცი სეკტორების და ალპინისტური მარშრუტების აღწერა',\n 'films_title_ka' => 'ცოცვის ფილმები',\n 'films_description_ka' => 'ცოცვის ფილმები',\n 'films_short_description_ka' => 'ცოცვის ფილმები',\n 'forum_title_ka' => 'ქართული ცოცვის ფორუმი',\n 'forum_description_ka' => 'ქართული ცოცვის ფორუმი',\n 'forum_short_description_ka' => 'ქართული ცოცვის ფორუმი',\n 'shop_title_ka' => 'Climbing.ge-ს საქონელი და მომსახურება',\n 'shop_description_ka' => 'საცოცი პროდუკტები წარმოებული ჩვენი კომპანიის მიერ',\n 'shop_short_description_ka' => 'საცოცი პროდუკტები წარმოებული ჩვენი კომპანიის მიერ',\n 'other_activity_description_ka' => 'სხვა აკტიობები',\n 'mount_description_ka' => 'ალპინისტური მარშრუტები საქართველოში(კავკასიონის ქედი)',\n 'outdoor_description_ka' => 'ცოცვა ბუნებრივ კლდეზე',\n 'event_description_ka' => 'ცოცვა ბუნებრივ კლდეზე',\n 'tech_tips_description_ka' => 'ცოცვის ტექნიკური რჩევები',\n 'news_description_ka' => 'ცოცვის სიახლეები საქართველოშე',\n 'index_gallery_description_ka' => 'გალერეა',\n 'indoor_description_ka' => 'საცოცი დარბაზები',\n 'ice_description_ka' => 'ყინულზე ცოცვა',\n 'topo_description_ka' => 'საქართველოს საცოცი მარშრუტები რუკაზე',\n 'what_we_do_description_ka' => 'საქართველოს საცოცი სეკტორების და ალპინისტური მარშრუტების აღწერა',\n 'products_description_ka' => 'Climbing.ge-ს პროდუქცია',\n 'services_description_ka' => 'Climbing.ge-ს მომსახურება',\n ],\n [\n 'id' => 3,\n\n 'locale' => 'ru',\n \n 'guid_title_ru' => 'Скалолазание в Грузии',\n 'guid_description_ru' => 'Сервис Climbing.ge – это информационный сайт цель которого детальное описание альпинистких и скалолазных маршрутов в Грузии, и эту информацию сделать более доступной как для населения Грузии так и для спортсменов приезжающих из других стран,\n Наша команда постоянно работает над обновлением информации и добавляет детальное описание во все скалолазные регионы и альпинсткие маршруты. Старается описать всё как можно подробнее.\n В Грузии спортивное лазание и скалолазание в настоящее время не развито на должном уровне и недостаточно развито по регионам. Мы постоянно стараемся найти и создать для вас интересные маршруты для лазания и разрабатываем новые регионы, стараемся обнаружить новые, пригодные для лазания, скалы и в этом месте создать как можно больше маршрутов для скалолазания.\n К сожалению, пока что, это всё происходит на наши личные средства и поэтому процесс разработки новых трасс и регионов продвигается в медленном темпе .Мы готовы к партнёрству и сотрудничеству для развития данного вида спорта. Мы будем рады помощи любого типа, будь то финансовая, техническая помощь или если вы поделитесь с нами вашим опытом.\n Также на нашем сайте вы можете найти описание альпинистких маршрутов. Большая часть Грузии покрыта горами .Здесь есть красивейшие и технически сложные вершины , такие как: Ушба, Шхара, Казбег, Чаухский массив и многое другое. На склонах этих гор множество маршрутов. К сожалению эти маршруты не описаны. Мы старались собрать и описать пройденные нами или другими альпинистами маршруты. Если у вас есть информация и описание какого-либо маршрута, вы можете прислать эту информацию нам. Нам поможет эта информация в работе.\n Если вам понадобится дополнительная информация или вам необходимо взять гида для любого региона Грузии, напишите нам ,внизу дана форма и мы ответим вам очень быстро,\n CLIMBING.GE- желает вам хороших восхождений и тренировок.',\n 'guid_short_description_ru' => 'Скалолазание и альпинизм в Грузии',\n 'films_title_ru' => 'Фильмы о скалолазании',\n 'films_description_ru' => 'Фильмы о скалолазании',\n 'films_short_description_ru' => 'Фильмы о скалолазании',\n 'forum_title_ru' => 'Форум скалолазание Грузии',\n 'forum_description_ru' => 'Форум скалолазание Грузии',\n 'forum_short_description_ru' => 'Форум скалолазание Грузии',\n 'shop_title_ru' => 'Товары и услуги Climbing.ge',\n 'shop_description_ru' => 'Climbing.ge продукты',\n 'shop_short_description_ru' => 'Climbing.ge продукты',\n 'other_activity_description_ru' => 'Другая деятельность для активного отдыха в Грузии',\n 'mount_description_ru' => 'Альпинизм в Грузии',\n 'outdoor_description_ru' => 'Скалолазание на открытом воздухе в Грузии',\n 'event_description_ru' => 'Скалолазание на открытом воздухе в Грузии',\n 'tech_tips_description_ru' => 'Советы по альпинизму',\n 'news_description_ru' => 'Новости скалолазания в Грузинского ',\n 'index_gallery_description_ru' => 'Галерея',\n 'indoor_description_ru' => 'Скалолазные залы в грузии',\n 'ice_description_ru' => 'Ледолазание в Грузии',\n 'topo_description_ru' => 'Восхождение на вершину',\n 'what_we_do_description_ru' => 'Описание скалолазания и альпинизма в Грузии',\n 'products_description_ru' => 'Продукция Climbing.ge',\n 'services_description_ru' => 'Услуги Climbing.ge',\n ],\n ]);\n\n }",
"private function warmUp()\r\n\t{\r\n\t\t$this->loadPage( 1 );\r\n }",
"public function testLoadLandingPage()\n {\n $this->visit('/')\n ->see('<div class=\"title\">Risk and Control</div>');\n }",
"private function readCurrentSite() {\n\t\t\tif ( isset($_GET['s']) ) {\n\t\t\t\t$this->site = mysql_real_escape_string($_GET['s']);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->site = 'start';\n\t\t\t}\n\n\t\t\t// get current page and extend content template if it's set\n\t\t\tif ( isset($_GET['p']) ) {\n\t\t\t\t$this->page = '_'.mysql_real_escape_string($_GET['p']);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$this->page = '';\n\t\t\t}\n\t\t\t\n\t\t\t$this->contentTemplate = new Template();\n\t\t\t$this->contentTemplate->readTpl($this->site.$this->page);\n\t\t\t$this->registerTemplate = new Template();\n\t\t\t$this->registerTemplate->readTpl('register');\n\t\t\t$this->registerTemplate->tplReplace('site', $this->site);\n\n\t\t\t// handle register popup\n\t\t\tinclude('register.inc.php');\n\t\t}",
"private function site_status_check() {\n\t\t$this->level = 4;\n\t\tEE::log( 'Checking and verifying site-up status. This may take some time.' );\n\t\t$httpcode = '000';\n\t\t$ch = curl_init( $this->site_name );\n\t\tcurl_setopt( $ch, CURLOPT_HEADER, true );\n\t\tcurl_setopt( $ch, CURLOPT_NOBODY, true );\n\t\tcurl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );\n\t\tcurl_setopt( $ch, CURLOPT_TIMEOUT, 10 );\n\n\t\t$i = 0;\n\t\ttry {\n\t\t\twhile ( 200 !== $httpcode && 302 !== $httpcode ) {\n\t\t\t\tcurl_exec( $ch );\n\t\t\t\t$httpcode = curl_getinfo( $ch, CURLINFO_HTTP_CODE );\n\t\t\t\techo '.';\n\t\t\t\tsleep( 2 );\n\t\t\t\tif ( $i ++ > 60 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( 200 !== $httpcode && 302 !== $httpcode ) {\n\t\t\t\tthrow new Exception( 'Problem connecting to site!' );\n\t\t\t}\n\t\t}\n\t\tcatch ( Exception $e ) {\n\t\t\t$this->catch_clean( $e );\n\t\t}\n\n\t}",
"function main_section() {\n\t\t\t\t// GNDN\n\t\t}",
"function devindavid_site_info() {\n\t\tdo_action( 'devindavid_site_info' );\n\t}",
"public function index()\n\t{\n\t\tif ( $this->auth->check() )\n\t\t{\t\t\n\t\t\t// MUESTRA LA PAGINA\n\t\t\t$this->show_page();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tredirect ( $this->_base_url );\n\t\t}\n\t}",
"function wpclients_func2() {\r\n global $current_user;\r\n\r\n $client_hub = get_user_meta( $current_user->ID, 'wpc_cl_hubpage_id', true );\r\n\r\n if( 0 < $client_hub ) {\r\n echo \"You will be redirected to the page in a few seconds, if it doesn't redirect , please click <a href='\" . wpc_client_get_slug( 'hub_page_id' ) . \"'>here</a>\";\r\n echo \"<script type='text/javascript'>document.location='\" . wpc_client_get_slug( 'hub_page_id' ) . \"';</script>\";\r\n }\r\n }",
"function index()\n {\n $mainColor = $this->db->get_where('frontpages',['title'=>'main_color'])->row()->description;\n $hoverColor = $this->db->get_where('frontpages',['title'=>'hover_color'])->row()->description;\n $exists = file_exists('assets/siteColor.txt'); \n write_file('assets/siteColor.txt', $mainColor.'|'.$hoverColor); \n \n $data['running_year'] = $this->running_year;\n \t$this->load_page('content', 'Home Page', $data);\n \n }",
"public static function reloadDataSite(): bool\n {\n }",
"function install_site() {\n \n}",
"public function index() {\n\n $CI =& get_instance();\n \n // We load the BlueOnyx helper library first of all, as we heavily depend on it:\n $this->load->helper('blueonyx');\n init_libraries();\n\n // Need to load 'BxPage' for page rendering:\n $this->load->library('BxPage');\n\n // Get $CI->BX_SESSION['sessionId'] and $CI->BX_SESSION['loginName'] from Cookie (if they are set):\n $CI->BX_SESSION['sessionId'] = $CI->input->cookie('sessionId');\n $CI->BX_SESSION['loginName'] = $CI->input->cookie('loginName');\n\n // Line up the ducks for CCE-Connection:\n include_once('ServerScriptHelper.php');\n $CI->serverScriptHelper = new ServerScriptHelper($CI->BX_SESSION['sessionId'], $CI->BX_SESSION['loginName']);\n $CI->cceClient = $CI->serverScriptHelper->getCceClient();\n $user = $CI->BX_SESSION['loginUser'];\n $i18n = new I18n(\"base-vsite\", $CI->BX_SESSION['loginUser']['localePreference']);\n $system = $CI->getSystem();\n\n // Initialize Capabilities so that we can poll the access rights as well:\n $Capabilities = new Capabilities($CI->cceClient, $CI->BX_SESSION['loginName'], $CI->BX_SESSION['sessionId']);\n\n // Required array setup:\n $errors = array();\n $extra_headers = array();\n\n // -- Actual page logic start:\n\n // Not 'manageSite'? Bye, bye!\n if (!$Capabilities->getAllowed('manageSite')) {\n // Nice people say goodbye, or CCEd waits forever:\n $CI->cceClient->bye();\n $CI->serverScriptHelper->destructor();\n Log403Error(\"/gui/Forbidden403\");\n }\n else {\n\n // Start with an empty siteList:\n $siteList = array();\n\n $exact = array();\n if (!$Capabilities->getAllowed('systemAdministrator')) {\n // If the user is not 'admin', then we only show Vsites that this user owns:\n $exact = array_merge($exact, array('createdUser' => $CI->BX_SESSION['loginName'])); \n }\n\n // Get a list of Vsite OID's:\n $vsites = $CI->cceClient->findx('Vsite', $exact, array(), \"\", \"\");\n\n // Auto-detect available features:\n $autoFeatures = new AutoFeatures($CI->cceClient);\n $AutoFeaturesList = $autoFeatures->ListFeatures('modifyWeb.Vsite');\n\n $numsite = \"0\";\n foreach ($vsites as $site) {\n // Get Vsite settings:\n $vsiteSettings = $CI->cceClient->get($site);\n $vsiteSettings['FEATURE'] = array();\n foreach ($AutoFeaturesList as $key => $value) {\n $featureOID = $CI->cceClient->get($site, $value);\n if ($value == \"PHP\") {\n if ($featureOID['suPHP_enabled'] == \"1\") {\n $vsiteSettings['FEATURE']['suPHP'] = $featureOID['suPHP_enabled'];\n }\n else {\n $vsiteSettings['FEATURE']['PHP'] = $featureOID['enabled'];\n }\n }\n else {\n $vsiteSettings['FEATURE'][$value] = $featureOID['enabled'];\n }\n }\n\n // Manually add the following features as well, although they are not auto-features:\n if ($vsiteSettings['emailDisabled'] == \"1\") {\n $vsiteSettings['FEATURE']['Email'] = '0';\n }\n else {\n $vsiteSettings['FEATURE']['Email'] = '1';\n }\n\n // DNS:\n $vsiteSettings['FEATURE']['DNS'] = $vsiteSettings['dns_auto'];\n\n // SSL:\n $vsiteSSLSettings = $CI->cceClient->get($site, 'SSL');\n if ($vsiteSSLSettings['enabled'] == '1') {\n $vsiteSettings['FEATURE']['SSL'] = $vsiteSSLSettings['enabled'];\n }\n\n $siteList[0][$numsite] = $vsiteSettings['fqdn'];\n $siteList[1][$numsite] = $vsiteSettings['ipaddr'];\n\n // Display the Owner of the Vsite:\n if ($vsiteSettings['createdUser'] == \"\") {\n $createdUser = \"admin\";\n }\n else {\n $createdUser = $vsiteSettings['createdUser'];\n } \n $siteList[2][$numsite] = $createdUser;\n\n // Suspend icon:\n if ($vsiteSettings['suspend']) {\n $suspended = ' <button class=\"red tiny text_only has_text tooltip hover\" title=\"' . $i18n->getHtml(\"[[palette.Yes]]\") . '\" disabled><span>' . $i18n->getHtml(\"[[palette.Yes]]\") . '</span></button>';\n }\n else {\n $suspended = ' <button class=\"light tiny text_only has_text tooltip hover\" title=\"' . $i18n->getHtml(\"[[palette.No]]\") . '\" disabled><span>' . $i18n->getHtml(\"[[palette.No]]\") . '</span></button>';\n }\n $siteList[3][$numsite] = $suspended;\n\n // Feature-List Icons:\n $iconlist = array();\n foreach ($vsiteSettings['FEATURE'] as $key => $value) {\n if ($key == \"SSL\") { $F_text = \"SSL\"; $F_tooltip = \"SSL\"; }\n elseif ($key == \"MYSQL_Vsite\") { $F_text = \"SQL\"; $F_tooltip = \"MySQL\"; }\n elseif ($key == \"Java\") { $F_text = \"JSP\"; $F_tooltip = \"JSP\"; }\n elseif ($key == \"USERWEBS\") { $F_text = \"~\"; $F_tooltip = \"User owned webs\"; }\n elseif ($key == \"CGI\") { $F_text = \"CGI\"; $F_tooltip = \"CGI\"; }\n elseif ($key == \"SSI\") { $F_text = \"SSI\"; $F_tooltip = \"SSI\"; }\n elseif ($key == \"ApacheBandwidth\") { $F_text = \"Limit\"; $F_tooltip = \"Bandwidth Limits\"; }\n elseif ($key == \"PHP\") { $F_text = \"PHP\"; $F_tooltip = \"PHP\"; }\n elseif ($key == \"suPHP\") { $F_text = \"suPHP\"; $F_tooltip = \"suPHP\"; }\n elseif ($key == \"FTPNONADMIN\") { $F_text = \"FTP\"; $F_tooltip = \"FTP\"; }\n elseif ($key == \"AnonFtp\") { $F_text = \"anonFTP\"; $F_tooltip = \"Anonymous FTP\"; }\n else { $F_text = $key; $F_tooltip = $key; }\n if ($value == \"1\") {\n $iconlist[] = '<button class=\"tiny text_only has_text tooltip hover\" title=\"' . $i18n->getHtml($F_tooltip) . '\" disabled>'. $F_text . '</button>';\n }\n else {\n // Hide inactive icons for now. That way we can use the search form to find sites with certain active features:\n //$iconlist[] = '<button class=\"light tiny text_only has_text tooltip hover\" title=\"' . $i18n->getHtml($F_tooltip) . ' disabled\">'. $F_text . '</button>';\n }\n }\n $totalicons = count($iconlist);\n $numicons = '0';\n $wrapped_iconlist = '';\n foreach ($iconlist as $key => $value) {\n $wrapped_iconlist .= $value;\n $numicons++;\n if ($numicons == '4') {\n $wrapped_iconlist .= \"<br>\";\n $numicons = '0';\n }\n }\n $siteList[4][$numsite] = $wrapped_iconlist;\n\n // Add Buttons for Edit, View and Delete:\n //$buttons = '<a href=\"/user/userList?group=' . $vsiteSettings['name'] . '\"><button class=\"tiny icon_only div_icon tooltip hover\" title=\"' . $i18n->getHtml(\"generalSettings_help\") . '\"><div class=\"ui-icon ui-icon-pencil\"></div></button></a><br>';\n $buttons = '<button title=\"' . $i18n->getHtml(\"generalSettings_help\") . '\" class=\"tiny icon_only div_icon tooltip hover right link_button\" data-link=\"/user/userList?group=' . $vsiteSettings['name'] . '\" target=\"_self\" formtarget=\"_self\"><div class=\"ui-icon ui-icon-pencil\"></div></button>';\n\n $buttons .= '<a class=\"various\" target=\"_blank\" href=\"' . \"http://\" . $vsiteSettings['fqdn'] . '\" data-fancybox-type=\"iframe\">' . '<button class=\"fancybox tiny icon_only div_icon tooltip hover\" title=\"' . $i18n->getHtml(\"sitePreview\") .'\"><div class=\"ui-icon ui-icon-newwin\"></button>' . '</a><br>';\n $buttons .= '<a class=\"lb\" href=\"/vsite/vsiteDel?group=' . $vsiteSettings['name'] . '\"><button class=\"tiny icon_only div_icon tooltip hover dialog_button\" title=\"' . $i18n->getHtml(\"siteRemove\") . '\"><div class=\"ui-icon ui-icon-trash\"></div></button></a><br>';\n $siteList[5][$numsite] = $buttons;\n $numsite++;\n }\n }\n\n //-- Generate page:\n\n // Prepare Page:\n $factory = $CI->serverScriptHelper->getHtmlComponentFactory(\"base-vsite\", \"/vsite/vsiteList\");\n $BxPage = $factory->getPage();\n $i18n = $factory->getI18n();\n\n $BxPage->setExtraHeaders('\n <script>\n $(document).ready(function() {\n $(\".various\").fancybox({\n overlayColor: \"#000\",\n fitToView : false,\n width : \"80%\",\n height : \"80%\",\n autoSize : false,\n closeClick : false,\n openEffect : \"none\",\n closeEffect : \"none\"\n });\n });\n </script>');\n\n // Extra header for the \"do you really want to delete\" dialog:\n $BxPage->setExtraHeaders('\n <script type=\"text/javascript\">\n $(document).ready(function () {\n\n $(\"#dialog\").dialog({\n modal: true,\n bgiframe: true,\n width: 500,\n height: 280,\n autoOpen: false\n });\n\n $(\".lb\").click(function (e) {\n e.preventDefault();\n var hrefAttribute = $(this).attr(\"href\");\n\n $(\"#dialog\").dialog(\\'option\\', \\'buttons\\', {\n \"' . $i18n->getHtml(\"[[palette.remove]]\") . '\": function () {\n window.location.href = hrefAttribute;\n },\n \"' . $i18n->getHtml(\"[[palette.cancel]]\") . '\": function () {\n $(this).dialog(\"close\");\n }\n });\n\n $(\"#dialog\").dialog(\"open\");\n\n });\n });\n </script>');\n\n // Set Menu items:\n $BxPage->setVerticalMenu('base_siteList1');\n $page_module = 'base_sitemanageVSL';\n $defaultPage = 'pageID';\n\n $block =& $factory->getPagedBlock(\"virtualSiteList\", array($defaultPage));\n\n $scrollList = $factory->getScrollList(\"virtualSiteList\", array(\"fqdn\", \"ipAddr\", \"createdUser\", \"listSuspended\", \"Features\", \" \"), $siteList); \n $scrollList->setAlignments(array(\"left\", \"right\", \"center\", \"center\", \"center\", \"right\"));\n $scrollList->setDefaultSortedIndex('0');\n $scrollList->setSortOrder('ascending');\n $scrollList->setSortDisabled(array('5'));\n $scrollList->setPaginateDisabled(FALSE);\n $scrollList->setSearchDisabled(FALSE);\n $scrollList->setSelectorDisabled(FALSE);\n $scrollList->enableAutoWidth(FALSE);\n $scrollList->setInfoDisabled(FALSE);\n $scrollList->setColumnWidths(array(\"200\", \"120\", \"80\", \"80\", \"223\", \"35\")); // Max: 739px\n\n // Print administrative information for resellers:\n if (!$Capabilities->getAllowed('systemAdministrator')) {\n $vsite_disk = 0; \n $vsite_user = 0;\n $num_vsites = 0; \n foreach($vsites as $vsites_oid) { \n $vsite = $CI->cceClient->get($vsites_oid); \n $vsite2 = $CI->cceClient->get($vsites_oid, \"Disk\");\n $vsite_user += $vsite['maxusers']; \n $vsite_disk += $vsite2['quota'];\n $num_vsites++;\n } \n list($user_oid) = $CI->cceClient->find('User', array('name' => $CI->BX_SESSION['loginName'])); \n $sites = $CI->cceClient->get($user_oid, 'Sites'); \n $sites['quota'] = simplify_number($sites['quota']*1000, \"K\", \"1\") . \"B\";\n $ResellerStats = ' <div class=\"columns\">\n <div class=\"col_33 no_border_top no_border_right\">\n <div class=\"info_box\">\n <label title=\"'. $i18n->getWrapped(\"userSitesMax_help\") . '\" class=\"tooltip right\">'. $i18n->getClean(\"userSitesMax\") . '</label>\n <div class=\"split three\"><small><b>' . $sites['max'] . '</b></small></div>\n <div class=\"split three\"><small>' . $num_vsites . '</small></div>\n </div>\n </div>\n <div class=\"col_33 no_border_top no_border_right\">\n <div class=\"info_box\">\n <label title=\"'. $i18n->getWrapped(\"userSitesUser_help\") . '\" class=\"tooltip right\">'. $i18n->getClean(\"userSitesUser\") . '</label>\n <div class=\"split three\"><small><b>'. $sites['user'] . '</b></small></div>\n <div class=\"split three\"><small>' . $vsite_user . '</small></div>\n </div>\n </div>\n <div class=\"col_33 no_border_top no_border_right\">\n <div class=\"info_box\">\n <label title=\"'. $i18n->getWrapped(\"userSitesQuota_help\") . '\" class=\"tooltip right\">'. $i18n->getClean(\"userSitesQuota\") . '</label>\n <div class=\"split three\"><small><b>' . $sites['quota'] . '</b></small></div>\n <div class=\"split three\"><small>' . simplify_number($vsite_disk*1000, \"K\", \"1\") . \"B\" . '</small></div>\n </div>\n </div>\n </div>' . \"\\n\";\n\n // Push out the ResellerStats in our improvised Columns:\n $block->addFormField(\n $factory->getRawHTML(\"ResellerStats\", $ResellerStats),\n $factory->getLabel(\"ResellerStats\"),\n $defaultPage\n );\n } \n\n // Check vsite max for administrator \n list($user_oid) = $CI->cceClient->find('User', array('name' => $CI->BX_SESSION['loginName'])); \n $sites = $CI->cceClient->get($user_oid, 'Sites'); \n\n $user_sites = $CI->cceClient->find('Vsite', array('createdUser' => $CI->BX_SESSION['loginName']));\n // Show \"Add\"-button if this Vsite hasn't yet reached max number of accounts:\n if ((($sites['max'] > 0) && (count($user_sites) < $sites['max'])) || ($Capabilities->getAllowed('systemAdministrator'))) {\n // Generate +Add button:\n $addAdminUser = \"/vsite/vsiteAdd\";\n $addbutton = $factory->getAddButton($addAdminUser, '[[base-vsite.siteaddbut_help]]', \"DEMO-OVERRIDE\");\n $buttonContainer = $factory->getButtonContainer(\"virtualSiteList\", $addbutton);\n $block->addFormField(\n $buttonContainer,\n $factory->getLabel(\"virtualSiteList\"),\n $defaultPage\n );\n }\n\n // Push out the Scrollist:\n $block->addFormField(\n $factory->getRawHTML(\"virtualSiteList\", $scrollList->toHtml()),\n $factory->getLabel(\"virtualSiteList\"),\n $defaultPage\n );\n\n $page_body[] = $block->toHtml();\n\n // Add hidden Modal for Delete-Confirmation:\n $page_body[] = '\n <div class=\"display_none\">\n <div id=\"dialog\" class=\"dialog_content narrow no_dialog_titlebar\" title=\"' . $i18n->getHtml(\"[[base-vsite.siteRemoveConfirmNeutral]]\") . '\">\n <div class=\"block\">\n <div class=\"section\">\n <h1>' . $i18n->getHtml(\"[[base-vsite.siteRemoveConfirmNeutral]]\") . '</h1>\n <div class=\"dashed_line\"></div>\n <p>' . $i18n->getHtml(\"[[base-vsite.removeConfirmInfo]]\") . '</p>\n </div>\n </div>\n </div>\n </div>';\n\n // Out with the page:\n $BxPage->render($page_module, $page_body);\n\n }",
"function init_page() {\n\n $this->is_logged_in = qa_get_logged_in_userid();\n $this->timer = microtime(true);\n $this->cache_file = $this->get_filename();\n\n if (CACHE_STATUS && $this->check_cache() && $this->do_caching()) {\n $this->get_cache();\n } else if (CACHE_STATUS && $this->do_caching()) {\n ob_start();\n } else {\n return;\n }\n }",
"public function testCreateSite()\n {\n }",
"public function onLoad() {\n \n }",
"function display_site_object()\n{\n\t$site_object = new wp_model;\n\t$site_title = $site_object->get_site_title();\n\t$main_nav = $site_object->get_main_nav();\n\t$category_nav = $site_object->get_category_nav();\n\t$archive_nav = $site_object->get_archive_nav();\n\t$bookmark_nav = $site_object->get_bookmarks();\n\t$post_count = $site_object->get_post_count();\n\t$user_logged_in = is_user_logged_in() ? 'true' : 'false';\n\t\n\t# $random = ((rand()%9)*(rand()%8)*(rand()%7));\n\t\n\tif ( !isset($_GET['_escaped_fragment_']) )\n\t{\n\t\techo '<script src=\"' . get_bloginfo('template_url') . '/assets/js/loadscripts.js\" type=\"text/javascript\"></script>';\n\t\techo '<script>';\n\t\techo 'var site = site || {';\n\t\techo 'base_url:\"' . get_bloginfo('url') . '\",';\n\t\techo 'logged_in:' . $user_logged_in . ',';\n\t\techo 'twtr_info: ' . get_user_twitter_info() . ',';\n\t\techo 'pages:' . json_encode($main_nav) . ',';\n\t\techo 'title:' . json_encode($site_title) . ',';\n\t\techo 'categories:' . json_encode($category_nav) . ',';\n\t\techo 'archives:' . json_encode($archive_nav) . ',';\n\t\techo 'bookmarks:' . json_encode($bookmark_nav) . ',';\n\t\techo 'post_count:' . $post_count . ',';\n\t\techo 'scripts:[';\n\t\techo '\"https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\",';\n\t\techo '\"http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js\",';\n\t\techo '\"http://ajax.cdnjs.com/ajax/libs/underscore.js/1.1.6/underscore-min.js\",';\n\t\techo '\"http://ajax.cdnjs.com/ajax/libs/backbone.js/0.3.3/backbone-min.js\",';\n\t\techo '\"' . get_bloginfo('template_url') . '/assets/js/wpApp.min.js\"';\n\t\techo '],';\n\t\techo 'js:{}';\n\t\techo '};';\n\t\techo '$script(site.scripts,function(){';\n\t\techo 'var appController=new site.js.wordpressController();});';\n\t\techo '</script>';\n\t}\n}",
"function startSafeScraping(){\n \n if($this->db_meta->fetchOne('select currentlybeingcrawled from crawllist where wid = '.$this->wid)){\n throw new AlreadyScrapingException();\n } \n \n return $this->startScraping(); \n }",
"function robots_access(){\r\n if(is_production() && get_option('blog_public') == '0') update_option('blog_public', '1');\r\n if(!is_production() && get_option('blog_public') == '1') update_option('blog_public', '0');\r\n}",
"function good_login()\n\t{\n\t\tif( $GLOBALS['appshore_data']['api']['nextop'] )\n\t\t\theader('Location: '.$GLOBALS['appshore']->session->baseurl.base64_decode($GLOBALS['appshore_data']['api']['nextop']));\n\t}",
"public function main() {\r\n // Access check!\r\n // The page will show only if there is a valid page and if this page may be viewed by the user\r\n $this->pageinfo = t3lib_BEfunc::readPageAccess($this->id, $this->perms_clause);\r\n $access = is_array($this->pageinfo) ? 1 : 0;\r\n\r\n if (($this->id && $access) || ($GLOBALS['BE_USER']->user['admin'] && !$this->id)) {\r\n\r\n // Draw the header.\r\n $this->doc = t3lib_div::makeInstance('bigDoc');\r\n $this->doc->getPageRenderer()->addCssFile(t3lib_extMgm::extRelPath('medbootstraptools').'res/css/bemodul.css'); \r\n $this->doc->getPageRenderer()->addCssFile(t3lib_extMgm::extRelPath('medbootstraptools').'res/bootstrap/css/bootstrap.min.css'); \r\n $this->doc->backPath = $GLOBALS['BACK_PATH'];\r\n $this->doc->form = '<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">';\r\n\r\n // JavaScript\r\n $this->doc->JScode = '\r\n <script src=\"../typo3conf/ext/medbootstraptools/res/js/jquery-1.8.3.min.js\"></script>\r\n <script src=\"../typo3conf/ext/medbootstraptools/res/js/functions.js\"></script>\r\n <script language=\"javascript\" type=\"text/javascript\">\r\n script_ended = 0;\r\n function jumpToUrl(URL) {\r\n document.location = URL;\r\n }\r\n </script>\r\n ';\r\n $this->doc->postCode = '\r\n <script language=\"javascript\" type=\"text/javascript\">\r\n script_ended = 1;\r\n if (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\r\n </script>\r\n ';\r\n\r\n $headerSection = $this->doc->getHeader('pages', $this->pageinfo, $this->pageinfo['_thePath']) . '<br />'\r\n . $GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.path') . ': ' . t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'], -50);\r\n\r\n $this->content .= $this->doc->startPage($GLOBALS['LANG']->getLL('title'));\r\n //$this->content .= $this->doc->header($GLOBALS['LANG']->getLL('title'));\r\n //$this->content .= $this->doc->spacer(5);\r\n //$this->content .= $this->doc->section('', $this->doc->funcMenu($headerSection, t3lib_BEfunc::getFuncMenu($this->id, 'SET[function]', $this->MOD_SETTINGS['function'], $this->MOD_MENU['function'])));\r\n //$this->content .= $this->doc->divider(5);\r\n // Render content:\r\n $this->moduleContent();\r\n\r\n // Shortcut\r\n if ($GLOBALS['BE_USER']->mayMakeShortcut()) {\r\n $this->content .= $this->doc->spacer(20) . $this->doc->section('', $this->doc->makeShortcutIcon('id', implode(',', array_keys($this->MOD_MENU)), $this->MCONF['name']));\r\n }\r\n\r\n $this->content .= $this->doc->spacer(10);\r\n } else {\r\n // If no access or if ID == zero\r\n\r\n $this->doc = t3lib_div::makeInstance('bigDoc');\r\n $this->doc->backPath = $GLOBALS['BACK_PATH'];\r\n\r\n $this->content .= $this->doc->startPage($GLOBALS['LANG']->getLL('title'));\r\n $this->content .= $this->doc->header($GLOBALS['LANG']->getLL('title'));\r\n $this->content .= $this->doc->spacer(5);\r\n $this->content .= $this->doc->spacer(10);\r\n }\r\n }",
"static function PageAutoload()\r\n\t{\r\n\t\t\r\n\t}",
"public function rocketBooster() {\n\t\techo \"systems are not ready yet\";\n\t}",
"public function main()\n {\n // check if user logged if not redirect to login page.\n if(Session::logged() == NULL){\n header(\"location: /\" . ROOT . 'login');\n }\n // if logged only administrator with role owner or manager have access to administration page.\n else if(Session::logged()['role'] == 'manager' || Session::logged()['role'] == 'owner'){\n // creating administration page.\n\n $data = NULL;\n $p = new Page(\"Administration Page\");\n $p->setComponent(\"htmlAdministrator.php\", $data);\n $p->addCss(\"administrator.css\");\n $p->addJs('administrator.js');\n $p->dumpView();\n }\n // not owner or manager trying access to administrator page, redirect to school page.\n else{\n header(\"location: /\" . ROOT . 'school');\n }\n }",
"function ozh_yourls_gsb_please_configure() {\n yourls_add_notice( 'Le greffon <strong>Google Safe Browsing</strong> manque de paramètres' );\n}",
"protected function runSite()\n {\n parent::runSite();\n \n \\Dsc\\System::instance()->getDispatcher()->addListener(\\Amrita\\Site\\Listeners\\Shop::instance());\n \\Dsc\\System::instance()->getDispatcher()->addListener(\\Amrita\\Site\\Listeners\\Users::instance());\n\n // add the css & js files to the minifier\n \\Minify\\Factory::registerPath( $this->dir . \"/\" );\n \n $files = array();\n $files[] = '../Amrita/Assets/js/jquery.serializejson.js';\n $files[] = '../Amrita/Assets/js/jquery.tabSlideOut.js';\n \n /* Moved to bottom of theme/index.php\n if ($sync_customer = \\Dsc\\System::instance()->get('session')->get('amrita.sync.customer')) \n {\n //$files[] = '../Amrita/Assets/js/sync_customer.js';\n }\n */\n \n foreach ( $files as $file )\n {\n \\Minify\\Factory::js( $file );\n } \n }",
"function getsite( )\n{\n\t\t\t\tif ( empty( $_SERVER['HTTP_HOST'] ) )\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$R8607b50296 = \"http://\".$_SERVER['HTTP_HOST'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$R8607b50296 = \"http://\".$_SERVER['SERVER_NAME'];\n\t\t\t\t}\n\t\t\t\tif ( !empty( $_SERVER['REQUEST_URI'] ) )\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$Rd4e4624cdb = $_SERVER['REQUEST_URI'];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t\t\t\t$Rd4e4624cdb = $_SERVER['PHP_SELF'];\n\t\t\t\t}\n\t\t\t\t$Rcc5c6e696c = explode( \"/\", $Rd4e4624cdb );\n\t\t\t\tarray_pop( $Rcc5c6e696c );\n\t\t\t\tarray_pop( $Rcc5c6e696c );\n\t\t\t\tarray_pop( $Rcc5c6e696c );\n\t\t\t\t$Rd4e4624cdb = implode( \"/\", $Rcc5c6e696c );\n\t\t\t\treturn $R8607b50296.$Rd4e4624cdb;\n}",
"function testWebpageExists() {\n\t\t$this->get('http://www.ug.it.usyd.edu.au/~dbro8182/lnm/');\n $this->assertTitle('Administration :: Local Network Monitor');\n\t\t$this->setField('username', 'admin');\n\t\t$this->setField('passwd', 'admin');\n\t\t$this->click('Submit');\n\t\t$this->click('Conflicts');\n\t\t$this->assertText('Below displays all conflicting devices that are connected to the network. Conflicting Devices share IP addresses.');\n }",
"function cera_grimlock_page() {\n\t\tdo_action( 'grimlock_page' );\n\t}",
"protected function _welcome(){\n\t}",
"function access() {\n\t\treturn true;\n\t}",
"public function EnregistrerSite()\n {\n \n }",
"function startupHandler($param)\n {\n if (true) {\n $app = $param['source']->getApplication();\n $app->removeStyle('common/static/common.css');\n $app->addStyle('/static/tuit.css');\n\n $session_id = $_COOKIE['sessionid'];\n \n $ch = curl_init();\n $server_host = $_SERVER['SERVER_ADDR'];\n $browser_host = $_SERVER['HTTP_HOST'];\n $request_uri = $_SERVER['REQUEST_URI'];\n $server_port = $_SERVER['SERVER_PORT'];\n //\tmessage($_SERVER);\n $port_part = ($server_port != 80)?\":$server_port\":\"\";\n $port_part=\"\";\n\t \n\t \n\t //echo \"http://\" .$server_host . $port_part.\"/tuit/account/session/\";\n\t \t \n curl_setopt($ch, CURLOPT_URL, \"http://\" .$server_host . $port_part.\"/tuit/account/session/\");\n curl_setopt($ch, CURLOPT_HEADER, 0);\n curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);\n curl_setopt($ch, CURLOPT_COOKIE, \"sessionid=$session_id\");\n $res = curl_exec($ch);\n $info = curl_getinfo($ch);\n curl_close($ch);\n //message($_SERVER);\n\t //print_r($info);\n\t \n if ($res !== false) {\n\t \n $msg = json_decode($res);\n //message($msg);\n \n if ($msg != null && strlen($msg->username)) {\n $vg = property::get('loginTuit.viewGroup');\n $eg = property::get('loginTuit.editGroup');\n $ag = property::get('loginTuit.adminGroup');\n $can_view=$can_edit=$can_admin=0;\n if ($vg == '' || in_array($vg, $msg->groups)) {\n $can_view = 1;\n }\n if ($eg == '' || in_array($eg, $msg->groups)) {\n $can_edit = 1;\n }\n if ($ag == '' || in_array($ag, $msg->groups)) {\n $can_admin = 1;\n }\n \n //message(\"view: $can_view, edit: $can_edit, admin: $can_admin\");\n \n ciUser::setUser($msg->username,$msg->first_name . \" \" . $msg->last_name, $msg->email, $can_view, $can_edit, $can_admin);\n $param['source']->addContent('main_menu_pre',sprintf(\"<ul class='user_info'><li class='username'><a href='/tuit/account/%s'>%s - %s</a></li>\\n<li class='logout_button'><a href='/tuit/account/logout'>\"._(\"Log out\").\"</a></li></ul>\\n\",\n ciUser::$_me->username,\n ciUser::$_me->username,\n ciUser::$_me->fullname));\n \n return;\n }\n \n /* message(\"Status: \" . $info['http_code']);\n message(\"Got back \" . strlen($res) . \" characters of information\");\n message(\"Output from session query: \" . $res);\n */\n \n }\n util::redirect(\"http://\" .$browser_host .\"/tuit/account/login/?next=\" . urlencode($request_uri));\n\n }\n else {\n \n $username = $_SERVER['REMOTE_USER'];\t\n if($username) {\n ciUser::loginUser($username);\n }\n }\n \n \n }",
"function warquest_home_welcome() {\r\n\r\n\t/* input */\r\n\tglobal $player;\r\n\tglobal $mid;\r\n\tglobal $sid;\r\n\tglobal $config;\r\n\t\r\n\t/* output */\r\n\tglobal $page;\r\n\tglobal $output;\r\n\t\r\n\t$output->title = t('HOME_OVERVIEW_TITLE');\r\n\t\t\r\n\t$page .= '<div class=\"subparagraph\">'.t('HOME_OVERVIEW_TITLE').'</div>';\r\n\t\r\n\t$page .= '<div class=\"box\">';\r\n\r\n\tif ($player->lid <= 5) {\r\n\t\r\n\t\t$page .= '<br/>';\r\n\t\r\n\t\t$query1 = 'select ugid from unit_group where type=2 and planet='.$player->planet;\r\n\t\t$result1 = warquest_db_query($query1);\r\n\t\t$data1 = warquest_db_fetch_object($result1);\r\n\r\n\t\t$query2 = 'select bgid from building_group where planet='.$player->planet.' order by bgid limit 1';\r\n\t\t$result2 = warquest_db_query($query2);\r\n\t\t$data2 = warquest_db_fetch_object($result2);\r\n\t\r\n\t\t$page .= warquest_image('other/commander.jpg', ' align=\"left\" width=\"160\" height=\"120\" ');\r\n\t\t\r\n\t\t$page .= t('HOME_WELCOME', warquest_rank($player->lid), player_format($player->pid, $player->name, $player->country));\r\n\t\t$page .= '<br/><br/>';\r\n\t\r\n\t\t$page .= t('HOME_INTRO_MISSIONS', warquest_link('mid='.MENU_MISSIONS.'&sid='.PAGE_MISSION_PLAYER.'&ssid='.warquest_get_default_mission($player->planet),t('LINK_MISSIONS'), 'mission1'));\r\n\t\t$page .= t('HOME_INTRO_BATTLES', warquest_link('mid='.MENU_BATTLE.'&sid='.PAGE_ENEMIES,t('LINK_BATTLES'), 'battle1'));\r\n\t\t$page .= t('HOME_INTRO_UNITS', warquest_link('mid='.MENU_UNITS.'&sid='.PAGE_UNIT_PLAYER.'&ssid='.$data1->ugid, t('LINK_UNITS'), 'unit1'));\r\n\t\t$page .= t('HOME_INTRO_BUILDINGS', warquest_link('mid='.MENU_BUILDINGS.'&sid='.$data2->bgid, t('LINK_BUILDINGS'), 'building1'));\r\n\t\t\r\n\t\t$page .= '<br/>';\t\t\t\r\n\t\t\r\n\t} else {\r\n\t\r\n\t\t/*$query1 = 'select count(pid) as count, sum(won) as won from player';\r\n\t\t$result1 = warquest_db_query($query1); \r\n\t\t$data1 = warquest_db_fetch_object($result1);*/\r\n\t\t\r\n\t\t/*$query = 'select distinct(country) from player';\r\n\t\t$result = warquest_db_query($query); \r\n\t\t$count = warquest_db_num_rows($result);*/\r\n\t\t\t\r\n\t\t$query2 = 'select pid from player where country=\"'.$player->country.'\" and experience>='.$player->experience;\r\n\t\t$result2 = warquest_db_query($query2);\r\n\t\t$count2 = warquest_db_num_rows($result2);\r\n\t\t\r\n\t\t$query3 = 'select pid from player where experience>='.$player->experience.' and country!=\"EU\"';\r\n\t\t$result3 = warquest_db_query($query3);\r\n\t\t$count3 = warquest_db_num_rows($result3);\r\n\t\r\n\t\t/*$yesterday = mktime(date(\"H\"), date(\"i\"), date(\"s\"), date(\"m\"), date(\"d\")-1, date(\"Y\"));\r\n\t\t$query4 = 'select count(pid) as count from member where last_login > \"'.date(\"Y-m-d H:i:s\", $yesterday).'\" ';\t\t\r\n\t\t$result4 = warquest_db_query($query4);\r\n\t\t$data4 = warquest_db_fetch_object($result4);*/\r\n\t\r\n\t\t/*$query5 = 'select sum(requests) as requests from views';\r\n\t\t$result5 = warquest_db_query($query5); \r\n\t\t$data5 = warquest_db_fetch_object($result5);*/\n\t\r\n\t\t$page .= '<div class=\"right\">';\r\n\t\t$page .= warquest_rank_image($player->lid);\r\n\t\t$page .= '</div>';\n\t\r\n\t\t$page .= t('HOME_WELCOME', warquest_rank($player->lid), player_format($player->pid, $player->name, $player->country));\r\n\t\t\r\n\t\t$page .= '<br/><br/>';\n\t\r\n\t\t$member = warquest_db_member($player->pid);\r\n\t\tif ($member->prev_login!=0) {\r\n\t\t\t$page .= t('HOME_LAST_LOGIN', warquest_ui_ago($member->prev_login)).'<br/>';\r\n\t\t}\r\n\t\t$page .= '<br/>';\r\n\t\t\r\n\t\t$page .= t('HOME_INTRO_PLACE1', \r\n\t\t\t\t\t\twarquest_link('mid='.MENU_PLAYERS.'&sid='.PAGE_LEADERBOARD.'&ssid='.PAGE_BEST_PLAYER, warquest_place($count3)));\r\n\t\t\r\n\t\t$code = sprintf(\"%03d%03d\",ord($player->country[0]),ord($player->country[1]));\r\n\t\t$page .= t('HOME_INTRO_PLACE2', \r\n\t\t\t\t\t\twarquest_link('mid='.MENU_PLAYERS.'&sid='.PAGE_LEADERBOARD.'&ssid='.PAGE_BEST_COUNTRY2.'&uid='.$code, warquest_place($count2)), warquest_landcode($player->country));\r\n\t\t$page .= '<br/>';\r\n\t\t\r\n\t\t/*$page .= '<br/>';\t\t\r\n\t\t$page .= t('HOME_INTRO_PLAYERS', energy_format($data1->count), country_format($count));\r\n\t\t$page .= t('HOME_INTRO_FIGHTS', health_format($data1->won));\r\n\t\t$page .= t('HOME_INTRO_REQUESTS', money_format1($data5->requests));\r\n\t\t$page .= t('HOME_PLAYERS_ONLINE',energy_format($data4->count));\t\t\t\r\n\t\t$page .= '<br/>';*/\r\n\t}\r\n\t\t\r\n\t$page .= warquest_view_awards();\r\n\t\r\n\tif ($player->lid > 4) {\r\n\t\t$page .= warquest_poll_teaser();\t\r\n\t}\r\n\r\n\t/* Show tip */\r\n\t$page .= warquest_ui_tip();\t\n\t$page .= '<div class=\"spacer\"></div>';\t\r\n\t\r\n\t$page .= '</div>';\t\r\n}",
"function identifyPage() {\n//\t\t$req_uri = $_SERVER['REQUEST_URI'];\n//\t\tprint \"init\";\n\t\t$query = new Query();\n\t\tif($query->sql(\"SELECT id, relation, name, url FROM \" . UT_MEN . \" WHERE url LIKE '%\".$this->url.\"%'\")) {\n\t\t\t$item->id = $query->getQueryResult(0, \"id\");\n\t\t\t$item->name = $this->translate($query->getQueryResult(0, \"name\"));\n\n\t\t\t$item->url = str_replace(FRAMEWORK_PATH.\"/admin\", \"\", $this->url);\n\t\t\t$item->url = str_replace(GLOBAL_PATH.\"/admin\", \"\", $item->url);\n\t\t\t$item->url = str_replace(REGIONAL_PATH.\"/admin\", \"\", $item->url);\n\n//\t\t\t$item->url = ereg_replace(FRAMEWORK_PATH.\"/admin|\".GLOBAL_PATH.\"/admin|\".REGIONAL_PATH.\"/admin\", \"\", $query->getQueryResult(0, \"url\"));\n\t\t\tarray_unshift($this->trail, $item);\n\t\t\t$relation = $query->getQueryResult(0, \"relation\");\n\t\t\tif($relation) {\n\t\t\t\t$this->pageTrail($relation);\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"function cao_vip_page() {\r\n}",
"public function testWebinars()\n {\n }",
"public function wp_loaded()\n {\n }",
"protected function expulsaVisitante()\n {\n header( \"Location: \".self::index );\n }",
"public function main() {\n\t\t// Access check!\n\t\t// The page will show only if there is a valid page and if this page may be viewed by the user\n\t\t$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id, $this->perms_clause);\n\t\t$access = is_array($this->pageinfo) ? 1 : 0;\n\t\tif (($this->id && $access) || (tx_laterpay_helper_user::isAdmin() && !$this->id)) {\n\t\t\t$this->doc->backPath = $GLOBALS['BACK_PATH'];\n\n\t\t\t// load LaterPay-specific CSS\n\t\t\t$this->doc->addStyleSheet('laterpay-backend', t3lib_extMgm::extRelPath('laterpay') . 'res/css/laterpay-backend.css');\n\t\t\t$this->doc->addStyleSheet('fonts.googleapis.com', 'http://fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,300,400,600&subset=latin,latin-ext');\n\t\t\t// load LaterPay-specific JS\n\t\t\t$this->doc->loadJavascriptLib(t3lib_extMgm::extRelPath('laterpay') . 'res/js/vendor/jquery-1.11.2.min.js');\n\t\t\t$this->doc->loadJavascriptLib(t3lib_extMgm::extRelPath('laterpay') . 'res/js/laterpay-backend.js');\n\n\t\t\t$pageContent = $this->getModuleContent();\n\n\t\t\t// Draw the header.\n\t\t\t// JavaScript\n\t\t\t$this->doc->JScode = '\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 0;\n\t\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\t\tdocument.location = URL;\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t';\n\t\t\t$this->doc->postCode = '\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 1;\n\t\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\n\t\t\t\t</script>\n\t\t\t';\n\n\t\t\t$headerSection = $this->doc->getHeader('pages', $this->pageinfo, $this->pageinfo['_thePath']) . '<br />' .\n\t\t\t\t$GLOBALS['LANG']->sL('LLL:EXT:lang/locallang_core.xml:labels.path') .\n\t\t\t\t': ' . t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'], -50);\n\n\t\t\t$this->content .= $this->doc->startPage(tx_laterpay_helper_string::tr('title'));\n\t\t\t$this->content .= $this->doc->header(tx_laterpay_helper_string::tr('title'));\n\t\t\t$this->content .= $this->doc->spacer(5);\n\t\t\t$this->content .= $this->doc->section(\n\t\t\t\t\t'', $this->doc->funcMenu($headerSection, t3lib_BEfunc::getFuncMenu($this->id, 'SET[function]',\n\t\t\t\t\t$this->MOD_SETTINGS['function'], $this->MOD_MENU['function']))\n\t\t\t);\n\t\t\t$this->content .= $this->doc->divider(5);\n\t\t\t\t// Render content:\n\t\t\t$this->content .= $pageContent;\n\t\t\t\t// Shortcut\n\t\t\tif ($GLOBALS['BE_USER']->mayMakeShortcut()) {\n\t\t\t\t$this->content .= $this->doc->spacer(20) . $this->doc->section('', $this->doc->makeShortcutIcon('id', implode(',', array_keys($this->MOD_MENU)), $this->MCONF['name']));\n\t\t\t}\n\n\t\t\t$this->content .= $this->doc->spacer(10);\n\t\t} else {\n\t\t\t\t// If no access or if ID == zero\n\n\t\t\t$this->doc->backPath = $GLOBALS['BACK_PATH'];\n\n\t\t\t$this->content .= $this->doc->startPage(tx_laterpay_helper_string::tr('title'));\n\t\t\t$this->content .= $this->doc->header(tx_laterpay_helper_string::tr('title'));\n\t\t\t$this->content .= $this->doc->spacer(5);\n\t\t\t$this->content .= $this->doc->spacer(10);\n\t\t}\n\t}",
"function preloadPage(){\n\t\tif($this->hasFlag(0,\"logout\")){\n\t\t\t$this->usr->log_out();\n\t\t\t\n\t\t\t\n\t\t\t$this->bodyContent .= \"<h1>Logged out</h1>\";\n\t\t\tif(!$this->lastFlag(\"iframe\")){\n\t\t\t\t$this->bodyContent .= \"<script type=\\\"text/javascript\\\"> function fwd(){ window.location = \\\"/home\\\"; } setTimeout('fwd()', 1000); </script>\";\n\t\t\t}\n\t\t\t//header(\"Location: /home/loggedout\");\n\t\t\t//return false; \n\t\t}\n\t\telse if($this->hasFlag(0,\"register\")){\n\t\t\tif($this->hasFlag(1,\"success\")){\n\t\t\t\tif($this->usr->is_logged_in()){\n\t\t\t\t\t$this->bodyContent .= \"<h1>Registration successful!</h1>\n\t\t\t\t\t<script type=\\\"text/javascript\\\"> function fwd(){ window.location = \\\"/home\\\"; } setTimeout('fwd()', 1000); </script>\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\theader(\"Location: /home\" . $this->add_iframe());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$regVars = $this->getValues($_POST,array(\"input_first_name\",\"input_last_name\",\"input_email\",\"input_password\",\"input_password_conf\"));\n\t\t\t\tif($regVars === false){\n\t\t\t\t\t$this->bodyContent .= $this->errorTemplate(\"You must fill out all of the registration form!\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t//echo \"two\";\n\t\t\t\t\tif($regVars[\"input_password\"] !== $regVars[\"input_password_conf\"]){\n\t\t\t\t\t\t$this->bodyContent .= $this->errorTemplate(\"Your password and the confirmation do not match!\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$regInfo = $this->usr->register_user($regVars[\"input_email\"],$regVars[\"input_password\"],$regVars[\"input_first_name\"],$regVars[\"input_last_name\"]);\n\t\t\t\t\t\tif($regInfo[\"success\"] === 1){\n\t\t\t\t\t\t\t//$this->bodyContent .= \"<h1>Registration successful!</h1>\";\n\t\t\t\t\t\t\theader(\"Location: /auth/register/success\" . $this->add_iframe());\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t$temp = \"\";\n\t\t\t\t\t\t\tforeach($regInfo[\"errors\"] as $error){\n\t\t\t\t\t\t\t\t$temp .= $error . \"<br />\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->bodyContent .= $this->errorTemplate($temp);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if($this->hasFlag(0,\"login\")){\n\t\t\tif($this->hasFlag(1,\"success\")){\n\t\t\t\tif($this->usr->is_logged_in()){\n\t\t\t\t\t$this->bodyContent .= \"<h1>Log in successful!</h1>\n\t\t\t\t\t<script type=\\\"text/javascript\\\"> function fwd(){ window.location = \\\"/home\\\"; } setTimeout('fwd()', 1000); </script>\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\theader(\"Location: /auth\" . $this->add_iframe());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\t$regVars = $this->getValues($_POST,array(\"input_email\",\"input_password\"));\n\t\t\t\tif($regVars === false){\n\t\t\t\t\t$this->bodyContent .= $this->errorTemplate(\"You must fill out all of the log in form!\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\t$regInfo = $this->usr->log_in($regVars[\"input_email\"],$regVars[\"input_password\"]);\n\t\t\t\t\tif($regInfo[\"success\"] === 1){\n\t\t\t\t\t\t//$this->bodyContent .= \"<h1>Log in successful!</h1>\";\n\t\t\t\t\t\theader(\"Location: /auth/login/success\" . $this->add_iframe());\n\t\t\t\t\t\treturn false; \n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t$temp = \"\";\n\t\t\t\t\t\tforeach($regInfo[\"errors\"] as $error){\n\t\t\t\t\t\t\t$temp .= $error . \"<br />\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\t$this->bodyContent .= $this->errorTemplate($temp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if($this->usr->is_logged_in()){\n\t\t\theader(\"Location: /home\");\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"function TS_VCSC_DetermineLoadingStatus() {\r\n\t\t\t// Retrieve Current Browser URL\r\n\t\t\t$TS_VCSC_Extension_Browser\t\t\t\t\t\t\t= 'http://';\r\n\t\t\tif (isset($_SERVER['SERVER_NAME'])) {\r\n\t\t\t\t$TS_VCSC_Extension_Browser\t\t\t\t\t\t.= $_SERVER['SERVER_NAME'];\r\n\t\t\t} else if (isset($_SERVER['HTTP_HOST'])) {\r\n\t\t\t\t$TS_VCSC_Extension_Browser\t\t\t\t\t\t.= $_SERVER['HTTP_HOST'];\r\n\t\t\t}\t\t\t\r\n\t\t\tif (isset($_SERVER['REQUEST_URI'])) {\r\n\t\t\t\t$TS_VCSC_Extension_Browser \t\t\t\t\t\t.= $_SERVER['REQUEST_URI'];\r\n\t\t\t}\r\n\t\t\t// Check for Plugin Specific Pages\r\n\t\t\t$this->TS_VCSC_PluginFontSummary\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Extender') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginFontSummary\t\t\t\t= \"true\";\r\n\t\t\t} else if (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_System') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginFontSummary\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_GoggleFontSummary\t\t\t\t\t= \"false\";\r\n\t\t\tif ((strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_GoogleFonts') !== false) || (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_System') !== false)) {\r\n\t\t\t\t$this->TS_VCSC_GoggleFontSummary\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginSettingsTransfer\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Transfers') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginSettingsTransfer\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginEnlighterTheme\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_EnlighterJS') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginEnlighterTheme\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginDownTimeManager\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Downtime') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginDownTimeManager\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginIconFontImport\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Uploader') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginIconFontImport\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_PluginUsageCompiler\t\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Usage') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginUsageCompiler\t\t\t\t= \"true\";\r\n\t\t\t}\r\n $this->TS_VCSC_PluginIconGenerator = \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Generator') !== false) {\r\n\t\t\t\t$this->TS_VCSC_PluginIconGenerator\t\t\t\t= \"true\";\r\n\t\t\t}\r\n\t\t\t$this->TS_VCSC_Icons_Compliant_Loading\t\t\t\t= \"false\";\r\n\t\t\tif ((strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Previews') !== false) || (strpos($TS_VCSC_Extension_Browser, '?page=TS_VCSC_Generator') !== false)) {\r\n\t\t\t\t$this->TS_VCSC_Icons_Compliant_Loading\t\t\t= \"true\";\r\n\t\t\t}\r\n // Check for Composium Custom Post Types\r\n $this->TS_VCSC_CustomPostTypesPresent = \"false\";\r\n if (strpos($TS_VCSC_Extension_Browser, '?post_type=ts_timeline') !== false) {\r\n $this->TS_VCSC_CustomPostTypesPresent = \"true\";\r\n }\r\n\t\t\t// Check for WP Bakery Page Builder Roles Manager\t\t\t\r\n\t\t\t$this->TS_VCSC_Extension_RoleManager\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=vc-roles') !== false) {\r\n\t\t\t\t$this->TS_VCSC_Extension_RoleManager\t\t\t= \"true\";\t\t\r\n\t\t\t}\r\n\t\t\t// Check for Elements for Users - Addon for WP Bakery Page Builder\r\n\t\t\t$this->TS_VCSC_Extension_ElementsUser\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=mcw_elements_for_users') !== false) {\r\n\t\t\t\t$this->TS_VCSC_Extension_ElementsUser\t\t\t= \"true\";\t\t\r\n\t\t\t}\r\n\t\t\t// Check for Toolsets Template Editor\r\n\t\t\t$this->TS_VCSC_Extension_ToolsetsUser\t\t\t\t= \"false\";\r\n\t\t\tif (strpos($TS_VCSC_Extension_Browser, '?page=ct-editor') !== false) {\r\n\t\t\t\t$this->TS_VCSC_Extension_ToolsetsUser\t\t\t= \"true\";\t\t\r\n\t\t\t}\r\n\t\t\t// Determine if WP Bakery Page Builder Form Request\r\n\t\t\tif (array_key_exists('action', $_REQUEST)) {\r\n\t\t\t\t$TS_VCSC_Extension_Request\t\t\t\t\t\t= ($_REQUEST[\"action\"] != \"vc_edit_form\" ? \"false\" : \"true\");\r\n\t\t\t} else {\r\n\t\t\t\t$TS_VCSC_Extension_Request\t\t\t\t\t\t= \"false\";\r\n\t\t\t}\r\n\t\t\t// Determine Standard Page Editor\r\n\t\t\t$this->TS_VCSC_VCStandardEditMode\t\t\t\t\t= (TS_VCSC_IsEditPagePost() == 1 ? \"true\" : \"false\");\r\n\t\t\t// Determine Frontend Editor Status\r\n\t\t\tif (function_exists('vc_is_inline')){\r\n\t\t\t\tif (vc_is_inline() == true) {\r\n\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t\t\t= \"true\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif ((vc_is_inline() == NULL) || (vc_is_inline() == '')) {\r\n\t\t\t\t\t\tif (TS_VCSC_CheckFrontEndEditor() == true) {\r\n\t\t\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t= \"true\";\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t= \"false\";\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t\t= \"false\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t$this->TS_VCSC_VCFrontEditMode \t\t\t\t\t= \"false\";\r\n\t\t\t}\r\n\t\t\t// Check AJAX Request Status\r\n\t\t\t$this->TS_VCSC_PluginAJAX\t\t\t\t\t\t\t= ($this->TS_VCSC_RequestIsFrontendAJAX() == 1 ? \"true\" : \"false\");\r\n\t\t\t// Set Global Load Status\r\n\t\t\t$this->TS_VCSC_VisualComposer_Loading\t\t\t\t= \"false\"; \r\n $this->TS_VCSC_Gutenberg_Classic = (TS_VCSC_CheckGBClassicEditor() == true ? \"true\" : \"false\");\r\n\t\t\tif ((defined('WPB_VC_VERSION')) && (($TS_VCSC_Extension_Request == \"true\") || ($this->TS_VCSC_VCFrontEditMode == \"true\") || ($this->TS_VCSC_VCStandardEditMode == \"true\") || ($this->TS_VCSC_PluginAJAX == \"true\")) || ($this->TS_VCSC_Extension_ToolsetsUser == \"true\")) {\r\n $this->TS_VCSC_VisualComposer_Loading = \"true\";\r\n\t\t\t}\r\n // Check for In-Compatible WP Bakery WEBSITE Builder\r\n $this->TS_VCSC_WebsiteBuilder_Instead = \"false\";\r\n $this->TS_VCSC_WebsiteBuilder_Instead = (TS_VCSC_CheckVCWebsiteEditor() === true ? \"true\" : \"false\");\r\n\t\t\t// Register Global Data/Functions As Needed\r\n\t\t\t$this->TS_VCSC_RegisterGlobalData();\r\n\t\t}",
"public function testAboutPageLoad()\n {\n $this->visit('/about')\n ->see('Vihaara - Travel planner');\n }",
"function run_on_startup(): void {\r\n\r\n\t // Add the current page to GT\r\n\t $this->gtpage = MJKGTAPI::add_page([\r\n\t\t 'id' => 'masthead',\r\n\t\t 'name' => 'Masthead',\r\n\t\t 'source' => self::source,\r\n\t\t 'renderer' => 'MJKMH_Renderer',\r\n\t\t 'settings' => [JKNAPI::settings_page('roles')]\r\n\t ]);\r\n\r\n // Add the ACF filters\r\n\t MJKMH_ACF_Roles::add_filters();\r\n\t MJKMH_ACF_User::add_filters();\r\n\r\n\t // Add the dynamic field loading on the user ACF page\r\n\t global $pagenow;\r\n\t if (($pagenow === 'user-edit.php') || ($pagenow == 'user-new.php')) {\r\n\t \tMJKMH_ACF_User::enqueue_js();\r\n\t }\r\n\r\n }",
"public function run()\n {\n \\App\\Setting::add(\"site_title\", \"Triangle\");\n \\App\\Setting::add(\"site_description\", \"Triangle is a social network tool that helps you managing / scheduling your posts and profiles in Facebook, LinkedIn and Twitter.\");\n \\App\\Setting::add(\"site_keywords\", \"social,scheduling posts,posts\");\n \\App\\Setting::add(\"tos\", \"\");\n \\App\\Setting::add(\"fb_api_key\", \"\");\n \\App\\Setting::add(\"fb_api_secret\", \"\");\n \\App\\Setting::add(\"twitter_api_key\", \"\");\n \\App\\Setting::add(\"twitter_api_secret\", \"\");\n \\App\\Setting::add(\"linkedin_api_key\", \"\");\n \\App\\Setting::add(\"linkedin_api_secret\", \"\");\n \\App\\Setting::add(\"bitly_api_key\", \"\");\n \\App\\Setting::add(\"bitly_api_secret\", \"\");\n \\App\\Setting::add(\"privacy\", \"\");\n \\App\\Setting::add(\"site_author\", \"Yoan Marinov\");\n }",
"function main()\t{\n\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t// Access check!\n\t\t// The page will show only if there is a valid page and if this page may be viewed by the user\n\t\t$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);\n\t\t$access = is_array($this->pageinfo) ? 1 : 0;\n\n\t\tif (($this->id && $access) || ($BE_USER->user[\"admin\"] && !$this->id))\t{\n\n\t\t\t\t// Draw the header.\n\t\t\t$this->doc = t3lib_div::makeInstance(\"bigDoc\");\n\t\t\t$this->doc->backPath = $BACK_PATH;\n\t\t\t$this->doc->form='<form action=\"index.php?id='.$this->id.'\" method=\"POST\">';\n\n\t\t\t\t// JavaScript\n\t\t\t$this->doc->JScode = '\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 0;\n\t\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\t\tdocument.location = URL;\n\t\t\t\t\t}\n\t\t\t\t</script>\n\t\t\t';\n\t\t\t$this->doc->postCode='\n\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\tscript_ended = 1;\n\t\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\n\t\t\t\t</script>\n\t\t\t';\n\n\t\t\t$headerSection = $this->doc->getHeader(\"pages\",$this->pageinfo,$this->pageinfo[\"_thePath\"]).\"<br />\".$LANG->sL(\"LLL:EXT:lang/locallang_core.xml:labels.path\").\": \".t3lib_div::fixed_lgd_pre($this->pageinfo[\"_thePath\"],50);\n\n\t\t\t$this->content.=$this->doc->startPage($LANG->getLL(\"title\"));\t\n\t\t\texec('hostname',$ret);\n\t\t\t$ret=implode(\"\",$ret);\n\t\t\t$this->content.=$this->doc->header($LANG->getLL(\"title\") .\" on: $ret\");\n\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t$this->content.=$this->doc->section(\"\",$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,\"SET[function]\",$this->MOD_SETTINGS[\"function\"],$this->MOD_MENU[\"function\"])));\n\t\t\t$this->content.=$this->doc->divider(5);\n\n\n\t\t\t// Render content:\n\t\t\t$this->moduleContent();\n\n\n\t\t\t// ShortCut\n\t\t\tif ($BE_USER->mayMakeShortcut())\t{\n\t\t\t\t$this->content.=$this->doc->spacer(20).$this->doc->section(\"\",$this->doc->makeShortcutIcon(\"id\",implode(\",\",array_keys($this->MOD_MENU)),$this->MCONF[\"name\"]));\n\t\t\t}\n\n\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t} else {\n\t\t\t\t// If no access or if ID == zero\n\n\t\t\t$this->doc = t3lib_div::makeInstance(\"mediumDoc\");\n\t\t\t$this->doc->backPath = $BACK_PATH;\n\n\t\t\t$this->content.=$this->doc->startPage($LANG->getLL(\"title\"));\n\t\t\t$this->content.=$this->doc->header($LANG->getLL(\"title\"));\n\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t}\n\t}",
"function GpcKits(){\n \t// Define static values\n \tself::$plugin_url = trailingslashit( WP_PLUGIN_URL.'/'. dirname( plugin_basename(__FILE__) ));\n \tself::$plugin_dir = pathinfo(__FILE__,PATHINFO_DIRNAME);\n \tself::$plugin_desc_name = __('GPC development Kits','gpc-kits');\n \t\n \t// Include all classes\n \tinclude( self::$plugin_dir . '/includes/all_classes.php');\n \t\n\t\t\t// Translations for plugin\n\t\t\t$this->handle_load_domain();\n\t\t\t\n\t\t\t// Store cookies pending to save\n\t\t\tGpcKits_Cookies::save_cookies_pending_to_save();\n }",
"private function NotAuthed( ){\n\t\t\n\t\t$this->StartCardPanel();\n\t\t\n\t\techo \"<h5>SolarPower SprayLoader P.O.C</h5>\";\n\t\techo \"<p>Welcome! This page is used to upload sprays to use on the server. Simply select the image you wish to upload, and press submit. Please remember that these images are submitted to moderation, and must respect the guidelines. These include but are not limited to not uploading images of a pornographic nature, and other such images. Just use common sense and you'll be fine.</p>\";\n\t\techo \"<p>To upload an image, you must first be logged in. Please do this by pressing the button below.</p>\";\n\t\techo \"<center>\";\n\t\tsteamlogin(); //login button\n\t\techo \"</center>\";\n\t\t\n\t\t$this->EndCardPanel();\n\t}",
"public static function page_logic(){\n\t\t\tif (basename($_SERVER['PHP_SELF']) == basename(__FILE__)){\n\t\t\t session_start();\n\n\t\t\t if (isset($_GET['logout'])){\n\t\t\t \t sspp::logout();\n\t\t\t \t if (!empty($_GET['goto'])){\n\t\t\t \t\t\theader('Location: '.$_GET['goto']);\n\t\t\t \t\t\texit;\n\t\t\t \t }else{\n\t\t\t \t\t\tdie(\"Logged out <a href=\\\"javascript:history.back();\\\">Back to previous page</a>\");\n\t\t\t \t } \t \n\t\t\t }\n\n\t\t\t if (sspp::isloggedin() || sspp::auth_with_post()){\n\t\t\t \t\tif (!empty($_GET['goto'])){\n\t\t\t \t\t\theader('Location: '.$_GET['goto']);\n\t\t\t \t\t\texit;\n\t\t\t \t\t}else{\n\t\t\t \t\t\tdie('Logged in!');\n\t\t\t \t\t}\n\t\t\t }else{\n\t\t\t sspp::page_protect_with_login();\n\t\t\t exit;\n\t\t\t }\n\t\t\t}else{\n\t\t\t //die($_SERVER['PHP_SELF'].' <br> '.basename(__FILE__));\n\t\t\t //calling from a different page\n\t\t\t sspp::secure();\n\t\t\t return;\n\t\t\t //all code after this (from other files) are accessing protected content;\n\t\t\t}\n\t}",
"protected function displayMaintenancePage()\n {\n }",
"protected function displayMaintenancePage()\n {\n }",
"protected function displayMaintenancePage()\n {\n }",
"public function show_full_page()\n\t{\n\t\tglobal $__server;\n\t\t\n\t\t// hent familierangering\n\t\t$ff_list = ff::get_fam_points_rank();\n\t\t\n\t\t// deaktiver høyre side\n\t\t//define(\"DISABLE_RIGHT_COL\", true);\n\t\t\n\t\tess::$b->page->add_css('\n#default_main { overflow: visible }');\n\t\t\n\t\tess::$b->page->add_js_domready('\n\tsm_scripts.load_hm();\n\twindow.HM.addEvent(\"f-changed\", function(data) {\n\t\t//$$(\".bydeler_filter a\").removeClass(\"active\");\n\t\t$$(\".bydeler_ressurs\").setStyle(\"display\", \"none\");\n\t\t$$(\".bydeler_ressurs_\"+data).setStyle(\"display\", \"block\");\n\t\t//$(\"f_\"+data).addClass(\"active\");\n\t});\n\twindow.HM.addEvent(\"f-removed\", function() {\n\t\t//$$(\".bydeler_filter a\").removeClass(\"active\");\n\t\t//$(\"f_\").addClass(\"active\");\n\t\t$$(\".bydeler_ressurs\").setStyle(\"display\", \"block\");\n\t});\n\twindow.HM.addEvent(\"b-added\", function() {\n\t\t//$$(\".bydeler_alt a\").removeClass(\"active\");\n\t\t//$(\"v_b\").addClass(\"active\");\n\t\t$$(\".bydeler_br\").setStyle(\"display\", \"none\");\n\t\t$$(\".bydeler_steder\").setStyle(\"display\", \"block\");\n\t});\n\twindow.HM.addEvent(\"b-removed\", function() {\n\t\t//$$(\".bydeler_alt a\").removeClass(\"active\");\n\t\t//$(\"v_\").addClass(\"active\");\n\t\t$$(\".bydeler_br\").setStyle(\"display\", \"block\");\n\t\t$$(\".bydeler_steder\").setStyle(\"display\", \"none\");\n\t});\n\t\n\t$$(\".bydeler_steder\").setStyle(\"display\", \"none\");\n\t$$(\".bydeler_alt a\").addEvent(\"click\", function(e)\n\t{\n\t\twindow.HM.remove(\"f\");\n\t\twindow.HM.set(\"b\", \"\");\n\t\te.stop();\n\t});\n\t\n\t$$(\".bydeler_filter a\").addEvent(\"click\", function(e)\n\t{\n\t\twindow.HM.remove(\"b\");\n\t\tif (this.get(\"id\") == \"f_\") window.HM.remove(\"f\");\n\t\telse window.HM.set(\"f\", this.get(\"id\").substring(2));\n\t\te.stop();\n\t});\n\t\n\twindow.HM.recheck();\n');\n\t\t\n\t\t// sett opp alle FF og sorter dem i y-retning\n\t\t$data = array();\n\t\t$pos_x = array();\n\t\t$pos_y = array();\n\t\tforeach ($this->bydeler as $id => $bydel)\n\t\t{\n\t\t\tif ($id == 0) continue;\n\t\t\t\n\t\t\tforeach ($bydel['ff'] as $row)\n\t\t\t{\n\t\t\t\t$pos_x[] = $row['br_pos_x'];\n\t\t\t\t$pos_y[] = $row['br_pos_y'];\n\t\t\t\t\n\t\t\t\t$type = ff::$types[$row['ff_type']];\n\t\t\t\t\n\t\t\t\t// familie\n\t\t\t\tif ($row['ff_type'] == 1)\n\t\t\t\t{\n\t\t\t\t\t$eier = count($row['eier']) == 0 ? 'Ingen leder av broderskapet' : 'Styres av '.self::list_players($row['eier']);\n\t\t\t\t\t$class = \"bydeler_ressurs_familie\";\n\t\t\t\t\t\n\t\t\t\t\t// antall poeng\n\t\t\t\t\tif (isset($ff_list[$row['ff_id']]) && $ff_list[$row['ff_id']]->data['ff_is_crew'] == 0) $eier .= '<br />'.game::format_num($ff_list[$row['ff_id']]->data['ff_points_sum']).' poeng';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// firma\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif ($type['type'] == \"bomberom\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$eier = count($row['eier']) == 0 ? 'Ingen styrer bomberommet' : 'Styres av '.self::list_players($row['eier']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$eier = count($row['eier']) == 0 ? 'Ingen eier av firmaet' : 'Eies av '.self::list_players($row['eier']);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$class = \"bydeler_ressurs_firma bydeler_ressurs_{$type['type']}firma\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$data[] = '\n\t\t<a href=\"'.$__server['relative_path'].'/ff/?ff_id='.$row['ff_id'].'\" class=\"bydeler_ressurs '.$class.'\" style=\"left: '.$row['br_pos_x'].'%; top: '.$row['br_pos_y'].'%\">\n\t\t\t<img class=\"bydeler_ressurs_t\" src=\"'.htmlspecialchars($type['bydeler_graphic']).'\" alt=\"'.htmlspecialchars($type['bydeler_alt_pre']).htmlspecialchars($row['ff_name']).'\" />\n\t\t\t<span class=\"bydeler_ressurs_tekst\">\n\t\t\t\t'.htmlspecialchars($row['ff_name']).'<span class=\"bydeler_owner\"><br />\n\t\t\t\t'.$eier.'</span>\n\t\t\t</span>\n\t\t\t<img class=\"bydeler_ressurs_graphic\" src=\"'.htmlspecialchars(ff::get_logo_path_static($row['ff_id'], $row['ff_logo_path'])).'\" alt=\"\" />\n\t\t</a>';\n\t\t\t}\n\t\t}\n\t\tarray_multisort($pos_y, $pos_x, $data);\n\t\t\n\t\t$bydeler_0 = $this->bydeler[0];\n\t\tunset($this->bydeler[0]);\n\t\t\n\t\t// sorter bydelene i y-retning\n\t\t$bydeler_x = array();\n\t\t$bydeler_y = array();\n\t\tforeach ($this->bydeler as $id => $bydel)\n\t\t{\n\t\t\t$bydeler_x[] = $bydel['bydel_x'];\n\t\t\t$bydeler_y[] = $bydel['bydel_y'];\n\t\t}\n\t\tarray_multisort($bydeler_x, $bydeler_y, $this->bydeler);\n\t\t\n\t\t// invitasjoner til FF\n\t\tif (count($this->ff_invites) > 0)\n\t\t{\n\t\t\techo '\n<div class=\"bg1_c small\">\n\t<h1 class=\"bg1\">Invitasjoner<span class=\"left2\"></span><span class=\"right2\"></span></h1>\n\t<div class=\"bg1\">';\n\t\t\t\n\t\t\tforeach ($this->ff_invites as $row)\n\t\t\t{\n\t\t\t\t$type = ff::$types[$row['ff_type']];\n\t\t\t\techo '\n\t\t<p>Du er invitert til '.$type['refobj'].' <a href=\"'.$__server['relative_path'].'/ff/?ff_id='.$row['ff_id'].'\">'.htmlspecialchars($row['ff_name']).'</a> som '.$type['priority'][$row['ffm_priority']].' ('.ess::$b->date->get($row['ffm_date_join'])->format(date::FORMAT_NOTIME).') - <a href=\"'.$__server['relative_path'].'/ff/?ff_id='.$row['ff_id'].'\">Godta/avslå</a></p>';\n\t\t\t}\n\t\t\t\n\t\t\techo '\n\t</div>\n</div>';\n\t\t}\n\n\t\tif (count($this->fff) > 0 || access::has(\"mod\"))\n\t\t{\n\t\t\techo '\n<div class=\"bg1_c medium bydeler_br bydeler_ressurs bydeler_ressurs_familie\">\n\t<h1 class=\"bg1\">Konkurranse om å danne broderskap <span class=\"left2\"></span><span class=\"right2\"></span></h1>\n\t<div class=\"bg1 c\">\n\t\t<table class=\"table center tablem\">\n\t\t\t<thead>\n\t\t\t\t<tr>\n\t\t\t\t\t'.(access::has(\"mod\") ? '<th>Admin</th>' : '').'\n\t\t\t\t\t<th>Avsluttes</th>\n\t\t\t\t\t<th>Gjenstår</th>\n\t\t\t\t\t<th>Antall broderskap</th>\n\t\t\t\t\t<th>Gjenstående broderskap</th>\n\t\t\t\t\t<th>Status</th>\n\t\t\t\t</tr>\n\t\t\t</thead>\n\t\t\t<tbody class=\"r\">';\n\t\t\t\n\t\t\t$i = 0;\n\t\t\t$free = 0;\n\t\t\tforeach ($this->fff as $row)\n\t\t\t{\n\t\t\t\t$time = time();\n\n\t\t\t\tif ($row['ff_count'] < ff::MAX_FFF_FF_COUNT && $time >= $row['fff_time_start']) $free += ff::MAX_FFF_FF_COUNT-$row['ff_count'];\n\n\t\t\t\techo '\n\t\t\t\t<tr'.(++$i % 2 == 0 ? ' class=\"color\"' : '').'>\n\t\t\t\t\t'.(access::has(\"mod\") ? '<td><form action=\"'.$__server['relative_path'].'/ff/\" method=\"post\"><input type=\"hidden\" name=\"fff_id\" value=\"'.$row['fff_id'].'\">'.show_sbutton(\"Deaktiver\", 'name=\"comp_deactivate\"').'</form></td>' : '').'\t\t\t\t\n\t\t\t\t\t<td>'.ess::$b->date->get($row['fff_time_expire'])->format(date::FORMAT_SEC).'</td>\n\t\t\t\t\t<td>'.game::timespan(max(time(), $row['fff_time_expire']), game::TIME_ABS).'</td>\n\t\t\t\t\t<td>'.$row['ff_count'].'</td>\n\t\t\t\t\t<td>'.$row['ff_count_active'].'</td>\n\t\t\t\t\t'.($time >= $row['fff_time_start'] ?\n\t\t\t\t\t\t'<td><a href=\"'.$__server['relative_path'].'/ff/?fff_id='.$row['fff_id'].'\">Vis »</a></td>' :\n\t\t\t\t\t\t'<td>Starter om '.game::timespan(max(time(), $row['fff_time_start']), game::TIME_ABS).'</td>').'\n\t\t\t\t</tr>';\n\t\t\t}\n\t\t\t\n\t\t\t$create_link = login::$logged_in\n\t\t\t\t? ($this->up->rank['number'] < ff::$types[1]['priority_rank'][1]\n\t\t\t\t\t? ' - Du har ikke høy nok rank til å opprette et broderskap'\n\t\t\t\t\t: ' - Du har høy nok rank - <a href=\"'.$__server['relative_path'].'/ff/?create\">Opprett broderskap »</a>')\n\t\t\t\t: '';\n\n\t\t\techo '\n\t\t\t</tbody>\n\t\t</table>'.($free > 0 ? '\n\t\t<p class=\"c\" style=\"margin-top: 0\">Det er '.$free.' '.fword(\"ledig konkurranseplass\", \"ledige konkurranseplasser\", $free).$create_link.'</p>' : '\n\t\t<p class=\"c\" style=\"margin-top: 0\">Ingen ledige konkurranseplasser.</p>').'\n\t\t'.(access::has(\"mod\") ? '<p style=\"margin-top: 20px;\"><form action=\"'.$__server['relative_path'].'/ff/\" method=\"post\">'.show_sbutton(\"Opprett ny broderskapskonkurranse\", 'name=\"new_comp\"').'</form></p>' : '').'\n\t</div>\n</div>';\n\t\t}\n\t\t\n\t\t// topp rangerte familier\n\t\tif (count($ff_list) > 0)\n\t\t{\n\t\t\techo '\n<div class=\"bg1_c xxsmall bydeler_br bydeler_ressurs bydeler_ressurs_familie\">\n\t<h1 class=\"bg1\">Topp rangerte broderskap<span class=\"left\"></span><span class=\"right\"></span></h1>\n\t<div class=\"bg1\">\n\t\t<dl class=\"dd_right\">';\n\t\t\t\n\t\t\t$i = 0;\n\t\t\tforeach ($ff_list as $ff)\n\t\t\t{\n\t\t\t\t$title = \"For rank til medlemmer: \".$ff->data['ff_points_up'].\" - For firma til medlemmer: \".$ff->data['ff_points_ff'].\" - For drap: \".$ff->data['ff_points_kill'];\n\t\t\t\t\n\t\t\t\techo '\n\t\t\t<dt><a href=\"'.ess::$s['rpath'].'/ff/?ff_id='.$ff->id.'\">'.htmlspecialchars($ff->data['ff_name']).'</a></dt>\n\t\t\t<dd title=\"'.$title.'\">'.game::format_num($ff->data['ff_points_sum']).' poeng</dd>';\n\t\t\t\t\n\t\t\t\t// vis kun 3 beste familiene\n\t\t\t\tif (++$i == 3) break;\n\t\t\t}\n\t\t\t\n\t\t\techo '\n\t\t</dl>\n\t\t<p class=\"c\"><a href=\"'.ess::$s['rpath'].'/node/19\">Poenginformasjon</a></p>\n\t</div>\n</div>';\n\t\t}\n\t\t\n\t\tkf_menu::$data['bydeler_menu'] = true;\n\t\t\n\t\techo '\n<h1 class=\"bydeler\">Bydeler</h1>\n<div class=\"bydeler\">\n\t<div class=\"bydeler_kart bydeler_br\">\n\t\t<img src=\"'.STATIC_LINK.'/themes/kofradia/drammen_stor.gif\" class=\"bydeler_bg\" />\n\t\t'.implode('', $data).'\n\t</div>';\n\t\t\n\t\t// har vi noen FF som ikke er plassert?\n\t\tif ($bydeler_0['active'])\n\t\t{\n\t\t\techo '\n\t<div class=\"bydeler_uplassert bydeler_br\">';\n\t\t\t\n\t\t\tforeach ($bydeler_0['ff'] as $row)\n\t\t\t{\n\t\t\t\t$type = ff::$types[$row['ff_type']];\n\t\t\t\t\n\t\t\t\t// familie\n\t\t\t\tif ($row['ff_type'] == 1)\n\t\t\t\t{\n\t\t\t\t\t$eier = count($row['eier']) == 0 ? 'Ingen leder av broderskapet' : 'Styres av '.self::list_players($row['eier']);\n\t\t\t\t\t$class = \"bydeler_ressurs_familie\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// firma\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif ($type['type'] == \"bomberom\")\n\t\t\t\t\t{\n\t\t\t\t\t\t$eier = count($row['eier']) == 0 ? 'Ingen styrer bomberommet' : 'Styres av '.self::list_players($row['eier']);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$eier = count($row['eier']) == 0 ? 'Ingen eier av firmaet' : 'Eies av '.self::list_players($row['eier']);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$class = \"bydeler_ressurs_firma bydeler_ressurs_{$type['type']}firma\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\techo '\n\t\t<div class=\"bydeler_uplassert_boks\">\n\t\t\t<a href=\"'.$__server['relative_path'].'/ff/?ff_id='.$row['ff_id'].'\" class=\"bydeler_ressurs '.$class.'\">\n\t\t\t\t<img class=\"bydeler_ressurs_graphic\" src=\"'.htmlspecialchars(ff::get_logo_path_static($row['ff_id'], $row['ff_logo_path'])).'\" alt=\"\" />\n\t\t\t\t<span class=\"bydeler_ressurs_tekst\">\n\t\t\t\t\t'.htmlspecialchars($row['ff_name']).'<span class=\"bydeler_owner\"><br />\n\t\t\t\t\t'.$eier.'</span>\n\t\t\t\t</span>\n\t\t\t\t<img class=\"bydeler_ressurs_t\" src=\"'.htmlspecialchars($type['bydeler_graphic']).'\" alt=\"'.htmlspecialchars($type['bydeler_alt_pre']).htmlspecialchars($row['ff_name']).'\" />\n\t\t\t</a>\n\t\t</div>';\n\t\t\t}\n\t\t\t\n\t\t\techo '\n\t</div>';\n\t\t}\n\t\t\n\t\techo '\n\t<div class=\"bydeler_kart bydeler_steder\">\n\t\t<img src=\"'.STATIC_LINK.'/themes/kofradia/drammen_stor.gif\" class=\"bydeler_bg\" />';\n\t\t\n\t\tforeach ($this->bydeler as $bydel)\n\t\t{\n\t\t\tif ($bydel['active'] == 0) continue;\n\t\t\t\n\t\t\tif ($this->up)\n\t\t\t{\n\t\t\t\t$distance = self::calc_travel_distance($this->up->bydel, $bydel);\n\t\t\t\t\n\t\t\t\t$taxi_price = round($distance * self::TAXI_PRICE_KM);\n\t\t\t\t$taxi_points = round($distance * self::TAXI_POINTS_KM * $this->up->rank['number']);\n\t\t\t}\n\t\t\t\n\t\t\techo '\n\t\t<div class=\"map_unit'.($this->up && $this->up->bydel['id'] == $bydel['id'] ? ' map_active' : '').'\" style=\"left: '.$bydel['bydel_x'].'%; top: '.$bydel['bydel_y'].'%\" id=\"map_link_'.$bydel['id'].'\">\n\t\t\t<div class=\"map_title\">\n\t\t\t\t<p class=\"map_link\"><b><b><b>'.htmlspecialchars($bydel['name']).'</b></b></b></p>\n\t\t\t\t<div class=\"bydeler_sted\">\n\t\t\t\t\t<div class=\"bydeler_sted_info\">\n\t\t\t\t\t\t<dl class=\"dd_right\">\n\t\t\t\t\t\t\t<dt>Spillere</dt>\n\t\t\t\t\t\t\t<dd>'.game::format_number($bydel['num_players']).'</dd>\n\t\t\t\t\t\t\t<dt>Penger i omløp</dt>\n\t\t\t\t\t\t\t<dd>'.game::format_cash($bydel['sum_money']).'</dd>\n\t\t\t\t\t\t</dl>';\n\t\t\t\n\t\t\tif (!$this->up) {} // ignorer anonyme brukere\n\t\t\telseif ($this->up->bydel['id'] == $bydel['id'])\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t\t\t<p>Du befinner deg i denne bydelen.</p>';\n\t\t\t}\n\t\t\telseif ($this->up->fengsel_check())\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t\t\t<p>Du er i fengsel og kan ikke reise.</p>';\n\t\t\t}\n\t\t\telseif ($this->up->bomberom_check())\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t\t\t<p>Du er i bomberom og kan ikke reise.</p>';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo '\n\t\t\t\t\t\t<div class=\"bydeler_reise c\">\n\t\t\t\t\t\t\t<form action=\"bydeler\" method=\"post\">\n\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"reise\" value=\"'.htmlspecialchars($bydel['name']).'\" />';\n\t\t\t\t\n\t\t\t\t// taxi\n\t\t\t\tif (!$this->up->energy_check(self::TAXI_ENERGY*1.3))\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>Du har ikke nok energi til å ta taxi hit.</p>';\n\t\t\t\t}\n\t\t\t\telseif ($this->up->data['up_points'] < $taxi_points * 2) // må ha dobbelte\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>Du har ikke høy nok rank til å ta taxi hit.</p>';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>'.show_sbutton(\"Ta taxi (\".game::format_cash($taxi_price).\", \".game::format_number(round($taxi_points)).\" poeng)\", 'name=\"taxi\"').'</p>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// gta\n\t\t\t\tif ($this->gta_count == 0)\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>Du har ingen biler i bydelen du oppholder deg i for å reise med.</p>';\n\t\t\t\t}\n\t\t\t\telseif (!$this->gta_garage[$bydel['id']]['garage'])\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>Det er ingen garasje i denne bydelen.</p>';\n\t\t\t\t}\n\t\t\t\telseif ($this->gta_garage[$bydel['id']]['garage_free'] == 0)\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>Det er ingen ledige plasser i garasjen i denne bydelen.</p>';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>'.show_sbutton(\"Kjør egen bil\", 'name=\"gta\"').'</p>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// teleportere\n\t\t\t\tif (access::is_nostat())\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t\t\t\t<p>'.show_sbutton(\"Teleporter hit (nostat)\", 'name=\"teleporter\"').'</p>';\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\techo '\n\t\t\t\t\t\t\t</form>\n\t\t\t\t\t\t</div>';\n\t\t\t}\n\t\t\t\n\t\t\techo '\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>';\n\t\t}\n\t\t\n\t\techo '\n\t</div>';\n\t\t\n\t\techo '\n</div>';\n\t\t\n\t\tess::$b->page->load();\n\t}",
"function index()\n {\n redirect(URL_SITE_SETTINGS);\n }",
"public function fssPublicArea()\n {\n require_once plugin_dir_path(dirname(__FILE__)) . 'public/class-fast-social-sharing-public.php';\n\n $fssPublic = new FastSocialSharingPublic();\n $fssPublic->run();\n }",
"function sloodle_autoreg_enabled_site()\n {\n return (bool)sloodle_get_config('sloodle_allow_autoreg');\n }",
"function isReady();",
"public static function load_site()\n\t{\n\t\tTC::load_plugins();\n\t\t\n\t\tinclude(TC_APPLICATION_PATH.'/init.site.php');\n\t}",
"public function checkAcquiaHosted() {\n return isset($_SERVER['AH_SITE_ENVIRONMENT'], $_SERVER['AH_SITE_NAME']);\n }",
"function index(){\n if(!Auth::is_valid()){\n Router::redirect(\"sesion/index\");\n }\n \n\t\tFlash::info(\"Sistema para la gestión de la internacionalización\");\n\t}",
"function admin_page_load() {\n\t\t$this->jetpack->admin_page_load();\n\t}",
"function wfc_is_dev(){\n if( isset($_COOKIE['wfc_admin_cake']) ){\n if( $_COOKIE['wfc_admin_cake'] == base64_encode( 'show_all' ) ){\n return true;\n }\n return false;\n }\n return false;\n }",
"public function index()\n\t{\n\t\t//on récupère l'URL\n\t\t//echo \"on cherche : \".$this->guid;\n\t\t\n\t\t\n\t}",
"public function afmelden()\n {\n return true;\n }",
"function onload(){\n\t\treturn true;\n\t}",
"function getting_start_content(){\n\n\t\t\t\t$options = apply_filters('gdlr_core_getting_start_option', array(), $this->settings['slug']);\n\n\t\t\t\techo '<div class=\"gdlr-core-getting-start-wrap clearfix\" >';\n\t\t\t\t$this->get_header($options['header']);\n\n\t\t\t\t$this->get_content($options['content']);\n\t\t\t\techo '</div>'; // gdlr-core-getting-start-wrap\n\n\t\t\t\tif( isset($_GET['phpinfo']) ) print_r( phpinfo() );\n\t\t\t}",
"function main()\t{\n\t\t\t\t\tglobal $BE_USER,$LANG,$BACK_PATH,$TCA_DESCR,$TCA,$CLIENT,$TYPO3_CONF_VARS;\n\n\t\t\t\t\t// Access check!\n\t\t\t\t\t// The page will show only if there is a valid page and if this page may be viewed by the user\n\t\t\t\t\t$this->pageinfo = t3lib_BEfunc::readPageAccess($this->id,$this->perms_clause);\n\t\t\t\t\t$access = is_array($this->pageinfo) ? 1 : 0;\n\t\t\t\t\n\t\t\t\t\tif (($this->id && $access) || ($BE_USER->user['admin'] && !$this->id))\t{\n\n\t\t\t\t\t\t\t// Draw the header.\n\t\t\t\t\t\t$this->doc = t3lib_div::makeInstance('mediumDoc');\n\t\t\t\t\t\t$this->doc->backPath = $BACK_PATH;\n\t\t\t\t\t\t$this->doc->form='<form action=\"\" method=\"post\" enctype=\"multipart/form-data\">';\n\n\t\t\t\t\t\t\t// JavaScript\n\t\t\t\t\t\t$this->doc->JScode = '\n\t\t\t\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\t\t\t\tscript_ended = 0;\n\t\t\t\t\t\t\t\tfunction jumpToUrl(URL)\t{\n\t\t\t\t\t\t\t\t\tdocument.location = URL;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tfunction confirmURL(text,URL){\n\t\t\t\t\t\t\t\t\tvar agree=confirm(text);\n\t\t\t\t\t\t\t\t\tif (agree) {\n\t\t\t\t\t\t\t\t\t\tjumpToUrl(URL);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t';\n\t\t\t\t\t\t$this->doc->postCode='\n\t\t\t\t\t\t\t<script language=\"javascript\" type=\"text/javascript\">\n\t\t\t\t\t\t\t\tscript_ended = 1;\n\t\t\t\t\t\t\t\tif (top.fsMod) top.fsMod.recentIds[\"web\"] = 0;\n\t\t\t\t\t\t\t</script>\n\t\t\t\t\t\t';\n\n\t\t\t\t\t\t$headerSection = $this->doc->getHeader('pages', $this->pageinfo, $this->pageinfo['_thePath']) . '<br />'\n\t\t\t\t\t\t\t. $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.path') . ': ' . t3lib_div::fixed_lgd_cs($this->pageinfo['_thePath'], -50);\n\n\t\t\t\t\t\t$this->content.=$this->doc->startPage($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->header($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t\t\t\t$this->content.=$this->doc->section('',$this->doc->funcMenu($headerSection,t3lib_BEfunc::getFuncMenu($this->id,'SET[function]',$this->MOD_SETTINGS['function'],$this->MOD_MENU['function'])));\n\t\t\t\t\t\t$this->content.=$this->doc->divider(5);\n\n\n\t\t\t\t\t\t// Render content:\n\t\t\t\t\t\t$this->moduleContent();\n\n\n\t\t\t\t\t\t// ShortCut\n\t\t\t\t\t\tif ($BE_USER->mayMakeShortcut())\t{\n\t\t\t\t\t\t\t$this->content.=$this->doc->spacer(20).$this->doc->section('',$this->doc->makeShortcutIcon('id',implode(',',array_keys($this->MOD_MENU)),$this->MCONF['name']));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// If no access or if ID == zero\n\n\t\t\t\t\t\t$this->doc = t3lib_div::makeInstance('mediumDoc');\n\t\t\t\t\t\t$this->doc->backPath = $BACK_PATH;\n\n\t\t\t\t\t\t$this->content.=$this->doc->startPage($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->header($LANG->getLL('title'));\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(5);\n\t\t\t\t\t\t$this->content.=$this->doc->spacer(10);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}",
"function homeURL() {\n return 'mist.ac.bd';\n }",
"protected function _check(){\n\t\tif(Configure::read('Database.installed') == 'true') {\n\t\t\t$this->Session->setFlash(__(\"Website already configured\"));\n\t\t\t$this->redirect('/');\t\n\t\t}\n\t}",
"public function err_page()\n {\n $site = new SiteContainer($this->db);\n\n $site->printHeader();\n $site->printNav();\n echo \"An Error has occured and your request could not be completed. Return <a href=\\\"index.php\\\">Home</a>\";\n $site->printFooter();\n }",
"function putAfficheSite(){\n\tglobal $translator;\n\t//$oSite = new Cms_site($_SESSION['idSite_travail']);\n\tprint(\"<br /><div class='arbo' align='left'>\".$translator->getTransByCode('sitedetravail').\": \".$_SESSION['site'].\"</div><br />\");\n}",
"public function index() {\n\t\t$this->landing();\n\t}",
"function PinWeb()\n {\n $app = $this->TzParam();\n $app = $app->get('tz_pin_approve');\n $red = JFactory::getApplication();\n $id_pins = $this->model->InsertPinHost();\n if ($app == 1 and ($id_pins or $id_pins != \"not_image\")) {\n $url = JRoute::_(TZ_PinboardHelperRoute::getPinboardDetailRoute($id_pins));\n $message_a = JText::_('COM_TZ_PINBOARD_ERRO_DETAIL');\n } else {\n $url = JUri::current();\n $message_a = JText::_('COM_TZ_PINBOARD_ERRO_DETAIL_APP');\n }\n $error = JText::_(\"COM_TZ_PINBOARD_ERROR_NOT_IMAGE_LABEL\");\n if (!$id_pins or $id_pins == \"not_image\") {\n $red->redirect($url, $error, 'error');\n } else {\n $red->redirect($url, $message_a, 'success');\n }\n\n\n }",
"public function getSiteStatus()\n {\n return 'OK';\n }"
] | [
"0.6756627",
"0.6387464",
"0.61186796",
"0.60787076",
"0.606088",
"0.59528416",
"0.5886097",
"0.5850987",
"0.58474964",
"0.58326226",
"0.5808646",
"0.5792767",
"0.5722895",
"0.56914544",
"0.5663136",
"0.5660144",
"0.5655534",
"0.56254447",
"0.56025696",
"0.55848736",
"0.55764145",
"0.5550136",
"0.55386084",
"0.5538046",
"0.5533343",
"0.5531079",
"0.55279374",
"0.5527178",
"0.5522819",
"0.55155617",
"0.5507193",
"0.54988843",
"0.5491132",
"0.5475809",
"0.54622597",
"0.5460337",
"0.54422295",
"0.54377127",
"0.5434164",
"0.54293466",
"0.5421707",
"0.54204744",
"0.5414581",
"0.5409563",
"0.54091674",
"0.5405376",
"0.5401482",
"0.5400457",
"0.53989464",
"0.5392763",
"0.53915775",
"0.53914267",
"0.5379561",
"0.53789234",
"0.53729266",
"0.53642875",
"0.53615564",
"0.53594506",
"0.5355029",
"0.5350931",
"0.534302",
"0.5339935",
"0.5337988",
"0.5336485",
"0.53332406",
"0.53319967",
"0.53273916",
"0.5326715",
"0.5322487",
"0.5322405",
"0.5321557",
"0.5316079",
"0.53149533",
"0.53126514",
"0.531213",
"0.5310023",
"0.53097755",
"0.53097755",
"0.53097755",
"0.53066224",
"0.53037816",
"0.5301478",
"0.52947474",
"0.528813",
"0.5275829",
"0.5273415",
"0.5268253",
"0.5263379",
"0.5260608",
"0.525971",
"0.52548057",
"0.5244887",
"0.52442425",
"0.5242777",
"0.5242536",
"0.52352726",
"0.5233215",
"0.523315",
"0.5230958",
"0.5230027",
"0.5228657"
] | 0.0 | -1 |
Test snake function with dash delimiter. | public function testSnakeWithDashes(): void
{
foreach (static::$snakeDashes as $input => $expected) {
self::assertEquals($expected, (new Str())->snake($input, '-'));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function testSnakeWithUnderscores(): void\n {\n $this->processSimpleTests('snake', static::$snakeUnderscore);\n }",
"public function snake($word);",
"public function testSnakeCase2()\n {\n $this->assertEquals(Str::snakeCase('foo bar'), 'foo_bar');\n }",
"public function testSnakeCase1()\n {\n $this->assertEquals(Str::snakeCase('étoile filante'), 'etoile_filante');\n }",
"function dashed($s) {\n return underscore($s, '-');\n }",
"public static function snake()\n {\n return self::generate('_');\n }",
"static function snake(string $s, string $delimiter = '_'): string {\n if (ctype_lower($s)) {\n return $s;\n }\n $s = preg_replace('/\\s+/u', '', ucwords($s));\n\n return static::lower(preg_replace('/(.)(?=[A-Z])/u', '$1'.$delimiter, $s));\n }",
"public function testStudly4()\n {\n $this->assertEquals(Str::studly('foo-bar'), 'FooBar');\n }",
"function testStartsWith2 ()\n\t{\n\t\t\t$input1 = \"Genevieve\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"public static function snake($string)\n {\n $string = preg_replace('#([A-Z\\d]+)([A-Z][a-z])#', '\\1_\\2', self::camel($string));\n $string = preg_replace('#([a-z\\d])([A-Z])#', '\\1_\\2', $string);\n\n return strtolower(strtr($string, '-', '_'));\n }",
"public function getDashPattern() {}",
"public function snakeCase($input)\n {\n return strtolower(preg_replace('/(.)([A-Z])/', '$1-$2', $input));\n }",
"public function testCamelCase5()\n {\n $this->assertEquals(Str::camelCase('foo-bar'), 'fooBar');\n }",
"public function testStartsWith2()\n {\n $this->assertFalse(Str::startsWith('foo', 'y'));\n }",
"function snake_case($value, $delimiter = '_')\n\t{\n\t\treturn Illuminate\\Support\\Str::snake($value, $delimiter);\n\t}",
"public static function snakeCase($str) {}",
"public function testStartsWith1()\n {\n $this->assertTrue(Str::startsWith('foo', 'f'));\n }",
"function non_karakter($a){\n if(preg_match(\"/^[A-Za-z0-9 -]*$/\",$a)){\n return false;\n }\n return true;\n}",
"public static function snake($str)\n {\n return self::mechanize($str, '_');\n }",
"public function testRegressionIssue2UsernameRegexDoesntSupportHyphens()\n {\n $regex = TestableAtWrapper::getQueueRegex();\n $test_strings = [\n '17 Mon Nov 15 10:55:00 2010 a simon',\n '18 Mon Nov 15 10:55:00 2010 a simons-username',\n '2 2010-11-15 10:53 a root',\n '3 2010-11-15 10:54 a root-username-',\n ];\n $m = 0;\n foreach ($test_strings as $test) {\n $m += preg_match($regex, $test);\n }\n $this->assertSame($m, count($test_strings));\n }",
"public function alpha_dash($str): bool\n\t{\n return (bool)preg_match('#^[a-z0-9_-]+$#i', $str);\n }",
"function testStartsWith3 ()\n\t{\n\t\t\t$input1 = null;\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"function testStartsWith6 ()\n\t{\n\t\t\t$input1 = \"Barry is a programmer\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertTrue (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"function testStartsWith1 ()\n\t{\n\t\t\t$input1 = \"Barry\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertTrue (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"function testStartsWith5 ()\n\t{\n\t\t\t$input1 = null;\n\t\t\t$input2 = null;\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"function snake_case($value, $delimiter = '_')\n {\n return Str::snake($value, $delimiter);\n }",
"public function alphaNumericDashUnderscore($check) {\n // have to extract the value to make the function generic\n $value = array_values($check);\n $value = $value[0];\n \n return preg_match('/^[a-zA-Z0-9_ \\-]*$/', $value);\n }",
"public function testStartsWith3()\n {\n $this->assertFalse(Str::startsWith('foo', ''));\n }",
"static public function dasherize($str)\n\t{\n\t\t$str = lcfirst($str);\n\t\treturn strtolower(preg_replace('/([A-Z]+)/', '-$1', $str));\n\t}",
"function camelCaseToSnakeCase(string $input): string\n{\n return preg_replace('/[-\\.]/', '_', strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $input)));\n}",
"function snake_case($value, $delimiter = '_')\n {\n $key = $value.$delimiter;\n\n if (!ctype_lower($value)) {\n $value = preg_replace('/\\s+/u', '', $value);\n $value = mb_strtolower(preg_replace('/(.)(?=[A-Z])/u', '$1'.$delimiter, $value));\n }\n\n return $value;\n }",
"public function testValidateSpecialChars(): void\n {\n $this->assertFalse($this->validate('some-text-123'));\n }",
"function toSnakeCase($string)\n{\n $regex = ['/([a-z\\d])([A-Z])/', '/([^_])([A-Z][a-z])/'];\n\n return strtolower(preg_replace($regex, '$1_$2', $string));\n}",
"public function testGenerateFormatWithoutReplaceChar()\n {\n $key = Keys::Generate(\"hdjas-skajdkasj-dj938-8848\");\n }",
"public function alphaNumericDashUnderscore($check) {\n\t\t// have to extract the value to make the function generic\n\t\t$value = array_values($check);\n\t\t$value = $value[0];\n\t\n\t\treturn preg_match('/^[a-zA-Z0-9_ \\-]*$/', $value);\n\t}",
"function remove_dashes($string)\n{\n return str_replace('-', ' ', $string);\n\n}",
"protected function validateAlphaDash($value){\n\t\treturn preg_match('/^[\\pL\\pM\\pN_-]+$/u', $value);\n\t}",
"public function testCamelCase1()\n {\n $this->assertEquals(Str::camelCase('foo bar'), 'fooBar');\n }",
"public function camelToSnake() : Manipulator\n {\n $modifiedString = '';\n\n foreach (str_split($this->string, 1) as $character) {\n $modifiedString .= ctype_upper($character) ? '_' . $character : $character;\n }\n\n return new static(mb_strtolower($modifiedString));\n }",
"public function testSlug3()\n {\n $this->assertEquals(Str::slug('foo bar'), 'foo-bar');\n }",
"public function testStudly3()\n {\n $this->assertEquals(Str::studly('foo_bar'), 'FooBar');\n }",
"function testStartsWith4 ()\n\t{\n\t\t\t$input1 = 'Barry';\n\t\t\t$input2 = null;\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"public static function snake($value, $delimiter = '_')\n\t{\n\t\t$replace = '$1'.$delimiter.'$2';\n\n\t\treturn ctype_lower($value) ? $value : strtolower(preg_replace('/(.)([A-Z])/', $replace, $value));\n\t}",
"public function testStudly1()\n {\n $this->assertEquals(Str::studly('foo'), 'Foo');\n }",
"public static function snake(string $value, string $delimiter = '_'): string\n {\n $value = preg_replace('/\\s+/u', '', ucwords($value));\n\n return static::lower(preg_replace('/(.)(?=[A-Z])/u', '$1' . $delimiter, $value ?? ''));\n }",
"private function transformDash($string)\n {\n $pos = strpos($string, '-');\n\n if (false !== $pos) {\n $len = strlen($string) - 1;\n $string = substr($string, 0, $pos) . ucfirst(substr($string, $pos + 1, $len - $pos));\n\n if (strpos($string, '-') !== false) {\n $string = $this->transformDash($string);\n }\n }\n\n return $string;\n }",
"function first_character($str){\n $val = str_replace('-',\" \",$str);\n $val = ucfirst($val);\n return $val;\n}",
"function alphaNumericDashUnderscore($data) {\n\t\treturn preg_match('|^[0-9a-zA-Z_-]*$|', $data['code']);\n\t}",
"function seo($s) {\n $c = array (' ','--','---','----');\n $d = array ('-','/','\\\\',',','.','#',':',';','\\'','\"','[',']','{','}',')','(','|','`','~','!','@','%','$','^','&','*','=','?','+','“','”','’');\n\n $e = str_replace($d, ' ', $s); // Hilangkan karakter yang telah disebutkan di array $d\n \n $f = strtolower(str_replace($c, '-', $e)); // Ganti spasi dengan tanda - dan ubah hurufnya menjadi kecil semua\n return $f;\n}",
"public static function snake(string $str, string $c = \"/\"): string {\n\t\t\treturn str_replace($c, \"_\", strtolower(trim($str, \"/\\\\ \")));\n\t\t}",
"public function testLower()\n {\n $this->assertEquals(Str::lower('foo'), 'foo');\n }",
"function isSetName($input) {\n return (preg_match(\"~(^[[:alnum:] -]+$)~\", $input));\n }",
"public function test_slugify() {\n $this->assertEquals('normal_string', DynamicMenu_Menu::slugify('normal string'));\n // converts hyphen to underscore\n $this->assertEquals('hyphened_string', DynamicMenu_Menu::slugify('hyphened-string'));\n // converts caps to lowercase\n $this->assertEquals('normal_title', DynamicMenu_Menu::slugify('Normal Title'));\n // any other special character to no space\n $this->assertEquals('havingsymbol', DynamicMenu_Menu::slugify('having@symbol'));\n $this->assertEquals('quotedstring', DynamicMenu_Menu::slugify('quoted\\'string')); \n }",
"public function testValuableSingleLetter() : void\n {\n $word = 'f';\n $this->assertEquals(4, score($word));\n }",
"function _alpha_dash_dot($field)\r\n\t{\r\n\t\treturn ( ! preg_match('/^([\\.-a-z0-9_-])+$/i', $this->{$field})) ? FALSE : TRUE;\r\n\t}",
"public function testStudly2()\n {\n $this->assertEquals(Str::studly('foo bar'), 'FooBar');\n }",
"public function testCamelCase4()\n {\n $this->assertEquals(Str::camelCase('foo_bar'), 'fooBar');\n }",
"function underscore($s, $sep = '_') {\n\n $s = preg_replace('/([a-z0-9])([A-Z])/', '$1_$2', $s);\n $s = preg_replace('/([0-9])([a-z])/', '$1_$2', $s);\n $s = preg_replace('/([a-zA-Z])([0-9])/', '$1_$2', $s);\n $s = preg_replace('/[\\s_-]+/', $sep, $s);\n\n return strtolower($s);\n\n }",
"public function testLowercaseSingleLetter() : void\n {\n $word = 'a';\n $this->assertEquals(1, score($word));\n }",
"function string_url_safe($string,$dash=true,$strlower=true) \n{\n if ($dash)\n $str = str_replace('-', ' ', $string);\n else\n $str = $string;\n\n $str = remove_sign($str);\n\n // remove any duplicate whitespace, and ensure all characters are alphanumeric\n if ($dash)\n $str = preg_replace(array('/\\s+/', '/[^A-Za-z0-9\\-]/'), array('-', ''), $str);\n\n // lowercase and trim\n if ($strlower)\n $str = trim(strtolower($str), \" \\t\\n\\r\\0\\x0B\\-\");\n return $str;\n}",
"public static function toDashSeparated($input)\r\n {\r\n \t// Convert spaces and underscores to dashes.\r\n \t$input = preg_replace('#[ \\-_]+#', '-', $input);\r\n \r\n \treturn $input;\r\n }",
"public static function sluggify($string, $dashprefix) {\n $string = wordpress_util::sanitize_title_with_dashes($string);\n return ($dashprefix ? '-' : '').$string;\n }",
"public function underscore($camelCasedWord);",
"public function testStudly5()\n {\n $this->assertEquals(Str::studly('Foobar'), 'Foobar');\n }",
"public function testAutonameNegativeLength() {\r\n\t\t$autoname1=autoname(-23);\r\n\t\t$this->assertEquals(0, strlen($autoname1));\r\n\t}",
"public function hasHyphen(): bool\n\t{\n\t\treturn preg_match('/-/', $this->getValue());\n\t}",
"public function testSlug2()\n {\n $this->assertEquals(Str::slug('L\\'avion'), 'lavion');\n }",
"public function testCamelCase2()\n {\n $this->assertEquals(Str::camelCase('Foo bar'), 'fooBar');\n }",
"public function testStartsWithALetter()\n {\n $route = new Route(['Csíkszereda', 'Székelyudvarhely', 'Szentegyáza', 'Lövéte', 'Almás'], 1);\n\n $results = $route->startsWith('S');\n\n $this->assertCount(2, $results);\n $this->assertContains('Székelyudvarhely', $results);\n $this->assertContains('Szentegyáza', $results);\n\n // Empty array if passed even\n $this->assertEmpty($route->startsWith('U'));\n }",
"public function testContains1()\n {\n $this->assertTrue(Str::contains('foo', 'oo'));\n }",
"public static function GetPascalCaseFromDashed ($dashed = '');",
"protected function camelToSnake($camel, $splitter = '_')\n {\n $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel));\n return strtolower($camel);\n }",
"public static function GetDashedFromPascalCase ($pascalCase = '');",
"function first_character($string){\n $val = str_replace('-',\" \",$string);\n /*Para convertir la primera letra en mayuscula*/\n $val = ucfirst($val);\n return $val;\n}",
"public function testIsEvenPassString()\n {\n \t$this->assertFalse(isEven(\"fail\"));\n }",
"public function underscoredToLowerCamelCaseDataProvider() {}",
"public static function camelToSnake(string $string): string {\n return strtolower(preg_replace('/(?<!^)[A-Z]/', \"_$0\", $string));\n }",
"public function snakeCase($value, $delimiter = '_')\n {\n if (!ctype_lower($value)) {\n $value = strtolower(preg_replace('/(.)(?=[A-Z])/', '$1'.$delimiter, $value));\n $value = preg_replace('/\\s+/', '', $value);\n }\n\n return $value;\n }",
"function DehyphenateISSN ($table_name, $issn_field = \"issn\") {\n print $issn_field;\n $q = \"UPDATE `$table_name` SET $issn_field = concat( substr( $issn_field, 1, 4 ), substr( $issn_field, 6, 4 ) ) WHERE $issn_field LIKE '%-%'\";\n if (mysql_query($q)) { return true; }\n else return false;\n}",
"public static function snake($value, $delimiter = '_'){\n $key = $value . $delimiter;\n\n if(isset(static::$snakeCache[$key])){\n return static::$snakeCache[$key];\n }\n\n if(!ctype_lower($value)){\n $value = preg_replace('/\\s+/', '', $value);\n\n $value = strtolower(preg_replace('/(.)(?=[A-Z])/', '$1' . $delimiter, $value));\n }\n\n return static::$snakeCache[$key] = $value;\n }",
"function fs_to_slug($string){\r\n\treturn strtolower(trim(preg_replace('/[^A-Za-z0-9-]+/', '-', $string)));\r\n}",
"public function testCamelCase3()\n {\n $this->assertEquals(Str::camelCase('foobar'), 'foobar');\n }",
"public function testMacro() {\n Inflector::macro('caps', function($value) {\n return strtoupper($value);\n });\n\n $this->assertEquals('FOOBAR', Inflector::caps('foObAr'));\n\n try {\n Inflector::lowers('foObAr');\n $this->assertTrue(false);\n } catch (Exception $e) {\n $this->assertTrue(true);\n }\n }",
"public function testSlug1()\n {\n $this->assertEquals(Str::slug('étoile'), 'etoile');\n }",
"function test_smart_dashes( $input, $output ) {\n\t\treturn $this->assertEquals( $output, wptexturize( $input ) );\n\t}",
"public function setDashPattern($pattern) {}",
"static function kebab(string $s): string {\n return static::snake($s, '-');\n }",
"private function camelsSnake( $camel )\t{\n $this->debugBacktrace();\n\t\treturn strtolower( preg_replace( '/(?<=[a-z])([A-Z])|([A-Z])(?=[a-z])/', '_$1$2', $camel ) );\n\t}",
"function camelToHyphens($value)\n {\n return strtolower(preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1-', $value));\n }",
"public static function snake($val, string $sep = '_'): string\n {\n return self::snakeCase($val, $sep);\n }",
"function mycheck_alphadash($str)\n{\n if (preg_match('/^[a-z0-9_-]+$/i', $str)) {\n return true;\n } else {\n return false;\n }\n}",
"public function testGetChars()\n {\n $this->todo('stub');\n }",
"function formatTextHyphen(String $text) {\n return strtr($text, \" \", \"-\");\n }",
"public function hyphenationProvider()\n {\n return [[true], [false]];\n }",
"public function alpha_dash_space( $str ){\n\t\t\n\t\t$this->CI->form_validation->set_message( 'alpha_dash_space', lang( 'validation_rule_alpha_dash_spaces' ) );\n\t\t\n\t\treturn ( ! preg_match( '/^[a-z0-9 ._\\-]+$/i', $str ) ) ? FALSE : TRUE;\n\t\t\n\t}",
"public function testLongMixedCaseWord() : void\n {\n $word = 'OxyphenButazone';\n $this->assertEquals(41, score($word));\n }",
"public function dasherize()\n {\n return $this->delimit('-');\n }",
"public function testStaircaseWithTwoSteps()\n {\n $steps = 2;\n $this->assertEquals(' #' . PHP_EOL\n . '##',\n $this->staircase->printStaircase($steps));\n }",
"private function process_alphanumhyphen($value)\n {\n return ! preg_match('/[^a-zA-Z0-9-]/', $value);\n }",
"public function testToCamelCase() {\r\n $this->assertEquals('myTest', $this->_utils->toCamelCase('my test'));\r\n $this->assertEquals('myTest', $this->_utils->toCamelCase('my_test'));\r\n $this->assertEquals('myTest', $this->_utils->toCamelCase('my-test'));\r\n\r\n $this->assertEquals('myTestWithMoreWords', $this->_utils->toCamelCase('my test With-More_Words'));\r\n $this->assertEquals('myTestWithMoreWords', $this->_utils->toCamelCase('myTest_With-more_Words'));\r\n }"
] | [
"0.68611574",
"0.6761117",
"0.62922984",
"0.62291056",
"0.6168118",
"0.61582583",
"0.6030664",
"0.5918212",
"0.59175646",
"0.5872404",
"0.58319354",
"0.5828152",
"0.5815072",
"0.58124965",
"0.57932174",
"0.57455605",
"0.5731739",
"0.57248795",
"0.5714138",
"0.5685054",
"0.56735826",
"0.5654446",
"0.56421703",
"0.56330955",
"0.5596561",
"0.55761707",
"0.5565488",
"0.5556226",
"0.5539602",
"0.55191904",
"0.550844",
"0.5478293",
"0.5473335",
"0.54549485",
"0.5452661",
"0.544647",
"0.54460263",
"0.54441106",
"0.54391915",
"0.5432219",
"0.5415593",
"0.54030913",
"0.5402325",
"0.5400044",
"0.5380538",
"0.5367544",
"0.5357797",
"0.535532",
"0.53552014",
"0.5352791",
"0.53396076",
"0.5314551",
"0.5293489",
"0.5285078",
"0.5283451",
"0.5277737",
"0.526662",
"0.5261767",
"0.5258487",
"0.524",
"0.5234444",
"0.52321136",
"0.52279526",
"0.5217013",
"0.52087545",
"0.52064747",
"0.52036023",
"0.5193598",
"0.5185842",
"0.5183703",
"0.51799583",
"0.51772463",
"0.51759243",
"0.5172681",
"0.51712835",
"0.5163143",
"0.51487744",
"0.5145459",
"0.5142615",
"0.51393634",
"0.5135233",
"0.5133572",
"0.5132469",
"0.51277477",
"0.51254284",
"0.51238626",
"0.5122106",
"0.51170796",
"0.5108666",
"0.5108524",
"0.5102218",
"0.50995594",
"0.50712085",
"0.5062818",
"0.5059599",
"0.50584364",
"0.505639",
"0.5052284",
"0.50511914",
"0.50489956"
] | 0.74796385 | 0 |
Test snake function with underscore delimiter. | public function testSnakeWithUnderscores(): void
{
$this->processSimpleTests('snake', static::$snakeUnderscore);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static function snake()\n {\n return self::generate('_');\n }",
"function underscore($s, $sep = '_') {\n\n $s = preg_replace('/([a-z0-9])([A-Z])/', '$1_$2', $s);\n $s = preg_replace('/([0-9])([a-z])/', '$1_$2', $s);\n $s = preg_replace('/([a-zA-Z])([0-9])/', '$1_$2', $s);\n $s = preg_replace('/[\\s_-]+/', $sep, $s);\n\n return strtolower($s);\n\n }",
"public function snake($word);",
"public function underscore($camelCasedWord);",
"function str_underscore($str)\n{\n return strtolower(preg_replace('/(?<=\\\\w)([A-Z]+)/', '_\\\\1', $str));\n}",
"function underscore($str) {\n return preg_replace('/[\\s]+/', '_', trim(extension_loaded('mbstring') ? mb_strtolower($str) : strtolower($str)));\n}",
"function alpha_underscore($str)\n\t{\n\t\treturn ( ! preg_match(\"/^([a-z0-9_])+$/i\", $str)) ? FALSE : TRUE;\n\t}",
"public function testSnakeCase2()\n {\n $this->assertEquals(Str::snakeCase('foo bar'), 'foo_bar');\n }",
"public static function underscore($str) {\n $str[0] = strtolower($str[0]);\n $func = create_function('$c', 'return \"_\" . strtolower($c[1]);');\n return preg_replace_callback('/([A-Z])/', $func, $str);\n }",
"public static function snake($str)\n {\n return self::mechanize($str, '_');\n }",
"static public function underscore($str)\n\t{\n\t\t$str = lcfirst($str);\n\t\treturn strtolower(preg_replace('/([A-Z]+)/', '_$1', $str));\n\t}",
"public function testSnakeWithDashes(): void\n {\n foreach (static::$snakeDashes as $input => $expected) {\n self::assertEquals($expected, (new Str())->snake($input, '-'));\n }\n }",
"function toSnakeCase($string)\n{\n $regex = ['/([a-z\\d])([A-Z])/', '/([^_])([A-Z][a-z])/'];\n\n return strtolower(preg_replace($regex, '$1_$2', $string));\n}",
"function underscore(){\n\t\t$out = $this->_copy();\n\t\t$out->_String4 = mb_strtolower(preg_replace(\"/([a-z0-9\\p{Ll}])([A-Z\\p{Lu}])/u\",\"\\\\1_\\\\2\",$this->_String4));\n\t\treturn $out;\n\t}",
"protected function isUnderscoreName($string)\n {\n // If there are space in the name, it can't be valid.\n if (strpos($string, ' ') !== false) {\n return false;\n }\n\n // Remove the first _ if it exists. This is allowed\n // for very low level \"private\" internal functions.\n // Only need to check against _ because already looked for __\n if (preg_match('|^_|', $string) === 1) {\n $string = substr($string, 1);\n }\n\n $validName = true;\n $nameBits = explode('_', $string);\n\n if (preg_match('|^[a-z]|', $string) === 0) {\n // Name does not begin with a capital letter.\n $validName = false;\n } else {\n foreach ($nameBits as $bit) {\n if ($bit{0} !== strtolower($bit{0})) {\n $validName = false;\n break;\n }\n }\n }\n\n return $validName;\n\n }//end isUnderscoreName()\n\n /**\n * Processes the tokens outside the scope.\n *\n * @param PHP_CodeSniffer_File $phpcsFile The file being processed.\n * @param int $stackPtr The position where this token was\n * found.\n *\n * @return void\n */\n protected function processTokenOutsideScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr)\n {\n $functionName = $phpcsFile->getDeclarationName($stackPtr);\n if ($functionName === null) {\n return;\n }\n // disallow __function_name() \n if (preg_match('|^__|', $functionName) === 1) {\n $error = \"Function name \\\"$functionName\\\" cannot start with '__'.\";\n $phpcsFile->addError($error, $stackPtr);\n } else if ($this->isUnderscoreName($functionName) === false) {\n $error = \"Function name \\\"$functionName\\\" is not in underscore format\";\n $phpcsFile->addError($error, $stackPtr);\n }\n\n }//end processTokenOutsideScope()\n\n /**\n * Processes the tokens within the scope.\n *\n * @param PHP_CodeSniffer_File $phpcsFile The file being processed.\n * @param int $stackPtr The position where this token was\n * found.\n * @param int $currScope The position of the current scope.\n *\n * @return void\n */\n protected function processTokenWithinScope(PHP_CodeSniffer_File $phpcsFile, $stackPtr, $currScope)\n {\n $methodName = $phpcsFile->getDeclarationName($stackPtr);\n if ($methodName === null) {\n // Ignore closures.\n return;\n }\n\n $className = $phpcsFile->getDeclarationName($currScope);\n\n // Is this a magic method. IE. is prefixed with \"__\".\n if (preg_match('|^__|', $methodName) !== 0) {\n $magicPart = substr($methodName, 2);\n if (in_array($magicPart, $this->magicMethods) === false) {\n $error = \"Method name \\\"$className::$methodName\\\" is invalid; only PHP magic methods should be prefixed with a double underscore\";\n $phpcsFile->addError($error, $stackPtr);\n }\n\n return;\n }\n\n $methodProps = $phpcsFile->getMethodProperties($stackPtr);\n $isPublic = ($methodProps['scope'] === 'private') ? false : true;\n $scope = $methodProps['scope'];\n $scopeSpecified = $methodProps['scope_specified'];\n\n // If the scope was specified on the method, then the method must be\n // camel caps and an underscore should be checked for. If it wasn't\n // specified, treat it like a public method and remove the underscore\n // prefix if there is one because we cant determine if it is private or\n // public.\n $testMethodName = $methodName;\n if ($scopeSpecified === false && $methodName{0} === '_') {\n $testMethodName = substr($methodName, 1);\n }\n\n // Elgg modification: force CodeSniffer to see all methods as public\n if (PHP_CodeSniffer::isCamelCaps($testMethodName, false, true, false) === false) {\n if ($scopeSpecified === true) {\n $error = ucfirst($scope).\" method name \\\"$className::$methodName\\\" is not in underscore and camel caps format\";\n } else {\n $error = \"Method name \\\"$className::$methodName\\\" is not in camel caps format\";\n }\n\n $phpcsFile->addError($error, $stackPtr);\n return;\n }\n\n }//end processTokenWithinScope()\n\n\n}",
"static function spaceOrUnderscore( $pattern ) {\n\t\treturn str_replace( ' ', '[ _]', $pattern );\n\t}",
"public function testSpaceIsRepresentedByUnderscore()\n {\n $encoder = new QpMimeHeaderEncoder();\n $this->assertEquals('a_b', $encoder->encodeString('a b'), 'Spaces can be represented by more readable underscores as per RFC 2047.');\n }",
"static function snake(string $s, string $delimiter = '_'): string {\n if (ctype_lower($s)) {\n return $s;\n }\n $s = preg_replace('/\\s+/u', '', ucwords($s));\n\n return static::lower(preg_replace('/(.)(?=[A-Z])/u', '$1'.$delimiter, $s));\n }",
"function camelCaseToUnderscore($str) {\n $str[0] = strtolower($str[0]);\n $func = create_function('$c', 'return \"_\" . strtolower($c[1]);');\n return preg_replace_callback('/([A-Z])/', $func, $str);\n }",
"function put_underscore($str, $lower = true)\n {\n if (!$lower) {\n return str_replace(' ', '_', $str);\n }\n return strtolower(str_replace(' ', '_', $str));\n }",
"public function testSnakeCase1()\n {\n $this->assertEquals(Str::snakeCase('étoile filante'), 'etoile_filante');\n }",
"public function useUnderscores() {\n return $this->_use_underscore;\n }",
"function validName($name) {\n \n return preg_replace('/\\s+/', '_',$name);\n\n}",
"public function underscore($word)\n\t{\n\t\treturn strtolower(preg_replace('/[^A-Z^a-z^0-9]+/','_',\n\t\t\t\tpreg_replace('/([a-zd])([A-Z])/','1_2',\n\t\t\t\t\tpreg_replace('/([A-Z]+)([A-Z][a-z])/','1_2',$word))));\n\t}",
"public static function underscore($word, $sep = '_', $strtolower = true)\n {\n $sep = empty($sep) ? '_' : $sep;\n $return = preg_replace('/[^A-Z^a-z^0-9]+/', $sep,\n preg_replace('/([a-z\\d])([A-Z])/','\\1_\\2',\n preg_replace('/([A-Z]+)([A-Z][a-z])/','\\1_\\2',$word)));\n return $strtolower ? strtolower($return) : $return;\n }",
"function snake_case($value, $delimiter = '_')\n\t{\n\t\treturn Illuminate\\Support\\Str::snake($value, $delimiter);\n\t}",
"function u_ ($s) {\n $out = preg_replace('/([^_])([A-Z])/', '$1_$2', $s);\n return 'u_' . strtolower($out);\n}",
"public static function snake(string $str, string $c = \"/\"): string {\n\t\t\treturn str_replace($c, \"_\", strtolower(trim($str, \"/\\\\ \")));\n\t\t}",
"public static function snakeCase($str) {}",
"public function camelCaseToLowerCaseUnderscoredDataProvider() {}",
"public static function snake($string)\n {\n $string = preg_replace('#([A-Z\\d]+)([A-Z][a-z])#', '\\1_\\2', self::camel($string));\n $string = preg_replace('#([a-z\\d])([A-Z])#', '\\1_\\2', $string);\n\n return strtolower(strtr($string, '-', '_'));\n }",
"function alphaNumericDashUnderscore($data) {\n\t\treturn preg_match('|^[0-9a-zA-Z_-]*$|', $data['code']);\n\t}",
"public function underscoredToLowerCamelCaseDataProvider() {}",
"function camelCaseToSnakeCase(string $input): string\n{\n return preg_replace('/[-\\.]/', '_', strtolower(preg_replace('/(?<!^)[A-Z]/', '_$0', $input)));\n}",
"function cut_underscore($str, $uc = true)\n {\n if (!$uc) {\n return str_replace('_', '', $str);\n }\n return ucwords(str_replace(' ', '_', $str));\n }",
"public function testStartsWith1()\n {\n $this->assertTrue(Str::startsWith('foo', 'f'));\n }",
"protected function _underscore($name) {\n return strtolower(preg_replace('/(.)([A-Z])/', \"$1_$2\", $name));\n }",
"public function testStartsWith2()\n {\n $this->assertFalse(Str::startsWith('foo', 'y'));\n }",
"public static function underscore($word) {\n return strtolower(preg_replace('#([a-z])([A-Z])#', '\\\\1_\\\\2', $word));\n }",
"private function isUnderscoreName($string)\n {\n $validName = true;\n // Check that the name only contains legal characters.\n if (preg_match('/[^a-z_0-9]/', $string)) {\n $validName = false;\n }\n return $validName;\n }",
"function hasu_ ($v) {\n return substr($v, 0, 2) === 'u_';\n}",
"function testStartsWith2 ()\n\t{\n\t\t\t$input1 = \"Genevieve\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"function testStartsWith6 ()\n\t{\n\t\t\t$input1 = \"Barry is a programmer\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertTrue (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"public static function toUnderscoreSeparated($input)\r\n {\r\n \t// Convert spaces and dashes to underscores.\r\n \t$input = preg_replace('#[ \\-_]+#', '_', $input);\r\n \r\n \treturn $input;\r\n }",
"public function camelToSnake() : Manipulator\n {\n $modifiedString = '';\n\n foreach (str_split($this->string, 1) as $character) {\n $modifiedString .= ctype_upper($character) ? '_' . $character : $character;\n }\n\n return new static(mb_strtolower($modifiedString));\n }",
"public function testMacro() {\n Inflector::macro('caps', function($value) {\n return strtoupper($value);\n });\n\n $this->assertEquals('FOOBAR', Inflector::caps('foObAr'));\n\n try {\n Inflector::lowers('foObAr');\n $this->assertTrue(false);\n } catch (Exception $e) {\n $this->assertTrue(true);\n }\n }",
"function remove_underscore($string)\n{\n return str_replace('_', ' ', $string);\n}",
"function testStartsWith1 ()\n\t{\n\t\t\t$input1 = \"Barry\";\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertTrue (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"public function testUnderscoresTranslation()\n {\n $this->markTestIncomplete('MAGETWO-1012: i18n Improvements - Localization/Translations');\n }",
"public function underscored()\n {\n return $this->delimit('_');\n }",
"public static function underscore($wordToCheck)\n {\n $tmp = $wordToCheck;\n $tmp = str_replace('::', '/', $tmp);\n $tmp = self::pregtr($tmp,\n array(\n '/([A-Z]+)([A-Z][a-z])/' => '\\\\1_\\\\2',\n '/([a-z\\d])([A-Z])/' => '\\\\1_\\\\2'\n )\n );\n\n return strtolower($tmp);\n }",
"function snake_case($value, $delimiter = '_')\n {\n $key = $value.$delimiter;\n\n if (!ctype_lower($value)) {\n $value = preg_replace('/\\s+/u', '', $value);\n $value = mb_strtolower(preg_replace('/(.)(?=[A-Z])/u', '$1'.$delimiter, $value));\n }\n\n return $value;\n }",
"public function alphaNumericDashUnderscore($check) {\n // have to extract the value to make the function generic\n $value = array_values($check);\n $value = $value[0];\n \n return preg_match('/^[a-zA-Z0-9_ \\-]*$/', $value);\n }",
"public static function snakecase($str) {\n return strtolower(preg_replace('/[[:upper:]]/','_\\0',$str));\n }",
"function snake_case($value, $delimiter = '_')\n {\n return Str::snake($value, $delimiter);\n }",
"public static function GetUnderscoredFromPascalCase ($pascalCase = '');",
"private function _camelToSnakeCase($str)\n {\n $str = preg_replace('/([a-z])([A-Z])/', \"\\\\1_\\\\2\", $str);\n $str = strtolower($str);\n return $str;\n }",
"function snakeToCamelCase(string $validator_name): string\r\n {\r\n $str_arr = explode(\"_\", $validator_name);\r\n if (count($str_arr) === 1) {\r\n return $str_arr[0];\r\n }\r\n $func_name = array_reduce(\r\n $str_arr,\r\n function ($current, $word) use ($validator_name) {\r\n $pos = strpos($word, $validator_name);\r\n if (!empty($current)) {\r\n $word[0] = strtoupper($word[0]);\r\n }\r\n return $current . $word;\r\n },\r\n \"\"\r\n );\r\n\r\n return $func_name;\r\n }",
"public static function snake($value, $delimiter = '_')\n\t{\n\t\t$replace = '$1'.$delimiter.'$2';\n\n\t\treturn ctype_lower($value) ? $value : strtolower(preg_replace('/(.)([A-Z])/', $replace, $value));\n\t}",
"public function testStartsWith3()\n {\n $this->assertFalse(Str::startsWith('foo', ''));\n }",
"public function testStudly3()\n {\n $this->assertEquals(Str::studly('foo_bar'), 'FooBar');\n }",
"function testStartsWith3 ()\n\t{\n\t\t\t$input1 = null;\n\t\t\t$input2 = \"Barry is a programmer\";\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"private function underscore(string $name)\n {\n $name = preg_replace_callback(\n '/[A-Z][A-Z]+/',\n function ($matches) {\n if (strlen($matches[0]) === 2) {\n return ucfirst(strtolower($matches[0]));\n } else {\n $lastChar = substr($matches[0], strlen($matches[0]) - 1, 1);\n $subject = substr($matches[0], 0, strlen($matches[0]) - 1);\n\n return ucfirst(strtolower($subject)).$lastChar;\n }\n },\n $name\n );\n\n return Inflector::tableize($name);\n }",
"public function alphaNumericDashUnderscore($check) {\n\t\t// have to extract the value to make the function generic\n\t\t$value = array_values($check);\n\t\t$value = $value[0];\n\t\n\t\treturn preg_match('/^[a-zA-Z0-9_ \\-]*$/', $value);\n\t}",
"protected function underscore($string)\n {\n return Strings::camelCaseToLowerCaseUnderscored($string);\n }",
"public static function snake(string $value, string $delimiter = '_'): string\n {\n $value = preg_replace('/\\s+/u', '', ucwords($value));\n\n return static::lower(preg_replace('/(.)(?=[A-Z])/u', '$1' . $delimiter, $value ?? ''));\n }",
"private function _key($key) {\n if (empty($key)) {\n return false;\n }\n $key = preg_replace('/[\\s]+/', '_', strtolower(trim(str_replace(array(DIRECTORY_SEPARATOR, '/', '.'), '_', strval($key)))));\n return $key;\n }",
"function testStartsWith5 ()\n\t{\n\t\t\t$input1 = null;\n\t\t\t$input2 = null;\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"public static function underscore($camel_cased_word) {\n $camel_cased_word = preg_replace('/([A-Z]+)([A-Z])/','\\1_\\2',$camel_cased_word);\n return strtolower(preg_replace('/([a-z])([A-Z])/','\\1_\\2',$camel_cased_word));\n }",
"public static function camelCaseToUnderscore($text, bool $numbersUnderscore = true) : string\n {\n $numbers = $numbersUnderscore ? '0-9' : '';\n $pattern = '/[A-Z'.$numbers.']([A-Z'.$numbers.'](?![a-z]))*/';\n\n return ltrim(strtolower(preg_replace($pattern, '_$0', $text)), '_');\n }",
"public function humanize($lowerCaseAndUnderscoredWord);",
"public static function snake($val, string $sep = '_'): string\n {\n return self::snakeCase($val, $sep);\n }",
"function convertNamingFromUnderlineToCamelCase($text,$firstLetterLowerCase=true) {\n\t\t\tpreg_match_all('/(^[a-zA-Z])|(_[a-zA-Z])/', $text, $matches, PREG_PATTERN_ORDER);\n\t\n\t\t\tfor ($i = 0; $i < count($matches[0]); $i++) {\n\t\t\t\t\t$original=$matches[0][$i];\n\t\t\t\t\t$originals[]=$original;\n\t\t\t\t\tif ($i==0 and $firstLetterLowerCase)\n\t\t\t\t\t\t\t$replacement=str_replace('_','',$matches[0][$i]);\n\t\t\t\t\telse\n\t\t\t\t\t\t\t$replacement=strtoupper(str_replace('_','',$matches[0][$i]));\n\t\t\t\t\t$replacements[]=$replacement;\n\t\t\t}\n\t\n\t\t\treturn str_replace($originals,$replacements,$text);\n\t}",
"public function underscoredToUpperCamelCaseDataProvider() {}",
"public function replaceUnderscore($method = false)\n {\n if (!$method) {\n return false;\n }\n $arr = explode('_', $method);\n $new = '';\n if (count($arr)) {\n foreach ($arr as $key => $value) {\n $new .= ucfirst($value);\n }\n }\n\n return $new;\n }",
"public function testCamelCase4()\n {\n $this->assertEquals(Str::camelCase('foo_bar'), 'fooBar');\n }",
"function _e($word) {\n echo __($word);\n}",
"private function camelsSnake( $camel )\t{\n $this->debugBacktrace();\n\t\treturn strtolower( preg_replace( '/(?<=[a-z])([A-Z])|([A-Z])(?=[a-z])/', '_$1$2', $camel ) );\n\t}",
"public static function snakeCase(string $input): string\n\t{\n\t\tif (preg_match('/[A-Z]/', $input) === 0) {\n\t\t\treturn $input;\n\t\t}\n\t\treturn strtolower(preg_replace_callback('/([a-z])([A-Z])/', fn(array $arr) => $arr[1] . '_' . strtolower($arr[2]), $input));\n\t}",
"static function camelCaseToUnderScore($string) \r\n {\r\n $start = 0;\r\n $data = array();\r\n $lower = strtolower($string);\r\n for ($k = 1; $k < strlen($string); $k++) {\r\n if ($lower[$k] != $string[$k]) {\r\n if ($k != $start) {\r\n $data[] = strtolower(substr($string, $start, $k - $start));\r\n $start = $k;\r\n }\r\n }\r\n }\r\n $data[] = strtolower(substr($string, $start, $k - $start));\r\n return implode('_', $data);\r\n }",
"public static function alm_filters_replace_underscore($value){\n\t \t$underscore = strpos($value, '_');\n\t \tif($underscore){\n\t\t \t$charToReplace = substr($value, $underscore+1, 1);\n\t\t \t$value = str_replace('_'.$charToReplace, strToUpper($charToReplace), $value);\n\t \t}\n\n\t \t// If value is year, month or day add '_' before to prevent 404s. e.g. _year\n\t \t$value = ($value === 'year' || $value === 'month' || $value === 'day' || $value === 'author') ? '_'. $value : $value;\n\t \treturn $value;\n \t}",
"protected function camelToSnake($camel, $splitter = '_')\n {\n $camel=preg_replace('/(?!^)[[:upper:]][[:lower:]]/', '$0', preg_replace('/(?!^)[[:upper:]]+/', $splitter.'$0', $camel));\n return strtolower($camel);\n }",
"function remove_underscores($word, $sub = ' ')\n {\n return str_replace('_', $sub, $word);\n }",
"protected function _camelToSnake($str)\n {\n return ltrim(strtolower(preg_replace('/[A-Z]/', '_$0', $str)), '_');\n }",
"function underscore_to_camelcase($string){\n\t$cameled = '';\n\tfor($i=0; $i < strlen($string); $i++){\n\t\tif($string[$i] == '_'){\n\t\t\t$cameled .= strtoupper($string[$i+1]);\n\t\t\t$i++;\n\t\t}else{\n\t\t\t$cameled .= $string[$i];\n\t\t}\n\t}\n\treturn $cameled;\n}",
"public function snakeCase($stub)\n {\n return preg_replace_callback('/ public function test.+/', function ($matches) {\n return strtolower(preg_replace('/([A-Z])/', '_$0', $matches[0]));\n }, $stub);\n }",
"public static function snake($value, $delimiter = '_'){\n $key = $value . $delimiter;\n\n if(isset(static::$snakeCache[$key])){\n return static::$snakeCache[$key];\n }\n\n if(!ctype_lower($value)){\n $value = preg_replace('/\\s+/', '', $value);\n\n $value = strtolower(preg_replace('/(.)(?=[A-Z])/', '$1' . $delimiter, $value));\n }\n\n return static::$snakeCache[$key] = $value;\n }",
"protected function _underscore($name) {\n if (isset(self::$_underscoreCache[$name])) return self::$_underscoreCache[$name];\n $result = strtolower(trim(preg_replace('/([A-Z]|[0-9]+)/', \"_$1\", $name), '_'));\n self::$_underscoreCache[$name] = $result;\n return $result;\n }",
"private function getFunctionName($key) {\n return preg_replace_callback('/(?:^|_)(.?)/', function($m) { strtoupper($m[1]); },$key);\n }",
"public static function isSnakeCase( $var_name ) {\n\t\treturn (bool) preg_match( '/^[a-z0-9_]+$/', $var_name );\n\t}",
"public function camelize($lowerCaseAndUnderscoredWord);",
"function dashed($s) {\n return underscore($s, '-');\n }",
"function dot_to_underscore (string $dotted)\n{\n return str_replace('.', '_', $dotted);\n}",
"function nice_filename($name)\r\n{\r\n return preg_replace(\"(\\W)\", '_', strtolower($name));\r\n}",
"function testStartsWith4 ()\n\t{\n\t\t\t$input1 = 'Barry';\n\t\t\t$input2 = null;\n\t\t\t$this->assertFalse (\n\t\t\t\t\t$this->stringUtils->startsWith ($input2, $input1));\n\t}",
"function underscoreToCamelCase($str, $capitalise_first_char = false) {\n if($capitalise_first_char) {\n $str[0] = strtoupper($str[0]);\n }\n $func = create_function('$c', 'return strtoupper($c[1]);');\n return preg_replace_callback('/_([a-z])/', $func, $str);\n }",
"function _($string) {\n\t\treturn $string;\n\t}",
"function _name_check($str){\n }",
"public static function camelCase2underscore(string $key): string\n {\n $str = lcfirst($key);\n return strtr($str, [\n 'A' => '_a', 'B' => '_b', 'C' => '_c', 'D' => '_d',\n 'E' => '_e', 'F' => '_f', 'G' => '_g', 'H' => '_h',\n 'I' => '_i', 'J' => '_j', 'K' => '_k', 'L' => '_l',\n 'M' => '_m', 'N' => '_n', 'O' => '_o', 'P' => '_p',\n 'Q' => '_q', 'R' => '_r', 'S' => '_s', 'T' => '_t',\n 'U' => '_u', 'V' => '_v', 'W' => '_w', 'X' => '_x',\n 'Y' => '_y', 'Z' => '_z',\n ]);\n }",
"public function test_insertPrefix()\n\t{\n\t}"
] | [
"0.69975686",
"0.6944281",
"0.68872434",
"0.6786461",
"0.6759755",
"0.6683658",
"0.66639155",
"0.6581483",
"0.6554406",
"0.655261",
"0.6519515",
"0.6476716",
"0.642526",
"0.64116347",
"0.6402788",
"0.6363868",
"0.63379586",
"0.63342345",
"0.62720424",
"0.6247595",
"0.62353957",
"0.6233995",
"0.61579984",
"0.61500597",
"0.61384517",
"0.6088037",
"0.6086932",
"0.6071499",
"0.6063592",
"0.60526067",
"0.6044273",
"0.60414046",
"0.60398906",
"0.60312515",
"0.6030411",
"0.60281134",
"0.6024633",
"0.59783095",
"0.5977593",
"0.5968705",
"0.59545684",
"0.5948904",
"0.59453046",
"0.59355736",
"0.59255314",
"0.5923318",
"0.5911915",
"0.5908805",
"0.59033215",
"0.58964574",
"0.5887328",
"0.58577275",
"0.58519703",
"0.58388805",
"0.5837102",
"0.58356416",
"0.5829151",
"0.5815222",
"0.58135295",
"0.58113825",
"0.580729",
"0.5804993",
"0.5802701",
"0.578212",
"0.5773402",
"0.5744223",
"0.5739639",
"0.5726054",
"0.57255524",
"0.57185215",
"0.5704406",
"0.5701723",
"0.57004946",
"0.56956625",
"0.56793964",
"0.5678062",
"0.56691957",
"0.56648827",
"0.56586045",
"0.56505114",
"0.5650113",
"0.56439173",
"0.56373286",
"0.5629295",
"0.5624076",
"0.56114227",
"0.5609099",
"0.56004816",
"0.55904025",
"0.55828846",
"0.5581185",
"0.5566078",
"0.55654883",
"0.5561227",
"0.55594414",
"0.55439353",
"0.553658",
"0.5536069",
"0.5528396",
"0.55245084"
] | 0.7959954 | 0 |
Sets the current value and key of this iterator. | public function send($value, $key = null)
{
$this->chunk = null;
$this->value = $value;
$this->key = $key;
$this->valid = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __set($key, $value) {\n $this->pos = 0;\n $this->data[$key] = $value;\n $this->keys = array_keys($this->data);\n }",
"public function __set($key,$value) {\n $cur = $this->key();\n if(!isset($this->_changed[$cur]) || !is_array($this->_changed[$cur])){\n $this->_changed[$cur]=[];\n }\n if($this->$key != $value){\n $this->_changed[$cur][$key] = $value;\n }\n $this->_data[$cur][$key] = $value;\n }",
"public function set($key, $value)\n\t{\n\t\t$this->values[$this->block][$key] = $value;\n\t}",
"public function set ($key, $value) {\n\t\t$this->root = $this->setLoop($key, $value, $this->root);\n\t}",
"public function setValue($key, $value);",
"public function setValue($key, $value);",
"public function __set($key, $val);",
"public function set( $key , $value ) {\n\t\teval( '$this->items' . $this->nodelize( $key ) . ' = $value;' );\n\t}",
"public function __set($key, $value);",
"public function set( $key, $value );",
"public function set( $key, $value );",
"public function __set($key, $value)\n {\n $this->offsetSet($id, $value);\n }",
"function SetKey( $i ) { $this->_key = $i; $this->SetValue('_key', $i ); }",
"public function set ( $key, &$value ) { \t$this->storage[$key] = $value; }",
"public function __set($key, $value)\n {\n\n $this->setData($key, $value);\n\n }",
"public function __set($key, $value)\n {\n }",
"public function __set($key, $value)\n {\n }",
"public function __set($key, $value)\n {\n }",
"public function __set($key, $value)\n {\n }",
"abstract public function set ($key, $value);",
"public function set($key, $value)\r\n {\r\n $this->values[$key] = $value;\r\n }",
"public function set ($key, $value);",
"public function __set($key, $value) {\n $this[$key] = $value;\n }",
"public function __set($key, $value) {\n\t}",
"public function __set( $key, $value ) {\n\t\t$this->offsetSet( $key, $value );\n\t}",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"public function set($key, $value);",
"abstract public function set($key, $value);",
"abstract public function set($key, $value);",
"public function set(string $key, $value): void\n {\n\t\t$this->values[$key] = $value;\n\t}",
"public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }",
"public function _set($key, $value)\n {\n $this->data[$key] = $value;\n }",
"public function __set($key, $value){\n\t\t\t\t$this->$key = $value;\n\t\t\t}",
"public function __set($key, $value){\n\t\t\t\t$this->$key = $value;\n\t\t\t}",
"function __set( $key, $value ) {\n\t\t$this->{$key} = $value;\n\t}",
"public function __set($key, $value)\n {\n $this->offsetSet($key, $value);\n }",
"public function __set($key, $value) {\n $this->setField($key, $value);\n }",
"public function __set(string $key, $value): void\n\t{\n\t\tif ($this->parentIsSet($key)) {\n\t\t\t$this->parentSet($key, $value);\n\n\t\t} else {\n\t\t\t$this->data[$key] = $value;\n\t\t}\n\t}",
"public function __set($key, $value) {\n\t\t$this->set($key, $value); \n\t}",
"public function __set($key, $value) {\n\t\t$this->set($key, $value); \n\t}",
"public function set($key, $value)\n\t{\n\t\techo \"Original set called\\n\";\n\t}",
"public function set($key,$value) {\n $this->_data[$key]=$value;\n }",
"function setKey($value) {\r\n $this->key = $value;\r\n }",
"public function __set( $key, $value ) {\n\n\t\t$this->_data[ $key ] = $value;\n\t}",
"public function set($key, $value) {\n\n }",
"public function setData($key, $value);",
"public function setData($key, $value);",
"public function __set($key, $value)\n {\n $this->data[$key] = $value;\n }",
"public static function Set($key, $val);",
"public function offsetSet($key, $value): void\n {\n $this->selection->offsetSet($key, $value);\n }",
"public function __set( string $key, $value ) {\n\n\t\t$this->offsetSet( $key, $value );\n\n\t}",
"public function __set($key, $value)\n\t{\n\t\t$this[$key] = $value;\n\t}",
"public function __set($key, $value){\n \t$this->$key = $value;\n }",
"public function __set($key, $value) {\n\t\t$this->set($key, $value);\n\t}",
"public function __set($key, $value)\r\n {\r\n $this->set($key, $value);\r\n }",
"public function set ($key, $value) {\r\n\t\t$this->_data[$key] = $value;\r\n\t}",
"public function __set($key, $value)\n\t{\n\t\t$this->data[$key] = $value;\n\t}",
"function set($key, $val)\n {\n $this->keyvalList[$key] = $val;\n // save to DB, or _SESSION[__JC_SESSION] or something\n $_SESSION[$key] = $val;\n }",
"public function __set(string $key, $val): void;",
"function set($key, $newvalue) {\n\t\t$this->valuemap[$key]= $newvalue;\n\t}",
"public function set($key, $value) {\n\t\t$this->_value = Hash::set($this->_value, $key, $value);\n\n\t\treturn $this;\n\t}",
"public function offsetSet($key, $value)\n {\n $this->with($key, $value);\n }",
"public function __set($k, $v) {\n $this->_values[$k] = $v;\n }",
"public final function __set($key, $value)\n {\n $this->set($key, $value);\n }",
"function setValue($key, $val)\r\n {\r\n $this->container[$key] = $val;\r\n }",
"public function offsetSet($key,$value) {\n\t\t$this->sets[$key] = $value;\n\t}",
"public function __set($key, $value)\n {\n self::$data[$key] = $value;\n }",
"public function __set($key, $value)\n {\n $this->with($key, $value);\n }",
"public function __set($key, $value)\n {\n $this->with($key, $value);\n }",
"public function set($key, $value)\n {\n if ($this->_doValidate) {\n // validate the value passed\n ValueValidator::validate($value);\n }\n\n if ($key[0] === '_') {\n if ($key === self::ENTRY_ID) {\n $this->setInternalId($value);\n return;\n }\n\n if ($key === self::ENTRY_KEY) {\n $this->setInternalKey($value);\n return;\n }\n\n if ($key === self::ENTRY_REV) {\n $this->setRevision($value);\n return;\n }\n\n if ($key === self::ENTRY_ISNEW) {\n $this->setIsNew($value);\n return;\n }\n }\n\n if (!$this->_changed) {\n if (!isset($this->_values[$key]) || $this->_values[$key] !== $value) {\n // set changed flag\n $this->_changed = true;\n }\n }\n\n // and store the value\n $this->_values[$key] = $value;\n }",
"public function set($key, $value) {\n\t\t$this->data[$key] = $value;\n\t}",
"public function set($key, $val)\n {\n $this->start();\n $this->_store[$key] = $val;\n }",
"public function __set($key, $value) {\n\t\t$this->{\"set_{$key}\"}($value);\n\t}",
"function offsetSet($key, $value)\n\t{\n\t\t$this->fields[$key] = $value;\n\t}",
"public function _set($key, $value){\r\n\t\t$this->_attributes[$key] = $value;\r\n\t}",
"public function setCurrentVal($value)\n {\n $this->data[$this->currentValKey] = $value;\n }",
"static function set($key, $value)\n {\n self::$values[$key] = $value;\n }",
"public function set($key, $value)\n {\n $this->_elements[$key] = $value;\n }",
"public function set( $key, $value )\n {\n $this->contents[ $key ] = $value;\n }",
"function __set ($key, $value)\n {\n $this->A[$key] = $value;\n }",
"public function offsetSet($key, $value)\n {\n $this->setArgument($key, $value);\n }",
"public function offsetSet($key, $value) {}",
"public function set(string $key, $value): void {\n\t\t$this->data[$key] = $value;\n\t}",
"public function __set($key, $value)\n {\n $this->set($key, $value);\n }",
"public function __set($key, $value)\n {\n $this->set($key, $value);\n }",
"public function __set($key, $value)\n {\n $this->set($key, $value);\n }"
] | [
"0.6592253",
"0.6345107",
"0.63379973",
"0.63128173",
"0.6262059",
"0.6262059",
"0.61976045",
"0.6197492",
"0.6192567",
"0.6104332",
"0.6104332",
"0.61032295",
"0.6052387",
"0.60451525",
"0.60350764",
"0.60338074",
"0.6033738",
"0.6033738",
"0.6033533",
"0.6009817",
"0.59938604",
"0.59753615",
"0.59703887",
"0.5963526",
"0.59565645",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5950577",
"0.5946444",
"0.5946444",
"0.59350395",
"0.59294003",
"0.59294003",
"0.5925091",
"0.5925091",
"0.5923865",
"0.59018856",
"0.59006697",
"0.5895886",
"0.58840984",
"0.58840984",
"0.58741236",
"0.58734494",
"0.5870691",
"0.5869254",
"0.5856408",
"0.58539456",
"0.58539456",
"0.58482534",
"0.58459675",
"0.5838083",
"0.58349895",
"0.58329374",
"0.58305234",
"0.5828754",
"0.58282036",
"0.58162254",
"0.58078444",
"0.5803985",
"0.57975817",
"0.5794381",
"0.5786461",
"0.5785109",
"0.57834935",
"0.5776478",
"0.5775621",
"0.57717836",
"0.5769945",
"0.576899",
"0.576899",
"0.57683194",
"0.5767305",
"0.5764431",
"0.5764158",
"0.57618624",
"0.57579947",
"0.5748018",
"0.5745545",
"0.5741874",
"0.5741536",
"0.5740571",
"0.5734322",
"0.5731971",
"0.5730458",
"0.5729854",
"0.5729854",
"0.5729854"
] | 0.0 | -1 |
Stores an array or traversable object from which values and keys for this iterator will be fetched. | public function sendMany($chunk)
{
$this->chunk = $chunk;
reset($this->chunk);
$this->key = key($this->chunk);
$this->value = current($this->chunk);
$this->valid = true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getIterator(): Traversable\n {\n return new ArrayIterator($this->store);\n }",
"public function getIterator() {\n\t\treturn new \\ArrayObject($this->data);\n\t}",
"public function getIterator()\n {\n return new ArrayObject($this->_data);\n }",
"public function asTraversable();",
"public function getIterator()\n {\n return new ArrayObject((array)$this->attributes);\n }",
"public function getIterator(): Traversable\n {\n return new ArrayIterator($this->attributes);\n }",
"public function getIterator() {\n return new \\ArrayIterator($this->getValues());\n }",
"public function getIterator()\n {\n return new \\ArrayObject($this->toArray());\n }",
"public function getIterator()\n {\n return new \\ArrayIterator($this->hash);\n }",
"public function getIterator() {\r\n return new ArrayIterator($this -> _data);\r\n }",
"public function getData()\n {\n if ($this->_cache === null) {\n $this->_cache = $this->asArray(); // Throws.\n }\n\n if ($this->_type !== null) {\n foreach ($this->_cache as &$value) {\n if (is_array($value)) {\n $value = new $this->_type($value); // Throws.\n }\n }\n }\n\n return $this->_cache;\n }",
"function getIterator() {\r\n\t\treturn new \\ArrayIterator($this->data);\r\n\t}",
"public function getIterator()\r\n {\r\n return new ArrayIterator($this->_values);\r\n }",
"public /*Traversable*/ function getIterator()\n\t{\n\t\treturn new ArrayIterator($this->_data);\n\t}",
"public function getIterator(): Traversable\n {\n return new ArrayIterator($this->batch);\n }",
"public function getIterator() {\r\n return new ArrayIterator($this->data);\r\n }",
"public function getIterator() : Traversable\n {\n return new ArrayIterator($this->entries);\n }",
"public function getIterator()\r\n {\r\n return new \\ArrayIterator($this->data);\r\n }",
"public function getIterator()\n {\n return new ArrayObject($this->items);\n }",
"public function iterable(): iterable\n {\n return $this->array;\n }",
"function &traversable(Traversable $value, string $namespace = 'default'): Traversable\n{\n $var = new Variable\\TraversableVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}",
"public function getIterator()\n {\n return new \\ArrayIterator($this->data);\n }",
"public function getIterator()\n {\n return new \\ArrayIterator($this->data);\n }",
"public function getIterator()\n {\n return new \\ArrayIterator($this->__data);\n }",
"public function getIterator()\n {\n return new ArrayIterator((array)$this->data);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->data);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->data);\n }",
"function getiterator() {\n\t\treturn new \\ArrayIterator($this->cast());\n\t}",
"public function getIterator()\n\t{\n\t\treturn new ArrayIterator($this->getListByKey());\n\t}",
"public function getIterator()\n {\n return new \\ArrayIterator($this->_data);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->_data);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->valueOf());\n }",
"public function getIterator(): \\Traversable;",
"public function getIterator(): \\Traversable;",
"public function getIterator()\r\n {\r\n return new ArrayIterator($this->attributes);\r\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->attributes);\n }",
"public function getIterator() {\n return new \\ArrayIterator($this->cast);\n }",
"public function testIteratorWorksWithTraversableObject()\n {\n $iterator = $this->createIterator(new \\ArrayIterator(array(1)));\n\n $data = iterator_to_array($iterator);\n\n $expectedData = array(\n array(1)\n );\n $this->assertEquals($expectedData, $data);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->entities);\n }",
"public function getData(): iterable;",
"public function getIterator()\n {\n return new ArrayObject($this->_rows);\n }",
"public function getIterator(): \\Traversable\n {\n return new \\ArrayIterator($this->attrs);\n }",
"public function getIterator()\n\t{\n\t\treturn new \\ArrayIterator($this->fetch());\n\t}",
"public function getIterator()\n {\n return new ArrayIterator($this->result);\n }",
"public function getIterator()\n {\n return new \\ArrayIterator($this->_cache);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->toArray());\n }",
"public function getIterator()\n {\n return new \\ArrayIterator($this);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->export());\n }",
"public function getIterator()\n {\n return new MF_PHP_Array($this->__data);\n }",
"public function getIterator(): Traversable\n {\n return new ArrayIterator($this->resources);\n }",
"public function getIterator() {\n return new ArrayIterator($this->getAll());\n }",
"public function toArray(): iterable;",
"public function getIterator():ArrayIterator\n {\n return new ArrayIterator($this->__data__);\n }",
"public function getIterator()\n {\n return new \\ArrayIterator(\\Resursi\\PodaciSlikeArrayConverter::toArray($this));\n }",
"public function getIterator(): Traversable\n {\n return new ArrayIterator($this->_responses);\n }",
"public function getIterator()\n {\n return new \\ArrayIterator($this->attributes, 1);\n }",
"abstract protected function getIteratorArray();",
"public function getIterator()\n {\n return $this->getValue();\n }",
"abstract protected function getPersistableDataArray();",
"public function getIterator()\n {\n return new ArrayIterator($this->getResultList());\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->parameters);\n }",
"public function getIterator(): \\Traversable\n {\n if ($this->object && method_exists($this->object, 'getIterator')) {\n return $this->object->getIterator();\n }\n\n if (is_object($this->array) && method_exists($this->array, 'getIterator')) {\n return $this->array->getIterator();\n }\n\n return new \\ArrayIterator($this->array);\n }",
"function prepareData(){\n $this->ref = array();\n foreach($this->getIterator() as $junk=>$item){\n // current values\n $id = $item[$this->id_field];\n \n // save item\n $this->items[$id] = $item;\n \n // save relation\n if(isset($item[$this->parent_id_field])) {\n $this->ref[$item[$this->parent_id_field]][] = $id;\n } else {\n $this->ref[undefined][] = $id;\n }\n }\n }",
"public function iterator()\n {\n return $this->map->valueIterator();\n }",
"protected function getPersistableDataArray() {}",
"protected function getPersistableDataArray() {}",
"protected function getPersistableDataArray() {}",
"protected function getPersistableDataArray() {}",
"public function getIterator()\n\t{\n\t\treturn new ArrayIterator($this->_structures);\n\t}",
"public function getIterator(): Traversable\n {\n return new ArrayIterator($this->authenticators);\n }",
"#[\\ReturnTypeWillChange]\n public function getIterator(): \\Traversable\n {\n return new ArrayObject($this->_timeservers);\n }",
"function getIterator()\n {\n return new \\ArrayIterator($this->items);\n }",
"abstract protected function getPersistableDataArray() ;",
"private function createArrayable()\n {\n $this->data = $this->data->toArray();\n\n $this->createArray();\n }",
"public function getEmbedded(): iterable;",
"public function getIterator()\n {\n return new \\ArrayIterator($this->supportedValues);\n }",
"public function readAll() : Traversable;",
"protected function dataToArray()\n {\n if (is_array($this->data)) {\n return;\n }\n if ($this->data instanceof Iterator) {\n $this->data = iterator_to_array($this->data);\n\n return;\n }\n if ($this->data instanceof \\Traversable) {\n $items = [];\n foreach ($this->data as $key => $item) {\n $items[$key] = $item;\n }\n $this->data = $items;\n\n return;\n }\n $type = gettype($this->data);\n $typeOrClass = ($type === 'object') ? get_class($this->data) : $type;\n throw new Exception('' . $typeOrClass . ' is not an Traversable');\n }",
"function iterator_to_array(#[LanguageLevelTypeAware(['8.2' => 'Traversable|array'], default: 'Traversable')] $iterator, bool $preserve_keys = true): array {}",
"public function testIteratorWorksWithTraversable()\n {\n $originalDataSet = array(\n array(1, 2, 3),\n array(5, 4, 9)\n );\n $iterator = $this->createIterator(new \\IteratorIterator(new \\ArrayIterator($originalDataSet)));\n\n $data = iterator_to_array($iterator);\n $this->assertEquals($originalDataSet, $data);\n }",
"public function items(): iterable;",
"protected function store()\n\t{\n\t\t// rebuild the keys table\n\t\t$this->reindex();\n\n\t\t//throw new Exception(\"Not yet implemented!\");\n\t\t\t\t//---------------------\n\n $domDoc = new DOMDocument;\n $rootElt = $domDoc->createElement('items');\n $rootNode = $domDoc->appendChild($rootElt);\n\n foreach($this->_data AS $row) {\n $rowElement = $domDoc->createElement('item');\n\n foreach($row AS $key => $value) {\n\n $element = $domDoc->createElement($key);\n $element->appendChild($domDoc->createTextNode($value));\n\n $rowElement->appendChild($element);\n }\n $rootNode->appendChild($rowElement);\n\n }\n\n $data = $domDoc->saveXML();\n\n //var_dump($data);\n\n file_put_contents($this->_origin, $data);\n\n\t\t// --------------------\n\t}",
"public function getIterator()\n {\n return new \\ArrayIterator($this->parameters);\n }",
"public function getIterator()\n {\n return new Iterator($this->entities);\n }",
"function &iterable(iterable $value, string $namespace = 'default'): iterable\n{\n $var = new Variable\\IterableVariable($value);\n Repository::add($var, $namespace);\n return $var->getValue();\n}",
"public function getIterator()\n {\n return new ArrayIterator($this->items);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->items);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->items);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->items);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->items);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->items);\n }",
"public function setData(\n array $value)\n {\n $this->_cache = $value;\n\n $newObjectData = [];\n foreach ($this->_cache as $k => $v) {\n $newObjectData[$k] = is_object($v) && $v instanceof LazyJsonMapper\n ? $v->asArray() // Throws.\n : $v; // Is already a valid value.\n }\n\n $this->assignObjectData($newObjectData); // Throws.\n\n return $this;\n }",
"public function getIterator()\n {\n return new \\ArrayIterator($this->params);\n }",
"public function getIterator()\n {\n return new RefEntityIterator($this->storage);\n }",
"public function getItemIterator()\n {\n return new ArrayIterator($this->data->items);\n }",
"public function getIterator(): ArrayIterator\n {\n return new ArrayIterator($this->all());\n }",
"public function values() {\n return Sequence(values($this->getIterator()));\n }",
"public function getIterator(): ArrayIterator\n {\n return new ArrayIterator($this->results);\n }",
"public function getIterator()\n {\n return new ArrayIterator($this->items->all());\n }",
"#[\\ReturnTypeWillChange]\n public function getIterator() : Traversable\n {\n foreach ($this->a as $row) {\n yield Vector::quick($row);\n }\n }",
"public function getIterator()\n\t{\n\t\treturn new \\ArrayIterator($this->array);\n\t}"
] | [
"0.64269155",
"0.6349835",
"0.62343913",
"0.6217876",
"0.6077634",
"0.60643053",
"0.60499555",
"0.60439",
"0.60209197",
"0.6009794",
"0.5982626",
"0.5977001",
"0.59429586",
"0.5942471",
"0.59187806",
"0.5891723",
"0.5891697",
"0.5869968",
"0.58625656",
"0.5845773",
"0.5839893",
"0.58221203",
"0.58221203",
"0.58156794",
"0.581322",
"0.580945",
"0.580945",
"0.5805221",
"0.58033",
"0.57933277",
"0.5782785",
"0.5778822",
"0.5761479",
"0.5761479",
"0.5757128",
"0.5730996",
"0.5724907",
"0.56751156",
"0.56715435",
"0.56552094",
"0.56305295",
"0.5620058",
"0.56113064",
"0.5608322",
"0.5605472",
"0.5588583",
"0.55817664",
"0.5574413",
"0.5541984",
"0.5541276",
"0.55312973",
"0.55191916",
"0.5472848",
"0.54524094",
"0.54387134",
"0.54369247",
"0.5433209",
"0.54203916",
"0.5387615",
"0.5376689",
"0.53726965",
"0.53548396",
"0.53454614",
"0.5338534",
"0.533805",
"0.533805",
"0.533757",
"0.5336558",
"0.53307337",
"0.5329487",
"0.532743",
"0.5322728",
"0.5317833",
"0.5317604",
"0.53165555",
"0.5296894",
"0.5286322",
"0.52780503",
"0.52734405",
"0.5271621",
"0.5266504",
"0.52553993",
"0.52506477",
"0.5248137",
"0.52453375",
"0.5239414",
"0.5239414",
"0.5239414",
"0.5239414",
"0.5239414",
"0.5239414",
"0.52321315",
"0.5226174",
"0.52245986",
"0.5222984",
"0.5217634",
"0.52095544",
"0.52059615",
"0.5194904",
"0.51860154",
"0.5182725"
] | 0.0 | -1 |
Calls the user provided callback. This iterator will become invalid if no value or iterable is set by the callback. | protected function fetch()
{
if (!$this->valid) {
return;
}
if (!$this->initialized) {
$this->initialize();
}
$this->valid = false;
$callback = $this->fetchCallback;
$callback($this);
if (!$this->valid) {
$this->dispose();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function each(callable $callback);",
"public function each(callable $callback);",
"public function each(callable $callback);",
"public function each(callable $callback);",
"public function forEach(callable $callback): void {\n\t\tforeach ($this as $value) {\n\t\t\t$callback($value);\n\t\t}\n\t}",
"public function each(\\Closure $callback);",
"private function call($callback)\n {\n if ($this->getInnerIterator()->hasChildren()) {\n $this->callIfExists($callback);\n }\n }",
"function iterator_apply(Traversable $iterator, callable $callback, ?array $args): int {}",
"public function each(callable $callback, $termination_value=false, bool $bind_callback_to_this=true): CollectionInterface;",
"public function each($callback)\n {\n array_walk($this->items, $callback);\n }",
"public function each(callable $callback): void\n {\n Tools::each($callback, $this->entries());\n }",
"public function each(callable $callback)\n {\n foreach ($this as $key => $item) {\n if ($callback($item, $key) === false) {\n break;\n }\n }\n\n return $this;\n }",
"public function process(\\Iterator $input, callable $callback)\n {\n $callback = \\Closure::fromCallable($callback);\n $input->rewind();\n iterator_apply(\n $input,\n function (\\Iterator $iterator) use ($callback) {\n $callback($iterator->current(), $iterator->key(), $iterator, $this);\n return true;\n },\n [$input]\n );\n return $this;\n }",
"public function each(callable $callback)\n {\n foreach ($this->items as $key => $item) {\n if ($callback($item, $key) === false) {\n break;\n }\n }\n\n return $this;\n }",
"function each($callable);",
"public function map(callable $callback): Sequence;",
"public function setCallback($callback);",
"public function setCellValueCallback(?callable $cellValueCallback): self;",
"public function each(callable $callback): self\n {\n foreach ($this->storage as $key => $value) {\n if ($callback($value, $key) === false) {\n break;\n }\n }\n\n return $this;\n }",
"public function apply(callable $callback);",
"public function each(callable $c);",
"public function iterate(IterableResult $iterator, callable $callback = null)\n {\n $iteration = 0;\n foreach ($iterator as $object) {\n $object = current($object);\n yield $object;\n if ($callback !== null) {\n call_user_func($callback, $iteration, $object);\n }\n $iteration++;\n }\n }",
"public function iterate(callable $function);",
"function __call($func, $params)\n\t{\n\t\treturn call_user_func_array(array($this->iterator, $func), $params);\n\t}",
"public function each(callable $callback): void\n {\n $this->blocks->each($callback);\n }",
"public function each(callable $callback) {\n foreach ($this->responses as $key => $response) {\n if ($callback($response, $key) === false) {\n break;\n }\n }\n\n return $this;\n }",
"public function every(Closure $callback) {\n\t\treturn Hash::every($this->_value, $callback);\n\t}",
"protected function assertIntArg(\\Closure $callback) {\n\t\t$invalidValues = array(null, '123a', new \\stdClass(), $callback, 12.3, array(1));\n\n\t\tforeach ($invalidValues as $value) {\n\t\t\ttry {\n\t\t\t\t$callback($value);\n\t\t\t\t$this->fail('Expected an InvalidArgumentException but nothing was thrown when using $value = ' . $value);\n\t\t\t} catch (\\InvalidArgumentException $e) {\n\t\t\t\t// Expected, pass!\n\t\t\t}\n\t\t}\n\t}",
"public function setCallback(callable $cb, mixed $arg = null): void {}",
"public function testEachWithEarlyReturn()\n {\n $success = $this->collection->each(function($key, $value) {\n return $key === 1;\n });\n\n $this->assertFalse($success);\n }",
"public function always(Closure $callback);",
"public function each(callable $callback): self\n {\n $index = 0;\n foreach ($this->items as $key => $value) {\n $callback($value, $key, $index++);\n }\n\n return $this;\n }",
"public function pipeAndReturnCallbackResult(callable $callback);",
"public function some(Closure $callback) {\n\t\treturn Hash::some($this->_value, $callback);\n\t}",
"public function each($callback)\n {\n foreach ($this->_data as $key => $val) {\n $this->_data[$key] = $callback($val, $key, $this);\n }\n return $this;\n }",
"public function filter(callable $callback): self {\n\t\t$generator = function (Stream $stream) use ($callback) {\n\t\t\tforeach ($stream as $value) {\n\t\t\t\tif ($callback($value)) {\n\t\t\t\t\tyield $value;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn new self($generator($this));\n\t}",
"public function process(Closure $callback = null);",
"public function run(\\Traversable $items, callable $itemCallback)\n {\n $this->start();\n foreach ($items as $item) {\n call_user_func($itemCallback, $this, $item);\n }\n return $this->finish();\n }",
"public function executeIterator();",
"public function setLoopCallbackFunction(callable $function);",
"public function filter(callable $callback = null): Sequence;",
"function __call($func, $params)\n\t{\n\t\treturn call_user_func_array(array($this->getInnerIterator(), $func), $params);\n\t}",
"private function callCallback() {\n\t\tif ($this->callback !== null) {\n\t\t\t$response = $this->buildResponse();\n\t\t\tcall_user_func($this->callback, $response, $this->data);\n\t\t}\n\t}",
"public function map(callable $callback);",
"public function map(callable $callback);",
"public function readNextCallback(callable $func): void;",
"function modify($value, $callback)\n {\n $callback($value);\n return $value;\n }",
"public function each($callback)\n {\n foreach ($this as $item) {\n $callback($item);\n }\n return $this;\n }",
"public function setCallback(mixed $callback): void\n {\n $this->callback = $callback;\n }",
"public function readWithCallback(callable $callback)\n {\n while (!$this->eof()) {\n $content = $this->readPart();\n\n if ($content == null) {\n break;\n }\n\n $callback($content, null);\n }\n }",
"public function callback();",
"public function map(\\Closure $callback);",
"public function doIt(callable $callback = null)\n {\n $this->callback = $callback;\n return $this;\n }",
"public function resolvingAny( Closure $callback );",
"public function setCallback($callback) {\r\n\t\tif (! is_callable ( $callback )) {\r\n\t\t\tthrow new Exception\\InvalidArgumentException ( 'Invalid callback provided' );\r\n\t\t}\r\n\t\t\r\n\t\t$this->options ['callback'] = $callback;\r\n\t\treturn $this;\r\n\t}",
"public function map(callable $callback): self {\n\t\t$generator = function (Stream $stream) use ($callback) {\n\t\t\tforeach ($stream as $value) {\n\t\t\t\tyield $callback($value);\n\t\t\t}\n\t\t};\n\t\treturn new self($generator($this));\n\t}",
"function any(callable $callback, iterable $items) : bool\n{\n foreach ($items as $item) {\n if ($callback($item)) {\n return true;\n }\n }\n return false;\n}",
"public function filter(Closure $callback)\n {\n call_user_func($callback, $this->filter);\n }",
"public function doBeforeValidInput(\\Closure $callback)\n {\n $this->validInputCallback = $callback;\n return $this;\n }",
"protected function buildSetterCallback() {\n }",
"public function any(callable $callback): bool {\n\t\tforeach ($this as $value) {\n\t\t\tif ($callback($value)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"abstract public function mapValues(\\Closure $f): self;",
"public function each($callback)\n {\n foreach ($this->entries as $entry) {\n call_user_func_array($callback, [\n 'file' => $entry,\n ]);\n }\n }",
"function each(callable $fn, iterable $coll): void\n{\n foreach ($coll as $key => $value) {\n $fn($value, $key);\n }\n}",
"#[\\ReturnTypeWillChange]\n public function next()\n {\n $this->valid = (next($this->keys) !== false);\n }",
"public function forEach(callable $callable): void\n {\n foreach ($this->entries() as $key => $value)\n { $callable($value, $key, $this); }\n }",
"public function setRowsCallback(callable $f);",
"public function filter(callable $callback);",
"public function callback( callable $callback ): self {\n\t\t$this->callback = $callback;\n\t\treturn $this;\n\t}",
"public function scanLeft(callable $callback, $initial = null): Collection;",
"function traverseEither(iterable $collection, callable $callback): Either\n{\n return traverseEitherKV($collection, dropFirstArg($callback));\n}",
"public function none(callable $callback): bool {\n\t\tforeach ($this as $value) {\n\t\t\tif ($callback($value)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public function pretend(Closure $callback);",
"public function searchByCallback(callable $callback, bool $bind_callback_to_this=true);",
"public function testResolveIteratorFailureNonIteratorTest()\n {\n $data = [uniqid('key') => uniqid('val')];\n $testCb = $this->createCallable(function ($it) { return $it instanceof Countable; });\n $iterator = $this->createCountableNonIterator($data);\n\n $subject = $this->createInstance();\n $_subject = $this->reflect($subject);\n\n $this->setExpectedException('OutOfRangeException');\n $result = $_subject->_resolveIterator($iterator, $testCb);\n }",
"public function validate(): void\n {\n $this->validatingValue = method_exists($this, 'getValue') ? $this->getValue() : $this->validatingValue;\n\n /**\n * Executes each of the validation closures in reversed order only if the $validatingChain\n * property isn't empty.\n */\n if (!empty($this->validatingChain)) {\n foreach (array_reverse($this->validatingChain) as $function) {\n $function();\n }\n }\n }",
"public function filter(callable $callback = null);",
"function callback($input=NULL,$function='empty')\n\t{\n\t\treturn $this->waterfall($input,array($function));\n\t}",
"public function setCallback($callback)\n\t{\n\t\t$this->callback = $callback;\n\t}",
"public function next(): mixed;",
"public function doBeforeFailedInput(\\Closure $callback)\n {\n $this->failedInputCallback = $callback;\n return $this;\n }",
"public function all(callable $callback): bool {\n\t\tforeach ($this as $value) {\n\t\t\tif (!$callback($value)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public static function pretend(Closure $callback)\n {\n }",
"public function pipeAndReturnSelf(callable $callback): CollectionInterface;",
"public function each(callable $func): static;",
"public function map(callable $callback): Set;",
"public function setEditCellValueCallback(?callable $editCellValueCallback): self;",
"function iterable_map_keys(iterable $iterable, callable $callback): \\Generator\n{\n foreach ($iterable as $key => $value) {\n yield call_user_func($callback, $value, $key) => $value;\n }\n}",
"public function __invoke( \\Traversable $iterator )\n {\n\n $current = ($iterator instanceOf \\IteratorAggregate)\n ? $iterator->getIterator()->current()\n : $iterator->current();\n\n // Perform\n $apply = $this->apply;\n $apply( $current );\n\n // Must return true for iterator_apply\n return true;\n }",
"public function select(callable $callback);",
"public function each(callable $f)\n {\n array_walk($this->items, $f);\n }",
"public function __setNullCallback(\\Closure $callback) {\n\t\t$this->nullCallback = $callback;\n\t}",
"public function run() {\n\t\ttry {\n\t\t\t$result = call_user_func( $this->callback );\n\t\t} catch ( Exception $e ) {\n\t\t\treturn $e;\n\t\t}\n\n\t\tif ( $result ) {\n\t\t\t$this->success = true;\n\t\t}\n\n\t\treturn $result;\n\t}",
"public function iterator($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }",
"public function every($callback)\n {\n $callback = \\PHPF\\Closure::getAsCallable($callback);\n\n $result = false;\n foreach ($this->data as $key => $value) {\n if (!$callback($value, $key, $this)) {\n $result = false;\n break;\n\n } else {\n $result = true;\n }\n }\n\n return $result;\n }",
"public function each($callback, $fetchMode = \\PDO::FETCH_ASSOC)\n {\n while ($row = $this->statement->fetch($fetchMode)) {\n $callback($row);\n }\n }",
"public function iterator();",
"function foo(iterable $itetable){\n\tforeach ($iterable as $value){\n\t\t//...\n\t}\n}",
"function each(array $array, callable $func): void\n{\n Arrays::each($array, $func);\n}",
"public function each(callable $function)\n {\n Iterators::each($this->iterator(), $function);\n }",
"function traverseOption(iterable $collection, callable $callback): Option\n{\n return traverseOptionKV($collection, dropFirstArg($callback));\n}"
] | [
"0.6388422",
"0.6388422",
"0.6388422",
"0.6388422",
"0.62684935",
"0.6194035",
"0.6096935",
"0.60766184",
"0.59551483",
"0.5795",
"0.5766385",
"0.5667323",
"0.5638355",
"0.5589223",
"0.55482084",
"0.55481",
"0.55226594",
"0.54953575",
"0.5490046",
"0.54896605",
"0.54722273",
"0.54669267",
"0.54551566",
"0.54488945",
"0.5438926",
"0.54263806",
"0.5408771",
"0.5401522",
"0.5382037",
"0.5355766",
"0.53316146",
"0.5318788",
"0.5309102",
"0.5273151",
"0.52634245",
"0.5257208",
"0.5231018",
"0.5230398",
"0.5225423",
"0.52212846",
"0.5210709",
"0.5197247",
"0.51945275",
"0.5191771",
"0.5191771",
"0.5181912",
"0.5176608",
"0.51444",
"0.5138482",
"0.5132111",
"0.5125503",
"0.5110045",
"0.50988936",
"0.5057172",
"0.5052123",
"0.50354743",
"0.502925",
"0.5013067",
"0.50069636",
"0.5005795",
"0.49995804",
"0.49970108",
"0.49922907",
"0.49915668",
"0.4983097",
"0.49737257",
"0.49629644",
"0.49569228",
"0.49484336",
"0.49439365",
"0.49405128",
"0.49312332",
"0.49272192",
"0.4922173",
"0.49214023",
"0.49151444",
"0.49000984",
"0.48962766",
"0.48928243",
"0.48896623",
"0.48888496",
"0.48632795",
"0.48552826",
"0.48542106",
"0.48541683",
"0.48537946",
"0.48497298",
"0.48436815",
"0.48373973",
"0.48073566",
"0.47999483",
"0.47974473",
"0.4793264",
"0.47928855",
"0.4777827",
"0.47774816",
"0.4777028",
"0.47751278",
"0.4774043",
"0.47623107",
"0.47600147"
] | 0.0 | -1 |
verification qu'il a assez de PA | function prepareResultat()
{
if ($this->view->utilisationPaPossible == false) {
throw new Zend_Exception(get_class($this) . " Utilisation impossible : PA:" . $this->view->user->pa_braldun);
}
// verification que la valeur recue est bien numerique
if (((int)$this->request->get("valeur_1") . "" != $this->request->get("valeur_1") . "")) {
throw new Zend_Exception(get_class($this) . " Valeur invalide : val=" . $this->request->get("valeur_1"));
} else {
$idTypeRune = (int)$this->request->get("valeur_1");
}
if (!array_key_exists($idTypeRune, $this->view->labanRunes)) {
throw new Zend_Exception(get_class($this) . " idTypeRune interdit A=" . $idTypeRune);
}
if ($this->view->labanRunes[$idTypeRune]["achat_possible"] !== true || $this->view->labanRunes[$idTypeRune]["cout_castars"] > $this->view->user->castars_braldun) {
throw new Zend_Exception(get_class($this) . " Achat impossible");
}
$this->echange($idTypeRune);
$this->majBraldun();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function testeSimboloPalavra($simboloTeste, $alfabeto){\n if (!(in_array($simboloTeste, $alfabeto))) { \n echo \"<script>alert('REJEITADA PALAVRA INSERIDA, NÃO EXISTE ALGUM SIMBOLO NO ALFABETO!');</script>\";\n return 1;\n }else{\n return 0;\n }\n }",
"protected function antes() {\n\t // $accion = str_replace(\"accion_\", '', $this->accion);\n\t\t\t// \n\t // $this->permiso = \\FMT\\Usuarios::getPermiso($_SESSION['iu'])['permiso'];\n // $this->id_puerto = \\FMT\\Usuarios::getMetadata($_SESSION['iu'])['metadata'];\n\t // $permisos_sistema = json_decode(PERMISOS);\n\t // if(isset($permisos_sistema->$control->$accion) && in_array($this->permiso, $permisos_sistema->$control->$accion)) {\n\t // return true;\n\t // } else {\n\t // $control = new \\App\\Controlador\\Error('na');\n\t // $control->procesar();\n\t // $datos = [];\n\t // $datos['session_data'] = $_SESSION['datos_usuario_logueado'];\n\t // \\FMT\\Logger::event('no_autorizado',$datos);\n\t // exit;\n\t\t\t// \n\t // }\n\t return true; \n\t}",
"function verify()\n {\n $activation = null;\n $param = getParameter();\n if (!empty($param[0])) {\n $activation = $param[0];\n }\n $resultActive = $this->model->khachhang->activeAccount($activation);\n switch ($resultActive) {\n case 1 :\n redirect('user/active_expire');\n break;\n case 2:\n redirect('user/active_success');\n break;\n case 3:\n redirect('user/active_fail');\n break;\n }\n }",
"public function checkVerrouille()\n {\n $this->ligne->checkVerrouille();\n }",
"function verify () {\n// $aop->alipayrsaPublicKey='MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAjUzhXrdJ7GDsgJ59fMLlk7hyYrXkkeGwnYD/eO2HBZh39Y9gTfLJ61Yogc7keOn2uAnZY/zBlw3n+T6mb6/5JYFgvXQi8Qzeh6BkBrNnROu+k4PjhmSbORJFoLrrIxDnsYkQ995kYYhpbS0yf2Al++55v4SrD3/YoVBhWPcRg4xI0QD94FLwhCmcCkft/ILRtUxQk2QeVPLSesvMx2mmUK2L2x2hFA8ewRoGmUdG2Fu9YFIxk//16RI+H7KI8LaoXoVDqHobPae9p0ACE7k9G5vs/cYuikSMKu+lnxghte1jNO+CqrvTP4Pes/mW4e7CEMCTAmEnsXLUrQ6FpfKMcQIDAQAB';\n return $this->aop->rsaCheckV1($_POST, NULL, \"RSA2\");\n }",
"public function verificaAppartenenza(){\n \n $sess_user=$this->session->get_userdata('LOGGEDIN');\n $this->utente=$sess_user[\"LOGGEDIN\"][\"userid\"];\n if(isset($sess_user[\"LOGGEDIN\"][\"business\"])){\n \n $this->azienda=$sess_user[\"LOGGEDIN\"][\"business\"];\n \n \n }\n \n \n }",
"function test($marca){\n\t\t//return FALSE;\n\t\treturn true;\n\t}",
"public function isPaid(){\n return $this->status == \"SUCCESS\";\n }",
"public function isVerificato()\n {\n if ($this->verificato === NULL)\n {\n $conn = $GLOBALS[\"connest\"];\n $conn->connetti();\n $anno = AnnoSportivoFiam::get();\n\n //verifica pagamento\n $id = $this->getChiave();\n $mr = $conn->select('pagamenti_correnti', \"idtesserato='$id' AND YEAR(scadenza) >= $anno AND idtipo=\" . self::TIPO_ATL_FIAM);\n if ($mr->fetch_row() === NULL)\n {\n $this->verificato = false;\n } else\n {\n //verifica assicurazione\n $mr = $conn->select('assicurazioni_correnti', \"idtesserato='$id' AND YEAR(valido_da) <= $anno AND YEAR(valido_a) >= $anno\");\n $this->verificato = ($mr->fetch_row() !== NULL);\n }\n }\n return $this->verificato;\n }",
"public function pasaje_abonado();",
"public function verify();",
"function TienePermisos($seccion, $accion){\r\n$permitir=false;\r\n$permisos=$_SESSION[\"R0l3sp3rM1s0s\"];\r\n@$consulta=$permisos[$seccion][$accion];\r\nif ($consulta==\"SI\"){\r\n$permitir=true;\r\n}\r\nelse{\r\n$permitir=false;\r\n}\r\nreturn $permitir;\r\n\r\n}",
"public function testCajaBlanca(){\n\t\t//Test correcto\n\t\t$test_name = \"Test correcto\";\n\t\t//Encriptamos la contraseña\n\t\t$passSha1 = sha1(\"1234\");\n\t\t$datos = array(\n\t\t\t'usuario' => \"71453688\",\n\t\t\t'password' => $passSha1\n\t\t\t);\n\t\t\n\t\t$resultadoEsperado = true;\n\t\t//echo $this->unit->run($this->login_model->obtenerPass($datos), $resultadoEsperado, $test_name);\n\n\n\t\t$test_name = \"Test erroneo\";\n\t\t//Encriptamos la contraseña\n\t\t$passSha1 = sha1(\"1243\");\n\t\t$datos = array(\n\t\t\t'usuario' => \"71453688\",\n\t\t\t'password' => $passSha1\n\t\t\t);\n\t\t\n\t\t$resultadoEsperado = false;\n\t\t//echo $this->unit->run($this->login_model->obtenerPass($datos), $resultadoEsperado, $test_name);\n\n\t}",
"public function verPCSalaEnPizarra( ) {\n $this->setComando(self::$PIZARRA_DIGITAL, \"PC_SUELO\");\n\n }",
"private function verificaAcao() {\n $return = 0;\n if ($this->acao == 'adicionar') {\n $return = $this->verificaAdicionar();\n } elseif ($this->acao == 'editar') {\n $return = $this->verificaEditar();\n } elseif ($this->acao == 'remover') {\n $return = $this->verificaRemover();\n }\n return $return;\n }",
"function check_response()\n {\n\n $sp_recepcion = new seguripagoRecepcionDiferido($this->sp_idSocio, $this->sp_key, $this->sp_modo);\n $data = $sp_recepcion->recibir();\n if(!is_array($data)) {\n switch($data) {\n case '01': echo \"Error al recepcionar datos.\"; break;\n case '02': echo \"Error en número de pedido.\"; break;\n case '03': echo \"Error en validación de hash.\"; break;\n }\n exit();\n }\n\n /**\n * ---------------------- PROCESANDO PAGO APROBADO ---------------------------\n */\n if($data[\"resultado\"] == \"1\") {\n /**\n * Informar al usuario, por correo, informando de la aprobación de su pago,\n * indicar información adicional para que acceda al producto o servicio.\n */\n\n $id_order = ltrim($data['num_pedido'], '0');\n\n $id_order = (int) $id_order;\n\n $order = new WC_Order( $id_order );\n\n // Mark order complete\n //$order->payment_complete();\n // Mark order processing\n $order->update_status( 'processing' );\n }\n\n /**\n * Enviando confirmación de recibo de datos\n */\n $sp_recepcion->confirmar();\n\n }",
"function checkStart(){\r\n\tif (!$this->Eq['A']['id']) $this->sendError(\"你沒有裝備武器,不能出擊。\");\r\n\telseif ($this->Player['en'] < $this->RequireEN) $this->sendError(\"EN不足,無法出擊。\");\r\n\telseif ($this->Player['sp'] < $this->SP_Cost) $this->sendError(\"SP不足,無法以 $Pl->Tactics[name] 出擊。\");\r\n}",
"public function choosePrize(){\n if($this->adminVerify()){\n\n }else{\n echo \"Vous devez avoir les droits administrateur pour accéder à cette page\";\n }\n }",
"public function validacion_provincia($cedula){\n \n \n \n if( ($cedula[0]<= 2))\n {\n if($cedula[0]== 2 && ($cedula[1] > 4) ){\n echo \"Codigo de provincia de la cedula incorrecto, Por favor, ingrese una cédula correcta\";\n }\n else{\n return true; \n }\n }\n else{\n echo \"Codigo de provincia de la cedula incorrecto, Por favor, ingrese una cédula correcta\";\n }\n \n}",
"public function hasProof(){\n return $this->_has(1);\n }",
"public function pass(): bool;",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"public function check();",
"function validaAbrirCaptura(){\n return true;\n }",
"abstract public function check();",
"function isVacia($palabra)\n{\n\t$palabrasVacias = array(\"&\",\"^^\",\"www\", \"http\",\"com\",\"\",\"-\",\"I\",\"a\",\"about\",\"above\",\"after\",\"again\",\"against\",\"all\",\"am\",\"an\",\"and\",\"any\",\"are\",\"aren't\",\"as\",\"at\",\"be\",\"because\",\"been\",\"before\",\"being\",\"below\",\"between\",\"both\",\"but\",\"by\",\"can't\",\"cannot\",\"could\",\"couldn't\",\"did\",\"didn't\",\"do\",\"does\",\"doesn't\",\"doing\",\"don't\",\"down\",\"during\",\"each\",\"few\",\"for\",\"from\",\"further\",\"had\",\"hadn't\",\"has\",\"hasn't\",\"have\",\"haven't\",\"having\",\"he\",\"he'd\",\"he'll\",\"he's\",\"her\",\"here\",\"here's\",\"hers\",\"herself\",\"him\",\"himself\",\"his\",\"how\",\"how's\",\"i\",\"i'd\",\"i'll\",\"i'm\",\"i've\",\"if\",\"in\",\"into\",\"is\",\"isn't\",\"it\",\"it's\",\"its\",\"itself\",\"let's\",\"me\",\"more\",\"most\",\"mustn't\",\"my\",\"myself\",\"no\",\"nor\",\"not\",\"of\",\"off\",\"on\",\"once\",\"only\",\"or\",\"other\",\"ought\",\"our\",\"ours\",\"ourselves\",\"out\",\"over\",\"own\",\"same\",\"shan't\",\"she\",\"she'd\",\"she'll\",\"she's\",\"should\",\"shouldn't\",\"so\",\"some\",\"such\",\"than\",\"that\",\"that's\",\"the\",\"their\",\"theirs\",\"them\",\"themselves\",\"then\",\"there\",\"there's\",\"these\",\"they\",\"they'd\",\"they'll\",\"they're\",\"they've\",\"this\",\"those\",\"through\",\"to\",\"too\",\"under\",\"until\",\"up\",\"very\",\"was\",\"wasn't\",\"we\",\"we'd\",\"we'll\",\"we're\",\"we've\",\"were\",\"weren't\",\"what\",\"what's\",\"when\",\"when's\",\"where\",\"where's\",\"which\",\"while\",\"who\",\"who's\",\"whom\",\"why\",\"why's\",\"with\",\"won't\",\"would\",\"wouldn't\",\"you\",\"you'd\",\"you'll\",\"you're\",\"you've\",\"your\",\"yours\",\"yourself\",\"yourselves\");\n\tforeach ($palabrasVacias as $vacia){\n\t\tif($palabra==$vacia){\n\t\t\treturn true;\n\t\t}\n\t}\n return false;\n}",
"public function VanMegLapAPakliban():bool\r\n {\r\n return ($this->getLapokSzama()>0);\r\n }",
"function comprobar_sexo()\n\t{\n\t$correcto = true; //variable booleana que comprueba si el atributo cuumple o no lo especificado\n\n\t//si los atributos estan vacios\n\tif (strlen($this->sexo) == 0)\n\t{\n\t\tarray_push($this->erroresdatos, [\"nombreatributo\" => \"sexo\", \"codigoincidencia\" => \"00001\" ,\"mensajeerror\" => \"sexo vacio\"]);\n\n\t\t$correcto = false;\n\t}\n\n\treturn $correcto;\n}",
"function isVerified(){\n\n}",
"public function authorize()\n {\n $position = Position::findOrFail($this->position_id);\n $project = $position->Project;\n $position_application_count = Application::where('user_id', auth()->user()->id)->where('position_id', $this->position_id)->count();\n if ($position_application_count == 0 && $project->user_id != auth()->user()->id && $position->status == 1) {\n //daca nu este proiectul meu si daca nu mai am aplicatii la aceasta pozitie si daca statusul positiei este 1\n return true;\n }\n return false;\n }",
"function is_verified()\n {\n return false;\n }",
"function _uc_parsian_authority_validate($auhority) {\n db_query(\"UPDATE {uc_payment_parsian} SET status = 1\");\n}",
"function Comprobar_atributos()\n{\n\t//si se cumple la condicion\n\tif ($this->Comprobar_codcentro() &\n\t\t$this->Comprobar_codedificio() &\n\t\t$this->Comprobar_nombrecentro() &\n\t\t$this->Comprobar_direccioncentro() &\n\t\t$this->Comprobar_responsablecentro()\n\t\t)\n\t{\n\t\treturn true;\n\t}\n\t//si no\n\telse\n\t\t{\t//devuelve error\n\t\t\treturn $this->erroresdatos;\n\t\t}\n}",
"abstract function is_paying();",
"private function _verifyPaymentOptionAvailability(){\n \n $authorized = false;\n foreach (Module::getPaymentModules() as $module)\n if ($module['name'] == 'pagseguro') {\n $authorized = true;\n break;\n }\n\n if (!$authorized)\n die($this->module->l('Este método de pagamento não está disponível', 'validation'));\n }",
"function checkLicence() {\n\n $isValid = true;\n \n return $isValid;\n}",
"function isSuccessful() ;",
"abstract function check();",
"function Check()\n {\n $this->_RegenerateId();\n return (isset($_SESSION['ss_fprint1']) && $_SESSION['ss_fprint1'] == $this->_Fingerprint());\n }",
"public function checkAksesBarang()\n {\n // mengambil data role dari session yang sedang aktif\n $role = (session()->get('role'));\n\n // jika role \"Admin\" / \"Staff Gudang\"\n if (($role==(\"Admin\")) || ($role==(\"Staff Gudang\"))) {\n // mengembalikan nilai True \n return True;\n }else{\n // mengembalikan nilai False \n return False;\n }\n }",
"abstract public function getPasiekimai();",
"public function isPaid()\n\t{\n\t\t$externalDump = ExternalDump::where('lab_no', '=', $this->external_id)->get()->first();\n\n\t\t//Not from the external system\n\t\tif(is_null($externalDump)) {\n\t\t\treturn true;\n\t\t}\n\t\telseif( $this->visit->patient->getAge('Y') >= 6\n\t\t\t&& $externalDump->order_stage == \"op\" \n\t\t\t&& $externalDump->receipt_number == \"\" \n\t\t\t&& $externalDump->receipt_type == \"\" )\n\t\t\treturn false;\n\t\telse \n\t\t\treturn true;\n\t}",
"function check_pp_gun($tab) {\n\tprint_r($_SESSION['pp_gun']);\n\t$pp_gun = 0;\n\tforeach ($_SESSION['pp_gun'] as $key => $value) {\n\n\t\t$pp_gun = $pp_gun + $value;\n\t}\n//\tif ($pp_gun > $_SESSION[])\n}",
"function check_pp_gun($tab) {\n\tprint_r($_SESSION['pp_gun']);\n\t$pp_gun = 0;\n\tforeach ($_SESSION['pp_gun'] as $key => $value) {\n\n\t\t$pp_gun = $pp_gun + $value;\n\t}\n//\tif ($pp_gun > $_SESSION[])\n}",
"public function getVerify(): bool\n {\n }",
"function checkSoDu()\n{\n // lay tham so post\n $STK = $_POST[\"TKDi\"];\n $SoTien = $_POST[\"SoTien\"];\n // lay muc phi giao dich\n $QD = new QuyDinh();\n $QD->getInfo(1);\n // kiem tra so du\n $TK = new TKNganHang();\n $SoDu = $TK->getSoDu($STK);\n //\n $SoTien += $QD->MucPhi;\n\n $TK = new TKNganHang();\n $SoDu = $TK->getSoDu($STK);\n ////echo \"<script>alert(\".$SoDu.\");</script>\";\n $SoDuSauKhiChuyen=$SoDu-$SoTien;\n // if ($SoDuSauKhiChuyen<=0)\n // echo 0;\n // else\n echo $SoDuSauKhiChuyen;\n //echo $SoDu;\n //echo $SoDu;\n}",
"function Comprobar_atributos()\n{\n\t//si se cumple la condicion\n\tif ($this->Comprobar_codedificio() &\n\t\t$this->Comprobar_nombreedificio() &\n\t\t$this->Comprobar_direccionedificio() &\n\t\t$this->Comprobar_campusedificio()\n\t\t)\n\t{\n\t\treturn true;\n\t}\n\t//si no\n\telse\n\t\t{\n\t\t\treturn $this->erroresdatos;\n\t\t}\n}",
"function verificalogin(){\n if(!isset($this->session->datosusu)){\n return true;\n }\n }",
"function Comprobar_atributos()\n{\n\t//si se cumple la condicion\n\tif ($this->Comprobar_DNI() &\n $this->Comprobar_codespacio() \n\t\t)\n\t{\n\t\treturn true;\n\t}\n\t//si no\n\telse\n\t\t{\n\t\t\treturn $this->erroresdatos;\n\t\t}\n}",
"function isValid() ;",
"function givePoints() {\n if ($this->is()) {\n // ponizsza funkcja jest dostarczona przez PayBack\n // pb_give_points($this->getPaybackLogin(),$this->calcPoints(),$_SESSION['global_order_id']);\n } else return false;\n }",
"public function verify_transaksi($id_pemesanan) {\n $this->access_lib->_is(\"adm,mgr,ksr,sal\");\n\n $this->load->library('f_lib');\n $this->load->model('pemesanan_m');\n $this->load->model('unit_m');\n $this->load->model('timeout_m');\n\n $data_pemesanan = $this->pemesanan_m->get_by_id($id_pemesanan)->row();\n $nomor_pemesanan = $data_pemesanan->nomor_pemesanan;\n $status_pemesanan = $data_pemesanan->status_pemesanan;\n $status_verify = $data_pemesanan->status_verify;\n $id_unit = $data_pemesanan->id_unit;\n\n $show_status_pemesanan = $status_pemesanan;\n $show_status_verify = $status_verify;\n $tanggal_pemesanan = $data_pemesanan->tanggal_pemesanan;\n $tanggal_tanda_jadi = $this->f_lib->ubah_format_tanggal($data_pemesanan->tanggal_tanda_jadi, \"H:i:s\");\n $timeout = $data_pemesanan->timeout;\n\n if ($status_pemesanan == \"Booked\") {\n $tanggal_exp = $this->f_lib->exp_order($timeout, $tanggal_pemesanan, \"H:i:s\");\n } else if ($status_pemesanan == \"Tanda Jadi\") {\n $tanggal_exp = $this->f_lib->exp_order($timeout, $data_pemesanan->tanggal_tanda_jadi, \"H:i:s\");\n }\n\n if ($status_pemesanan == \"Booked\" AND $status_verify == \"\") {\n $data = array(\"status_verify\" => \"Verified\");\n $this->pemesanan_m->edit($id_pemesanan, $data);\n\n $show_status_verify = \"Verified\";\n\n $this->access_lib->logging('Verify pemesanan : ' . $nomor_pemesanan . ' [\"Booked\" -> \"Booked (Verified)\"]');\n } elseif ($status_pemesanan == \"Booked\" AND $status_verify == \"Verified\") {\n # Ambil Waktu Default Timeout Untuk Tanda Jadi\n $data_timeout = $this->timeout_m->get_active_tanda_jadi()->row();\n $timeout = $data_timeout->timeout;\n $tanggal_tanda_jadi = $this->tanggal;\n\n $data = array(\"status_pemesanan\" => \"Tanda Jadi\",\n \"status_verify\" => \"\",\n \"tanggal_tanda_jadi\" => $tanggal_tanda_jadi,\n \"timeout\" => $timeout\n );\n $this->pemesanan_m->edit($id_pemesanan, $data);\n\n $show_status_pemesanan = \"Tanda Jadi\";\n $show_status_verify = \"\";\n $tanggal_exp = $this->f_lib->exp_order($timeout, $tanggal_tanda_jadi, \"H:i:s\");\n $tanggal_tanda_jadi = $this->f_lib->ubah_format_tanggal($tanggal_tanda_jadi, \"H:i:s\");\n\n $this->access_lib->logging('Verify pemesanan : ' . $nomor_pemesanan . ' [\"Booked (Verified)\" -> \"Tanda Jadi\"]');\n } elseif ($status_pemesanan == \"Tanda Jadi\" AND $status_verify == \"\") {\n $data = array(\"status_verify\" => \"Verified\");\n $this->pemesanan_m->edit($id_pemesanan, $data);\n\n $show_status_verify = \"Verified\";\n\n $this->access_lib->logging('Verify pemesanan : ' . $nomor_pemesanan . ' [\"Tanda Jadi\" -> \"Tanda Jadi (Verified)\"]');\n } elseif ($status_pemesanan == \"Tanda Jadi\" AND $status_verify == \"Verified\") {\n $data = array(\"status_pemesanan\" => \"Sold\",\n \"tanggal_sold\" => $this->tanggal);\n\n $this->pemesanan_m->edit($id_pemesanan, $data);\n\n $show_status_pemesanan = \"Sold\";\n\n $this->unit_m->update_status_transaksi($id_unit, \"Sold\");\n\n $this->access_lib->logging('Verify pemesanan : ' . $nomor_pemesanan . ' [\"Tanda Jadi (Verified)\" -> \"Sold\"]');\n }\n\n echo $show_status_pemesanan . \"|\" . $show_status_verify . \"|\" . $tanggal_exp . \"|\" . $tanggal_tanda_jadi;\n }",
"public function passes();",
"public function testSaldoFinalDeParceriasAApropriarDoAtivoIgualAosControlesAComprovarEAAprovar() {\n $filterAtivo = function (array $line): bool {\n if (str_starts_with($line['conta_contabil'], '1.1.9.8.1.01') && $line['escrituracao'] === 'S') {\n return true;\n }\n return false;\n };\n $saldoDevedorAtivo = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_debito', $filterAtivo);\n $saldoCredorAtivo = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_credito', $filterAtivo);\n\n $filterAComprovar = function (array $line): bool {\n if (str_starts_with($line['conta_contabil'], '8.1.2.2.1.01.02') && $line['escrituracao'] === 'S') {\n return true;\n }\n return false;\n };\n $saldoDevedorAComprovar = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_debito', $filterAComprovar);\n $saldoCredorAComprovar = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_credito', $filterAComprovar);\n\n $filterAAprovar = function (array $line): bool {\n if (str_starts_with($line['conta_contabil'], '8.1.2.2.1.01.03') && $line['escrituracao'] === 'S') {\n return true;\n }\n return false;\n };\n $saldoDevedorAAprovar = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_debito', $filterAAprovar);\n $saldoCredorAAprovar = $this->somaColuna($this->getDataFrame('BAL_VER'), 'saldo_atual_credito', $filterAAprovar);\n\n $this->comparar(($saldoDevedorAtivo - $saldoCredorAtivo), (($saldoCredorAComprovar - $saldoDevedorAComprovar) + ($saldoCredorAAprovar - $saldoDevedorAAprovar)));\n\n $this->saldoVerificado(__METHOD__, '1.1.9.8.1.01', '8.1.22.1.01.02', '8.1.2.2.1.01.03');\n }",
"public function isVerified() {\n\t\treturn $this->oehhstat == 'V';\n\t}",
"function verificarPermisos($permiso)\n{\n try\n {\n if (logged_user()->tipo != \"A\")\n {\n if (logged_user()->$permiso != 1)\n {\n echo \"No tiene permisos para esta accion\";\n die();\n } else\n {\n return true;\n }\n } else\n {\n return true;\n }\n } catch (Exception $ex)\n {\n Session::instance()->setFlash('ERROR: ' . $ex->getMessage());\n }\n}",
"function formulaires_abosympa_verifier_dist(){\n\t$erreurs = array();\n\n\t// recuperation des valeurs du formulaire\n\t$nom = _request('nom');\n\t$email = _request('email');\n\t$listes = _request('listes', true);\n\t$abonnement = _request('abonnement');\n\t$desabonnement = _request('desabonnement');\n\n\t// Faire une fonction de verif sur le mail pour validite\n\n\tif($email == ''){\n\t\t$erreurs['erreur_email'] = _T(\"soapsympa:email_oublie\");\n\t}\n\telse{\n\t\tinclude_spip('inc/filtres'); # pour email_valide()\n\t\tif (!email_valide($email)){\n\t\t\t$erreurs['email'] = _T(\"form_email_non_valide\");\n\t\t}\n\t\telse{\n\t\t\tspip_log(\"Email = $email;\",\"soapsympa\");\n\t\t\t\n\t\t}\n\t}\n\n\tif(empty($listes)){\n\t\t$erreurs['listes'] = _T(\"soapsympa:choisir_liste\");\n\t}\n\n //message d'erreur generalise\n if (count($erreurs)) {\n $erreurs['message_erreur'] .= _T('soapsympa:verifier_formulaire');\n }\n\n return $erreurs; // si c'est vide, traiter sera appele, sinon le formulaire sera ressoumis\n}",
"public function autorizzaPagamento($carta) {\n if($carta) {\n $this->nome = \"Banca Bicocca\";\n return (mt_rand() / mt_getrandmax() <= 0.9);\n }\n\t}",
"function verif_battle($menu = false)\n\t{\n\t\tglobal $path;\n\t\t\n\t\tif(isset($_SESSION['Battle']))\n\t\t{\n\t\t\tif ($_SESSION['Battle'] == 1)\n\t\t\t{\n\t\t\t\treturn true ;\n\t\t\t}\n\t\t\tif(!$menu)\n\t\t\t{\n\t\t\t\techo \"Vous n'êtes dans aucun affrontement\";\n\t\t\t\trequire_once($path.\"HTML/Footer.php\");\n\t\t\t\tdie();\n\t\t\t}\n\t\t}\n\t\treturn false ;\n\t}",
"function CorrectPass($mdp_v , $pass_v, $pseudo, $login){\n\t$result=false;\n\tif ($mdp_v == crypt($pass_v, \"abcd\")){\n if ($pseudo == $login) {\n\t\t$result=true;\n\t}\n}\nreturn $result;\n}",
"function evt__1__entrada()\r\n\t{\r\n\t\t$this->pasadas_por_solapa[1]++;\r\n\t}",
"function isPassOk($pass){\n\treturn true;\n}",
"public function authorize()//AQUI QUE VALIDA USUÀRIO\r\n {\r\n return true;\r\n }",
"public function validatePerms(){ \n\t\treturn TRUE;\n\t}",
"function formulaires_deleguer_verifier_dist() {\n include_spip('inc/saisies');\n // on récupère les saisies\n $mes_saisies = mes_saisies_deleguer();\n // saisies_verifier retourne un tableau des erreurs s'il y en a, sinon traiter() prend le relais\n return saisies_verifier($mes_saisies);\n}",
"public function premierePageEstActif(){\n\t\t//echo \"premierePageEstActif : \";\n\t\tif(!isset($this->dataInfos['XMLPM']['PAGES']['PREMIERE'])) return false;\n\t\t//echo \"OK \";\n\t\tif(!isset($this->dataInfos['XMLPM']['PAGES']['PREMIERE']['ACTIVE'])) return false;\n\t\t//echo \"OK \";\n\t\treturn $this->dataInfos['XMLPM']['PAGES']['PREMIERE']['ACTIVE']==\"1\";\n\t}",
"public function _check()\n {\n }",
"function _uc_parsian_authority_verify($authority) {\n $authority_local = db_result(db_query(\"SELECT COUNT(*) FROM {uc_payment_parsian} WHERE authority = '%s'\", $authority));\n return (bool) $authority_local;\n}",
"public function hasVerification()\r\n {\r\n // No need for CVN in creating/updating token\r\n return Mage::getModel('ewayrapid/method_notsaved')->hasVerification();\r\n }",
"public function check() : bool\n { \n foreach($this->caller->numbersCalled as $key => $number)\n {\n \n foreach ($this->card->numbers as $key => $cardLine) \n {\n \n if(in_array($number, $cardLine)){\n $this->confirmations++;\n continue 2;\n }\n\n }\n }\n\n if($this->confirmations<24)\n {\n return false;\n }\n\n return true;\n }",
"function SaveAfspraak()\n{\n //zoniet, return false\n\n //afspraak opslaan en return true\n\n}",
"private static function verifyEnabled() {\n try {\n\n $customerId = session()->get('id');\n\n $final = self::executeSweetApi(\n 'GET',\n '/api/social-class/v1/frontend/final?where[customers_id]='.$customerId,\n []\n );\n\n // Log::debug(get_object_vars($final));\n\n /**\n * Se já tiver atualizado as informações pessoais.\n */\n if (strlen(session()->get('updated_personal_info_at')) < 1) {\n return false;\n } \n\n /**\n * Se não possuir registro em final_social_class.\n */\n if(false === isset($final->data[0]->id)){\n return true;\n }\n\n /**\n * Se a classe social ainda for nula.\n */\n if(isset($final->data[0]->id) && (null == $final->data[0]->final_class_by_questions)){\n return true;\n }\n\n /**\n * Se já ganhou a pontuação.\n */\n if(isset($final->data[0]->id) && (60 == $final->data[0]->earned_points)){\n return false;\n }\n\n return false;\n\n } catch (RequestException $exception) {\n Log::debug($exception->getMessage());\n } catch (ConnectException $exception) {\n Log::debug($exception->getMessage());\n } catch (ClientException $exception) {\n Log::debug($exception->getMessage());\n } catch (BadResponseException $exception) {\n Log::debug($exception->getMessage());\n } \n }",
"abstract public function isPaymentValid($reference, $expected_naira_amount);",
"public function check() {}",
"public static function check();",
"function needs_payment() {\n\t\t\tif ( $this->total > 0 ) return true; else return false;\n\t\t}",
"function processa()\n {\n return true;\n }",
"private function isMulticaja(){\r\n return $this->getPaymentMethod() == 3;\r\n }",
"public function laporan()\n {\n echo \"OK\";\n }",
"public function authorize()\n {\n return Auth::user()->data_confirmacao != null;\n }",
"public function return_verify() {\n\t\treturn true;\n if($_POST['payer_status'] == 'verified')\n {\n // check the payment_status is Completed\n if ($_POST['payment_status'] != 'Completed' && $_POST['payment_status'] != 'Pending')\n {\n return false;\n }\n\n // check that receiver_email is your Primary PayPal email\n if ($_POST['receiver_email'] != $this->payment['paypal_account'])\n {\n return false;\n }\n\n if ($this->order['api_pay_amount'] != $_POST['mc_gross'])\n {\n return false;\n }\n if ($this->payment['paypal_currency'] != $_POST['mc_currency'])\n {\n return false;\n }\n return true;\n }\n else\n {\n // log for manual investigation\n return false;\n }\n }",
"public function isConfirmada(): bool\n {\n return $this->getStatus() === self::STATUS_CONFIRMADA;\n }",
"function checkorderstatus($ordid){\n $Ord=M('Balance');\n $isverified=$Ord->where('balanceno='.$ordid)->getField('isverified');\n if($isverified==1){\n return true;\n }else{\n return false;\n }\n}",
"function verifica_caja_virtual($acceso,$id_pd=''){\n\t$ini_u = 'AA';\n\t$fecha= date(\"Y-m-d\");\n\t$id_caja='BB001';\n\t$id_persona='BB00000001';\n\t$id_est='BB001';\n\t$apertura_caja=date(\"H:i:s\");\n\t$status_caja='ABIRTA';\n\t$acceso->objeto->ejecutarSql(\" select id_caja_cob from caja_cobrador where fecha_caja='$fecha' and id_caja='$id_caja' and id_persona='$id_persona' and id_est='$id_est'\");\n\tif($row=row($acceso)){\n\t\t$id_caja_cob=trim($row[\"id_caja_cob\"]);\n\t}else{\n\t\t$acceso->objeto->ejecutarSql(\"select * from caja_cobrador where (id_caja_cob ILIKE '$ini_u%') ORDER BY id_caja_cob desc\"); \n\t\t$id_caja_cob = $ini_u.verCodLong($acceso,\"id_caja_cob\");\n\n\t\t$acceso->objeto->ejecutarSql(\"insert into caja_cobrador(id_caja_cob,id_caja,id_persona,fecha_caja,apertura_caja,status_caja,id_est,fecha_sugerida) values ('$id_caja_cob','$id_caja','$id_persona','$fecha','$apertura_caja','$status_caja','$id_est','$fecha')\");\n\t\t$acceso->objeto->ejecutarSql(\"Update caja Set status_caja='Abierta' Where id_caja='$id_caja'\");\n\t}\n\treturn $id_caja_cob;\n}",
"public function calculateValuation(): bool\n {\n return 0;\n }",
"public static function checkParise($id) {\n\t if (!$id) return false;\n\t $cookie = json_decode(Util_Cookie::get('GOU-PRAISE', true), true);\n\t if(in_array('amigo_goods_'.$id, $cookie)) return true;\n\t return false;\n\t}",
"public function procesarSolicitud()\r\n {\r\n $result = false;\r\n if ( $this->_evento == Yii::$app->solicitud->aprobar() ) {\r\n $result = self::aprobarDetalleSolicitud();\r\n\r\n } elseif ( $this->_evento == Yii::$app->solicitud->negar() ) {\r\n $result = self::negarDetalleSolicitud();\r\n }\r\n return $result;\r\n }",
"public function check_appr($tb,$id,$sts)\n\t\t{\n\t\t\t$que = ($sts != null)?$this->db->get_where($tb,array('appr_id'=>$id,$sts=>'1')):$this->db->get_where($tb,array('appr_id'=>$id));\n\t\t\t$cou = $que->num_rows();\n\t\t\treturn $cou;\n\t\t}",
"private function choixEffectuer()\n {\n $valider = false;//on mets le forrmulaire a faux\n $valeur = $this->recupValeur($this->position['valeur']);//on recupêre la valeur a comparer\n\n if($this->position['egal'])\n {\n \n if($this->choix == $valeur)\n {\n $valider = true;\n }\n }\n else if($this->position['different'])\n {\n \n if($this->choix != $valeur)\n {\n $valider = true;\n }\n }\n else\n {\n Erreur::declarer_dev(27);\n }\n\n return $valider;\n\n }",
"function verMas()\t\r\n\t\t{\r\n\t\t\t\r\n\t\t\tglobal $use;\r\n\t\t\tglobal $priv;\r\n\r\n\t\t\t//NOTA: Para ver si funciona tienen que asociarle un adherente en la tabla socios, ya que en los datos de ejemplo todos son titulares\r\n\t\t\t//NOTA: Lo que hice fue: en tabla socios en numero_soc=00044 cambiar el campo soc_titula de manera que quede soc_titula=00277\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DEL ASOCIADO TITULAR----------------\r\n\t\t\t\r\n\t\t\t$numero_socio = $_GET['num_soc']; //Es el número del socio titular que debe ser tomado del PASO 1\r\n\t\t\t\r\n\r\n\t\t\t\t$resultadoTitular = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t\t\t\t\t\t FROM socios,persona \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\");\r\n\t\t\t\t\t\t\t\t\t \r\n\r\n\t\t\tif(!$resultadoTitular)\r\n\t\t\t{\r\n\t\t\t\t$error=[\r\n\t\t\t\t'menu'\t\t\t=>\"Atenciones\",\r\n\t\t\t\t'funcion'\t\t=>\"verMas\",\r\n\t\t\t\t'descripcion'\t=>\"No se encuentra al titular $numero_socio\"\r\n\t\t\t\t];\r\n\t\t\t\techo $GLOBALS['twig']->render('/Atenciones/error.html', compact('error','use','priv'));\t\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t///---FUNCIÓN PARA CALCULAR EDAD----\r\n\t\t\t\r\n\t\t\t$fecha=$resultadoTitular[0]['fecnacim'];\r\n\t\t\t$dias = explode(\"-\", $fecha, 3);\r\n\t\t\t\r\n\t\t\t// $dias[0] es el año\r\n\t\t\t// $dias[1] es el mes\r\n\t\t\t// $dias[2] es el dia\r\n\t\t\t\r\n\t\t\t// mktime toma los datos en el orden (0,0,0, mes, dia, año) \r\n\t\t\t$dias = mktime(0,0,0,$dias[1],$dias[2],$dias[0]);\r\n\t\t\t$edad = (int)((time()-$dias)/31556926 );\r\n\t\t\t$resultadoTitular[0]['edad']=$edad;\r\n\t\t\t\r\n\t\t\t///---FIN FUNCIÓN PARA CALCULAR EDAD----\r\n\t\t\t\r\n\t\t\t$estado[0]='1';\r\n\t\t\t$estado[1]='1';\r\n\t\t\t$estado[2]='1';\r\n\t\t\t$estado[3]='1';\r\n\t\t\t$estado[4]='1';\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS SERVICIOS DEL ASOCIADO TITULAR----------------\r\n\t\t\t\r\n\t\t\t//Por cuota\r\n\t\t\t$resultadoTitularServicios1 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,fme_adhsrv.codigo,fme_adhsrv.parentesco,fme_adhsrv.periodoini,fme_adhsrv.periodofin,fme_adhsrv.motivobaja,fme_adhsrv.documento\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.idmutual \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,fme_adhsrv,tar_srv \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.socnumero = socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.codigo = tar_srv.idmutual\");\r\n\t\t\t\t\t\t\t\t\t \r\n\t\t\tif(!$resultadoTitularServicios1)\r\n\t\t\t\t$estado[0]='0';\r\n\t\t\t\r\n\t\t\t//Por tarjeta\r\n\t\t\t$resultadoTitularServicios2 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.codigo AS codigotarsrv, tar_srvadherentes.codigo, tar_srvadherentes.parentesco \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,tar_srv, tar_srvadherentes \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n AND socios.numero_soc= socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.socnumero = socios.soc_titula \r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.codigo = tar_srv.codigo\");\r\n\t\t\t\r\n\t\t\tif(!$resultadoTitularServicios2)\r\n\t\t\t\t$estado[1]='0';\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS ADHERENTES DEL ASOCIADO TITULAR CON APORTES POR CUOTA----------------\r\n\t\t\t\r\n\r\n\t\t $resultadoAdherentes1 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,fme_adhsrv.codigo,fme_adhsrv.parentesco,fme_adhsrv.periodoini,fme_adhsrv.periodofin,fme_adhsrv.motivobaja,fme_adhsrv.documento\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.idmutual \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,fme_adhsrv,tar_srv \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio'\r\n\t\t\t\t\t\t\t\t\t AND socios.numero_soc != socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.socnumero = socios.numero_soc \r\n\t\t\t\t\t\t\t\t\t AND fme_adhsrv.codigo = tar_srv.idmutual\");\r\n\t\t\t\r\n\t\t\tif(!$resultadoAdherentes1)\r\n\t\t\t\t$estado[2]='0';\r\n\t\t\t\r\n\t\t\t//---------------CONSULTA QUE DEVUELVE TODA LA INFO DE LOS ADHERENTES DEL ASOCIADO TITULAR CON APORTES POR TARJETA----------------\r\n\r\n\t\t\t$resultadoAdherentes2 = $GLOBALS['db']->select(\"SELECT socios.id_persona,socios.numero_soc,socios.beneficio,socios.fec_alt,socios.fec_baja,socios.lugar_pago,socios.soc_titula\r\n\t\t\t\t,persona.id_persona,persona.nombre,persona.numdoc,persona.cuil,persona.sexo,persona.fecnacim,persona.domicilio,persona.casa_nro,persona.barrio,persona.localidad,persona.codpostal\r\n\t\t\t\t,persona.dpmto,persona.tel_fijo,persona.tel_cel,persona.fec_alta AS fec_alta2,persona.fec_baja AS fec_baja2,persona.cbu,persona.banco,persona.usualta\r\n\t\t\t\t,tar_srv.nombre AS nombreplan,tar_srv.codigo AS codigotarsrv, tar_srvadherentes.codigo, tar_srvadherentes.parentesco \r\n\t\t\t\t\t\t\t\t\t FROM socios,persona,tar_srv, tar_srvadherentes \r\n\t\t\t\t\t\t\t\t\t WHERE socios.soc_titula = '$numero_socio'\r\n\t\t\t\t\t\t\t\t\t AND socios.numero_soc != socios.soc_titula\r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.socnumero = socios.numero_soc \r\n\t\t\t\t\t\t\t\t\t AND tar_srvadherentes.codigo = tar_srv.codigo\");\t\r\n\r\n\t\t\t\r\n\r\n\t\t\t\t\t\t\t\t \r\n\t\t\t\r\n\t\t\tif(!$resultadoAdherentes2)\r\n\t\t\t\t$estado[3]='0';\r\n\t\t\r\n\t\t \r\n\t\t\t//---------------CONSULTA QUE DEVUELVE EL LISTADO DE TODAS LAS ASISTENCIAS----------------\r\n\t\t\t\r\n\t\t\t//NOTA: Para que puedan ver si funciona o no hacer la prueba con el siguiente ejemplo:\r\n\t\t\t// En la tabla fme_asistencia modifiquen en cualquier lado y pongan alguno con doctitu = 06948018 (o busquen cualquier DNI de un socio titular y usen ese)\r\n\t\t\t// Cuando prueben el sistema vayan al ver más de Barrionuevo Samuel y van a ver el listado de atenciones que tiene asociado\r\n\t\t\t\r\n\t\t\t$asistencias = $GLOBALS['db']->select(\"SELECT fme_asistencia.doctitu, fme_asistencia.numdoc, fme_asistencia.nombre,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.fec_pedido, fme_asistencia.hora_pedido, fme_asistencia.dessit, fme_asistencia.fec_ate,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.sintomas, fme_asistencia.diagnostico, fme_asistencia.tratamiento, fme_asistencia.hora_aten,\r\n\t\t\t\t\t\t\t\t\t fme_asistencia.profesional\r\n\t\t\t\t\t\t\t\t\t FROM fme_asistencia, socios, persona \r\n\t\t\t\t\t\t\t\t\t WHERE soc_titula = '$numero_socio' \r\n\t\t\t\t\t\t\t\t\t AND socios.id_persona = persona.id_persona\r\n\t\t\t\t\t\t\t\t\t AND numero_soc = soc_titula\r\n\t\t\t\t\t\t\t\t\t AND persona.numdoc = fme_asistencia.doctitu\");\r\n\t\t\t\r\n\t\t\tif(!$asistencias)\r\n\t\t\t\t$estado[4]='0';\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\r\n\t\t\techo $GLOBALS['twig']->render('/Atenciones/perfil.html', compact('resultadoTitular', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoTitularServicios1', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoTitularServicios2', \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoAdherentes1',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'resultadoAdherentes2',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'asistencias',\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'estado','use','priv'));\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}",
"function provera($broj) {\r\n if ($broj <= 1) {\r\n throw new Exception(\"Broj mora biti veci od 1\");\r\n }\r\n}",
"function verify_person () {\n $bh=new gs_base_handler($this->data,$this->params);\n $f=$bh->validate();\n if (!is_object($f) || !is_a($f,'g_forms')) return $f;\n $d=$f->clean();\n\n $rec=person($this->params['role']);\n if (!$rec) {\n $f->trigger_error('FORM_ERROR','REC_NOTFOUND');\n return $bh->showform($f);\n }\n\n $fname=$this->params['field_name'].'_secret';\n $ga=new GoogleAuthenticator;\n $code=$ga->getCode($rec->$fname);\n\n\n if ($code!=$d['ga_code']) {\n $f->trigger_error('FORM_ERROR','GA_INCORRECT_CODE');\n return $bh->showform($f);\n }\n\n $person=person();\n $fname=$this->params['field_name'].'_verified';\n $person->$fname=TRUE;\n return true;\n }",
"public static function checkParise($id) {\n\t if (!$id) return false;\n\t $cookie = json_decode(Util_Cookie::get('GOU-PRAISE', true), true);\n\t if(in_array('zdm_'.$id, $cookie)) return true;\n\t return false;\n\t}",
"private function verify( $snippit )\n\t{\n\t\t// Check the title\n\t\tif( empty( $snippit -> title ) || is_null( $snippit -> title ) ) :\n\t\t\t$this -> errorCode \t= 1;\n\t\t\t$this -> errorMsg \t= \"No title specified\"; \n\t\t\treturn false;\n\t\tendif;\n\t\t\n\t\t// Check the code\n\t\tif( empty( $snippit -> code ) || is_null( $snippit -> code ) ) :\n\t\t\t$this -> errorCode\t=\t2;\n\t\t\t$this -> errorMsg\t\t= \"No code/data specified\";\n\t\t\treturn false; \n\t\tendif;\n\t\t\n\t\treturn true;\n\t}",
"public function _validarHelado()\n {\n $listaHelados = Helado::_traerHelados();\n //Son distintos, pasa la validación.(Si y solo si se queda en este valor)\n $retorno = -1;\n if($this->_precio < 0 || $this->_tipo != \"agua\" && $this->_tipo != \"crema\" || $this->_cantidad < 0)\n {\n return 1;\n }\n foreach($listaHelados as $helado)\n { \n if($this->_sabor == $helado->_sabor && $this->_tipo == $helado->_tipo)\n {\n $helado->_cantidad = $this->_cantidad;\n $helado->_precio = $this->_precio;\n Helado::_actualizarHelado($listaHelados);\n $retorno = 0;\n break;\n }\n }\n return $retorno;\n }",
"public function processPayment(){\r\n return true;\r\n }",
"public function check()\r\n\t{\r\n\t\treturn true;\r\n\t}",
"function it_es_polimodal(){\r\n\t\t$this->Plan->recursive = -1;\r\n \t$plan = $this->Plan->findById($this->data['Anio']['plan_id']);\r\n \tif($plan['Plan']['oferta_id'] == ITINERARIO_ID){\r\n if ($this->data['Anio']['etapa_id'] != ETAPA_POLIMODAL) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }"
] | [
"0.6457066",
"0.6392231",
"0.6267394",
"0.62084246",
"0.61218977",
"0.6116772",
"0.61003834",
"0.6049904",
"0.60246915",
"0.6001774",
"0.5987657",
"0.5984873",
"0.5954617",
"0.5935115",
"0.5927135",
"0.592493",
"0.5918727",
"0.58919704",
"0.58918804",
"0.5872559",
"0.5866593",
"0.5841336",
"0.5841336",
"0.5841336",
"0.5841336",
"0.5841336",
"0.58276266",
"0.581949",
"0.5819086",
"0.58164436",
"0.5809192",
"0.5803951",
"0.5803365",
"0.5802318",
"0.5796071",
"0.5776227",
"0.5771078",
"0.5770039",
"0.5762235",
"0.57617825",
"0.5756511",
"0.57305866",
"0.5727088",
"0.57265836",
"0.571889",
"0.5710109",
"0.5710109",
"0.5706574",
"0.57021254",
"0.57018155",
"0.5689147",
"0.56876147",
"0.5684442",
"0.56832224",
"0.567545",
"0.5674472",
"0.56718653",
"0.5670811",
"0.56687057",
"0.56544036",
"0.565214",
"0.5649524",
"0.56481165",
"0.5633268",
"0.5631315",
"0.5625894",
"0.56221104",
"0.5607859",
"0.5607517",
"0.560192",
"0.5597053",
"0.55949676",
"0.55949646",
"0.5594934",
"0.55858713",
"0.55815536",
"0.55812925",
"0.5575615",
"0.5569665",
"0.5568407",
"0.555936",
"0.55592453",
"0.5557177",
"0.5556202",
"0.5553888",
"0.55511993",
"0.5544461",
"0.5544224",
"0.5541403",
"0.55330384",
"0.55302083",
"0.552993",
"0.5529449",
"0.55278206",
"0.5519704",
"0.5517449",
"0.5517048",
"0.5515106",
"0.55147845",
"0.551439",
"0.55086553"
] | 0.0 | -1 |
Initializes the Battleeffect Attaches itself to the Battle, or increases the duration of an existing (same) Battleeffect | public function initialize($battle, $hero, $enemy, $options = array()) {
$options = array_merge(
// The default options
array(
'autoAttach' => true,
'turns' => $this->turns,
),
// The specified options
$options
);
/**
* up to this point: hero = combatant who brought this effect into play
* adjust so that heroString is the owner of the buff/debuff
*/
if($this->buff) {
$this->heroString = $battle->getCombatantString($hero);
$this->enemyString = $battle->getCombatantString($enemy);
} else {
$this->heroString = $battle->getCombatantString($enemy);
$this->enemyString = $battle->getCombatantString($hero);
}
$this->active = true;
$this->turns = (!empty($options['turns']) ? $options['turns'] : 0);
if($this->blocks && $this->blockNumberOfBlocks > 0) {
$this->charges = $this->blockNumberOfBlocks;
}
/**
* Adds the effect in case it's not already active
* Unless the effect should only be active once per combatant,
* in which case the duration will be increased
*/
if($options['autoAttach']) {
if(!$this->singleton || !$battle->battleeffects->contains($this)) {
$battle->addEffect($this);
return "added";
} elseif ($this->increaseDuration) {
$battle->increaseEffectDuration($this);
return "increasedDuration";
}
}
return "notAdded";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addEffect($Effect) {\n $Effect->call(\"attachToBattle\", $this);\n $this->battleeffects->add($Effect);\n }",
"public function effect1()\n {\n }",
"abstract public function buildEffect();",
"public function increaseEffectDuration($Battleeffect, $sameHero = true) {\n $existingEffectIndex = $this->battleeffects->indexOf($Battleeffect, $sameHero);\n if($existingEffectIndex > -1) {\n $existingEffect = $this->battleeffects->itemAt($existingEffectIndex);\n $existingEffect->turns += $Battleeffect->turns;\n } else {\n // nothing or throw exception?\n }\n }",
"function stDogmaEffect() {\n $current_effect_type = self::getGameStateValue('current_effect_type');\n $current_effect_number = self::getGameStateValue('current_effect_number');\n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n $qualified_effect = self::qualifyEffect($current_effect_type, $current_effect_number, $card);\n \n // Search for the first player who will undergo/share the effects, if any\n $first_player = self::getFirstPlayerUnderEffect($current_effect_type);\n if ($first_player === null) {\n // There is no player affected by the effect\n self::notifyGeneralInfo(\"<span class='minor_information'>\" . clienttranslate('Nobody is affected by the ${qualified_effect} of the card.') . \"</span>\", array(\n 'i18n' => array('qualified_effect'),\n 'qualified_effect' => $qualified_effect\n ));\n \n // End of the effect\n self::trace('dogmaEffect->interDogmaEffect');\n $this->gamestate->nextState('interDogmaEffect');\n return;\n }\n \n self::setGameStateValue('current_player_under_dogma_effect', $first_player);\n $this->gamestate->changeActivePlayer($first_player);\n \n // Begin the loop with this player\n self::trace('dogmaEffect->playerInvolvedTurn');\n $this->gamestate->nextState('playerInvolvedTurn');\n }",
"public function run()\n {\n $effects = ['chorus', 'delay', 'reverb'];\n\n foreach ($effects as $effect) {\n Effect::create(['name' => $effect]);\n }\n }",
"public function attachToBattle($battle) {\n $battle->onAfterRound = array($this, 'reactToOnAfterRound');\n if($this->blocks) {\n $battle->onBeforeAction = array($this, 'reactToOnBeforeAction');\n }\n }",
"public function __construct(){\n\n // Update the session keys for this object\n $this->session_key = 'BATTLES';\n $this->session_token = 'battle_token';\n $this->session_id = 'battle_id';\n $this->class = 'battle';\n $this->multi = 'battles';\n\n // Create any required sub-objects\n $this->queue['sound_effects'] = array();\n\n // Collect any provided arguments\n $args = func_get_args();\n\n // Collect current battle data from the function if available\n $this_battleinfo = isset($args[0]) ? $args[0] : array('battle_id' => 0, 'battle_token' => 'battle');\n\n // Now load the battle data from the session or index\n $this->battle_load($this_battleinfo);\n\n // Return true on success\n return true;\n\n }",
"public function start() {\n // Init stuff\n $this->combatantAID = $this->combatantA->id;\n $this->combatantBID = $this->combatantB->id;\n\n // Decide between pve and pvp\n if(get_class($this->combatantB) == \"Monster\") {\n $this->combatantB->call(\"getReadyForBattle\");\n $this->type = \"monster\";\n } else {\n $this->type = \"pvp\";\n }\n \n $this->state = \"ongoing\";\n $this->winnerType = 'undecided';\n \n $this->battleeffects = new BattleeffectList();\n \n \n if($this->type == \"pvp\") {\n // @todo Should players have first round battle messages?\n } else {\n $battleMsg = new Battlemessage(\n $this->combatantB->call(\"createFirstRoundCombatMessage\")\n );\n $this->log($this->combatantB, $battleMsg);\n }\n\n // Insert new DB record\n $this->insert();\n \n // Set ongoingBattleID for combattants\n $this->combatantA->ongoingBattleID = $this->id;\n if($this->type == \"pvp\") {\n $this->combatantB->ongoingBattleID = $this->id;\n // $this->combatantB->save();\n }\n \n $this->saveObjectState();\n }",
"public function setEffect( $effect ) {\n $this->effect = $effect;\n }",
"function stInterDogmaEffect() { $current_effect_type = self::getGameStateValue('current_effect_type');\n \n // Indicate the potential new (non-demand) dogma to come\n if ($current_effect_type == 0) { // I demand dogma : there is only one for this version of this game\n $current_effect_number = 1; // Switch on the first non-demand dogma, if exists\n }\n else {\n $current_effect_number = self::getGameStateValue('current_effect_number') + 1; // Next non-demand dogma, if exists\n }\n \n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n \n // Check whether this new dogma exists actually or not\n if ($current_effect_number > 3 || $card['non_demand_effect_'.$current_effect_number] === null) {\n // No card has more than 3 non-demand dogma => there is no more effect\n // or the next non-demand-dogma effect is not defined\n \n $sharing_bonus = self::getGameStateValue('sharing_bonus');\n $launcher_id = self::getGameStateValue('active_player');\n \n // Stats\n $i_demand_effects = false;\n $executing_players = self::getExecutingPlayers();\n foreach($executing_players as $player_id => $stronger_or_equal) {\n if ($player_id == $launcher_id) {\n continue;\n }\n if ($stronger_or_equal) { // This player had effectively shared some dogma effects of the card\n self::incStat(1, 'sharing_effects_number', $player_id);\n }\n else { // The card had an I demand effect, and at least one player executed it with effects\n self::incStat(1, 'i_demand_effects_number', $player_id);\n $i_demand_effects = true;\n }\n\n }\n if ($i_demand_effects) {\n self::incStat(1, 'dogma_actions_number_with_i_demand', $launcher_id);\n }\n if ($sharing_bonus == 1) {\n self::incStat(1, 'dogma_actions_number_with_sharing', $launcher_id);\n }\n \n // Award the sharing bonus if needed\n if ($sharing_bonus == 1) {\n self::notifyGeneralInfo('<span class=\"minor_information\">${text}</span>', array('i18n'=>array('text'), 'text'=>clienttranslate('Sharing bonus.')));\n $player_who_launched_the_dogma = self::getGameStateValue('active_player');\n try {\n self::executeDraw($player_who_launched_the_dogma); // Draw a card with age consistent with player board\n }\n catch (EndOfGame $e) {\n // End of the game: the exception has reached the highest level of code\n self::trace('EOG bubbled from self::stInterDogmaEffect');\n self::trace('interDogmaEffect->justBeforeGameEnd');\n $this->gamestate->nextState('justBeforeGameEnd');\n return;\n }\n }\n \n // The active player may have changed during the dogma. Reset it on the player whose turn was\n $this->gamestate->changeActivePlayer($launcher_id);\n \n // Reset player table\n self::resetPlayerTable();\n \n // [R] Disable the flags used when in dogma \n self::setGameStateValue('dogma_card_id', -1);\n self::setGameStateValue('current_effect_type', -1);\n self::setGameStateValue('current_effect_number', -1);\n self::setGameStateValue('sharing_bonus', -1);\n self::setGameStateValue('current_player_under_dogma_effect', -1);\n self::setGameStateValue('step', -1);\n self::setGameStateValue('step_max', -1);\n self::setGameStateValue('special_type_of_choice', -1);\n self::setGameStateValue('choice', -1);\n self::setGameStateValue('splay_direction', -1);\n self::setGameStateValue('n_min', -1);\n self::setGameStateValue('n_max', -1);\n self::setGameStateValue('solid_constraint', -1);\n self::setGameStateValue('owner_from', -1);\n self::setGameStateValue('location_from', -1);\n self::setGameStateValue('owner_to', -1);\n self::setGameStateValue('location_to', -1);\n self::setGameStateValue('bottom_to', -1);\n self::setGameStateValue('age_min', -1);\n self::setGameStateValue('age_max', -1);\n self::setGameStateValue('color_array', -1);\n self::setGameStateValue('with_icon', -1);\n self::setGameStateValue('without_icon', -1);\n self::setGameStateValue('not_id', -1);\n self::setGameStateValue('can_pass', -1);\n self::setGameStateValue('n', -1);\n self::setGameStateValue('id_last_selected', -1);\n self::setGameStateValue('age_last_selected', -1);\n self::setGameStateValue('color_last_selected', -1);\n self::setGameStateValue('score_keyword', -1);\n self::setGameStateValue('auxiliary_value', -1);\n for($i=1; $i<=9; $i++) {\n self::setGameStateInitialValue('nested_id_'.$i, -1);\n self::setGameStateInitialValue('nested_current_effect_number_'.$i, -1);\n }\n \n // End of this player action\n self::trace('interDogmaEffect->interPlayerTurn');\n $this->gamestate->nextState('interPlayerTurn');\n return;\n }\n \n // There is another (non-demand) effect to perform\n self::setGameStateValue('current_effect_type', 1);\n self::setGameStateValue('current_effect_number', $current_effect_number);\n \n // Jump to this effect\n self::trace('interDogmaEffect->dogmaEffect');\n $this->gamestate->nextState('dogmaEffect');\n }",
"public function __construct()\n {\n $this->battleground = new Battleground;\n $this->red = null;\n $this->blue = null;\n $this->reasonRed = null;\n $this->reasonBlue = null;\n }",
"public function applyDamage()\n\t\t{\n\t\t\tforeach ($this->_members as $member)\n\t\t\t{\n\t\t\t\tif ($member->_alive)\n\t\t\t\t{\n\t\t\t\t\t$member->takeDamage();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"function stPlayerInvolvedTurn() {\n $player_id = self::getGameStateValue('current_player_under_dogma_effect');\n $launcher_id = self::getGameStateValue('active_player');\n $nested_id_1 = self::getGameStateValue('nested_id_1');\n $card_id = $nested_id_1 == -1 ? self::getGameStateValue('dogma_card_id') : $nested_id_1 ;\n $current_effect_type = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_type') : 1 /* Non-demand effects only*/;\n $current_effect_number = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_number') : self::getGameStateValue('nested_current_effect_number_1');\n $step_max = null;\n $step = null;\n \n $qualified_effect = self::qualifyEffect($current_effect_type, $current_effect_number, self::getCardInfo($card_id)); \n self::notifyEffectOnPlayer($qualified_effect, $player_id, $launcher_id);\n \n $crown = self::getIconSquare(1);\n $leaf = self::getIconSquare(2);\n $lightbulb = self::getIconSquare(3);\n $tower = self::getIconSquare(4);\n $factory = self::getIconSquare(5);\n $clock = self::getIconSquare(6);\n \n try {\n //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n // [A] SPECIFIC CODE: what are the automatic actions to make and/or is there interaction needed?\n $code = $card_id.($current_effect_type == 0 ? \"D\" : \"N\" ).$current_effect_number;\n self::trace('[A]'.$code.' '.self::getPlayerNameFromId($player_id).'('.$player_id.')'.' | '.self::getPlayerNameFromId($launcher_id).'('.$launcher_id.')');\n switch($code) {\n // The first number is the id of the card\n // D1 means the first (and single) I demand effect\n // N1 means the first non-demand effect\n // N2 means the second non-demand effect\n // N3 means the third non-demand effect\n \n // Setting the $step_max variable means there is interaction needed with the player\n \n // id 0, age 1: Pottery\n case \"0N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"0N2\":\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n break;\n\n // id 1, age 1: Tools\n case \"1N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"1N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 2, age 1: Writing\n case \"2N1\":\n self::executeDraw($player_id, 2); // \"Draw a 2\"\n break;\n \n // id 3, age 1: Archery\n case \"3D1\":\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 4, age 1: Metalworking\n case \"4N1\":\n while(true) {\n $card = self::executeDraw($player_id, 1, 'revealed'); // \"Draw and reveal a 1\"\n if (self::hasRessource($card, 4)) { // \"If it as tower\"\n self::notifyGeneralInfo(clienttranslate('It has a ${tower}.'), array('tower' => $tower));\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score it\"\n continue; // \"Repeat this dogma effect\"\n }\n break; // \"Otherwise\" \n }\n self::notifyGeneralInfo(clienttranslate('It does not have a ${tower}.'), array('tower' => $tower));\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep it\"\n break;\n \n // id 5, age 1: Oars\n case \"5D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"5N1\":\n if (self::getGameStateValue('auxiliary_value') <= 0) { // \"If no cards were transfered due to this demand\"\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n }\n break;\n \n // id 6, age 1: Clothing\n case \"6N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"6N2\":\n // \"Score a 1 for each color present on your board not present on any other player board\"\n // Compute the number of specific colors\n $number_to_be_scored = 0;\n $players = self::loadPlayersBasicInfos();\n $boards = self::getAllBoards($players);\n for ($color = 0; $color < 5; $color++) { // Evaluate each color\n if (count($boards[$player_id][$color]) == 0) { // The player does not have this color => no point\n continue;\n }\n // The player has this color, do opponents have?\n $color_on_opponent_board = false;\n foreach($players as $other_player_id => $player) {\n if ($other_player_id == $player_id || $other_player_id == self::getPlayerTeammate($player_id)) {\n continue; // Skip the player being evaluated and his teammate\n }\n if (count($boards[$other_player_id][$color]) > 0) { // This opponent has this color => no point\n $color_on_opponent_board = true;\n break;\n }\n }\n if (!$color_on_opponent_board) { // The opponents do not have this color => point\n $number_to_be_scored++;\n }\n }\n // Indicate this number\n if ($number_to_be_scored == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no specific color on your board.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no specific color on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else if ($number_to_be_scored == 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have one specific color on your board.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has one specific color on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else {\n $translated_number = self::getTranslatedNumber($number_to_be_scored);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} specific colors on your board.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $translated_number));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} specific colors on his board.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $translated_number));\n }\n // Score this number of times\n for ($i=0; $i < $number_to_be_scored; $i++) {\n self::executeDraw($player_id, 1, 'score');\n }\n break;\n \n // id 7, age 1: Sailing\n case \"7N1\":\n self::executeDraw($player_id, 1, 'board'); // \"Draw and meld a 1\"\n break;\n \n // id 8, age 1: The wheel\n case \"8N1\":\n self::executeDraw($player_id, 1); // \"Draw two 1\"\n self::executeDraw($player_id, 1); // \n break;\n \n // id 9, age 1: Agriculture\n case \"9N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 10, age 1: Domestication\n case \"10N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 11, age 1: Masonry\n case \"11N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 12, age 1: City states\n case \"12D1\":\n $number_of_towers = self::getUniqueValueFromDB(self::format(\"\n SELECT\n player_icon_count_4\n FROM\n player\n WHERE\n player_id = {player_id}\n \",\n array('player_id' => $player_id)\n ));\n \n if ($number_of_towers >= 4) { // \"If you have at least four towers on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least four ${icon} on your board.'), array('You' => 'You', 'icon' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least four ${icon} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'icon' => $tower));\n $step_max = 1; // --> 1 interaction: see B\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have less than four ${icon} on your board.'), array('You' => 'You', 'icon' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has less than four ${icon} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'icon' => $tower));\n }\n break;\n \n // id 13, age 1: Code of laws\n case \"13N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 14, age 1: Mysticism\n case \"14N1\":\n $card = self::executeDraw($player_id, 1, 'revealed'); // \"Draw and reveal a 1\n $color = $card['color'];\n if (self::hasThisColorOnBoard($player_id, $color)) { // \"If it is the same color of any card on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('This card is ${color}; ${you} have this color on your board.'), array('i18n' => array('color'), 'you' => 'you', 'color' => self::getColorInClear($color)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('This card is ${color}; ${player_name} has this color on his board.'), array('i18n' => array('color'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'color' => self::getColorInClear($color)));\n self::transferCardFromTo($card, $player_id, 'board'); // \"Meld it\"\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('This card is ${color}; ${you} do not have this color on your board.'), array('i18n' => array('color'), 'you' => 'you', 'color' => self::getColorInClear($color)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('This card is ${color}; ${player_name} does not have this color on his board.'), array('i18n' => array('color'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'color' => self::getColorInClear($color)));\n self::transferCardFromTo($card, $player_id, 'hand'); // (Put the card in your hand)\n }\n break;\n \n // id 15, age 2: Calendar\n case \"15N1\":\n if (self::countCardsInLocation($player_id, 'score') > self::countCardsInLocation($player_id, 'hand')) { // \"If you have more cards in your score pile than in your hand\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have more cards in your score pile than in your hand.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has more cards in his score pile than in his hand.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n \n self::executeDraw($player_id, 3); // \"Draw two 3\"\n self::executeDraw($player_id, 3); // \n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} do not have more cards in your score pile than in your hand.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} does not have more cards in his score pile than in his hand.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n break;\n \n // id 16, age 2: Mathematics\n case \"16N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 17, age 2: Construction\n case \"17D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"17N1\":\n $boards = self::getAllBoards(self::loadPlayersBasicInfos());\n $eligible = true;\n foreach($boards as $current_id => $board) {\n if ($current_id == self::getPlayerTeammate($player_id)) { // Ignore teammate\n continue;\n }\n $number_of_top_cards = 0;\n for($color=0; $color<5; $color++) {\n if (count($board[$color]) > 0) { // This player has a top card for this color.\n $number_of_top_cards++;\n }\n }\n if ($current_id == $player_id && $number_of_top_cards < 5 || $current_id != $player_id && $number_of_top_cards == 5) { // This player is the active player and has not 5 top cards, or he is an opponent who has 5 top cards\n $eligible = false;\n }\n }\n if ($eligible) { // \"If you are the only player with five top cards\"\n $achievement = self::getCardInfo(105);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} are the only player with five top cards.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} is the only player with five top cards.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Empire achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} are the only player with five top cards but the Empire achievement has already been claimed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} is the only player with five top cards but the Empire achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n }\n break;\n \n // id 18, age 2: Road building\n case \"18N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 19, age 2: Currency\n case \"19N1\":\n self::setGameStateValueFromArray('auxiliary_value', array());\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 20, age 2: Mapmaking\n case \"20D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"20N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n self::executeDraw($player_id, 1, 'score'); // \"Draw and score a 1\"\n }\n break;\n \n // id 21, age 2: Canal building \n case \"21N1\":\n if (self::countCardsInLocation($player_id, 'score') == 0 && self::countCardsInLocation($player_id, 'hand') == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no cards in your hand or score pile to exchange.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no cards in their hand or score pile to exchange.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n } else {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 22, age 2: Fermenting \n case \"22N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number = 0;\n for($color=0; $color<5; $color++) {\n if (self::boardPileHasRessource($player_id, $color, 2 /* leaf */)) { // There is at least one visible leaf in that color\n $number++;\n }\n }\n if ($number <= 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color with one or more visible ${leaves}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color with one or more ${leaves}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n }\n else { // $number > 1\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors with one or more visible ${leaves}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors with one or more ${leaves}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n }\n // \"For each color of your board that have one leaf or more\"\n }\n else {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2 /* leaf */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${leaves}.'), array('You' => 'You', 'n' => $number_of_leaves, 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${leaves}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_leaves, 'leaves' => $leaf));\n $number = self::intDivision($number_of_leaves,2); // \"For every two leaves on your board\"\n }\n \n for($i=0; $i<$number; $i++) {\n self::executeDraw($player_id, 2); // \"Draw a 2\"\n }\n break;\n \n // id 23, age 2: Monotheism \n case \"23D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"23N1\":\n self::executeDraw($player_id, 1, 'board', true); // \"Draw and tuck a 1\"\n break;\n \n // id 24, age 2: Philosophy \n case \"24N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"24N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 25, age 3: Alchemy \n case \"25N1\":\n $number_of_towers = self::getPlayerSingleRessourceCount($player_id, 4);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${towers}.'), array('You' => 'You', 'n' => $number_of_towers, 'towers' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${towers}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_towers, 'towers' => $tower));\n $any_card_red = false;\n $cards = array();\n for($i=0; $i<self::intDivision($number_of_towers,3); $i++) { // \"For every three towers on your board\"\n $card = self::executeDraw($player_id, 4, 'revealed'); // \"Draw and reveal a 4\"\n if ($card['color'] == 1) { // This card is red\n $any_card_red = true;\n }\n $cards[] = $card;\n }\n \n if ($any_card_red) { // \"If any of the drawn cards are red\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} drew a red card.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} drew a red card.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n\n $step_max = 1; // --> 1 interactions: see B\n }\n else { // \"Otherwise\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} did not draw a red card.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} did not draw a red card.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n foreach($cards as $card) {\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep them\" (ie place them in your hand)\n }\n }\n break;\n \n case \"25N2\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 26, age 3: Translation \n case \"26N1\":\n $step_max = 1; // --> 1 interactions: see B\n break;\n \n case \"26N2\":\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && !self::hasRessource($top_card, 1)) { // This top card is present, with no crown on it\n $eligible = false;\n }\n }\n if ($eligible) { // \"If each card on your board has a crown\"\n $achievement = self::getCardInfo(108);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('Each top card on ${your} board has a ${crown}.'), array('your' => 'your', 'crown' => $crown));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('Each top card on ${player_name} board has a ${crown}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'crown' => $crown));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the World achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('Each top card on ${your} board has a ${crown} but the Empire achievement has already been claimed.'), array('your' => 'your', 'crown' => $crown));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('Each top card on ${player_name} board has a ${crown} but the World achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'crown' => $crown));\n }\n }\n break;\n \n // id 27, age 3: Engineering \n case \"27D1\":\n // \"I demand you transfer all top cards with a tower from your board to my score pile\"\n $no_top_card_with_tower = true;\n for($color = 0; $color < 5 ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && self::hasRessource($top_card, 4)) { // This top card is present, with a tower on it\n $no_top_card_with_tower = false;\n self::transferCardFromTo($top_card, $launcher_id, 'score');\n }\n }\n if ($no_top_card_with_tower) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no top card with a ${tower} on your board.'), array('You' => 'You', 'tower' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no top card with a ${tower} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'tower' => $tower));\n }\n break;\n \n case \"27N1\":\n $step_max = 1; // --> 1 interactions: see B\n break;\n \n // id 28, age 3: Optics \n case \"28N1\":\n $card = self::executeDraw($player_id, 3, 'board'); // \"Draw and meld a 3\"\n if (self::hasRessource($card, 1)) { // \"If it has a crown\"\n self::notifyGeneralInfo(clienttranslate('It has a ${crown}.'), array('crown' => $crown));\n self::executeDraw($player_id, 4, 'score'); // \"Draw and score a 4\"\n }\n else { // \"Otherwise\"\n self::notifyGeneralInfo(clienttranslate('It does not have a ${crown}.'), array('crown' => $crown));\n $number_of_players_with_fewer_points = self::getUniqueValueFromDB(self::format(\"\n SELECT\n COUNT(*)\n FROM\n player\n WHERE\n player_id <> {player_id} AND\n player_innovation_score < (\n SELECT\n player_innovation_score\n FROM\n player\n WHERE\n player_id = {player_id}\n ) AND\n player_team <> (\n SELECT\n player_team\n FROM\n player\n WHERE\n player_id = {player_id}\n )\n \"\n ,\n array('player_id' => $player_id)\n ));\n if ($number_of_players_with_fewer_points == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('There is no opponent who has fewer points than ${you}.'), array('you' => 'you'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('There is no opponent who has fewer points than ${player_name}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else {\n $step_max = 2; // --> 2 interactions: see B\n }\n }\n break;\n \n // id 29, age 3: Compass\n case \"29D1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 30, age 3: Paper \n case \"30N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"30N2\":\n $number_of_colors_splayed_left = 0;\n for($color = 0; $color < 5 ; $color++) {\n if (self::getCurrentSplayDirection($player_id, $color) == 1 /* left */) {\n $number_of_colors_splayed_left++;\n }\n }\n if ($number_of_colors_splayed_left < 2) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color splayed left.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $number_of_colors_splayed_left));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color splayed left.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_colors_splayed_left));\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors splayed left.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $number_of_colors_splayed_left));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors splayed left.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_colors_splayed_left));\n }\n \n for($i=0;$i<$number_of_colors_splayed_left;$i++) { // For every color you have splayed left\n self::executeDraw($player_id, 4); // Draw a 4\n }\n break;\n \n // id 31, age 3: Machinery \n case \"31D1\":\n // \"Exchange all the cards in your hand with all the highest cards in my hand\"\n \n // Get cards in hand\n $ids_of_cards_in_player_hand = self::getIdsOfCardsInLocation($player_id, 'hand');\n $ids_of_highest_cards_in_launcher_hand = self::getIdsOfHighestCardsInLocation($launcher_id, 'hand');\n \n // Make the transfers\n foreach($ids_of_cards_in_player_hand as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $launcher_id, 'hand');\n }\n foreach($ids_of_highest_cards_in_launcher_hand as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $player_id, 'hand');\n }\n break;\n \n case \"31N1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 32, age 3: Medicine \n case \"32D1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 33, age 3: Education \n case \"33N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 34, age 3: Feudalism \n case \"34D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"34N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 35, age 4: Experimentation \n case \"35N1\":\n self::executeDraw($player_id, 5, 'board'); // \"Draw and meld a 5\"\n break;\n \n // id 36, age 4: Printing press \n case \"36N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"36N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 37, age 4: Colonialism\n case \"37N1\":\n do {\n $card = self::executeDraw($player_id, 3, 'board', true); // \"Draw and tuck a 3\"\n } while(self::hasRessource($card, 1 /* crown */)); // \"If it has a crown, repeat this dogma effect\"\n break;\n \n // id 38, age 4: Gunpowder\n case \"38D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"38N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n self::executeDraw($player_id, 2, 'score'); // \"Draw and score a 2\"\n }\n break;\n \n // id 39, age 4: Invention\n case \"39N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"39N2\":\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n if (self::getCurrentSplayDirection($player_id, $color) == 0) { // This color is missing or unsplayed\n $eligible = false;\n };\n }\n if ($eligible) { // \"If you have colors splayed, each in any direction\"\n $achievement = self::getCardInfo(107);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have all your five colors splayed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has all his five colors splayed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Wonder achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have all your five colors splayed but the Wonder achievement has already been claimed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has all his five colors splayed but the Wonder achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n }\n break;\n \n // id 40, age 4: Navigation\n case \"40D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 41, age 4: Anatomy\n case \"41D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 42, age 4: Perspective\n case \"42N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 43, age 4: Enterprise\n case \"43D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"43N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 44, age 4: Reformation\n case \"44N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"44N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 45, age 5: Chemistry\n case \"45N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"45N2\":\n // \"Draw and score a card of value one higher than the highest top card on your board\"\n self::executeDraw($player_id, self::getMaxAgeOnBoardTopCards($player_id) + 1, 'score');\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 46, age 5: Physics\n case \"46N1\":\n $cards = array();\n $colors = array();\n $same_color = false;\n for($i=0; $i<3; $i++) { // \"Three times\"\n $card = self::executeDraw($player_id, 6, 'revealed'); // \"Draw and reveal a 6\"\n if (in_array($card['color'], $colors)) { // This card has the same color than one that has already been drawn\n $same_color = true;\n }\n else {\n $colors[] = $card['color'];\n }\n $cards[] = $card;\n }\n \n if ($same_color) { // \"If two or more cards are the same color\"\n $step_max = 1; // --> 1 interactions: see B\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} drew two cards of the same color.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} drew two cards of the same color.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else { // \"Otherwise\"\n self::notifyPlayer($player_id, 'log', clienttranslate('All the cards ${you} drew have different colors.'), array('you' => 'you'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All the cards ${player_name} drew have different colors.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n foreach($cards as $card) {\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep them\" (ie place them in your hand)\n }\n }\n break;\n \n // id 47, age 5: Coal\n case \"47N1\":\n self::executeDraw($player_id, 5, 'board', true); // \"Draw and tuck a 5\"\n break;\n\n case \"47N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"47N3\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 48, age 5: The pirate code\n case \"48D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"48N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 49, age 5: Banking\n case \"49D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"49N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 50, age 5: Measurement\n case \"50N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 51, age 5: Statistics\n case \"51D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n // Get highest cards in score\n $ids_of_highest_cards_in_score = self::getIdsOfHighestCardsInLocation($player_id, 'score');\n\n // Make the transfers\n foreach($ids_of_highest_cards_in_score as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Transfer all the highest cards in your score pile to your hand\"\n }\n }\n else { // First edition\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n\n case \"51N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 52, age 5: Steam engine\n case \"52N1\":\n self::executeDraw($player_id, 4, 'board', true); // \"Draw and tuck two 1\"\n self::executeDraw($player_id, 4, 'board', true); //\n $card = self::getBottomCardOnBoard($player_id, 3 /* yellow */);\n if ($card !== null) {\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score your bottom yellow card\"\n }\n break;\n \n // id 53, age 5: Astronomy\n case \"53N1\":\n while(true) {\n $card = self::executeDraw($player_id, 6, 'revealed'); // \"Draw and reveal a 6\"\n if ($card['color'] != 0 /* blue */ && $card['color'] != 2 /* green */) {\n self::notifyGeneralInfo(clienttranslate(\"This card is neither blue nor green.\"));\n break; // \"Otherwise\"\n };\n // \"If the card is green or blue\"\n self::notifyGeneralInfo($card['color'] == 0 ? clienttranslate(\"This card is blue.\") : clienttranslate(\"This card is green.\"));\n self::transferCardFromTo($card, $player_id, 'board'); // \"Meld it\"\n }\n self::transferCardFromTo($card, $player_id, 'hand'); // (\"Keep it\")\n break;\n \n case \"53N2\":\n $eligible = true;\n for($color = 0; $color < 4 /* purple is not tested */ ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && $top_card['age'] < 6) { // This top card is value 5 or fewer\n $eligible = false;\n }\n }\n if ($eligible) { // \"If all your non-purple top cards on your board are value 6 or higher\"\n $achievement = self::getCardInfo(109);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('All non-purple top cards on ${your} board are value ${age_6} or higher.'), array('your' => 'your', 'age_6' => self::getAgeSquare(6)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All non-purple top cards on ${player_name}\\'s board are value ${age_6} or higher.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'age_6' => self::getAgeSquare(6)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Universe achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('All non-purple top cards on ${your} board are value ${age_6} or higher but the Universe achievement has already been claimed.'), array('your' => 'your', 'age_6' => self::getAgeSquare(6)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All non-purple top cards on ${player_name}\\'s board are value ${age_6} or higher but the Universe achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'age_6' => self::getAgeSquare(6)));\n }\n }\n break;\n \n // id 54, age 5: Societies\n case \"54D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $colors = array();\n // Determine colors which top cards with a lightbulb of the player have a value higher than the tops cards of the launcher\n for($color=0; $color<5; $color++) {\n $player_top_card = self::getTopCardOnBoard($player_id, $color);\n if ($player_top_card === null || !self::hasRessource($player_top_card, 3 /* lightbulb */)) {\n continue;\n }\n $launcher_top_card = self::getTopCardOnBoard($launcher_id, $color);\n if ($launcher_top_card === null /* => Value 0, so the color is selectable */ || $player_top_card['age'] > $launcher_top_card['age']) {\n $colors[] = $color; // This color is selectable\n }\n }\n }\n else { // First edition\n $colors = array(0,1,2,3); // All but purple\n }\n self::setGameStateValueFromArray('auxiliary_value', $colors);\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 55, age 6: Atomic theory\n case \"55N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"55N2\":\n self::executeDraw($player_id, 7, 'board'); // \"Draw and meld a 7\"\n break;\n \n // id 56, age 6: Encyclopedia\n case \"56N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 57, age 6: Industrialisation\n case \"57N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number = 0;\n for($color=0; $color<5; $color++) {\n if (self::boardPileHasRessource($player_id, $color, 5 /* factory */)) { // There is at least one visible factory in that color\n $number++;\n }\n }\n if ($number <= 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color with one or more visible ${factories}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color with one or more ${factories}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n }\n else { // $number > 1\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors with one or more visible ${factories}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors with one or more ${factories}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n }\n // \"For each color of your board that have one factory or more\"\n }\n else {\n $number_of_factories = self::getPlayerSingleRessourceCount($player_id, 5 /* factory */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${factories}.'), array('You' => 'You', 'n' => $number_of_factories, 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${factories}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_factories, 'factories' => $factory));\n $number = self::intDivision($number_of_factories,2); // \"For every two factories on your board\"\n }\n \n for($i=0; $i<$number; $i++) {\n self::executeDraw($player_id, 6, 'board', true); // \"Draw and tuck a 6\"\n }\n break;\n \n case \"57N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 58, age 6: Machine tools\n case \"58N1\":\n self::executeDraw($player_id, self::getMaxAgeInScore($player_id), 'score'); // \"Draw and score a card of value equal to the highest card in your score pile\"\n break;\n \n // id 59, age 6: Classification\n case \"59N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 60, age 6: Metric system\n case \"60N1\":\n if (self::getCurrentSplayDirection($player_id, 2 /* green */) == 2 /* right */) { // \"If your green cards are splayed right\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"60N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 61, age 6: Canning\n case \"61N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"61N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 62, age 6: Vaccination\n case \"62D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"62N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was returned as a result of the demand\"\n self::executeDraw($player_id, 7, 'board'); // \"Draw and meld a 7\"\n }\n break;\n \n // id 63, age 6: Democracy \n case \"63N1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 64, age 6: Emancipation\n case \"64D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"64N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 65, age 7: Evolution \n case \"65N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 66, age 7: Publications\n case \"66N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"66N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 67, age 7: Combustion\n case \"67D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number_of_crowns = self::getPlayerSingleRessourceCount($launcher_id, 1 /* crown */);\n self::notifyPlayer($launcher_id, 'log', clienttranslate('${You} have ${n} ${crowns}.'), array('You' => 'You', 'n' => $number_of_crowns, 'crowns' => $crown));\n self::notifyAllPlayersBut($launcher_id, 'log', clienttranslate('${player_name} has ${n} ${crowns}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_crowns, 'crowns' => $crown));\n $number = self::intDivision($number_of_crowns, 4);\n if ($number == 0) {\n self::notifyGeneralInfo(clienttranslate('No card has to be transfered.'));\n break;\n }\n }\n else { // First edition\n $number = 2;\n }\n self::setGameStateValue('auxiliary_value', $number);\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"67N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $bottom_red_card = self::getBottomCardOnBoard($player_id, 1 /* red */);\n if ($bottom_red_card !== null) {\n self::transferCardFromTo($bottom_red_card, 0, 'deck'); // \"Return your bottom red card\"\n }\n }\n break;\n \n // id 68, age 7: Explosives\n case \"68D1\":\n self::setGameStateValue('auxiliary_value', 0); // Flag to indicate if the player has transfered a card or not\n $step_max = 3; // --> 3 interactions: see B\n break;\n \n // id 69, age 7: Bicycle\n case \"69N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 70, age 7: Electricity\n case \"70N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 71, age 7: Refrigeration\n case \"71D1\":\n if (self::countCardsInLocation($player_id, 'hand') > 1) {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"71N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 72, age 7: Sanitation \n case \"72D1\":\n $step_max = 3; // --> 3 interactions: see B\n break;\n \n // id 73, age 7: Lighting \n case \"73N1\":\n self::setGameStateValueFromArray('auxiliary_value', array()); // Flag to indicate what ages have been tucked\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 74, age 7: Railroad \n case \"74N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"74N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 75, age 8: Quantum theory \n case \"75N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 76, age 8: Rocketry \n case \"76N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 77, age 8: Flight\n case \"77N1\":\n if (self::getCurrentSplayDirection($player_id, 1 /* red */) == 3 /* up */) { // \"If your red cards are splayed up\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"77N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 78, age 8: Mobility \n case \"78D1\":\n self::setGameStateValueFromArray('auxiliary_value', array(0,2,3,4)); // Flag to indicate the colors the player can still choose (not red at the start)\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 79, age 8: Corporations \n case \"79D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"79N1\":\n self::executeDraw($player_id, 8, 'board'); // \"Draw and meld an ${age_8}\"\n break;\n \n // id 80, age 8: Mass media \n case \"80N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"80N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 81, age 8: Antibiotics\n case \"81N1\":\n self::setGameStateValueFromArray('auxiliary_value', array()); // Flag to indicate what ages have been tucked\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 82, age 8: Skyscrapers\n case \"82D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 83, age 8: Empiricism \n case \"83N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"83N2\":\n if (self::getPlayerSingleRessourceCount($player_id, 3 /* lightbulb */) >= 20) { // \"If you have twenty or more lightbulbs on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least twenty ${lightbulbs}.'), array('You' => 'You', 'lightbulbs' => $lightbulb));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least twenty ${lightbulbs}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'lightbulbs' => $lightbulb));\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Empiricism');\n throw new EndOfGame(); \n }\n break;\n \n // id 84, age 8: Socialism \n case \"84N1\":\n self::setGameStateValue('auxiliary_value', 0); // Flag to indicate if one purple card has been tuckeds or not\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 85, age 9: Computers \n case \"85N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"85N2\":\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each of its non-demand dogma effects\"\n break;\n \n // id 86, age 9: Genetics \n case \"86N1\":\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n $board = self::getCardsInLocation($player_id, 'board', false, true);\n $pile = $board[$card['color']];\n for($p=0; $p < count($pile)-1; $p++) { // \"For each card beneath it\"\n $card = self::getCardInfo($pile[$p]['id']);\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score that card\"\n }\n break;\n \n // id 87, age 9: Composites \n case \"87D1\":\n $step_max = 2; // --> 2 interactions: see B\n if (self::countCardsInLocation($player_id, 'hand') <= 1) {\n $step = 2; // --> (All but one card when there is 0 or 1 card means that nothing is to be done) Jump directly to step 2\n }\n break;\n \n // id 88, age 9: Fission\n case \"88D1\":\n $card = self::executeDraw($player_id, 10, 'revealed'); // \"Draw a 10\"\n if ($card['color'] == 1 /* red */) { // \"If it is red\"\n self::notifyGeneralInfo(clienttranslate('This card is red.'));\n self::removeAllHandsBoardsAndScores(); // \"Remove all hands, boards and score piles from the game\"\n self::notifyAll('removedHandsBoardsAndScores', clienttranslate('All hands, boards and score piles are removed from the game. Achievements are kept.'), array());\n \n // Stats\n self::setStat(true, 'fission_triggered');\n \n // \"If this occurs, the dogma action is complete\"\n // (Set the flags has if the launcher had completed the non-demand dogma effect)\n self::setGameStateValue('current_player_under_dogma_effect', $launcher_id);\n self::setGameStateValue('current_effect_type', 1);\n self::setGameStateValue('current_effect_number', 1);\n }\n else {\n self::notifyGeneralInfo(clienttranslate('This card is not red.'));\n // (Implicit) \"Place it into your hand\"\n self::transferCardFromTo($card, $player_id, 'hand');\n }\n break;\n \n case \"88N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 89, age 9: Collaboration\n case \"89D1\":\n self::executeDraw($player_id, 9, 'revealed'); // \"Draw two 9 and reveal them\"\n self::executeDraw($player_id, 9, 'revealed'); //\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"89N1\":\n $number_of_cards_on_board = self::countCardsInLocation($player_id, 'board', false, true);\n $number_of_green_cards = $number_of_cards_on_board[2];\n if ($number_of_green_cards >= 10) { // \"If you have ten or more green cards on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least ten green cards.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least ten green cards.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Collaboration');\n throw new EndOfGame(); \n }\n break;\n \n // id 90, age 9: Satellites\n case \"90N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"90N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"90N3\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 91, age 9: Ecology\n case \"91N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 92, age 9: Suburbia\n case \"92N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 93, age 9: Services\n case \"93D1\":\n $ids_of_highest_cards_in_score = self::getIdsOfHighestCardsInLocation($player_id, 'score');\n foreach($ids_of_highest_cards_in_score as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $launcher_id, 'hand'); // \"Transfer all the highest cards from your score pile to my hand\"\n }\n \n if (count($ids_of_highest_cards_in_score) > 0) { // \"If you transferred any cards\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n\n // id 94, age 9: Specialization\n case \"94N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"94N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 95, age 10: Bioengineering\n case \"95N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"95N2\":\n $players = self::loadPlayersBasicInfos();\n $max_number_of_leaves = -1;\n $any_under_three_leaves = false;\n foreach ($players as $player_id => $player) {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${leaves}.'), array('You' => 'You', 'n' => $number_of_leaves, 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${leaves}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_leaves, 'leaves' => $leaf));\n if (!$any_under_three_leaves && $number_of_leaves < 3) { // Less than three\n self::notifyGeneralInfo(clienttranslate('That is less than 3.'));\n $any_under_three_leaves = true;\n }\n if ($number_of_leaves > $max_number_of_leaves) {\n $max_number_of_leaves = $number_of_leaves;\n $owner_of_max_number_of_leaves = $player_id;\n $tie = false; \n }\n else if ($number_of_leaves == $max_number_of_leaves && $player_id != self::getPlayerTeammate($owner_of_max_number_of_leaves)) {\n $tie = true;\n }\n }\n \n if (!$any_under_three_leaves) {\n self::notifyGeneralInfo(clienttranslate('Nobody has less than three ${leaves}.'), array('leaves' => $leaf));\n }\n else if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the most number of ${leaves}. The game continues.'), array('leaves' => $leaf));\n }\n else { // \"If any player has less than three leaves, the single player with the most number of leaves\"\n self::notifyPlayer($owner_of_max_number_of_leaves, 'log', clienttranslate('${You} have more ${leaves} than each opponent.'), array('You' => 'You', 'leaves' => $leaf));\n self::notifyAllPlayersBut($owner_of_max_number_of_leaves, 'log', clienttranslate('${player_name} has more ${leaves} than each opponent.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($owner_of_max_number_of_leaves), $owner_of_max_number_of_leaves), 'leaves' => $leaf));\n self::setGameStateValue('winner_by_dogma', $owner_of_max_number_of_leaves); // \"Wins\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Bioengineering');\n throw new EndOfGame();\n }\n \n break;\n\n // id 96, age 10: Software\n case \"96N1\":\n self::executeDraw($player_id, 10, 'score', false, true /* score keyword*/); // \"Draw and score a 10\"\n break;\n \n case \"96N2\":\n self::executeDraw($player_id, 10, 'board'); // \"Draw and meld two 10\"\n $card = self::executeDraw($player_id, 10, 'board'); //\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each of the second card's non-demand dogma effects\"\n break;\n \n // id 97, age 10: Miniaturization\n case \"97N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 98, age 10: Robotics\n case \"98N1\":\n $top_green_card = self::getTopCardOnBoard($player_id, 2 /* green */);\n if ($top_green_card !== null) {\n self::transferCardFromTo($top_green_card, $player_id, 'score', false, true /* score keyword*/); // \"Score your top green card\"\n }\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each its non-demand dogma effects\"\n break;\n \n // id 99, age 10: Databases\n case \"99D1\":\n if (self::countCardsInLocation($player_id, 'score') > 0) { // (Nothing to do if the player has nothing in his score pile)\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 100, age 10: Self service\n case \"100N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"100N2\":\n $players = self::loadPlayersBasicInfos();\n $number_of_achievements = self::getPlayerNumberOfAchievements($player_id);\n $most_achievements = true;\n foreach ($players as $other_player_id => $player) {\n if ($other_player_id == $player_id || $other_player_id == self::getPlayerTeammate($player_id)) {\n continue; // Skip the player being evaluated and his teammate\n }\n \n if (self::getPlayerNumberOfAchievements($other_player_id) >= $number_of_achievements) {\n $most_achievements = false;\n }\n }\n if ($most_achievements) { // \"If you have more achievements than each other player\"\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n self::notifyAllPlayersBut($player_id, \"log\", clienttranslate('${player_name} has more achievements than each other player.'), array(\n 'player_name' => self::getPlayerNameFromId($player_id)\n ));\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('${You} have more achievements than each other player.'), array(\n 'You' => 'You'\n ));\n }\n else { // self::getGameStateValue('game_type')) == 'team'\n $teammate_id = self::getPlayerTeammate($player_id);\n $winning_team = array($player_id, $teammate_id);\n self::notifyAllPlayersBut($winning_team, \"log\", clienttranslate('The other team has more achievements than yours.'), array());\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('Your team has more achievements than the other.'), array());\n \n self::notifyPlayer($teammate_id, \"log\", clienttranslate('Your team has more achievements than the other.'), array());\n }\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Self service');\n throw new EndOfGame();\n }\n break;\n \n // id 101, age 10: Globalization\n case \"101D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"101N1\":\n self::executeDraw($player_id, 6, 'score', false, true); // \"Draw and score a 6\"\n \n $players = self::loadPlayersBasicInfos();\n $nobody_more_leaves_than_factories = true;\n foreach ($players as $player_id => $player) {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2);\n $number_of_factories = self::getPlayerSingleRessourceCount($player_id, 5);\n \n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${m} ${leaves} and ${n} ${factories}.'), array('You' => 'You', 'm' => $number_of_leaves, 'leaves' => $leaf, 'n' => $number_of_factories, 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${m} ${leaves} and ${n} ${factories}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'm' => $number_of_leaves, 'leaves' => $leaf, 'n' => $number_of_factories, 'factories' => $factory));\n \n if ($nobody_more_leaves_than_factories && $number_of_leaves > $number_of_factories) {\n self::notifyGeneralInfo(clienttranslate('That is more ${leaves} than ${factories}'), array('leaves' => $leaf, 'factories' => $factory));\n $nobody_more_leaves_than_factories = false;\n }\n }\n \n if ($nobody_more_leaves_than_factories) { // \"If no player has more leaves than factories on their board\"\n $teams = array();\n $scores = array();\n foreach ($players as $player_id => $player) {\n $team = self::getPlayerTeam($player_id);\n $score = self::getPlayerScore($player_id);\n if (!array_key_exists($team, $teams)) {\n $teams[$team] = array($player_id);\n $scores[$team] = $score;\n }\n else {\n $teams[$team][] = $player_id;\n $scores[$team] += $score;\n }\n }\n \n $max_score = -1;\n foreach($scores as $team => $score) {\n if ($score > $max_score) {\n $max_score = $score;\n $team_max = $team;\n $tie = false;\n }\n else if ($score == $max_score) {\n $tie = true;\n }\n \n // Display the score (or the combined score for the team)\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n $player_id = $teams[$team][0];\n if ($score < 2) {\n $message_for_others = clienttranslate('${player_name} has ${n} point.');\n $message_for_player = clienttranslate('${You} have ${n} point.');\n }\n else {\n $message_for_others = clienttranslate('${player_name} has ${n} points.');\n $message_for_player = clienttranslate('${You} have ${n} points.'); \n }\n self::notifyAllPlayersBut($player_id, \"log\", $message_for_others, array(\n 'player_name' => self::getPlayerNameFromId($player_id),\n 'n' => $score\n ));\n \n self::notifyPlayer($player_id, \"log\", $message_for_player, array(\n 'You' => 'You',\n 'n' => $score\n ));\n } \n else { // self::getGameStateValue('game_type') == 'team'\n $current_team = $teams[$team];\n $player_id = $current_team[0];\n $teammate_id = $current_team[1];\n if ($score < 2) {\n $message_for_team = clienttranslate('Your team has ${n} point.');\n $message_for_others = clienttranslate('The other team has ${n} point.');\n }\n else {\n $message_for_team = clienttranslate('Your team has ${n} points.');\n $message_for_others = clienttranslate('The other team has ${n} points.'); \n }\n self::notifyAllPlayersBut($current_team, \"log\", $message_for_others, array('n' => $score));\n \n self::notifyPlayer($player_id, \"log\", $message_for_team, array('n' => $score));\n \n self::notifyPlayer($teammate_id, \"log\",$message_for_team, array('n' => $score)); \n }\n }\n \n if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the greatest score. The game continues.'));\n }\n else {\n $winning_team = $teams[$team_max];\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n $player_id = $winning_team[0];\n self::notifyAllPlayersBut($player_id, \"log\", clienttranslate('${player_name} has a greater score than each other player.'), array(\n 'player_name' => self::getPlayerNameFromId($player_id)\n ));\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('${You} have a greater score than each other player.'), array(\n 'You' => 'You'\n ));\n }\n else { // self::getGameStateValue('game_type')) == 'team'\n $player_id = $winning_team[0];\n $teammate_id = $winning_team[1];\n self::notifyAllPlayersBut($winning_team, \"log\", clienttranslate('The other team has a greater score than yours.'), array());\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('Your team has a greater score than the other one.'), array());\n \n self::notifyPlayer($teammate_id, \"log\", clienttranslate('Your team has a greater score than the other one.'), array());\n }\n self::setGameStateValue('winner_by_dogma', $player_id); // \"The single player with the most points wins\" (or combined scores for team)\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Globalization');\n throw new EndOfGame();\n }\n }\n break;\n \n // id 102, age 10: Stem cells\n case \"102N1\":\n if (self::countCardsInLocation($player_id, 'hand') == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no cards in your hand to score.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no cards in their hand to score.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n } else {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n \n // id 103, age 10: A. I.\n case \"103N1\":\n self::executeDraw($player_id, 10, 'score'); // \"Draw and score a 10\"\n break;\n\n case \"103N2\":\n $players = self::loadPlayersBasicInfos();\n $software_found = false;\n foreach ($players as $any_player_id => $player) {\n $top_blue_card = self::getTopCardOnBoard($any_player_id, 0 /* blue: color of Software*/);\n if ($top_blue_card !== null && $top_blue_card['id'] == 96 /* Software */) {\n $software_found = true;\n break;\n }\n }\n \n $robotics_found = false;\n foreach ($players as $any_player_id => $player) {\n $top_red_card = self::getTopCardOnBoard($any_player_id, 1 /* red: color of Robotics*/);\n if ($top_red_card !==null && $top_red_card['id'] == 98 /* Robotics */) {\n $robotics_found = true;\n break;\n }\n }\n \n if ($software_found && $robotics_found) { // \"If Robotics and Software are top cards on any board\"\n self::notifyGeneralInfo(clienttranslate('Robotics and Software are both visible as top cards.'));\n \n $min_score = 9999;\n foreach($players as $any_player_id => $player) {\n $score = self::getPlayerScore($any_player_id);\n if ($score < $min_score) {\n $min_score = $score;\n $player_with_min_score = $any_player_id;\n $tie = false;\n }\n else if ($score == $min_score) {\n $tie = true;\n }\n \n // Display the score (or the combined score for the team)\n if ($score < 2) {\n $message_for_others = clienttranslate('${player_name} has ${n} point.');\n $message_for_player = clienttranslate('${You} have ${n} point.');\n }\n else {\n $message_for_others = clienttranslate('${player_name} has ${n} points.');\n $message_for_player = clienttranslate('${You} have ${n} points.');\n }\n self::notifyAllPlayersBut($any_player_id, \"log\", $message_for_others, array(\n 'player_name' => self::getPlayerNameFromId($any_player_id),\n 'n' => $score\n ));\n \n self::notifyPlayer($any_player_id, \"log\", $message_for_player, array(\n 'You' => 'You',\n 'n' => $score\n ));\n }\n if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the lowest score. The game continues.'));\n }\n else {\n self::notifyAllPlayersBut($player_with_min_score, \"log\", clienttranslate('${player_name} has the lowest score.'), array(\n 'player_name' => self::getPlayerNameFromId($player_with_min_score)\n ));\n \n self::notifyPlayer($player_with_min_score, \"log\", clienttranslate('${You} have the lowest score.'), array(\n 'You' => 'You'\n ));\n self::setGameStateValue('winner_by_dogma', $player_with_min_score); // \"The single player with the most points wins\" (scores are not combined for teams)\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn A. I.');\n throw new EndOfGame();\n }\n }\n break;\n\n // id 104, age 10: The internet.\n case \"104N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"104N2\":\n self::executeDraw($player_id, 10, 'score'); // \"Draw and score a 10\"\n break;\n\n case \"104N3\":\n $number_of_clocks = self::getPlayerSingleRessourceCount($player_id, 6 /* clock */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${clocks}.'), array('You' => 'You', 'n' => $number_of_clocks, 'clocks' => $clock));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${clocks}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_clocks, 'clocks' => $clock));\n for($i=0; $i<self::intDivision($number_of_clocks,2); $i++) { // \"For every two clocks on your board\"\n self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n }\n break;\n \n default:\n // This should not happens\n //throw new BgaVisibleSystemException(self::format(self::_(\"Unreferenced card effect code in section A: '{code}'\"), array('code' => $code)));\n break;\n }\n //[AA]||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n }\n catch (EndOfGame $e) {\n // End of the game: the exception has reached the highest level of code\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn');\n self::trace('playerInvolvedTurn->justBeforeGameEnd');\n $this->gamestate->nextState('justBeforeGameEnd');\n return;\n }\n \n if ($step_max === null) {\n // End of the effect for this player\n self::trace('playerInvolvedTurn->interPlayerInvolvedTurn');\n $this->gamestate->nextState('interPlayerInvolvedTurn');\n return;\n }\n // There is an interaction needed\n self::setGameStateValue('step_max', $step_max);\n\n // Prepare the first step\n self::setGameStateValue('step', $step === null ? 1 : $step);\n self::trace('playerInvolvedTurn->interactionStep');\n $this->gamestate->nextState('interactionStep');\n }",
"function start()\n\t{\n\t\t$this->score = 0;\n\t\t$this->won = false;\n\t\t$this->over = false;\n\t}",
"public function takeDamage()\n\t\t{\n\t\t\tif ($this->_illness)\n\t\t\t{\n\t\t\t\t$this->_health -= $this->_damage; \n\t\t\t}\n\t\t}",
"public function hit()\n {\n $fight = $this->getDamage();\n $fight = $fight + 5;\n $this->setDamage($fight);\n\n }",
"public function __construct()\n\t{\n\t\t$this->game = new BowlingGame;\n\t}",
"public function damage_options_reset(){\n // Redfine the options variables as an empty array\n $this->damage_options = array();\n // Populate the array with defaults\n $this->damage_options = array();\n $this->damage_options['damage_header'] = $this->robot->robot_name.''s '.$this->ability_name;\n $this->damage_options['damage_frame'] = 'damage';\n $this->damage_options['ability_success_frame'] = 1;\n $this->damage_options['ability_success_frame_span'] = 1;\n $this->damage_options['ability_success_frame_offset'] = array('x' => 0, 'y' => 0, 'z' => 1);\n $this->damage_options['ability_failure_frame'] = 1;\n $this->damage_options['ability_failure_frame_span'] = 1;\n $this->damage_options['ability_failure_frame_offset'] = array('x' => 0, 'y' => 0, 'z' => 1);\n $this->damage_options['damage_kind'] = 'energy';\n $this->damage_options['damage_type'] = $this->ability_type;\n $this->damage_options['damage_type2'] = $this->ability_type2;\n $this->damage_options['damage_amount'] = $this->ability_damage;\n $this->damage_options['damage_amount2'] = $this->ability_damage2;\n $this->damage_options['damage_kickback'] = array('x' => 5, 'y' => 0, 'z' => 0);\n $this->damage_options['damage_percent'] = false;\n $this->damage_options['damage_percent2'] = false;\n $this->damage_options['damage_modifiers'] = true;\n $this->damage_options['success_rate'] = 'auto';\n $this->damage_options['failure_rate'] = 'auto';\n $this->damage_options['critical_rate'] = 10;\n $this->damage_options['critical_multiplier'] = 2;\n $this->damage_options['weakness_multiplier'] = 2;\n $this->damage_options['resistance_multiplier'] = 0.5;\n $this->damage_options['immunity_multiplier'] = 0;\n $this->damage_options['success_text'] = 'The ability hit!';\n $this->damage_options['failure_text'] = 'The ability missed…';\n $this->damage_options['immunity_text'] = 'The ability had no effect…';\n $this->damage_options['critical_text'] = 'It's a critical hit!';\n $this->damage_options['weakness_text'] = 'It's super effective!';\n $this->damage_options['resistance_text'] = 'It's not very effective…';\n $this->damage_options['weakness_resistance_text'] = ''; //\"It's a super effective resisted hit!';\n $this->damage_options['weakness_critical_text'] = 'It's a super effective critical hit!';\n $this->damage_options['resistance_critical_text'] = 'It's a critical hit, but not very effective…';\n // Update this ability's data\n $this->update_session();\n // Return the resuling array\n return $this->damage_options;\n }",
"public function __construct()\n {\n $this->dice = new DiceImage();\n $this->resetVariables();\n }",
"public function __construct()\n {\n $this->dice = new DiceImage();\n $this->resetVariables();\n }",
"public function getEffect() {\n return $this->effect;\n }",
"function __construct() {\n // initialize things when class is instantiated\n $this->id = rand(100, 1000000);\n echo \"The created animal was assigned an id of \" . $this->id . \"<br>\";\n Animal::$numberOfAnimals+=1;\n }",
"public function __construct()\n {\n $this->matchFinished = false;\n //$this->player1 = new Player('A');\n //$this->player2 = new Player('B');\n }",
"private function applyInfect($time, &$action_message, $skill_effect, $monster) {\n\t\tif(!empty($this->monsters[$monster['id']]['Monster']['debuffs']['infected'])) {\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'] += rand($skill_effect['amount_min'], $skill_effect['amount_max']);\n\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Infected('.$this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'].').');\n\t\t}else{\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['infected'] = [\n\t\t\t\t'stacks' => rand($skill_effect['amount_min'], $skill_effect['amount_max'])\n\t\t\t];\n\t\t\tif($this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'] == 1) {\n\t\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Infected.');\n\t\t\t}else{\n\t\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Infected('.$this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'].').');\n\t\t\t}\n\t\t}\n\t}",
"public function __construct(Skywars $plugin) {\n\t\t$this->plugin = $plugin;\n\t\t$plugin->getServer()->getPluginManager()->registerEvents($this, $plugin);\n\n\t\t$this->actionItemManager = new ActionItemManager($plugin);\n\n\n\n\t\t$plugin->getServer()->getScheduler()->scheduleRepeatingTask(new CooldownTickTask($plugin), 1);\n\t\t$plugin->getServer()->getScheduler()->scheduleRepeatingTask(new NotificationTickTask($plugin), 20);\n\n\t\t// heh, maybe this is a bit hacky, but why not do it like this?\n\t\t$livingClass = new ReflectionClass(\"\\\\pocketmine\\\\entity\\\\Living\");\n\t\t$this->attackTimeProperty = $livingClass->getProperty(\"attackTime\");\n\t\t$this->attackTimeProperty->setAccessible(true);\n\n\t\t$this->notifyId = Entity::$entityCount++;\n\t\t;\n\t}",
"public function __construct($one, $two)\n {\n echo \"<br />Creating battle simulator..\" . PHP_EOL;\n $this->_type = $this->setRandomTypeOfBattle();\n echo \"<br />Optimizing terrain...\" . PHP_EOL;\n $this->_turn = rand(0, 1);\n $this->_army1 = $one;\n $this->_army2 = $two;\n }",
"public function setMinDamage(){ $this->minDamage = 10; }",
"public function startBattle()\n {\n echo \"Starting battle.. <br />\";\n echo \"Type of this battle is: <i>\" . $this->_type . \"</i>.<br />\";\n echo \"\\t\\t<i>\" . $this->getTypeDescription() . \"</i><br/>\";\n \n $round = 0;\n while(!$this->battleFinished())\n {\n // prints information about current round:\n echo \"<br /><br />ROUND \" . $round++ . \" Attacker: <i>\";\n echo $this->getAttacker()->getName();\n echo \"</i>\\tDefender: <i>\";\n echo $this->getDefender()->getName() . \"</i>\";\n $this->status();\n \n $this->getAttacker()->fight($this, $this->getDefender());\n \n $this->changeTurn(); \n }\n \n // battle is over, print status and declare winner (if there is any) \n $this->status(); \n echo \"<br/><br/>The winner is: <b>\";\n echo $this->getWinner() . \"</b>!\" . PHP_EOL;\n }",
"private function attack()\n {\n $this->tempAttackerStats = $this->attacker->stats;\n $this->tempDefenderStats = $this->defender->stats;\n\n // 1. Before hit check, apply all luck modifying skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills, \n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 2. Check if attack is evaded\n $luck = $this->tempDefenderStats[Character::STAT_LUCK];\n if ($luck != 0 && $this->chance($luck)) {\n return $this->status = self::STATUS_MISSED;\n }\n\n // 3. Apply stat modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 4. Calculate the damage\n $strength = $this->tempAttackerStats[Character::STAT_STRENGTH];\n $defence = $this->tempDefenderStats[Character::STAT_DEFENCE];\n\n $this->damage = max(0, $strength - $defence);\n\n // 5. Apply damage modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_ATTACKER, $this->damage);\n }\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_DEFENDER, $this->damage);\n }\n );\n\n // 6. Apply the final damage\n $this->defender->stats[Character::STAT_HEALTH] =\n max(0, $this->defender->stats[Character::STAT_HEALTH] - $this->damage);\n\n $this->status = self::STATUS_COMPLETED;\n }",
"public function takeDamage(Character $target)\n {\n $target->totalStrength = 0;\n $random = rand(1, 5);\n\n if ($random == 1) {\n $target->totalStrength = $target->strength + $target->critical;\n $target->bonus();\n } else {\n $target->totalStrength = $target->strength;\n }\n\n $this->healthPoints = $this->healthPoints - $target->totalStrength;\n }",
"public function setAttackSpeed()\n {\n $this->_role->attack_speed = 2.50;\n }",
"public function effect($effect)\n {\n $args = array_slice(func_get_args(), 1);\n\n if($effect instanceof PictureEffect)\n {\n $this->effect[] = $effect;\n }\n else\n {\n $effectClass = \"Palette\\\\Effect\\\\\" . $effect;\n\n if(class_exists($effectClass))\n {\n $reflection = new ReflectionClass($effectClass);\n $this->effect[] = $reflection->newInstanceArgs($args);\n }\n else\n {\n throw new Exception('Unknown Palette effect instance');\n }\n }\n }",
"public function effect()\n {\n if (null === $this->effect) {\n $this->effect = new Effect\\Imagick($this);\n }\n if (null === $this->effect->getImage()) {\n $this->effect->setImage($this);\n }\n return $this->effect;\n }",
"private function reconstructCombatants() {\n $Character = CD();\n if($this->type == \"pvp\") {\n if($this->combatantAID == $Character->id) {\n $this->combatantA = $Character;\n } else {\n $this->combatantB = $Character;\n }\n } else {\n $this->combatantA = $Character;\n }\n }",
"function __construct() {\n add_action( 'acf/init', [ $this, 'init' ], 20 );\n }",
"function __construct(){\n //Actions\n add_action('init', array($this, 'init'), 1);\n \n }",
"public function setAttackSpeed()\n {\n $this->_role->attack_speed = 0.75;\n }",
"public function __sleep() {\n if($this->type == \"pvp\") {\n $this->combatantA = null;\n $this->combatantB = null;\n } else {\n $this->combatantA = null;\n }\n \n /**\n * This is ugly, but you can't remove items from a CList while cycling \n * through the list with foreach. The iterator's $_i for the current \n * position is not updated. Apparently, this is how it should be. Weird.\n */\n $toDelete = array();\n foreach($this->battleeffects as $battleeffect) {\n if(!$battleeffect->active) {\n $toDelete[] = $battleeffect;\n }\n }\n foreach($toDelete as $deletee) {\n $deletee->detachFromBattle($this);\n $this->battleeffects->remove($deletee);\n }\n \n return parent::__sleep();\n }",
"public function init(){\n\n\t\t$this->constants();\n\t\t$this->includes();\n\n\t\tadd_filter( 'automatewoo/triggers', array( $this, 'add_to_team_trigger' ), 10, 1 );\n\n\t}",
"public function newgame()\n {\n $this->gamerounds = [];\n $this->roundsum = 0;\n $this->dice = new Dice();\n }",
"public function stop() {\n if($this->combatantA->hp > 0) {\n $this->winnerType = \"player\";\n $this->winnerID = $this->combatantAID;\n } elseif ($this->combatantB->hp > 0) {\n $this->winnerType = ($this->type == \"pvp\" ? \"player\" : \"monster\");\n $this->winnerID = $this->combatantBID;\n } else {\n $this->winnerType = \"draw\";\n }\n\n // Bounty + XP\n if($this->type == \"monster\" && $this->combatantB->hp <= 0) {\n $loot = $this->combatantB->dropItems($this->combatantA->getDropItemPerc());\n $this->combatantA->gainItems($loot);\n \n $contact = $this->combatantB->dropContact($this->combatantA->getDropContactPerc());\n $this->combatantA->gainContact($contact, \"battle\");\n\n /**\n * monster->xp can be defined to deviate from the standard\n * attack / 2 xp reward\n */\n if(isset($this->combatantB->xp)) {\n $this->combatantA->gainXp($this->combatantB->xp, \"battle\");\n } else {\n $this->combatantA->gainXp($this->combatantB->attack / 4, \"battle\");\n }\n }\n\n $this->combatantA->ongoingBattleID = null;\n if($this->type == \"pvp\") {\n // @todo Message to PVP enemy\n $this->combatantB->ongoingBattleID = null;\n }\n\n $this->state = \"resolved\";\n $this->objectState = \"\";\n\n /**\n * ToDo: why does backupbehavior think that no attribute changed\n * if we set ongoingBattleID to null?\n */\n // $this->combatantA->save();\n $this->combatantA->update();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n\n $this->update();\n $this->reconstructCombatants();\n \n // Notify the world about this result\n $event = new BattleEvent($this);\n $this->combatantA->onFinishedBattle($event);\n if($this->type == \"pvp\") {\n $this->combatantB->onFinishedBattle($event);\n }\n }",
"private function applyHealOverTime($time, &$action_message, $skill_effect, $monster) {\n\t\tif(!empty($this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time'])) {\n\t\t\t$this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time']['stacks']++;\n\t\t\t$this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time']['amount_min'] += $this->amountModifiers($time, $monster, $skill_effect['amount_min'], 'Heal');\n\t\t\t$this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time']['amount_max'] += $this->amountModifiers($time, $monster, $skill_effect['amount_max'], 'Heal');\n\t\t\t$this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time']['ends'] = $time + $skill_effect['duration'] * 1000;\n\t\t\t$this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time']['next_tick'] = $time + 1000;\n\t\t\t$this->addActionMessage($action_message, 'buff_gained', $this->monsters[$monster['id']]['Monster']['name'].' gains a Heal Over Time('.$this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time']['stacks'].').');\n\t\t}else{\n\t\t\t$this->addActionMessage($action_message, 'buff_gained', $this->monsters[$monster['id']]['Monster']['name'].' gains a Heal Over Time.');\n\t\t\t$this->monsters[$monster['id']]['Monster']['buffs']['healing-over-time'] = [\n\t\t\t\t'stacks' => 1,\n\t\t\t\t'amount_min' => $this->amountModifiers($time, $monster, $skill_effect['amount_min'], 'Heal'),\n\t\t\t\t'amount_max' => $this->amountModifiers($time, $monster, $skill_effect['amount_max'], 'Heal'),\n\t\t\t\t'ends' => $time + $skill_effect['duration'] * 1000,\n\t\t\t\t'next_tick' => $time + 1000\n\t\t\t];\n\t\t}\n\t}",
"public function __construct()\n {\n $this->_timeStart = (float)microtime(true); \n parent::__construct();\n }",
"function __construct() {\n\n $this->setAttack();\n $this->setHP();\n $this->setName();\n $this->setStrategyIndex();\n $this->setIsFidai();\n\n }",
"public function implement_all_effects()\n\t{\n\t\tforeach ($this->collection as $image)\n\t\t{\n\t\t\t$image->implement_effects();\n\t\t}\n\t}",
"public function start(): void\n {\n $this->startTimer();\n $this->setGameState(SELF::STATE_STARTED);\n }",
"public function initialiser() : void{\n switch($this->difficulte){\n case 1:\n $bonusDeck = 100;\n break;\n case 2:\n $bonusDeck = 200;\n break;\n case 3:\n $bonusDeck = 300;\n break;\n }\n\n $tour = new Tour($this);\n $tour->distribution();\n $gagne = $tour->jouer();\n\n while ($gagne){\n $this->ajouterScore($tour->getDeck()->getNbCartes()*$bonusDeck);\n $this->ajouterScore(1000);\n $this->ajouterTourGagne();\n $tour->distribution();\n $gagne = $tour->jouer();\n }\n\n echo \"Votre score final : \".$this->score;\n }",
"public function start() {\n $this->setup();\n $this->fight();\n }",
"public function init() {\r\n if ( ! $this->_initiated ) {\r\n $this->_init_hooks();\r\n }\r\n }",
"protected function __construct() {\n\t\t\tadd_action( 'init', array( $this, 'action__init' ), 11 );\n\t\t}",
"function __construct()\n {\n $this\n ->setOpacity(1.0)\n ->setUpdatedAt(new \\DateTime('now'))\n ->setActive(false)\n ;\n }",
"private function initPlayer(): void\n {\n $name = $this->getConfig()->getPlayerName();\n $interaction = $this->getConfig()->getInteractionInterface();\n\n $this->player = PlayerFabric::createReal($this->pile, $name, $interaction);\n }",
"public function __construct() {\n\t add_action( 'init', array( $this, 'init_setup' ), 10, 1 );\n\t\tadd_action( 'cmb2_render_image_select', array( $this, 'cmb2_render_image_select' ), 10, 5 );\n\t\tadd_action( 'plugins_loaded', array( $this, 'setup_plugin_updater' ), 10, 1 );\n\n\t}",
"public function ability() {\n\n $this->startMove(3, 0.2);\n echo \"THE ENGINE IS OVERHEATED!\\n\";\n $this->switchEngine();\n\n\n\n\n }",
"public function __construct() {\n $round = apc_fetch('game_round');\n if ($round === false) {\n $this->start_round();\n }\n\n $board = apc_fetch('game_board');\n if ($board === false) {\n $board = $this->__reload_board($round);\n }\n \n $this->_BOARD = $board;\n $this->_ROUND = $round;\n }",
"private function setup() {\n foreach($this->fighters as $i => $fighter) {\n $this->fighters[$i]->instance_id = $i;\n $this->fighter_current = $this->fighters[$i];\n if(!$fighter->abilities) {\n }\n else {\n foreach($fighter->abilities as $ability) {\n if($ability->type == 'passive') {\n $this->useAbility($ability->name);\n }\n }\n }\n }\n $this->fighter_current = $this->fighters[0];\n //TODO: decide start user here\n }",
"public function __construct() {\n\t\t$this->QuackBehaviour = new Quack();\n\t\t$this->FlyBehaviour = new FlyWithWings();\n\t}",
"public function __construct($attack_stat, $defence_stat, $level, $rarity)\n {\n $this->attack_stat = $attack_stat;\n $this->defence_stat = $defence_stat;\n $this->level = $level;\n $this->rarity = $rarity;\n }",
"function battle($type,$adress) \n{\n global $player;\n global $smarty;\n global $enemy;\n global $arrehp;\n global $db;\n if ($player -> hp <= 0) \n {\n error (NO_LIFE);\n }\n $enemy1 = $db -> Execute(\"SELECT * FROM `monsters` WHERE `id`=\".$player -> fight);\n $span = ($enemy1 -> fields['level'] / $player -> level);\n if ($span > 2) \n {\n $span = 2;\n }\n $expgain = ceil(rand($enemy1 -> fields['exp1'],$enemy1 -> fields['exp2']) * $span);\n $goldgain = ceil(rand($enemy1 -> fields['credits1'],$enemy1 -> fields['credits2']) * $span);\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \n \"agility\" => $enemy1 -> fields['agility'], \n \"speed\" => $enemy1 -> fields['speed'], \n \"endurance\" => $enemy1 -> fields['endurance'], \n \"hp\" => $enemy1 -> fields['hp'], \n \"name\" => $enemy1 -> fields['name'], \n \"id\" => $enemy1 -> fields['id'], \n \"exp1\" => $enemy1 -> fields['exp1'], \n \"exp2\" => $enemy1 -> fields['exp2'], \n \"level\" => $enemy1 -> fields['level'],\n\t\t \"lootnames\" => explode(\";\", $enemy1->fields['lootnames']),\n\t\t \"lootchances\" => explode(\";\", $enemy1->fields['lootchances']));\n if ($type == 'T') \n {\n if (!isset ($_POST['action'])) \n {\n turnfight ($expgain,$goldgain,'',$adress);\n } \n else \n {\n turnfight ($expgain,$goldgain,$_POST['action'],$adress);\n }\n } \n else \n {\n fightmonster ($enemy,$expgain,$goldgain,1);\n }\n $fight = $db -> Execute(\"SELECT `fight`, `hp` FROM `players` WHERE `id`=\".$player -> id);\n if ($fight -> fields['fight'] == 0) \n {\n if ($type == 'T')\n\t {\n\t $player->energy --;\n\t if ($player -> energy < 0) \n\t {\n\t\t$player -> energy = 0;\n\t }\n\t $db -> Execute(\"UPDATE `players` SET `energy`=\".$player->energy.\" WHERE `id`=\".$player->id);\n\t }\n if ($player -> location == 'Góry') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php?akcja=gory\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"gory.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n if ($player -> location == 'Las') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"las.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n }\n $fight -> Close();\n $enemy1 -> Close();\n}",
"function addANewFighter($arg, $playerIdLogin) {\n //TODO: get the fighter to automatically start level 1, with all skills at 1 and health at maximum (10?)\n //TODO: X and Y position must be decided when the fighter joins the arena\n $fighterData = $arg;\n $fighterTable = TableRegistry::get('fighters');\n $fighter = $fighterTable->newEntity();\n $fighter->name = $fighterData['name'];\n $fighter->player_id = $playerIdLogin;\n\n $fighters = $this->find('all');\n $fightersArray = $fighters->toArray();\n\n $restart = 1;\n\n while ($restart == 1) {\n\n $randX = rand(0, 14);\n $randY = rand(0, 9);\n $restart = 0;\n\n for ($i = 0; $i < count($fightersArray); $i++) {\n if (($fightersArray[$i]['coordinate_x'] == $randX) && ($fightersArray[$i]['coordinate_y'] == $randY)) {\n $restart = 1;\n }\n }\n }\n\n $fighter->coordinate_x = $randX;\n $fighter->coordinate_y = $randY;\n $fighter->level = '1';\n $fighter->xp = '0';\n\n if ($fighterData['Class'] == 0) {\n $fighter->skill_sight = '2';\n $fighter->skill_strength = '1';\n $fighter->skill_health = '5';\n $fighter->current_health = '5';\n }\n\n if ($fighterData['Class'] == 1) {\n $fighter->skill_sight = '3';\n $fighter->skill_strength = '1';\n $fighter->skill_health = '5';\n $fighter->current_health = '5';\n }\n\n if ($fighterData['Class'] == 2) {\n $fighter->skill_sight = '2';\n $fighter->skill_strength = '1';\n $fighter->skill_health = '8';\n $fighter->current_health = '8';\n }\n\n if ($fighterData['Class'] == 3) {\n $fighter->skill_sight = '2';\n $fighter->skill_strength = '2';\n $fighter->skill_health = '5';\n $fighter->current_health = '5';\n }\n\n\n $fighterTable->save($fighter);\n $imgId= rand(1, 24);\n if( $fighterData[\"imgNum\"] != \"\"){\n $imgId= $fighterData[\"imgNum\"];\n }\n\n $file = new File('img/A'. $imgId .'.PNG'); // change here\n\n $file->copy('img/'.$fighter->id.'.PNG', true);\n }",
"public function __construct() { $this->_competitions = [new Competition(0, 'unknow', 0)]; }",
"public function initGame(){\r\n $this->board = new Board();\r\n }",
"private function applyPoison($time, &$action_message, $skill_effect, $monster) {\n\t\tif(!empty($this->monsters[$monster['id']]['Monster']['debuffs']['poisoned'])) {\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['poisoned']['stacks']++;\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['poisoned']['amount_min'] += $this->amountModifiers($time, $monster, $skill_effect['amount_min'], 'Magical Damage');\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['poisoned']['amount_max'] += $this->amountModifiers($time, $monster, $skill_effect['amount_max'], 'Magical Damage');\n\t\t\tif($this->monsters[$monster['id']]['Monster']['debuffs']['poisoned']['ends'] < $time + $skill_effect['duration'] * 1000) {\n\t\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['poisoned']['ends'] = $time + $skill_effect['duration'] * 1000;\n\t\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['poisoned']['next_tick'] = $time + 1000;\n\t\t\t}\n\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Poisoned('.$this->monsters[$monster['id']]['Monster']['debuffs']['poisoned']['stacks'].').');\n\t\t}else{\n\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Poisoned.');\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['poisoned'] = [\n\t\t\t\t'stacks' => 1,\n\t\t\t\t'amount_min' => $this->amountModifiers($time, $monster, $skill_effect['amount_min'], 'Magical Damage'),\n\t\t\t\t'amount_max' => $this->amountModifiers($time, $monster, $skill_effect['amount_max'], 'Magical Damage'),\n\t\t\t\t'ends' => $time + $skill_effect['duration'] * 1000,\n\t\t\t\t'next_tick' => $time + 1000\n\t\t\t];\n\t\t}\n\t}",
"public static function ability_function_forward_attack($objects, $target_options, $damage_options, $recovery_options, $effect_options = array()){\n\n // Define defaults for undefined target options\n if (!isset($target_options['stat_kind'])){ $target_options['stat_kind'] = 'energy'; }\n if (!isset($target_options['robot_frame'])){ $target_options['robot_frame'] = 'shoot'; }\n if (!isset($target_options['robot_kickback'])){ $target_options['robot_kickback'] = array(0, 0, 0); }\n if (!isset($target_options['ability_frame'])){ $target_options['ability_frame'] = 0; }\n if (!isset($target_options['ability_offset'])){ $target_options['ability_offset'] = array(110, 0, 10); }\n if (!isset($target_options['ability_text'])){ $target_options['ability_text'] = '{this_robot_name} uses the {this_ability_name}!'; }\n\n // Define defaults for undefined damage options\n if (!isset($damage_options['robot_frame'])){ $damage_options['robot_frame'] = 'damage'; }\n if (!isset($damage_options['robot_kickback'])){ $damage_options['robot_kickback'] = array(10, 0, 0); }\n if (!isset($damage_options['ability_sucess_frame'])){ $damage_options['ability_sucess_frame'] = 4; }\n if (!isset($damage_options['ability_success_offset'])){ $damage_options['ability_success_offset'] = array(-90, 0, 10); }\n if (!isset($damage_options['ability_success_text'])){ $damage_options['ability_success_text'] = 'The {this_ability_name} hit the target!'; }\n if (!isset($damage_options['ability_failure_frame'])){ $damage_options['ability_failure_frame'] = 4; }\n if (!isset($damage_options['ability_failure_offset'])){ $damage_options['ability_failure_offset'] = array(-100, 0, -10); }\n if (!isset($damage_options['ability_failure_text'])){ $damage_options['ability_failure_text'] = 'The {this_ability_name} missed...'; }\n\n // Define defaults for undefined recovery options\n if (!isset($recovery_options['robot_frame'])){ $recovery_options['robot_frame'] = 'taunt'; }\n if (!isset($recovery_options['robot_kickback'])){ $recovery_options['robot_kickback'] = array(0, 0, 0); }\n if (!isset($recovery_options['ability_sucess_frame'])){ $recovery_options['ability_sucess_frame'] = 4; }\n if (!isset($recovery_options['ability_success_offset'])){ $recovery_options['ability_success_offset'] = array(-45, 0, 10); }\n if (!isset($recovery_options['ability_success_text'])){ $recovery_options['ability_success_text'] = 'The {this_ability_name} was absorbed by the target!'; }\n if (!isset($recovery_options['ability_failure_frame'])){ $recovery_options['ability_failure_frame'] = 4; }\n if (!isset($recovery_options['ability_failure_offset'])){ $recovery_options['ability_failure_offset'] = array(-100, 0, -10); }\n if (!isset($recovery_options['ability_failure_text'])){ $recovery_options['ability_failure_text'] = 'The {this_ability_name} had no effect on the target...'; }\n\n // Define defaults for undefined effect options\n if (!isset($effect_options['stat_kind'])){ $effect_options = false; }\n else {\n if (!isset($effect_options['damage_text'])){ $effect_options['damage_text'] = '{this_robot_name}\\'s stats were damaged!'; }\n if (!isset($effect_options['recovery_text'])){ $effect_options['recovery_text'] = '{this_robot_name}\\'s stats improved!'; }\n if (!isset($effect_options['effect_chance'])){ $effect_options['effect_chance'] = 50; }\n }\n\n // Extract all objects into the current scope\n extract($objects);\n\n // Define Search and replace object strings for replacing\n $search_replace = array();\n $search_replace['this_player_name'] = $this_player->print_player_name();\n $search_replace['this_robot_name'] = $this_robot->print_robot_name();\n $search_replace['target_player_name'] = $target_player->print_player_name();\n $search_replace['target_robot_name'] = $target_robot->print_robot_name();\n $search_replace['this_ability_name'] = $this_ability->print_ability_name();\n\n // Run the obtion arrays through the parsing function\n $target_options = self::parse_string_variables($search_replace, $target_options);\n $damage_options = self::parse_string_variables($search_replace, $damage_options);\n $recovery_options = self::parse_string_variables($search_replace, $recovery_options);\n if (!empty($effect_options)){\n $effect_options = self::parse_string_variables($search_replace, $effect_options);\n }\n\n // Update target options for this ability\n $this_ability->target_options_update(array(\n 'frame' => $target_options['robot_frame'],\n 'kickback' => $target_options['robot_kickback'],\n 'success' => array(\n $target_options['ability_frame'],\n $target_options['ability_offset'][0],\n $target_options['ability_offset'][1],\n $target_options['ability_offset'][2],\n $target_options['ability_text']\n )\n ));\n\n // Update damage options for this ability\n $this_ability->damage_options_update(array(\n 'kind' => $target_options['stat_kind'],\n 'frame' => $damage_options['robot_frame'],\n 'kickback' => $damage_options['robot_kickback'],\n 'success' => array(\n $damage_options['ability_sucess_frame'],\n $damage_options['ability_success_offset'][0],\n $damage_options['ability_success_offset'][1],\n $damage_options['ability_success_offset'][2],\n $damage_options['ability_success_text']\n ),\n 'failure' => array(\n $damage_options['ability_failure_frame'],\n $damage_options['ability_failure_offset'][0],\n $damage_options['ability_failure_offset'][1],\n $damage_options['ability_failure_offset'][2],\n $damage_options['ability_failure_text']\n )\n ));\n\n // Update recovery options for this ability\n $this_ability->recovery_options_update(array(\n 'kind' => $target_options['stat_kind'],\n 'frame' => $recovery_options['robot_frame'],\n 'kickback' => $recovery_options['robot_kickback'],\n 'success' => array(\n $recovery_options['ability_sucess_frame'],\n $recovery_options['ability_success_offset'][0],\n $recovery_options['ability_success_offset'][1],\n $recovery_options['ability_success_offset'][2],\n $recovery_options['ability_success_text']\n ),\n 'failure' => array(\n $damage_options['ability_failure_frame'],\n $damage_options['ability_failure_offset'][0],\n $damage_options['ability_failure_offset'][1],\n $damage_options['ability_failure_offset'][2],\n $damage_options['ability_failure_text']\n )\n ));\n\n\n // Target the opposing robot with this ability\n $this_robot->trigger_target($target_robot, $this_ability);\n\n // Attempt to inflict damage on the opposing robot\n $stat_damage_amount = $this_ability->ability_damage;\n $target_robot->trigger_damage($this_robot, $this_ability, $stat_damage_amount);\n\n // Only apply a secondary affect if one was defined\n if (!empty($effect_options)){\n\n // Define the stat property strings\n $robot_stat_prop = 'robot_'.$effect_options['stat_kind'];\n\n // Trigger effect if target isn't disabled and ability was successful and chance\n if (\n $target_robot->robot_status != 'disabled' &&\n $this_ability->ability_results['this_result'] != 'failure' &&\n $this_ability->ability_results['this_amount'] > 0 &&\n $target_robot->$robot_stat_prop > 0 &&\n ($effect_options['effect_chance'] == 100 || $this_battle->critical_chance($effect_options['effect_chance']))\n ){\n\n // Define the default damage options for the stat effect\n $this_ability->damage_options_update(array(\n 'kind' => $effect_options['stat_kind'],\n 'frame' => 'defend',\n 'percent' => true,\n 'kickback' => array(10, 0, 0),\n 'success' => array(9, 0, 0, -10, $effect_options['damage_text']),\n 'failure' => array(9, 0, 0, -9999, '')\n ));\n\n // Define the default recovery options for the stat effect\n $this_ability->recovery_options_update(array(\n 'kind' => $effect_options['stat_kind'],\n 'frame' => 'taunt',\n 'percent' => true,\n 'kickback' => array(0, 0, 0),\n 'success' => array(9, 0, 0, -10, $effect_options['recovery_text']),\n 'failure' => array(9, 0, 0, -9999, '')\n ));\n\n // Calculate the exact damage amount and trigger it on the target\n $trigger_options = array('apply_modifiers' => false);\n $stat_damage_amount = ceil($target_robot->$robot_stat_prop * ($this_ability->ability_damage2 / 100));\n $target_robot->trigger_damage($this_robot, $this_ability, $stat_damage_amount, true, $trigger_options);\n }\n\n }\n\n // Return true on success\n return true;\n\n }",
"public function __construct() {\n\t\t$this\n\t\t\t->calculateMaxTargets()\n\t\t\t->generateMap()\n\t\t\t->populateMap();\n\t}",
"public function applyEffect($object, HeraldEffect $effect) {\n // after executing Herald.\n $this->logEffect(self::DO_BLOCK);\n }",
"public function __construct(){\n\t\t\n\t\t$this->dataMgr = createNewDataManager();\n\t\t$this->player = null;\n\t}",
"function __construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc){\n parent::__construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc);\n }",
"function __construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc){\n parent::__construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc);\n }",
"function __construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc){\n parent::__construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc);\n }",
"function __construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc){\n parent::__construct($armour, $maxhealth, $powerReq, $shieldFactor, $startArc, $endArc);\n }",
"private function __construct()\n {\n $this->time = time();\n }",
"public function __construct()\n {\n parent::__construct();\n $this->water = new WateringHelper();\n }",
"public function setIsEffect($is_effect)\n {\n $this->is_effect = $is_effect;\n\n return $this;\n }",
"function init() {\n if ($this->_init === false) {\n $this->_init = true;\n $this->doInit();\n }\n }",
"public static function get_battle(){\n $this_battle = isset($GLOBALS['this_battle']) ? $GLOBALS['this_battle'] : new rpg_battle();\n $this_battle->trigger_onload();\n return $this_battle;\n }",
"protected function _initialize() {\n\t\tparent::_initialize();\n\t\t\n\t\tforeach ($this->_behaviors as $key => $value) {\n\t\t\t$behavior = is_string($key) ? $key : $value;\n\t\t\t$config = is_array($value) ? $value : array();\n\t\t\t\n\t\t\tunset($this->_behaviors[$key]);\n\t\t\t$this->attach_behavior(new $behavior($this, $config));\n\t\t}\n\t}",
"function __construct() {\n $this->start_time = microtime(true);\n }",
"public function startDuel(){\n $this->plugin->getScheduler()->cancelTask($this->countdownTaskHandler->getTaskId());\n\n /** @var Player $player1 */\n $player1 = $this->players[0];\n /** @var Player $player2 */\n $player2 = $this->players[1];\n var_dump($this->spawn1);\n var_dump($this->spawn2);\n $player1->teleport($this->spawn1);\n $player2->teleport($this->spawn2);\n $this->sparyParticle($player1);\n $this->sparyParticle($player2);\n $player1->setGamemode(0);\n $player2->setGamemode(0);\n\n // Give kit\n if(OneVsOne::getInstance()->getConfig()->get(\"force-kit\") === true){\n foreach($this->players as $player){\n $this->giveKit($player);\n }\n }\n // Fix start time\n $this->startTime = new DateTime('now');\n\n $player1->sendTip(OneVsOne::getMessage(\"duel_tip\"));\n $player1->sendMessage(str_replace(\"{roundtime}\", OneVsOne::getInstance()->getConfig()->get(\"time-limit\"), OneVsOne::getMessage(\"duel_start\")));\n\n $player2->sendTip(OneVsOne::getMessage(\"duel_tip\"));\n $player2->sendMessage(str_replace(\"{roundtime}\", OneVsOne::getInstance()->getConfig()->get(\"time-limit\"), OneVsOne::getMessage(\"duel_start\")));\n }",
"public function __construct($name, $height, $weight, $favFood, $speed, $sound, $canFly)\r\n\t{\r\n\t\tparent::__construct($name, $height, $weight, $favFood, $speed, $sound, $canFly);\r\n\t\t\r\n\t}",
"public function __construct(array $idealAverage, string $teamName) {\n $this->players = [];\n $this->idealAverage = $idealAverage;\n $this->teamName = $teamName;\n $this->teamColor = $this->generateRandomTeamColor();\n }",
"public function initCard()\n {\n $baseCard = $this->getBaseCard();\n /*\n * fix return;\n */\n if(!$baseCard)\n return false;\n $this->current_hp = $this->hp;\n $this->current_name = $baseCard->name;\n $this->current_defense = $this->defense;\n $this->current_dmg_min = $this->dmg_min;\n $this->current_dmg_max = $this->dmg_max;\n $this->current_dmg_critical = $this->dmg_critical;\n $this->current_critical_chance = $this->critical_chance;\n $this->update();\n }",
"protected function __construct() {\n $this->load_data();\n add_action( 'init', array( $this, 'init' ), 0 );\n }",
"public function __construct() {\n $this->time = time();\n }",
"public function __construct() {\n\t\t$this->startTime = self::getMicrotime();\n\t}",
"public function __construct()\n {\n $this->startTime = microtime(true);\n parent::__construct();\n }",
"public function init()\n {\n $this->initFunctionCallCount++;\n }",
"function __construct()\n {\n // Here, you can assign labels to global variables you are using for this game.\n // You can use any number of global variables with IDs between 10 and 99.\n // If your game has options (variants), you also have to associate here a label to\n // the corresponding ID in gameoptions.inc.php.\n // Note: afterwards, you can get/set the global variables with getGameStateValue/setGameStateInitialValue/setGameStateValue\n parent::__construct();self::initGameStateLabels(array(\n // \"my_first_global_variable\" => 10,\n // \"my_second_global_variable\" => 11,\n // ...\n // \"my_first_game_variant\" => 100,\n // \"my_second_game_variant\" => 101,\n // ...\n 'number_of_achievements_needed_to_win' => 10,\n 'turn0' => 11,\n 'first_player_with_only_one_action' => 12,\n 'second_player_with_only_one_action' => 13,\n 'has_second_action' => 14,\n 'game_end_type' => 15,\n 'player_who_could_not_draw' => 16,\n 'winner_by_dogma' => 17,\n 'active_player' => 18,\n 'current_player_under_dogma_effect' => 19,\n 'dogma_card_id' => 20,\n 'current_effect_type' => 21,\n 'current_effect_number' => 22,\n 'sharing_bonus' => 23,\n 'step' => 24,\n 'step_max' => 25,\n 'special_type_of_choice' => 26,\n 'choice' => 27,\n 'can_pass' => 28,\n 'n_min' => 29,\n 'n_max' => 30,\n 'solid_constraint' => 31,\n 'splay_direction' => 32,\n 'owner_from' => 33,\n 'location_from' => 34,\n 'owner_to' => 35,\n 'location_to' => 36,\n 'bottom_to' => 37,\n 'age_min' => 38,\n 'age_max' => 39,\n 'color_array' => 40,\n 'with_icon' => 41,\n 'without_icon' => 42,\n 'not_id' => 43,\n 'n' => 44,\n 'id_last_selected' => 45,\n 'age_last_selected' => 46,\n 'color_last_selected' => 47,\n 'score_keyword' => 48,\n 'auxiliary_value' => 49,\n 'nested_id_1' => 50,\n 'nested_current_effect_number_1' => 51,\n 'nested_id_2' => 52,\n 'nested_current_effect_number_2' => 53,\n 'nested_id_3' => 54,\n 'nested_current_effect_number_3' => 55,\n 'nested_id_4' => 56,\n 'nested_current_effect_number_4' => 57,\n 'nested_id_5' => 58,\n 'nested_current_effect_number_5' => 59,\n 'nested_id_6' => 60,\n 'nested_current_effect_number_6' => 61,\n 'nested_id_7' => 62,\n 'nested_current_effect_number_7' => 63,\n 'nested_id_8' => 64,\n 'nested_current_effect_number_8' => 65,\n 'nested_id_9' => 66,\n 'nested_current_effect_number_9' => 67, \n \n 'debug_mode' => 99, // Set to 1 to enable debug mode (to enable to draw any card in the game). Set to 0 in production\n \n 'game_type' => 100, // 1 for normal game, 2 for team game\n 'game_rules' => 101 // 1 for last edition, 2 for first edition\n ));\n }",
"public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }",
"public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }",
"public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }",
"public function init()\n {\n parent::init();\n $this->trigger(self::EVENT_INIT);\n }",
"public function __construct($num)\n {\n $this->setName();\n \n $this->_stats = array(\n \"tank\" => 0,\n \"hellicopter\" => 0,\n \"airplane\" => 0,\n \"ship\" => 0,\n \"soldier\" => 0\n );\n echo \"<br />Creating army with \" . $num . \" soldiers.. <br />\" . PHP_EOL;\n $this->_numOfSoldiers = $num;\n for ($i = 0; $i < $num; $i++)\n {\n $this->addSoldier();\n }\n }",
"public function __construct()\r\n {\r\n $this->spaceShip = new Ship(\r\n rand(-$this->universeRadius, $this->universeRadius),\r\n rand(-$this->universeRadius, $this->universeRadius),\r\n rand(-$this->universeRadius, $this->universeRadius),\r\n $this\r\n );\r\n // decide where we're going to!\r\n $this->destination = array('x' => rand(-$this->universeRadius, $this->universeRadius), 'y' => rand(-$this->universeRadius, $this->universeRadius), 'z' => rand(-$this->universeRadius, $this->universeRadius));\r\n // generate the initial asteroids\r\n $this->generateAsteroids();\r\n // generate the wormholes\r\n $this->generateWormholes();\r\n }",
"public function __construct() {\n\t\tadd_action( 'wprm_premium_init', array( $this, 'init' ) );\n\t}",
"public function __wakeup()\n\t{\n\t\t// Re-initialize start time on wake-up\n\t\t$this->start_time = $this->microtime_float();\n\t}",
"protected function _init(){\n\t\t//Hook called at the beginning of self::run();\n\t}",
"protected function _initialize()\n\t{\n\t\t$this->_do = Kiwi_Object_Manager::load\n\t\t(\n\t\t\t'Kiwi_Slide'\n\t\t); // allows caching\n\n\t\tparent::_initialize();\n\t}",
"function __construct() {\n\t\t//Generate a random id between 1 and 1000000\n\t\t$this->id = rand(100, 1000000);\n\n\t\techo $this->id . \" has been assigned</br>\";\n\n\t\t//You access static attributes with Class::$static_att\n\n\t\tAnimal::$number_of_animals++;\n\t}"
] | [
"0.5735397",
"0.55760324",
"0.53802097",
"0.53462476",
"0.5302386",
"0.5204993",
"0.5204175",
"0.51896894",
"0.5131411",
"0.5121749",
"0.50694335",
"0.49684772",
"0.49374932",
"0.49102452",
"0.48864853",
"0.4853551",
"0.48373732",
"0.480392",
"0.48027736",
"0.4790001",
"0.4790001",
"0.47712263",
"0.47634292",
"0.47189435",
"0.47003454",
"0.46874616",
"0.4675308",
"0.466134",
"0.46602947",
"0.46581197",
"0.46536165",
"0.46181867",
"0.46091235",
"0.45946792",
"0.45646092",
"0.4563516",
"0.45555142",
"0.45487192",
"0.454685",
"0.45453334",
"0.45443922",
"0.45402625",
"0.45378175",
"0.45284027",
"0.45282343",
"0.45238864",
"0.45201075",
"0.45158282",
"0.44725376",
"0.44724587",
"0.44724566",
"0.4469221",
"0.44437402",
"0.4437481",
"0.44351918",
"0.4434085",
"0.44028476",
"0.44015813",
"0.43986294",
"0.43957084",
"0.43953526",
"0.43788686",
"0.43767464",
"0.43636718",
"0.43401918",
"0.43373364",
"0.4320624",
"0.4311682",
"0.43067878",
"0.43067878",
"0.43067878",
"0.43067878",
"0.42978847",
"0.429596",
"0.42939276",
"0.42908594",
"0.4287445",
"0.4286098",
"0.4285435",
"0.42758808",
"0.42657968",
"0.42642653",
"0.42640024",
"0.42629993",
"0.42614278",
"0.42579368",
"0.4255936",
"0.42550942",
"0.42453235",
"0.42404488",
"0.42404488",
"0.42404488",
"0.42404488",
"0.42382735",
"0.42358562",
"0.42348877",
"0.4234134",
"0.4224788",
"0.42246744",
"0.42206296"
] | 0.62219137 | 0 |
Returns a string that can be used as the ocntent of a popup for the Battleeffect | public function getPopup() {
if($this->blocks) {
return $this->desc . "<BR /> <BR />" .
"<b>Blocks" .
($this->charges > 0 ? " " . $this->charges . " more" : "") .
($this->blockActionTypes != "all" ? $this->blockActionTypes : "") . " actions" .
($this->blockChance < 1 ? " with a chance of " . floor($this->blockChance * 100) . "%" : "") .
($this->turns > 0 ? " within the next " . $this->turns . " rounds" : "") .
".";
}
return $this->desc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function popUpString(Competition $competition)\n {\n $description =\n \"<b>\" . $competition->getName() . \"</b><br>Du \"\n . $this->ds->format($competition->getDateStart(), 'd-m') . \" au \"\n . $this->ds->format($competition->getDateEnd(), 'd-m') .\n \"<br> <a href='\" .\n $this->router->generate('competition_show', array('id' => $competition->getId())) .\n \"'>Voir cette compétition</a><br>\";\n\n if ($competition->getInChampionship())\n $description = $description . \"<img class='leaflet-popup-img' src='/webSport/web/img/cup.jpg'/>\";\n\n if ($competition->getCompetitorRegister() == 1)\n $description = $description . \"<img class='leaflet-popup-img' src='/webSport/web/img/canRegister.png'/>\";\n\n if ($competition->getCompetitorRegister() == 2)\n $description = $description . \"<img class='leaflet-popup-img' src='/webSport/web/img/race_start.png'/>\";\n\n $properties = array(\n 'name' => $competition->getName(),\n 'description' => $description,\n );\n\n $geometry = array(\n \"type\" => \"Point\",\n \"coordinates\" => array($competition->getLocation()->getY(), $competition->getLocation()->getX())\n );\n\n $feature = array(\n \"type\" => \"Feature\",\n \"properties\" => $properties,\n \"geometry\" => $geometry,\n );\n\n return $feature;\n }",
"public function getPopupHtml() { return $this->popHtml; }",
"public function getPopup() {}",
"public function toString()\n {\n return 'Take Payment Popup In Session Management. Every Element Visible Correctly.';\n }",
"public function toString()\n\t{\n\t\treturn \"Order History - Cancel Order - Popup Display: Pass\";\n\t}",
"function buildPopup(){\t\t\n\t\t$html = '';\n\t\t$html .= JDom::_('html.fly.bootstrap.modal', array(\n\t\t\t\t'domId' => 'fset_modal_form',\n\t\t\t\t'domClass' => 'popupform formFieldsContainer',\n\t\t\t\t'selectors' => array(\n\t\t\t\t\t'data-backdrop'=> 'static'\n\t\t\t\t\t),\n\t\t\t\t'title' => JText::_(\"JACTION_EDIT\")\n\t\t\t));\n\t\t\n\t\treturn $html;\n\t}",
"public function __toString()\r\n {\r\n return $this->buildEffect();\r\n }",
"public function gameOver()\n\t{\n\n\t\tif($this->checkForWin() == true) {\n\n\t\t\t$gameover = '<div id=\"overlay\" class=\"win\"><div>';\n\t\t\t$gameover .= '<h1 id=\"game-over-message\">Congratulations on guessing: ' . $this->phrase->activePhrase . '</h1>';\n\t\t\t$gameover .= '<form action=\"play.php\" method=\"POST\"><input type=\"submit\" value=\"Play again\" class=\"btn__reset\"></form>';\n\t\t\t$gameover .= '</div></div>';\n\n\t\t} elseif ($this->checkForLose() == true) {\n\n\t\t\t$gameover = '<div id=\"overlay\" class=\"lose\"><div>';\n\t\t\t$gameover .= '<h1 id=\"game-over-message\">The phrase was: ' . $this->phrase->activePhrase . '. Better luck next time!</h1>';\n\t\t\t$gameover .= '<form action=\"play.php\" method=\"POST\"><input type=\"submit\" value=\"Try again\" class=\"btn__reset\"></form>';\n\t\t\t$gameover .= '</div></div>';\n\t\n\t\t} else {\n\t\t\t$gameover = false;\n\t\t}\n\n\t\treturn $gameover;\n\n\t}",
"public function getPopupContent();",
"function toString(){\n\n $res = '<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" id=\"' . $this->my_id . '\" >' . \"\\n\";\n $res .=\"<tr><td>\\n\";\n $res .='<table border=\"0\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" >' . \"\\n\";\n $res .=\"<tr>\\n\";\n $res .='<td><b><IMG SRC=\"plus.gif\" id=\"' . $this->my_id . 'img\" onclick=\"changepopup(1,' . \"'\" . $this->my_id . \"'\" . ')\">';\n\nif(!is_null($this->my_pic))$res .='<IMG SRC=\"' . $this->my_pic . '\" img\" onclick=\"changepopup(1,' . \"'\" . $this->my_id . \"'\" . ')\">';\n $res .='<FONT FACE=\"Arial\" SIZE=3 COLOR=\"#000000\">' . $this->title . '</FONT></b></td>' . \"\\n\";\n //$res .='<td bgcolor=\"#3300bb\" width=\"20\"><IMG SRC=\"popdown.gif\" onclick=\"changepopup(false,' . \"'\" . $this->my_id . \"'\" . ')\"></td>' . \"\\n\";\n //$res .='<td bgcolor=\"#3300bb\" width=\"20\"><IMG SRC=\"popup.gif\" onclick=\"changepopup(true,' . \"'\" . $this->my_id . \"'\" . ')\" ></td>' . \"\\n\";\n $res .=\"</tr></table>\\n\";\n $res .=\"</td></tr>\\n\";\n $res .='<tr><td>';\n $res .='';\n\n\n /*$tmp = count($this->arrayObj);\n for($i = 0 ; $i<$tmp ; $i++){\n \n\n if(is_object($this->arrayObj[$i])){\n\n $res .= \"<P>\" . $this->arrayObj[$i]->toString() . \"</P>\";\n \n }else{\n $res .= \"<P>\" . $this->arrayObj[$i] . \"</P>\";\n \n }\n }*/\n \n $res .= \"</td></tr></table>\";\n \n return $res;}",
"public function graphic()\n {\n return \"die-\" . $this->value;\n }",
"public function buildSubwindow()\n {\n return '<button type=\"menu\" ><![CDATA['.$this->content.']]></button>';\n }",
"public function message()\n {\n return 'This chest is in cool down. Try again later.';\n }",
"public function toString()\n\t{\n\t\treturn \"Customer on checkout page - New customer popup is closed\";\n\t}",
"public function getUiCallText() {\n return \"UCC Flash Project\";\n }",
"public abstract function getDatasetPopupHtml():string;",
"public function popupScreen() {\n\t\t$this->return_val->status = 1;\n\t\t$this->return_val->msg = \"\";\n\t\t$data[\"friends\"] = $this->formatDBFriends($this->CoverModel->getFriends($this->fb_user_info->facebook_id));\n\t\t$this->return_val->popup = $this->load->view(\"coverpopup\", $data, TRUE);\n\t\techo json_encode($this->return_val);\n\t}",
"public function BannerPickerPopUp()\n\t{\tob_start();\n\t\techo '<script type=\"text/javascript\">$().ready(function(){$(\"body\").append($(\".jqmWindow\"));$(\"#banner_modal_popup\").jqm();});</script>',\n\t\t\t'<!-- START instructor list modal popup --><div id=\"banner_modal_popup\" class=\"jqmWindow\" style=\"padding-bottom: 5px; width: 640px; margin-left: -320px; top: 10px; height: 600px; \"><a href=\"#\" class=\"jqmClose submit\">Close</a><div id=\"bannerModalInner\" style=\"height: 500px; overflow:auto;\"></div></div>';\n\t\treturn ob_get_clean();\n\t}",
"function draw_actions(){\r\n\t\t$out='';\r\n\r\n\t\tif(count($this->actions)>0){\r\n\r\n\t\t\t$out='<select id=\"'.$this->id.'_actions\" name=\"'.$this->id.'_actions\" onchange=\"'.$this->change_tags($this->actions_url).'\">';\r\n\r\n\t\t\tfor($i=0; $i<count($this->actions); $i++){\r\n\t\t\t\t$out.='<option value=\"'.$this->actions[$i][0].'\">'.$this->actions[$i][1].'</option>';\r\n\t\t\t}\r\n\r\n\t\t\t$out.='</select>';\r\n\r\n\t\t}\r\n\r\n\t\treturn $out;\r\n\t}",
"public function toString()\n {\n return \"Gift message is displayed for each items on order(s) view page on frontend correctly.\";\n }",
"function printAsideEspertoProfilo($img_profilo) {\r\n \r\n $img_profilo = '../' . $img_profilo;\r\n \r\n echo '<div class=\"tooltip-esperto\">';\r\n echo '<span class=\"tooltip-testo-esperto\">Utente esperto</span>';\r\n echo '<div class=\"profilo-img-container profilo-esperto\">' .\r\n '<img onclick=\"showModal(' . \"'modifica-immagine-profilo','post-container'\" . ')\"' .\r\n 'class=\"img-profilo-dim pointer\" src=\"' . $img_profilo .'\"' .\r\n 'alt=\"Immagine del profilo\"/>' . \r\n '<div class=\"aside-testo\">' . $_SESSION['nickname'] . '</div>' .\r\n '</div>';\r\n echo '</div>';\r\n}",
"function panelActionView($mang, $arrayOption = null, $arrayOption2 = null) {\n $str = \"\n\n\n\n\n\n\n\n\t\t\t\t<div id='panelAction' class='panelAction'>\n\n\n\n\n\n\n\n <div style='width:475px;float:left;\" . $arrayOption2[\"style\"] . \";height:17px;padding-top:5px;'>\" . $mang . \"</div>\n\n\n\n\n\n\n\n\t\t\t\t\t<div class='panelActionContent' style='\" . $arrayOption[\"style\"] . \"'>\n\n\n\n\n\n\n\n\t\t\t\t\t<table id='panelTable' cellpadding='0' cellspacing='0' width='200' align='right'>\n\n\n\n\n\n\n\n\t\t\t\t\t\t<tr>\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t<td class='cellAction1'>\" . selectIMG . \"</td><td class='cellAction'>\" . selectText . \"</td>\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t<td class='cellAction1'>\" . deleteIMG . \"</td><td class='cellAction'>\" . deleteText . \"</td><td class='cellAction1'>\" . viewIMG . \"</td><td class='cellAction11'>\" . viewText . \"</td>\n\n\n\n\n\n\n\n\t\t\t\t\t\t</tr>\n\n\n\n\n\n\n\n\t\t\t\t\t</table>\n\n\n\n\n\n\n\n\t\t\t\t\t</div>\n\n\n\n\n\n\n\n\t\t\t\t</div>\";\n return $str;\n }",
"function xstats_getShipFullDescription( $gameId, $shipId, $race, $picturesmall, $experience, $turn, $shipclass, $shipname) {\n//could be 0 if the ship is not destroyed at the end of the game\n if( $turn == 0 || $turn == xstats_getMaxTurn($gameId)) {\n $ownerIndex = xstats_getLastShipOwnerIndexAtTurn($gameId, $shipId );\n }else {\n $ownerIndex = xstats_getShipOwnerIndexAtTurn($gameId, $shipId, $turn);\n }\n return( xstats_getShipIconWithExp( $race, $picturesmall, $experience, $ownerIndex ).' <span>'.$shipclass.' ['.$shipname.'_'.$shipId.']</span>' );\n}",
"function cp_print_popUp($firstBtnValue,$title,$content,$btnType,$btnValue,$btnName){\r\n echo \"<span class='btn-wrapper'><label for='popup-first-btn' class='popup-btn btn'>$firstBtnValue</label></span>\",\r\n '<input id=\"popup-first-btn\" type=\"radio\" name=\"popup-conf\" class=\"popup-first-btn btn\" value=\"none\">',\r\n '<div class=\"popup-night\">',\r\n '<div class=\"popup-box\" >',\r\n \"<h4>$title</h4>\",\r\n \"<p>$content</p>\",\r\n '<input id=\"popup-exit\" type=\"radio\" name=\"popup-conf\">',\r\n '<label for=\"popup-exit\">×</label>',\r\n \"<span class='btn-wrapper'><input class='popup-final-btn btn' name='$btnName' value='$btnValue' type='$btnType'></span>\",\r\n '</div>',\r\n '</div> ';\r\n}",
"protected function _getPopupClass() {\n $classes = array();\n // Apply the template\n $classes[] = $this->_getTemplateClass();\n\n return implode(\" \", $classes);\n }",
"public function getTypeOfBattle()\n {\n return \"Type of this battle is: \" . $this->_type . \".<br />\";\n }",
"function toString(){\n\n $res = '<table border=\"0\" width=\"100%\" cellspacing=\"0\" id=\"' . $this->my_id . '\" >' . \"\\n\";\n $res .=\"<tr><td>\\n\";\n $res .='<table border=\"0\" width=\"100%\" cellspacing=\"0\">' . \"\\n\";\n $res .=\"<tr>\\n\";\n $res .='<td width=\"10\" background=\"field.gif\" > </td>' . \"\\n\";\n $res .='<td bgcolor=\"#3300bb\" ><b><FONT FACE=\"Arial\" SIZE=3 COLOR=\"#EEEEEE\">' . $this->title . '</FONT></b></td>' . \"\\n\";\n $res .='<td bgcolor=\"#3300bb\" width=\"20\"><IMG SRC=\"popdown.gif\" onclick=\"changepopup(false,' . \"'\" . $this->my_id . \"'\" . ')\"></td>' . \"\\n\";\n $res .='<td bgcolor=\"#3300bb\" width=\"20\"><IMG SRC=\"popup.gif\" onclick=\"changepopup(true,' . \"'\" . $this->my_id . \"'\" . ')\" ></td>' . \"\\n\";\n $res .=\"</tr></table>\\n\";\n $res .=\"</td></tr>\\n\";\n $res .='<tr><td bgcolor = \"#1100bb\">';\n $res .='';\n\n\n /*$tmp = count($this->arrayObj);\n for($i = 0 ; $i<$tmp ; $i++){\n \n\n if(is_object($this->arrayObj[$i])){\n\n $res .= \"<P>\" . $this->arrayObj[$i]->toString() . \"</P>\";\n \n }else{\n $res .= \"<P>\" . $this->arrayObj[$i] . \"</P>\";\n \n }\n }*/\n \n $res .= \"</td></tr></table>\";\n \n return $res;}",
"public function __toString() : string\n {\n $color = array_key_exists($this->getSuit(), SuitInterface::SUIT_COLOR)\n ? SuitInterface::SUIT_COLOR[$this->getSuit()]\n : 'black';\n return \"<span style='color: $color'>{$this->figure}{$this->suit}</span>\";\n }",
"function output()\n {\n $html = '';\n\n if( $this->course_id != -1 )\n {\n if( !empty($this->skype_name) )\n {\n $html .= \"\\n\\n\"\n . '<span id=\"skypeStatus\">' . \"\\n\"\n . '<!-- Skype \"My status\" button http://www.skype.com/go/skypebuttons -->' . \"\\n\"\n . '<script type=\"text/javascript\" src=\"http://download.skype.com/share/skypebuttons/js/skypeCheck.js\"></script>' . \"\\n\"\n . '<a href=\"skype:'.$this->skype_name.'?call\"><img src=\"http://mystatus.skype.com/smallclassic/'.$this->skype_name.'\"'\n . ' style=\"border: none;\" width=\"114\" height=\"20\" alt=\"'.get_lang('Skype status of course administrator').'\" /></a>' . \"\\n\";\n \n if( claro_is_allowed_to_edit() )\n {\n $html .= '<a href=\"'.get_module_url('CLSKYPE').'/edit.php\"><img src=\"'.get_icon_url('edit').'\" alt=\"'.get_lang('Modify').'\" /></a>' . \"\\n\";\n }\n \n $html .= '</span>' . \"\\n\\n\"; \n }\n elseif( claro_is_allowed_to_edit() )\n {\n $html .= '<a href=\"'.get_module_url('CLSKYPE').'/edit.php\" >'\n . '<img src=\"'.get_module_url('CLSKYPE').'/icon.png\" alt=\"\" align=\"top\" />'\n . get_lang('Configure Skype status notifier')\n . '</a>' . \"\\n\";\n }\n }\n\n return $html;\n }",
"public function bye(){\n return \"Bye... $this->dialogue\";\n }",
"final public function asStringWithTooltip() {\n\t\treturn Ajax::tooltip($this->asString(), $this->value.' '.$this->unitExplanation());\n\t}",
"function warquest_holiday_message() {\r\n\r\n\t/* input */\r\n\tglobal $player;\r\n\tglobal $config;\r\n\t\r\n\t/* output */\r\n\tglobal $page;\r\n\t\r\n\tif ($player->holiday_date > date(\"Y-m-d H:i:s\", time())) {\r\n\t\r\n\t\t$value = strtotime($player->holiday_date)-time();\r\n\t\r\n\t\t$page .= '<script language=\"JavaScript\" src=\"'.$config[\"content_url\"].'js/countdown5.js\" type=\"text/javascript\"></script>';\r\n\t\r\n\t\t$tmp = '<div class=\"countdown\"><div id=\"countdown_time5\"></div></div>';\t\t\r\n\t\t\t\t\r\n\t\t$message = '<table>';\r\n\t\t$message .= '<tr>';\r\n\t\t$message .= '<td width=\"200\">';\r\n\t\t$message .= warquest_image(\"restore/restore8.jpg\", ' width=\"170\" height=\"120\" ');\r\n\t\t$message .= '</td>';\r\n\t\t$message .= '<td>';\r\n\t\t$message .= '<div class=\"subparagraph\"><b>'.t('HOME_HOLIDAY').'</b></div>';\r\n\t\t$message .= t('HOME_HOLIDAY_PERIOD_ACTIVE', $tmp);\r\n\t\t$message .= '</td>';\r\n\t\t$message .= '</tr>';\r\n\t\t$message .= '</table>';\r\n\t\t\t\t\t\t\r\n\t\t$page .= warquest_box(\"\", $message);\t\r\n\t\t\t\t\t\t\r\n\t\t$page .= '<script language=\"JavaScript\" type=\"text/javascript\">';\r\n\t\t$page .= \"countdown5.init(\".$value.\", 'countdown_time5', '00:00:00');\"; \r\n\t\t$page .= '</script>';\r\n\t}\r\n}",
"public function getSplashBlock() {\r\n\t\t$html = '<p>Personnel handles the storing & presentation of faculty & staff records.</p>';\r\n\t\t$html .= '<p><b>Available Shortcode:</b><br /><code>[ofa-personnel][/ofa-personnel]</code></p>';\r\n\t\t$html .= '<p><b>Shortcode Attributes:</b><br /><code>view=\"list-all\"</code> (default)</br /><code>view=\"profile\"</code><br /><code>search=\"true\"</code><br /><code>search=\"false\"</code> (default)<br /><code>groupid=\"#\"</code> (The ID of the group to list)</p>';\r\n\t\treturn $html;\r\n\t}",
"function outputting()\n {\n $highlightMagnitudeClasses = $this->earthquakeClass($this->magnitude);\n echo '\n <tr>\n <td>' . $this->datetime . '</td>\n <td>' . $this->description . '</td>\n <td class=\"' . $highlightMagnitudeClasses . '\">' . $this->magnitude . '</td>\n <td>' . strval(\"($this->longitude, $this->latitude)\") . '</td>\n <td>' . $this->depth . '</td>\n <td style=\"width: 100px;\">\n <div style=\"text-align: center;\">\n <button type=\"button\" \n class=\"btn btn-primary\" \n style=\"width: 40px;\" \n data-toggle=\"modal\" \n data-target=\"#myModal\" \n data-lat=' . $this->latitude . ' \n data-lng=' . $this->longitude . ' \n title=\"open map ' . $this->description . '\">\n <i class=\"fas fa-map-marked-alt\"></i>\n </button>\n <button type=\"button\" \n class=\"btn btn-primary\" \n style=\"width: 40px;\" \n title=\"Open details\" \n onclick=\"location.href = \\'' . $this->url . '\\';\">\n <i class=\"fa fa-external-link-square-alt\"></i>\n </button>\n </div>\n </td>\n </tr>\n ';\n }",
"function getPopup($id, $attr, $url)\n{\n\t\tif ($attr == '1') $attr = '800x600';\n\t\t@list($size,$attr) = explode(' ', $attr);\n\t\tswitch ($attr) {\n\t\tcase 'full': $poppar='toolbar=1,location=1,menubar=1,scrollbars=1,resizable=1';\n\t\tbreak;\n\t\tcase 'min': $poppar = 'resizable=1';\n\t\tbreak;\n\t\tcase 'none': $poppar = '';\n\t\tbreak;\n\t\tcase 'max': default: $poppar = 'scrollbars=1,resizable=1';\n\t\tbreak;\n\t\t}\n\n\t\tif ($size) {\n\t\t\tlist($w, $h, $l, $t) = sscanf($size, \"%dx%d+%d+%d\");\n\t\t\tif (!$l) $l = \"'+((window.screen.width-$w)/2)+'\";\n\t\t\tif (!$t) $t = \"'+((window.screen.height-$h)/2)+'\";\n\t\t\t$poppar .= ($poppar?',':'') . \"left=$l,top=$t,width=$w,height=$h\";\n\t\t}\n\n\t\treturn \"javascript:void(win_$id=window.open('$url','win_$id','$poppar'));win_$id.focus()\";\n}",
"public function getEnemyString() {\n if($this->combatantAID == CD()->id) {\n return \"combatantB\";\n } else {\n return \"combatantA\";\n }\n }",
"function go_j($where,$how)\n{\n //if -1 -1 it means it just wants to show the messages to the user, not move the hero\n if($where!=\"-1\" && $how!=\"-1\") {\n\n go_action($where, $how);\n }\n $env_str = \"\";\n $env_str .= nl2br(\"Current location: \" . $_SESSION['world'][$_SESSION[\"room\"]]['name'] .\"\\n\");\n foreach ($_SESSION['world'][$_SESSION[\"room\"]][\"outs\"] as $key => $value) {\n $env_str .= \"<button onclick=\\\"go_room(\";\n $env_str .= $value[0];\n $env_str .= \",\";\n $env_str .= \"'$key\";\n $env_str .= \"')\\\">Take $key and \";\n $env_str .= $_SESSION['world'][$value[0]]['action'];\n $env_str .= \"</button>\";\n $env_str .= nl2br(\"\\n\");\n }\n echo $env_str;\n}",
"function scorm_get_popup_display_array(){\n return array(0 => get_string('iframe', 'scorm'),\n 1 => get_string('popup', 'scorm'));\n}",
"function cjpopups_message($type, $message, $close = null){\n\t$close_btn = '';\n\tif(!is_null($close)){\n\t\t$close_btn = '<a class=\"alert-close\" href=\"#close\" title=\"\"><i class=\"cj-icon icon-remove\"></i></a>';\n\t}\n\treturn '<div class=\"cj-alert rounded alert-'.$type.'\"><div class=\"cj-alert-content\">'.__($message, 'cjpopups').$close_btn.'</div></div>';\n}",
"public function show()\n {\n //\n return 'Rosie can i have a dance';\n }",
"function writeHelpLink($indent, $helptext)\n{\n echo($indent.'<a class=\"help\" onmouseover=\"nhpup.popup(\\''.$helptext.'\\')\" title=\"\"> </a>'.\"\\n\");\n}",
"function affiche_image_armure($image_armures, $nom_armure, $defense_armure, $description_armures,\n\t\t\t\t\t\t\t $BonusPerception_armures, $bonusPv_armure){\n\t\t\t\t\t\t\t\t \n\t$description_arme = $description_armures;\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t \n\techo \"<td width=50 height=50 align=center>\n\t\t\t<img tabindex='0' src='../images/armures/$image_armures' width=50 height=50 \n\t\t\t\t\tdata-toggle='popover' data-trigger='focus' data-html='true' data-placement='bottom'\n\t\t\t\t\ttitle=\\\"<b>$nom_armure</b>\\\" \";\n\techo \"\t\t\tdata-content=\\\"\t<div><img src=../images/armures/$image_armures></div>\n\t\t\t\t\t\t\t\t\t<div><u>Defense :</u> $defense_armure</div>\";\n\t\t\t if($BonusPerception_armures){\n\t\t\t\techo \"<div><u>Bonus Perception :</u> $BonusPerception_armures</div>\";\n\t\t\t }\n\t\t\t if($bonusPv_armure){\n\t\t\t\techo \"<div><u>bonus Pv :</u> $bonusPv_armure</div>\";\n\t\t\t }\n\t\t\t echo \"<div><b>Description</b></div><div>$description_armures</div>\\\" >\";\n}",
"function cpl_wra() {\n\t//You May NOT Edit It!\n\techo \"<img src='http://www.auburnflame.com/brk1.gif'>\";\n}",
"function show_profile($args) {\n $options = get_option(\"rp_options\");\n if (!is_array( $options ))\n {\n $options = array(\n 'title' => 'My Character',\n 'name' => 'Stealth_Ltd',\n\t\t\t'data' => $data\n ); \n }\n extract($args);\n echo $before_widget;\n echo $before_title . $options['title'] . $after_title;\n //* The fun *//\n $player = $options['data'];\n $stats = str_replace(\"-1\", \"Unranked\", $player);\n $stats = explode(\"\\n\",$stats);\n $skill['Overall']= explode(\",\",$stats[0]);\n $skill['Attack'] = explode(\",\",$stats[1]);\n $skill['Defence'] = explode(\",\",$stats[2]);\n $skill['Strength'] = explode(\",\",$stats[3]);\n $skill['Hitpoints'] = explode(\",\",$stats[4]);\n $skill['Range'] = explode(\",\",$stats[5]);\n $skill['Prayer'] = explode(\",\",$stats[6]);\n $skill['Magic'] = explode(\",\",$stats[7]);\n $skill['Cooking']= explode(\",\",$stats[8]);\n $skill['Woodcutting']= explode(\",\",$stats[9]);\n $skill['Flretching']= explode(\",\",$stats[10]);\n $skill['Fishing']= explode(\",\",$stats[11]);\n $skill['Fire Making']= explode(\",\",$stats[12]);\n $skill['Crafting']= explode(\",\",$stats[13]);\n $skill['Smithing']= explode(\",\",$stats[14]);\n $skill['Mining']= explode(\",\",$stats[15]);\n $skill['Herblore']= explode(\",\",$stats[16]);\n $skill['Agility']= explode(\",\",$stats[17]);\n $skill['Thieving']= explode(\",\",$stats[18]);\n $skill['Slayer']= explode(\",\",$stats[19]);\n $skill['Faring']= explode(\",\",$stats[20]);\n $skill['Runecrafting']= explode(\",\",$stats[21]);\n $skill['Hunter']= explode(\",\",$stats[22]);\n $skill['Construction']= explode(\",\",$stats[23]);\n $skill['Summoning']= explode(\",\",$stats[24]);\n $skill['Duel']= explode(\",\",$stats[25]);\n $skill['Bounty']= explode(\",\",$stats[26]);\n $skill['Rogue']= explode(\",\",$stats[27]);\n $skill['Fist of guthix']= explode(\",\",$stats[28]);\n echo '<table style=\"width: 100%; text-align: left;\">';\n foreach($skill as $key => $value){\n echo '<tr><td style=\"width: 49%;\">'. $key .'</td><td style=\"width: 49%; text-align: right;\">'. $value[1] .'</td></tr>';\n }\n echo '</table>';\n echo $after_widget;\n}",
"public function printTictactoe(): string\n {\n return $this->printBoard($this->board);\n }",
"public function getActionMessage() {\n\n\t\t$message = '';\n\n\t\tswitch ( $this->getLastAction() ) {\n\t\t\tcase self::ACTION_SAVE:\n\t\t\t\t$message = '<div id=\"message\" class=\"updated fade\" style=\"width:450px\"><p><strong>Settings have been saved.</strong></p></div>';\n\t\t\t\tbreak;\n\t\t\tcase self::ACTION_RESET:\n\t\t\t\t$message = '<div id=\"message\" class=\"updated fade\" style=\"width:450px\"><p><strong>Settings have been reset.</strong></p></div>';\n\t\t\t\tbreak;\n\t\t\tdefault :\n\t\t\t\t$message = '';\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $message;\n\t}",
"function popup_elements()\n\t\t{\n\t\t\t\n\t\t}",
"final public function unitAsStringWithTooltip() {\n\t\treturn Ajax::tooltip($this->unitAsString(), $this->unitExplanation());\n\t}",
"public function __toString() {\n\t\t$ret = $this->getName() . \" [\" . $this->getGold() . \"]\";\n\n\t\tif ($this->getDoneTurn()) {\n\t\t\t$ret .= \" - DONE\";\n\t\t}\n\n\t\t$ret .= \"\\n\";\n\t\n\t\t$ret .= $this->getCardHand() . \"\\n\";\n\t\t$ret .= $this->getCardPublicStand() . \"\\n\";\n\t\t$ret .= $this->getCardHiddenStand() . \"\\n\";\n\n\t\tif (count($this->getCardAux()) > 0) {\n\t\t\t$ret .= $this->getCardAux() . \"\\n\";\n\t\t}\n\n\t\treturn $ret;\n\t}",
"protected function _toHtml()\n {\n if (!$this->_canBeShown()) {\n return '';\n }\n\n return parent::_toHtml();\n }",
"public function message()\n {\n return __('Hit / stand is not allowed.');\n }",
"public function mover()\n {\n return \"Voa e \" . parent::mover();\n }",
"private function buildHelpButton() {\n\t\t$helpButton = new OOUI\\ButtonInputWidget( [\n\t\t\t'icon' => 'help',\n\t\t\t'framed' => false,\n\t\t\t'name' => 'mw-twocolconflict-show-help',\n\t\t\t'title' => $this->getContext()->msg( 'twoColConflict-show-help-tooltip' )->text(),\n\t\t\t'classes' => [ 'mw-twocolconflict-show-help' ]\n\t\t] );\n\n\t\t$out = '<div class=\"mw-twocolconflict-show-help-container\">';\n\t\t$out .= $helpButton;\n\t\t$out .= '</div>';\n\n\t\treturn $out;\n\t}",
"function generate_tooltip($caller_id, $layer_html, $tip_title)\n{\n\t$tiphtml = \"<div id='\".$caller_id.\"_box' style='display:none;position:absolute;'>\".generate_tooltip_frame()\n\t.\"<table style='background-color:#FFFFFF;'> \n\t\n\t\t<tr>\n\t\t<td style='font-size: 18px;'><b>\".$tip_title.\"</b></td>\n\t\t<td align='right' valign='top'><a href=\\\"javascript:hideTipDetails('\".$caller_id.\"');\\\"><img src='\".IMAGE_URL.\"delete_icon.png' border='0'></a></td>\n\t\t</tr>\n\t\t\n\t\t<tr>\n\t\t<td colspan='2'>\".$layer_html.\"</td>\n\t\t</tr>\n\t\t</table>\".generate_tooltip_frame('end').\"</div>\";\n\t\t\n\treturn $tiphtml;\n}",
"public function getCrewCode();",
"function printFull($name, $difficulty, $topic1, $topic2)\n{\n echo '\n <a href=\"' . preg_replace('/[^a-z\\d]/i', '', $name) . '/\" class=\"bgouter\">\n <!--There are special square icons for committees that are stored at /media/icons/committees/-->\n <div style=\"background-image: url(/media/icons/committees/' . strtolower($name) . '.jpg);background-size: cover\">\n <div class=\"w outer\">\n <div class=\"hoverborder\" style=\"width:260px; padding: 10px;height:260px;\">\n <h1 style=\"font-size: ';\n //I had to make the font size smaller for constitution because it overflowed\n if ($name != \"constitution\") echo '46'; else echo '28';\n echo 'px\">' . $name . '</h1>\n <h6>' . printCommittee($difficulty) . '</h6>\n <div class=\"topic\">\n <p>' . $topic1 . '</p>\n <p>' . $topic2 . '</p>\n </div>\n </div>\n </div>\n </div>\n <img src=\"/media/icons/committees/white/' . strtolower($name) . '.png\" class=\"bgouterpic\">\n </a>\n ';\n}",
"public static function group_link_popup() {\n $r = '<div id=\"group-link-popup-container\" style=\"display: none\"><div id=\"group-link-popup\">';\n $r .= '<p>' . lang::get('Send this link to other people to allow them to view or join this group.') . '</p>';\n $r .= '<textarea style=\"width: 100%;\" id=\"share-link\" rows=\"4\"></textarea>';\n $r .= '</div></div>';\n return $r;\n }",
"public function moodupconfirmAction()\n {\n $uid = $this->_USER_ID;\n $floorId = $this->getParam(\"CF_floorid\");\n $itemId = $this->getParam(\"CF_itemid\");\n $storeType = $this->getParam(\"CF_storeType\");\n $isMoodToOther = $this->getParam(\"CF_isother\");\n\n if ($isMoodToOther) {\n if (isset($_SESSION['friend_name'])) {\n $targetName = $_SESSION['friend_name'];\n }\n\n $this->view->targetName = $targetName;\n }\n\n //get mood up chairs\n $chairList = $this->getChairList($uid, $floorId);\n\n //chairs picture name, haircut or cake or spa\n $picName = Mbll_Tower_Common::getChairPicName($storeType);\n\n $this->view->chairList1 = $chairList['chairList1'];\n $this->view->chairList2 = $chairList['chairList2'];\n $this->view->chairList3 = $chairList['chairList3'];\n $this->view->floorId = $floorId;\n $this->view->itemId = $itemId;\n $this->view->userInfo = $this->_user;\n $this->view->storeType = $storeType;\n $this->view->isToOther = $isMoodToOther;\n $this->view->picName = $picName;\n\n $this->render();\n\n }",
"public function message()\n {\n return 'The product has an active lot. Close the lot or choose another product.';\n }",
"protected static function get_interaction_descriptions() {\n return array(\n 'Shadow' => 'Dice with both Shadow and Stinger skills can singly attack with any value from the min to ' .\n 'the max of the die (making a shadow attack against a die whose value is greater than or ' .\n 'equal to their own, or a skill attack against a die whose value is lower than or equal to ' .\n 'their own)',\n );\n }",
"function printAsideProfilo($img_profilo) {\r\n \r\n $img_profilo = '../' . $img_profilo;\r\n \r\n echo '<div class=\"profilo-img-container\">' .\r\n '<img onclick=\"showModal(' . \"'modifica-immagine-profilo','post-container'\" . ')\"' .\r\n 'class=\"img-profilo-dim pointer\" src=\"' . $img_profilo .'\"' .\r\n 'alt=\"Immagine del profilo\"/>' . \r\n '<div class=\"aside-testo\">' . $_SESSION['nickname'] . '</div>' .\r\n '</div>';\r\n}",
"public static function print_editor_title_markup($robot_info, $ability_info, $print_options = array()){\n // Require the function file\n $temp_ability_title = '';\n require(MMRPG_CONFIG_ROOTDIR.'data/classes/ability_editor-title-markup.php');\n // Return the generated option markup\n return $temp_ability_title;\n }",
"public function get_bonus_string() {\n\t\tswitch ($this->_bonus) {\n\t\t\tcase static::CELL_BONUS_ST:\n\t\t\treturn \"ST\";\n\n\t\t\tcase static::CELL_BONUS_2W:\n\t\t\treturn \"2W\";\n\n\t\t\tcase static::CELL_BONUS_3W:\n\t\t\treturn \"3W\";\n\n\t\t\tcase static::CELL_BONUS_2L:\n\t\t\treturn \"2L\";\n\n\t\t\tcase static::CELL_BONUS_3L:\n\t\t\treturn \"3L\";\n\t\t}\n\n\t\treturn \"\";\n\t}",
"function welcome_popup($uid=false){\r\n\r\nob_start();\r\n?>\r\n<div class=\"pull-up\">\r\n<h2>What do you like, choose a few hobbies</h2>\r\n<p>Discover people worldwide who share similar interests with you</p>\r\n</div>\r\n<div class=\"hobbies-wrap\">\r\n<div class=\"hobbies-container fl\">\r\n<?php\r\n$this->hobbies_stack();\r\n?>\r\n</div>\r\n<div class=\"fr pp-similar-hobbies-wrap\"></div>\r\n<div class=\"clear\"></div>\r\n</div>\r\n<p><input type=\"button\" class=\"btn-special-blue btn-special-blue-primary\" id=\"save-hobbies-btn\" value=\"Save\"/></p>\r\n<?php\r\nreturn ob_get_clean();\r\n}",
"public function Render()\n {\n return \"<span class='\".$this->Icone.\"' title='\".$this->Title.\"' onclick=\".$this->OnClick.\" > </span>\";\n }",
"public function __toString()\n\t{\n\t\t// Open Modal containers\n\t\t$html = '<div id=\"'.$this->name.'\"'.HTML::attributes($this->attributes).'>';\n\n\t\t$html .= '<div class=\"modal-header\">';\n\t\tif ($this->autoclose) {\n\t\t\t$html .= '<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-hidden=\"true\">×</button>';\n\t\t}\n\t\tif ($this->headers)\n\t\t\t$html .= implode(PHP_EOL, $this->headers);\n\t\t$html .= '</div>';\n\n\t\t$html .= '<div class=\"modal-body\">';\n\t\tif ($this->bodies)\n\t\t\t$html .= implode(PHP_EOL, $this->bodies);\n\t\t$html .= '</div>';\n\n\t\t$hasfooter = true;\n\t\t$footerdiv = '<div class=\"modal-footer\">';\n\t\tif ($this->footers)\n\t\t\t$footerdiv .= implode(PHP_EOL, $this->footers);\n\t\telse if ($this->autofooter)\n\t\t\t\t$footerdiv .= '<button class=\"btn\" data-dismiss=\"modal\" aria-hidden=\"true\">Close</button>';\n\t\telse\n\t\t\t$hasfooter = false;\n\t\t$footerdiv .= '</div>';\n\t\t\n\t\tif ($hasfooter) $html .= $footerdiv;\n\n\t\t// Close Modal containers\n\t\t$html .= '</div>';\n\n\t\treturn $html;\n\t}",
"function atkPopup($target,$params,$winName,$width,$height,$scroll='no',$resize='no')\n{\n\t$url = session_url(\"include.php?file=\".$target.\"&\".$params, SESSION_NESTED);\n\t$popupurl =\"javascript:NewWindow('\".$url.\"','\".$winName.\"',\".$height.\",\".$width.\",'\".$scroll.\"','\".$resize.\"')\";\n\treturn $popupurl;\n}",
"public abstract function getDatasetFilterPopupHtml():string;",
"function maya_popover( $atts, $content = null ) {\n\t//get the attributes\n\t$atts = shortcode_atts(\n\t\tarray(\n\t\t\t'placement' => 'top',\n\t\t\t'title' => '',\n\t\t\t'trigger' => 'click',\n\t\t\t'content' => '',\n\t\t),\n\t\t$atts,\n\t\t'popover'\n\t);\n\t//return HTML\n\treturn '<span class=\"maya-popover\" data-toggle=\"popover\" data-placement=\"' . $atts['placement'] . '\" title=\"' . $atts['title'] . '\" data-trigger=\"' . $atts['trigger'] . '\" data-content=\"' . $atts['content'] . '\">' . $content . '</span>';\n}",
"private function decideVictory()\n {\n echo 'Jugador ';\n if (!$this->human->isOver() &&\n (\n ($this->human->getPoints() == $this->machine->getPoints() && $this->human->getPoints() != PLAYER_WIN_POINTS)\n || $this->human->getPoints() > $this->machine->getPoints()\n || $this->machine->isOver()\n )\n ) echo 'Humano';\n else echo 'Máquina';\n echo ' gana la partida. ';\n }",
"function formatForBot($full_name, $party, $entered_house, $constituency, $position = null, $mp_senator)\r\n\t{\r\n\t\t$formatted = $full_name . \" is a member of the \" . $party . \". Joining Parliament for the first time in \" . $entered_house . \" they are now seated as the \". $mp_senator. \" for \". $constituency. \".\";\r\n\t\t\r\n\t\tif($position != null)\r\n\t\t\t$formatted .= \" \".$position;\r\n\t\t\r\n\t\treturn $formatted;\r\n\t}",
"public function getFG() {\n\t\t\treturn \"<p>FG Pct: \".$this->fg.\"</p>\";\n\t\t}",
"function charStage($FullName, $PlayerName, $StatusID, $aarStatus, $str=''){\n\t#if no names, don't show\n\t#if only one name, eliminate the comma\n\n\t$FullName = ltrim($FullName, ', ');\n\t$FullName = rtrim($FullName, ', ');\n\n\t$stage = $aarStatus[$StatusID];\n\n\tif(getPrivies() > 0){\n\t\t$stage = ($stage <= 2 ? $stage : $stage='');\n\n\t\t#$str = 'Summers, Alex (stage)';\n\t}else{\n\t\t#simplify stage for non-members\n\t\t$stage = ( ($stage == 0) ? $stage='available for adoption' : $stage); #Zero shows as open\n\t\t$stage = ((($stage <= 1) && ($stage >= 4)) ? $stage='available for adoption' : $stage);\n\t\t$stage = ( ($stage <= 5) ? $stage='not available for adoption' : $stage);\n\n\t\t#$str = 'Summers, Alex (taken)';\n\t}\n\n\t#dumpDie($FullName);\n\tif ($FullName != ''){\n\t\t$title='full name';\n\n\t}else{\n\t\t$title='handler';\n\t}\n\n\t$str .= '<div class=\"row hoverHighlight\">\n\t\t\t<div class=\"col-sm-3 text-right text-muted\"><p class=\"text-right\"><strong>' . ucwords($title) . ':</strong> </p>\n\t\t</div>\n\t\t<div class=\"col-sm-9\">\n\t\t\t<p> ' . $FullName . ' <small class=\"text-muted\">(' . $stage . ')</small></p>\n\t\t</div>\n\t</div>';\n\n\treturn $str;\n\n}",
"function printFull()\n {\n echo'<div class=\"box\" style=\"background-image: url(\\'';\n if($this->img!=\"\")echo $this->img;\n else echo(\"https://$_SERVER[HTTP_HOST]/media/favicons/placeholder.jpg\");\n echo'\\');\">\n <div class=\"box-overlay\">\n <div>\n <h6>'.$this->name.'</h6>';\n if($this->position!=\"\")echo'<h5 class=\"w\" style=\"margin-bottom:3px;margin-top: 3px;\">'.$this->position.'</h5>';\n if($this->email!=\"\")echo'<span><a href=\"mailto:'.$this->email.'@pacificmun.com\">'.$this->email.'@pacificmun.com</a></span>';\n echo'</div><p>'.$this->bio.'</p>\n </div></div>';\n }",
"public function mappedPreview(): string\n {\n if (empty($this->child)) {\n return '';\n }\n $campaign = CampaignLocalization::getCampaign();\n if ($campaign->boosted()) {\n $boostedTooltip = strip_tags($this->tooltip);\n if (!empty(trim($boostedTooltip))) {\n $text = Mentions::mapEntity($this);\n return (string) strip_tags($text);\n }\n }\n $text = Str::limit($this->child->entry(), 500);\n return (string) strip_tags($text);\n }",
"public function popupCollision($value) {\n return $this->setProperty('popupCollision', $value);\n }",
"function display_graphic($piece)\n{\n}",
"function popUpWindow($msg = '', $data = array())\n{\n$module = new sociallogin();\n$style = 'style=\"padding:10px 11px 10px 30px;overflow-y:auto;height:auto;\"';\n$left = 'left:44%';\nif (_PS_VERSION_ >= 1.6)\n\t$left = 'left:50%;';\n$top_style = 'style=top:50%;'.$left.'';\n$profilefield = unserialize(Configuration::get('profilefield'));\nif (empty($profilefield))\n\t$profilefield[] = '3';\nif (Configuration::get('user_require_field') == '1')\n{\n\t$top_style_value = 50;\n\t$count_profile_field = count($profilefield);\n\tfor ($i = 1; $i < $count_profile_field - 1; $i++)\n\t\t$top_style_value -= 5;\n\t$top_style = 'style=top:'.$top_style_value.'%;'.$left.'';\n\t$style = 'style=\"padding:10px 11px 10px 30px;\"';\n}\n$profilefield = implode(';', $profilefield);\n$context = Context::getContext();\n$context->controller->addCSS(__PS_BASE_URI__.'modules/sociallogin/css/sociallogin_style.css');\n$context->controller->addjquery();\n$context->controller->addJS(__PS_BASE_URI__.'modules/sociallogin/js/popupjs.js');\n$cookie = $context->cookie;\n$cookie->sl_hidden = microtime();\n?>\n<div id=\"fade\" class=\"LoginRadius_overlay\">\n<div id=\"popupouter\" <?php echo $top_style; ?>>\n<div id=\"popupinner\" <?php echo $style; ?>>\n<div id=\"textmatter\"><strong>\n\t\t<?php\n\t\tif ($msg == '')\n\t\t{\n\t\t\t//echo \"Please fill the following details to complete the registration\";\n\t\t\t$show_msg = Configuration::get('POPUP_TITLE');\n\t\t\techo $msg = (!empty($show_msg) ? $show_msg : $module->l('Please fill the following details to complete the registration', 'sociallogin_functions'));\n\t\t}\n\t\telse\n\t\t\techo $msg;\n\t\t?>\n\t</strong></div>\n<form method=\"post\" name=\"validfrm\" id=\"validfrm\" action=\"\" onsubmit=\"return popupvalidation();\">\n<?php\n$html = '';\nif (Configuration::get('user_require_field') == '1')\n{\n\tif (strpos($profilefield, '1') !== false && (empty($data['fname']) || isset($data['firstname'])))\n\t{\n\t\t$html .= '<div>\n\t\t\t<span class=\"spantxt\">'.$module->l('First Name', 'sociallogin_functions').'</span>\n\t\t\t<input type=\"text\" name=\"SL_FNAME\" id=\"SL_FNAME\" placeholder=\"FirstName\"\n\t\t\tvalue= \"'.((Tools::getValue('SL_FNAME')) ? htmlspecialchars(Tools::getValue('SL_FNAME')) : '').'\" class=\"inputtxt\" />\n\t\t\t</div>';\n\t}\n\tif (strpos($profilefield, '2') !== false && (empty($data['lname']) || isset($data['lastname'])))\n\t{\n\t\t$html .= '<div>\n\t\t\t<span class=\"spantxt\">'.$module->l('Last Name', 'sociallogin_functions').'</span>\n\t\t\t<input type=\"text\" name=\"SL_LNAME\" id=\"SL_LNAME\" placeholder=\"LastName\"\n\t\t\tvalue= \"'.((Tools::getValue('SL_LNAME')) ? htmlspecialchars(Tools::getValue('SL_LNAME')) : '').'\" class=\"inputtxt\" />\n\t\t\t</div>';\n\t}\n}\nif (empty($data['email']) || $data['send_verification_email'] == 'yes')\n{\n\t$width = '';\n\tif (Configuration::get('user_require_field') != '1' || (Configuration::get('user_require_field') == '1' && count(Configuration::get('profilefield')) == 0))\n\t\t$width = 'width:60px;';\n\t$html .= '<div><span class=\"spantxt\" style='.$width.'>'.$module->l('Email', 'sociallogin_functions').'</span>\n\t\t\t<input type=\"text\" name=\"SL_EMAIL\" id=\"SL_EMAIL\" placeholder=\"Email\"\n\t\t\tvalue= \"'.((Tools::getValue('SL_EMAIL')) ? htmlspecialchars(Tools::getValue('SL_EMAIL')) : '').'\" class=\"inputtxt\" />\n\t\t\t</div>';\n}\nif (Configuration::get('user_require_field') == '1')\n{\n\tif (strpos($profilefield, '6') !== false)\n\t{\n\t\t$html .= '<div><span class=\"spantxt\">'.$module->l('Address', 'sociallogin_functions').'</span>\n\t\t\t<input type=\"text\" name=\"SL_ADDRESS\" id=\"SL_ADDRESS\" placeholder=\"Address\"\n\t\t\tvalue= \"'.((Tools::getValue('SL_ADDRESS')) ? htmlspecialchars(Tools::getValue('SL_ADDRESS')) : $data['address']).'\" class=\"inputtxt\" />\n\t\t\t</div>';\n\t}\n\tif (strpos($profilefield, '8') !== false)\n\t{\n\t\t$html .= '<div><span class=\"spantxt\">'.$module->l('ZIP code', 'sociallogin_functions').'</span>\n\t\t\t<input type=\"text\" name=\"SL_ZIP_CODE\" id=\"SL_ZIP_CODE\" placeholder=\"Zip Code\"\n\t\t\tvalue= \"'.((Tools::getValue('SL_ZIP_CODE')) ? htmlspecialchars(Tools::getValue('SL_ZIP_CODE')) : '').'\" class=\"inputtxt\" />\n\t\t\t</div>';\n\t}\n\tif (strpos($profilefield, '4') !== false)\n\t{\n\t\t$html .= '<div>\n\t\t\t<span class=\"spantxt\">'.$module->l('City', 'sociallogin_functions').'</span><input type=\"text\" name=\"SL_CITY\" id=\"SL_CITY\" placeholder=\"City\"\n\t\t\tvalue= \"'.((Tools::getValue('SL_CITY')) ? htmlspecialchars(Tools::getValue('SL_CITY')) : $data['city']).'\" class=\"inputtxt\" />\n\t\t\t</div>';\n\t}\n\t$countries = Db::getInstance()->executeS('\n\t\tSELECT *\n\t\tFROM '._DB_PREFIX_.'country c WHERE c.active =1');\n\tif (strpos($profilefield, '3') !== false)\n\t{\n\t\tif (is_array($countries) && !empty($countries))\n\t\t{\n\t\t\t$html .= '<div id=\"location-country-div\">\n\t\t\t\t\t<span class=\"spantxt\">'.$module->l('Country', 'sociallogin_functions').'</span>\n\t\t\t\t\t<select id=\"location-country\" name=\"location_country\" class=\"inputtxt\"><option value=\"0\">None</option>';\n\t\t\tforeach ($countries as $country)\n\t\t\t{\n\t\t\t\t$country_name = new Country($country['id_country']);\n\t\t\t\t$html .= '<option value=\"'.($country['iso_code']).'\"'.((Tools::getValue('location_country'))\n\t\t\t\t\t&& (Tools::getValue('location_country') == $country['iso_code']) ? ' selected=\"selected\"' : '').'>\n\t\t\t\t\t'.$country_name->name['1'].'</option>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '</select></div>';\n\t\t}\n\t}\n\t$value = true;\n\tif (Tools::getValue('location_country') && strpos($profilefield, '3') !== false)\n\t{\n\t\t$country = new Country(Tools::getValue('location_country'));\n\t\t$value = $country->contains_states;\n\t}\n\tif (strpos($profilefield, '3') !== false && $value)\n\t{\n\t\t$html .= '<div id=\"location-state-div\" style=\"display:none;\">\n\t\t<input id=\"location-state\" type=\"text\" name=\"location-state\" value=\"empty\" />\n\t\t</div>';\n\t}\n\telseif (strpos($profilefield, '3') !== false)\n\t{\n\t\t$country_id = Db::getInstance()->executeS('\n\t\t\tSELECT *\n\t\t\tFROM '._DB_PREFIX_.'country c WHERE c.iso_code= \"'.Tools::getValue('location_country').'\"');\n\t\t$states = State::getStatesByIdCountry($country_id['0']['id_country']);\n\t\tif (is_array($states))\n\t\t{\n\t\t\t$style = '';\n\t\t\tif (empty($states))\n\t\t\t\t$style = 'style=\"display:none;\"';\n\t\t\t$html .= '<div id=\"location-state-div\" '.$style.'>\n\t\t\t\t<span class=\"spantxt\">'.$module->l('State', 'sociallogin_functions').'</span>\n\t\t\t\t<select id=\"location-state\" name=\"location-state\" class=\"inputtxt\">';\n\t\t\tif (empty($states))\n\t\t\t\t$html .= '<option value=\"empty\">None</option>';\n\t\t\tforeach ($states as $state)\n\t\t\t{\n\t\t\t\t$state_name = new State($state['id_state']);\n\t\t\t\t$html .= '<option value=\"'.($state['iso_code']).'\"'.(Tools::getValue('location-state')\n\t\t\t\t\t&& (Tools::getValue('location-state') == $state['iso_code']) ? ' selected=\"selected\"' : '').'>'.$state_name->name.'</option>'.\"\\n\";\n\t\t\t}\n\t\t\t$html .= '</select></div>';\n\t\t}\n\t}\n\tif (strpos($profilefield, '5') !== false)\n\t{\n\t\t$html .= '<div><span class=\"spantxt\">'.$module->l('Mobile Number', 'sociallogin_functions').'</span>\n\t\t\t<input type=\"text\" name=\"SL_PHONE\" id=\"SL_PHONE\" placeholder=\"Mobile Number\"\n\t\t\tvalue= \"'.((Tools::getValue('SL_PHONE')) ? htmlspecialchars(Tools::getValue('SL_PHONE')) : $data['phonenumber']).'\" class=\"inputtxt\" />\n\t\t\t</div>';\n\t}\n\n\n\tif (strpos($profilefield, '7') !== false)\n\t{\n\t\t$html .= '<div><span class=\"spantxt\">'.$module->l('Address Title').'</span><input type=\"text\" name=\"SL_ADDRESS_ALIAS\"\n\t\tid=\"SL_ADDRESS_ALIAS\" placeholder=\"Please assign an address title for future reference\"\n\t\tvalue= \"'.((Tools::getValue('SL_ADDRESS_ALIAS')) ? htmlspecialchars(Tools::getValue('SL_ADDRESS_ALIAS')) : '').'\" class=\"inputtxt\" />\n\t\t</div>';\n\t}\n}\nif ($html == '')\n\treturn 'noshowpopup';\n$html .= '<div><input type=\"hidden\" name=\"hidden_val\" value=\"'.$cookie->sl_hidden.'\" />\n\t<input type=\"submit\" id=\"LoginRadius\" name=\"LoginRadius\" value=\"'.$module->l('Submit', 'sociallogin_functions').'\"\n\tclass=\"inputbutton\">\n\t<input type=\"button\" value=\"'.$module->l('Cancel', 'sociallogin_functions').'\"\n\tclass=\"inputbutton\" onclick=\"window.location.href=window.location.href;\" />\n\t</div></div>\n\t</form>\n\t</div>\n\t</div>\n\t</div>';\necho $html;\n}",
"function aurora_borealis() {\n\t$chosen = steamed_hams_get_lyric();\n\techo \"<p id='seymour'>$chosen</p>\";\n}",
"public function fullTooltip()\n {\n if (!$this->child) {\n return null;\n }\n\n $avatar = $text = null;\n\n if ($this->campaign->boosted()) {\n $boostedTooltip = strip_tags($this->tooltip);\n if (!empty(trim($boostedTooltip))) {\n $text = Mentions::mapEntity($this);\n $text = strip_tags($text);\n }\n if ($this->campaign->tooltip_image) {\n $avatar = '<div class=\\'entity-image\\' style=\\'background-image: url(' . $this->child->getImageUrl(60) . ');\\'></div>';\n }\n }\n if (empty($text)) {\n $text = Str::limit($this->child->entry(), 500);\n $text = strip_tags($text);\n }\n\n $name = '<span class=\"entity-name\">' . $this->child->tooltipName() . '</span>';\n $subtitle = $this->child->tooltipSubtitle();\n if (!empty($subtitle)) {\n $subtitle = \"<span class='entity-subtitle'>$subtitle</span>\";\n }\n $text = $this->child->tooltipAddTags($text, $this->tags);\n\n return \"<div class='entity-header'>$avatar<div class='entity-names'>\" . $name . $subtitle . '</div></div>' . $text;\n }",
"public function onRun(){\n\n\t\t// if($_SERVER['REDIRECT_URL'] == '/boletim-especial-2019') return;\n\n\t\t// if(!isset($_GET['teste'])) return;\n\n\t\t$this->popup = $this->getPopup();\n\n\t\tif($this->popup && isset($this->popup[0])) $this->popup=$this->popup[0];\n\t\telse return;\n\n\t\t// $name='banner_float_'.serialize($this->popup->attributes); // $name=preg_replace(\"/[^a-zA-Z0-9]/\", \"\", $name);\n\t\t// return;\n\t\tif(!isset($this->popup->attributes) && !isset($this->popup->attributes['image'])) return;\n\t\t$name='banner_popup_diveramkt'.str_replace(array('/','.'), array('-',''), $this->popup->attributes['image']);\n\t\tif(isset($this->popup->attributes) && isset($this->popup->attributes['dias_oculto']) && $this->popup->attributes['dias_oculto'] > 0){\n\n\t\t\tif(Session::get($name)) {\n\n\t\t\t\t$horas_dia=$this->popup->attributes['dias_oculto']*24;\n\n\t\t\t\t$value = Session::get($name);\n\t\t\t\t$veri=$this->horas_datas($value, date('Y-m-d H:i:s'));\n\t\t\t\t$horas=$veri->horas;\n\t\t\t\tif($horas >= $horas_dia) Session::put($name, date('Y-m-d H:i:s'));\n\t\t\t\telse $this->popup='';\n\n\t\t\t}else Session::put($name, date('Y-m-d H:i:s'));\n\n\t\t\t// $this->popup->attributes['dias_oculto']\n\t\t\t// $dias=$this->popup->attributes['dias_oculto']*(24*60);\n\t\t\t// if (Cache::has($name)) {\n\t\t\t// \t$veri=Cache::get($name);\n\t\t\t// \t$this->popup='';\n\t\t\t// }else{\n\t\t\t// \tCache::pull($name);\n\t\t\t// \tCache::add($name, 'carregado', $dias);\n\t\t\t// }\n\n\t\t// }elseif(Cache::has($name)) Cache::forget($name);\n\t\t// }else Cache::forget($name);\n\t\t}else Session::forget($name);\n\n\n\t\tif(isset($this->popup->attributes) && str_replace(' ','',$this->popup->attributes['link']) != ''){\n\t\t\t$this->popup->attributes['target']='_parent';\n\t\t\t\n\t\t\tif(isset($this->popup->attributes['tipo_link']) && $this->popup->attributes['tipo_link'] == 'whatsapp'){\n\t\t\t\t$this->popup->attributes['link']=$this->link_whats($this->popup->attributes['link']);\n\t\t\t}\n\n\t\t\t$url=$this->popup->attributes['link'];\n\t\t\tif(!strpos(\"[\".$url.\"]\", \"http://\") && !strpos(\"[\".$url.\"]\", \"https://\")) $url='http://'.$url;\n\t\t\t$this->popup->attributes['link']=$url;\n\n\t\t\tif(!strpos(\"[\".$this->popup->attributes['link'].\"]\", $_SERVER['HTTP_HOST'])) $this->popup->attributes['target']='_blank';\n\n\t\t}\n\t\t\n\t}",
"function make_popup($var, $resources) {\n\t\t\n\t\t$str = \"<select name=$var>\";\n\t\tforeach (array_keys($resources) as $key) {\n\t\t\t$str .= \"<option value=$key>$key</option>\\n\";\n\t\t}\n\t\treturn $str . \"</select>\\n\";\n}",
"public function toString()\n\t{\n\t\treturn \"Customer on checkout page - Shipping address popup - created address is shown on [Shipping address] and [Billing address] section\";\n\t}",
"function battlelog() {\n $content = null;\n $content .= '\n <div class=\"battlelog\">\n <div class=\"battlelogvs\">VS</div>\n <div class=\"battlelogtext\">\n <h2>Battlelog</h2>\n Here is the Battlelog text!!\n </div>\n </div>';\n echo $content;\n}",
"public function message()\n {\n return 'The selected hour is outside the doctor\\'s working hours';\n }",
"function default_action(){\n //Show message about game context\n echo \"<div style='text-align:center'>\";\n echo nl2br(\"\\n\");\n echo nl2br (\"You woke up in a cave. You have no memory of what happened. You need to escape by getting to the final room!\\n\");\n echo nl2br (\"\\n\");\n //space where exits will be displayed and updated\n echo \"<p>\";\n echo \"<span id='exits'></span> \";\n echo \"</p>\";\n ?>\n <!--space where the inventory will be displayed and updated-->\n <div style='text-align:center'>\n <p>You have: <span id='inventory'></span></p>\n </div>\n <?php\n //space where objects in the room will be displayed and updated\n echo \"<p>\";\n echo \"<span id='env_stuff'></span> \";\n echo \"</p>\";\n\n echo \"<a href=\\\"./game.php?action=logout\\\">\";\n echo nl2br(\"\\n\");\n echo \"Logout.\";\n echo \"</a>\";\n echo \"</div>\";\n}",
"public function graphic()\n {\n return \"dice-\" . $this->getLastRoll();\n }",
"function erp_include_popup_markup() {\n include_once WPERP_INCLUDES . '/admin/views/erp-modal.php';\n erp_get_js_template( WPERP_INCLUDES . '/admin/views/address.php', 'erp-address' );\n}",
"public function strRepresentation() {\n\t\t$retstr = \"\";\n\t\t$retstr .= \"Card \".$this->name.\" - \".$this->id.\" is a(n) \".$this->getTypeAsStr().\" card with a cost of \".$this->cost.\".<br />It boosts the following stats:<br />\";\n\t\t$retstr .= \"Body: \";\n\t\t$retstr .= print_r($this->body, true);\n\t\t$retstr .= \"<br />Mind: \";\n\t\t$retstr .= print_r($this->mind, true);\n\t\t$retstr .= \"<br />Soul: \";\n\t\t$retstr .= print_r($this->soul, true);\n\t\t$retstr .= \"<br />And gives a vitality boost of \".$this->vit;\n\t\treturn $retstr;\n\t}",
"private function o(string $option): string\n {\n return '<bold:bgLightYellow>' . $option . '</bold:bgLightYellow>';\n }",
"public function howtoEat()\n {\n return \"Chicken could be fried!<br>\";\n }",
"function flash_lunas() {\n\n\n return '<span class=\"badge badge-success text-light p-2\">LUNAS</span>';\n}",
"function printActionMenu($modalType, $modalNumber){\n\t\techo(\"<td>\");\n\t\techo(\"<div class=\\\"dropdown show\\\">\");\n\t\techo(\"<a class=\\\"btn btn-info dropdown-toggle\\\" href=\\\"#\\\" role=\\\"button\\\" id=\\\"dropdownMenuLink\\\" data-toggle=\\\"dropdown\\\">\");\n\t\techo(\"<i class=\\\"fas fa-cog\\\"></i>\");\n\t\techo(\"</a>\");\n\t\techo(\"<div class=\\\"dropdown-menu\\\">\");\n\t\techo(\"<a class=\\\"dropdown-item\\\" href=\\\"#\\\" data-toggle=\\\"modal\\\" data-target=\\\"#{$modalType}EditModal{$modalNumber}\\\">\");\n\t\techo(\"<i class=\\\"fas fa-pencil-alt mr-2\\\"></i>\");\n\t\techo(\"Edit\");\n\t\techo(\"</a>\");\n\t\techo(\"<a class=\\\"dropdown-item text-danger\\\" href=\\\"#\\\" data-toggle=\\\"modal\\\" data-target=\\\"#{$modalType}DeleteModal{$modalNumber}\\\">\");\n\t\techo(\"<i class=\\\"fas fa-trash-alt mr-2\\\"></i>\");\n\t\techo(\"Delete\");\n\t\techo(\"</a>\");\n\t\techo(\"</div>\");\n\t\techo(\"</div>\");\n\t\techo(\"</td>\");\n\t}",
"function _action_box_text($options)\n\t{\n\t\t?>\n\t\t\t<div id=\"action_box\" data-arrowpos=\"center\">\n\t\t\t\t<div class=\"container\">\n\t\t\t\t\t<div class=\"row\">\n\t\t\t\t\t\t\n\t\t\t\t\t\t<?php \n\t\t\t\t\t\t\t// Title\n\t\t\t\t\t\t\tif ( !empty ( $options['page_ac_title'] ) ) \n\t\t\t\t\t\t\t{ \n\t\t\t\t\t\t\t\techo '<div class=\"span12\">';\n\t\t\t\t\t\t\t\techo '<h4 class=\"text\">'.$options['page_ac_title'].'</h4>';\n\t\t\t\t\t\t\t\techo '</div>';\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t?>\n\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div><!-- end action box -->\n\t\t<?php\n\t}",
"public function toString()\n {\n return \"GUI is display full\";\n }",
"function flash_belum_lunas() {\n\n\n return '<span class=\"badge badge-danger text-light p-2\">BELUM LUNAS</span>';\n}",
"public static function print_editor_option_markup($robot_info, $ability_info){\n // Require the function file\n $this_option_markup = '';\n require(MMRPG_CONFIG_ROOTDIR.'data/classes/ability_editor-option-markup.php');\n // Return the generated option markup\n return $this_option_markup;\n }",
"function createTooltip(string $text)\n{\n echo '<span class=\"tooltip\"><span class=\"icon\">?</span><span class=\"text\">' . $text . '</span></span>';\n}",
"public function getString(){\n return \"Side: \" . $this -> side\n . \"<br> Volume: \" . $this -> getVolume()\n . \"<br> Surface: \" . $this -> getSurface();\n }",
"function displaySymbol($randomValue, $pos){\n \n \n switch($randomValue){\n case 0: $symbol = \"seven\";\n break;\n case 1: $symbol = \"cherry\";\n break;\n case 2: $symbol = \"lemon\";\n break;\n case 3: $symbol = \"grapes\";\n \n }\n \n echo \"<img id = 'reel$pos' src = 'img/$symbol.png' alt = '$symbol' title ='\".ucfirst($symbol). \"' width = '70' >\";\n }"
] | [
"0.631923",
"0.6104463",
"0.6072025",
"0.6067265",
"0.60236585",
"0.5861049",
"0.58421755",
"0.57494706",
"0.5739615",
"0.5586914",
"0.5559835",
"0.55369955",
"0.55255014",
"0.54983425",
"0.5479581",
"0.5450379",
"0.5446426",
"0.5441593",
"0.54314023",
"0.5430708",
"0.54068613",
"0.5401005",
"0.5399437",
"0.53945106",
"0.53887016",
"0.5374259",
"0.53680223",
"0.53613824",
"0.53555137",
"0.53477407",
"0.5316797",
"0.53075266",
"0.5299389",
"0.52928156",
"0.52918595",
"0.5284013",
"0.52787775",
"0.5274164",
"0.5271939",
"0.5262821",
"0.52597606",
"0.5256124",
"0.52304286",
"0.5222441",
"0.52200377",
"0.5218358",
"0.5203033",
"0.5201134",
"0.5196332",
"0.5194073",
"0.5189921",
"0.51868623",
"0.518668",
"0.51642525",
"0.515728",
"0.51536363",
"0.51531595",
"0.5152735",
"0.51440716",
"0.5143917",
"0.51390505",
"0.5121424",
"0.5117212",
"0.5108902",
"0.50986224",
"0.5097388",
"0.5093362",
"0.509038",
"0.50886077",
"0.5088456",
"0.5087283",
"0.50849605",
"0.5072652",
"0.5071462",
"0.50676006",
"0.5052589",
"0.50515985",
"0.5050563",
"0.5042336",
"0.50409746",
"0.5040638",
"0.5032422",
"0.5028444",
"0.50269896",
"0.50260806",
"0.50188774",
"0.5018111",
"0.5015931",
"0.5014925",
"0.50142884",
"0.50127566",
"0.500782",
"0.50048256",
"0.50040007",
"0.49984735",
"0.4992612",
"0.49923894",
"0.49888653",
"0.49840108",
"0.49781814"
] | 0.70814496 | 0 |
Returns an array with log details that can be part of a BattleMessage Includes id, name, buff, desc, and popup | public function getLogDetails() {
return array(
'id' => $this->id,
'name' => $this->name,
'buff' => $this->buff,
'desc' => $this->desc,
'popup' => $this->call("getPopup"),
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getLogMessages() {\n return $this -> log;\n }",
"public function getStatusLogMessages() {\n foreach($this->statusLogs as $log) {\n $log = explode(\",\", $log);\n $logMessage = &$log[0];\n $logTimestamp = &$log[1];\n $this->statusLogMessages[] = array($this->statusTemplates[ $logMessage ], date(\"Y:m:d h:i:s\", $logTimestamp));\n }\n\n return $this->statusLogMessages;\n }",
"public static function getLogs($userid=null, $gameID=null)\r\n\t{\t$ret = array();\r\n\t\r\n\t\t$con = db_connect();\r\n\t\tif($gameID!=null)\r\n\t\t{\r\n\t\t\t\t\r\n\t\t\t$statement = $con->prepare('Select building, user, card, custom_field_id, custom_field.text as fieldtext, icon, logger_id, timestamp, game, radius, lat, lon from logger left join location on logger.location=location.location_id left join custom_field on logger.text=custom_field.custom_field_id where game= ? ORDER BY timestamp DESC');\r\n\t\t\t$statement->execute(array($gameID));\r\n\t\t\t$result = $statement;\r\n\t\t\t\r\n\t\t\twhile($row = $result->fetch(PDO::FETCH_ASSOC))\r\n\t\t\t{\t\r\n\t\t\t\t//We need: User, Building, Game, Card, location, \r\n\t\t\t\t//We don't use the game in this context, because it would overload the json.\r\n\t\t\t\t$logger=new Log();\r\n\t\t\t\tif($row['building']!=null)\r\n\t\t\t\t\t$logger->building=Building::loadSelectedBuildingFromDB($row['building']);\r\n\t\r\n\t\t\t\tif($row['user']!=null)\t\r\n\t\t\t\t\t$logger->user=User::loadFromDB($row['user'],'normal');\r\n\t\r\n\t\t\t\tif($row['card']!=null)\r\n\t\t\t\t\t$logger->card=Card::loadSelectedCardFromDB($row['card']);\r\n\t\r\n\t\t\t\t\r\n\t\t\t\t$logger->Text=$row['fieldtext'];\r\n\t\t\t\t$logger->textID=$row['custom_field_id'];\r\n\t\t\t\t$logger->icon=$row['icon'];\r\n\t\t\t\t$logger->logID=$row['logger_id'];\r\n\t\t\t\t$logger->timestamp=$row['timestamp'];\r\n\t\t\t\t\r\n\t\t\t\tif($row['game'])\r\n\t\t\t\t\t$logger->game=$row['game'];\r\n\t\t\t\t\r\n\t\t\t\tif($row['lat'])\r\n\t\t\t\t{\r\n\t\t\t\t $loc = new Location();\r\n\t\t\t\t $loc->accu = $row['radius'];\r\n\t\t\t\t $loc->lat = $row['lat'];\r\n\t\t\t\t $loc->lon = $row['lon'];\r\n\t\t\t\t $logger->location = $loc;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$ret[] = $logger;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$con = null;\r\n\t\t\treturn $ret;\r\n\t\t}\r\n\t}",
"private static function humanizeLogs($logs)\n {\n if(count($logs) == 0) return $logs;\n\n //just snatch game id info from first avail log\n $gid = 0;\n for($i = 0; $i < count($logs) && !$gid; $i++)\n $gid = $logs[$i]->game_id;\n\n $item_list = dbconnection::queryArray(\"SELECT * FROM items WHERE game_id = '{$gid}';\");\n $item_map = array(); for($i = 0; $i < count($item_list); $i++) $item_map[$item_list[$i]->item_id] = $item_list[$i];\n $plaque_list = dbconnection::queryArray(\"SELECT * FROM plaques WHERE game_id = '{$gid}';\");\n $plaque_map = array(); for($i = 0; $i < count($plaque_list); $i++) $plaque_map[$plaque_list[$i]->plaque_id] = $plaque_list[$i];\n $dialog_list = dbconnection::queryArray(\"SELECT * FROM dialogs WHERE game_id = '{$gid}';\");\n $dialog_map = array(); for($i = 0; $i < count($dialog_list); $i++) $dialog_map[$dialog_list[$i]->dialog_id] = $dialog_list[$i];\n $dialog_script_list = dbconnection::queryArray(\"SELECT * FROM dialog_scripts WHERE game_id = '{$gid}';\");\n $dialog_script_map = array(); for($i = 0; $i < count($dialog_script_list); $i++) $dialog_script_map[$dialog_script_list[$i]->dialog_script_id] = $dialog_script_list[$i];\n $web_page_list = dbconnection::queryArray(\"SELECT * FROM web_pages WHERE game_id = '{$gid}';\");\n $web_page_map = array(); for($i = 0; $i < count($web_page_list); $i++) $web_page_map[$web_page_list[$i]->web_page_id] = $web_page_list[$i];\n $note_list = dbconnection::queryArray(\"SELECT * FROM notes WHERE game_id = '{$gid}';\");\n $note_map = array(); for($i = 0; $i < count($note_list); $i++) $note_map[$note_list[$i]->note_id] = $note_list[$i];\n $trigger_list = dbconnection::queryArray(\"SELECT * FROM triggers WHERE game_id = '{$gid}';\");\n $trigger_map = array(); for($i = 0; $i < count($trigger_list); $i++) $trigger_map[$trigger_list[$i]->trigger_id] = $trigger_list[$i];\n $instance_list = dbconnection::queryArray(\"SELECT * FROM instances WHERE game_id = '{$gid}';\");\n $instance_map = array(); for($i = 0; $i < count($instance_list); $i++) $instance_map[$instance_list[$i]->instance_id] = $instance_list[$i];\n $event_package_list = dbconnection::queryArray(\"SELECT * FROM event_packages WHERE game_id = '{$gid}';\");\n $event_package_map = array(); for($i = 0; $i < count($event_package_list); $i++) $event_package_map[$event_package_list[$i]->event_package_id] = $event_package_list[$i];\n $scene_list = dbconnection::queryArray(\"SELECT * FROM scenes WHERE game_id = '{$gid}';\");\n $scene_map = array(); for($i = 0; $i < count($scene_list); $i++) $scene_map[$scene_list[$i]->scene_id] = $scene_list[$i];\n $quest_list = dbconnection::queryArray(\"SELECT * FROM quests WHERE game_id = '{$gid}';\");\n $quest_map = array(); for($i = 0; $i < count($quest_list); $i++) $quest_map[$quest_list[$i]->quest_id] = $quest_list[$i];\n $tab_list = dbconnection::queryArray(\"SELECT * FROM tabs WHERE game_id = '{$gid}';\");\n $tab_map = array(); for($i = 0; $i < count($tab_list); $i++) $tab_map[$tab_list[$i]->tab_id] = $tab_list[$i];\n\n for($i = 0; $i < count($logs); $i++)\n {\n $l = $logs[$i];\n switch($l->event_type)\n {\n case 'NONE':\n $l->human = \"Null Log\";\n break;\n case 'LOG_IN':\n $l->human = \"User Logged In\";\n break;\n case 'BEGIN_GAME':\n $l->human = \"User Began Game\";\n break;\n case 'RESET_GAME':\n $l->human = \"User Reset Game\";\n break;\n case 'MOVE':\n $l->human = \"User Moved\";\n break;\n case 'RECEIVE_ITEM':\n $l->human = \"User Received {$l->qty} {$item_map[$l->content_id]->name} (Item)\";\n break;\n case 'LOSE_ITEM':\n $l->human = \"User Lost {$l->qty} {$item_map[$l->content_id]->name} (Item)\";\n break;\n case 'GAME_RECEIVE_ITEM':\n $l->human = \"Game Received {$l->qty} {$item_map[$l->content_id]->name} (Item)\";\n break;\n case 'GAME_LOSE_ITEM':\n $l->human = \"Game Lost {$l->qty} {$item_map[$l->content_id]->name} (Item)\";\n break;\n case 'GROUP_RECEIVE_ITEM':\n $l->human = \"Group Received {$l->qty} {$item_map[$l->content_id]->name} (Item)\";\n break;\n case 'GROUP_LOSE_ITEM':\n $l->human = \"Group Lost {$l->qty} {$item_map[$l->content_id]->name} (Item)\";\n break;\n case 'VIEW_TAB':\n $l->human = \"User Viewed {$tab_map[$l->content_id]->name} (Tab)\";\n break;\n case 'VIEW_INSTANCE':\n $l->human = \"User Viewed {$instance_map[$l->content_id]->name} (Instance)\";\n break;\n case 'VIEW_PLAQUE':\n $l->human = \"User Viewed {$plaque_map[$l->content_id]->name} (Plaque)\";\n break;\n case 'VIEW_ITEM':\n $l->human = \"User Viewed {$item_map[$l->content_id]->name} (Item)\";\n break;\n case 'VIEW_DIALOG':\n $l->human = \"User Viewed {$dialog_map[$l->content_id]->name} (Dialog)\";\n break;\n case 'VIEW_DIALOG_SCRIPT':\n $l->human = \"User Viewed {$dialog_script_map[$l->content_id]->text} (Dialog Script)\";\n break;\n case 'VIEW_WEB_PAGE':\n $l->human = \"User Viewed {$web_page_map[$l->content_id]->name} (Web Page)\";\n break;\n case 'VIEW_NOTE':\n $l->human = \"User Viewed {$note_map[$l->content_id]->name} (Note)\";\n break;\n case 'TRIGGER_TRIGGER':\n $l->human = \"User Triggered {$trigger_map[$l->content_id]->name} (Trigger)\";\n break;\n case 'CHANGE_SCENE':\n $l->human = \"User Changed {$scene_map[$l->content_id]->name} (Scene)\";\n break;\n case 'RUN_EVENT_PACKAGE':\n $l->human = \"User Ran {$event_package_map[$l->content_id]->name} (Event Package)\";\n break;\n case 'COMPLETE_QUEST':\n $l->human = \"User Completed {$quest_map[$l->content_id]->name} (Quest)\";\n break;\n case 'CREATE_NOTE':\n $l->human = \"User Created {$note_map[$l->content_id]->name} (Note)\";\n break;\n case 'GIVE_NOTE_LIKE':\n $l->human = \"User Liked {$note_map[$l->content_id]->name} (Note)\";\n break;\n case 'GET_NOTE_LIKE':\n $l->human = \"User Got Liked {$note_map[$l->content_id]->name} (Note)\";\n break;\n case 'GIVE_NOTE_COMMENT':\n $l->human = \"User Commented {$note_map[$l->content_id]->name} (Note)\";\n break;\n case 'GET_NOTE_COMMENT':\n $l->human = \"User Got Commented {$note_map[$l->content_id]->name} (Note)\";\n break;\n case 'UPLOAD_MEDIA_ITEM':\n $l->human = \"User Uploaded Media\";\n break;\n case 'UPLOAD_MEDIA_ITEM_IMAGE':\n $l->human = \"User Uploaded Image\";\n break;\n case 'UPLOAD_MEDIA_ITEM_AUDIO':\n $l->human = \"User Uploaded Audio\";\n break;\n case 'UPLOAD_MEDIA_ITEM_VIDEO':\n $l->human = \"User Uploaded Video\";\n break;\n case 'RECEIVE_WEBHOOK':\n $l->human = \"User Received Webhook\";\n break;\n case 'SEND_WEBHOOK':\n $l->human = \"User Sent Webhook\";\n break;\n }\n }\n return $logs;\n }",
"private function getMessageEventData(): array {\n $data = [\n \"type\" => \"message\",\n \"channel\" => \"C2147483705\",\n \"user\" => \"U2147483697\",\n \"text\" => \"Hello world\",\n \"ts\" => \"1355517523.000005\"\n ];\n if ( rand( 0, 1 ) == 0 ) {\n return $data;\n } else {\n $data[ 'edited' ] = [\n \"user\" => \"U2147483697\",\n \"ts\" => \"1355517536.000001\"\n ];\n return $data;\n }\n }",
"public function get_info() {\n\n\t\t$arr_info = array(\n\t\t\t'name' => _x( 'Plugin: WP Crontrol Logger', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t'description' => _x( 'Logs management of cron events', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t'name_via' => _x( 'Using plugin WP Crontrol', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t'capability' => 'manage_options',\n\t\t\t'messages' => array(\n\t\t\t\t'added_new_event' => _x( 'Added cron event \"{event_hook}\"', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'ran_event' => _x( 'Manually ran cron event \"{event_hook}\"', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'deleted_event' => _x( 'Deleted cron event \"{event_hook}\"', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'deleted_all_with_hook' => _x( 'Deleted all \"{event_hook}\" cron events', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'paused_hook' => _x( 'Paused the \"{event_hook}\" cron event hook', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'resumed_hook' => _x( 'Resumed the \"{event_hook}\" cron event hook', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'edited_event' => _x( 'Edited cron event \"{event_hook}\"', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'added_new_schedule' => _x( 'Added cron schedule \"{schedule_name}\"', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t\t'deleted_schedule' => _x( 'Deleted cron schedule \"{schedule_name}\"', 'PluginWPCrontrolLogger', 'simple-history' ),\n\t\t\t),\n\t\t);\n\n\t\treturn $arr_info;\n\t}",
"public function log(): array\r\n {\r\n return $this->activityRepository->getLogData();\r\n }",
"public function getBriefInfoMessages()\n {\n $array = imap_headers($this->imap);\n $newArray = [];\n foreach ($array as $key => $string) {\n $newArray[] = ['id'=>$key+1, 'info' => $string];\n };\n return $newArray;\n }",
"function get_ban_details() {\n\tglobal $db;\n\tglobal $attempted_user_id;\n\n\t$prepared = $db->prepare(\"\n\t\t\tSELECT date_time, until_date_time, reason\n\t\t\tFROM user_bans\n\t\t\tWHERE user_id = ? AND\n\t\t\t\tdate_time >= ALL (\n\t\t\t\t\t\tSELECT date_time\n\t\t\t\t\t\tFROM user_bans\n\t\t\t\t\t\tWHERE user_id = ?\n\t\t\t\t\t\t)\n\t\t\");\n\n\t$prepared->bind_param('ii', $attempted_user_id, $attempted_user_id);\n\n\tif (!$prepared->execute()) {\n\t\t$message['error'][] = ERROR;\n\t\treturn false;\n\t}\n\n\t$prepared->bind_result(\n\t\t$date_time,\n\t\t$until_date_time,\n\t\t$reason\n\t);\n\n\t$prepared->fetch();\n\n\t$prepared->free_result();\n\n\treturn (object) array(\n\t\t\t'date_time'\t\t\t=> $date_time,\n\t\t\t'until_date_time'\t=> $until_date_time,\n\t\t\t'reason'\t\t\t=> $reason\n\t\t);\n}",
"protected function get_legacy_logdata() {\n $name = $this->get_legacy_eventname();\n $url = preg_replace('/^.*\\/mod\\/reader\\//', '', $this->get_url());\n return array($this->courseid, 'reader', $name, $url, $this->objectid, $this->contextinstanceid);\n }",
"public function getLog()\n\t{\n\t\t$models = CWizardLog::model()->forSession($this->session)->findAll();\n\t\tfor ($log = array(); list(, $model) = each($models);\n\t\t $log[$model->action_id] = $model) ;\n\t\tif (!count($log))\n\t\t\t$log = array(new CWizardLog);\n\t\treturn $log;\n\t}",
"private function getWatchdogData() {\n $wd = array();\n if (\\Drupal::moduleHandler()->moduleExists('dblog')) {\n $result = db_select('watchdog', 'w')\n ->fields('w', array('wid', 'severity', 'type', 'message', 'timestamp'))\n ->condition('w.severity', array(RfcLogLevel::EMERGENCY, RfcLogLevel::CRITICAL), 'IN')\n ->condition('w.timestamp', REQUEST_TIME - 3600, '>')\n ->execute();\n\n while ($record = $result->fetchAssoc()) {\n $wd[$record['severity']] = $record;\n }\n }\n\n return $wd;\n }",
"function get_call_log()\r\n\t{\r\n\t\t$log_details=$this->db->query(\"SELECT a.msg,date_format(FROM_UNIXTIME(a.created_on),'%d/%m/%y %h:%i %p') as created_on,a.sender,c.franchise_name\r\n\t\t\t\t\t\t\t\t\tFROM pnh_sms_log a\r\n\t\t\t\t\t\t\t\t\tJOIN pnh_m_franchise_info c ON c.franchise_id=a.franchise_id\r\n\t\t\t\t\t\t\t\t\tWHERE c.is_suspended=0 AND `type`='CALL'\");\r\n\t\tif($log_details->num_rows())\r\n\t\t{\r\n\t\t\treturn $log_details ->result_array();\r\n\t\t\t\r\n\t\t}else\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t}",
"function getLog(){\n\t\t$log = $this->msgHandler->getLog();\n\t\treturn $this->translator->markupAttributes('div', $log, array('style'=>'overflow: scroll; height: 25%; width: 50%; margin: auto;'));\n\t}",
"public function getLogObjectData() : array {\n return [\n 'objId' => $this->_id,\n 'objName' => $this->scope\n ];\n }",
"public static function get_bot_activity ($bot_name)\n {\n $entries = [];\n foreach (static::$_log as $timestamp => $lines) {\n $matches = preg_grep(\"/^$bot_name /\", $lines);\n if ( count($matches) > 0 ) {\n $entries[] = array_shift($matches);\n }\n else {\n $entries[] = '';\n }\n }\n return $entries;\n }",
"public function allInfo() {\n return $this->infoMsg;\n }",
"function extractMessageArray($line)\r\n{\r\n\t$linearray = explode('||', $line);\r\n\r\n\t// Snag the unix timestamp and perform some date calculations\r\n\t$datetime = array_shift($linearray);\r\n\r\n\t// Time elapsed (e.g. 1.5 hours, 4 days, etc.)\r\n\t$age = duration_str(time() - $datetime, false, 2);\r\n\r\n\t// Long format date\r\n $date_full = date(\"l, d F Y\", $datetime);\r\n\r\n // Short format date\r\n $date = date('m/d/Y', $datetime);\r\n\r\n // Time of day\r\n $time = date('H:i', $datetime);\r\n\r\n // Day of week\r\n $day = date('l', $datetime);\r\n\r\n\t// Hour\r\n\t$hour = date('H', $datetime);\r\n\r\n // Next snag the name\r\n $name = array_shift($linearray);\r\n\r\n\t// Check for action or system notice\r\n\t$action = ($name{0} == '*') ? true : false;\r\n\t$notice = ($name{0} == '!') ? true : false;\r\n\r\n\tif ($action || $notice)\r\n\t\t$name = mb_substr($name, 1);\r\n\r\n\t// Now put the post back together\r\n\t$words = trim(implode(' ', $linearray));\r\n\r\n\t// return this mess of info\r\n\treturn array\r\n\t(\r\n\t\t'timestamp' => $datetime,\r\n\t\t'date_full' => $date_full,\r\n\t\t'date' => $date,\r\n\t\t'time' => $time,\r\n\t\t'day' => $day,\r\n\t\t'hour' => $hour,\r\n\t\t'age' => $age,\r\n\t\t'action' => $action,\r\n\t\t'notice' => $notice,\r\n\t\t'name' => $name,\r\n\t\t'text' => $words\r\n\t);\r\n}",
"function dblog_event($id) {\n $severity = watchdog_severity_levels();\n $result = db_query('SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid WHERE w.wid = :id', array(':id' => $id))->fetchObject();\n if ($dblog = $result) {\n $rows = array(\n array(\n array('data' => t('Type'), 'header' => TRUE),\n t($dblog->type),\n ),\n array(\n array('data' => t('Date'), 'header' => TRUE),\n format_date($dblog->timestamp, 'long'),\n ),\n array(\n array('data' => t('User'), 'header' => TRUE),\n theme('username', array('account' => $dblog)),\n ),\n array(\n array('data' => t('Location'), 'header' => TRUE),\n l($dblog->location, $dblog->location),\n ),\n array(\n array('data' => t('Referrer'), 'header' => TRUE),\n l($dblog->referer, $dblog->referer),\n ),\n array(\n array('data' => t('Message'), 'header' => TRUE),\n theme('dblog_message', array('event' => $dblog)),\n ),\n array(\n array('data' => t('Severity'), 'header' => TRUE),\n $severity[$dblog->severity],\n ),\n array(\n array('data' => t('Hostname'), 'header' => TRUE),\n check_plain($dblog->hostname),\n ),\n array(\n array('data' => t('Operations'), 'header' => TRUE),\n $dblog->link,\n ),\n );\n $build['dblog_table'] = array(\n '#theme' => 'table',\n '#rows' => $rows,\n '#attributes' => array('class' => array('dblog-event')),\n );\n return $build;\n }\n else {\n return '';\n }\n}",
"public function getMessages()\n {\n $chat_info = $this->_Database->query(\"SELECT chat.*, users.user_name, users.staff_status FROM chat LEFT JOIN users ON users.user_id = chat.user_id ORDER BY chat_id DESC\", null, \"fetchAll\");\n return $chat_info;\n }",
"public function getLogs()\n {\n $lines = array();\n foreach ($this->logs as $l)\n $lines[] = $l[0] . \" \" . Logger::fillPlaceholders($l[1], $l[2]);\n $this->logs = array();\n return $lines;\n }",
"function get_data() {\n\t\t$stats = array();\n\t\t$fp = fopen('vrecohack.log', 'r');\n\t\twhile (($line = fgets($fp)) !== false) {\n\t\t\t// print_r($line);\n\t\t\tassert(strpos($line, '===START===') !== false);\n\t\t\t$request = unserialize(fgets($fp));\n\t\t\t# skip what we don't need yet\n\t\t\tfor ($i = 0; $i < 6; $i++) {\n\t\t\t\tfgets($fp);\n\t\t\t\t// $line = fgets($fp);\n\t\t\t\t// if (isset($line['REMOTE_ADDR'])) {\n\t\t\t\t// \t$ip = $line['REMOTE_ADDR'];\n\t\t\t\t// }\n\t\t\t}\n\t\t\tif (isset($request['action'])) {\n\t\t\t\t$step = $request['step'];\n\t\t\t\t$choice = $request['choice'];\n\t\t\t\t$stats[$step][$choice] += 1;\n\t\t\t}\n\t\t}\n\t\tfclose($fp);\n\t\treturn $stats;\n\t}",
"public function get_recent_visitors_log() {\n\t\t$current_log = get_option(self::$ROLES_LOG_KEY);\n\t\t$current_log = $current_log ? json_decode($current_log, true) : array();\n\n\t\tif (!empty($current_log)) {\n\t\t\tglobal $wp_roles;\n\t\t\t$roles = $wp_roles->get_names();\n\t\t\t$roles['guest'] = __('Guest', 'minerva-kb');\n\n\t\t\t$current_log = array_map(function($entry) use ($roles) {\n\t\t\t\t$entry_roles = array_map(function($role) use ($roles) {\n\t\t\t\t\treturn isset($roles[$role]) ? $roles[$role] : $role; // replace keys with names, if available\n\t\t\t\t}, explode('%', $entry));\n\n\t\t\t\treturn implode('/', $entry_roles);\n\t\t\t}, $current_log);\n\t\t}\n\n\t\treturn $current_log;\n\t}",
"public function getChatInfo(){\n $update = json_decode(file_get_contents(\"php://input\"), true);\n $chatID = $update[\"message\"][\"chat\"][\"id\"];\n $message = $update[\"message\"][\"text\"];\n $this->updateChatList($chatID);\n\n return array('chatID' => $chatID, 'message' => $message);\n }",
"public function info()\n {\n $info = [\n 'id' => $this->id,\n 'action' => $this->action,\n 'condition' => $this->condition,\n 'expressions' => $this->expressions,\n 'logMessageFormat' => $this->logMessageFormat,\n 'logLevel' => $this->logLevel,\n 'isFinalState' => $this->isFinalState,\n 'createTime' => $this->createTime,\n 'finalTime' => $this->finalTime,\n 'stackFrames' => array_map(function ($sf) {\n return $sf->info();\n }, $this->stackFrames),\n 'evaluatedExpressions' => array_map(function ($exp) {\n return $exp->info();\n }, $this->evaluatedExpressions),\n ];\n if ($this->labels) {\n $info['labels'] = $this->labels;\n }\n if ($this->userEmail) {\n $info['userEmail'] = $this->userEmail;\n }\n if ($this->location) {\n $info['location'] = $this->location->info();\n }\n if ($this->status) {\n $info['status'] = $this->status->info();\n }\n if ($this->variableTable) {\n $info['variableTable'] = $this->variableTable->info();\n }\n return $info;\n }",
"public function toLoguxResponse() : array\n {\n // Handle internal server error\n if (isset($this->_log['error'])) {\n return [[\n 'answer' => 'error',\n 'details' => $this->_log['error'],\n 'id' => $this->getId()\n ]];\n }\n\n $response = [];\n if ($this->_recepients) {\n $response[] = array_merge([\n 'answer' => 'resend',\n 'id' => $this->getId()\n ], $this->_recepients);\n }\n\n $response = array_merge($response, array_map(function ($logType) {\n return [\n 'answer' => $logType,\n 'id' => $this->getId()\n ];\n }, $this->_log));\n\n return $response;\n }",
"public function getLogData(): array {\n\t\t$data = [];\n\n\t\t$data['input_properties_count'] = $this->getInputPropertiesCount();\n\t\t$data['monitoring_point_id'] = $this->getMonitoringPointId();\n\t\t$data['user_id'] = $this->getUserId();\n\t\t$data['property_statistics'] = [];\n\n\t\tforeach ($this->getProperties() as $property) {\n\t\t\t$data['property_statistics'][] = [\n\t\t\t\t'symbol' => $property,\n\t\t\t\t'values_count' => $this->getPropertyValuesCount($property),\n\t\t\t\t'inserts' => $this->getPropertyInserts($property),\n\t\t\t\t'updates' => $this->getPropertyUpdates($property),\n\t\t\t\t'no_changes' => $this->getPropertyNoChanges($property),\n\t\t\t\t'min_time' => $this->getPropertyMinTimeFormatted($property),\n\t\t\t\t'max_time' => $this->getPropertyMaxTimeFormatted($property),\n\t\t\t];\n\t\t}\n\n\t\treturn $data;\n\t}",
"protected function getSqlLogs()\n {\n $logs = array();\n //$bindings = array();\n $i = 0;\n $previousLine = array();\n \n $sqlLogTitles = array('Doctrine_Connection_Mysql', 'Doctrine_Connection_Statement');\n foreach ($this->webDebug->getLogger()->getLogs() as $log)\n {\n // Store the log if it is not a doctrine query log\n if (!in_array($log['type'], $sqlLogTitles))\n {\n $previousLine[] = $log;\n continue;\n }\n\n // Add log info to the debug display list\n $y = $i;\n if(sizeof($previousLine) > 0)\n {\n $this->info[$y++] = $previousLine;\n $previousLine = array();\n }\n\n if (preg_match('/^.*?(\\b(?:SELECT|INSERT|UPDATE|DELETE)\\b.*)$/', $log['message'], $match))\n {\n // Extract the targeted table and update its uses counter\n $table = self::extractTableFromSQL($match[1]);\n if(!$this->tablesCalculated)\n {\n if(!array_key_exists($table, self::$tables))\n {\n self::$tables[$table] = '1';\n }\n else\n {\n self::$tables[$table]++;\n }\n }\n\n $logs[$i++] = array('log' => $this->formatSql($match[1]), 'table' => $table);\n\n //$bindings[$i - 1] = array();\n }\n /*else if (preg_match('/Binding (.*) at position (.+?) w\\//', $log['message'], $match))\n {\n $bindings[$i - 1][] = $match[2].' = '.$match[1];\n }*/\n }\n\n $logs = $this->reintroduceValuesIntoQueries($logs);\n\n if(!$this->tablesCalculated)\n {\n $this->tablesCalculated = true;\n }\n\n return $logs;\n }",
"public function getLog(): array\n {\n return $this->log;\n }",
"public function __debugInfo()\n {\n return array_merge(parent::__debugInfo(), [\n 'consumer_tag' => $this->consumerTag,\n 'delivery_tag' => $this->deliveryTag,\n 'redeliver' => $this->redeliver,\n 'exchange' => $this->exchange,\n 'routing_key' => $this->routingKey,\n 'channel_object_hash' => spl_object_hash($this->channel),\n ]);\n }",
"private function dump(Message $message) : array\n {\n return [\n self::ID=> $message->getIDString(),\n self::TEXT=> $message->getTextString(),\n self::DATE=> $message->getDateInt(),\n self::SENDER_ID=> $message->getSenderIDString(),\n self::RECIPIENT_ID=> $message->getRecipientIDString()\n ];\n }",
"public function messages(): array\n {\n return [\n //\n ];\n }",
"public function getMessages(): array;",
"public function getMessages(): array;",
"public function getMessages(): array;",
"public function toJSONChatLog() {\n \t$log = array();\n \tfor($i = 0; $i < sizeof($this->chat_log); ++$i){\n \t\tarray_push($log, $this->chat_log[$i]->toJSONChat());\n \t}\n \treturn json_encode(array('chat_log' => $log));\t\n }",
"function threadratinglog_info()\n{\n\tglobal $lang;\n\t$lang->load(\"tools_ratinglog\");\n\n\treturn array(\n\t\t\"name\"\t\t\t\t=> $lang->threadratinglog_info_name,\n\t\t\"description\"\t\t=> $lang->threadratinglog_info_desc,\n\t\t\"website\"\t\t\t=> \"http://galaxiesrealm.com/index.php\",\n\t\t\"author\"\t\t\t=> \"Starpaul20\",\n\t\t\"authorsite\"\t\t=> \"http://galaxiesrealm.com/index.php\",\n\t\t\"version\"\t\t\t=> \"1.0\",\n\t\t\"compatibility\"\t\t=> \"18*\"\n\t);\n}",
"function messages()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $db->array_query( $message_array, \"SELECT ID, PostingTime FROM\r\n eZForum_Message\r\n WHERE ForumID='$this->ID' AND IsTemporary='0'\r\n ORDER BY PostingTime DESC\" );\r\n\r\n $ret = array();\r\n\r\n foreach ( $message_array as $message )\r\n {\r\n $ret[] = new eZForumMessage( $message[$db->fieldName( \"ID\" )] );\r\n }\r\n\r\n return $ret;\r\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function messages()\n {\n return [\n //\n ];\n }",
"public function __debugInfo()\n {\n return [\n 'name' => $this->name,\n 'projectId' => $this->projectId,\n 'info' => $this->info,\n 'connection' => get_class($this->connection)\n ];\n }",
"private function __meetingLogs($info)\n\t{\n\t\t//get current login user\n\t\t$user = $this->Session->read('UserData.userName');\n\t\t\n\t\t//current user course\n\t\t$userCourse = $this->Session->read('UserData.usersCourses');\n\t\t$user_course_section = $userCourse[0];\n\t\t\n\t\t//get Course and section name\n\t\t$course_info = $this->getCourseNameOfUser($user_course_section);\n\t\t$course_name = $course_info->course_name;\n\t\t$course_section = $course_info->section_name;\n\t\t\n\t\tforeach($info['friends'] as $single_user) {\n\t\t$this->MeetingLog->create();\n\t\t//get course and section name\n\t\t$user_info = $this->PleUser->find('first', array('conditions' => array('PleUser.midasId' => $single_user, 'PleUser.course' => $course_name), 'fields' =>array('course','section')));\n\t\t\n\t\t$course_name = $user_info['PleUser']['course'];\n\t\t$section_name = $user_info['PleUser']['section'];\n\n\t\t//get session name\n\t\t$session_info = $this->getSessionNameOfUser($course_name);\n\t\t$session_name = $session_info->session_name;\n\t\t\n\t\t//get the last inserted id of meeting\n\t\t$last_id = $this->MeetingInfo->getLastInsertId();\n\t\t\n\t\t//create the data arrray\n\t\t$data['MeetingLog']['meeting_id'] = $last_id;\n\t\t$data['MeetingLog']['meeting_name'] = $info['meeting_title'];\n \t\t$data['MeetingLog']['midas_id']= $single_user;\n \t\t$data['MeetingLog']['user_type']= 'receiver';\n \t\t\n \t\t//check for user type\n \t\tif($single_user == $user) {\n \t\t$data['MeetingLog']['user_type']= 'sender';\n \t\t}\n \t\t\n \t\t$data['MeetingLog']['time']= time(); //current time\n \t\t$data['MeetingLog']['section'] = $section_name;\n \t\t$data['MeetingLog']['course'] = $course_name;\n \t\t$data['MeetingLog']['session'] = $session_name;\n \t\t\n \t\t$this->MeetingLog->save($data);\n\t\t}\n\t\t\n\t}",
"public function getlog($idEvento)\n {\n try{\n $select = parent::select()->where('idEvento =?',$idEvento)->order('id asc');\n $res = parent::fetchAll($select)->toArray();\n $result = array();\n \n\t\t\t foreach($res as $r){\n if (self::isJSON($r['msj'])) // Si el mensaje es json\n\t\t\t\t {\n $msg = json_decode($r['msj']);\n \tif(isset($msg->type))\n \t{\n \t\tif($msg->type) \n {\n\t\t\t\t\t\t if($msg->type == \"comment\")\n $result[] =$r['username'].\": \".$r['fecha'].\" - \".$msg->result;\n else{\n\t\t\t\t\t\t$result[] = $r['fecha'].\" - \".$msg->result;}\n\t\t\t\t\t}\t\n \t}\n\t\t\t\t \n \n }\n\t\t\t\t else // Si el mensaje no es json\n\t\t\t\t {\n\t\t\t\t\t $result[] = $r['fecha'].\" - \".$r['msj'];\n\t\t\t\t }\n\t\t\t\t \n }\n //file_put_contents ( \"LOG.txt\" , json_encode($result),FILE_APPEND);\n return $result;\n }catch(Zend_Exception $e){\n return array('fail'=>array($e->getCode()=>$e->getMessage()));\n }\n }",
"public function getLogs(){\n $logs = [];\n\n if($this->connectionLog){\n $logs = $this->connectionLog;\n }\n\n return $logs;\n }",
"function gameinfo($sc2id) {\n\t\t\n\t\t$bnetprofile = ($sc2id);\n \t$html = file_get_contents($bnetprofile);\n \t\n\t\tpreg_match_all(\n\t\t\t'/<h4>League Wins<\\/h4>.*?<h2>(.*?)<\\/h2>.*?<br \\/>.*?<h4>Games Played<\\/h4>.*?<ul>.*?<li>.*?<span>(.*?)<\\/span>/s',\n\t\t\t$html,\n\t\t\t$playerinfo,\n\t\t\tPREG_SET_ORDER\n\t\t);\n\t\n\t\t$neatplayerinfo = array();\n\t\tforeach ($playerinfo as $item) {\n\t\t\t$neatplayerinfo = array('wins'=>$item[1], 'customs'=>$item[2]);\n\t\t}\n\t\t\n\t\tpreg_match_all(\n\t\t\t\t'/Most Played Race:.*?<a href=\"ladder\\/\" class=\"(.*?)\">/s',\n\t\t\t\t$html,\n\t\t\t\t$race,\n\t\t\t\tPREG_SET_ORDER\n\t\t\t);\n\t\t\n\t\t$neatplayerinfo['race'] = substr($race[0][1], 5);\n\t\t\n\t\treturn $neatplayerinfo;\n\t}",
"public function __debugInfo() : array\n {\n return [\n 'time' => $this->format('Y-m-d H:i:s.u'),\n ] + get_object_vars($this);\n }",
"public function getPanel()\n {\n $html = '<h4>Log Information</h4>';\n \n $events = $this -> _log -> getEvents();\n \n foreach ($events as $event) {\n\t $html .= sprintf('<div class=\"pre\"><pre><div title=\"%s\">%s</div></pre><hr /></div>', htmlspecialchars($event['label']), Zend_Debug::dump($event['message'], null, false));\n }\n \n if (Zend_Controller_Front::getInstance()->getResponse()->isException()) {\n $full = false;\n } elseif (!empty($events)) {\n \t$full = true;\n } else {\n \t$full = false;\n }\n \n $full && empty($_COOKIE['ZFDebugCollapsed']) && $html .= '<script type=\"text/javascript\" charset=\"utf-8\">jQuery(function(){$(\"div#ZFDebug_log\").slideDown()})</script>';\n \n return $html;\n }",
"private function createDeliveryInfoMessage() {\n\t\treturn array(\n\t\t\tChatMessagesDao::COLUMN_TEXT => self::DELIVERY_MESSAGE,\n\t\t\tChatMessagesDao::COLUMN_TYPE => ChatMessagesDao::TYPE_INFO_MESSAGE\n\t\t);\n\t}",
"public function getMessages();",
"public function getMessages();",
"public function getMessages();",
"public function getMessages();",
"public function getMessages();",
"public function getMessages();",
"public function getMessages();",
"public function getMessages() {}",
"public function getMessages() {}",
"private function advancedMemberLogs()\n\t{\n\t\t$query = \"SELECT * FROM `paypal_logs` ORDER BY `submission_date` DESC LIMIT 0, 100\";\n\t\t\n\t\t$result = mysql_query($query) or die('Error : ' . mysql_error());\n\t\t\n\t\twhile($row = mysql_fetch_assoc($result))\n\t\t{\n\t\t\tif($row['txn_type'] == 'subscr_eot' || $row['txn_type'] == 'subscr_cancel')\n\t\t\t{\n\t\t\t\t$addedstyle = 'background-color:#ed5757;';\n\t\t\t}\n\t\t\telse if($row['txn_type'] == 'subscr_signup' || $row['txn_type'] == 'subscr_payment')\n\t\t\t{\n\t\t\t\t$addedstyle = 'background-color:#46e146;';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$addedstyle = '';\n\t\t\t}\n\t\t\t$basicdata = '<div style=\"display:inline-block;\">On ' . date('F jS, Y \\a\\t g:i a',$row['submission_date']) . ', ' . $this->formatUsername($row['uid']) . '\\'s ' . $this->deciperPaypalActionType($row['txn_type']) . '</div>';\n\t\t\techo '\n\t\t\t<div class=\"log-row\" style=\"padding:5px;border-bottom:1px solid black;width:100%;min-height:14px;' . $addedstyle . '\">';\n\t\t\tif($this->UserArray[2] == 1)\n\t\t\t{\n\t\t\t\t// Admin can see moar stuffs..\n\t\t\t\techo '\n\t\t\t\t<div>';\n\t\t\t\tif($row['txn_type'] == 'subscr_payment')\n\t\t\t\t{\n\t\t\t\t\techo '\n\t\t\t\t\t<div style=\"width:20px;display:inline-block;\"><a id=\"btn-' . $row['id'] . '\" href=\"#\" onClick=\"return false;\" class=\"expand-hidden-data\">+</a></div>';\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\techo '<div style=\"width:20px;display:inline-block;\"> </div>';\n\t\t\t\t}\n\t\t\t\techo $basicdata;\n\t\t\t\techo '\n\t\t\t\t</div>\n\t\t\t\t<div id=\"hidden-data-' . $row['id'] . '\" style=\"display:none;\" class=\"the-hidden-data\">\n\t\t\t\t\t<div style=\"display:inline-block;width:49%;vertical-align:top;\">\n\t\t\t\t\t\t<div style=\"font-size:8px;\">Item Name</div>\n\t\t\t\t\t\t<div>' . $row['item_name'] . '</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div style=\"display:inline-block;width:49%;vertical-align:top;\">\n\t\t\t\t\t\t<div style=\"width:32%;vertical-algin:top;display:inline-block;\">\n\t\t\t\t\t\t\t<div style=\"font-size:8px;\">Gross Income</div>\n\t\t\t\t\t\t\t<div>' . $row['mc_gross'] . '</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"width:32%;vertical-algin:top;display:inline-block;\">\n\t\t\t\t\t\t\t<div style=\"font-size:8px;\">Net Income</div>\n\t\t\t\t\t\t\t<div>' . ($row['mc_gross']-$row['mc_fee']) . '</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div style=\"width:32%;vertical-algin:top;display:inline-block;\">\n\t\t\t\t\t\t\t<div style=\"font-size:8px;\">Total Fees</div>\n\t\t\t\t\t\t\t<div>' . $row['mc_fee'] . '</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\techo $basicdata;\n\t\t\t}\n\t\t\techo '\n\t\t\t</div>';\n\t\t\tunset($basicdata);\n\t\t}\n\t\techo '\n\t\t<script>\n\t\t\t$(function() {\n\t\t\t\t$(\".expand-hidden-data\").on(\"click\", function() {\n\t\t\t\t\tvar this_id = $(this).attr(\"id\").substring(4);\n\t\t\t\t\t$(\".the-hidden-data\").hide();\n\t\t\t\t\t$(\"#hidden-data-\" + this_id).toggle();\n\t\t\t\t});\n\t\t\t});\n\t\t</script>';\n\t}",
"public function sendLogs() {\n\n //Getting logs\n $query = \"SELECT * FROM \" . $this->log_table_name . \";\";\n $this->db->fetchAll( $query );\n\n if( count( $this->db->result ) ){\n\n //Compile logs\n $data = array();\n foreach( $this->db->result as $key => $value ){\n\n // Converting statuses to API format\n $value['status'] = $value['status'] === 'DENY_ANTICRAWLER' ? 'BOT_PROTECTION' : $value['status'];\n $value['status'] = $value['status'] === 'PASS_ANTICRAWLER' ? 'BOT_PROTECTION' : $value['status'];\n $value['status'] = $value['status'] === 'DENY_ANTICRAWLER_UA' ? 'BOT_PROTECTION' : $value['status'];\n $value['status'] = $value['status'] === 'PASS_ANTICRAWLER_UA' ? 'BOT_PROTECTION' : $value['status'];\n\n $value['status'] = $value['status'] === 'DENY_ANTIFLOOD' ? 'FLOOD_PROTECTION' : $value['status'];\n $value['status'] = $value['status'] === 'PASS_ANTIFLOOD' ? 'FLOOD_PROTECTION' : $value['status'];\n\n $value['status'] = $value['status'] === 'PASS_SFW__BY_COOKIE' ? null : $value['status'];\n $value['status'] = $value['status'] === 'PASS_SFW' ? null : $value['status'];\n $value['status'] = $value['status'] === 'DENY_SFW' ? null : $value['status'];\n\n $data[] = array(\n trim( $value['ip'] ), // IP\n $value['blocked_entries'], // Count showing of block pages\n $value['all_entries'] - $value['blocked_entries'], // Count passed requests after block pages\n $value['entries_timestamp'], // Last timestamp\n $value['status'], // Status\n $value['ua_name'], // User-Agent name\n $value['ua_id'], // User-Agent ID\n );\n\n }\n unset( $key, $value );\n\n //Sending the request\n $api_class = $this->api;\n $result = $api_class::methodSfwLogs( $this->api_key, $data );\n\n //Checking answer and deleting all lines from the table\n if( empty( $result['error'] ) ){\n if( $result['rows'] == count( $data ) ){\n $this->db->execute( \"TRUNCATE TABLE \" . $this->log_table_name . \";\" );\n return $result;\n }\n\n return array( 'error' => 'SENT_AND_RECEIVED_LOGS_COUNT_DOESNT_MACH' );\n }\n\n return $result;\n\n }\n\n return array( 'rows' => 0 );\n }",
"public function smtpLog(): array\n {\n return $this->smtpLog;\n }",
"public function messages()\n {\n return [\n\n ];\n }",
"public function dumpInfo() {\r\n\r\n $output = [];\r\n $output[\"R0\"] = $this->R0;\r\n $output[\"R1\"] = $this->R1;\r\n $output[\"R2\"] = $this->R2;\r\n $output[\"R3\"] = $this->R3;\r\n $output[\"R4\"] = $this->R4;\r\n $output[\"PC\"] = $this->PC;\r\n\r\n $output[\"AR1\"] = $this->AR1;\r\n $output[\"AR2\"] = $this->AR2;\r\n $output[\"MDR\"] = $this->MDR;\r\n $output[\"MAR\"] = $this->MAR;\r\n $output[\"IR\"] = $this->IR;\r\n\r\n $output[\"Z\"] = ($this->flags['Z']) ? '1' : '0';\r\n $output[\"N\"] = ($this->flags['N']) ? '1' : '0';\r\n $output[\"E\"] = ($this->flags['E']) ? '1' : '0';\r\n $output[\"L\"] = ($this->flags['L']) ? '1' : '0';\r\n $output[\"G\"] = ($this->flags['G']) ? '1' : '0';\r\n\r\n $output['log'] = array_map(function($e) {\r\n return ($e->__toString());\r\n }, $this->log);\r\n\r\n return $output;\r\n }",
"private function getDetails()\n {\n $details = array();\n $num_fields_added = 0;\n $num_fields_deleted = 0;\n $num_fields_modified = 0;\n $total_fields_before = sizeof($this->furthest_metadata);\n $total_fields_after = sizeof($this->latest_metadata);\n\n foreach($this->metadata_changes as $field => $metadata)\n {\n $new_metadata = $this->latest_metadata[$field];\n $old_metadata = $this->furthest_metadata[$field];\n\n // Check for fields added.\n if (!$old_metadata)\n {\n $num_fields_added++;\n }\n // Check for deleted fields.\n else if (!$new_metadata)\n {\n $num_fields_deleted++;\n }\n // Check for fields modified.\n else\n {\n $differences = array_diff_assoc($new_metadata, $old_metadata);\n if (!empty($differences))\n {\n $num_fields_modified++;\n }\n }\n }\n \n return array(\n \"num_fields_added\" => $num_fields_added,\n \"num_fields_deleted\" => $num_fields_deleted,\n \"num_fields_modified\" => $num_fields_modified,\n \"total_fields_before\" => $total_fields_before,\n \"total_fields_after\" => $total_fields_after\n );\n }",
"public function messages()\n {\n return [\n ];\n }",
"function get_messages_from_session() {\n $messages = CAsdf::Instance()->session->GetMessages();\n $html = null;\n if(!empty($messages)) {\n foreach($messages as $val) {\n $valid = array('info', 'notice', 'success', 'warning', 'error', 'alert');\n $class = (in_array($val['type'], $valid)) ? $val['type'] : 'info';\n $html .= \"<div class='$class'>{$val['message']}</div>\\n\";\n }\n }\n return $html;\n}",
"public function displayHistory()\n\t\t\t{\n\t\t\t\t$data_arr = array();\n\t\t\t\t$inc = 0;\n\n\t\t\t\twhile($row = $this->fetchResultRecord())\n\t\t\t\t\t{\n\t\t\t\t\t\t$uDetails = $this->isMemberJoined($row['email']);\n\t\t\t\t\t\t$statusClass = '';\n\t\t\t\t\t\t$status = $this->LANG['invitation_history_email_status_not_joined'];\n\t\t\t\t\t\tif ($uDetails)\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t$status = $this->LANG['invitation_history_email_status_joined'];\n\t\t\t\t\t\t }\n\n\t\t\t\t\t\t$data_arr[$inc]['date_added'] = $row['date_added'];\n\t\t\t\t\t\t$data_arr[$inc]['attempts'] = $row['attempts'];\n\t\t\t\t\t\t$data_arr[$inc]['email'] = $row['email'];\n\t\t\t\t\t\t$data_arr[$inc]['class'] = ($uDetails)?'clsJoined':'clsNotJoined';;\n\t\t\t\t\t\t$data_arr[$inc]['status'] = $status;\n\t\t\t\t\t\t$data_arr[$inc]['remind_url'] = getUrl('invitationhistory', '?action=remind&id='.$row['invitation_id'].'&start='.$this->fields_arr['start'], '?action=remind&id='.$row['invitation_id'].'&start='.$this->fields_arr['start']);\n\t\t\t\t\t\t$data_arr[$inc]['delete_url'] = getUrl('invitationhistory', '?action=delete&id='.$row['invitation_id'].'&start'.$this->fields_arr['start'], '?action=delete&id='.$row['invitation_id'].'&start'.$this->fields_arr['start']);\n\t\t\t\t\t\t$data_arr[$inc]['check_box_value'] = $row['invitation_id'];\n\t\t\t\t\t\t$inc++;\n\t\t\t\t\t}\n\t\t\t\treturn $data_arr;\n\t\t\t}",
"protected function getChangesForLog(): array\n {\n $params = Logbook::getObfuscator()->obfuscate(\n $this->getChanges(),\n $this->getAttributesToObfuscate()\n );\n\n return Logbook::getObfuscator()->hide(\n $params,\n $this->getAttributesToHide()\n );\n }",
"public function getLogs() {\n\t\tif(check($this->_identifier)) {\n\t\t\tif($this->_limit > 0) {\n\t\t\t\t$result = $this->db->queryFetch(\"SELECT * FROM \"._WE_CREDITSYSLOG_.\" WHERE `log_identifier` = ? ORDER BY `log_id` DESC LIMIT ?\", array($this->_identifier, $this->_limit));\n\t\t\t} else {\n\t\t\t\t$result = $this->db->queryFetch(\"SELECT * FROM \"._WE_CREDITSYSLOG_.\" WHERE `log_identifier` = ? ORDER BY `log_id` DESC\", array($this->_identifier));\n\t\t\t}\n\t\t} else {\n\t\t\tif($this->_limit > 0) {\n\t\t\t\t$result = $this->db->queryFetch(\"SELECT * FROM \"._WE_CREDITSYSLOG_.\" ORDER BY `log_id` DESC LIMIT ?\", array($this->_limit));\n\t\t\t} else {\n\t\t\t\t$result = $this->db->queryFetch(\"SELECT * FROM \"._WE_CREDITSYSLOG_.\" ORDER BY `log_id` DESC\");\n\t\t\t}\n\t\t}\n\t\tif(is_array($result)) return $result;\n\t}",
"public function export_array(){\n\n // Return all internal ability fields in array format\n return array(\n 'battle_id' => $this->battle_id,\n 'battle_name' => $this->battle_name,\n 'battle_token' => $this->battle_token,\n 'battle_description' => $this->battle_description,\n 'battle_turns' => $this->battle_turns,\n 'battle_rewards' => $this->battle_rewards,\n 'battle_zenny' => $this->battle_zenny,\n 'battle_level' => $this->battle_level,\n 'battle_attachments' => $this->battle_attachments,\n 'battle_base_name' => $this->battle_base_name,\n 'battle_base_token' => $this->battle_base_token,\n 'battle_base_description' => $this->battle_base_description,\n 'battle_base_turns' => $this->battle_base_turns,\n 'battle_base_rewards' => $this->battle_base_rewards,\n 'battle_base_zenny' => $this->battle_base_zenny,\n 'battle_base_level' => $this->battle_base_level,\n 'battle_base_attachments' => $this->battle_base_attachments,\n 'battle_counts' => $this->battle_counts,\n 'battle_status' => $this->battle_status,\n 'battle_result' => $this->battle_result,\n 'battle_robot_limit' => $this->battle_robot_limit,\n 'battle_field_base' => $this->battle_field_base,\n 'battle_target_player' => $this->battle_target_player,\n 'battle_complete_redirect_token' => $this->battle_complete_redirect_token,\n 'battle_complete_redirect_seed' => $this->battle_complete_redirect_seed,\n 'flags' => $this->flags,\n 'counters' => $this->counters,\n 'values' => $this->values,\n 'history' => $this->history\n );\n\n }",
"static private function _getMsgs()\n\t{\n\t\t$msgs = Factory::getInstance( 'Session' )->get( self::$var_name );\n\n\t\tif ( $msgs )\n\t\t{\n\t\t\treturn $msgs;\n\t\t}\n\n\t\treturn array();\n\t}",
"public function getLog(): array\n {\n return [];\n }",
"public function get_notifiable_logs(){\n $this->db->where('is_completed', 0);\n $this->db->where('has_follow_up', 1);\n $this->db->where('notified', 0);\n $this->db->where('TIMESTAMPDIFF(MINUTE, CURRENT_TIMESTAMP(), follow_up_schedule) <=', '30');\n return $this->db->get(db_prefix() . 'call_logs')->result_array();\n }",
"public function get_report_game_info($params) {\n $needle = array('server_id', 'service_name', 'service_id', 'type');\n if (is_required($params, $needle) == FALSE) {\n return array('status' => false, 'message' => 'INVALID_PARAMS');\n }\n\n $server_id = $params['server_id'];\n $time_stamp = date('Y-m-d H:i:s');\n $type = $params['type'];\n\n $data = array();\n $data['cmd'] = 'role_info';\n $data['server_id'] = (int) $server_id;\n $data['time_stamp'] = $time_stamp;\n $data['type'] = $type;\n // hash chữ ký\n $origin_data = $time_stamp . $server_id . $this->api_secret;\n\n $data['sign'] = md5($origin_data);\n\n // build url substract items\n $result = $this->call_api_post($this->api_topdata, json_encode($data), __FUNCTION__ . '_' . $params['service_name']);\n if (!empty($result)) {\n $result = json_decode($result, true);\n if ($result['result'] == 'ok')\n return array('status' => true, 'message' => 'GET_TOP_SUCCESS', 'data' => $result['data']);\n else\n return array('status' => false, 'message' => 'GET_TOP_FAIL');\n }\n return array('status' => false, 'message' => 'GET_TOP_FAIL');\n }",
"public function getTradeChatDetails($trade_id, $transaction_id, $debug = '') {\n\t\n $this->db->select('t.chat_id,t.trade_id,t.transaction_id,t.msg_from_user_id,t.contact_message,t.created_on,u.user_name');\n $this->db->from('trade_chat as t');\n $this->db->join('mst_users as u', 't.msg_from_user_id = u.user_id', 'inner');\n\n if ($trade_id != '')\n $this->db->where('t.trade_id', $trade_id);\n if ($transaction_id != '')\n $this->db->where('t.transaction_id', $transaction_id);\n\t\t\t\n\t\t$this->db->order_by('t.created_on DESC');\n\n $result = $this->db->get();\n\n if ($debug) {\n die($this->db->last_query());\n }\n return $result->result_array();\n }",
"public function messages() {\n return [\n ];\n }",
"public function messages() {\n return [\n ];\n }",
"public function getLogs () : array {\n\t\treturn $this->logs;\n\t}",
"public function getLogsData() : array {\n $logsData = [];\n $logs = $this->getLogs();\n\n foreach($logs as $log){\n $logsData[] = $log->getData();\n }\n\n return $logsData;\n }",
"function getVehicleLog(){\n\t$result = mysql_query(\"SELECT mobile FROM logbook\");\n\t$logbookarr = array();\n\t$counter = 0;\n\twhile($line = mysql_fetch_array($result, MYSQL_ASSOC)){\n\t\t$logbookarr[$counter] = $line['mobile'];\n\t\t$counter++;\n\t}\n\treturn $logbookarr;\n}",
"public function logs() {\n return $this['logs'];\n }",
"public function getLogs() {\n\n $logs = isset($this->data['logs']) ? $this->data['logs'] : array();\n\n return $logs;\n }",
"public function messages()\n {\n return [\n 'first_name' => '',\n 'last_name' => '',\n 'email' => '',\n 'birthdate' => '',\n ];\n }",
"public function getLog(){\n\t\t$request = $this->_sendPacketToController(self::GET_LOG);\n\t\tif ($request->getState() == self::STATE_OK) // If the packet is send sucefully\n\t\t\treturn $this->_getResponse(); // TODO mettre en forme la sortie\n\t\telse\n\t\t\treturn $request;\n\t}",
"public function getLogData(){\n\t\treturn $this->getNewsletterTemplateId();\n\t}",
"public function getOpenedMessagesToFollow()\n {\n $messages = TrackingLog::select('tracking_logs.*')->join('open_logs', 'tracking_logs.message_id', '=', 'open_logs.message_id')->join('auto_triggers', 'tracking_logs.auto_trigger_id', '=', 'auto_triggers.id')->join('auto_events', 'auto_triggers.auto_event_id', '=', 'auto_events.id')->where('auto_event_id', $this->previousEvent->id)->whereRaw(sprintf(table('tracking_logs') . '.subscriber_id NOT IN (SELECT COALESCE(subscriber_id, 0) FROM %s WHERE auto_event_id = %s)', table('auto_triggers'), $this->id))->get();\n\n // one message could be opened more than one time\n // @todo: use array_uniq_by() helper function for far better performance thant Collection::uniq()\n $unique = $messages->unique(function ($item) {\n return $item->message_id;\n });\n\n return $unique;\n }",
"public function messages()\n {\n return [];\n }",
"public function messages()\n {\n return [];\n }",
"public function messages()\n {\n return [];\n }",
"public function messages()\n {\n return [];\n }",
"public function messages()\n {\n return [];\n }",
"public function messages()\n {\n return [];\n }",
"public function messages()\n {\n return [];\n }",
"public function messages()\n {\n $messages = [];\n foreach($this->request->get('users') as $key => $val)\n {\n $messages['users.'. $key . '.name.max'] = 'The field labeled \"Name ' . $key . '\" must be less than :max characters.';\n $messages['users.'. $key . '.phone.max'] = 'The field labeled \"Phone ' . $key . '\" must be less than :max characters.';\n $messages['users.'. $key . '.name.min'] = 'The field labeled \"Name ' . $key . '\" must be more than :min characters.';\n $messages['users.'. $key . '.phone.min'] = 'The field labeled \"Phone ' . $key . '\" must be more than :min characters.';\n }\n return $messages;\n }",
"public function messages()\n {\n return [\n \n ];\n }"
] | [
"0.5992564",
"0.59583867",
"0.5849614",
"0.5846944",
"0.5765909",
"0.5758528",
"0.57425106",
"0.5703975",
"0.56327254",
"0.56302947",
"0.5580207",
"0.55665827",
"0.5514092",
"0.5499748",
"0.5498985",
"0.5496919",
"0.5432442",
"0.54047894",
"0.5381422",
"0.53557956",
"0.5353696",
"0.533947",
"0.53390527",
"0.53362",
"0.5335322",
"0.53320086",
"0.5309712",
"0.53067744",
"0.5295375",
"0.52803254",
"0.52684724",
"0.52594393",
"0.52571064",
"0.52571064",
"0.52571064",
"0.5255069",
"0.52514225",
"0.5246434",
"0.52196354",
"0.52196354",
"0.52196354",
"0.52196354",
"0.52196354",
"0.52196354",
"0.52196354",
"0.52196354",
"0.5207176",
"0.52025676",
"0.5199232",
"0.5198846",
"0.519546",
"0.51935494",
"0.5192848",
"0.5172626",
"0.51668704",
"0.51668704",
"0.51668704",
"0.51668704",
"0.51668704",
"0.51668704",
"0.51668704",
"0.5161671",
"0.5161671",
"0.51592016",
"0.51526135",
"0.5144874",
"0.5141836",
"0.5130952",
"0.5117605",
"0.51082325",
"0.51050323",
"0.5094338",
"0.5093828",
"0.5088363",
"0.5084195",
"0.50754744",
"0.50732684",
"0.5062894",
"0.5062259",
"0.50525373",
"0.5050707",
"0.5050707",
"0.5049548",
"0.50443465",
"0.5038048",
"0.5037941",
"0.5031408",
"0.5028921",
"0.50282824",
"0.5027705",
"0.50245494",
"0.50217533",
"0.50217533",
"0.50217533",
"0.50217533",
"0.50217533",
"0.50217533",
"0.50217533",
"0.50178707",
"0.5012996"
] | 0.74417436 | 0 |
Attaches the Battleeffect to the Battle "Override" by specialness classes by using these commands: $battle>onBeforeAction = array($this, 'reactToOnBeforeAction'); $battle>onAfterAction = array($this, 'reactToOnAfterAction'); $battle>onBeforeDealingDamage = array($this, 'reactToOnBeforeDealingDamage'); $battle>onAfterDealingDamage = array($this, 'reactToOnAfterDealingDamage'); $battle>onBeforeTakingDamage = array($this, 'reactToOnBeforeTakingDamage'); $battle>onAfterTakingDamage = array($this, 'reactToOnAfterTakingDamage'); | public function attachToBattle($battle) {
$battle->onAfterRound = array($this, 'reactToOnAfterRound');
if($this->blocks) {
$battle->onBeforeAction = array($this, 'reactToOnBeforeAction');
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function addEffect($Effect) {\n $Effect->call(\"attachToBattle\", $this);\n $this->battleeffects->add($Effect);\n }",
"public function implement_all_effects()\n\t{\n\t\tforeach ($this->collection as $image)\n\t\t{\n\t\t\t$image->implement_effects();\n\t\t}\n\t}",
"public function applyBehaviors()\n {\n foreach ($this->behaviors as $behavior) {\n if (!$behavior->isEntityModified()) {\n $behavior->getEntityModifier()->modifyEntity();\n $behavior->setEntityModified(true);\n }\n }\n }",
"function Add_Ability_Bonuses(&$character1) {\r\n\t\t$positions = array(\"head\", \"neck\", \"torso\", \"cloak\", \"weaponr\", \"weaponl\", \"ringr\", \"ringl\", \"bracer\", \"belt\", \"feet\");\r\n\t\t$attributes = array(\"str\", \"dex\", \"con\", \"intel\", \"wis\", \"cha\");\r\n\t\tforeach($positions as $key=>$position) {\r\n\t\t\tforeach($attributes as $key=>$attrib) {\r\n\t\t\t\tif(!empty($_SESSION['modifiers'][$position][$attrib])) \r\n\t\t\t\t{\r\n\t\t\t\t\t$character1[$attrib] = $character1[$attrib] + $_SESSION['modifiers'][$position][$attrib];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public function hooks()\n {\n foreach ($this->getActions() as $key => $action) {\n switch (true) {\n case $action instanceof HooksAdminInterface:\n if (is_admin()) {\n $action->hooks();\n }\n break;\n case $action instanceof HooksFrontInterface:\n if (!is_admin()) {\n $action->hooks();\n }\n break;\n case $action instanceof HooksInterface:\n $action->hooks();\n break;\n }\n }\n }",
"public function effect1()\n {\n }",
"public static function ability_function_forward_attack($objects, $target_options, $damage_options, $recovery_options, $effect_options = array()){\n\n // Define defaults for undefined target options\n if (!isset($target_options['stat_kind'])){ $target_options['stat_kind'] = 'energy'; }\n if (!isset($target_options['robot_frame'])){ $target_options['robot_frame'] = 'shoot'; }\n if (!isset($target_options['robot_kickback'])){ $target_options['robot_kickback'] = array(0, 0, 0); }\n if (!isset($target_options['ability_frame'])){ $target_options['ability_frame'] = 0; }\n if (!isset($target_options['ability_offset'])){ $target_options['ability_offset'] = array(110, 0, 10); }\n if (!isset($target_options['ability_text'])){ $target_options['ability_text'] = '{this_robot_name} uses the {this_ability_name}!'; }\n\n // Define defaults for undefined damage options\n if (!isset($damage_options['robot_frame'])){ $damage_options['robot_frame'] = 'damage'; }\n if (!isset($damage_options['robot_kickback'])){ $damage_options['robot_kickback'] = array(10, 0, 0); }\n if (!isset($damage_options['ability_sucess_frame'])){ $damage_options['ability_sucess_frame'] = 4; }\n if (!isset($damage_options['ability_success_offset'])){ $damage_options['ability_success_offset'] = array(-90, 0, 10); }\n if (!isset($damage_options['ability_success_text'])){ $damage_options['ability_success_text'] = 'The {this_ability_name} hit the target!'; }\n if (!isset($damage_options['ability_failure_frame'])){ $damage_options['ability_failure_frame'] = 4; }\n if (!isset($damage_options['ability_failure_offset'])){ $damage_options['ability_failure_offset'] = array(-100, 0, -10); }\n if (!isset($damage_options['ability_failure_text'])){ $damage_options['ability_failure_text'] = 'The {this_ability_name} missed...'; }\n\n // Define defaults for undefined recovery options\n if (!isset($recovery_options['robot_frame'])){ $recovery_options['robot_frame'] = 'taunt'; }\n if (!isset($recovery_options['robot_kickback'])){ $recovery_options['robot_kickback'] = array(0, 0, 0); }\n if (!isset($recovery_options['ability_sucess_frame'])){ $recovery_options['ability_sucess_frame'] = 4; }\n if (!isset($recovery_options['ability_success_offset'])){ $recovery_options['ability_success_offset'] = array(-45, 0, 10); }\n if (!isset($recovery_options['ability_success_text'])){ $recovery_options['ability_success_text'] = 'The {this_ability_name} was absorbed by the target!'; }\n if (!isset($recovery_options['ability_failure_frame'])){ $recovery_options['ability_failure_frame'] = 4; }\n if (!isset($recovery_options['ability_failure_offset'])){ $recovery_options['ability_failure_offset'] = array(-100, 0, -10); }\n if (!isset($recovery_options['ability_failure_text'])){ $recovery_options['ability_failure_text'] = 'The {this_ability_name} had no effect on the target...'; }\n\n // Define defaults for undefined effect options\n if (!isset($effect_options['stat_kind'])){ $effect_options = false; }\n else {\n if (!isset($effect_options['damage_text'])){ $effect_options['damage_text'] = '{this_robot_name}\\'s stats were damaged!'; }\n if (!isset($effect_options['recovery_text'])){ $effect_options['recovery_text'] = '{this_robot_name}\\'s stats improved!'; }\n if (!isset($effect_options['effect_chance'])){ $effect_options['effect_chance'] = 50; }\n }\n\n // Extract all objects into the current scope\n extract($objects);\n\n // Define Search and replace object strings for replacing\n $search_replace = array();\n $search_replace['this_player_name'] = $this_player->print_player_name();\n $search_replace['this_robot_name'] = $this_robot->print_robot_name();\n $search_replace['target_player_name'] = $target_player->print_player_name();\n $search_replace['target_robot_name'] = $target_robot->print_robot_name();\n $search_replace['this_ability_name'] = $this_ability->print_ability_name();\n\n // Run the obtion arrays through the parsing function\n $target_options = self::parse_string_variables($search_replace, $target_options);\n $damage_options = self::parse_string_variables($search_replace, $damage_options);\n $recovery_options = self::parse_string_variables($search_replace, $recovery_options);\n if (!empty($effect_options)){\n $effect_options = self::parse_string_variables($search_replace, $effect_options);\n }\n\n // Update target options for this ability\n $this_ability->target_options_update(array(\n 'frame' => $target_options['robot_frame'],\n 'kickback' => $target_options['robot_kickback'],\n 'success' => array(\n $target_options['ability_frame'],\n $target_options['ability_offset'][0],\n $target_options['ability_offset'][1],\n $target_options['ability_offset'][2],\n $target_options['ability_text']\n )\n ));\n\n // Update damage options for this ability\n $this_ability->damage_options_update(array(\n 'kind' => $target_options['stat_kind'],\n 'frame' => $damage_options['robot_frame'],\n 'kickback' => $damage_options['robot_kickback'],\n 'success' => array(\n $damage_options['ability_sucess_frame'],\n $damage_options['ability_success_offset'][0],\n $damage_options['ability_success_offset'][1],\n $damage_options['ability_success_offset'][2],\n $damage_options['ability_success_text']\n ),\n 'failure' => array(\n $damage_options['ability_failure_frame'],\n $damage_options['ability_failure_offset'][0],\n $damage_options['ability_failure_offset'][1],\n $damage_options['ability_failure_offset'][2],\n $damage_options['ability_failure_text']\n )\n ));\n\n // Update recovery options for this ability\n $this_ability->recovery_options_update(array(\n 'kind' => $target_options['stat_kind'],\n 'frame' => $recovery_options['robot_frame'],\n 'kickback' => $recovery_options['robot_kickback'],\n 'success' => array(\n $recovery_options['ability_sucess_frame'],\n $recovery_options['ability_success_offset'][0],\n $recovery_options['ability_success_offset'][1],\n $recovery_options['ability_success_offset'][2],\n $recovery_options['ability_success_text']\n ),\n 'failure' => array(\n $damage_options['ability_failure_frame'],\n $damage_options['ability_failure_offset'][0],\n $damage_options['ability_failure_offset'][1],\n $damage_options['ability_failure_offset'][2],\n $damage_options['ability_failure_text']\n )\n ));\n\n\n // Target the opposing robot with this ability\n $this_robot->trigger_target($target_robot, $this_ability);\n\n // Attempt to inflict damage on the opposing robot\n $stat_damage_amount = $this_ability->ability_damage;\n $target_robot->trigger_damage($this_robot, $this_ability, $stat_damage_amount);\n\n // Only apply a secondary affect if one was defined\n if (!empty($effect_options)){\n\n // Define the stat property strings\n $robot_stat_prop = 'robot_'.$effect_options['stat_kind'];\n\n // Trigger effect if target isn't disabled and ability was successful and chance\n if (\n $target_robot->robot_status != 'disabled' &&\n $this_ability->ability_results['this_result'] != 'failure' &&\n $this_ability->ability_results['this_amount'] > 0 &&\n $target_robot->$robot_stat_prop > 0 &&\n ($effect_options['effect_chance'] == 100 || $this_battle->critical_chance($effect_options['effect_chance']))\n ){\n\n // Define the default damage options for the stat effect\n $this_ability->damage_options_update(array(\n 'kind' => $effect_options['stat_kind'],\n 'frame' => 'defend',\n 'percent' => true,\n 'kickback' => array(10, 0, 0),\n 'success' => array(9, 0, 0, -10, $effect_options['damage_text']),\n 'failure' => array(9, 0, 0, -9999, '')\n ));\n\n // Define the default recovery options for the stat effect\n $this_ability->recovery_options_update(array(\n 'kind' => $effect_options['stat_kind'],\n 'frame' => 'taunt',\n 'percent' => true,\n 'kickback' => array(0, 0, 0),\n 'success' => array(9, 0, 0, -10, $effect_options['recovery_text']),\n 'failure' => array(9, 0, 0, -9999, '')\n ));\n\n // Calculate the exact damage amount and trigger it on the target\n $trigger_options = array('apply_modifiers' => false);\n $stat_damage_amount = ceil($target_robot->$robot_stat_prop * ($this_ability->ability_damage2 / 100));\n $target_robot->trigger_damage($this_robot, $this_ability, $stat_damage_amount, true, $trigger_options);\n }\n\n }\n\n // Return true on success\n return true;\n\n }",
"function stDogmaEffect() {\n $current_effect_type = self::getGameStateValue('current_effect_type');\n $current_effect_number = self::getGameStateValue('current_effect_number');\n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n $qualified_effect = self::qualifyEffect($current_effect_type, $current_effect_number, $card);\n \n // Search for the first player who will undergo/share the effects, if any\n $first_player = self::getFirstPlayerUnderEffect($current_effect_type);\n if ($first_player === null) {\n // There is no player affected by the effect\n self::notifyGeneralInfo(\"<span class='minor_information'>\" . clienttranslate('Nobody is affected by the ${qualified_effect} of the card.') . \"</span>\", array(\n 'i18n' => array('qualified_effect'),\n 'qualified_effect' => $qualified_effect\n ));\n \n // End of the effect\n self::trace('dogmaEffect->interDogmaEffect');\n $this->gamestate->nextState('interDogmaEffect');\n return;\n }\n \n self::setGameStateValue('current_player_under_dogma_effect', $first_player);\n $this->gamestate->changeActivePlayer($first_player);\n \n // Begin the loop with this player\n self::trace('dogmaEffect->playerInvolvedTurn');\n $this->gamestate->nextState('playerInvolvedTurn');\n }",
"public function applyDamage()\n\t\t{\n\t\t\tforeach ($this->_members as $member)\n\t\t\t{\n\t\t\t\tif ($member->_alive)\n\t\t\t\t{\n\t\t\t\t\t$member->takeDamage();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"private function attack()\n {\n $this->tempAttackerStats = $this->attacker->stats;\n $this->tempDefenderStats = $this->defender->stats;\n\n // 1. Before hit check, apply all luck modifying skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills, \n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 2. Check if attack is evaded\n $luck = $this->tempDefenderStats[Character::STAT_LUCK];\n if ($luck != 0 && $this->chance($luck)) {\n return $this->status = self::STATUS_MISSED;\n }\n\n // 3. Apply stat modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 4. Calculate the damage\n $strength = $this->tempAttackerStats[Character::STAT_STRENGTH];\n $defence = $this->tempDefenderStats[Character::STAT_DEFENCE];\n\n $this->damage = max(0, $strength - $defence);\n\n // 5. Apply damage modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_ATTACKER, $this->damage);\n }\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_DEFENDER, $this->damage);\n }\n );\n\n // 6. Apply the final damage\n $this->defender->stats[Character::STAT_HEALTH] =\n max(0, $this->defender->stats[Character::STAT_HEALTH] - $this->damage);\n\n $this->status = self::STATUS_COMPLETED;\n }",
"function stPlayerInvolvedTurn() {\n $player_id = self::getGameStateValue('current_player_under_dogma_effect');\n $launcher_id = self::getGameStateValue('active_player');\n $nested_id_1 = self::getGameStateValue('nested_id_1');\n $card_id = $nested_id_1 == -1 ? self::getGameStateValue('dogma_card_id') : $nested_id_1 ;\n $current_effect_type = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_type') : 1 /* Non-demand effects only*/;\n $current_effect_number = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_number') : self::getGameStateValue('nested_current_effect_number_1');\n $step_max = null;\n $step = null;\n \n $qualified_effect = self::qualifyEffect($current_effect_type, $current_effect_number, self::getCardInfo($card_id)); \n self::notifyEffectOnPlayer($qualified_effect, $player_id, $launcher_id);\n \n $crown = self::getIconSquare(1);\n $leaf = self::getIconSquare(2);\n $lightbulb = self::getIconSquare(3);\n $tower = self::getIconSquare(4);\n $factory = self::getIconSquare(5);\n $clock = self::getIconSquare(6);\n \n try {\n //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n // [A] SPECIFIC CODE: what are the automatic actions to make and/or is there interaction needed?\n $code = $card_id.($current_effect_type == 0 ? \"D\" : \"N\" ).$current_effect_number;\n self::trace('[A]'.$code.' '.self::getPlayerNameFromId($player_id).'('.$player_id.')'.' | '.self::getPlayerNameFromId($launcher_id).'('.$launcher_id.')');\n switch($code) {\n // The first number is the id of the card\n // D1 means the first (and single) I demand effect\n // N1 means the first non-demand effect\n // N2 means the second non-demand effect\n // N3 means the third non-demand effect\n \n // Setting the $step_max variable means there is interaction needed with the player\n \n // id 0, age 1: Pottery\n case \"0N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"0N2\":\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n break;\n\n // id 1, age 1: Tools\n case \"1N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"1N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 2, age 1: Writing\n case \"2N1\":\n self::executeDraw($player_id, 2); // \"Draw a 2\"\n break;\n \n // id 3, age 1: Archery\n case \"3D1\":\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 4, age 1: Metalworking\n case \"4N1\":\n while(true) {\n $card = self::executeDraw($player_id, 1, 'revealed'); // \"Draw and reveal a 1\"\n if (self::hasRessource($card, 4)) { // \"If it as tower\"\n self::notifyGeneralInfo(clienttranslate('It has a ${tower}.'), array('tower' => $tower));\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score it\"\n continue; // \"Repeat this dogma effect\"\n }\n break; // \"Otherwise\" \n }\n self::notifyGeneralInfo(clienttranslate('It does not have a ${tower}.'), array('tower' => $tower));\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep it\"\n break;\n \n // id 5, age 1: Oars\n case \"5D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"5N1\":\n if (self::getGameStateValue('auxiliary_value') <= 0) { // \"If no cards were transfered due to this demand\"\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n }\n break;\n \n // id 6, age 1: Clothing\n case \"6N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"6N2\":\n // \"Score a 1 for each color present on your board not present on any other player board\"\n // Compute the number of specific colors\n $number_to_be_scored = 0;\n $players = self::loadPlayersBasicInfos();\n $boards = self::getAllBoards($players);\n for ($color = 0; $color < 5; $color++) { // Evaluate each color\n if (count($boards[$player_id][$color]) == 0) { // The player does not have this color => no point\n continue;\n }\n // The player has this color, do opponents have?\n $color_on_opponent_board = false;\n foreach($players as $other_player_id => $player) {\n if ($other_player_id == $player_id || $other_player_id == self::getPlayerTeammate($player_id)) {\n continue; // Skip the player being evaluated and his teammate\n }\n if (count($boards[$other_player_id][$color]) > 0) { // This opponent has this color => no point\n $color_on_opponent_board = true;\n break;\n }\n }\n if (!$color_on_opponent_board) { // The opponents do not have this color => point\n $number_to_be_scored++;\n }\n }\n // Indicate this number\n if ($number_to_be_scored == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no specific color on your board.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no specific color on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else if ($number_to_be_scored == 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have one specific color on your board.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has one specific color on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else {\n $translated_number = self::getTranslatedNumber($number_to_be_scored);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} specific colors on your board.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $translated_number));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} specific colors on his board.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $translated_number));\n }\n // Score this number of times\n for ($i=0; $i < $number_to_be_scored; $i++) {\n self::executeDraw($player_id, 1, 'score');\n }\n break;\n \n // id 7, age 1: Sailing\n case \"7N1\":\n self::executeDraw($player_id, 1, 'board'); // \"Draw and meld a 1\"\n break;\n \n // id 8, age 1: The wheel\n case \"8N1\":\n self::executeDraw($player_id, 1); // \"Draw two 1\"\n self::executeDraw($player_id, 1); // \n break;\n \n // id 9, age 1: Agriculture\n case \"9N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 10, age 1: Domestication\n case \"10N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 11, age 1: Masonry\n case \"11N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 12, age 1: City states\n case \"12D1\":\n $number_of_towers = self::getUniqueValueFromDB(self::format(\"\n SELECT\n player_icon_count_4\n FROM\n player\n WHERE\n player_id = {player_id}\n \",\n array('player_id' => $player_id)\n ));\n \n if ($number_of_towers >= 4) { // \"If you have at least four towers on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least four ${icon} on your board.'), array('You' => 'You', 'icon' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least four ${icon} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'icon' => $tower));\n $step_max = 1; // --> 1 interaction: see B\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have less than four ${icon} on your board.'), array('You' => 'You', 'icon' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has less than four ${icon} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'icon' => $tower));\n }\n break;\n \n // id 13, age 1: Code of laws\n case \"13N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 14, age 1: Mysticism\n case \"14N1\":\n $card = self::executeDraw($player_id, 1, 'revealed'); // \"Draw and reveal a 1\n $color = $card['color'];\n if (self::hasThisColorOnBoard($player_id, $color)) { // \"If it is the same color of any card on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('This card is ${color}; ${you} have this color on your board.'), array('i18n' => array('color'), 'you' => 'you', 'color' => self::getColorInClear($color)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('This card is ${color}; ${player_name} has this color on his board.'), array('i18n' => array('color'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'color' => self::getColorInClear($color)));\n self::transferCardFromTo($card, $player_id, 'board'); // \"Meld it\"\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('This card is ${color}; ${you} do not have this color on your board.'), array('i18n' => array('color'), 'you' => 'you', 'color' => self::getColorInClear($color)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('This card is ${color}; ${player_name} does not have this color on his board.'), array('i18n' => array('color'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'color' => self::getColorInClear($color)));\n self::transferCardFromTo($card, $player_id, 'hand'); // (Put the card in your hand)\n }\n break;\n \n // id 15, age 2: Calendar\n case \"15N1\":\n if (self::countCardsInLocation($player_id, 'score') > self::countCardsInLocation($player_id, 'hand')) { // \"If you have more cards in your score pile than in your hand\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have more cards in your score pile than in your hand.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has more cards in his score pile than in his hand.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n \n self::executeDraw($player_id, 3); // \"Draw two 3\"\n self::executeDraw($player_id, 3); // \n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} do not have more cards in your score pile than in your hand.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} does not have more cards in his score pile than in his hand.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n break;\n \n // id 16, age 2: Mathematics\n case \"16N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 17, age 2: Construction\n case \"17D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"17N1\":\n $boards = self::getAllBoards(self::loadPlayersBasicInfos());\n $eligible = true;\n foreach($boards as $current_id => $board) {\n if ($current_id == self::getPlayerTeammate($player_id)) { // Ignore teammate\n continue;\n }\n $number_of_top_cards = 0;\n for($color=0; $color<5; $color++) {\n if (count($board[$color]) > 0) { // This player has a top card for this color.\n $number_of_top_cards++;\n }\n }\n if ($current_id == $player_id && $number_of_top_cards < 5 || $current_id != $player_id && $number_of_top_cards == 5) { // This player is the active player and has not 5 top cards, or he is an opponent who has 5 top cards\n $eligible = false;\n }\n }\n if ($eligible) { // \"If you are the only player with five top cards\"\n $achievement = self::getCardInfo(105);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} are the only player with five top cards.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} is the only player with five top cards.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Empire achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} are the only player with five top cards but the Empire achievement has already been claimed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} is the only player with five top cards but the Empire achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n }\n break;\n \n // id 18, age 2: Road building\n case \"18N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 19, age 2: Currency\n case \"19N1\":\n self::setGameStateValueFromArray('auxiliary_value', array());\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 20, age 2: Mapmaking\n case \"20D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"20N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n self::executeDraw($player_id, 1, 'score'); // \"Draw and score a 1\"\n }\n break;\n \n // id 21, age 2: Canal building \n case \"21N1\":\n if (self::countCardsInLocation($player_id, 'score') == 0 && self::countCardsInLocation($player_id, 'hand') == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no cards in your hand or score pile to exchange.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no cards in their hand or score pile to exchange.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n } else {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 22, age 2: Fermenting \n case \"22N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number = 0;\n for($color=0; $color<5; $color++) {\n if (self::boardPileHasRessource($player_id, $color, 2 /* leaf */)) { // There is at least one visible leaf in that color\n $number++;\n }\n }\n if ($number <= 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color with one or more visible ${leaves}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color with one or more ${leaves}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n }\n else { // $number > 1\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors with one or more visible ${leaves}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors with one or more ${leaves}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n }\n // \"For each color of your board that have one leaf or more\"\n }\n else {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2 /* leaf */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${leaves}.'), array('You' => 'You', 'n' => $number_of_leaves, 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${leaves}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_leaves, 'leaves' => $leaf));\n $number = self::intDivision($number_of_leaves,2); // \"For every two leaves on your board\"\n }\n \n for($i=0; $i<$number; $i++) {\n self::executeDraw($player_id, 2); // \"Draw a 2\"\n }\n break;\n \n // id 23, age 2: Monotheism \n case \"23D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"23N1\":\n self::executeDraw($player_id, 1, 'board', true); // \"Draw and tuck a 1\"\n break;\n \n // id 24, age 2: Philosophy \n case \"24N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"24N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 25, age 3: Alchemy \n case \"25N1\":\n $number_of_towers = self::getPlayerSingleRessourceCount($player_id, 4);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${towers}.'), array('You' => 'You', 'n' => $number_of_towers, 'towers' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${towers}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_towers, 'towers' => $tower));\n $any_card_red = false;\n $cards = array();\n for($i=0; $i<self::intDivision($number_of_towers,3); $i++) { // \"For every three towers on your board\"\n $card = self::executeDraw($player_id, 4, 'revealed'); // \"Draw and reveal a 4\"\n if ($card['color'] == 1) { // This card is red\n $any_card_red = true;\n }\n $cards[] = $card;\n }\n \n if ($any_card_red) { // \"If any of the drawn cards are red\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} drew a red card.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} drew a red card.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n\n $step_max = 1; // --> 1 interactions: see B\n }\n else { // \"Otherwise\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} did not draw a red card.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} did not draw a red card.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n foreach($cards as $card) {\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep them\" (ie place them in your hand)\n }\n }\n break;\n \n case \"25N2\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 26, age 3: Translation \n case \"26N1\":\n $step_max = 1; // --> 1 interactions: see B\n break;\n \n case \"26N2\":\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && !self::hasRessource($top_card, 1)) { // This top card is present, with no crown on it\n $eligible = false;\n }\n }\n if ($eligible) { // \"If each card on your board has a crown\"\n $achievement = self::getCardInfo(108);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('Each top card on ${your} board has a ${crown}.'), array('your' => 'your', 'crown' => $crown));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('Each top card on ${player_name} board has a ${crown}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'crown' => $crown));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the World achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('Each top card on ${your} board has a ${crown} but the Empire achievement has already been claimed.'), array('your' => 'your', 'crown' => $crown));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('Each top card on ${player_name} board has a ${crown} but the World achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'crown' => $crown));\n }\n }\n break;\n \n // id 27, age 3: Engineering \n case \"27D1\":\n // \"I demand you transfer all top cards with a tower from your board to my score pile\"\n $no_top_card_with_tower = true;\n for($color = 0; $color < 5 ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && self::hasRessource($top_card, 4)) { // This top card is present, with a tower on it\n $no_top_card_with_tower = false;\n self::transferCardFromTo($top_card, $launcher_id, 'score');\n }\n }\n if ($no_top_card_with_tower) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no top card with a ${tower} on your board.'), array('You' => 'You', 'tower' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no top card with a ${tower} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'tower' => $tower));\n }\n break;\n \n case \"27N1\":\n $step_max = 1; // --> 1 interactions: see B\n break;\n \n // id 28, age 3: Optics \n case \"28N1\":\n $card = self::executeDraw($player_id, 3, 'board'); // \"Draw and meld a 3\"\n if (self::hasRessource($card, 1)) { // \"If it has a crown\"\n self::notifyGeneralInfo(clienttranslate('It has a ${crown}.'), array('crown' => $crown));\n self::executeDraw($player_id, 4, 'score'); // \"Draw and score a 4\"\n }\n else { // \"Otherwise\"\n self::notifyGeneralInfo(clienttranslate('It does not have a ${crown}.'), array('crown' => $crown));\n $number_of_players_with_fewer_points = self::getUniqueValueFromDB(self::format(\"\n SELECT\n COUNT(*)\n FROM\n player\n WHERE\n player_id <> {player_id} AND\n player_innovation_score < (\n SELECT\n player_innovation_score\n FROM\n player\n WHERE\n player_id = {player_id}\n ) AND\n player_team <> (\n SELECT\n player_team\n FROM\n player\n WHERE\n player_id = {player_id}\n )\n \"\n ,\n array('player_id' => $player_id)\n ));\n if ($number_of_players_with_fewer_points == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('There is no opponent who has fewer points than ${you}.'), array('you' => 'you'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('There is no opponent who has fewer points than ${player_name}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else {\n $step_max = 2; // --> 2 interactions: see B\n }\n }\n break;\n \n // id 29, age 3: Compass\n case \"29D1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 30, age 3: Paper \n case \"30N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"30N2\":\n $number_of_colors_splayed_left = 0;\n for($color = 0; $color < 5 ; $color++) {\n if (self::getCurrentSplayDirection($player_id, $color) == 1 /* left */) {\n $number_of_colors_splayed_left++;\n }\n }\n if ($number_of_colors_splayed_left < 2) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color splayed left.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $number_of_colors_splayed_left));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color splayed left.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_colors_splayed_left));\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors splayed left.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $number_of_colors_splayed_left));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors splayed left.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_colors_splayed_left));\n }\n \n for($i=0;$i<$number_of_colors_splayed_left;$i++) { // For every color you have splayed left\n self::executeDraw($player_id, 4); // Draw a 4\n }\n break;\n \n // id 31, age 3: Machinery \n case \"31D1\":\n // \"Exchange all the cards in your hand with all the highest cards in my hand\"\n \n // Get cards in hand\n $ids_of_cards_in_player_hand = self::getIdsOfCardsInLocation($player_id, 'hand');\n $ids_of_highest_cards_in_launcher_hand = self::getIdsOfHighestCardsInLocation($launcher_id, 'hand');\n \n // Make the transfers\n foreach($ids_of_cards_in_player_hand as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $launcher_id, 'hand');\n }\n foreach($ids_of_highest_cards_in_launcher_hand as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $player_id, 'hand');\n }\n break;\n \n case \"31N1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 32, age 3: Medicine \n case \"32D1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 33, age 3: Education \n case \"33N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 34, age 3: Feudalism \n case \"34D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"34N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 35, age 4: Experimentation \n case \"35N1\":\n self::executeDraw($player_id, 5, 'board'); // \"Draw and meld a 5\"\n break;\n \n // id 36, age 4: Printing press \n case \"36N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"36N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 37, age 4: Colonialism\n case \"37N1\":\n do {\n $card = self::executeDraw($player_id, 3, 'board', true); // \"Draw and tuck a 3\"\n } while(self::hasRessource($card, 1 /* crown */)); // \"If it has a crown, repeat this dogma effect\"\n break;\n \n // id 38, age 4: Gunpowder\n case \"38D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"38N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n self::executeDraw($player_id, 2, 'score'); // \"Draw and score a 2\"\n }\n break;\n \n // id 39, age 4: Invention\n case \"39N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"39N2\":\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n if (self::getCurrentSplayDirection($player_id, $color) == 0) { // This color is missing or unsplayed\n $eligible = false;\n };\n }\n if ($eligible) { // \"If you have colors splayed, each in any direction\"\n $achievement = self::getCardInfo(107);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have all your five colors splayed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has all his five colors splayed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Wonder achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have all your five colors splayed but the Wonder achievement has already been claimed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has all his five colors splayed but the Wonder achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n }\n break;\n \n // id 40, age 4: Navigation\n case \"40D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 41, age 4: Anatomy\n case \"41D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 42, age 4: Perspective\n case \"42N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 43, age 4: Enterprise\n case \"43D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"43N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 44, age 4: Reformation\n case \"44N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"44N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 45, age 5: Chemistry\n case \"45N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"45N2\":\n // \"Draw and score a card of value one higher than the highest top card on your board\"\n self::executeDraw($player_id, self::getMaxAgeOnBoardTopCards($player_id) + 1, 'score');\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 46, age 5: Physics\n case \"46N1\":\n $cards = array();\n $colors = array();\n $same_color = false;\n for($i=0; $i<3; $i++) { // \"Three times\"\n $card = self::executeDraw($player_id, 6, 'revealed'); // \"Draw and reveal a 6\"\n if (in_array($card['color'], $colors)) { // This card has the same color than one that has already been drawn\n $same_color = true;\n }\n else {\n $colors[] = $card['color'];\n }\n $cards[] = $card;\n }\n \n if ($same_color) { // \"If two or more cards are the same color\"\n $step_max = 1; // --> 1 interactions: see B\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} drew two cards of the same color.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} drew two cards of the same color.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else { // \"Otherwise\"\n self::notifyPlayer($player_id, 'log', clienttranslate('All the cards ${you} drew have different colors.'), array('you' => 'you'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All the cards ${player_name} drew have different colors.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n foreach($cards as $card) {\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep them\" (ie place them in your hand)\n }\n }\n break;\n \n // id 47, age 5: Coal\n case \"47N1\":\n self::executeDraw($player_id, 5, 'board', true); // \"Draw and tuck a 5\"\n break;\n\n case \"47N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"47N3\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 48, age 5: The pirate code\n case \"48D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"48N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 49, age 5: Banking\n case \"49D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"49N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 50, age 5: Measurement\n case \"50N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 51, age 5: Statistics\n case \"51D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n // Get highest cards in score\n $ids_of_highest_cards_in_score = self::getIdsOfHighestCardsInLocation($player_id, 'score');\n\n // Make the transfers\n foreach($ids_of_highest_cards_in_score as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Transfer all the highest cards in your score pile to your hand\"\n }\n }\n else { // First edition\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n\n case \"51N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 52, age 5: Steam engine\n case \"52N1\":\n self::executeDraw($player_id, 4, 'board', true); // \"Draw and tuck two 1\"\n self::executeDraw($player_id, 4, 'board', true); //\n $card = self::getBottomCardOnBoard($player_id, 3 /* yellow */);\n if ($card !== null) {\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score your bottom yellow card\"\n }\n break;\n \n // id 53, age 5: Astronomy\n case \"53N1\":\n while(true) {\n $card = self::executeDraw($player_id, 6, 'revealed'); // \"Draw and reveal a 6\"\n if ($card['color'] != 0 /* blue */ && $card['color'] != 2 /* green */) {\n self::notifyGeneralInfo(clienttranslate(\"This card is neither blue nor green.\"));\n break; // \"Otherwise\"\n };\n // \"If the card is green or blue\"\n self::notifyGeneralInfo($card['color'] == 0 ? clienttranslate(\"This card is blue.\") : clienttranslate(\"This card is green.\"));\n self::transferCardFromTo($card, $player_id, 'board'); // \"Meld it\"\n }\n self::transferCardFromTo($card, $player_id, 'hand'); // (\"Keep it\")\n break;\n \n case \"53N2\":\n $eligible = true;\n for($color = 0; $color < 4 /* purple is not tested */ ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && $top_card['age'] < 6) { // This top card is value 5 or fewer\n $eligible = false;\n }\n }\n if ($eligible) { // \"If all your non-purple top cards on your board are value 6 or higher\"\n $achievement = self::getCardInfo(109);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('All non-purple top cards on ${your} board are value ${age_6} or higher.'), array('your' => 'your', 'age_6' => self::getAgeSquare(6)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All non-purple top cards on ${player_name}\\'s board are value ${age_6} or higher.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'age_6' => self::getAgeSquare(6)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Universe achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('All non-purple top cards on ${your} board are value ${age_6} or higher but the Universe achievement has already been claimed.'), array('your' => 'your', 'age_6' => self::getAgeSquare(6)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All non-purple top cards on ${player_name}\\'s board are value ${age_6} or higher but the Universe achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'age_6' => self::getAgeSquare(6)));\n }\n }\n break;\n \n // id 54, age 5: Societies\n case \"54D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $colors = array();\n // Determine colors which top cards with a lightbulb of the player have a value higher than the tops cards of the launcher\n for($color=0; $color<5; $color++) {\n $player_top_card = self::getTopCardOnBoard($player_id, $color);\n if ($player_top_card === null || !self::hasRessource($player_top_card, 3 /* lightbulb */)) {\n continue;\n }\n $launcher_top_card = self::getTopCardOnBoard($launcher_id, $color);\n if ($launcher_top_card === null /* => Value 0, so the color is selectable */ || $player_top_card['age'] > $launcher_top_card['age']) {\n $colors[] = $color; // This color is selectable\n }\n }\n }\n else { // First edition\n $colors = array(0,1,2,3); // All but purple\n }\n self::setGameStateValueFromArray('auxiliary_value', $colors);\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 55, age 6: Atomic theory\n case \"55N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"55N2\":\n self::executeDraw($player_id, 7, 'board'); // \"Draw and meld a 7\"\n break;\n \n // id 56, age 6: Encyclopedia\n case \"56N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 57, age 6: Industrialisation\n case \"57N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number = 0;\n for($color=0; $color<5; $color++) {\n if (self::boardPileHasRessource($player_id, $color, 5 /* factory */)) { // There is at least one visible factory in that color\n $number++;\n }\n }\n if ($number <= 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color with one or more visible ${factories}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color with one or more ${factories}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n }\n else { // $number > 1\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors with one or more visible ${factories}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors with one or more ${factories}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n }\n // \"For each color of your board that have one factory or more\"\n }\n else {\n $number_of_factories = self::getPlayerSingleRessourceCount($player_id, 5 /* factory */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${factories}.'), array('You' => 'You', 'n' => $number_of_factories, 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${factories}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_factories, 'factories' => $factory));\n $number = self::intDivision($number_of_factories,2); // \"For every two factories on your board\"\n }\n \n for($i=0; $i<$number; $i++) {\n self::executeDraw($player_id, 6, 'board', true); // \"Draw and tuck a 6\"\n }\n break;\n \n case \"57N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 58, age 6: Machine tools\n case \"58N1\":\n self::executeDraw($player_id, self::getMaxAgeInScore($player_id), 'score'); // \"Draw and score a card of value equal to the highest card in your score pile\"\n break;\n \n // id 59, age 6: Classification\n case \"59N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 60, age 6: Metric system\n case \"60N1\":\n if (self::getCurrentSplayDirection($player_id, 2 /* green */) == 2 /* right */) { // \"If your green cards are splayed right\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"60N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 61, age 6: Canning\n case \"61N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"61N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 62, age 6: Vaccination\n case \"62D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"62N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was returned as a result of the demand\"\n self::executeDraw($player_id, 7, 'board'); // \"Draw and meld a 7\"\n }\n break;\n \n // id 63, age 6: Democracy \n case \"63N1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 64, age 6: Emancipation\n case \"64D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"64N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 65, age 7: Evolution \n case \"65N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 66, age 7: Publications\n case \"66N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"66N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 67, age 7: Combustion\n case \"67D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number_of_crowns = self::getPlayerSingleRessourceCount($launcher_id, 1 /* crown */);\n self::notifyPlayer($launcher_id, 'log', clienttranslate('${You} have ${n} ${crowns}.'), array('You' => 'You', 'n' => $number_of_crowns, 'crowns' => $crown));\n self::notifyAllPlayersBut($launcher_id, 'log', clienttranslate('${player_name} has ${n} ${crowns}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_crowns, 'crowns' => $crown));\n $number = self::intDivision($number_of_crowns, 4);\n if ($number == 0) {\n self::notifyGeneralInfo(clienttranslate('No card has to be transfered.'));\n break;\n }\n }\n else { // First edition\n $number = 2;\n }\n self::setGameStateValue('auxiliary_value', $number);\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"67N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $bottom_red_card = self::getBottomCardOnBoard($player_id, 1 /* red */);\n if ($bottom_red_card !== null) {\n self::transferCardFromTo($bottom_red_card, 0, 'deck'); // \"Return your bottom red card\"\n }\n }\n break;\n \n // id 68, age 7: Explosives\n case \"68D1\":\n self::setGameStateValue('auxiliary_value', 0); // Flag to indicate if the player has transfered a card or not\n $step_max = 3; // --> 3 interactions: see B\n break;\n \n // id 69, age 7: Bicycle\n case \"69N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 70, age 7: Electricity\n case \"70N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 71, age 7: Refrigeration\n case \"71D1\":\n if (self::countCardsInLocation($player_id, 'hand') > 1) {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"71N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 72, age 7: Sanitation \n case \"72D1\":\n $step_max = 3; // --> 3 interactions: see B\n break;\n \n // id 73, age 7: Lighting \n case \"73N1\":\n self::setGameStateValueFromArray('auxiliary_value', array()); // Flag to indicate what ages have been tucked\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 74, age 7: Railroad \n case \"74N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"74N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 75, age 8: Quantum theory \n case \"75N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 76, age 8: Rocketry \n case \"76N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 77, age 8: Flight\n case \"77N1\":\n if (self::getCurrentSplayDirection($player_id, 1 /* red */) == 3 /* up */) { // \"If your red cards are splayed up\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"77N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 78, age 8: Mobility \n case \"78D1\":\n self::setGameStateValueFromArray('auxiliary_value', array(0,2,3,4)); // Flag to indicate the colors the player can still choose (not red at the start)\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 79, age 8: Corporations \n case \"79D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"79N1\":\n self::executeDraw($player_id, 8, 'board'); // \"Draw and meld an ${age_8}\"\n break;\n \n // id 80, age 8: Mass media \n case \"80N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"80N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 81, age 8: Antibiotics\n case \"81N1\":\n self::setGameStateValueFromArray('auxiliary_value', array()); // Flag to indicate what ages have been tucked\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 82, age 8: Skyscrapers\n case \"82D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 83, age 8: Empiricism \n case \"83N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"83N2\":\n if (self::getPlayerSingleRessourceCount($player_id, 3 /* lightbulb */) >= 20) { // \"If you have twenty or more lightbulbs on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least twenty ${lightbulbs}.'), array('You' => 'You', 'lightbulbs' => $lightbulb));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least twenty ${lightbulbs}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'lightbulbs' => $lightbulb));\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Empiricism');\n throw new EndOfGame(); \n }\n break;\n \n // id 84, age 8: Socialism \n case \"84N1\":\n self::setGameStateValue('auxiliary_value', 0); // Flag to indicate if one purple card has been tuckeds or not\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 85, age 9: Computers \n case \"85N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"85N2\":\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each of its non-demand dogma effects\"\n break;\n \n // id 86, age 9: Genetics \n case \"86N1\":\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n $board = self::getCardsInLocation($player_id, 'board', false, true);\n $pile = $board[$card['color']];\n for($p=0; $p < count($pile)-1; $p++) { // \"For each card beneath it\"\n $card = self::getCardInfo($pile[$p]['id']);\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score that card\"\n }\n break;\n \n // id 87, age 9: Composites \n case \"87D1\":\n $step_max = 2; // --> 2 interactions: see B\n if (self::countCardsInLocation($player_id, 'hand') <= 1) {\n $step = 2; // --> (All but one card when there is 0 or 1 card means that nothing is to be done) Jump directly to step 2\n }\n break;\n \n // id 88, age 9: Fission\n case \"88D1\":\n $card = self::executeDraw($player_id, 10, 'revealed'); // \"Draw a 10\"\n if ($card['color'] == 1 /* red */) { // \"If it is red\"\n self::notifyGeneralInfo(clienttranslate('This card is red.'));\n self::removeAllHandsBoardsAndScores(); // \"Remove all hands, boards and score piles from the game\"\n self::notifyAll('removedHandsBoardsAndScores', clienttranslate('All hands, boards and score piles are removed from the game. Achievements are kept.'), array());\n \n // Stats\n self::setStat(true, 'fission_triggered');\n \n // \"If this occurs, the dogma action is complete\"\n // (Set the flags has if the launcher had completed the non-demand dogma effect)\n self::setGameStateValue('current_player_under_dogma_effect', $launcher_id);\n self::setGameStateValue('current_effect_type', 1);\n self::setGameStateValue('current_effect_number', 1);\n }\n else {\n self::notifyGeneralInfo(clienttranslate('This card is not red.'));\n // (Implicit) \"Place it into your hand\"\n self::transferCardFromTo($card, $player_id, 'hand');\n }\n break;\n \n case \"88N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 89, age 9: Collaboration\n case \"89D1\":\n self::executeDraw($player_id, 9, 'revealed'); // \"Draw two 9 and reveal them\"\n self::executeDraw($player_id, 9, 'revealed'); //\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"89N1\":\n $number_of_cards_on_board = self::countCardsInLocation($player_id, 'board', false, true);\n $number_of_green_cards = $number_of_cards_on_board[2];\n if ($number_of_green_cards >= 10) { // \"If you have ten or more green cards on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least ten green cards.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least ten green cards.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Collaboration');\n throw new EndOfGame(); \n }\n break;\n \n // id 90, age 9: Satellites\n case \"90N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"90N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"90N3\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 91, age 9: Ecology\n case \"91N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 92, age 9: Suburbia\n case \"92N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 93, age 9: Services\n case \"93D1\":\n $ids_of_highest_cards_in_score = self::getIdsOfHighestCardsInLocation($player_id, 'score');\n foreach($ids_of_highest_cards_in_score as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $launcher_id, 'hand'); // \"Transfer all the highest cards from your score pile to my hand\"\n }\n \n if (count($ids_of_highest_cards_in_score) > 0) { // \"If you transferred any cards\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n\n // id 94, age 9: Specialization\n case \"94N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"94N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 95, age 10: Bioengineering\n case \"95N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"95N2\":\n $players = self::loadPlayersBasicInfos();\n $max_number_of_leaves = -1;\n $any_under_three_leaves = false;\n foreach ($players as $player_id => $player) {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${leaves}.'), array('You' => 'You', 'n' => $number_of_leaves, 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${leaves}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_leaves, 'leaves' => $leaf));\n if (!$any_under_three_leaves && $number_of_leaves < 3) { // Less than three\n self::notifyGeneralInfo(clienttranslate('That is less than 3.'));\n $any_under_three_leaves = true;\n }\n if ($number_of_leaves > $max_number_of_leaves) {\n $max_number_of_leaves = $number_of_leaves;\n $owner_of_max_number_of_leaves = $player_id;\n $tie = false; \n }\n else if ($number_of_leaves == $max_number_of_leaves && $player_id != self::getPlayerTeammate($owner_of_max_number_of_leaves)) {\n $tie = true;\n }\n }\n \n if (!$any_under_three_leaves) {\n self::notifyGeneralInfo(clienttranslate('Nobody has less than three ${leaves}.'), array('leaves' => $leaf));\n }\n else if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the most number of ${leaves}. The game continues.'), array('leaves' => $leaf));\n }\n else { // \"If any player has less than three leaves, the single player with the most number of leaves\"\n self::notifyPlayer($owner_of_max_number_of_leaves, 'log', clienttranslate('${You} have more ${leaves} than each opponent.'), array('You' => 'You', 'leaves' => $leaf));\n self::notifyAllPlayersBut($owner_of_max_number_of_leaves, 'log', clienttranslate('${player_name} has more ${leaves} than each opponent.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($owner_of_max_number_of_leaves), $owner_of_max_number_of_leaves), 'leaves' => $leaf));\n self::setGameStateValue('winner_by_dogma', $owner_of_max_number_of_leaves); // \"Wins\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Bioengineering');\n throw new EndOfGame();\n }\n \n break;\n\n // id 96, age 10: Software\n case \"96N1\":\n self::executeDraw($player_id, 10, 'score', false, true /* score keyword*/); // \"Draw and score a 10\"\n break;\n \n case \"96N2\":\n self::executeDraw($player_id, 10, 'board'); // \"Draw and meld two 10\"\n $card = self::executeDraw($player_id, 10, 'board'); //\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each of the second card's non-demand dogma effects\"\n break;\n \n // id 97, age 10: Miniaturization\n case \"97N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 98, age 10: Robotics\n case \"98N1\":\n $top_green_card = self::getTopCardOnBoard($player_id, 2 /* green */);\n if ($top_green_card !== null) {\n self::transferCardFromTo($top_green_card, $player_id, 'score', false, true /* score keyword*/); // \"Score your top green card\"\n }\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each its non-demand dogma effects\"\n break;\n \n // id 99, age 10: Databases\n case \"99D1\":\n if (self::countCardsInLocation($player_id, 'score') > 0) { // (Nothing to do if the player has nothing in his score pile)\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 100, age 10: Self service\n case \"100N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"100N2\":\n $players = self::loadPlayersBasicInfos();\n $number_of_achievements = self::getPlayerNumberOfAchievements($player_id);\n $most_achievements = true;\n foreach ($players as $other_player_id => $player) {\n if ($other_player_id == $player_id || $other_player_id == self::getPlayerTeammate($player_id)) {\n continue; // Skip the player being evaluated and his teammate\n }\n \n if (self::getPlayerNumberOfAchievements($other_player_id) >= $number_of_achievements) {\n $most_achievements = false;\n }\n }\n if ($most_achievements) { // \"If you have more achievements than each other player\"\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n self::notifyAllPlayersBut($player_id, \"log\", clienttranslate('${player_name} has more achievements than each other player.'), array(\n 'player_name' => self::getPlayerNameFromId($player_id)\n ));\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('${You} have more achievements than each other player.'), array(\n 'You' => 'You'\n ));\n }\n else { // self::getGameStateValue('game_type')) == 'team'\n $teammate_id = self::getPlayerTeammate($player_id);\n $winning_team = array($player_id, $teammate_id);\n self::notifyAllPlayersBut($winning_team, \"log\", clienttranslate('The other team has more achievements than yours.'), array());\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('Your team has more achievements than the other.'), array());\n \n self::notifyPlayer($teammate_id, \"log\", clienttranslate('Your team has more achievements than the other.'), array());\n }\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Self service');\n throw new EndOfGame();\n }\n break;\n \n // id 101, age 10: Globalization\n case \"101D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"101N1\":\n self::executeDraw($player_id, 6, 'score', false, true); // \"Draw and score a 6\"\n \n $players = self::loadPlayersBasicInfos();\n $nobody_more_leaves_than_factories = true;\n foreach ($players as $player_id => $player) {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2);\n $number_of_factories = self::getPlayerSingleRessourceCount($player_id, 5);\n \n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${m} ${leaves} and ${n} ${factories}.'), array('You' => 'You', 'm' => $number_of_leaves, 'leaves' => $leaf, 'n' => $number_of_factories, 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${m} ${leaves} and ${n} ${factories}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'm' => $number_of_leaves, 'leaves' => $leaf, 'n' => $number_of_factories, 'factories' => $factory));\n \n if ($nobody_more_leaves_than_factories && $number_of_leaves > $number_of_factories) {\n self::notifyGeneralInfo(clienttranslate('That is more ${leaves} than ${factories}'), array('leaves' => $leaf, 'factories' => $factory));\n $nobody_more_leaves_than_factories = false;\n }\n }\n \n if ($nobody_more_leaves_than_factories) { // \"If no player has more leaves than factories on their board\"\n $teams = array();\n $scores = array();\n foreach ($players as $player_id => $player) {\n $team = self::getPlayerTeam($player_id);\n $score = self::getPlayerScore($player_id);\n if (!array_key_exists($team, $teams)) {\n $teams[$team] = array($player_id);\n $scores[$team] = $score;\n }\n else {\n $teams[$team][] = $player_id;\n $scores[$team] += $score;\n }\n }\n \n $max_score = -1;\n foreach($scores as $team => $score) {\n if ($score > $max_score) {\n $max_score = $score;\n $team_max = $team;\n $tie = false;\n }\n else if ($score == $max_score) {\n $tie = true;\n }\n \n // Display the score (or the combined score for the team)\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n $player_id = $teams[$team][0];\n if ($score < 2) {\n $message_for_others = clienttranslate('${player_name} has ${n} point.');\n $message_for_player = clienttranslate('${You} have ${n} point.');\n }\n else {\n $message_for_others = clienttranslate('${player_name} has ${n} points.');\n $message_for_player = clienttranslate('${You} have ${n} points.'); \n }\n self::notifyAllPlayersBut($player_id, \"log\", $message_for_others, array(\n 'player_name' => self::getPlayerNameFromId($player_id),\n 'n' => $score\n ));\n \n self::notifyPlayer($player_id, \"log\", $message_for_player, array(\n 'You' => 'You',\n 'n' => $score\n ));\n } \n else { // self::getGameStateValue('game_type') == 'team'\n $current_team = $teams[$team];\n $player_id = $current_team[0];\n $teammate_id = $current_team[1];\n if ($score < 2) {\n $message_for_team = clienttranslate('Your team has ${n} point.');\n $message_for_others = clienttranslate('The other team has ${n} point.');\n }\n else {\n $message_for_team = clienttranslate('Your team has ${n} points.');\n $message_for_others = clienttranslate('The other team has ${n} points.'); \n }\n self::notifyAllPlayersBut($current_team, \"log\", $message_for_others, array('n' => $score));\n \n self::notifyPlayer($player_id, \"log\", $message_for_team, array('n' => $score));\n \n self::notifyPlayer($teammate_id, \"log\",$message_for_team, array('n' => $score)); \n }\n }\n \n if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the greatest score. The game continues.'));\n }\n else {\n $winning_team = $teams[$team_max];\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n $player_id = $winning_team[0];\n self::notifyAllPlayersBut($player_id, \"log\", clienttranslate('${player_name} has a greater score than each other player.'), array(\n 'player_name' => self::getPlayerNameFromId($player_id)\n ));\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('${You} have a greater score than each other player.'), array(\n 'You' => 'You'\n ));\n }\n else { // self::getGameStateValue('game_type')) == 'team'\n $player_id = $winning_team[0];\n $teammate_id = $winning_team[1];\n self::notifyAllPlayersBut($winning_team, \"log\", clienttranslate('The other team has a greater score than yours.'), array());\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('Your team has a greater score than the other one.'), array());\n \n self::notifyPlayer($teammate_id, \"log\", clienttranslate('Your team has a greater score than the other one.'), array());\n }\n self::setGameStateValue('winner_by_dogma', $player_id); // \"The single player with the most points wins\" (or combined scores for team)\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Globalization');\n throw new EndOfGame();\n }\n }\n break;\n \n // id 102, age 10: Stem cells\n case \"102N1\":\n if (self::countCardsInLocation($player_id, 'hand') == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no cards in your hand to score.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no cards in their hand to score.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n } else {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n \n // id 103, age 10: A. I.\n case \"103N1\":\n self::executeDraw($player_id, 10, 'score'); // \"Draw and score a 10\"\n break;\n\n case \"103N2\":\n $players = self::loadPlayersBasicInfos();\n $software_found = false;\n foreach ($players as $any_player_id => $player) {\n $top_blue_card = self::getTopCardOnBoard($any_player_id, 0 /* blue: color of Software*/);\n if ($top_blue_card !== null && $top_blue_card['id'] == 96 /* Software */) {\n $software_found = true;\n break;\n }\n }\n \n $robotics_found = false;\n foreach ($players as $any_player_id => $player) {\n $top_red_card = self::getTopCardOnBoard($any_player_id, 1 /* red: color of Robotics*/);\n if ($top_red_card !==null && $top_red_card['id'] == 98 /* Robotics */) {\n $robotics_found = true;\n break;\n }\n }\n \n if ($software_found && $robotics_found) { // \"If Robotics and Software are top cards on any board\"\n self::notifyGeneralInfo(clienttranslate('Robotics and Software are both visible as top cards.'));\n \n $min_score = 9999;\n foreach($players as $any_player_id => $player) {\n $score = self::getPlayerScore($any_player_id);\n if ($score < $min_score) {\n $min_score = $score;\n $player_with_min_score = $any_player_id;\n $tie = false;\n }\n else if ($score == $min_score) {\n $tie = true;\n }\n \n // Display the score (or the combined score for the team)\n if ($score < 2) {\n $message_for_others = clienttranslate('${player_name} has ${n} point.');\n $message_for_player = clienttranslate('${You} have ${n} point.');\n }\n else {\n $message_for_others = clienttranslate('${player_name} has ${n} points.');\n $message_for_player = clienttranslate('${You} have ${n} points.');\n }\n self::notifyAllPlayersBut($any_player_id, \"log\", $message_for_others, array(\n 'player_name' => self::getPlayerNameFromId($any_player_id),\n 'n' => $score\n ));\n \n self::notifyPlayer($any_player_id, \"log\", $message_for_player, array(\n 'You' => 'You',\n 'n' => $score\n ));\n }\n if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the lowest score. The game continues.'));\n }\n else {\n self::notifyAllPlayersBut($player_with_min_score, \"log\", clienttranslate('${player_name} has the lowest score.'), array(\n 'player_name' => self::getPlayerNameFromId($player_with_min_score)\n ));\n \n self::notifyPlayer($player_with_min_score, \"log\", clienttranslate('${You} have the lowest score.'), array(\n 'You' => 'You'\n ));\n self::setGameStateValue('winner_by_dogma', $player_with_min_score); // \"The single player with the most points wins\" (scores are not combined for teams)\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn A. I.');\n throw new EndOfGame();\n }\n }\n break;\n\n // id 104, age 10: The internet.\n case \"104N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"104N2\":\n self::executeDraw($player_id, 10, 'score'); // \"Draw and score a 10\"\n break;\n\n case \"104N3\":\n $number_of_clocks = self::getPlayerSingleRessourceCount($player_id, 6 /* clock */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${clocks}.'), array('You' => 'You', 'n' => $number_of_clocks, 'clocks' => $clock));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${clocks}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_clocks, 'clocks' => $clock));\n for($i=0; $i<self::intDivision($number_of_clocks,2); $i++) { // \"For every two clocks on your board\"\n self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n }\n break;\n \n default:\n // This should not happens\n //throw new BgaVisibleSystemException(self::format(self::_(\"Unreferenced card effect code in section A: '{code}'\"), array('code' => $code)));\n break;\n }\n //[AA]||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n }\n catch (EndOfGame $e) {\n // End of the game: the exception has reached the highest level of code\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn');\n self::trace('playerInvolvedTurn->justBeforeGameEnd');\n $this->gamestate->nextState('justBeforeGameEnd');\n return;\n }\n \n if ($step_max === null) {\n // End of the effect for this player\n self::trace('playerInvolvedTurn->interPlayerInvolvedTurn');\n $this->gamestate->nextState('interPlayerInvolvedTurn');\n return;\n }\n // There is an interaction needed\n self::setGameStateValue('step_max', $step_max);\n\n // Prepare the first step\n self::setGameStateValue('step', $step === null ? 1 : $step);\n self::trace('playerInvolvedTurn->interactionStep');\n $this->gamestate->nextState('interactionStep');\n }",
"public function reactToOnAfterTakingDamage($event) { }",
"public function ability() {\n\n $this->startMove(3, 0.2);\n echo \"THE ENGINE IS OVERHEATED!\\n\";\n $this->switchEngine();\n\n\n\n\n }",
"public function effect($effect)\n {\n $args = array_slice(func_get_args(), 1);\n\n if($effect instanceof PictureEffect)\n {\n $this->effect[] = $effect;\n }\n else\n {\n $effectClass = \"Palette\\\\Effect\\\\\" . $effect;\n\n if(class_exists($effectClass))\n {\n $reflection = new ReflectionClass($effectClass);\n $this->effect[] = $reflection->newInstanceArgs($args);\n }\n else\n {\n throw new Exception('Unknown Palette effect instance');\n }\n }\n }",
"public function reactToOnBeforeTakingDamage($event) { }",
"public function reactToOnBeforeDealDamage($event) { }",
"public function hit()\n {\n $fight = $this->getDamage();\n $fight = $fight + 5;\n $this->setDamage($fight);\n\n }",
"abstract public function buildEffect();",
"public function setEffect( $effect ) {\n $this->effect = $effect;\n }",
"public function set_hooks() {\n\t\t\t$this->hook_prefix = photonfill_hook_prefix();\n\n\t\t\t// Override Photon arg.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_array', array( $this, 'set_photon_args' ), 5, 2 );\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_string', array( $this, 'set_photon_args' ), 5, 2 );\n\n\t\t\t// If we're using the photonfill_bypass_image_downsize, we skip downsize, and now need to\n\t\t\t// ensure the Photon args are being set (but with a lower priority).\n\t\t\tif ( apply_filters( 'photonfill_bypass_image_downsize', false ) ) {\n\t\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'set_photon_args' ), 4, 3 );\n\t\t\t}\n\n\t\t\t// Transform our Photon url.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'transform_photon_url' ), 5, 1 );\n\t\t}",
"public function OnAllAction() {\n\n // get current action\n $HookName= current_filter();\n $HookNameParts= explode(' (', $HookName);\n $SearchName= isset($HookNameParts[1]) ? $HookNameParts[0] : $HookName;\n\n // find profiles containing that action and execute invalidation\n foreach($this->Profiles as $Name => $Profile) {\n if (in_array($SearchName, $Profile['InvalidatingActions'])) {\n $this->GetDealer($Name)->Invalidate($HookName);\n }\n }\n\n // search in group actions and trigger custom action if found\n foreach($this->GroupActions as $Name => $List) {\n if (in_array($HookName, $List)) {\n //$this->Log(\"[GroupAction: {$Name}] triggered by action: {$HookName}\");\n do_action(\"$Name ($HookName)\");\n }\n }\n }",
"public function applyAbilityOverrides ()\n {\n $class = new ReflectionClass($this->getItem()->getBaseItem());\n $baseItem = $class->newInstance();\n if (is_iterable($this->getItem()->getItemAbilities())) {\n foreach ($this->getItem()->getItemAbilities() as $itemAbility) {\n if ($this->attunedLevel >= $itemAbility->getAttunementLevelRequired()) {\n foreach ($itemAbility->getAbility()->getAbilityPartial() as $abilityPartial) {\n if ($abilityPartial instanceof AbilityOverride) {\n try {\n $key = Tools::snakeCaseToCamelCase($abilityPartial->getOverrideKey(), false);\n $property = $baseItem->getProperty($key);\n $property->setAccessible(true);\n if ($abilityPartial->isAppend()) {\n $property->setValue($this->getItem()->getBaseItem(), Tools::append($property->getValue(), $abilityPartial->getValue()));\n } else {\n $property->setValue($this->getItem()->getBaseItem(), $abilityPartial->getValue());\n }\n unset ($abilityPartial);\n } catch (\\Exception $exception) {\n continue;\n }\n }\n }\n }\n }\n }\n return $this;\n }",
"public function initialize($battle, $hero, $enemy, $options = array()) {\n $options = array_merge(\n // The default options\n array(\n 'autoAttach' => true,\n 'turns' => $this->turns,\n ),\n // The specified options\n $options\n ); \n\n /**\n * up to this point: hero = combatant who brought this effect into play\n * adjust so that heroString is the owner of the buff/debuff\n */\n if($this->buff) {\n $this->heroString = $battle->getCombatantString($hero);\n $this->enemyString = $battle->getCombatantString($enemy);\n } else {\n $this->heroString = $battle->getCombatantString($enemy);\n $this->enemyString = $battle->getCombatantString($hero);\n }\n \n $this->active = true;\n $this->turns = (!empty($options['turns']) ? $options['turns'] : 0);\n\n if($this->blocks && $this->blockNumberOfBlocks > 0) {\n $this->charges = $this->blockNumberOfBlocks;\n }\n \n /**\n * Adds the effect in case it's not already active\n * Unless the effect should only be active once per combatant,\n * in which case the duration will be increased\n */\n if($options['autoAttach']) {\n if(!$this->singleton || !$battle->battleeffects->contains($this)) {\n $battle->addEffect($this);\n return \"added\";\n } elseif ($this->increaseDuration) {\n $battle->increaseEffectDuration($this);\n return \"increasedDuration\";\n }\n }\n return \"notAdded\";\n }",
"protected function set_hooks() {\n\t\t// Compatibility with Cart Notices plugin\n\t\tadd_filter('wc_cart_notices_order_thresholds', array($this, 'wc_cart_notices_order_thresholds'), 20);\n\t\tadd_action('wc_cart_notices_process_notice_before', array($this, 'wc_cart_notices_process_notice_before'), 20);\n\t}",
"public function reactToOnBeforeAction($event) {\n if($this->blocks &&\n $this->active &&\n !$event->action->blocked &&\n $event->action->battlePhase == \"offense\" &&\n ($this->buff == ($event->sender->getCombatantString($event->hero) == $this->enemyString))) {\n \n if($this->blockChance != 1) {\n $rand = mt_rand(0,100);\n if($rand > $this->blockChance * 100) {\n return;\n }\n }\n \n if($event->action->call(\"setBlocked\")) {\n $this->charges --;\n \n $battleMsg = new Battlemessage($this->call(\"getMsgBlock\"));\n $event->sender->log($event->hero, $battleMsg);\n \n if($this->charges == 0) {\n $this->active = false;\n\n $battleMsg = new Battlemessage($this->msgExpire);\n $event->sender->log($event->hero, $battleMsg);\n }\n }\n }\n }",
"function execute($modifier = null)\n {\n $owner = $this->getOwner();\n $target = $this->getTarget();\n\n $originalDamageToDeal = $owner->getStrength() - $target->getDefence();\n\n if($originalDamageToDeal < 0 ) {\n $originalDamageToDeal = 0;\n }\n\n $damageToDeal = $originalDamageToDeal;\n\n $defenseSkills = $target->getDefenceSkills();\n\n foreach ($defenseSkills as $defenseSkill) {\n if(get_class($defenseSkill) != get_class($this)) {\n $defenseSkill->setOwner($target);\n $defenseSkill->setTarget($owner);\n $damageToDeal = $defenseSkill->execute($damageToDeal);\n }\n }\n\n if($target->isLucky()) {\n UI::actionMessage(\" {$this->getTarget()->getName()} got lucky. {$this->getOwner()->getName()} missed \");\n $damageToDeal = 0;\n } else {\n UI::actionMessage(\" {$this->getOwner()->getName()} hit {$this->getTarget()->getName()} for {$damageToDeal} damage\");\n }\n\n $targetOriginalHealth = $target->getHealth();\n $targetNewHealth = $targetOriginalHealth - $damageToDeal;\n\n\n\n $target->setHealth($targetNewHealth);\n\n }",
"private function hooks() {\n // stripe non3ds refund\n add_action( 'dokan_refund_request_created', [ $this, 'process_refund' ] );\n add_filter( 'dokan_refund_approve_vendor_refund_amount', [ $this, 'vendor_refund_amount_non_3ds' ], 10, 3 );\n add_action( 'dokan_refund_approve_before_insert', [ $this, 'add_vendor_withdraw_entry_non_3ds' ], 10, 3 );\n\n // process 3ds refund\n add_action( 'dokan_refund_request_created', [ $this, 'process_3ds_refund' ] );\n add_filter( 'dokan_refund_approve_vendor_refund_amount', [ $this, 'vendor_refund_amount_3ds' ], 10, 3 );\n add_action( 'dokan_refund_approve_before_insert', [ $this, 'add_vendor_withdraw_entry_3ds' ], 10, 3 );\n }",
"public function behaviors() {\n return array(\"application.components.SpecialnessBehavior\");\n }",
"private function hooks() {\n\t\t// Register rewrite tags.\n\t\tadd_action( 'wct_add_rewrite_tags', array( $this, 'add_rewrite_tags' ) );\n\n\t\t// Register the rewrite rules\n\t\tadd_action( 'wct_add_rewrite_rules', array( $this, 'add_rewrite_rules' ) );\n\n\t\t// Register the permastructs\n\t\tadd_action( 'wct_add_permastructs', array( $this, 'add_permastructs' ) );\n\t}",
"function stInterDogmaEffect() { $current_effect_type = self::getGameStateValue('current_effect_type');\n \n // Indicate the potential new (non-demand) dogma to come\n if ($current_effect_type == 0) { // I demand dogma : there is only one for this version of this game\n $current_effect_number = 1; // Switch on the first non-demand dogma, if exists\n }\n else {\n $current_effect_number = self::getGameStateValue('current_effect_number') + 1; // Next non-demand dogma, if exists\n }\n \n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n \n // Check whether this new dogma exists actually or not\n if ($current_effect_number > 3 || $card['non_demand_effect_'.$current_effect_number] === null) {\n // No card has more than 3 non-demand dogma => there is no more effect\n // or the next non-demand-dogma effect is not defined\n \n $sharing_bonus = self::getGameStateValue('sharing_bonus');\n $launcher_id = self::getGameStateValue('active_player');\n \n // Stats\n $i_demand_effects = false;\n $executing_players = self::getExecutingPlayers();\n foreach($executing_players as $player_id => $stronger_or_equal) {\n if ($player_id == $launcher_id) {\n continue;\n }\n if ($stronger_or_equal) { // This player had effectively shared some dogma effects of the card\n self::incStat(1, 'sharing_effects_number', $player_id);\n }\n else { // The card had an I demand effect, and at least one player executed it with effects\n self::incStat(1, 'i_demand_effects_number', $player_id);\n $i_demand_effects = true;\n }\n\n }\n if ($i_demand_effects) {\n self::incStat(1, 'dogma_actions_number_with_i_demand', $launcher_id);\n }\n if ($sharing_bonus == 1) {\n self::incStat(1, 'dogma_actions_number_with_sharing', $launcher_id);\n }\n \n // Award the sharing bonus if needed\n if ($sharing_bonus == 1) {\n self::notifyGeneralInfo('<span class=\"minor_information\">${text}</span>', array('i18n'=>array('text'), 'text'=>clienttranslate('Sharing bonus.')));\n $player_who_launched_the_dogma = self::getGameStateValue('active_player');\n try {\n self::executeDraw($player_who_launched_the_dogma); // Draw a card with age consistent with player board\n }\n catch (EndOfGame $e) {\n // End of the game: the exception has reached the highest level of code\n self::trace('EOG bubbled from self::stInterDogmaEffect');\n self::trace('interDogmaEffect->justBeforeGameEnd');\n $this->gamestate->nextState('justBeforeGameEnd');\n return;\n }\n }\n \n // The active player may have changed during the dogma. Reset it on the player whose turn was\n $this->gamestate->changeActivePlayer($launcher_id);\n \n // Reset player table\n self::resetPlayerTable();\n \n // [R] Disable the flags used when in dogma \n self::setGameStateValue('dogma_card_id', -1);\n self::setGameStateValue('current_effect_type', -1);\n self::setGameStateValue('current_effect_number', -1);\n self::setGameStateValue('sharing_bonus', -1);\n self::setGameStateValue('current_player_under_dogma_effect', -1);\n self::setGameStateValue('step', -1);\n self::setGameStateValue('step_max', -1);\n self::setGameStateValue('special_type_of_choice', -1);\n self::setGameStateValue('choice', -1);\n self::setGameStateValue('splay_direction', -1);\n self::setGameStateValue('n_min', -1);\n self::setGameStateValue('n_max', -1);\n self::setGameStateValue('solid_constraint', -1);\n self::setGameStateValue('owner_from', -1);\n self::setGameStateValue('location_from', -1);\n self::setGameStateValue('owner_to', -1);\n self::setGameStateValue('location_to', -1);\n self::setGameStateValue('bottom_to', -1);\n self::setGameStateValue('age_min', -1);\n self::setGameStateValue('age_max', -1);\n self::setGameStateValue('color_array', -1);\n self::setGameStateValue('with_icon', -1);\n self::setGameStateValue('without_icon', -1);\n self::setGameStateValue('not_id', -1);\n self::setGameStateValue('can_pass', -1);\n self::setGameStateValue('n', -1);\n self::setGameStateValue('id_last_selected', -1);\n self::setGameStateValue('age_last_selected', -1);\n self::setGameStateValue('color_last_selected', -1);\n self::setGameStateValue('score_keyword', -1);\n self::setGameStateValue('auxiliary_value', -1);\n for($i=1; $i<=9; $i++) {\n self::setGameStateInitialValue('nested_id_'.$i, -1);\n self::setGameStateInitialValue('nested_current_effect_number_'.$i, -1);\n }\n \n // End of this player action\n self::trace('interDogmaEffect->interPlayerTurn');\n $this->gamestate->nextState('interPlayerTurn');\n return;\n }\n \n // There is another (non-demand) effect to perform\n self::setGameStateValue('current_effect_type', 1);\n self::setGameStateValue('current_effect_number', $current_effect_number);\n \n // Jump to this effect\n self::trace('interDogmaEffect->dogmaEffect');\n $this->gamestate->nextState('dogmaEffect');\n }",
"function updateBattle($playerId, $battleId, $action)\n{\n\t\n}",
"function specialAttack($attaquant, $target)\n { //pass session\n $stat_special = [];\n foreach ($_SESSION['inventory'] as $item) {\n array_push($stat_special, $item->getStatSpecial());\n }\n $rand = Utils::getRandom(0, sizeof($stat_special) - 1);\n\n Spell::makeProcEffect($stat_special[$rand], $attaquant, $target, $item);\n }",
"public function mmrpg_ability(){\n\n // Collect any provided arguments\n $args = func_get_args();\n\n // Define the internal battle pointer\n $this->battle = isset($args[0]) ? $args[0] : $GLOBALS['this_battle'];\n $this->battle_id = $this->battle->battle_id;\n $this->battle_token = $this->battle->battle_token;\n\n // Define the internal player values using the provided array\n $this->player = isset($args[1]) ? $args[1] : $GLOBALS['this_player'];\n $this->player_id = $this->player->player_id;\n $this->player_token = $this->player->player_token;\n\n // Define the internal player values using the provided array\n $this->robot = isset($args[2]) ? $args[2] : $GLOBALS['this_robot'];\n $this->robot_id = $this->robot->robot_id;\n $this->robot_token = $this->robot->robot_token;\n\n // Collect current ability data from the function if available\n $this_abilityinfo = isset($args[3]) ? $args[3] : array('ability_id' => 0, 'ability_token' => 'ability');\n\n if (!is_array($this_abilityinfo)){\n die('!is_array($this_abilityinfo){ '.print_r($this_abilityinfo, true)).' }';\n }\n\n // Now load the ability data from the session or index\n $this->ability_load($this_abilityinfo);\n\n // Update the session by default\n $this->update_session();\n\n // Return true on success\n return true;\n\n }",
"public static function item_function_stat_booster($objects){\n\n // Extract all objects into the current scope\n extract($objects);\n\n // Target this robot's self and print item use text\n $this_ability->target_options_update(array(\n 'frame' => 'summon',\n 'success' => array(0, 40, -2, 99,\n $this_player->print_player_name().' uses an item from the inventory… <br />'.\n $target_robot->print_robot_name().' is given the '.$this_ability->print_ability_name().'!'\n )\n ));\n $target_robot->trigger_target($target_robot, $this_ability);\n\n // Define the various object words used for each boost type\n $stat_boost_subjects = array('attack' => 'weapons', 'defense' => 'shields', 'speed' => 'mobility');\n $stat_boost_verbs = array('weapons' => 'were', 'shields' => 'were', 'mobility' => 'was');\n\n // Define the various effect words used for each item size\n if (strstr($this_ability->ability_token, 'pellet')){ $boost_effect_word = 'a bit'; }\n elseif (strstr($this_ability->ability_token, 'capsule')){ $boost_effect_word = 'a lot'; }\n\n // Define the stat(s) this ability will boost (super items boost all)\n $stat_boost_tokens = array();\n if (strstr($this_ability->ability_token, 'super')){ $stat_boost_tokens = array('attack', 'defense', 'speed'); }\n else { $stat_boost_tokens[] = $this_ability->ability_type; }\n\n // Loop through each stat boost token and raise it\n foreach ($stat_boost_tokens AS $stat_token){\n\n // Collect the object word for this stat type\n $stat_name = ucfirst($stat_token);\n $stat_subject = $stat_boost_subjects[$stat_token];\n $stat_verb = $stat_boost_verbs[$stat_subject];\n $stat_base_prop = 'robot_base_'.$stat_token;\n $stat_max_prop = 'robot_max_'.$stat_token;\n\n // Increase this robot's in-battle stat\n $this_ability->recovery_options_update(array(\n 'kind' => $stat_token,\n 'percent' => true,\n 'modifiers' => false,\n 'frame' => 'taunt',\n 'success' => array(9, 0, 0, -9999, $target_robot->print_robot_name().''s '.$stat_subject.' powered up '.$boost_effect_word.'! '.mmrpg_battle::random_positive_word()),\n 'failure' => array(9, 0, 0, -9999, $target_robot->print_robot_name().''s '.$stat_subject.''.$stat_verb.' not affected… '.mmrpg_battle::random_negative_word())\n ));\n $stat_recovery_amount = ceil($target_robot->$stat_base_prop * ($this_ability->ability_recovery / 100));\n $target_robot->trigger_recovery($target_robot, $this_ability, $stat_recovery_amount);\n\n // Only update the session of the ability was successful\n if ($this_ability->ability_results['this_result'] == 'success' && $this_ability->ability_results['total_amount'] > 0){\n\n // Create the stat boost variable if it doesn't already exist in the session\n if (!isset($_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]['robot_'.$stat_token])){\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]['robot_'.$stat_token] = 0;\n }\n\n // Collect this robot's stat calculations\n $robot_info = mmrpg_robot::get_index_info($target_robot->robot_token);\n $robot_stats = mmrpg_robot::calculate_stat_values(\n $target_robot->robot_level,\n $robot_info,\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]\n );\n\n // If this robot is not already over their stat limit, increment pending boosts\n if ($target_player->player_side == 'left' && $robot_stats[$stat_token]['bonus'] < $robot_stats[$stat_token]['bonus_max']){\n\n // Calculate the actual amount to permanently boost in case it goes over max\n $stat_boost_amount = $this_ability->ability_results['total_amount'];\n if (($robot_stats[$stat_token]['bonus'] + $stat_boost_amount) > $robot_stats[$stat_token]['bonus_max']){\n $stat_boost_amount = $robot_stats[$stat_token]['bonus_max'] - $robot_stats[$stat_token]['bonus'];\n }\n\n // Only update session variables if the boost is not empty\n if (!empty($stat_boost_amount)){\n\n // Update the session variables with the incremented stat boost\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]['robot_'.$stat_token] += $stat_boost_amount;\n $target_robot->$stat_base_prop += $stat_boost_amount;\n $target_robot->update_session();\n\n // Recalculate robot stats with new values\n $robot_stats = mmrpg_robot::calculate_stat_values(\n $target_robot->robot_level,\n $robot_info,\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]\n );\n\n // Check if this robot has now reached max stats\n if ($robot_stats[$stat_token]['bonus'] >= $robot_stats[$stat_token]['bonus_max']){\n // Print the success message for reaching max stats for this robot\n $target_robot->robot_frame = 'victory';\n $target_robot->update_session();\n $this_battle->events_create($target_robot, false,\n \"{$target_robot->robot_name}'s {$stat_name} Stat\",\n $target_robot->print_robot_name().'\\'s '.$stat_token.' stat bonuses have been raised to the max of '.\n '<span class=\"robot_type robot_type_'.$stat_token.'\">'.$robot_stats[$stat_token]['max'].' ★</span>!<br />'.\n 'Congratulations and '.lcfirst(mmrpg_battle::random_victory_quote()).' '\n );\n $target_robot->robot_frame = 'base';\n $target_robot->update_session();\n }\n\n }\n\n }\n\n }\n\n\n }\n\n // Return true on success\n return true;\n\n }",
"public function hooks() {\n\t\tif ( Helper::get_settings( 'general.beta_optin' ) ) {\n\t\t\t$beta_optin = new Beta_Optin();\n\t\t\t$beta_optin->hooks();\n\t\t}\n\n\t\tif (\n\t\t\tHelper::is_advanced_mode() && (\n\t\t\t\t! Helper::is_plugin_active_for_network() ||\n\t\t\t\tcurrent_user_can( 'setup_network' )\n\t\t\t)\n\t\t) {\n\t\t\t$this->filter( 'rank_math/tools/pages', 'add_status_page' );\n\t\t\t$this->filter( 'rank_math/tools/default_tab', 'change_default_tab' );\n\t\t}\n\n\t\t$this->filter( 'rank_math/admin/dashboard_view', 'network_admin_view', 10, 2 );\n\t\t$this->filter( 'rank_math/admin/dashboard_nav_links', 'network_admin_dashboard_tabs' );\n\t\t$this->action( 'admin_enqueue_scripts', 'enqueue', 20 );\n\n\t\tif ( $this->should_add_json() ) {\n\t\t\t/* translators: Placeholder is version number. */\n\t\t\tHelper::add_json( 'rollbackConfirm', esc_html__( 'Are you sure you want to install version %s?', 'rank-math' ) );\n\t\t}\n\t}",
"public function add_action_hooks() {\r\n\t\tparent::add_action_hooks();\r\n\r\n\t\tadd_action( 'smush_setting_column_right_inside', array( $this, 'settings_desc' ), 10, 2 );\r\n\t\tadd_action( 'smush_setting_column_right_inside', array( $this, 'auto_smush' ), 15, 2 );\r\n\t\tadd_action( 'smush_setting_column_right_inside', array( $this, 'image_sizes' ), 15, 2 );\r\n\t\tadd_action( 'smush_setting_column_right_inside', array( $this, 'resize_settings' ), 20, 2 );\r\n\t\tadd_action( 'smush_setting_column_right_inside', array( $this, 'usage_settings' ), 25, 2 );\r\n\t\tadd_action( 'smush_setting_column_right_inside', array( $this, 'detection_settings' ), 10, 2 );\r\n\t\tadd_action( 'smush_setting_column_right_outside', array( $this, 'full_size_options' ), 20, 2 );\r\n\r\n\t\t// Add stats to stats box.\r\n\t\tadd_action( 'stats_ui_after_resize_savings', array( $this, 'pro_savings_stats' ), 15 );\r\n\t\tadd_action( 'stats_ui_after_resize_savings', array( $this, 'conversion_savings_stats' ), 15 );\r\n\r\n\t\t// Icons in the submenu.\r\n\t\tadd_filter( 'wp_smush_admin_after_tab_' . $this->get_slug(), array( $this, 'after_tab' ) );\r\n\t}",
"public function attack($mob_obj){\t\t\r\n\t\t// Disable champion from other things while attacking\r\n\t\t$this->addEffect('Disable', Array('duration' => $this->attackSpeed()));\r\n\t\treturn $mob_obj->receiveDamage($this->base_attack_damage + ((1 - $this->level) * $this->attack_damage_per_level), 'armor', $this->stats());\t\r\n\t\t\t\r\n\t}",
"public function hook();",
"public function setBuffFromItems()\n {\n\n if (isset($_SESSION[\"inventory\"]) && sizeof($_SESSION[\"inventory\"]) > 0) {\n\n $atk_total_items = 0;\n $health_total_items = 0;\n $mana_total_items = 0;\n\n foreach ($_SESSION['inventory'] as $item) {\n if ($item->getStatAtk()) {\n $atk_total_items += $item->getStatAtk();\n }\n if ($item->getStatHealth()) {\n $health_total_items += $item->getStatHealth();\n }\n if ($item->getStatMana()) {\n $mana_total_items += $item->getStatMana();\n }\n }\n\n $_SESSION[\"character\"]->setAtk($_SESSION[\"character\"]->getBaseAtk() + $atk_total_items);\n $_SESSION[\"character\"]->setHp($_SESSION[\"character\"]->getBaseHp() + $health_total_items);\n $_SESSION[\"character\"]->setMana($_SESSION[\"character\"]->getBaseMana() + $mana_total_items);\n\n $_SESSION[\"character\"]->setBuffActivated(true);\n }\n }",
"public static function item_function_core($objects){\n\n // Extract all objects into the current scope\n extract($objects);\n\n // Target the opposing robot\n $this_ability->target_options_update(array(\n 'frame' => 'throw',\n 'kickback' => array(0, 0, 0),\n 'success' => array(0, 85, 35, 10, $this_robot->print_robot_name().' thows a '.$this_ability->print_ability_name().'!'),\n ));\n $this_robot->trigger_target($target_robot, $this_ability);\n\n // Inflict damage on the opposing robot\n $this_ability->damage_options_update(array(\n 'kind' => 'energy',\n 'percent' => true,\n 'modifiers' => true,\n 'frame' => 'damage',\n 'kickback' => array(10, 5, 0),\n 'success' => array(0, 10, 0, 10, 'The '.$this_ability->print_ability_name().' damaged the target!'),\n 'failure' => array(0, -30, 0, -10, 'The '.$this_ability->print_ability_name().' missed…')\n ));\n $this_ability->recovery_options_update(array(\n 'kind' => 'energy',\n 'percent' => true,\n 'modifiers' => true,\n 'frame' => 'taunt',\n 'kickback' => array(0, 0, 0),\n 'success' => array(0, 10, 0, 10, 'The '.$this_ability->print_ability_name().' recovered the target!'),\n 'failure' => array(0, -30, 0, -10, 'The '.$this_ability->print_ability_name().' missed…')\n ));\n $energy_damage_amount = ceil($target_robot->robot_base_energy * ($this_ability->ability_damage / 100));\n $trigger_options = array('apply_modifiers' => true, 'apply_type_modifiers' => true, 'apply_core_modifiers' => false, 'apply_field_modifiers' => true, 'apply_stat_modifiers' => false, 'apply_position_modifiers' => false, 'apply_starforce_modifiers' => false);\n $target_robot->trigger_damage($this_robot, $this_ability, $energy_damage_amount, false, $trigger_options);\n\n // Return true on success\n return true;\n\n }",
"private function hooks(): void {\n\t\t// Steps loader hooks.\n\n\t\tadd_filter(\n\t\t\t'learndash_breezy_localize_script_data',\n\t\t\t$this->container->callback( Steps\\Loader::class, 'add_scripts_data' )\n\t\t);\n\t\tadd_action(\n\t\t\t'wp_ajax_' . Steps\\Loader::$sub_steps_ajax_action_name,\n\t\t\t$this->container->callback( Steps\\Loader::class, 'handle_sub_steps_ajax_request' )\n\t\t);\n\t\tadd_action(\n\t\t\t'wp_ajax_nopriv_' . Steps\\Loader::$sub_steps_ajax_action_name,\n\t\t\t$this->container->callback( Steps\\Loader::class, 'handle_sub_steps_ajax_request' )\n\t\t);\n\t}",
"public function attach_hooks() {\n\t\t$this->define_hooks();\n\t}",
"function turnfight($expgain,$goldgain,$action,$addres) \n{\n global $player;\n global $smarty;\n global $db;\n global $title;\n global $enemy;\n global $myczaro;\n global $zmeczenie;\n global $arrEquip;\n global $myunik;\n global $amount;\n global $myagility;\n global $intPoisoned;\n global $arrTags;\n\n $arrEquip = $player -> equipment();\n $player->curstats($arrEquip);\n $myczaro = $db -> Execute(\"SELECT * FROM czary WHERE status='E' AND gracz=\".$player -> id.\" AND typ='O'\");\n $fight = $db -> Execute(\"SELECT fight FROM players WHERE id=\".$player -> id);\n\n $player->user = $arrTags[$player->tribe][0].' '.$player->user.' '.$arrTags[$player->tribe][1];\n\n if ($fight -> fields['fight'] == 0 && $title == 'Arena Walk') \n {\n\terror (NO_ENEMY);\n }\n $premia = 0;\n $zmeczenie = 0;\n if (empty ($enemy['id'])) \n {\n $location = $db -> Execute(\"SELECT miejsce FROM players WHERE id=\".$player -> id);\n if ($location -> fields['miejsce'] == 'Góry') \n {\n\t $intRoll2 = rand(1, 100);\n\t if ($intRoll2 < 25)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Altara' ORDER BY RAND()\", 1);\n\t }\n\t elseif ($intRoll2 > 24 && $intRoll2 < 90)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Altara' ORDER BY `level` DESC\", 1);\n\t }\n\t else\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`>=\".$player->level.\" AND `location`='Altara' ORDER BY RAND()\", 1);\n\t }\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \"agility\" => $enemy1 -> fields['agility'], \"speed\" => $enemy1 -> fields['speed'], \"endurance\" => $enemy1 -> fields['endurance'], \"hp\" => $enemy1 -> fields['hp'], \"name\" => $enemy1 -> fields['name'], \"exp1\" => $enemy1 -> fields['exp1'], \"exp2\" => $enemy1 -> fields['exp2'], \"level\" => $enemy1 -> fields['level']);\n $enemy1 -> Close();\n }\n if ($location -> fields['miejsce'] == 'Las') \n {\n\t $intRoll2 = rand(1, 100);\n\t if ($intRoll2 < 25)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Ardulith' ORDER BY RAND()\", 1);\n\t }\n\t elseif ($intRoll2 > 24 && $intRoll2 < 90)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Ardulith' ORDER BY `level` DESC\", 1);\n\t }\n\t else\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`>=\".$player->level.\" AND `location`='Ardulith' ORDER BY RAND()\", 1);\n\t }\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \"agility\" => $enemy1 -> fields['agility'], \"speed\" => $enemy1 -> fields['speed'], \"endurance\" => $enemy1 -> fields['endurance'], \"hp\" => $enemy1 -> fields['hp'], \"name\" => $enemy1 -> fields['name'], \"exp1\" => $enemy1 -> fields['exp1'], \"exp2\" => $enemy1 -> fields['exp2'], \"level\" => $enemy1 -> fields['level']);\n $enemy1 -> Close();\n }\n }\n if ($title == 'Arena Walk') \n {\n $arrClass = array('Wojownik','Rzemieślnik', 'Złodziej', 'Barbarzyńca');\n if (in_array($player -> clas, $arrClass) && $myczaro -> fields['id']) \n {\n error (ONLY_MAGE);\n }\n }\n if ($arrEquip[2][0]) \n {\n $premia = ($premia + $arrEquip[2][2]);\n }\n if ($arrEquip[4][0]) \n {\n $premia = ($premia + $arrEquip[4][2]);\n }\n if ($arrEquip[5][0]) \n {\n $premia = ($premia + $arrEquip[5][2]);\n }\n if ($arrEquip[3][0]) \n {\n $premia = ($premia + $arrEquip[3][2]);\n }\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $enemy['damage'] = ($enemy['strength'] - ($player -> level + $player -> cond + $premia));\n } \n else \n {\n $enemy['damage'] = ($enemy['strength'] - ($player -> cond + $premia));\n }\n if ($myczaro -> fields['id']) \n {\n $myczarobr = ($player -> wisdom * $myczaro -> fields['obr']) - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[3][4] / 100));\n if ($arrEquip[2][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[2][4] / 100)));\n }\n if ($arrEquip[4][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[4][4] / 100)));\n }\n if ($arrEquip[5][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[5][4] / 100)));\n }\n if ($arrEquip[7][0]) \n {\n $intN = 6 - (int)($arrEquip[7][4] / 20);\n $intBonus = (10 / $intN) * $player -> level * rand(1, $intN);\n $myczarobr = ($myczarobr + $intBonus);\n }\n if ($myczarobr < 0) \n {\n $myczarobr = 0;\n }\n $myobrona = ($myczarobr + $player -> cond + $premia);\n $enemy['damage'] = ($enemy['strength'] - $myobrona);\n }\n if (!$arrEquip[3][0] && !$myczaro -> fields['id']) \n {\n $enemy['damage'] = ($enemy['strength'] - $player -> cond);\n }\n $gmagia = 0;\n if (!isset($_SESSION['round']))\n {\n $_SESSION['round'] = 1;\n }\n $smarty -> assign (\"Message\", \"<ul><li><b>\".$player -> user.\"</b> \".VERSUS.\" <b>\".$enemy['name'].\"</b><br />\");\n $smarty -> display ('error1.tpl');\n /**\n * Count points in fight\n */\n if (!isset($_SESSION['points']) || $_SESSION['points'] == 0)\n {\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n }\n /**\n * Count dodge - player and monster\n */\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $myunik = (($player->agility - $enemy['agility']) + $player -> level + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - ($player -> attack + $player -> level));\n\tif ($arrEquip[11][0])\n\t {\n\t $eunik -= ($player->attack / 5);\n\t }\n }\n if ($player -> clas == 'Rzemieślnik' || $player -> clas == 'Złodziej' || $player -> clas == '') \n {\n $myunik = ($player->agility - $enemy['agility'] + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - $player -> attack);\n }\n if ($player -> clas == 'Mag') \n {\n $myunik = ($player->agility - $enemy['agility'] + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - ($player -> magic + $player -> level));\n }\n if (!isset($myunik)) \n {\n $myunik = 1;\n }\n if (!isset($eunik)) \n {\n $eunit = 1;\n }\n if ($eunik < 1) \n {\n $eunik = 1;\n }\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n if (isset ($_SESSION['exhaust'])) \n {\n $zmeczenie = $_SESSION['exhaust'];\n }\n if (isset($_SESSION['miss']) && $_SESSION['miss'] > $myunik) \n {\n $myunik = $_SESSION['miss'];\n }\n $amount = 1;\n if (isset ($_SESSION['razy'])) \n {\n $amount = $_SESSION['razy'];\n }\n if (isset($_SESSION['mon0'])) \n {\n $temp = 0;\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n }\n else\n {\n $temp = $amount;\n $_SESSION['amount'] = $amount;\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n $_SESSION[$strIndex] = $enemy['hp'];\n }\n }\n if (isset($temp)) \n {\n if ($temp < 6 && $temp > 0)\n {\n if ($myunik < 1)\n {\n $myunik = 1;\n }\n if (isset($myunik))\n {\n $myunik = ceil($myunik / $temp);\n }\n else\n {\n $myunik = 0;\n }\n }\n else\n {\n $myunik = 1;\n }\n }\n else\n {\n if ($amount < 6)\n {\n if (isset($myunik))\n {\n $myunik = ceil($myunik / $amount);\n }\n else\n {\n $myunik = 0;\n }\n }\n else\n {\n $myunik = 1;\n }\n }\n if ($myunik < 1) \n {\n $myunik = 1;\n }\n $attacks = ceil($enemy['speed'] / $player->speed);\n if ($attacks > 5) \n {\n $attacks = 5;\n }\n if (!isset($_POST['action'])) \n {\n $_POST['action'] = '';\n }\n /**\n * If fight is longer than 24 rounds\n */\n if (isset($_SESSION['round']) && $_SESSION['round'] > 24)\n {\n $db -> Execute(\"UPDATE `players` SET `fight`=0, `hp`=\".$player -> hp.\", `bless`='', `blessval`=0 WHERE `id`=\".$player -> id);\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == 'Arena Walk') \n {\n if (!$intPoisoned)\n {\n $smarty -> assign (\"Message\", \"</ul>\".NOT_DECIDE.\"...<br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n else\n {\n $smarty -> assign (\"Message\", \"</ul><br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n $smarty -> display ('error1.tpl');\n }\n\telseif (in_array($title, array('Portal', 'Astralny plan')))\n\t {\n\t $db->Execute(\"UPDATE `players` SET `miejsce`='Altara' WHERE `id`=\".$player->id);\n\t }\n return;\n }\n $fight -> Close();\n if ($_POST['action'] == 'drink' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n drink ($_POST['potion2']);\n $objMana = $db -> Execute(\"SELECT pm FROM players WHERE id=\".$player -> id);\n $player -> mana = $objMana -> fields['pm'];\n $objMana -> Close();\n if ($_SESSION['points'] >= $attacks && $player -> hp > 0) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'use' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if (!isset($_POST['arrows']))\n {\n $_POST['arrows'] = 0;\n }\n equip ($_POST['arrows']);\n $arrEquip = $player -> equipment();\n if ($_SESSION['points'] >= $attacks) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'weapons' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 2;\n if (!isset($_POST['weapon']))\n {\n $_POST['weapon'] = 0;\n }\n equip ($_POST['weapon']);\n $arrEquip = $player -> equipment();\n if ($_SESSION['points'] >= $attacks) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'escape') \n {\n $chance = (rand(1, $player -> level * 100) + $player -> speed - $enemy['agility']);\n if ($chance > 0) \n {\n $expgain = rand($enemy['exp1'],$enemy['exp2']);\n $expgain = (ceil($expgain / 100));\n $smarty -> assign (\"Message\", ESCAPE_SUCC.\" \".$enemy['name'].YOU_GAIN1.\" \".$expgain.\" \".EXP_PTS.\"<br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n checkexp($player -> exp,$expgain,$player -> level,$player -> race,$player -> user,$player -> id,0,0,$player -> id,'',0);\n $db -> Execute(\"UPDATE players SET fight=0, bless='', blessval=0 WHERE id=\".$player -> id);\n $points = $attacks * 2;\n $temp = 1;\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == \"Arena Walk\") \n {\n $smarty -> assign (\"Message\", \"</ul><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n }\n if ($title == 'Astralny plan' || $title == 'Portal')\n {\n $db -> Execute(\"UPDATE `players` SET `fight`=9999 WHERE id=\".$player -> id);\n }\n\t if ($title == 'Przygoda')\n\t {\n\t\t$db -> Execute(\"UPDATE `players` SET `fight`=-1 WHERE id=\".$player -> id);\n\t }\n } \n else \n {\n $smarty -> assign (\"Message\", \"<br />\".ESCAPE_FAIL.\" \".$enemy['name'].\"!\");\n $smarty -> display ('error1.tpl');\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n }\n if ($_POST['action'] == 'cast' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if (!isset($_POST['castspell']))\n {\n $_POST['castspell'] = 0;\n }\n castspell($_POST['castspell'],0,$eunik);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n /**\n * Burst offensive spell\n */\n if ($_POST['action'] == 'bspell' && $_SESSION['points'] > 0) \n {\n if (intval($_POST['power']) < 1) \n {\n $smarty -> assign (\"Message\", ERROR);\n $smarty -> display ('error1.tpl');\n $_POST['power'] = 0;\n }\n else\n {\n if ($_POST['power'] > $player -> level)\n {\n $_POST['power'] = $player -> level;\n }\n\t checkvalue($_POST['bspellboost']);\n $intSpelllevel = $db -> Execute(\"SELECT `gracz, `poziom` FROM `czary` WHERE `id`=\".$_POST['bspellboost']);\n\t if ($intSpelllevel->fields['gracz'] != $player->id)\n\t {\n\t\t$intMaxburst = 0;\n\t }\n\t else\n\t {\n\t\t$intMaxburst = $player -> mana - $intSpelllevel -> fields['poziom'];\n\t }\n $intSpelllevel -> Close();\n if ($_POST['power'] > $intMaxburst)\n {\n $_POST['power'] = $intMaxburst;\n }\n $_SESSION['points'] = $_SESSION['points'] - 2;\n castspell($_POST['bspellboost'],$_POST['power'],$eunik);\n }\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n /**\n * Burst defensive spell\n */\n if ($_POST['action'] == 'dspell') \n {\n if (intval($_POST['power1']) < 1) \n {\n $smarty -> assign (\"Message\", ERROR);\n $smarty -> display ('error1.tpl');\n $_POST['power1'] = 0;\n }\n if ($_POST['power1'] > $player -> level)\n {\n $_POST['power1'] = $player -> level;\n }\n $intMaxburst = $player -> mana - $myczaro -> fields['poziom'];\n if ($_POST['power1'] > $intMaxburst)\n {\n $_POST['power1'] = $intMaxburst;\n }\n $enemy['damage'] = $enemy['damage'] - $_POST['power1'];\n $player -> mana = $player -> mana - $_POST['power1'];\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'nattack' && $_SESSION['points'] > 0) \n {\n attack($eunik,0);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'dattack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n attack($eunik,3);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = $myunik + ($myunik / 2);\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'aattack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n attack($eunik,1);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = $myunik / 2;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'battack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 2;\n attack($eunik,2);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = 0;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if (!isset($_SESSION['points']))\n {\n $_SESSION['points'] = 0;\n }\n if($attacks > $_SESSION['points'] && $temp > 0 && $_POST['action'] != 'rest' && $_POST['action'] != 'escape') \n {\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'rest') \n {\n monsterattack($attacks,$enemy,0,$amount);\n if ($player -> hp > 0) \n {\n $smarty -> assign (\"Message\", \"<br />\".REST_SUCC);\n $smarty -> display ('error1.tpl');\n $rest = ($player -> cond / 10);\n $zmeczenie = $zmeczenie - $rest;\n if ($zmeczenie < 0) \n {\n $zmeczenie = 0;\n }\n $_SESSION['exhaust'] = $zmeczenie;\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($player -> hp <= 0) \n {\n if ($title != 'Arena Walk') \n\t {\n\t loststat($player -> id, $player->oldstats, 0, $enemy['name'], 0, $player->antidote);\n\t }\n\tif ($player->antidote == 'R')\n\t {\n\t $player->hp = 1;\n\t }\n if ($player -> hp < 0) \n {\n $player -> hp = 0;\n }\n\tif ($title == 'Przygoda')\n\t {\n\t $intFight = -1;\n\t }\n\telse\n\t {\n\t $intFight = 0;\n\t }\n $db -> Execute(\"INSERT INTO `events` (`text`) VALUES('Gracz \".$player -> user.\" \".DEFEATED_BY.$enemy['name'].\"')\");\n $db -> Execute(\"UPDATE `players` SET `fight`=\".$intFight.\", `hp`=\".$player -> hp.\", `bless`='', `blessval`=0, `antidote`='' WHERE `id`=\".$player -> id);\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == 'Arena Walk') \n {\n if (!$intPoisoned)\n {\n $smarty -> assign (\"Message\", \"</ul>\".LOST_FIGHT.\"...<br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n else\n {\n $smarty -> assign (\"Message\", \"</ul><br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n $smarty -> display ('error1.tpl');\n }\n }\n if (isset($_SESSION['points']))\n {\n $intPoints = $_SESSION['points'];\n }\n else\n {\n $intPoints = 0;\n }\n if (!$_POST['action'] && $attacks <= $intPoints) \n {\n fightmenu($_SESSION['points'],$zmeczenie,1,$addres);\n }\n if ($temp == 0 && $player -> fight > 0 && (isset($_SESSION['round']) && $_SESSION['round'] < 25)) \n {\n $db -> Execute(\"INSERT INTO `events` (`text`) VALUES('Gracz \".$player -> user.\" \".DEFEAT.\" \".$enemy['name'].\"')\");\n $db -> Execute(\"UPDATE `players` SET `credits`=`credits`+\".$goldgain.\" WHERE `id`=\".$player -> id);\n $smarty -> assign (\"Message\", \"<br /><li><b>\".YOU_DEFEAT.\" <b>\".$amount.\" \".$enemy['name'].\"</b>.\");\n $smarty -> display ('error1.tpl');\n $smarty -> assign (\"Message\", \"<li><b>\".REWARD.\" <b>\".$expgain.\"</b> \".EXP_PTS.\" \".AND_GAIN.\" <b>\".$goldgain.\"</b> \".COINS);\n $smarty -> display ('error1.tpl');\n\tmonsterloot($enemy['lootnames'], $enemy['lootchances'], $enemy['level'], $amount);\n\tbattlerecords($enemy['name'], $enemy['level'], $player->id);\n checkexp($player -> exp,$expgain,$player -> level,$player -> race,$player -> user,$player -> id,0,0,$player -> id,'',0);\n if ($player -> hp < 0) \n {\n $player -> hp = 0;\n }\n\tif (($player->hp > 0) && ($player->autodrink != 'N'))\n\t {\n\t if ($player->autodrink == 'A')\n\t {\n\t\tdrinkfew(0, 0, 'M');\n\t\tdrinkfew(0, 0, 'H');\n\t }\n\t else\n\t {\n\t\tdrinkfew(0, 0, $player->autodrink);\n\t }\n\t }\n if ($title == 'Arena Walk') \n {\n $smarty -> assign (\"Message\", \"</ul><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n }\n $db -> Execute(\"UPDATE players SET hp=\".$player -> hp.\", fight=0, bless='', blessval=0 WHERE id=\".$player -> id);\n\tif (isset($_SESSION['razy']))\n\t {\n\t unset($_SESSION['razy']);\n\t }\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n }\n $myczaro -> Close();\n}",
"public function activate()\n\t{\n\t\techo \"fight...\\n\";\n\t}",
"function doAttack(&$objSrcUser, &$objTrgUser, $arrSentArmy)\n{\n $srcKd = $objSrcUser->get_stat(ALLIANCE);\n $trgKd = $objTrgUser->get_stat(ALLIANCE);\n $strSrcRace = $objSrcUser->get_stat(RACE);\n $iSrcLand = $objSrcUser->get_build(LAND);\n $arrTrgBuilds = $objTrgUser->get_builds();\n $gains = pow(($arrTrgBuilds[LAND] / $iSrcLand), 2) + ($arrTrgBuilds[LAND] / ($iSrcLand * 3));\n $gains = min ($gains,1);\n\n $quick_gains = 0.01 * $gains; // 1% Land Gain\n\n if ($strSrcRace == \"Oleg Hai\")\n $quick_gains = $quick_gains * 1.3;\n\n //==========================================================================\n // Calculate Acre Gains\n //==========================================================================\n include_once('inc/functions/build.php');\n $arrBuildVars = getBuildingVariables($objTrgUser->get_stat(RACE));\n $arrBuildVars = $arrBuildVars['variables'];\n $max_build = $objTrgUser->get_number_build_types();\n $total_grab = 0;\n\n for($i = 1; $i <= $max_build; $i++)\n {\n $strVar = trim($arrBuildVars[$i]);\n $acres_won[$strVar] = round($arrTrgBuilds[$strVar]* ($quick_gains));\n $buildings = $objTrgUser->get_build($strVar);\n $land = $objTrgUser->get_build(LAND);\n $arrBuilds = array ($strVar => $buildings - $acres_won[$strVar], LAND => $land - $acres_won[$strVar] );\n $objTrgUser->set_builds($arrBuilds);\n $total_grab = $total_grab + $acres_won[$strVar];\n }\n\n // Explored\n $explore_gains = 0.2;\n $acres_explored = round($total_grab * $explore_gains);\n $land = $objSrcUser->get_build(LAND);\n $objSrcUser->set_build(LAND, ($land + $acres_explored));\n\n\n //==========================================================================\n // Calculate Citizens Killed\n //==========================================================================\n $trgCits = $objTrgUser->get_pop(CITIZENS);\n\n $max_kill = $trgCits * 0.2;\n $trgRace = $objTrgUser->get_stat(RACE);\n\n if ($max_kill < ($arrTrgBuilds[LAND] * 3) && $trgRace != \"Dragon\")\n $max_kill = $arrTrgBuilds[LAND] * 3;\n elseif ($max_kill < ($arrTrgBuilds[LAND] * 2) && $trgRace == \"Dragon\")\n $max_kill = $arrTrgBuilds[LAND] * 2;\n\n // War effects on max kill\n include_once(\"inc/functions/war.php\");\n $modifier = war_alli($srcKd, $trgKd);\n if ($modifier == 2)\n $max_kill = $max_kill * 1.2;\n\n // Martel: small bug fixed, $arrTrgBuilds not $arrTrgBuild\n $wallsPercent = ($arrTrgBuilds[WALLS] * 100) / $arrTrgBuilds[LAND];\n if ($wallsPercent > 20)\n $wallsPercent = 20;\n\n // frost: age 18, each % walls shelters 2% citizen\n for ($y = 1; $y <= $wallsPercent; $y++)\n $max_kill *= 0.98;\n\n // Max citizens to kill == citizens available\n $max_kill = round($max_kill);\n if ($max_kill > $trgCits)\n $max_kill = $trgCits;\n\n if ($max_kill > 0)\n {\n $intCitizens_alive = $trgCits - $max_kill;\n $objTrgUser->set_pop(CITIZENS, $intCitizens_alive);\n }\n else\n $max_kill = 0;\n\n // Let's see if we killed the tribe\n include_once('inc/functions/generic.php');\n obj_test_for_kill($objTrgUser, $objSrcUser);\n\n //==========================================================================\n // Calculate Cash Gains and Fame\n //==========================================================================\n $trgMoney = $objTrgUser->get_good(MONEY);\n\n $mod = 1;\n $stolen_crowns = round($trgMoney * 0.04);\n\n if ($arrTrgBuilds[LAND] > $iSrcLand)\n $fame_win = round($total_grab * 1.0);\n elseif ($arrTrgBuilds[LAND] < ($iSrcLand * 0.7))\n {\n $fame_win = round(-$total_grab * 1.0);\n $mod = ($arrTrgBuilds[LAND] * 1.3) / $iSrcLand;\n }\n else\n $fame_win = round($total_grab * 1.2);\n\n if ($mod < 0.7)\n $mod = 0.7;\n\n $max_crowns = round($arrTrgBuilds[LAND] * 500);\n\n $stolen_crowns = min(round($stolen_crowns * $mod), round($max_crowns));\n\n $objTrgUser->set_good(MONEY, $trgMoney - $stolen_crowns);\n $money = $objSrcUser->get_good(MONEY);\n $objSrcUser->set_good(MONEY, $money + $stolen_crowns);\n\n //==========================================================================\n // Return time\n //==========================================================================\n $wait = 4; // 4 hour attack time\n\n if ($strSrcRace == \"Raven\")\n $wait = 1;\n elseif ($strSrcRace == \"Mori Hai\" || $strSrcRace == \"Dragon\")\n $wait = 3;\n\n $landtime = 'land_t' . $wait;\n $objSrcUser->set_user_info(NEXT_ATTACK, $wait);\n\n //==========================================================================\n // Add land to incoming\n //==========================================================================\n if ($total_grab > 0)\n {\n $old_land = $objSrcUser->get_build($landtime);\n $objSrcUser->set_build($landtime, $total_grab + $old_land);\n }\n\n //==========================================================================\n // Calculate Fame Gains\n //==========================================================================\n\n // War effects\n $objSrcAlliance = $objSrcUser->get_alliance();\n require_once('inc/functions/war.php');\n if (checkWarBetween($objSrcAlliance, $trgKd))\n {\n // Update land counter in new war system March 06, 2008 Martel\n $iNeeded = $objSrcAlliance->get_war('land_needed');\n $objSrcAlliance->set_war('land_needed', max(0, $iNeeded - $total_grab));\n\n // War effects on fame\n $fame_win *= 1.2;\n }\n\n // Cannot take more fame than what the target has\n $fame_win = round($fame_win);\n $target_fame = $objTrgUser->get_stat(FAME);\n if ($fame_win > $target_fame)\n $fame_win = $target_fame;\n\n $fame1 = $objSrcUser->get_stat(FAME) + $fame_win;\n $fame2 = $target_fame - $fame_win;\n $objSrcUser->set_stat(FAME, $fame1);\n $objTrgUser->set_stat(FAME, $fame2);\n\n //==========================================================================\n\n $arrResults['gained_acres'] = $total_grab;\n $arrResults['explored_acres'] = $acres_explored;\n $arrResults['gained_fame'] = $fame_win;\n $arrResults['gained_crowns'] = $stolen_crowns;\n $arrResults['killed_citizens'] = $max_kill;\n\n return $arrResults;\n}",
"private function hooks() {\n\n\t\t\t/** Actions *******************************************************************/\n\n\t\t\t// Build the submenus.\n\t\t\tadd_action( 'admin_menu', array( $this, 'admin_menus' ), 10 );\n\n\t\t\t// Loading the talks edit screen\n\t\t\tadd_action( 'load-edit.php', array( $this, 'load_edit_talk' ) );\n\n\t\t\t// Make sure Editing a plugin's taxonomy highlights the plugin's nav\n\t\t\tadd_action( 'load-edit-tags.php', array( $this, 'taxonomy_highlight' ) );\n\n\t\t\t// Add metaboxes for the post type\n\t\t\tadd_action( \"add_meta_boxes_{$this->post_type}\", array( $this, 'add_metaboxes' ), 10, 1 );\n\t\t\t// Save metabox inputs\n\t\t\tadd_action( \"save_post_{$this->post_type}\", array( $this, 'save_metaboxes' ), 10, 3 );\n\n\t\t\t// Display upgrade notices\n\t\t\tadd_action( 'admin_notices', array( $this, 'admin_notices' ) );\n\n\t\t\t// Register the settings\n\t\t\tadd_action( 'admin_init', array( $this, 'register_admin_settings' ) );\n\n\t\t\tadd_action( 'load-settings_page_wc_talks', array( $this, 'settings_load' ) );\n\n\t\t\t// Talks columns (in post row)\n\t\t\tadd_action( \"manage_{$this->post_type}_posts_custom_column\", array( $this, 'column_data' ), 10, 2 );\n\n\t\t\t// Maybe neutralize quick edit\n\t\t\tadd_action( 'post_row_actions', array( $this, 'talk_row_actions' ), 10, 2 );\n\n\t\t\t// Do some global stuff here (custom css rule)\n\t\t\tadd_action( 'admin_head', array( $this, 'admin_head' ), 10 );\n\n\t\t\t/** Filters *******************************************************************/\n\n\t\t\t// Updated message\n\t\t\tadd_filter( 'post_updated_messages', array( $this, 'talks_updated_messages' ), 10, 1 );\n\t\t\tadd_filter( 'bulk_post_updated_messages', array( $this, 'talks_updated_bulk_messages' ), 10, 2 );\n\n\t\t\t// Redirect\n\t\t\tadd_filter( 'redirect_post_location', array( $this, 'redirect_talk_location' ), 10, 2 );\n\n\t\t\t// Filter the WP_List_Table views to include custom views.\n\t\t\tadd_filter( \"views_edit-{$this->post_type}\", array( $this, 'talk_views' ), 10, 1 );\n\n\t\t\t// temporarly remove bulk edit\n\t\t\tadd_filter( \"bulk_actions-edit-{$this->post_type}\", array( $this, 'talk_bulk_actions' ), 10, 1 );\n\n\t\t\t// Talks column headers.\n\t\t\tadd_filter( \"manage_{$this->post_type}_posts_columns\", array( $this, 'column_headers' ) );\n\n\t\t\t// Add a link to About & settings page in plugins list\n\t\t\tadd_filter( 'plugin_action_links', array( $this, 'modify_plugin_action_links' ), 10, 2 );\n\n\t\t\t/** Specific case: ratings ****************************************************/\n\n\t\t\t// Only sort by rates & display people who voted if ratings is not disabled.\n\t\t\tif ( ! wct_is_rating_disabled() ) {\n\t\t\t\tadd_action( \"manage_edit-{$this->post_type}_sortable_columns\", array( $this, 'sortable_columns' ), 10, 1 );\n\n\t\t\t\t// Manage votes\n\t\t\t\tadd_filter( 'wct_admin_get_meta_boxes', array( $this, 'ratings_metabox' ), 9, 1 );\n\t\t\t\tadd_action( 'load-post.php', array( $this, 'maybe_delete_rate' ) );\n\n\t\t\t\t// Custom feedback\n\t\t\t\tadd_filter( 'wct_admin_updated_messages', array( $this, 'ratings_updated' ), 10, 1 );\n\n\t\t\t\t// Help tabs\n\t\t\t\tadd_filter( 'wct_get_help_tabs', array( $this, 'rates_help_tabs' ), 11, 1 );\n\t\t\t}\n\t\t}",
"public function add_hooks()\n {\n }",
"public function add_hooks()\n {\n }",
"public function getEffect() {\n return $this->effect;\n }",
"function zg_post_move_ai($game, $game_user, $ai_output) {\n if ($game_user->meta == 'toxiboss' || $game_user->meta == 'admin') {\n firep($ai_output, 'ai output');\n }\n\n // From devel? send to dpm.\n if (arg(0) == 'devel') {\n dpm($ai_output, 'ai output');\n }\n\n // From cron? Send to Slack.\n if (arg(0) == 'node') {\n zg_slack($game_user, 'bots', 'output', $ai_output);\n }\n\n db_set_active();\n lock_release('ai_move');\n db_set_active('game_' . $game);\n}",
"public function addActionsStats() {\n //$this->hooks_stats[]= array ( \"hook\" => \"wp_login\", \"method\" =>array($this->session, \"wp_login\") );\n //$this->hooks_stats[]= array ( \"hook\" => \"wp_enqueue_scripts\", \"method\" =>array(\"Wolive_ajax\", \"addFrontEndScripts\") );\n //$this->hooks_stats[]= array ( \"hook\" => \"wp_ajax_wostats\", \"method\" =>array(\"Wolive_session\", \"ajaxFrontEnd\") );\n //$this->hooks_stats[]= array ( \"hook\" => \"wp_ajax_nopriv_wostats\", \"method\" =>array(\"Wolive_session\", \"ajaxFrontEnd\") );\n }",
"protected function defineActivationHooks(): void {\n\t\t$backend = $this->getBackend();\n\t\t$pluginName = $this->getFilename();\n\t\t$handlers = [\"activate\", \"deactivate\", \"uninstall\"];\n\t\tforeach ($handlers as $handler) {\n\t\t\t\n\t\t\t// for each of our handlers, we hook an action handler to our\n\t\t\t// backend component. the purpose of the BackendInterface is\n\t\t\t// to guarantee that we have three methods, one for each of\n\t\t\t// these hooks.\n\t\t\t\n\t\t\t$hook = $handler . \"_\" . $pluginName;\n\t\t\t$this->loader->addAction($hook, $backend, $handler);\n\t\t}\n\t}",
"private function hooks() {\n\n\t\t$plugin_admin = shortbuild_bu_hooks();\n add_filter( 'advanced_import_demo_lists', array( $plugin_admin, 'add_demo_lists' ), 10, 1 );\n add_filter( 'admin_menu', array( $plugin_admin, 'import_menu' ), 10, 1 );\n add_filter( 'wp_ajax_shortbuild_bu_getting_started', array( $plugin_admin, 'install_advanced_import' ), 10, 1 );\n add_filter( 'admin_enqueue_scripts', array( $plugin_admin, 'enqueue_styles' ), 10, 1 );\n add_filter( 'admin_enqueue_scripts', array( $plugin_admin, 'enqueue_scripts' ), 10, 1 );\n\n /*Replace terms and post ids*/\n add_action( 'advanced_import_replace_term_ids', array( $plugin_admin, 'replace_term_ids' ), 20 );\n }",
"public function takeDamage()\n\t\t{\n\t\t\tif ($this->_illness)\n\t\t\t{\n\t\t\t\t$this->_health -= $this->_damage; \n\t\t\t}\n\t\t}",
"public function calculateRound() {\n Yii::trace(\"calculateRound\");\n\n $this->nextRound();\n $this->onBeforeRound(new BattleEvent($this));\n\n /**\n * Resolve actions\n * Action calls expects $battle, $hero, $enemy, from the action's user \n * point of view\n * If actions happen in the same battle phase, RNG decides who acts \n * first. Otherwise, actions resolve in the order of the battle phases\n */\n if($this->combatantAAction->battlePhase == $this->combatantBAction->battlePhase) {\n $rand = mt_rand(0,100);\n if($rand >= 50) {\n $first = \"combatantA\";\n } else {\n $first = \"combatantB\";\n }\n } elseif ($this->combatantAAction->battlePhase == \"block\") {\n $first = \"combatantA\";\n } elseif ($this->combatantBAction->battlePhase == \"block\") {\n $first = \"combatantB\";\n } elseif ($this->combatantAAction->battlePhase == \"defense\") {\n $first = \"combatantA\";\n } elseif ($this->combatantBAction->battlePhase == \"defense\") {\n $first = \"combatantB\";\n }\n $second = ($first == \"combatantA\" ? \"combatantB\" : \"combatantA\");\n \n // First action\n $event = new BattleActionEvent($this, \n $this->{$first}, $this->{$second},\n $this->{$first . \"Action\"}\n );\n $this->onBeforeAction($event);\n $this->{$first . \"Action\"}->call(\"resolve\", $this, $this->{$first}, $this->{$second});\n $this->onAfterAction($event);\n \n // Second action\n $event = new BattleActionEvent($this, \n $this->{$second}, $this->{$first}, \n $this->{$second . \"Action\"}\n );\n $this->onBeforeAction($event);\n $this->{$second . \"Action\"}->call(\"resolve\", $this, $this->{$second}, $this->{$first});\n $this->onAfterAction($event);\n\n \n // Clean up\n $this->combatantAAction = null;\n $this->combatantBAction = null;\n\n /*\n * Check if fight is over\n */\n if($this->combatantA->hp <= 0 || $this->combatantB->hp <= 0) {\n $this->stop();\n } else {\n $this->onAfterRound(new BattleEvent($this));\n\n $this->combatantA->save();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n $this->saveObjectState();\n }\n }",
"public function attach_hooks() {\n\n\t\t$this->define_hooks();\n\n\t}",
"function action_init_for_admin() {\n\t\tif ( ! $this->ef_module->is_enabled() ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$this->check_active_plugins();\n\n\t\tif ( $this->should_apply_compat() ) {\n\t\t\tforeach ( $this->hooks as $hook => $callback ) {\n\t\t\t\tif ( is_callable( [ $this, $callback ] ) ) {\n\t\t\t\t\tremove_action( $hook, array( $this->ef_module, $callback ) );\n\t\t\t\t\tadd_action( $hook, array( $this, $callback ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function registerHooks() {\n\t\t// Nothing to do here right now\n\t\t// Others might want to know about this and get a chance to do their own work (like messing with our's :) )\n\t\tdo_action( 'pixelgrade_portfolio_registered_hooks' );\n\t}",
"public function applyAlwaysOnAbilityOverrides (): self\n {\n $class = new ReflectionClass($this->getItem()->getBaseItem());\n if (is_iterable($this->getItem()->getItemAbilities())) {\n foreach ($this->getItem()->getItemAbilities() as $itemAbility) {\n if ($itemAbility->isAlwaysOn() && $this->attunedLevel >= $itemAbility->getAttunementLevelRequired()) {\n foreach ($itemAbility->getAbility()->getAbilityPartial() as $abilityPartial) {\n if ($abilityPartial instanceof AbilityOverride) {\n try {\n $key = Tools::snakeCaseToCamelCase($abilityPartial->getOverrideKey(), false);\n $property = $class->getProperty($key);\n $property->setAccessible(true);\n if ($abilityPartial->isAppend()) {\n $property->setValue($this->getItem()->getBaseItem(), Tools::append($property->getValue($this->getItem()->getBaseItem()), $abilityPartial->getValue()));\n } else {\n $property->setValue($this->getItem()->getBaseItem(), $abilityPartial->getValue());\n }\n /** TODO Unset the ability partial */\n } catch (\\Exception $exception) {\n continue;\n }\n }\n }\n }\n }\n }\n return $this;\n }",
"public function addActions()\n {\n }",
"public function init()\n {\n $this->addAction('doStuff', 'performThingA');\n $this->addAction('doMoreStuff', 'performThingB');\n }",
"function damage_armor ($login, $shield = 0)\r\n {\r\n do_mysql (\"UPDATE items SET str = str - 1 WHERE belongs = '\".$login.\"' AND is_in LIKE 'a%' AND str > 0;\");\r\n if ($shield) do_mysql (\"UPDATE items SET str = str - 1 WHERE belongs = '\".$login.\"' AND is_in = 'shi' AND str > 0;\");\r\n }",
"function alter($action, $actionDetails = array())\n {\n // switch statement for $action here.\n // alternatively, implement a seperate function for each possible action (e.g. rotate(), resize(), etc.)\n\n die ('abstract class - subclass must implement this function. '. __CLASS__.'::'.__FUNCTION__); \n }",
"public function applyEffect($object, HeraldEffect $effect) {\n // after executing Herald.\n $this->logEffect(self::DO_BLOCK);\n }",
"public function increaseEffectDuration($Battleeffect, $sameHero = true) {\n $existingEffectIndex = $this->battleeffects->indexOf($Battleeffect, $sameHero);\n if($existingEffectIndex > -1) {\n $existingEffect = $this->battleeffects->itemAt($existingEffectIndex);\n $existingEffect->turns += $Battleeffect->turns;\n } else {\n // nothing or throw exception?\n }\n }",
"public function run()\n {\n $effects = ['chorus', 'delay', 'reverb'];\n\n foreach ($effects as $effect) {\n Effect::create(['name' => $effect]);\n }\n }",
"public function traits(){\n $this->clapHands();\n }",
"function Core_AddAction( $hookName, $function )\n{\n\tCore_ModuleManager::getInstance()->dispatcher->addObserver( $function, $hookName );\n}",
"protected function applyElementBehavior(): void\n {\n $behaviors = isset($this->elementBehaviors[$this->element()]) ? $this->elementBehaviors[$this->element()] : [];\n\n foreach ($behaviors as $behavior) {\n $this->{$behavior}(true);\n }\n }",
"public static function ability_function_spread_attack($objects, $options = array()){\n\n\n }",
"public function test_add_action_within_class_array() {\n $hook = rand_str();\n $this->assertFalse( yourls_has_action( $hook ) );\n yourls_add_action( $hook, array( 'Change_One_Global', 'change_it' ) );\n $this->assertTrue( yourls_has_action( $hook ) );\n\n return $hook;\n\t}",
"function battle($type,$adress) \n{\n global $player;\n global $smarty;\n global $enemy;\n global $arrehp;\n global $db;\n if ($player -> hp <= 0) \n {\n error (NO_LIFE);\n }\n $enemy1 = $db -> Execute(\"SELECT * FROM `monsters` WHERE `id`=\".$player -> fight);\n $span = ($enemy1 -> fields['level'] / $player -> level);\n if ($span > 2) \n {\n $span = 2;\n }\n $expgain = ceil(rand($enemy1 -> fields['exp1'],$enemy1 -> fields['exp2']) * $span);\n $goldgain = ceil(rand($enemy1 -> fields['credits1'],$enemy1 -> fields['credits2']) * $span);\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \n \"agility\" => $enemy1 -> fields['agility'], \n \"speed\" => $enemy1 -> fields['speed'], \n \"endurance\" => $enemy1 -> fields['endurance'], \n \"hp\" => $enemy1 -> fields['hp'], \n \"name\" => $enemy1 -> fields['name'], \n \"id\" => $enemy1 -> fields['id'], \n \"exp1\" => $enemy1 -> fields['exp1'], \n \"exp2\" => $enemy1 -> fields['exp2'], \n \"level\" => $enemy1 -> fields['level'],\n\t\t \"lootnames\" => explode(\";\", $enemy1->fields['lootnames']),\n\t\t \"lootchances\" => explode(\";\", $enemy1->fields['lootchances']));\n if ($type == 'T') \n {\n if (!isset ($_POST['action'])) \n {\n turnfight ($expgain,$goldgain,'',$adress);\n } \n else \n {\n turnfight ($expgain,$goldgain,$_POST['action'],$adress);\n }\n } \n else \n {\n fightmonster ($enemy,$expgain,$goldgain,1);\n }\n $fight = $db -> Execute(\"SELECT `fight`, `hp` FROM `players` WHERE `id`=\".$player -> id);\n if ($fight -> fields['fight'] == 0) \n {\n if ($type == 'T')\n\t {\n\t $player->energy --;\n\t if ($player -> energy < 0) \n\t {\n\t\t$player -> energy = 0;\n\t }\n\t $db -> Execute(\"UPDATE `players` SET `energy`=\".$player->energy.\" WHERE `id`=\".$player->id);\n\t }\n if ($player -> location == 'Góry') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php?akcja=gory\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"gory.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n if ($player -> location == 'Las') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"las.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n }\n $fight -> Close();\n $enemy1 -> Close();\n}",
"public function behaviors()\n\t{\n\t\treturn array('CAdvancedArBehavior',array('class' => 'ext.CAdvancedArBehavior'));\n\t}",
"function hook_image_effect_info_alter(&$effects) {\n // Override the Image module's crop effect with more options.\n $effects['image_crop']['effect callback'] = 'mymodule_crop_effect';\n $effects['image_crop']['dimensions callback'] = 'mymodule_crop_dimensions';\n $effects['image_crop']['form callback'] = 'mymodule_crop_form';\n}",
"public function reactToOnAfterDealtDamage($event) { }",
"public function setup_actions() {\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_scripts' ) );\n\t\t\n\t\t/** Dequeue GMAP Script */\n\t\tadd_filter( 'facetwp_assets', array( $this, 'dequeue_gmap' ) );\n\n\t\t/** Theme Support */\n\t\tadd_action( 'after_setup_theme', array( $this, 'add_theme_support' ) );\n\t}",
"public function __construct(){\n\n // Update the session keys for this object\n $this->session_key = 'BATTLES';\n $this->session_token = 'battle_token';\n $this->session_id = 'battle_id';\n $this->class = 'battle';\n $this->multi = 'battles';\n\n // Create any required sub-objects\n $this->queue['sound_effects'] = array();\n\n // Collect any provided arguments\n $args = func_get_args();\n\n // Collect current battle data from the function if available\n $this_battleinfo = isset($args[0]) ? $args[0] : array('battle_id' => 0, 'battle_token' => 'battle');\n\n // Now load the battle data from the session or index\n $this->battle_load($this_battleinfo);\n\n // Return true on success\n return true;\n\n }",
"public function add_caps_to_roles(): void {\n\t\t$all_capabilities_raw = $this->get_all_capabilities();\n\t\t$all_capabilities = array_values( $all_capabilities_raw );\n\n\t\t$administrator = get_role( 'administrator' );\n\t\t$editor = get_role( 'editor' );\n\t\t$author = get_role( 'author' );\n\t\t$contributor = get_role( 'contributor' );\n\n\t\tif ( $administrator instanceof WP_Role ) {\n\t\t\tforeach ( $all_capabilities as $cap ) {\n\t\t\t\t$administrator->add_cap( $cap );\n\t\t\t}\n\t\t}\n\n\t\tif ( $editor instanceof WP_Role ) {\n\t\t\tforeach ( $all_capabilities as $cap ) {\n\t\t\t\t$editor->add_cap( $cap );\n\t\t\t}\n\t\t}\n\n\t\tif ( $author instanceof WP_Role ) {\n\t\t\t$author->add_cap( $all_capabilities_raw['edit_posts'] );\n\t\t\t$author->add_cap( $all_capabilities_raw['edit_published_posts'] );\n\t\t\t$author->add_cap( $all_capabilities_raw['delete_posts'] );\n\t\t\t$author->add_cap( $all_capabilities_raw['delete_published_posts'] );\n\t\t\t$author->add_cap( $all_capabilities_raw['publish_posts'] );\n\t\t\t$author->add_cap( $all_capabilities_raw['assign_terms'] );\n\t\t}\n\n\t\tif ( $contributor instanceof WP_Role ) {\n\t\t\t$contributor->add_cap( $all_capabilities_raw['edit_posts'] );\n\t\t\t$contributor->add_cap( $all_capabilities_raw['delete_posts'] );\n\t\t\t$contributor->add_cap( $all_capabilities_raw['assign_terms'] );\n\t\t}\n\n\t\t/**\n\t\t * Fires when adding the custom capabilities to existing roles.\n\t\t *\n\t\t * Can be used to add the capabilities to other, custom roles.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param array $all_capabilities List of all post type capabilities, for reference.\n\t\t */\n\t\tdo_action( 'web_stories_add_capabilities', $all_capabilities );\n\t}",
"private function hooks() {\n\t\tadd_filter( 'monsterinsights_frontend_tracking_options_analytics_before_scripts', array( $this, 'require_ec' ), 10, 1 );\n\n\t\t// Setup Funnel steps for WooCommerce\n\t\t$this->funnel_steps = $this->get_funnel_steps();\n\n\t\t// Impression: User sees the product in a list\n\t\tadd_action( 'woocommerce_before_shop_loop_item', array( $this, 'impression' ) );\n\n\t\t// Click: user then clicks on product listing to view more about product\n\t\tadd_action( 'woocommerce_before_shop_loop_item', array( $this, 'product_click' ) );\n\n\t\t// View details: user views product details\n\t\tadd_action( 'woocommerce_after_single_product_summary', array( $this, 'product_detail' ), 1 );\n\n\t\t// Add to cart\n\t\tadd_action( 'woocommerce_add_to_cart', array( $this, 'add_to_cart' ), 10, 4 );\n\n\t\t// Update cart quantity\n\t\tadd_action( 'woocommerce_after_cart_item_quantity_update', array( $this, 'change_cart_quantity' ), 10, 3 );\n\n\t\t// Remove from Cart\n\t\tadd_action( 'woocommerce_before_cart_item_quantity_zero', array( $this, 'remove_from_cart' ) );\n\t\tadd_action( 'woocommerce_remove_cart_item', array( $this, 'remove_from_cart' ) );\n\n\t\t// Checkout Page\n\t\tadd_action( 'woocommerce_after_checkout_form', array( $this, 'checkout_page' ) );\n\n\t\t// Save CID on checkout\n\t\tadd_action( 'woocommerce_checkout_order_processed', array( $this, 'save_user_cid' ), 10, 2 );\n\n\t\t// Add Order to GA\n\t\tadd_action( 'woocommerce_order_status_processing', array( $this, 'add_order' ), 10 );\n\t\tadd_action( 'woocommerce_order_status_completed', array( $this, 'add_order' ), 10 );\n\n\t\t// Remove Order from GA\n\t\tadd_action( 'woocommerce_order_partially_refunded', array( $this, 'remove_order' ), 10, 2 );\n\t\tadd_action( 'woocommerce_order_fully_refunded', array( $this, 'refund_full_order' ), 10, 2 );\n\n\t\t// PayPal Redirect\n\t\tadd_filter( 'woocommerce_get_return_url', array( $this, 'change_paypal_return_url' ) );\n\n\t\t// If we have queued JS to print, print it now\n\t\t\t// Impression JS\n\t\t\tadd_filter( 'wp_footer', array( $this, 'print_impressions_js' ), 11, 1 );\n\n\t\t\t// Event JS\n\t\t\tadd_filter( 'wp_footer', array( $this, 'print_events_js' ), 11, 1 );\n\t}",
"public function setMinDamage(){ $this->minDamage = 10; }",
"public function onEnable() : void {\n\t\tif(!InvMenuHandler::isRegistered()){\n\t\t\tInvMenuHandler::register($this);\n\t\t}\n\t\tself::$instance = $this;\n\t\tself::$classmanager = new ClassManager($this);\n\t\tself::$classShopManager = new ClassShopManager($this);\n\t\tself::$uiManager = new UIManager($this);\n\t\tself::$utils = new Utilities($this);\n\t\tself::$perkShopManager = new PerkShopManager($this);\n\t\tself::$perkManager = new PerksManager($this);\n\t\tself::$eventManager = new EventManager($this);\n\t\t$this->playerdata = new Config($this->getDataFolder() . \"players.yml\", Config::YAML);\n\t\t$this->purchasedata = new Config($this->getDataFolder() . \"purchases.yml\", Config::YAML);\n\t\t$this->abilitydata = new Config($this->getDataFolder() . \"abilities.yml\", Config::YAML);\n\t\t$this->getScheduler()->scheduleRepeatingTask(new ScoreboardTask($this), 60);\n\t\t$this->getScheduler()->scheduleRepeatingTask(new ClassTask($this), 60);\n\t\t$this->getScheduler()->scheduleRepeatingTask(new ClearEntitesTask($this), 30 * 20);\n\t\t$this->getServer()->getPluginManager()->registerEvents(new ClassListener($this), $this);\n\t\t$this->getServer()->getPluginManager()->registerEvents(new EventListener($this), $this);\n\t\t$this->getServer()->getCommandMap()->register(\"setrank\", new SetRankCommand($this));\n\t\t$this->getServer()->getCommandMap()->register(\"ping\", new PingCommand($this));\n\t\t$this->getServer()->getCommandMap()->unregister($this->getServer()->getCommandMap()->getCommand(\"kick\"));\n\t\t$this->getServer()->getCommandMap()->register(\"kick\", new KickCommand($this));\n\t\t$this->getServer()->getCommandMap()->register(\"forceclass\", new ForceClassCommand($this));\n\t\t$this->getServer()->getCommandMap()->register(\"refill\", new RefillCommand($this));\n\t\t$this->getServer()->getCommandMap()->register(\"event\", new EventCommand($this));\n\t\t$this->leaderBoard = new FloatingTextParticle(new Vector3(229,25,197), \"\");\n\t\t$this->getServer()->getDefaultLevel()->addParticle($this->leaderBoard);\n\t\t$this->getScheduler()->scheduleRepeatingTask(new AnnouncementTask($this), 20);\n\t\t$this->getScheduler()->scheduleRepeatingTask(new FloatingTextTask($this), 20 * 20);\n\t\tEntity::registerEntity(FishHook::class, false, [\"FishingHook\", \"minecraft:fishing_rod\"]);\n\t\tItemFactory::registerItem(new FishingRod(), true);\n\t}",
"abstract public function combatLevel();",
"abstract function fire($action, $args);",
"public function hook()\n {\n \\add_action(\n $this->tag,\n $this->callback,\n $this->priority,\n $this->acceptedParams\n );\n }",
"public function addHooks() {\n\t\tadd_action( 'after_setup_theme', array( $this, 'bufferStart' ) );\n\t\tadd_action( 'wp_shutdown', array( $this, 'bufferEnd' ) );\n\t}",
"public function hook() {\n\t\tadd_action( 'admin_print_scripts', [ $this, 'admin_scripts' ] );\n\t\t// Elementor support.\n\t\tadd_action( 'elementor/editor/after_enqueue_scripts', [ $this, 'admin_scripts' ] );\n\t\t// UGH! Beaver Builder hack.\n\t\tif ( isset( $_GET['fl_builder'] ) ) { // phpcs:ignore\n\t\t\tadd_action( 'wp_enqueue_scripts', [ $this, 'admin_scripts' ] );\n\t\t}\n\n\t\tadd_action( 'advanced-sidebar-menu/widget/category/after-form', [ $this, 'init_widget_js' ], 1000 );\n\t\tadd_action( 'advanced-sidebar-menu/widget/page/after-form', [ $this, 'init_widget_js' ], 1000 );\n\t\tadd_action( 'advanced-sidebar-menu/widget/navigation-menu/after-form', [ $this, 'init_widget_js' ], 1000 );\n\t}",
"private function add_actions()\n {\n }",
"public\tfunction\tactionsFiltersHooks() {\n\t\t\t/**\n\t\t\t * Handle actions here.\n\t\t\t */\n\t\t\t\n\t\t\t//If this is not a network admin install.\n\t\t\tif (!is_multisite()) {\n\t\t\t\t//Add an action to implement the administrative menues.\n\t\t\t\tadd_action('admin_menu', array($this, 'adminMenues'));\n\t\t\t} else {\n\t\t\t\t//Add an action to implement the network administrative menues.\n\t\t\t\tadd_action('network_admin_menu', array($this, 'adminMenues'));\n\t\t\t}\n\t\t\t\n\t\t\t//If the user is not logged into the administration panel.\n\t\t\tif (!is_admin()) {\n\t\t\t\t//Add an action to load site related content.\n\t\t\t\tadd_action('after_setup_theme', array($this, 'enqueueSite'), 18);\n\t\t\t}\n\t\t\t\n\t\t\t/**\n\t\t\t * Handle filters here.\n\t\t\t */\n\t\t\t\t\n\t\t\t//Add a filter to run meta content for the plugin.\n\t\t\tadd_filter('plugin_row_meta', array($this, 'meta'), 10, 2);\n\t\t\t\t\n\t\t\t/**\n\t\t\t * Handle hooks here.\n\t\t\t*/\n\t\t\t\t\n\t\t\t//Register an activation hook to install.\n\t\t\tregister_activation_hook(__FILE__, array($this, 'install'));\n\t\t\t\t\n\t\t\t//Register an activation hook to uninstall.\n\t\t\tregister_activation_hook(__FILE__, array($this, 'uninstall'));\n\t\t}",
"private function add_hooks(){\n\t\n\t\tadd_action( 'plugin_action_links_' . UCLACOMPONENTSWP_PLUGIN_BASE, array( $this, 'add_plugin_action_link' ), 20 );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'enqueue_backend_scripts_and_styles' ), 20 );\n\t\tadd_action( 'wp_enqueue_scripts', array( $this, 'enqueue_public_scripts_and_styles' ), 20 );\n\t\n\t}",
"public function takeDamage(Character $target)\n {\n $target->totalStrength = 0;\n $random = rand(1, 5);\n\n if ($random == 1) {\n $target->totalStrength = $target->strength + $target->critical;\n $target->bonus();\n } else {\n $target->totalStrength = $target->strength;\n }\n\n $this->healthPoints = $this->healthPoints - $target->totalStrength;\n }",
"function Calculate_Ability_Modifiers(&$character1) {\r\n\t\tglobal $sr;\r\n\t\t$ability_mods = array();\r\n\t\t$attributes = array(\"str\", \"dex\", \"con\", \"intel\", \"wis\", \"cha\"); //switch to predefined!!!\r\n\t\tforeach($attributes as $key=>$attrib) \r\n\t\t{\r\n\t\t\t// note that the -0.01 is a fuzz factor, it prevents PHP rounding exact halves e.g. 3.5 which\r\n\t\t\t// the round() function can round either up or down depending on whether the unit number (3) is\r\n\t\t\t// even or odd\r\n\t\t\t$ability_mods[$attrib] = round(($character1[$attrib]-10-0.01)/2);\r\n\t\t\t$_SESSION['modifiers'][$attrib] = $ability_mods[$attrib];\r\n\t\t}\r\n\t\t$sr->assign(\"ability_modifiers\", $ability_mods);\r\n\t}",
"function charity_before() {\n do_action('charity_before');\n}",
"public function hook($name, $action, $priority = 10, $accepted_args = 1);",
"abstract protected function putPlayersInDuel(): void;",
"abstract function before();",
"private function hooks() {\n\t\t$this->include_tabs();\n\t\t$this->include_tabs_server();\n\n\t\t// Enable the REST API if the settings allow for it.\n\t\tif ( true === (bool) wpcd_get_early_option( 'wordpress_app_rest_api_enable' ) ) {\n\t\t\t$this->include_rest_api();\n\t\t}\n\n\t\t// Make sure WordPress loads up our css and js scripts.\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'wpapp_enqueue_scripts' ), 10, 1 );\n\n\t\t// Show any admin notices related to upgrades.\n\t\tadd_action( 'admin_notices', array( $this, 'wpapp_upgrades_admin_notice' ) );\n\n\t\t// Actions send from the front-end when installing servers and sites.\n\t\tadd_action( \"wpcd_server_{$this->get_app_name()}_action\", array( &$this, 'do_instance_action' ), 10, 3 );\n\t\tadd_action( \"wpcd_app_{$this->get_app_name()}_action\", array( &$this, 'do_app_action' ), 10, 3 );\n\n\t\tadd_filter( \"wpcd_command_{$this->get_app_name()}_logs_done\", array( &$this, 'get_logs_done' ), 10, 4 );\n\t\tadd_filter( \"wpcd_command_{$this->get_app_name()}_logs_intermed\", array( &$this, 'get_logs_intermed' ), 10, 4 );\n\t\tadd_action( \"wpcd_command_{$this->get_app_name()}_completed\", array( &$this, 'command_completed' ), 10, 2 );\n\t\tadd_filter( 'wpcd_server_script_args', array( $this, 'add_script_args_server' ), 10, 2 );\n\t\tadd_filter( 'wpcd_app_script_args', array( $this, 'add_script_args_app' ), 10, 2 );\n\t\tadd_filter( 'wpcd_actions', array( $this, 'add_post_actions' ), 10, 2 );\n\t\tadd_filter( \"wpcd_script_placeholders_{$this->get_app_name()}\", array( $this, 'script_placeholders' ), 10, 6 );\n\t\tadd_filter( 'wpcd_app_server_admin_list_local_status_column', array( &$this, 'app_server_admin_list_local_status_column' ), 10, 2 ); // Show the server status.\n\t\tadd_filter( 'wpcd_app_server_admin_list_local_status_column', array( &$this, 'app_server_admin_list_upgrade_status' ), 11, 2 ); // Show the upgrade status in the local status column - function located in trait file upgrade.php.\n\t\tadd_filter( 'wpcd_app_admin_list_summary_column', array( &$this, 'app_admin_list_upgrade_status' ), 11, 2 ); // Show the upgrade status in the TITLE column of the app list - function located in trait file upgrade.php.\n\n\t\t// Push commands and callbacks from servers.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_server_status_completed\", array( &$this, 'push_command_server_status_completed' ), 10, 4 ); // When a server sends us it's daily status report, part 1 - see bash script #24.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_sites_status_completed\", array( &$this, 'push_command_sites_status_completed' ), 10, 4 ); // When a server sends us it's daily status report, part 2 - see bash script #24.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_maldet_scan_completed\", array( &$this, 'push_command_maldet_scan_completed' ), 10, 4 ); // When a server sends us a report of maldet scan results - see bash script #26.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_server_restart_completed\", array( &$this, 'push_command_server_restart_completed' ), 10, 4 ); // When a server sends us a report of restart or shutdown.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_monit_log_completed\", array( &$this, 'push_command_monit_log_completed' ), 10, 4 ); // When a server sends us a monit alert or report.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_start_domain_backup_completed\", array( &$this, 'push_command_domain_backup_v1_started' ), 10, 4 ); // When a server sends us a notification telling us a scheduled backup was started for a domain.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_end_domain_backup_completed\", array( &$this, 'push_command_domain_backup_v1_completed' ), 10, 4 ); // When a server sends us a notification telling us a scheduled backup was completed for a domain.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_server_config_backup_completed\", array( &$this, 'push_command_server_config_backup' ), 10, 4 ); // When a server sends us a notification telling us a backup of the server configuration has started or ended.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_test_rest_api_completed\", array( &$this, 'push_command_test_rest_api_completed' ), 10, 4 ); // When a server sends us a test notification (initiated from the TOOLS tab on a server screen).\n\n\t\t// Push commands and callbacks from sites.\n\t\tadd_action( \"wpcd_{$this->get_app_name()}_command_schedule_site_sync_completed\", array( &$this, 'push_command_schedule_site_sync' ), 10, 4 ); // When a scheduled site sync has started or ended.\n\n\t\t// After server prepare action hooks.\n\t\t$this->wpcd_after_server_prepare_action_hooks();\n\n\t\t// When we're querying to find out the status of a server.\n\t\tadd_filter( 'wpcd_is_server_available_for_commands', array( &$this, 'wpcd_is_server_available_for_commands' ), 10, 2 );\n\n\t\t// When an app cleanup script is being run.\n\t\tadd_action( 'wpcd_cleanup_app_after', array( $this, 'wpcd_cleanup_app_after' ), 10, 1 );\n\n\t\t// When a server cleanup script is being run.\n\t\tadd_action( 'wpcd_cleanup_server_after', array( $this, 'wpcd_cleanup_server_after' ), 10, 1 );\n\n\t\t// When WP has been installed, add temp domain to DNS if configured.\n\t\tadd_action( 'wpcd_command_wordpress-app_completed_after_cleanup', array( $this, 'wpcd_wpapp_install_complete' ), 10, 4 );\n\n\t\t// Ajax Hooks.\n\t\tadd_action( \"wp_ajax_wpcd_{$this->get_app_name()}\", array( &$this, 'ajax_server' ) ); // For ajax calls dealing with servers in wp-admin.\n\t\tadd_action( \"wp_ajax_wpcd_app_{$this->get_app_name()}\", array( &$this, 'ajax_app' ) ); // for ajax calls dealing with apps in wp-admin.\n\t\tif ( wpcd_is_woocommerce_activated() ) {\n\t\t\tadd_action( 'wp_ajax_wpcd_wpapp_frontend', array( &$this, 'ajax_wpapp_frontend' ) ); // for ajax calls from the front-end - code in trait files.\n\t\t}\n\n\t\t// Add welcome message to the settings screen.\n\t\tadd_filter( 'wpcd_general_settings_after_welcome_message', array( $this, 'welcome_message_settings' ), 10, 1 );\n\n\t\t// Add some additional instructions to the \"no application servers found\" message.\n\t\tadd_filter( 'wpcd_no_app_servers_found_msg', array( $this, 'no_app_servers_found_msg' ), 10, 1 );\n\n\t\t// Add a state called \"WordPress\" to the app when its shown on the app list.\n\t\tadd_filter( 'display_post_states', array( $this, 'display_post_states' ), 20, 2 );\n\n\t\t// Background actions for SERVER.\n\t\tadd_action( 'wpcd_wordpress_deferred_actions_for_server', array( $this, 'do_deferred_actions_for_server' ), 10 );\n\n\t\t// Background actions for APPS.\n\t\tadd_action( 'wpcd_wordpress_deferred_actions_for_apps', array( $this, 'do_deferred_actions_for_app' ), 10 );\n\n\t\t// Delete temp log files.\n\t\tadd_action( 'wpcd_wordpress_file_watcher', array( $this, 'file_watcher_delete_temp_files' ) );\n\n\t\t/* Do not allow WooCommerce to redirect to their account page */\n\t\tadd_filter( 'woocommerce_prevent_admin_access', array( $this, 'wc_subscriber_admin_access' ), 20, 1 );\n\n\t\t/*********************************************\n\t\t* Hooks and filters for screens in wp-admin\n\t\t*/\n\n\t\t// Filter hook to add new columns to the APP list.\n\t\tadd_filter( 'manage_wpcd_app_posts_columns', array( $this, 'app_posts_app_table_head' ), 10, 1 );\n\n\t\t// Action hook to add values in new columns in the APP list.\n\t\tadd_action( 'manage_wpcd_app_posts_custom_column', array( $this, 'app_posts_app_table_content' ), 10, 2 );\n\n\t\t// Filter hook to add new columns to the SERVER list.\n\t\tadd_filter( 'manage_wpcd_app_server_posts_columns', array( $this, 'app_server_table_head' ), 10, 1 );\n\n\t\t// Show some app details in the wp-admin list of apps.\n\t\tadd_filter( 'wpcd_app_admin_list_summary_column', array( &$this, 'app_admin_list_summary_column' ), 10, 2 );\n\n\t\t// Add the INSTALL WordPress button to the server list.\n\t\tadd_filter( 'wpcd_app_server_table_content', array( &$this, 'app_server_table_content' ), 10, 3 );\n\n\t\t// Filter hook to add a REMOVE SITE link to the hover action on an app.\n\t\tadd_filter( 'post_row_actions', array( $this, 'post_row_actions' ), 10, 2 );\n\n\t\t// Meta box display callback.\n\t\tadd_action( 'add_meta_boxes_wpcd_app', array( $this, 'app_admin_add_meta_boxes' ) );\n\n\t\t// Save Meta Values.\n\t\tadd_action( 'save_post', array( $this, 'app_admin_save_meta_values' ), 10, 2 );\n\n\t\t// Add Metabox.IO metaboxes for the WordPress app into the APP details CPT screen.\n\t\tadd_filter( \"wpcd_app_{$this->get_app_name()}_metaboxes\", array( $this, 'add_meta_boxes' ), 10, 1 );\n\n\t\t// Add Metabox.IO metaboxes for the SERVER CPT into the server details CPT screen.\n\t\tadd_filter( 'rwmb_meta_boxes', array( $this, 'register_server_metaboxes' ), 10, 1 ); // Register application metabox stub with filter. Note that this is a METABOX.IO filter, not a core WP filter.\n\t\tadd_filter( \"wpcd_server_{$this->get_app_name()}_metaboxes\", array( $this, 'add_meta_boxes_server' ), 10, 1 );\n\n\t\t// Action hook to fire on new site created on WP Multisite.\n\t\tadd_action( 'wp_initialize_site', array( $this, 'wpapp_schedule_events_for_new_site' ), 10, 2 );\n\n\t\t// Action hook to set transient if directory is readable and .txt files are accessible.\n\t\tadd_action( 'admin_init', array( $this, 'wpapp_admin_init' ) );\n\n\t\t// Action hook to handle ajax request to set transient if user closed the readable notice check.\n\t\tadd_action( 'wp_ajax_set_readable_check', array( $this, 'set_readable_check' ) );\n\n\t\t// Action hook to handle ajax request to set transient if user clicked the \"check again\" option in the \"readable check\" notice.\n\t\tadd_action( 'wp_ajax_readable_check_again', array( $this, 'readable_check_again' ) );\n\n\t\t// Action hook to extend admin filter options.\n\t\tadd_action( 'restrict_manage_posts', array( $this, 'wpapp_wpcd_app_table_filtering' ) );\n\n\t\t// Filter hook to filter app listing on custom meta data.\n\t\tadd_filter( 'parse_query', array( $this, 'wpapp_wpcd_app_parse_query' ), 10, 1 );\n\n\t\t// Action hook to handle ajax request to set transient if user closed the notice for cron check.\n\t\tadd_action( 'wp_ajax_set_cron_check', array( $this, 'set_cron_check' ) );\n\t}",
"public function ignite() {\n\t\tadd_action( 'add_meta_boxes', array( $this, 'add_metabox' ) );\n\t\tadd_action( 'save_post', array( $this, 'save_metabox' ), 10, 3 );\n\t\tadd_action( 'page_specific_menu', array( $this, 'output_menu' ) );\n\t}",
"protected function hook1(): void { }",
"public function activate()\n\t{\n\t\techo \"shot...\\n\";\n\t}",
"function presscore_tpl_get_anim_effect_class( $effect ) {\n\t\tswitch ( $effect ) {\n\t\t\tcase '2': $class = 'effect-bubba'; break;\n\t\t\tcase '3': $class = 'effect-sarah'; break;\n\t\t\tcase '1':\n\t\t\tdefault: $class = 'effect-layla';\n\t\t}\n\n\t\treturn $class;\n\t}"
] | [
"0.6034177",
"0.5703318",
"0.5430372",
"0.53918564",
"0.53503305",
"0.5343876",
"0.5309884",
"0.5247773",
"0.5238688",
"0.52343744",
"0.5212914",
"0.5143583",
"0.51361203",
"0.51241255",
"0.51205343",
"0.5099951",
"0.50934225",
"0.5068831",
"0.5036999",
"0.5025582",
"0.4993948",
"0.49910533",
"0.4975206",
"0.49638972",
"0.49455392",
"0.4932589",
"0.490455",
"0.48837578",
"0.4877106",
"0.48360327",
"0.4832301",
"0.48211822",
"0.48049435",
"0.47699422",
"0.47630295",
"0.47398633",
"0.47287828",
"0.472003",
"0.47153738",
"0.46759674",
"0.4669356",
"0.46682978",
"0.4655705",
"0.4644287",
"0.4632898",
"0.46284258",
"0.46219242",
"0.46219242",
"0.46207437",
"0.461779",
"0.4588526",
"0.45862532",
"0.45752114",
"0.45748073",
"0.45709738",
"0.45648804",
"0.45620796",
"0.45586893",
"0.45525008",
"0.45448536",
"0.4539723",
"0.4539211",
"0.45304418",
"0.45249265",
"0.45227718",
"0.45198667",
"0.45170146",
"0.4513687",
"0.45119518",
"0.44871634",
"0.44821113",
"0.4479607",
"0.44769493",
"0.44748893",
"0.4473162",
"0.44677716",
"0.44638622",
"0.44612384",
"0.44402516",
"0.44401082",
"0.4439007",
"0.443701",
"0.44346663",
"0.44246402",
"0.4423424",
"0.44224346",
"0.44216448",
"0.44135392",
"0.4412291",
"0.44058377",
"0.44043604",
"0.43999285",
"0.43847308",
"0.4379558",
"0.43789443",
"0.43782696",
"0.43743825",
"0.43723682",
"0.43718338",
"0.4365424"
] | 0.649531 | 0 |
Detaches the Battleeffect from the Battle "Override" by specialness classes by using these commands: | public function detachFromBattle($battle) {
$battle->detachEventHandler("onAfterRound", array($this, 'reactToOnAfterRound'));
if($this->blocks) {
$battle->detachEventHandler("onBeforeAction", array($this, 'reactToOnBeforeAction'));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function _deactivate() {}",
"public function stop() {\n if($this->combatantA->hp > 0) {\n $this->winnerType = \"player\";\n $this->winnerID = $this->combatantAID;\n } elseif ($this->combatantB->hp > 0) {\n $this->winnerType = ($this->type == \"pvp\" ? \"player\" : \"monster\");\n $this->winnerID = $this->combatantBID;\n } else {\n $this->winnerType = \"draw\";\n }\n\n // Bounty + XP\n if($this->type == \"monster\" && $this->combatantB->hp <= 0) {\n $loot = $this->combatantB->dropItems($this->combatantA->getDropItemPerc());\n $this->combatantA->gainItems($loot);\n \n $contact = $this->combatantB->dropContact($this->combatantA->getDropContactPerc());\n $this->combatantA->gainContact($contact, \"battle\");\n\n /**\n * monster->xp can be defined to deviate from the standard\n * attack / 2 xp reward\n */\n if(isset($this->combatantB->xp)) {\n $this->combatantA->gainXp($this->combatantB->xp, \"battle\");\n } else {\n $this->combatantA->gainXp($this->combatantB->attack / 4, \"battle\");\n }\n }\n\n $this->combatantA->ongoingBattleID = null;\n if($this->type == \"pvp\") {\n // @todo Message to PVP enemy\n $this->combatantB->ongoingBattleID = null;\n }\n\n $this->state = \"resolved\";\n $this->objectState = \"\";\n\n /**\n * ToDo: why does backupbehavior think that no attribute changed\n * if we set ongoingBattleID to null?\n */\n // $this->combatantA->save();\n $this->combatantA->update();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n\n $this->update();\n $this->reconstructCombatants();\n \n // Notify the world about this result\n $event = new BattleEvent($this);\n $this->combatantA->onFinishedBattle($event);\n if($this->type == \"pvp\") {\n $this->combatantB->onFinishedBattle($event);\n }\n }",
"public function __sleep() {\n if($this->type == \"pvp\") {\n $this->combatantA = null;\n $this->combatantB = null;\n } else {\n $this->combatantA = null;\n }\n \n /**\n * This is ugly, but you can't remove items from a CList while cycling \n * through the list with foreach. The iterator's $_i for the current \n * position is not updated. Apparently, this is how it should be. Weird.\n */\n $toDelete = array();\n foreach($this->battleeffects as $battleeffect) {\n if(!$battleeffect->active) {\n $toDelete[] = $battleeffect;\n }\n }\n foreach($toDelete as $deletee) {\n $deletee->detachFromBattle($this);\n $this->battleeffects->remove($deletee);\n }\n \n return parent::__sleep();\n }",
"public function unequip()\n {\n $this->equipped = 0;\n $this->Update();\n self::Log('unequpped', $this->char_id);\n }",
"public function takeDamage()\n\t\t{\n\t\t\tif ($this->_illness)\n\t\t\t{\n\t\t\t\t$this->_health -= $this->_damage; \n\t\t\t}\n\t\t}",
"abstract public function deactivate();",
"public function removeBehavior($name) {\n\t\t$this->Behaviors->unload($name);\n\t}",
"function unextend() {\n if ($this->observation) {\n $this->observation->cancel();\n $this->observation = NULL;\n }\n }",
"function fuzzloc_unload() {\n\n\tunregister_hook('post_local', 'addon/fuzzloc/fuzzloc.php', 'fuzzloc_post_hook');\n\tunregister_hook('feature_settings', 'addon/fuzzloc/fuzzloc.php', 'fuzzloc_settings');\n\tunregister_hook('feature_settings_post', 'addon/fuzzloc/fuzzloc.php', 'fuzzloc_settings_post');\n\n\n\tlogger(\"removed fuzzloc\");\n}",
"static function vimm_accessibility_deactivate() {\n\n\t}",
"protected function uninstallCustom(): void\n {\n }",
"function deactivation_hook() {\n\n\t}",
"protected function uninstallCustom() : void\n {\n }",
"public function unSetInheritance(){\n\t\t$pdo = Env::getDbConnectionForShare();\n\t\t$this->delete($pdo);\n\t\tself::updateInheritancesCache();\n\t}",
"protected function deactivateSelf() {}",
"function tear_down() {\n\t\tglobal $current_screen;\n\t\tparent::tear_down();\n\t\t$current_screen = $this->current_screen;\n\t}",
"public function detachAllEventHandlers($effect) {\n $eventNames = array(\"onBeforeAction\", \"onAfterAction\", \"onBeforeDealDamage\", \"onAfterDealtDamage\");\n foreach($eventNames as $eventName) {\n $this->detachEventHandler($eventName, array($effect, \"reactTo\" . ucfirst($eventName)));\n $this->detachEventHandler($eventName, array($effect->asa(\"special\"), \"reactTo\" . ucfirst($eventName)));\n }\n }",
"abstract public function Drop();",
"public function reactToOnAfterDealtDamage($event) { }",
"protected abstract function do_down();",
"public function tear_down() {\n\t\tremove_filter( 'wp_image_editors', array( $this, 'setEngine' ), 10, 2 );\n\t\tparent::tear_down();\n\t}",
"public function remove_hooks()\n {\n }",
"public function remove_hooks()\n {\n }",
"public function clearBehaviors()\n\t{\n\t\tif($this->_m!==null)\n\t\t{\n\t\t\tforeach($this->_m->toArray() as $name=>$behavior)\n\t\t\t\t$this->detachBehavior($name);\n\t\t\t$this->_m=null;\n\t\t}\n\t}",
"public function unsetSpecialEquipPref($index)\n {\n unset($this->specialEquipPref[$index]);\n }",
"public function execute_deactivation_hooks() {\r\n }",
"public function unbind($interface, $targetClass = null);",
"public function powerDown()\n {\n if ($this->motor_power)\n $this->motor_power->setValue(0);\n }",
"public function hookDisable(): void\n {\n $this->say(\"Executing the Plugin's disable hook...\");\n $this->_exec(\"php ./src/hook_disable.php\");\n }",
"public function suspendBehavior($className, $temporary_config = null) {\n\t\tforeach ($this->model->behaviors() as $key => $behav) {\n\t\t\tif ($behav['class'] == $className) {\n\t\t\t\t$this->suspendedBehaviors[$className] = $behav;\n\t\t\t\t$this->model->detachBehavior($key);\n\t\t\t}\n\t\t}\n\t}",
"function off() {\n return $this;\n }",
"abstract public function reregister_menu_items();",
"public function undoFinalDeny()\n {\n $this->finalDeny = null;\n $this->decisionViewed = null;\n $this->decisionLetter = null;\n }",
"public function removeHand() {\n\t\t\t$this->_hand[] = array();\n\t\t}",
"public function deactivate(): void;",
"public function wipers_off() {\r\n echo PHP_EOL;\r\n $this->action(\"turning windshield wipers off\");\r\n $this->wipers_on = FALSE;\r\n $this->action(\"windshield wipers are off\");\r\n }",
"public function __destruct() {\n if (class_exists('\\Sleepy\\Hook')) {\n Hook::addAction($this->clean_class() . '_postprocess');\n }\n }",
"private function pop_mods() \n {\n array_pop($this->nmods);\n }",
"function deactivate(){\n\n\t\t//update_option( WPC_OPTIONS, array() );\n\t\t//update_option( WPC_OPTIONS_COMMENTS, array() );\n\t\t//update_option( WPC_OPTIONS_LIKE_BUTTON, array() );\n\n\t}",
"public static function deactivate() {\n\t}",
"function hook_uninstall() {\r\n\t\tupdate_options('foliamaptool', '');\r\n\t}",
"abstract protected function deactivate_plugin();",
"public static function deactivate(){\n }",
"public static function deactivate(){\n }",
"public function plugin_deactivate() {\r\n\r\n\t}",
"function deactivate_horses() {\n\trequire_once plugin_dir_path( __FILE__ ) . 'includes/class-horses-deactivator.php';\n\thorses_Deactivator::deactivate();\n}",
"public function retractArms() {\n\t\techo \"Power units have not been started.<br>\";\n\t}",
"public static function deactivate() {\n\n }",
"public function drop(): void;",
"public function disenchantItemWithSkill(): void {\n $characterRoll = $this->skillCheckService->characterRoll($this->disenchantingSkill);\n $dcCheck = $this->skillCheckService->getDCCheck($this->disenchantingSkill);\n\n if ($characterRoll > $dcCheck) {\n $goldDust = $this->updateGoldDust($this->character);\n\n ServerMessageHandler::handleMessage($this->character->user, 'disenchanted', number_format($goldDust));\n\n event(new UpdateSkillEvent($this->disenchantingSkill));\n\n } else {\n $this->updateGoldDust($this->character, true);\n\n ServerMessageHandler::handleMessage($this->character->user, 'failed_to_disenchant');\n }\n }",
"public static function deactivate ()\n\t{\n\t}",
"function exitAllowedOff()\n\t{\n\t\t$this->bExitAllowed = false;\n\t}",
"function uninstall() {\nunsubscribeFromEvent($this->name, 'HOURLY');\nSQLExec('DROP TABLE IF EXISTS camshoter_devices');\nSQLExec('DROP TABLE IF EXISTS camshoter_config');\nSQLExec('DROP TABLE IF EXISTS camshoter_recognize');\nSQLExec('DROP TABLE IF EXISTS camshoter_people');\n\n\n parent::uninstall();\n\n }",
"function deactivation_func() {\r\n\r\n delete_option( 'wpc_run_activated_functions' );\r\n }",
"public function remove_caps_from_roles(): void {\n\t\t$all_capabilities_raw = $this->get_all_capabilities();\n\t\t$all_capabilities = array_values( $all_capabilities_raw );\n\t\t$all_capabilities = array_filter(\n\t\t\t$all_capabilities,\n\t\t\tstatic fn( $value ) => 'read' !== $value\n\t\t);\n\t\t$all_roles = wp_roles();\n\t\t$roles = array_values( (array) $all_roles->role_objects );\n\t\tforeach ( $roles as $role ) {\n\t\t\tif ( $role instanceof WP_Role ) {\n\t\t\t\tforeach ( $all_capabilities as $cap ) {\n\t\t\t\t\t$role->remove_cap( $cap );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/**\n\t\t * Fires when removing the custom capabilities from existing roles.\n\t\t *\n\t\t * Can be used to remove the capabilities from other, custom roles.\n\t\t *\n\t\t * @since 1.0.0\n\t\t *\n\t\t * @param array $all_capabilities List of all post type capabilities, for reference.\n\t\t */\n\t\tdo_action( 'web_stories_remove_capabilities', $all_capabilities );\n\t}",
"public function attack($mob_obj){\t\t\r\n\t\t// Disable champion from other things while attacking\r\n\t\t$this->addEffect('Disable', Array('duration' => $this->attackSpeed()));\r\n\t\treturn $mob_obj->receiveDamage($this->base_attack_damage + ((1 - $this->level) * $this->attack_damage_per_level), 'armor', $this->stats());\t\r\n\t\t\t\r\n\t}",
"public static function deactivate()\n\t{\n\n\t}",
"public function deactivate();",
"public function reset()\n {\n parent::reset();\n $this->attr('Light');\n \n }",
"function deactivate() {\n\t}",
"public function remove_caps() {\n global $wp_roles;\n\n // TODO: see easy-digital-downloads plugin source codes for example implementation.\n }",
"function mediatags_deactivate_plugin()\n\t{\n\t}",
"function uninstall()\n {\n SQLExec('DROP TABLE IF EXISTS apiai_actions');\n SQLExec('DROP TABLE IF EXISTS apiai_entities');\n unsubscribeFromEvent($this->name, 'COMMAND');\n parent::uninstall();\n }",
"function jft_assistant_deactivate() {\n\trequire_once JFT_ASSISTANT_DIR__ . '/classes/JftAssistant/Autoloader.php';\n\tJftAssistant_Autoloader::register();\n\tJftAssistant_Plugin::get_instance()->deactivate();\n}",
"public function __wakeup() { _doing_it_wrong( __FUNCTION__, __( 'Cheatin’ huh?', 'thevoux' ), '1.7' ); }",
"public function turnOff() //Einschalten geht nur über WOL! \n { \n $this->lg_handshake();\n $command = '{\"id\":\"turnOff\",\"type\":\"request\",\"uri\":\"ssap://system/turnOff\"}'; \n $this->send_command($command); \n }",
"public static function deactivate(){\n // Do nothing\n }",
"public function headlights_off() {\r\n echo PHP_EOL;\r\n $this->action(\"turning headlights off\");\r\n $this->lights_on = FALSE;\r\n $this->action(\"headlights are off\");\r\n\r\n }",
"function disable($target = 'core');",
"abstract public function hidupkan();",
"public function __destruct() {\r\n if(self::$instance instanceof Booter) {\r\n self::shutdown();\r\n }\r\n }",
"function remove_theme_mods()\n {\n }",
"public static function deactivate()\n {\n }",
"abstract public function down();",
"abstract public function down();",
"abstract public function down();",
"public function testCanDefendWithoutLuck()\n {\n $strikeCollection = new StrikeCollection();\n $strike = $this->getMockBuilder(BasicStrike::class)->setMethods(['getPower'])->getMock();\n $strike->method('getPower')->will($this->returnValue(10));\n $strikeCollection->add($strike);\n\n $optimalSkillSelector = new OptimalSkillSelectorService();\n $this->entity->setOptimalSkillSelector($optimalSkillSelector);\n\n $stats = new PlayerStats();\n $stats->setHealth(50);\n $stats->setDefence(5);\n\n $skillCollection = new SkillCollection();\n $defendSkill = DefendSkill::attachTo($this->entity);\n $skillCollection->add($defendSkill);\n $this->entity->setSkills($skillCollection);\n\n $broadcaster = $this->getMockBuilder(MessageBroadcaster::class)\n ->setMethods(['broadcast'])->getMock();\n $broadcaster->method('broadcast')->willReturn('');\n $this->entity->setBroadcaster($broadcaster);\n $defendSkill->setBroadcaster($broadcaster);\n\n $this->entity->setStats($stats);\n $this->entity->method('lucky')->willReturn(false);\n\n $this->entity->defend($strikeCollection);\n $this->assertEquals(45, $this->entity->getStats()->getHealth());\n\n }",
"public function detach(): void\n\t{\n\t\t$this->events->detach($this->type, $this->hook);\n\t}",
"public function detach()\n {\n // dummy implementation\n }",
"public function removeBehaviour(DocBlox_Transformer_Behaviour_Interface $behaviour)\n {\n foreach ($this->behaviours as $key => $thisBehaviour) {\n if ($behaviour == $thisBehaviour) {\n unset($this->behaviours[$key]);\n }\n }\n }",
"function doDown()\n {\n }",
"function doDown()\n {\n }",
"function doDown()\n {\n }",
"function doDown()\n {\n }",
"public function plugin_deactive_hook(){\r\n delete_transient( 'woolentor_template_info' );\r\n delete_metadata( 'user', null, 'woolentor_dismissed_lic_notice', null, true );\r\n }",
"public function damage_options_reset(){\n // Redfine the options variables as an empty array\n $this->damage_options = array();\n // Populate the array with defaults\n $this->damage_options = array();\n $this->damage_options['damage_header'] = $this->robot->robot_name.''s '.$this->ability_name;\n $this->damage_options['damage_frame'] = 'damage';\n $this->damage_options['ability_success_frame'] = 1;\n $this->damage_options['ability_success_frame_span'] = 1;\n $this->damage_options['ability_success_frame_offset'] = array('x' => 0, 'y' => 0, 'z' => 1);\n $this->damage_options['ability_failure_frame'] = 1;\n $this->damage_options['ability_failure_frame_span'] = 1;\n $this->damage_options['ability_failure_frame_offset'] = array('x' => 0, 'y' => 0, 'z' => 1);\n $this->damage_options['damage_kind'] = 'energy';\n $this->damage_options['damage_type'] = $this->ability_type;\n $this->damage_options['damage_type2'] = $this->ability_type2;\n $this->damage_options['damage_amount'] = $this->ability_damage;\n $this->damage_options['damage_amount2'] = $this->ability_damage2;\n $this->damage_options['damage_kickback'] = array('x' => 5, 'y' => 0, 'z' => 0);\n $this->damage_options['damage_percent'] = false;\n $this->damage_options['damage_percent2'] = false;\n $this->damage_options['damage_modifiers'] = true;\n $this->damage_options['success_rate'] = 'auto';\n $this->damage_options['failure_rate'] = 'auto';\n $this->damage_options['critical_rate'] = 10;\n $this->damage_options['critical_multiplier'] = 2;\n $this->damage_options['weakness_multiplier'] = 2;\n $this->damage_options['resistance_multiplier'] = 0.5;\n $this->damage_options['immunity_multiplier'] = 0;\n $this->damage_options['success_text'] = 'The ability hit!';\n $this->damage_options['failure_text'] = 'The ability missed…';\n $this->damage_options['immunity_text'] = 'The ability had no effect…';\n $this->damage_options['critical_text'] = 'It's a critical hit!';\n $this->damage_options['weakness_text'] = 'It's super effective!';\n $this->damage_options['resistance_text'] = 'It's not very effective…';\n $this->damage_options['weakness_resistance_text'] = ''; //\"It's a super effective resisted hit!';\n $this->damage_options['weakness_critical_text'] = 'It's a super effective critical hit!';\n $this->damage_options['resistance_critical_text'] = 'It's a critical hit, but not very effective…';\n // Update this ability's data\n $this->update_session();\n // Return the resuling array\n return $this->damage_options;\n }",
"public function interventionModifierUn($id,$intervention)\n\t{\n\t\tGestion::modifier($intervention);// votre code ici\n\t}",
"public function reactToOnAfterTakingDamage($event) { }",
"function disable_extension()\n\t{\n\t\tglobal $DB;\n\t\t$DB->query(\"DELETE FROM exp_extensions WHERE class = '\".$DB->escape_str(get_class($this)).\"'\");\n\t}",
"private function flipHeroPower() {\n if ($this->hero->powerIsFlipped()) {\n throw new HeroPowerAlreadyFlippedException('You have already used your ability this turn');\n }\n\n $this->hero->flipHeroPower();\n }",
"function uninstall(){}",
"public function onDisable() {\n\t}",
"function disable_extension()\n\t{\n\t\tglobal $DB;\n\t\t$DB->query(\"DELETE FROM exp_extensions WHERE class = '\" . get_class($this) . \"'\");\n\t}",
"protected /*void*/ function dropOverride(/*int*/ $aid, /*int*/ $sid)\n\t{\n\t\t$this->db->prepare(\"DELETE FROM `graders_override` WHERE `assignmentid` = ? AND `studentid` = ?;\")\n\t\t ->execute($aid, $sid);\n\t}",
"private function function_die(){\n\t\tunset($this->attributes);\n\t}",
"public function unbind(string $name): void;",
"public function destroy(ProductDamages $prod_damage)\n {\n //do nothing...........\n }",
"public function applyDamage()\n\t\t{\n\t\t\tforeach ($this->_members as $member)\n\t\t\t{\n\t\t\t\tif ($member->_alive)\n\t\t\t\t{\n\t\t\t\t\t$member->takeDamage();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function destroy(DamageScreen $damageScreen)\n {\n //\n }",
"function spcode_deactivate() {\n // Do nothing\n}"
] | [
"0.53706574",
"0.5362536",
"0.52852505",
"0.5224216",
"0.5178185",
"0.5167428",
"0.51049465",
"0.50802654",
"0.50493205",
"0.5048803",
"0.5039382",
"0.50392824",
"0.50332105",
"0.5024569",
"0.50047076",
"0.49797508",
"0.4979701",
"0.49771777",
"0.49736163",
"0.49208584",
"0.48858598",
"0.48809662",
"0.48809662",
"0.48804203",
"0.48755467",
"0.48620853",
"0.48530442",
"0.4852439",
"0.48489487",
"0.48377225",
"0.48330155",
"0.48217937",
"0.48079413",
"0.48010975",
"0.4792274",
"0.47783253",
"0.47766334",
"0.47701013",
"0.47555393",
"0.4744221",
"0.47327355",
"0.4718474",
"0.47160146",
"0.47160146",
"0.47136065",
"0.47095782",
"0.47082305",
"0.47067463",
"0.4698162",
"0.46871287",
"0.46863082",
"0.46805972",
"0.4677002",
"0.46754",
"0.46738777",
"0.46721166",
"0.4671634",
"0.4671628",
"0.46684524",
"0.46658444",
"0.4661254",
"0.46561477",
"0.46548665",
"0.46454892",
"0.46427438",
"0.4634748",
"0.46342123",
"0.4633653",
"0.46273267",
"0.46249062",
"0.462343",
"0.46211958",
"0.46186158",
"0.46170393",
"0.46170393",
"0.46170393",
"0.4616194",
"0.4608052",
"0.46069053",
"0.4606411",
"0.4606316",
"0.4606316",
"0.4606316",
"0.4606316",
"0.46047506",
"0.4603165",
"0.46029747",
"0.46021453",
"0.45980847",
"0.4591726",
"0.45900396",
"0.45899296",
"0.45896822",
"0.45891184",
"0.45848608",
"0.4578278",
"0.45762774",
"0.4567261",
"0.45645237",
"0.45627365"
] | 0.606289 | 0 |
Empty event handler. Only there to have a fallback function if a SpecialnessBehavior class does not provide it. "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnBeforeRound($event) { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function HookEvents();",
"public static function usesCustomHandler();",
"public function shouldntRaiseAnEvent()\n {\n }",
"public function behaviors() {\n return array(\"application.components.SpecialnessBehavior\");\n }",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function getBase(): false|EventBase {}",
"abstract protected function handle($event);",
"public function handles_events()\n\t{\n\t\treturn false;\n\t}",
"public function getDefaultHandler();",
"public function onOutOfBand (): void;",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"abstract public function handler() : void;",
"private function set_default_behaviour()\n {\n if (isset($this->_config['behaviour']['default'])) {\n $_func_name = $this->_config['behaviour']['default'];\n if ($_func_name && is_string($_func_name) && function_exists($this->_default_func)) {\n $this->_default_func = $_func_name;\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n }",
"public function isHandled(): bool;",
"function getSpecialHandling()\n\t{\n\t\treturn $this->_specialHandling;\n\t}",
"public function reactToOnBeforeDealDamage($event) { }",
"public function getDefaultCallback();",
"abstract public function handle(AbstractEvent $event): void;",
"final public function allowsEvents() {\n\t\treturn false;\n\t}",
"abstract protected function doEvil();",
"abstract public function shouldHandle(): bool;",
"protected abstract function applyNoArg();",
"public function isSpecial();",
"function testBehaviorDisabledToTag() {\n\t\t$this->tag->Behaviors->disable('Documentable');\n\t\t$result = $this->tag->Behaviors->enabled('Documentable');\n\t\t$this->assertFalse($result);\n\t}",
"public function hook();",
"abstract protected function inscriretruetrue($event, $membre);",
"function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}",
"public function implementedEvents() {\n\t\treturn parent::implementedEvents() + [\n\t\t\t'Visualisation.onCheck' => array('callable' => 'onCheck', 'passParams' => true)\n\t\t];\n\t}",
"protected function applyElementBehavior(): void\n {\n $behaviors = isset($this->elementBehaviors[$this->element()]) ? $this->elementBehaviors[$this->element()] : [];\n\n foreach ($behaviors as $behavior) {\n $this->{$behavior}(true);\n }\n }",
"abstract public function fire();",
"function eventclass_slot()\n\t{\n\n//\tonscreen events\n\n\t}",
"public static function event_method()\n {\n return true;\n }",
"public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}",
"public function getIsHandled();",
"private function __construct()\n {\n // disabled method\n }",
"public function reactToOnBeforeTakingDamage($event) { }",
"protected function setEventName() {\n return NULL;\n }",
"function __construct() {\r\n\t\tparent::disable_loop_block_features();\r\n\t}",
"public function test_event_notification_with_unexisting_method()\n {\n $this->event_notification_helper('unexisting_method', true);\n }",
"public static function __events () {\n \n }",
"abstract protected function handle(): void;",
"public function handledClass();",
"public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }",
"public function testBehaviorOrderCallbacks() {\n\t\t$model = ClassRegistry::init ( 'Orangutan' );\n\t\t$model->Behaviors->init ( 'Orangutan', array (\n\t\t\t\t'Second' => array (\n\t\t\t\t\t\t'priority' => 9 \n\t\t\t\t),\n\t\t\t\t'Third',\n\t\t\t\t'First' => array (\n\t\t\t\t\t\t'priority' => 8 \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\t$this->assertEmpty ( $model->called );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'ThirdBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'Third', array (\n\t\t\t\t'priority' => 1 \n\t\t) );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'First' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->unload ( 'Third' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->disable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->enable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t}",
"public function isOverrideAllowed();",
"public function hookHandler() {\n\n\t\t$this->buildDependencyMap();\n\t\t$this->handled = array();\n $this->priorityHelpers = array();\n\n\t\tforeach ($this->priorityBased['min'] as $priority=>$v) {\n\t\t\t$this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\t\tforeach ($this->priorityBased['max'] as $priority=>$v) {\n if (!isset($this->priorityBased['min'][$priority]))\n $this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\n\t\t// trigger priority helper cleanup after everything else was done\n add_action($this->hookName,array($this,'priorityHandlerCleanup'),self::LATEST+1);\n \t}",
"function did_filter($hook_name)\n {\n }",
"public function testHydrateNotImplementing(): void\n {\n $this->hydrateEvent->getDocument()->willReturn($this->notImplementing);\n $this->hydrateEvent->getOption(Argument::any())->shouldNotBeCalled();\n\n $this->subscriber->handleHydrate($this->hydrateEvent->reveal());\n }",
"public function testSpecial(): void {\n\t}",
"protected function _initialize() {\n\t\tparent::_initialize();\n\t\t\n\t\tforeach ($this->_behaviors as $key => $value) {\n\t\t\t$behavior = is_string($key) ? $key : $value;\n\t\t\t$config = is_array($value) ? $value : array();\n\t\t\t\n\t\t\tunset($this->_behaviors[$key]);\n\t\t\t$this->attach_behavior(new $behavior($this, $config));\n\t\t}\n\t}",
"protected function initialize() {\n // NOOP\n }",
"private function public_hooks()\n\t{\n\t}",
"public function stopPropagation(): void;",
"function unknownHandler($d, $data, $clientid){\n\t}",
"public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }",
"public function onEvent();",
"protected function addDefaultHandlers()\n {\n // When the server PINGs us, just respond with PONG and the server's host\n $pingHandler = new EventListener(null, function($event) {\n $event->addResponse(Response::pong($event->getRequest()->getMessage()));\n });\n\n // If an Error message is encountered, just log it for now.\n $log = $this->log;\n $errorHandler = new EventListener(null, function($event) use ($log) {\n $log->debug(\"ERROR: {$event->getRequest()->getMessage()}\");\n });\n\n $this->dispatcher->addListener('server.ping', array($pingHandler, 'testAndExecute'));\n $this->dispatcher->addListener('server.error', array($errorHandler, 'testAndExecute'));\n }",
"function noop() {\n}",
"public static function override($event, $callback) {\n static::clear($event);\n\n static::listen($event, $callback);\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract public function getEventName();",
"protected static function event_throw_incomplete() {\n throw new moodle_exception('event:incompleteimplementation',\n 'local_licensing', '', get_called_class());\n }",
"function noop()\n {\n }",
"public function postLoad(Interpreter $interpreter, LifecycleEventArgs $event)\n {\n // disabled it because another wildcards listener is expecting\n // certain params\n //$$this->getEventManager()->trigger(__FUNCTION__, $this);\n }",
"public function testExtendedState(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateThree::class);\n self::assertEquals(666, $daughterInstance->method6());\n\n $grandDaughterInstance = new GrandDaughter();\n $grandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandDaughterInstance->method6());\n self::assertEquals(777, $grandDaughterInstance->method7());\n\n $grandGrandDaughterInstance = new GrandGrandDaughter();\n $grandGrandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandGrandDaughterInstance->method6());\n self::assertEquals(777, $grandGrandDaughterInstance->method7());\n }",
"function method_no_specs() {}",
"private function init_nopriv_event_listeners() {\n\t\t// add_action('wp_ajax_nopriv_example_action', [$this, 'example_function']);\n\t}",
"function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }",
"final private function markAsHandled(hookHandler $handler) {\n\t\t$this->handled[spl_object_hash($handler)] = true;\n\t}",
"public function onDisable() {\n\t}",
"public function replace_3rd_party_pugins_hooks(){\n }",
"public function testLoadDisabled() {\n\t\t$Apple = new Apple ();\n\t\t$this->assertSame ( array (), $Apple->Behaviors->loaded () );\n\t\t\n\t\t$Apple->Behaviors->load ( 'Translate', array (\n\t\t\t\t'enabled' => false \n\t\t) );\n\t\t$this->assertTrue ( $Apple->Behaviors->loaded ( 'Translate' ) );\n\t\t$this->assertFalse ( $Apple->Behaviors->enabled ( 'Translate' ) );\n\t}",
"abstract protected function _preHandle();",
"public function nothing(): void;",
"public function supportsHookSubscribers()\n {\n return false;\n }",
"public function testDispatchWithNotifierNotSupportEvent()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('foo', $event)\n ->will($this->returnValue($event));\n\n $this->notifier->expects($this->once())\n ->method('supportsObject')\n ->with($event, 'foo')\n ->will($this->returnValue(false));\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('foo', $event);\n }",
"public function hooks() {\n\t\tadd_action( 'wp_ajax_wp_sc_form_process_'. $this->button_slug, array( $this, 'process_form' ) );\n\n\t\t// If we have a conditional callback and the return of the callback is false\n\t\tif ( $this->args['conditional_callback'] && is_callable( $this->args['conditional_callback'] ) && ! call_user_func( $this->args['conditional_callback'], $this ) ) {\n\t\t\t// Then that means we should bail\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'admin_init', array( $this, 'button_init' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_modal_form' ) );\n\t}",
"public function set_hooks() {\n\t\t\t$this->hook_prefix = photonfill_hook_prefix();\n\n\t\t\t// Override Photon arg.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_array', array( $this, 'set_photon_args' ), 5, 2 );\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_string', array( $this, 'set_photon_args' ), 5, 2 );\n\n\t\t\t// If we're using the photonfill_bypass_image_downsize, we skip downsize, and now need to\n\t\t\t// ensure the Photon args are being set (but with a lower priority).\n\t\t\tif ( apply_filters( 'photonfill_bypass_image_downsize', false ) ) {\n\t\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'set_photon_args' ), 4, 3 );\n\t\t\t}\n\n\t\t\t// Transform our Photon url.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'transform_photon_url' ), 5, 1 );\n\t\t}",
"public function disable_extension(){}",
"abstract protected function handle();",
"protected function preHandle(Event $ev) { return; }",
"public function testEventCallBackPatch()\n {\n }",
"function __onload($params){\n\t\t$this->disable_methods();\n\t}",
"public function boot()\n {\n if (!$this->isEnabled()) return;\n\n parent::boot();\n }",
"public function setIsHandled($bool);",
"protected function initHandlers()\n\t{\n\t}",
"function doing_filter($hook_name = \\null)\n {\n }",
"abstract function selectHook();",
"public function testRegisterListenerThrowsExceptionForEmptyClassCallback()\n\t{\n\t\t$instance = new Dispatcher();\n\n\t\t$instance->register_listener('random', array());\n\t}",
"final public function __wakeup(){\n throw new Exception('Feature disabled.');\n }",
"public function testComposerPrePackageUninstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package('dummy', '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('uninstall');\n $this->app->handleEvent($event);\n }",
"protected function func_default() {}",
"public function hook()\n {\n // Add the settings tab\n// $this->on('!wprss_options_tabs', array($this, 'addTab'), null, 100);\n // Register the settings option, sections and fields\n// $this->on('!wprss_admin_init', array($this, 'register'));\n\n parent::hook();\n }",
"function fann_set_activation_function_hidden($ann, $activation_function)\n{\n}",
"public static function withoutTouching(callable $callback);",
"public function noOnclick($flag = true)\n {\n $this->noOnclick = $flag;\n }",
"#[Pure]\n public function __construct(EventBase $base, bool $initialize) {}",
"public function preventDefault() {\n\t\t$this->runDefault = false;\n\t}"
] | [
"0.57549065",
"0.572741",
"0.57116985",
"0.57023585",
"0.56787324",
"0.557894",
"0.5477127",
"0.5449194",
"0.5348193",
"0.5329303",
"0.530269",
"0.530269",
"0.5289751",
"0.52885824",
"0.5264387",
"0.52549034",
"0.5214572",
"0.5209728",
"0.5199234",
"0.5189028",
"0.51880175",
"0.51523566",
"0.51234955",
"0.50667584",
"0.5028434",
"0.5010275",
"0.49947092",
"0.49859616",
"0.49748436",
"0.4943262",
"0.49211037",
"0.4899959",
"0.48984286",
"0.48902038",
"0.48798472",
"0.4879126",
"0.48759848",
"0.48728424",
"0.4857604",
"0.48562244",
"0.48516163",
"0.4848411",
"0.4845457",
"0.4841149",
"0.48363268",
"0.483567",
"0.4830925",
"0.48201752",
"0.4816604",
"0.4813753",
"0.48080862",
"0.4788925",
"0.47755003",
"0.47722876",
"0.4767577",
"0.4760071",
"0.47574002",
"0.47539452",
"0.47499996",
"0.47452432",
"0.47436973",
"0.47436973",
"0.47436973",
"0.47358915",
"0.4731314",
"0.4729393",
"0.4712983",
"0.47068244",
"0.47049445",
"0.4704176",
"0.4701705",
"0.46996558",
"0.46928144",
"0.46906093",
"0.46855566",
"0.46806827",
"0.46794412",
"0.4678468",
"0.46570712",
"0.46557564",
"0.46545273",
"0.4648388",
"0.4643401",
"0.4635788",
"0.4634236",
"0.46312988",
"0.46307826",
"0.46289265",
"0.46214545",
"0.46132678",
"0.4610839",
"0.46098077",
"0.46073982",
"0.45909414",
"0.45816213",
"0.4576005",
"0.45721194",
"0.45686164",
"0.4567316",
"0.45661238",
"0.45641112"
] | 0.0 | -1 |
Decreases the duration of the Battleeffect. If it goes down to 0, it deactivates itself, adds a deactivation Battlemessage and waits for Battle>__sleep to be destroyed "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnAfterRound($event) {
$this->turns --;
if($this->turns == 0) {
$this->active = 0;
$battleMsg = new Battlemessage($this->msgExpire);
$event->sender->log($event->sender->{$this->heroString}, $battleMsg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __sleep() {\n if($this->type == \"pvp\") {\n $this->combatantA = null;\n $this->combatantB = null;\n } else {\n $this->combatantA = null;\n }\n \n /**\n * This is ugly, but you can't remove items from a CList while cycling \n * through the list with foreach. The iterator's $_i for the current \n * position is not updated. Apparently, this is how it should be. Weird.\n */\n $toDelete = array();\n foreach($this->battleeffects as $battleeffect) {\n if(!$battleeffect->active) {\n $toDelete[] = $battleeffect;\n }\n }\n foreach($toDelete as $deletee) {\n $deletee->detachFromBattle($this);\n $this->battleeffects->remove($deletee);\n }\n \n return parent::__sleep();\n }",
"public function stop() {\n if($this->combatantA->hp > 0) {\n $this->winnerType = \"player\";\n $this->winnerID = $this->combatantAID;\n } elseif ($this->combatantB->hp > 0) {\n $this->winnerType = ($this->type == \"pvp\" ? \"player\" : \"monster\");\n $this->winnerID = $this->combatantBID;\n } else {\n $this->winnerType = \"draw\";\n }\n\n // Bounty + XP\n if($this->type == \"monster\" && $this->combatantB->hp <= 0) {\n $loot = $this->combatantB->dropItems($this->combatantA->getDropItemPerc());\n $this->combatantA->gainItems($loot);\n \n $contact = $this->combatantB->dropContact($this->combatantA->getDropContactPerc());\n $this->combatantA->gainContact($contact, \"battle\");\n\n /**\n * monster->xp can be defined to deviate from the standard\n * attack / 2 xp reward\n */\n if(isset($this->combatantB->xp)) {\n $this->combatantA->gainXp($this->combatantB->xp, \"battle\");\n } else {\n $this->combatantA->gainXp($this->combatantB->attack / 4, \"battle\");\n }\n }\n\n $this->combatantA->ongoingBattleID = null;\n if($this->type == \"pvp\") {\n // @todo Message to PVP enemy\n $this->combatantB->ongoingBattleID = null;\n }\n\n $this->state = \"resolved\";\n $this->objectState = \"\";\n\n /**\n * ToDo: why does backupbehavior think that no attribute changed\n * if we set ongoingBattleID to null?\n */\n // $this->combatantA->save();\n $this->combatantA->update();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n\n $this->update();\n $this->reconstructCombatants();\n \n // Notify the world about this result\n $event = new BattleEvent($this);\n $this->combatantA->onFinishedBattle($event);\n if($this->type == \"pvp\") {\n $this->combatantB->onFinishedBattle($event);\n }\n }",
"public function takeDamage()\n\t\t{\n\t\t\tif ($this->_illness)\n\t\t\t{\n\t\t\t\t$this->_health -= $this->_damage; \n\t\t\t}\n\t\t}",
"public function powerDown()\n {\n if ($this->motor_power)\n $this->motor_power->setValue(0);\n }",
"public function tick(){\n\t\tif($this->status !== self::NORMAL){\n\t\t\t$this->remaining_turns--;\n\t\t\tif($this->remaining_turns <= 0){\n\t\t\t\t$this->status = self::NORMAL;\n\t\t\t}\n\t\t}\n\t}",
"abstract public function deactivate();",
"public function powerUp()\n {\n if ($this->motor_power)\n $this->motor_power->setValue(1);\n }",
"private function botActionEnding(BotAction $action): void\n {\n if ($this->bots->getActiveHandler()->shouldReleaseCooldown()) {\n $action->releaseCooldown();\n }\n }",
"public function detachFromBattle($battle) {\n $battle->detachEventHandler(\"onAfterRound\", array($this, 'reactToOnAfterRound'));\n if($this->blocks) {\n $battle->detachEventHandler(\"onBeforeAction\", array($this, 'reactToOnBeforeAction'));\n }\n }",
"function _deactivate() {}",
"public function deactivate() {\n\t\t/**\n\t\t * Fires when the plugin is being deactivated.\n\t\t *\n\t\t * @since 7.0\n\t\t */\n\t\tdo_action('audition_deactivate');\n\t}",
"public function ability() {\n\n $this->startMove(3, 0.2);\n echo \"THE ENGINE IS OVERHEATED!\\n\";\n $this->switchEngine();\n\n\n\n\n }",
"public function putDown();",
"protected function deactivateSelf() {}",
"public function getDelay(): int;",
"public function end_turn()\n\t{\n\t\t//\t\tpropre a la classe\n\t}",
"function doDown()\n {\n }",
"function doDown()\n {\n }",
"function doDown()\n {\n }",
"function doDown()\n {\n }",
"public function damage() {\n return $this->damageMultiplier * $this->weapon->damage();\n }",
"public function deactivate(): void;",
"public function disenchantItemWithSkill(): void {\n $characterRoll = $this->skillCheckService->characterRoll($this->disenchantingSkill);\n $dcCheck = $this->skillCheckService->getDCCheck($this->disenchantingSkill);\n\n if ($characterRoll > $dcCheck) {\n $goldDust = $this->updateGoldDust($this->character);\n\n ServerMessageHandler::handleMessage($this->character->user, 'disenchanted', number_format($goldDust));\n\n event(new UpdateSkillEvent($this->disenchantingSkill));\n\n } else {\n $this->updateGoldDust($this->character, true);\n\n ServerMessageHandler::handleMessage($this->character->user, 'failed_to_disenchant');\n }\n }",
"public function reactToOnAfterDealtDamage($event) { }",
"public function useBattery() {\n $time = $this->floor->getCleaningTime();\n if ($time <= $this->remainingBattery()) {\n $this->remainingBatteryTime = $this->remainingBattery() - $time;\n $this->floor->doneCleaning();\n echo sprintf(\"Battery Remaining for %s seconds\" . PHP_EOL, $this->remainingBattery());\n } else {\n $this->charge();\n }\n }",
"public function takeDamage(Character $target)\n {\n $target->totalStrength = 0;\n $random = rand(1, 5);\n\n if ($random == 1) {\n $target->totalStrength = $target->strength + $target->critical;\n $target->bonus();\n } else {\n $target->totalStrength = $target->strength;\n }\n\n $this->healthPoints = $this->healthPoints - $target->totalStrength;\n }",
"public function discharging(float $seconds): void\n {\n $this->capacity = 1 - ($seconds / $this->getMaxWorkingTime());\n }",
"final public function __sleep() {}",
"public static function deactivate ()\n\t{\n\t}",
"public function _deactivate() {\r\n\t\t// Add deactivation cleanup functionality here.\r\n\t}",
"public static function deactivate(){\n }",
"public static function deactivate(){\n }",
"public static function deactivate()\n\t{\n\n\t}",
"public function release($delay = 0);",
"public function reactToOnAfterTakingDamage($event) { }",
"public function hit()\n {\n $fight = $this->getDamage();\n $fight = $fight + 5;\n $this->setDamage($fight);\n\n }",
"public function getCooldown() {\n return $this->cooldown;\n }",
"public static function deactivate() {\n\n }",
"public static function deactivate()\n {\n }",
"public static function deactivate() {\n\t}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function __sleep() {}",
"public function unequip()\n {\n $this->equipped = 0;\n $this->Update();\n self::Log('unequpped', $this->char_id);\n }",
"protected function changeGearDown()\n\t{\n\tif ($this->currentGear <= 1){\n\t\t\techo 'Already on the minimum gear.';\n\t\t}\n\t\telse {\n\t\t\t$this->currentGear--;\n\t\t}\n\t}",
"public function setPower()\n {\n $this->_role->power = 200;\n }",
"function battle($type,$adress) \n{\n global $player;\n global $smarty;\n global $enemy;\n global $arrehp;\n global $db;\n if ($player -> hp <= 0) \n {\n error (NO_LIFE);\n }\n $enemy1 = $db -> Execute(\"SELECT * FROM `monsters` WHERE `id`=\".$player -> fight);\n $span = ($enemy1 -> fields['level'] / $player -> level);\n if ($span > 2) \n {\n $span = 2;\n }\n $expgain = ceil(rand($enemy1 -> fields['exp1'],$enemy1 -> fields['exp2']) * $span);\n $goldgain = ceil(rand($enemy1 -> fields['credits1'],$enemy1 -> fields['credits2']) * $span);\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \n \"agility\" => $enemy1 -> fields['agility'], \n \"speed\" => $enemy1 -> fields['speed'], \n \"endurance\" => $enemy1 -> fields['endurance'], \n \"hp\" => $enemy1 -> fields['hp'], \n \"name\" => $enemy1 -> fields['name'], \n \"id\" => $enemy1 -> fields['id'], \n \"exp1\" => $enemy1 -> fields['exp1'], \n \"exp2\" => $enemy1 -> fields['exp2'], \n \"level\" => $enemy1 -> fields['level'],\n\t\t \"lootnames\" => explode(\";\", $enemy1->fields['lootnames']),\n\t\t \"lootchances\" => explode(\";\", $enemy1->fields['lootchances']));\n if ($type == 'T') \n {\n if (!isset ($_POST['action'])) \n {\n turnfight ($expgain,$goldgain,'',$adress);\n } \n else \n {\n turnfight ($expgain,$goldgain,$_POST['action'],$adress);\n }\n } \n else \n {\n fightmonster ($enemy,$expgain,$goldgain,1);\n }\n $fight = $db -> Execute(\"SELECT `fight`, `hp` FROM `players` WHERE `id`=\".$player -> id);\n if ($fight -> fields['fight'] == 0) \n {\n if ($type == 'T')\n\t {\n\t $player->energy --;\n\t if ($player -> energy < 0) \n\t {\n\t\t$player -> energy = 0;\n\t }\n\t $db -> Execute(\"UPDATE `players` SET `energy`=\".$player->energy.\" WHERE `id`=\".$player->id);\n\t }\n if ($player -> location == 'Góry') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php?akcja=gory\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"gory.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n if ($player -> location == 'Las') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"las.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n }\n $fight -> Close();\n $enemy1 -> Close();\n}",
"function stPlayerInvolvedTurn() {\n $player_id = self::getGameStateValue('current_player_under_dogma_effect');\n $launcher_id = self::getGameStateValue('active_player');\n $nested_id_1 = self::getGameStateValue('nested_id_1');\n $card_id = $nested_id_1 == -1 ? self::getGameStateValue('dogma_card_id') : $nested_id_1 ;\n $current_effect_type = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_type') : 1 /* Non-demand effects only*/;\n $current_effect_number = $nested_id_1 == -1 ? self::getGameStateValue('current_effect_number') : self::getGameStateValue('nested_current_effect_number_1');\n $step_max = null;\n $step = null;\n \n $qualified_effect = self::qualifyEffect($current_effect_type, $current_effect_number, self::getCardInfo($card_id)); \n self::notifyEffectOnPlayer($qualified_effect, $player_id, $launcher_id);\n \n $crown = self::getIconSquare(1);\n $leaf = self::getIconSquare(2);\n $lightbulb = self::getIconSquare(3);\n $tower = self::getIconSquare(4);\n $factory = self::getIconSquare(5);\n $clock = self::getIconSquare(6);\n \n try {\n //||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n // [A] SPECIFIC CODE: what are the automatic actions to make and/or is there interaction needed?\n $code = $card_id.($current_effect_type == 0 ? \"D\" : \"N\" ).$current_effect_number;\n self::trace('[A]'.$code.' '.self::getPlayerNameFromId($player_id).'('.$player_id.')'.' | '.self::getPlayerNameFromId($launcher_id).'('.$launcher_id.')');\n switch($code) {\n // The first number is the id of the card\n // D1 means the first (and single) I demand effect\n // N1 means the first non-demand effect\n // N2 means the second non-demand effect\n // N3 means the third non-demand effect\n \n // Setting the $step_max variable means there is interaction needed with the player\n \n // id 0, age 1: Pottery\n case \"0N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"0N2\":\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n break;\n\n // id 1, age 1: Tools\n case \"1N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"1N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 2, age 1: Writing\n case \"2N1\":\n self::executeDraw($player_id, 2); // \"Draw a 2\"\n break;\n \n // id 3, age 1: Archery\n case \"3D1\":\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 4, age 1: Metalworking\n case \"4N1\":\n while(true) {\n $card = self::executeDraw($player_id, 1, 'revealed'); // \"Draw and reveal a 1\"\n if (self::hasRessource($card, 4)) { // \"If it as tower\"\n self::notifyGeneralInfo(clienttranslate('It has a ${tower}.'), array('tower' => $tower));\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score it\"\n continue; // \"Repeat this dogma effect\"\n }\n break; // \"Otherwise\" \n }\n self::notifyGeneralInfo(clienttranslate('It does not have a ${tower}.'), array('tower' => $tower));\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep it\"\n break;\n \n // id 5, age 1: Oars\n case \"5D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"5N1\":\n if (self::getGameStateValue('auxiliary_value') <= 0) { // \"If no cards were transfered due to this demand\"\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n }\n break;\n \n // id 6, age 1: Clothing\n case \"6N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n case \"6N2\":\n // \"Score a 1 for each color present on your board not present on any other player board\"\n // Compute the number of specific colors\n $number_to_be_scored = 0;\n $players = self::loadPlayersBasicInfos();\n $boards = self::getAllBoards($players);\n for ($color = 0; $color < 5; $color++) { // Evaluate each color\n if (count($boards[$player_id][$color]) == 0) { // The player does not have this color => no point\n continue;\n }\n // The player has this color, do opponents have?\n $color_on_opponent_board = false;\n foreach($players as $other_player_id => $player) {\n if ($other_player_id == $player_id || $other_player_id == self::getPlayerTeammate($player_id)) {\n continue; // Skip the player being evaluated and his teammate\n }\n if (count($boards[$other_player_id][$color]) > 0) { // This opponent has this color => no point\n $color_on_opponent_board = true;\n break;\n }\n }\n if (!$color_on_opponent_board) { // The opponents do not have this color => point\n $number_to_be_scored++;\n }\n }\n // Indicate this number\n if ($number_to_be_scored == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no specific color on your board.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no specific color on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else if ($number_to_be_scored == 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have one specific color on your board.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has one specific color on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else {\n $translated_number = self::getTranslatedNumber($number_to_be_scored);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} specific colors on your board.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $translated_number));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} specific colors on his board.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $translated_number));\n }\n // Score this number of times\n for ($i=0; $i < $number_to_be_scored; $i++) {\n self::executeDraw($player_id, 1, 'score');\n }\n break;\n \n // id 7, age 1: Sailing\n case \"7N1\":\n self::executeDraw($player_id, 1, 'board'); // \"Draw and meld a 1\"\n break;\n \n // id 8, age 1: The wheel\n case \"8N1\":\n self::executeDraw($player_id, 1); // \"Draw two 1\"\n self::executeDraw($player_id, 1); // \n break;\n \n // id 9, age 1: Agriculture\n case \"9N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 10, age 1: Domestication\n case \"10N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 11, age 1: Masonry\n case \"11N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 12, age 1: City states\n case \"12D1\":\n $number_of_towers = self::getUniqueValueFromDB(self::format(\"\n SELECT\n player_icon_count_4\n FROM\n player\n WHERE\n player_id = {player_id}\n \",\n array('player_id' => $player_id)\n ));\n \n if ($number_of_towers >= 4) { // \"If you have at least four towers on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least four ${icon} on your board.'), array('You' => 'You', 'icon' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least four ${icon} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'icon' => $tower));\n $step_max = 1; // --> 1 interaction: see B\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have less than four ${icon} on your board.'), array('You' => 'You', 'icon' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has less than four ${icon} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'icon' => $tower));\n }\n break;\n \n // id 13, age 1: Code of laws\n case \"13N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 14, age 1: Mysticism\n case \"14N1\":\n $card = self::executeDraw($player_id, 1, 'revealed'); // \"Draw and reveal a 1\n $color = $card['color'];\n if (self::hasThisColorOnBoard($player_id, $color)) { // \"If it is the same color of any card on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('This card is ${color}; ${you} have this color on your board.'), array('i18n' => array('color'), 'you' => 'you', 'color' => self::getColorInClear($color)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('This card is ${color}; ${player_name} has this color on his board.'), array('i18n' => array('color'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'color' => self::getColorInClear($color)));\n self::transferCardFromTo($card, $player_id, 'board'); // \"Meld it\"\n self::executeDraw($player_id, 1); // \"Draw a 1\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('This card is ${color}; ${you} do not have this color on your board.'), array('i18n' => array('color'), 'you' => 'you', 'color' => self::getColorInClear($color)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('This card is ${color}; ${player_name} does not have this color on his board.'), array('i18n' => array('color'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'color' => self::getColorInClear($color)));\n self::transferCardFromTo($card, $player_id, 'hand'); // (Put the card in your hand)\n }\n break;\n \n // id 15, age 2: Calendar\n case \"15N1\":\n if (self::countCardsInLocation($player_id, 'score') > self::countCardsInLocation($player_id, 'hand')) { // \"If you have more cards in your score pile than in your hand\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have more cards in your score pile than in your hand.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has more cards in his score pile than in his hand.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n \n self::executeDraw($player_id, 3); // \"Draw two 3\"\n self::executeDraw($player_id, 3); // \n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} do not have more cards in your score pile than in your hand.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} does not have more cards in his score pile than in his hand.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n break;\n \n // id 16, age 2: Mathematics\n case \"16N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 17, age 2: Construction\n case \"17D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"17N1\":\n $boards = self::getAllBoards(self::loadPlayersBasicInfos());\n $eligible = true;\n foreach($boards as $current_id => $board) {\n if ($current_id == self::getPlayerTeammate($player_id)) { // Ignore teammate\n continue;\n }\n $number_of_top_cards = 0;\n for($color=0; $color<5; $color++) {\n if (count($board[$color]) > 0) { // This player has a top card for this color.\n $number_of_top_cards++;\n }\n }\n if ($current_id == $player_id && $number_of_top_cards < 5 || $current_id != $player_id && $number_of_top_cards == 5) { // This player is the active player and has not 5 top cards, or he is an opponent who has 5 top cards\n $eligible = false;\n }\n }\n if ($eligible) { // \"If you are the only player with five top cards\"\n $achievement = self::getCardInfo(105);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} are the only player with five top cards.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} is the only player with five top cards.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Empire achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} are the only player with five top cards but the Empire achievement has already been claimed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} is the only player with five top cards but the Empire achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n }\n break;\n \n // id 18, age 2: Road building\n case \"18N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 19, age 2: Currency\n case \"19N1\":\n self::setGameStateValueFromArray('auxiliary_value', array());\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 20, age 2: Mapmaking\n case \"20D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"20N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n self::executeDraw($player_id, 1, 'score'); // \"Draw and score a 1\"\n }\n break;\n \n // id 21, age 2: Canal building \n case \"21N1\":\n if (self::countCardsInLocation($player_id, 'score') == 0 && self::countCardsInLocation($player_id, 'hand') == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no cards in your hand or score pile to exchange.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no cards in their hand or score pile to exchange.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n } else {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 22, age 2: Fermenting \n case \"22N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number = 0;\n for($color=0; $color<5; $color++) {\n if (self::boardPileHasRessource($player_id, $color, 2 /* leaf */)) { // There is at least one visible leaf in that color\n $number++;\n }\n }\n if ($number <= 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color with one or more visible ${leaves}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color with one or more ${leaves}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n }\n else { // $number > 1\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors with one or more visible ${leaves}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors with one or more ${leaves}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'leaves' => $leaf));\n }\n // \"For each color of your board that have one leaf or more\"\n }\n else {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2 /* leaf */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${leaves}.'), array('You' => 'You', 'n' => $number_of_leaves, 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${leaves}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_leaves, 'leaves' => $leaf));\n $number = self::intDivision($number_of_leaves,2); // \"For every two leaves on your board\"\n }\n \n for($i=0; $i<$number; $i++) {\n self::executeDraw($player_id, 2); // \"Draw a 2\"\n }\n break;\n \n // id 23, age 2: Monotheism \n case \"23D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"23N1\":\n self::executeDraw($player_id, 1, 'board', true); // \"Draw and tuck a 1\"\n break;\n \n // id 24, age 2: Philosophy \n case \"24N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"24N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 25, age 3: Alchemy \n case \"25N1\":\n $number_of_towers = self::getPlayerSingleRessourceCount($player_id, 4);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${towers}.'), array('You' => 'You', 'n' => $number_of_towers, 'towers' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${towers}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_towers, 'towers' => $tower));\n $any_card_red = false;\n $cards = array();\n for($i=0; $i<self::intDivision($number_of_towers,3); $i++) { // \"For every three towers on your board\"\n $card = self::executeDraw($player_id, 4, 'revealed'); // \"Draw and reveal a 4\"\n if ($card['color'] == 1) { // This card is red\n $any_card_red = true;\n }\n $cards[] = $card;\n }\n \n if ($any_card_red) { // \"If any of the drawn cards are red\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} drew a red card.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} drew a red card.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n\n $step_max = 1; // --> 1 interactions: see B\n }\n else { // \"Otherwise\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} did not draw a red card.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} did not draw a red card.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n foreach($cards as $card) {\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep them\" (ie place them in your hand)\n }\n }\n break;\n \n case \"25N2\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 26, age 3: Translation \n case \"26N1\":\n $step_max = 1; // --> 1 interactions: see B\n break;\n \n case \"26N2\":\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && !self::hasRessource($top_card, 1)) { // This top card is present, with no crown on it\n $eligible = false;\n }\n }\n if ($eligible) { // \"If each card on your board has a crown\"\n $achievement = self::getCardInfo(108);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('Each top card on ${your} board has a ${crown}.'), array('your' => 'your', 'crown' => $crown));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('Each top card on ${player_name} board has a ${crown}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'crown' => $crown));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the World achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('Each top card on ${your} board has a ${crown} but the Empire achievement has already been claimed.'), array('your' => 'your', 'crown' => $crown));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('Each top card on ${player_name} board has a ${crown} but the World achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'crown' => $crown));\n }\n }\n break;\n \n // id 27, age 3: Engineering \n case \"27D1\":\n // \"I demand you transfer all top cards with a tower from your board to my score pile\"\n $no_top_card_with_tower = true;\n for($color = 0; $color < 5 ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && self::hasRessource($top_card, 4)) { // This top card is present, with a tower on it\n $no_top_card_with_tower = false;\n self::transferCardFromTo($top_card, $launcher_id, 'score');\n }\n }\n if ($no_top_card_with_tower) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no top card with a ${tower} on your board.'), array('You' => 'You', 'tower' => $tower));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no top card with a ${tower} on his board.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'tower' => $tower));\n }\n break;\n \n case \"27N1\":\n $step_max = 1; // --> 1 interactions: see B\n break;\n \n // id 28, age 3: Optics \n case \"28N1\":\n $card = self::executeDraw($player_id, 3, 'board'); // \"Draw and meld a 3\"\n if (self::hasRessource($card, 1)) { // \"If it has a crown\"\n self::notifyGeneralInfo(clienttranslate('It has a ${crown}.'), array('crown' => $crown));\n self::executeDraw($player_id, 4, 'score'); // \"Draw and score a 4\"\n }\n else { // \"Otherwise\"\n self::notifyGeneralInfo(clienttranslate('It does not have a ${crown}.'), array('crown' => $crown));\n $number_of_players_with_fewer_points = self::getUniqueValueFromDB(self::format(\"\n SELECT\n COUNT(*)\n FROM\n player\n WHERE\n player_id <> {player_id} AND\n player_innovation_score < (\n SELECT\n player_innovation_score\n FROM\n player\n WHERE\n player_id = {player_id}\n ) AND\n player_team <> (\n SELECT\n player_team\n FROM\n player\n WHERE\n player_id = {player_id}\n )\n \"\n ,\n array('player_id' => $player_id)\n ));\n if ($number_of_players_with_fewer_points == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('There is no opponent who has fewer points than ${you}.'), array('you' => 'you'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('There is no opponent who has fewer points than ${player_name}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else {\n $step_max = 2; // --> 2 interactions: see B\n }\n }\n break;\n \n // id 29, age 3: Compass\n case \"29D1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 30, age 3: Paper \n case \"30N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"30N2\":\n $number_of_colors_splayed_left = 0;\n for($color = 0; $color < 5 ; $color++) {\n if (self::getCurrentSplayDirection($player_id, $color) == 1 /* left */) {\n $number_of_colors_splayed_left++;\n }\n }\n if ($number_of_colors_splayed_left < 2) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color splayed left.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $number_of_colors_splayed_left));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color splayed left.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_colors_splayed_left));\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors splayed left.'), array('i18n' => array('n'), 'You' => 'You', 'n' => $number_of_colors_splayed_left));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors splayed left.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_colors_splayed_left));\n }\n \n for($i=0;$i<$number_of_colors_splayed_left;$i++) { // For every color you have splayed left\n self::executeDraw($player_id, 4); // Draw a 4\n }\n break;\n \n // id 31, age 3: Machinery \n case \"31D1\":\n // \"Exchange all the cards in your hand with all the highest cards in my hand\"\n \n // Get cards in hand\n $ids_of_cards_in_player_hand = self::getIdsOfCardsInLocation($player_id, 'hand');\n $ids_of_highest_cards_in_launcher_hand = self::getIdsOfHighestCardsInLocation($launcher_id, 'hand');\n \n // Make the transfers\n foreach($ids_of_cards_in_player_hand as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $launcher_id, 'hand');\n }\n foreach($ids_of_highest_cards_in_launcher_hand as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $player_id, 'hand');\n }\n break;\n \n case \"31N1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 32, age 3: Medicine \n case \"32D1\":\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 33, age 3: Education \n case \"33N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 34, age 3: Feudalism \n case \"34D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"34N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 35, age 4: Experimentation \n case \"35N1\":\n self::executeDraw($player_id, 5, 'board'); // \"Draw and meld a 5\"\n break;\n \n // id 36, age 4: Printing press \n case \"36N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"36N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 37, age 4: Colonialism\n case \"37N1\":\n do {\n $card = self::executeDraw($player_id, 3, 'board', true); // \"Draw and tuck a 3\"\n } while(self::hasRessource($card, 1 /* crown */)); // \"If it has a crown, repeat this dogma effect\"\n break;\n \n // id 38, age 4: Gunpowder\n case \"38D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"38N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n self::executeDraw($player_id, 2, 'score'); // \"Draw and score a 2\"\n }\n break;\n \n // id 39, age 4: Invention\n case \"39N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"39N2\":\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n if (self::getCurrentSplayDirection($player_id, $color) == 0) { // This color is missing or unsplayed\n $eligible = false;\n };\n }\n if ($eligible) { // \"If you have colors splayed, each in any direction\"\n $achievement = self::getCardInfo(107);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have all your five colors splayed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has all his five colors splayed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Wonder achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have all your five colors splayed but the Wonder achievement has already been claimed.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has all his five colors splayed but the Wonder achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n }\n break;\n \n // id 40, age 4: Navigation\n case \"40D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 41, age 4: Anatomy\n case \"41D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 42, age 4: Perspective\n case \"42N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 43, age 4: Enterprise\n case \"43D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"43N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 44, age 4: Reformation\n case \"44N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"44N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 45, age 5: Chemistry\n case \"45N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"45N2\":\n // \"Draw and score a card of value one higher than the highest top card on your board\"\n self::executeDraw($player_id, self::getMaxAgeOnBoardTopCards($player_id) + 1, 'score');\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 46, age 5: Physics\n case \"46N1\":\n $cards = array();\n $colors = array();\n $same_color = false;\n for($i=0; $i<3; $i++) { // \"Three times\"\n $card = self::executeDraw($player_id, 6, 'revealed'); // \"Draw and reveal a 6\"\n if (in_array($card['color'], $colors)) { // This card has the same color than one that has already been drawn\n $same_color = true;\n }\n else {\n $colors[] = $card['color'];\n }\n $cards[] = $card;\n }\n \n if ($same_color) { // \"If two or more cards are the same color\"\n $step_max = 1; // --> 1 interactions: see B\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} drew two cards of the same color.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} drew two cards of the same color.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n }\n else { // \"Otherwise\"\n self::notifyPlayer($player_id, 'log', clienttranslate('All the cards ${you} drew have different colors.'), array('you' => 'you'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All the cards ${player_name} drew have different colors.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n foreach($cards as $card) {\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Keep them\" (ie place them in your hand)\n }\n }\n break;\n \n // id 47, age 5: Coal\n case \"47N1\":\n self::executeDraw($player_id, 5, 'board', true); // \"Draw and tuck a 5\"\n break;\n\n case \"47N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"47N3\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 48, age 5: The pirate code\n case \"48D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"48N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was transfered due to the demand\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 49, age 5: Banking\n case \"49D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"49N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 50, age 5: Measurement\n case \"50N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 51, age 5: Statistics\n case \"51D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n // Get highest cards in score\n $ids_of_highest_cards_in_score = self::getIdsOfHighestCardsInLocation($player_id, 'score');\n\n // Make the transfers\n foreach($ids_of_highest_cards_in_score as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $player_id, 'hand'); // \"Transfer all the highest cards in your score pile to your hand\"\n }\n }\n else { // First edition\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n\n case \"51N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 52, age 5: Steam engine\n case \"52N1\":\n self::executeDraw($player_id, 4, 'board', true); // \"Draw and tuck two 1\"\n self::executeDraw($player_id, 4, 'board', true); //\n $card = self::getBottomCardOnBoard($player_id, 3 /* yellow */);\n if ($card !== null) {\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score your bottom yellow card\"\n }\n break;\n \n // id 53, age 5: Astronomy\n case \"53N1\":\n while(true) {\n $card = self::executeDraw($player_id, 6, 'revealed'); // \"Draw and reveal a 6\"\n if ($card['color'] != 0 /* blue */ && $card['color'] != 2 /* green */) {\n self::notifyGeneralInfo(clienttranslate(\"This card is neither blue nor green.\"));\n break; // \"Otherwise\"\n };\n // \"If the card is green or blue\"\n self::notifyGeneralInfo($card['color'] == 0 ? clienttranslate(\"This card is blue.\") : clienttranslate(\"This card is green.\"));\n self::transferCardFromTo($card, $player_id, 'board'); // \"Meld it\"\n }\n self::transferCardFromTo($card, $player_id, 'hand'); // (\"Keep it\")\n break;\n \n case \"53N2\":\n $eligible = true;\n for($color = 0; $color < 4 /* purple is not tested */ ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card !== null && $top_card['age'] < 6) { // This top card is value 5 or fewer\n $eligible = false;\n }\n }\n if ($eligible) { // \"If all your non-purple top cards on your board are value 6 or higher\"\n $achievement = self::getCardInfo(109);\n if ($achievement['owner'] == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('All non-purple top cards on ${your} board are value ${age_6} or higher.'), array('your' => 'your', 'age_6' => self::getAgeSquare(6)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All non-purple top cards on ${player_name}\\'s board are value ${age_6} or higher.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'age_6' => self::getAgeSquare(6)));\n self::transferCardFromTo($achievement, $player_id, 'achievements'); // \"Claim the Universe achievement\"\n }\n else {\n self::notifyPlayer($player_id, 'log', clienttranslate('All non-purple top cards on ${your} board are value ${age_6} or higher but the Universe achievement has already been claimed.'), array('your' => 'your', 'age_6' => self::getAgeSquare(6)));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('All non-purple top cards on ${player_name}\\'s board are value ${age_6} or higher but the Universe achievement has already been claimed.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'age_6' => self::getAgeSquare(6)));\n }\n }\n break;\n \n // id 54, age 5: Societies\n case \"54D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $colors = array();\n // Determine colors which top cards with a lightbulb of the player have a value higher than the tops cards of the launcher\n for($color=0; $color<5; $color++) {\n $player_top_card = self::getTopCardOnBoard($player_id, $color);\n if ($player_top_card === null || !self::hasRessource($player_top_card, 3 /* lightbulb */)) {\n continue;\n }\n $launcher_top_card = self::getTopCardOnBoard($launcher_id, $color);\n if ($launcher_top_card === null /* => Value 0, so the color is selectable */ || $player_top_card['age'] > $launcher_top_card['age']) {\n $colors[] = $color; // This color is selectable\n }\n }\n }\n else { // First edition\n $colors = array(0,1,2,3); // All but purple\n }\n self::setGameStateValueFromArray('auxiliary_value', $colors);\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 55, age 6: Atomic theory\n case \"55N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"55N2\":\n self::executeDraw($player_id, 7, 'board'); // \"Draw and meld a 7\"\n break;\n \n // id 56, age 6: Encyclopedia\n case \"56N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 57, age 6: Industrialisation\n case \"57N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number = 0;\n for($color=0; $color<5; $color++) {\n if (self::boardPileHasRessource($player_id, $color, 5 /* factory */)) { // There is at least one visible factory in that color\n $number++;\n }\n }\n if ($number <= 1) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} color with one or more visible ${factories}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} color with one or more ${factories}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n }\n else { // $number > 1\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} colors with one or more visible ${factories}.'), array('i18n' => array('n'), 'You' => 'You', 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} colors with one or more ${factories}.'), array('i18n' => array('n'), 'player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => self::getTranslatedNumber($number), 'factories' => $factory));\n }\n // \"For each color of your board that have one factory or more\"\n }\n else {\n $number_of_factories = self::getPlayerSingleRessourceCount($player_id, 5 /* factory */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${factories}.'), array('You' => 'You', 'n' => $number_of_factories, 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${factories}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_factories, 'factories' => $factory));\n $number = self::intDivision($number_of_factories,2); // \"For every two factories on your board\"\n }\n \n for($i=0; $i<$number; $i++) {\n self::executeDraw($player_id, 6, 'board', true); // \"Draw and tuck a 6\"\n }\n break;\n \n case \"57N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 58, age 6: Machine tools\n case \"58N1\":\n self::executeDraw($player_id, self::getMaxAgeInScore($player_id), 'score'); // \"Draw and score a card of value equal to the highest card in your score pile\"\n break;\n \n // id 59, age 6: Classification\n case \"59N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 60, age 6: Metric system\n case \"60N1\":\n if (self::getCurrentSplayDirection($player_id, 2 /* green */) == 2 /* right */) { // \"If your green cards are splayed right\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"60N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 61, age 6: Canning\n case \"61N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"61N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 62, age 6: Vaccination\n case \"62D1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"62N1\":\n if (self::getGameStateValue('auxiliary_value') == 1) { // \"If any card was returned as a result of the demand\"\n self::executeDraw($player_id, 7, 'board'); // \"Draw and meld a 7\"\n }\n break;\n \n // id 63, age 6: Democracy \n case \"63N1\":\n if (self::getGameStateValue('auxiliary_value') == -1) { // If this variable has not been set before\n self::setGameStateValue('auxiliary_value', 0);\n }\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 64, age 6: Emancipation\n case \"64D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"64N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 65, age 7: Evolution \n case \"65N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 66, age 7: Publications\n case \"66N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"66N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 67, age 7: Combustion\n case \"67D1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $number_of_crowns = self::getPlayerSingleRessourceCount($launcher_id, 1 /* crown */);\n self::notifyPlayer($launcher_id, 'log', clienttranslate('${You} have ${n} ${crowns}.'), array('You' => 'You', 'n' => $number_of_crowns, 'crowns' => $crown));\n self::notifyAllPlayersBut($launcher_id, 'log', clienttranslate('${player_name} has ${n} ${crowns}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_crowns, 'crowns' => $crown));\n $number = self::intDivision($number_of_crowns, 4);\n if ($number == 0) {\n self::notifyGeneralInfo(clienttranslate('No card has to be transfered.'));\n break;\n }\n }\n else { // First edition\n $number = 2;\n }\n self::setGameStateValue('auxiliary_value', $number);\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"67N1\":\n if (self::getGameStateValue('game_rules') == 1) { // Last edition\n $bottom_red_card = self::getBottomCardOnBoard($player_id, 1 /* red */);\n if ($bottom_red_card !== null) {\n self::transferCardFromTo($bottom_red_card, 0, 'deck'); // \"Return your bottom red card\"\n }\n }\n break;\n \n // id 68, age 7: Explosives\n case \"68D1\":\n self::setGameStateValue('auxiliary_value', 0); // Flag to indicate if the player has transfered a card or not\n $step_max = 3; // --> 3 interactions: see B\n break;\n \n // id 69, age 7: Bicycle\n case \"69N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 70, age 7: Electricity\n case \"70N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 71, age 7: Refrigeration\n case \"71D1\":\n if (self::countCardsInLocation($player_id, 'hand') > 1) {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"71N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 72, age 7: Sanitation \n case \"72D1\":\n $step_max = 3; // --> 3 interactions: see B\n break;\n \n // id 73, age 7: Lighting \n case \"73N1\":\n self::setGameStateValueFromArray('auxiliary_value', array()); // Flag to indicate what ages have been tucked\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 74, age 7: Railroad \n case \"74N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"74N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 75, age 8: Quantum theory \n case \"75N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 76, age 8: Rocketry \n case \"76N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 77, age 8: Flight\n case \"77N1\":\n if (self::getCurrentSplayDirection($player_id, 1 /* red */) == 3 /* up */) { // \"If your red cards are splayed up\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n case \"77N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 78, age 8: Mobility \n case \"78D1\":\n self::setGameStateValueFromArray('auxiliary_value', array(0,2,3,4)); // Flag to indicate the colors the player can still choose (not red at the start)\n $step_max = 2; // --> 2 interactions: see B\n break;\n \n // id 79, age 8: Corporations \n case \"79D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"79N1\":\n self::executeDraw($player_id, 8, 'board'); // \"Draw and meld an ${age_8}\"\n break;\n \n // id 80, age 8: Mass media \n case \"80N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"80N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 81, age 8: Antibiotics\n case \"81N1\":\n self::setGameStateValueFromArray('auxiliary_value', array()); // Flag to indicate what ages have been tucked\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 82, age 8: Skyscrapers\n case \"82D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 83, age 8: Empiricism \n case \"83N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"83N2\":\n if (self::getPlayerSingleRessourceCount($player_id, 3 /* lightbulb */) >= 20) { // \"If you have twenty or more lightbulbs on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least twenty ${lightbulbs}.'), array('You' => 'You', 'lightbulbs' => $lightbulb));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least twenty ${lightbulbs}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'lightbulbs' => $lightbulb));\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Empiricism');\n throw new EndOfGame(); \n }\n break;\n \n // id 84, age 8: Socialism \n case \"84N1\":\n self::setGameStateValue('auxiliary_value', 0); // Flag to indicate if one purple card has been tuckeds or not\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 85, age 9: Computers \n case \"85N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"85N2\":\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each of its non-demand dogma effects\"\n break;\n \n // id 86, age 9: Genetics \n case \"86N1\":\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n $board = self::getCardsInLocation($player_id, 'board', false, true);\n $pile = $board[$card['color']];\n for($p=0; $p < count($pile)-1; $p++) { // \"For each card beneath it\"\n $card = self::getCardInfo($pile[$p]['id']);\n self::transferCardFromTo($card, $player_id, 'score', false, true); // \"Score that card\"\n }\n break;\n \n // id 87, age 9: Composites \n case \"87D1\":\n $step_max = 2; // --> 2 interactions: see B\n if (self::countCardsInLocation($player_id, 'hand') <= 1) {\n $step = 2; // --> (All but one card when there is 0 or 1 card means that nothing is to be done) Jump directly to step 2\n }\n break;\n \n // id 88, age 9: Fission\n case \"88D1\":\n $card = self::executeDraw($player_id, 10, 'revealed'); // \"Draw a 10\"\n if ($card['color'] == 1 /* red */) { // \"If it is red\"\n self::notifyGeneralInfo(clienttranslate('This card is red.'));\n self::removeAllHandsBoardsAndScores(); // \"Remove all hands, boards and score piles from the game\"\n self::notifyAll('removedHandsBoardsAndScores', clienttranslate('All hands, boards and score piles are removed from the game. Achievements are kept.'), array());\n \n // Stats\n self::setStat(true, 'fission_triggered');\n \n // \"If this occurs, the dogma action is complete\"\n // (Set the flags has if the launcher had completed the non-demand dogma effect)\n self::setGameStateValue('current_player_under_dogma_effect', $launcher_id);\n self::setGameStateValue('current_effect_type', 1);\n self::setGameStateValue('current_effect_number', 1);\n }\n else {\n self::notifyGeneralInfo(clienttranslate('This card is not red.'));\n // (Implicit) \"Place it into your hand\"\n self::transferCardFromTo($card, $player_id, 'hand');\n }\n break;\n \n case \"88N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 89, age 9: Collaboration\n case \"89D1\":\n self::executeDraw($player_id, 9, 'revealed'); // \"Draw two 9 and reveal them\"\n self::executeDraw($player_id, 9, 'revealed'); //\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"89N1\":\n $number_of_cards_on_board = self::countCardsInLocation($player_id, 'board', false, true);\n $number_of_green_cards = $number_of_cards_on_board[2];\n if ($number_of_green_cards >= 10) { // \"If you have ten or more green cards on your board\"\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have at least ten green cards.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has at least ten green cards.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Collaboration');\n throw new EndOfGame(); \n }\n break;\n \n // id 90, age 9: Satellites\n case \"90N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"90N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"90N3\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 91, age 9: Ecology\n case \"91N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n // id 92, age 9: Suburbia\n case \"92N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 93, age 9: Services\n case \"93D1\":\n $ids_of_highest_cards_in_score = self::getIdsOfHighestCardsInLocation($player_id, 'score');\n foreach($ids_of_highest_cards_in_score as $id) {\n $card = self::getCardInfo($id);\n self::transferCardFromTo($card, $launcher_id, 'hand'); // \"Transfer all the highest cards from your score pile to my hand\"\n }\n \n if (count($ids_of_highest_cards_in_score) > 0) { // \"If you transferred any cards\"\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n\n // id 94, age 9: Specialization\n case \"94N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"94N2\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 95, age 10: Bioengineering\n case \"95N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"95N2\":\n $players = self::loadPlayersBasicInfos();\n $max_number_of_leaves = -1;\n $any_under_three_leaves = false;\n foreach ($players as $player_id => $player) {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${leaves}.'), array('You' => 'You', 'n' => $number_of_leaves, 'leaves' => $leaf));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${leaves}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_leaves, 'leaves' => $leaf));\n if (!$any_under_three_leaves && $number_of_leaves < 3) { // Less than three\n self::notifyGeneralInfo(clienttranslate('That is less than 3.'));\n $any_under_three_leaves = true;\n }\n if ($number_of_leaves > $max_number_of_leaves) {\n $max_number_of_leaves = $number_of_leaves;\n $owner_of_max_number_of_leaves = $player_id;\n $tie = false; \n }\n else if ($number_of_leaves == $max_number_of_leaves && $player_id != self::getPlayerTeammate($owner_of_max_number_of_leaves)) {\n $tie = true;\n }\n }\n \n if (!$any_under_three_leaves) {\n self::notifyGeneralInfo(clienttranslate('Nobody has less than three ${leaves}.'), array('leaves' => $leaf));\n }\n else if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the most number of ${leaves}. The game continues.'), array('leaves' => $leaf));\n }\n else { // \"If any player has less than three leaves, the single player with the most number of leaves\"\n self::notifyPlayer($owner_of_max_number_of_leaves, 'log', clienttranslate('${You} have more ${leaves} than each opponent.'), array('You' => 'You', 'leaves' => $leaf));\n self::notifyAllPlayersBut($owner_of_max_number_of_leaves, 'log', clienttranslate('${player_name} has more ${leaves} than each opponent.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($owner_of_max_number_of_leaves), $owner_of_max_number_of_leaves), 'leaves' => $leaf));\n self::setGameStateValue('winner_by_dogma', $owner_of_max_number_of_leaves); // \"Wins\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Bioengineering');\n throw new EndOfGame();\n }\n \n break;\n\n // id 96, age 10: Software\n case \"96N1\":\n self::executeDraw($player_id, 10, 'score', false, true /* score keyword*/); // \"Draw and score a 10\"\n break;\n \n case \"96N2\":\n self::executeDraw($player_id, 10, 'board'); // \"Draw and meld two 10\"\n $card = self::executeDraw($player_id, 10, 'board'); //\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each of the second card's non-demand dogma effects\"\n break;\n \n // id 97, age 10: Miniaturization\n case \"97N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n // id 98, age 10: Robotics\n case \"98N1\":\n $top_green_card = self::getTopCardOnBoard($player_id, 2 /* green */);\n if ($top_green_card !== null) {\n self::transferCardFromTo($top_green_card, $player_id, 'score', false, true /* score keyword*/); // \"Score your top green card\"\n }\n $card = self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\n self::checkAndPushCardIntoNestedDogmaStack($card); // \"Execute each its non-demand dogma effects\"\n break;\n \n // id 99, age 10: Databases\n case \"99D1\":\n if (self::countCardsInLocation($player_id, 'score') > 0) { // (Nothing to do if the player has nothing in his score pile)\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n // id 100, age 10: Self service\n case \"100N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n \n case \"100N2\":\n $players = self::loadPlayersBasicInfos();\n $number_of_achievements = self::getPlayerNumberOfAchievements($player_id);\n $most_achievements = true;\n foreach ($players as $other_player_id => $player) {\n if ($other_player_id == $player_id || $other_player_id == self::getPlayerTeammate($player_id)) {\n continue; // Skip the player being evaluated and his teammate\n }\n \n if (self::getPlayerNumberOfAchievements($other_player_id) >= $number_of_achievements) {\n $most_achievements = false;\n }\n }\n if ($most_achievements) { // \"If you have more achievements than each other player\"\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n self::notifyAllPlayersBut($player_id, \"log\", clienttranslate('${player_name} has more achievements than each other player.'), array(\n 'player_name' => self::getPlayerNameFromId($player_id)\n ));\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('${You} have more achievements than each other player.'), array(\n 'You' => 'You'\n ));\n }\n else { // self::getGameStateValue('game_type')) == 'team'\n $teammate_id = self::getPlayerTeammate($player_id);\n $winning_team = array($player_id, $teammate_id);\n self::notifyAllPlayersBut($winning_team, \"log\", clienttranslate('The other team has more achievements than yours.'), array());\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('Your team has more achievements than the other.'), array());\n \n self::notifyPlayer($teammate_id, \"log\", clienttranslate('Your team has more achievements than the other.'), array());\n }\n self::setGameStateValue('winner_by_dogma', $player_id); // \"You win\"\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Self service');\n throw new EndOfGame();\n }\n break;\n \n // id 101, age 10: Globalization\n case \"101D1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"101N1\":\n self::executeDraw($player_id, 6, 'score', false, true); // \"Draw and score a 6\"\n \n $players = self::loadPlayersBasicInfos();\n $nobody_more_leaves_than_factories = true;\n foreach ($players as $player_id => $player) {\n $number_of_leaves = self::getPlayerSingleRessourceCount($player_id, 2);\n $number_of_factories = self::getPlayerSingleRessourceCount($player_id, 5);\n \n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${m} ${leaves} and ${n} ${factories}.'), array('You' => 'You', 'm' => $number_of_leaves, 'leaves' => $leaf, 'n' => $number_of_factories, 'factories' => $factory));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${m} ${leaves} and ${n} ${factories}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'm' => $number_of_leaves, 'leaves' => $leaf, 'n' => $number_of_factories, 'factories' => $factory));\n \n if ($nobody_more_leaves_than_factories && $number_of_leaves > $number_of_factories) {\n self::notifyGeneralInfo(clienttranslate('That is more ${leaves} than ${factories}'), array('leaves' => $leaf, 'factories' => $factory));\n $nobody_more_leaves_than_factories = false;\n }\n }\n \n if ($nobody_more_leaves_than_factories) { // \"If no player has more leaves than factories on their board\"\n $teams = array();\n $scores = array();\n foreach ($players as $player_id => $player) {\n $team = self::getPlayerTeam($player_id);\n $score = self::getPlayerScore($player_id);\n if (!array_key_exists($team, $teams)) {\n $teams[$team] = array($player_id);\n $scores[$team] = $score;\n }\n else {\n $teams[$team][] = $player_id;\n $scores[$team] += $score;\n }\n }\n \n $max_score = -1;\n foreach($scores as $team => $score) {\n if ($score > $max_score) {\n $max_score = $score;\n $team_max = $team;\n $tie = false;\n }\n else if ($score == $max_score) {\n $tie = true;\n }\n \n // Display the score (or the combined score for the team)\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n $player_id = $teams[$team][0];\n if ($score < 2) {\n $message_for_others = clienttranslate('${player_name} has ${n} point.');\n $message_for_player = clienttranslate('${You} have ${n} point.');\n }\n else {\n $message_for_others = clienttranslate('${player_name} has ${n} points.');\n $message_for_player = clienttranslate('${You} have ${n} points.'); \n }\n self::notifyAllPlayersBut($player_id, \"log\", $message_for_others, array(\n 'player_name' => self::getPlayerNameFromId($player_id),\n 'n' => $score\n ));\n \n self::notifyPlayer($player_id, \"log\", $message_for_player, array(\n 'You' => 'You',\n 'n' => $score\n ));\n } \n else { // self::getGameStateValue('game_type') == 'team'\n $current_team = $teams[$team];\n $player_id = $current_team[0];\n $teammate_id = $current_team[1];\n if ($score < 2) {\n $message_for_team = clienttranslate('Your team has ${n} point.');\n $message_for_others = clienttranslate('The other team has ${n} point.');\n }\n else {\n $message_for_team = clienttranslate('Your team has ${n} points.');\n $message_for_others = clienttranslate('The other team has ${n} points.'); \n }\n self::notifyAllPlayersBut($current_team, \"log\", $message_for_others, array('n' => $score));\n \n self::notifyPlayer($player_id, \"log\", $message_for_team, array('n' => $score));\n \n self::notifyPlayer($teammate_id, \"log\",$message_for_team, array('n' => $score)); \n }\n }\n \n if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the greatest score. The game continues.'));\n }\n else {\n $winning_team = $teams[$team_max];\n if (self::decodeGameType(self::getGameStateValue('game_type')) == 'individual') {\n $player_id = $winning_team[0];\n self::notifyAllPlayersBut($player_id, \"log\", clienttranslate('${player_name} has a greater score than each other player.'), array(\n 'player_name' => self::getPlayerNameFromId($player_id)\n ));\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('${You} have a greater score than each other player.'), array(\n 'You' => 'You'\n ));\n }\n else { // self::getGameStateValue('game_type')) == 'team'\n $player_id = $winning_team[0];\n $teammate_id = $winning_team[1];\n self::notifyAllPlayersBut($winning_team, \"log\", clienttranslate('The other team has a greater score than yours.'), array());\n \n self::notifyPlayer($player_id, \"log\", clienttranslate('Your team has a greater score than the other one.'), array());\n \n self::notifyPlayer($teammate_id, \"log\", clienttranslate('Your team has a greater score than the other one.'), array());\n }\n self::setGameStateValue('winner_by_dogma', $player_id); // \"The single player with the most points wins\" (or combined scores for team)\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn Globalization');\n throw new EndOfGame();\n }\n }\n break;\n \n // id 102, age 10: Stem cells\n case \"102N1\":\n if (self::countCardsInLocation($player_id, 'hand') == 0) {\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have no cards in your hand to score.'), array('You' => 'You'));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has no cards in their hand to score.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id)));\n } else {\n $step_max = 1; // --> 1 interaction: see B\n }\n break;\n \n \n // id 103, age 10: A. I.\n case \"103N1\":\n self::executeDraw($player_id, 10, 'score'); // \"Draw and score a 10\"\n break;\n\n case \"103N2\":\n $players = self::loadPlayersBasicInfos();\n $software_found = false;\n foreach ($players as $any_player_id => $player) {\n $top_blue_card = self::getTopCardOnBoard($any_player_id, 0 /* blue: color of Software*/);\n if ($top_blue_card !== null && $top_blue_card['id'] == 96 /* Software */) {\n $software_found = true;\n break;\n }\n }\n \n $robotics_found = false;\n foreach ($players as $any_player_id => $player) {\n $top_red_card = self::getTopCardOnBoard($any_player_id, 1 /* red: color of Robotics*/);\n if ($top_red_card !==null && $top_red_card['id'] == 98 /* Robotics */) {\n $robotics_found = true;\n break;\n }\n }\n \n if ($software_found && $robotics_found) { // \"If Robotics and Software are top cards on any board\"\n self::notifyGeneralInfo(clienttranslate('Robotics and Software are both visible as top cards.'));\n \n $min_score = 9999;\n foreach($players as $any_player_id => $player) {\n $score = self::getPlayerScore($any_player_id);\n if ($score < $min_score) {\n $min_score = $score;\n $player_with_min_score = $any_player_id;\n $tie = false;\n }\n else if ($score == $min_score) {\n $tie = true;\n }\n \n // Display the score (or the combined score for the team)\n if ($score < 2) {\n $message_for_others = clienttranslate('${player_name} has ${n} point.');\n $message_for_player = clienttranslate('${You} have ${n} point.');\n }\n else {\n $message_for_others = clienttranslate('${player_name} has ${n} points.');\n $message_for_player = clienttranslate('${You} have ${n} points.');\n }\n self::notifyAllPlayersBut($any_player_id, \"log\", $message_for_others, array(\n 'player_name' => self::getPlayerNameFromId($any_player_id),\n 'n' => $score\n ));\n \n self::notifyPlayer($any_player_id, \"log\", $message_for_player, array(\n 'You' => 'You',\n 'n' => $score\n ));\n }\n if ($tie) {\n self::notifyGeneralInfo(clienttranslate('There is a tie for the lowest score. The game continues.'));\n }\n else {\n self::notifyAllPlayersBut($player_with_min_score, \"log\", clienttranslate('${player_name} has the lowest score.'), array(\n 'player_name' => self::getPlayerNameFromId($player_with_min_score)\n ));\n \n self::notifyPlayer($player_with_min_score, \"log\", clienttranslate('${You} have the lowest score.'), array(\n 'You' => 'You'\n ));\n self::setGameStateValue('winner_by_dogma', $player_with_min_score); // \"The single player with the most points wins\" (scores are not combined for teams)\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn A. I.');\n throw new EndOfGame();\n }\n }\n break;\n\n // id 104, age 10: The internet.\n case \"104N1\":\n $step_max = 1; // --> 1 interaction: see B\n break;\n\n case \"104N2\":\n self::executeDraw($player_id, 10, 'score'); // \"Draw and score a 10\"\n break;\n\n case \"104N3\":\n $number_of_clocks = self::getPlayerSingleRessourceCount($player_id, 6 /* clock */);\n self::notifyPlayer($player_id, 'log', clienttranslate('${You} have ${n} ${clocks}.'), array('You' => 'You', 'n' => $number_of_clocks, 'clocks' => $clock));\n self::notifyAllPlayersBut($player_id, 'log', clienttranslate('${player_name} has ${n} ${clocks}.'), array('player_name' => self::getColoredText(self::getPlayerNameFromId($player_id), $player_id), 'n' => $number_of_clocks, 'clocks' => $clock));\n for($i=0; $i<self::intDivision($number_of_clocks,2); $i++) { // \"For every two clocks on your board\"\n self::executeDraw($player_id, 10, 'board'); // \"Draw and meld a 10\"\n }\n break;\n \n default:\n // This should not happens\n //throw new BgaVisibleSystemException(self::format(self::_(\"Unreferenced card effect code in section A: '{code}'\"), array('code' => $code)));\n break;\n }\n //[AA]||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||\n }\n catch (EndOfGame $e) {\n // End of the game: the exception has reached the highest level of code\n self::trace('EOG bubbled from self::stPlayerInvolvedTurn');\n self::trace('playerInvolvedTurn->justBeforeGameEnd');\n $this->gamestate->nextState('justBeforeGameEnd');\n return;\n }\n \n if ($step_max === null) {\n // End of the effect for this player\n self::trace('playerInvolvedTurn->interPlayerInvolvedTurn');\n $this->gamestate->nextState('interPlayerInvolvedTurn');\n return;\n }\n // There is an interaction needed\n self::setGameStateValue('step_max', $step_max);\n\n // Prepare the first step\n self::setGameStateValue('step', $step === null ? 1 : $step);\n self::trace('playerInvolvedTurn->interactionStep');\n $this->gamestate->nextState('interactionStep');\n }",
"public function __sleep();",
"public function deactivate();",
"public function wakeUp() {}",
"public function shutdown()\n {\n $this->set_state(STATE_HALTED);\n }",
"public function __sleep ();",
"function deactivation_hook() {\n\n\t}",
"public function attack($mob_obj){\t\t\r\n\t\t// Disable champion from other things while attacking\r\n\t\t$this->addEffect('Disable', Array('duration' => $this->attackSpeed()));\r\n\t\treturn $mob_obj->receiveDamage($this->base_attack_damage + ((1 - $this->level) * $this->attack_damage_per_level), 'armor', $this->stats());\t\r\n\t\t\t\r\n\t}",
"public static function deactivate(){\n // Do nothing\n }",
"private function __sleep() {}",
"private function __sleep() {}",
"private function __sleep() {}",
"private function __sleep() {}",
"function deactivate() {\n\t}",
"public function applyDamage()\n\t\t{\n\t\t\tforeach ($this->_members as $member)\n\t\t\t{\n\t\t\t\tif ($member->_alive)\n\t\t\t\t{\n\t\t\t\t\t$member->takeDamage();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public function increaseEffectDuration($Battleeffect, $sameHero = true) {\n $existingEffectIndex = $this->battleeffects->indexOf($Battleeffect, $sameHero);\n if($existingEffectIndex > -1) {\n $existingEffect = $this->battleeffects->itemAt($existingEffectIndex);\n $existingEffect->turns += $Battleeffect->turns;\n } else {\n // nothing or throw exception?\n }\n }",
"function stop(){\n\t\tif($this->time_end==0){\n\t\t\t $this->time_end = $this->microtime_float();\n\t\t\t $this->time_spend = $this->time_end - $this->time_start;\n\t\t}\n\t}",
"function on_deactivation ()\n{\n}",
"function on_deactivation ()\n{\n}",
"function __sleep(){\n\n\t\t}",
"protected function delay()\n {\n sleep($this->transactionRestartDelay);\n }",
"function fire()\n\t{\n\t\techo \"Auction timer\\n\";\n\t\t# auction countdown/expiration\t\t\t\n\t\t$this->db->query(\n\t\t\t'update auction_sale set time_left = time_left - 1');\n\t\t$q = $this->db->query(\n\t\t\t'select auction, actor from auction_sale where time_left = 0');\n\t\t$r = $q->result_array();\n\t\t\n\t\tforeach($r as $row) {\n\t\t\t$items = $this->ci->action->_getItemString(\n\t\t\t\t$this->ci->action->_getAuctionItems($row['auction']));\n\t\t\t$this->ci->actor->sendEvent(\n\t\t\t\t\"Your auction has closed, and will expire in 24 hours. (\"\n\t\t\t\t\t. $items . \")\",\n\t\t\t\t$row['actor']\n\t\t\t\t);\n\t\t}\n\t\t\n\t\t$q = $this->db->query(\n\t\t\t'select auction, actor from auction_sale where time_left <= -24'\n\t\t\t);\n\t\t$r = $q->result_array();\n\t\t\n\t\tforeach($r as $row) {\n\t\t\t$q = $this->db->query(\n\t\t\t\t'select actor from auction_bid where auction = ?',\n\t\t\t\tarray($row['auction'])\n\t\t\t\t);\n\t\t\t$actors = array();\n\t\t\t$rr = $q->result_array();\n\t\t\tforeach($rr as $rrow) $actors[] = $rrow['actor'];\n\t\t\t$items = $this->ci->action->_getItemString(\n\t\t\t\t$this->ci->action->_getAuctionItems($row['auction']));\n\t\t\t$this->ci->actor->sendEvent(\n\t\t\t\t\"An auction you were bidding on has expired. ({$items})\",\n\t\t\t\t$actors\n\t\t\t\t);\n\t\t\t$this->ci->actor->sendEvent(\"Your auction has expired. ({$items})\",\n\t\t\t\t$row['actor']);\n\t\t\t$this->ci->action->_closeAuction($row['auction']);\n\t\t\t\t\techo \"Closing auction {$row['auction']}\\n\";\n\t\t}\n\t}",
"function stDogmaEffect() {\n $current_effect_type = self::getGameStateValue('current_effect_type');\n $current_effect_number = self::getGameStateValue('current_effect_number');\n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n $qualified_effect = self::qualifyEffect($current_effect_type, $current_effect_number, $card);\n \n // Search for the first player who will undergo/share the effects, if any\n $first_player = self::getFirstPlayerUnderEffect($current_effect_type);\n if ($first_player === null) {\n // There is no player affected by the effect\n self::notifyGeneralInfo(\"<span class='minor_information'>\" . clienttranslate('Nobody is affected by the ${qualified_effect} of the card.') . \"</span>\", array(\n 'i18n' => array('qualified_effect'),\n 'qualified_effect' => $qualified_effect\n ));\n \n // End of the effect\n self::trace('dogmaEffect->interDogmaEffect');\n $this->gamestate->nextState('interDogmaEffect');\n return;\n }\n \n self::setGameStateValue('current_player_under_dogma_effect', $first_player);\n $this->gamestate->changeActivePlayer($first_player);\n \n // Begin the loop with this player\n self::trace('dogmaEffect->playerInvolvedTurn');\n $this->gamestate->nextState('playerInvolvedTurn');\n }",
"private static function single_deactivate() {\n\t\t// @TODO: Define deactivation functionality here\n\t}",
"private static function single_deactivate() {\n\t\t// @TODO: Define deactivation functionality here\n\t}",
"public function __sleep(){\n\n\t}",
"abstract protected function doSuspend();",
"public static function levelDown($character) {\r\n if($character->getLevel() > 0){\r\n $character->setLevel( $character->getLevel() - 1 );\r\n $character->setXp(0);\r\n }\r\n }",
"public function deactivate() {\n\t\t\t// just in case I want to do anyting on deactivate\n\t\t}",
"public static function deactivate()\n\t\t{\n\t\t\t// Do nothing\n\t\t}",
"public static function deactivate()\n\t\t{\n\t\t\t// Do nothing\n\t\t}",
"public function setBuyBattleChance(Down_BuyBattleChance $value)\n {\n return $this->set(self::_BUY_BATTLE_CHANCE, $value);\n }",
"private function attack()\n {\n $this->tempAttackerStats = $this->attacker->stats;\n $this->tempDefenderStats = $this->defender->stats;\n\n // 1. Before hit check, apply all luck modifying skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills, \n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 2. Check if attack is evaded\n $luck = $this->tempDefenderStats[Character::STAT_LUCK];\n if ($luck != 0 && $this->chance($luck)) {\n return $this->status = self::STATUS_MISSED;\n }\n\n // 3. Apply stat modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 4. Calculate the damage\n $strength = $this->tempAttackerStats[Character::STAT_STRENGTH];\n $defence = $this->tempDefenderStats[Character::STAT_DEFENCE];\n\n $this->damage = max(0, $strength - $defence);\n\n // 5. Apply damage modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_ATTACKER, $this->damage);\n }\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_DEFENDER, $this->damage);\n }\n );\n\n // 6. Apply the final damage\n $this->defender->stats[Character::STAT_HEALTH] =\n max(0, $this->defender->stats[Character::STAT_HEALTH] - $this->damage);\n\n $this->status = self::STATUS_COMPLETED;\n }",
"public function stop()\n {\n $this->gamerounds[] = $this->roundsum;\n $this->roundsum = 0;\n $this->dice->reset();\n }",
"public function __sleep()\n {\n }",
"public function word_count_deactivation() {\n return __( 'Do something, when deactivate the plugin', 'word-count' );\n }",
"public function escalate(float $escalateFactor): Sleeper\n {\n $this->escalateFactor = $escalateFactor;\n\n return $this;\n }",
"private function flipHeroPower() {\n if ($this->hero->powerIsFlipped()) {\n throw new HeroPowerAlreadyFlippedException('You have already used your ability this turn');\n }\n\n $this->hero->flipHeroPower();\n }",
"function turnfight($expgain,$goldgain,$action,$addres) \n{\n global $player;\n global $smarty;\n global $db;\n global $title;\n global $enemy;\n global $myczaro;\n global $zmeczenie;\n global $arrEquip;\n global $myunik;\n global $amount;\n global $myagility;\n global $intPoisoned;\n global $arrTags;\n\n $arrEquip = $player -> equipment();\n $player->curstats($arrEquip);\n $myczaro = $db -> Execute(\"SELECT * FROM czary WHERE status='E' AND gracz=\".$player -> id.\" AND typ='O'\");\n $fight = $db -> Execute(\"SELECT fight FROM players WHERE id=\".$player -> id);\n\n $player->user = $arrTags[$player->tribe][0].' '.$player->user.' '.$arrTags[$player->tribe][1];\n\n if ($fight -> fields['fight'] == 0 && $title == 'Arena Walk') \n {\n\terror (NO_ENEMY);\n }\n $premia = 0;\n $zmeczenie = 0;\n if (empty ($enemy['id'])) \n {\n $location = $db -> Execute(\"SELECT miejsce FROM players WHERE id=\".$player -> id);\n if ($location -> fields['miejsce'] == 'Góry') \n {\n\t $intRoll2 = rand(1, 100);\n\t if ($intRoll2 < 25)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Altara' ORDER BY RAND()\", 1);\n\t }\n\t elseif ($intRoll2 > 24 && $intRoll2 < 90)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Altara' ORDER BY `level` DESC\", 1);\n\t }\n\t else\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`>=\".$player->level.\" AND `location`='Altara' ORDER BY RAND()\", 1);\n\t }\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \"agility\" => $enemy1 -> fields['agility'], \"speed\" => $enemy1 -> fields['speed'], \"endurance\" => $enemy1 -> fields['endurance'], \"hp\" => $enemy1 -> fields['hp'], \"name\" => $enemy1 -> fields['name'], \"exp1\" => $enemy1 -> fields['exp1'], \"exp2\" => $enemy1 -> fields['exp2'], \"level\" => $enemy1 -> fields['level']);\n $enemy1 -> Close();\n }\n if ($location -> fields['miejsce'] == 'Las') \n {\n\t $intRoll2 = rand(1, 100);\n\t if ($intRoll2 < 25)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Ardulith' ORDER BY RAND()\", 1);\n\t }\n\t elseif ($intRoll2 > 24 && $intRoll2 < 90)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Ardulith' ORDER BY `level` DESC\", 1);\n\t }\n\t else\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`>=\".$player->level.\" AND `location`='Ardulith' ORDER BY RAND()\", 1);\n\t }\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \"agility\" => $enemy1 -> fields['agility'], \"speed\" => $enemy1 -> fields['speed'], \"endurance\" => $enemy1 -> fields['endurance'], \"hp\" => $enemy1 -> fields['hp'], \"name\" => $enemy1 -> fields['name'], \"exp1\" => $enemy1 -> fields['exp1'], \"exp2\" => $enemy1 -> fields['exp2'], \"level\" => $enemy1 -> fields['level']);\n $enemy1 -> Close();\n }\n }\n if ($title == 'Arena Walk') \n {\n $arrClass = array('Wojownik','Rzemieślnik', 'Złodziej', 'Barbarzyńca');\n if (in_array($player -> clas, $arrClass) && $myczaro -> fields['id']) \n {\n error (ONLY_MAGE);\n }\n }\n if ($arrEquip[2][0]) \n {\n $premia = ($premia + $arrEquip[2][2]);\n }\n if ($arrEquip[4][0]) \n {\n $premia = ($premia + $arrEquip[4][2]);\n }\n if ($arrEquip[5][0]) \n {\n $premia = ($premia + $arrEquip[5][2]);\n }\n if ($arrEquip[3][0]) \n {\n $premia = ($premia + $arrEquip[3][2]);\n }\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $enemy['damage'] = ($enemy['strength'] - ($player -> level + $player -> cond + $premia));\n } \n else \n {\n $enemy['damage'] = ($enemy['strength'] - ($player -> cond + $premia));\n }\n if ($myczaro -> fields['id']) \n {\n $myczarobr = ($player -> wisdom * $myczaro -> fields['obr']) - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[3][4] / 100));\n if ($arrEquip[2][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[2][4] / 100)));\n }\n if ($arrEquip[4][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[4][4] / 100)));\n }\n if ($arrEquip[5][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[5][4] / 100)));\n }\n if ($arrEquip[7][0]) \n {\n $intN = 6 - (int)($arrEquip[7][4] / 20);\n $intBonus = (10 / $intN) * $player -> level * rand(1, $intN);\n $myczarobr = ($myczarobr + $intBonus);\n }\n if ($myczarobr < 0) \n {\n $myczarobr = 0;\n }\n $myobrona = ($myczarobr + $player -> cond + $premia);\n $enemy['damage'] = ($enemy['strength'] - $myobrona);\n }\n if (!$arrEquip[3][0] && !$myczaro -> fields['id']) \n {\n $enemy['damage'] = ($enemy['strength'] - $player -> cond);\n }\n $gmagia = 0;\n if (!isset($_SESSION['round']))\n {\n $_SESSION['round'] = 1;\n }\n $smarty -> assign (\"Message\", \"<ul><li><b>\".$player -> user.\"</b> \".VERSUS.\" <b>\".$enemy['name'].\"</b><br />\");\n $smarty -> display ('error1.tpl');\n /**\n * Count points in fight\n */\n if (!isset($_SESSION['points']) || $_SESSION['points'] == 0)\n {\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n }\n /**\n * Count dodge - player and monster\n */\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $myunik = (($player->agility - $enemy['agility']) + $player -> level + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - ($player -> attack + $player -> level));\n\tif ($arrEquip[11][0])\n\t {\n\t $eunik -= ($player->attack / 5);\n\t }\n }\n if ($player -> clas == 'Rzemieślnik' || $player -> clas == 'Złodziej' || $player -> clas == '') \n {\n $myunik = ($player->agility - $enemy['agility'] + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - $player -> attack);\n }\n if ($player -> clas == 'Mag') \n {\n $myunik = ($player->agility - $enemy['agility'] + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - ($player -> magic + $player -> level));\n }\n if (!isset($myunik)) \n {\n $myunik = 1;\n }\n if (!isset($eunik)) \n {\n $eunit = 1;\n }\n if ($eunik < 1) \n {\n $eunik = 1;\n }\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n if (isset ($_SESSION['exhaust'])) \n {\n $zmeczenie = $_SESSION['exhaust'];\n }\n if (isset($_SESSION['miss']) && $_SESSION['miss'] > $myunik) \n {\n $myunik = $_SESSION['miss'];\n }\n $amount = 1;\n if (isset ($_SESSION['razy'])) \n {\n $amount = $_SESSION['razy'];\n }\n if (isset($_SESSION['mon0'])) \n {\n $temp = 0;\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n }\n else\n {\n $temp = $amount;\n $_SESSION['amount'] = $amount;\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n $_SESSION[$strIndex] = $enemy['hp'];\n }\n }\n if (isset($temp)) \n {\n if ($temp < 6 && $temp > 0)\n {\n if ($myunik < 1)\n {\n $myunik = 1;\n }\n if (isset($myunik))\n {\n $myunik = ceil($myunik / $temp);\n }\n else\n {\n $myunik = 0;\n }\n }\n else\n {\n $myunik = 1;\n }\n }\n else\n {\n if ($amount < 6)\n {\n if (isset($myunik))\n {\n $myunik = ceil($myunik / $amount);\n }\n else\n {\n $myunik = 0;\n }\n }\n else\n {\n $myunik = 1;\n }\n }\n if ($myunik < 1) \n {\n $myunik = 1;\n }\n $attacks = ceil($enemy['speed'] / $player->speed);\n if ($attacks > 5) \n {\n $attacks = 5;\n }\n if (!isset($_POST['action'])) \n {\n $_POST['action'] = '';\n }\n /**\n * If fight is longer than 24 rounds\n */\n if (isset($_SESSION['round']) && $_SESSION['round'] > 24)\n {\n $db -> Execute(\"UPDATE `players` SET `fight`=0, `hp`=\".$player -> hp.\", `bless`='', `blessval`=0 WHERE `id`=\".$player -> id);\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == 'Arena Walk') \n {\n if (!$intPoisoned)\n {\n $smarty -> assign (\"Message\", \"</ul>\".NOT_DECIDE.\"...<br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n else\n {\n $smarty -> assign (\"Message\", \"</ul><br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n $smarty -> display ('error1.tpl');\n }\n\telseif (in_array($title, array('Portal', 'Astralny plan')))\n\t {\n\t $db->Execute(\"UPDATE `players` SET `miejsce`='Altara' WHERE `id`=\".$player->id);\n\t }\n return;\n }\n $fight -> Close();\n if ($_POST['action'] == 'drink' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n drink ($_POST['potion2']);\n $objMana = $db -> Execute(\"SELECT pm FROM players WHERE id=\".$player -> id);\n $player -> mana = $objMana -> fields['pm'];\n $objMana -> Close();\n if ($_SESSION['points'] >= $attacks && $player -> hp > 0) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'use' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if (!isset($_POST['arrows']))\n {\n $_POST['arrows'] = 0;\n }\n equip ($_POST['arrows']);\n $arrEquip = $player -> equipment();\n if ($_SESSION['points'] >= $attacks) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'weapons' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 2;\n if (!isset($_POST['weapon']))\n {\n $_POST['weapon'] = 0;\n }\n equip ($_POST['weapon']);\n $arrEquip = $player -> equipment();\n if ($_SESSION['points'] >= $attacks) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'escape') \n {\n $chance = (rand(1, $player -> level * 100) + $player -> speed - $enemy['agility']);\n if ($chance > 0) \n {\n $expgain = rand($enemy['exp1'],$enemy['exp2']);\n $expgain = (ceil($expgain / 100));\n $smarty -> assign (\"Message\", ESCAPE_SUCC.\" \".$enemy['name'].YOU_GAIN1.\" \".$expgain.\" \".EXP_PTS.\"<br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n checkexp($player -> exp,$expgain,$player -> level,$player -> race,$player -> user,$player -> id,0,0,$player -> id,'',0);\n $db -> Execute(\"UPDATE players SET fight=0, bless='', blessval=0 WHERE id=\".$player -> id);\n $points = $attacks * 2;\n $temp = 1;\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == \"Arena Walk\") \n {\n $smarty -> assign (\"Message\", \"</ul><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n }\n if ($title == 'Astralny plan' || $title == 'Portal')\n {\n $db -> Execute(\"UPDATE `players` SET `fight`=9999 WHERE id=\".$player -> id);\n }\n\t if ($title == 'Przygoda')\n\t {\n\t\t$db -> Execute(\"UPDATE `players` SET `fight`=-1 WHERE id=\".$player -> id);\n\t }\n } \n else \n {\n $smarty -> assign (\"Message\", \"<br />\".ESCAPE_FAIL.\" \".$enemy['name'].\"!\");\n $smarty -> display ('error1.tpl');\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n }\n if ($_POST['action'] == 'cast' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if (!isset($_POST['castspell']))\n {\n $_POST['castspell'] = 0;\n }\n castspell($_POST['castspell'],0,$eunik);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n /**\n * Burst offensive spell\n */\n if ($_POST['action'] == 'bspell' && $_SESSION['points'] > 0) \n {\n if (intval($_POST['power']) < 1) \n {\n $smarty -> assign (\"Message\", ERROR);\n $smarty -> display ('error1.tpl');\n $_POST['power'] = 0;\n }\n else\n {\n if ($_POST['power'] > $player -> level)\n {\n $_POST['power'] = $player -> level;\n }\n\t checkvalue($_POST['bspellboost']);\n $intSpelllevel = $db -> Execute(\"SELECT `gracz, `poziom` FROM `czary` WHERE `id`=\".$_POST['bspellboost']);\n\t if ($intSpelllevel->fields['gracz'] != $player->id)\n\t {\n\t\t$intMaxburst = 0;\n\t }\n\t else\n\t {\n\t\t$intMaxburst = $player -> mana - $intSpelllevel -> fields['poziom'];\n\t }\n $intSpelllevel -> Close();\n if ($_POST['power'] > $intMaxburst)\n {\n $_POST['power'] = $intMaxburst;\n }\n $_SESSION['points'] = $_SESSION['points'] - 2;\n castspell($_POST['bspellboost'],$_POST['power'],$eunik);\n }\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n /**\n * Burst defensive spell\n */\n if ($_POST['action'] == 'dspell') \n {\n if (intval($_POST['power1']) < 1) \n {\n $smarty -> assign (\"Message\", ERROR);\n $smarty -> display ('error1.tpl');\n $_POST['power1'] = 0;\n }\n if ($_POST['power1'] > $player -> level)\n {\n $_POST['power1'] = $player -> level;\n }\n $intMaxburst = $player -> mana - $myczaro -> fields['poziom'];\n if ($_POST['power1'] > $intMaxburst)\n {\n $_POST['power1'] = $intMaxburst;\n }\n $enemy['damage'] = $enemy['damage'] - $_POST['power1'];\n $player -> mana = $player -> mana - $_POST['power1'];\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'nattack' && $_SESSION['points'] > 0) \n {\n attack($eunik,0);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'dattack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n attack($eunik,3);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = $myunik + ($myunik / 2);\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'aattack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n attack($eunik,1);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = $myunik / 2;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'battack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 2;\n attack($eunik,2);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = 0;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if (!isset($_SESSION['points']))\n {\n $_SESSION['points'] = 0;\n }\n if($attacks > $_SESSION['points'] && $temp > 0 && $_POST['action'] != 'rest' && $_POST['action'] != 'escape') \n {\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'rest') \n {\n monsterattack($attacks,$enemy,0,$amount);\n if ($player -> hp > 0) \n {\n $smarty -> assign (\"Message\", \"<br />\".REST_SUCC);\n $smarty -> display ('error1.tpl');\n $rest = ($player -> cond / 10);\n $zmeczenie = $zmeczenie - $rest;\n if ($zmeczenie < 0) \n {\n $zmeczenie = 0;\n }\n $_SESSION['exhaust'] = $zmeczenie;\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($player -> hp <= 0) \n {\n if ($title != 'Arena Walk') \n\t {\n\t loststat($player -> id, $player->oldstats, 0, $enemy['name'], 0, $player->antidote);\n\t }\n\tif ($player->antidote == 'R')\n\t {\n\t $player->hp = 1;\n\t }\n if ($player -> hp < 0) \n {\n $player -> hp = 0;\n }\n\tif ($title == 'Przygoda')\n\t {\n\t $intFight = -1;\n\t }\n\telse\n\t {\n\t $intFight = 0;\n\t }\n $db -> Execute(\"INSERT INTO `events` (`text`) VALUES('Gracz \".$player -> user.\" \".DEFEATED_BY.$enemy['name'].\"')\");\n $db -> Execute(\"UPDATE `players` SET `fight`=\".$intFight.\", `hp`=\".$player -> hp.\", `bless`='', `blessval`=0, `antidote`='' WHERE `id`=\".$player -> id);\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == 'Arena Walk') \n {\n if (!$intPoisoned)\n {\n $smarty -> assign (\"Message\", \"</ul>\".LOST_FIGHT.\"...<br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n else\n {\n $smarty -> assign (\"Message\", \"</ul><br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n $smarty -> display ('error1.tpl');\n }\n }\n if (isset($_SESSION['points']))\n {\n $intPoints = $_SESSION['points'];\n }\n else\n {\n $intPoints = 0;\n }\n if (!$_POST['action'] && $attacks <= $intPoints) \n {\n fightmenu($_SESSION['points'],$zmeczenie,1,$addres);\n }\n if ($temp == 0 && $player -> fight > 0 && (isset($_SESSION['round']) && $_SESSION['round'] < 25)) \n {\n $db -> Execute(\"INSERT INTO `events` (`text`) VALUES('Gracz \".$player -> user.\" \".DEFEAT.\" \".$enemy['name'].\"')\");\n $db -> Execute(\"UPDATE `players` SET `credits`=`credits`+\".$goldgain.\" WHERE `id`=\".$player -> id);\n $smarty -> assign (\"Message\", \"<br /><li><b>\".YOU_DEFEAT.\" <b>\".$amount.\" \".$enemy['name'].\"</b>.\");\n $smarty -> display ('error1.tpl');\n $smarty -> assign (\"Message\", \"<li><b>\".REWARD.\" <b>\".$expgain.\"</b> \".EXP_PTS.\" \".AND_GAIN.\" <b>\".$goldgain.\"</b> \".COINS);\n $smarty -> display ('error1.tpl');\n\tmonsterloot($enemy['lootnames'], $enemy['lootchances'], $enemy['level'], $amount);\n\tbattlerecords($enemy['name'], $enemy['level'], $player->id);\n checkexp($player -> exp,$expgain,$player -> level,$player -> race,$player -> user,$player -> id,0,0,$player -> id,'',0);\n if ($player -> hp < 0) \n {\n $player -> hp = 0;\n }\n\tif (($player->hp > 0) && ($player->autodrink != 'N'))\n\t {\n\t if ($player->autodrink == 'A')\n\t {\n\t\tdrinkfew(0, 0, 'M');\n\t\tdrinkfew(0, 0, 'H');\n\t }\n\t else\n\t {\n\t\tdrinkfew(0, 0, $player->autodrink);\n\t }\n\t }\n if ($title == 'Arena Walk') \n {\n $smarty -> assign (\"Message\", \"</ul><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n }\n $db -> Execute(\"UPDATE players SET hp=\".$player -> hp.\", fight=0, bless='', blessval=0 WHERE id=\".$player -> id);\n\tif (isset($_SESSION['razy']))\n\t {\n\t unset($_SESSION['razy']);\n\t }\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n }\n $myczaro -> Close();\n}",
"public function preDown()\n {\n }",
"private function endGame()\n {\n $this->hasWon = true;\n $this->calculatePoints();\n $this->setMessageToPlayer();\n }",
"public static function deactivate() {\n\t\t\t// Do nothing\n\t\t}",
"public function suspendBehavior($className, $temporary_config = null) {\n\t\tforeach ($this->model->behaviors() as $key => $behav) {\n\t\t\tif ($behav['class'] == $className) {\n\t\t\t\t$this->suspendedBehaviors[$className] = $behav;\n\t\t\t\t$this->model->detachBehavior($key);\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.5949376",
"0.5801382",
"0.56009173",
"0.53549796",
"0.5175458",
"0.50683063",
"0.50561994",
"0.50533324",
"0.49883172",
"0.48984522",
"0.48702496",
"0.48558253",
"0.4852387",
"0.4848656",
"0.4838531",
"0.4831737",
"0.48237774",
"0.48237774",
"0.48237774",
"0.48237774",
"0.4805075",
"0.4802663",
"0.47948298",
"0.47787428",
"0.4752252",
"0.47431606",
"0.47337022",
"0.46999753",
"0.4698681",
"0.46977335",
"0.46831247",
"0.46831247",
"0.46817848",
"0.46767765",
"0.46717596",
"0.46590835",
"0.46534124",
"0.46489495",
"0.46469772",
"0.4645779",
"0.46454483",
"0.46454147",
"0.46454147",
"0.46454147",
"0.4645001",
"0.4645001",
"0.4645001",
"0.4645001",
"0.4645001",
"0.4645001",
"0.4645001",
"0.4645001",
"0.46441883",
"0.46419665",
"0.4639433",
"0.4636609",
"0.46348083",
"0.46342835",
"0.46292377",
"0.46263292",
"0.46137834",
"0.45982394",
"0.4596603",
"0.45881504",
"0.45795244",
"0.45780778",
"0.457445",
"0.457445",
"0.457445",
"0.457445",
"0.4560418",
"0.45558465",
"0.4550935",
"0.45417383",
"0.45384738",
"0.45384738",
"0.45292568",
"0.45246747",
"0.4520987",
"0.45099664",
"0.45090598",
"0.45090598",
"0.45088032",
"0.44952694",
"0.44892207",
"0.44852236",
"0.44818288",
"0.44818288",
"0.4478981",
"0.4475504",
"0.44741794",
"0.44726938",
"0.4460806",
"0.446042",
"0.44582576",
"0.4457816",
"0.4451802",
"0.44486752",
"0.44466516",
"0.44447464"
] | 0.4648572 | 38 |
Checks if a battle action is blocked by this Battleeffect If buff: Block enemy's actions; if debuff: block hero's actions "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnBeforeAction($event) {
if($this->blocks &&
$this->active &&
!$event->action->blocked &&
$event->action->battlePhase == "offense" &&
($this->buff == ($event->sender->getCombatantString($event->hero) == $this->enemyString))) {
if($this->blockChance != 1) {
$rand = mt_rand(0,100);
if($rand > $this->blockChance * 100) {
return;
}
}
if($event->action->call("setBlocked")) {
$this->charges --;
$battleMsg = new Battlemessage($this->call("getMsgBlock"));
$event->sender->log($event->hero, $battleMsg);
if($this->charges == 0) {
$this->active = false;
$battleMsg = new Battlemessage($this->msgExpire);
$event->sender->log($event->hero, $battleMsg);
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function attack()\n {\n $this->tempAttackerStats = $this->attacker->stats;\n $this->tempDefenderStats = $this->defender->stats;\n\n // 1. Before hit check, apply all luck modifying skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills, \n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_LUCK && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 2. Check if attack is evaded\n $luck = $this->tempDefenderStats[Character::STAT_LUCK];\n if ($luck != 0 && $this->chance($luck)) {\n return $this->status = self::STATUS_MISSED;\n }\n\n // 3. Apply stat modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_ATTACKER,\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat != Character::STAT_LUCK\n && $skill->stat != Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n array($this, 'applySkill'),\n Skill::TARGET_DEFENDER,\n );\n\n // 4. Calculate the damage\n $strength = $this->tempAttackerStats[Character::STAT_STRENGTH];\n $defence = $this->tempDefenderStats[Character::STAT_DEFENCE];\n\n $this->damage = max(0, $strength - $defence);\n\n // 5. Apply damage modifier skills\n $skills = array_filter($this->attacker->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_ATTACK;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_ATTACKER, $this->damage);\n }\n );\n\n $skills = array_filter($this->defender->character->skills, function (Skill $skill) {\n return $skill->stat == Character::STAT_DAMAGE\n && $skill->type == Skill::TYPE_DEFENCE;\n });\n array_walk(\n $skills,\n function (Skill $skill, $key) {\n $this->applyDamageSkill($skill, Skill::TARGET_DEFENDER, $this->damage);\n }\n );\n\n // 6. Apply the final damage\n $this->defender->stats[Character::STAT_HEALTH] =\n max(0, $this->defender->stats[Character::STAT_HEALTH] - $this->damage);\n\n $this->status = self::STATUS_COMPLETED;\n }",
"public function is_blocked_to(Character $character)\n {\n return false;\n }",
"public function stop() {\n if($this->combatantA->hp > 0) {\n $this->winnerType = \"player\";\n $this->winnerID = $this->combatantAID;\n } elseif ($this->combatantB->hp > 0) {\n $this->winnerType = ($this->type == \"pvp\" ? \"player\" : \"monster\");\n $this->winnerID = $this->combatantBID;\n } else {\n $this->winnerType = \"draw\";\n }\n\n // Bounty + XP\n if($this->type == \"monster\" && $this->combatantB->hp <= 0) {\n $loot = $this->combatantB->dropItems($this->combatantA->getDropItemPerc());\n $this->combatantA->gainItems($loot);\n \n $contact = $this->combatantB->dropContact($this->combatantA->getDropContactPerc());\n $this->combatantA->gainContact($contact, \"battle\");\n\n /**\n * monster->xp can be defined to deviate from the standard\n * attack / 2 xp reward\n */\n if(isset($this->combatantB->xp)) {\n $this->combatantA->gainXp($this->combatantB->xp, \"battle\");\n } else {\n $this->combatantA->gainXp($this->combatantB->attack / 4, \"battle\");\n }\n }\n\n $this->combatantA->ongoingBattleID = null;\n if($this->type == \"pvp\") {\n // @todo Message to PVP enemy\n $this->combatantB->ongoingBattleID = null;\n }\n\n $this->state = \"resolved\";\n $this->objectState = \"\";\n\n /**\n * ToDo: why does backupbehavior think that no attribute changed\n * if we set ongoingBattleID to null?\n */\n // $this->combatantA->save();\n $this->combatantA->update();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n\n $this->update();\n $this->reconstructCombatants();\n \n // Notify the world about this result\n $event = new BattleEvent($this);\n $this->combatantA->onFinishedBattle($event);\n if($this->type == \"pvp\") {\n $this->combatantB->onFinishedBattle($event);\n }\n }",
"public function attack($mob_obj){\t\t\r\n\t\t// Disable champion from other things while attacking\r\n\t\t$this->addEffect('Disable', Array('duration' => $this->attackSpeed()));\r\n\t\treturn $mob_obj->receiveDamage($this->base_attack_damage + ((1 - $this->level) * $this->attack_damage_per_level), 'armor', $this->stats());\t\r\n\t\t\t\r\n\t}",
"function receiveAttack($enemy_id, $attackType, $combatStyle) {\n\t\t//combat styles marked with + are implemented against humans\n\t\t$enemy = new Obj($this->mysqli, $enemy_id);\n\t\t$enemy->getBasicData();\n\t\t$enemy->getName();\n\t\t$atype = new AnimalType($this->mysqli, $enemy->secondary);\n\t\t$result_str = \"\";\n\t\t$mybody = new Obj($this->mysqli, $this->bodyId);\n\t\t$mybody->getBasicData();\n\t\t\n\t\t$combat = $this->checkCurrentCombat();\n\t\t\n\t\t$bodypart = \"bung\";\n\t\t$weapon = \"weapon\";\n\t\t\n\t\t$attack_types1 = array(\n\t\t\t1 => \"bites #VICTIM in the $bodypart\",\n\t\t\t2 => \"claws at #VICTIM''s $bodypart\",\n\t\t\t3 => \"kicks #VICTIM in the $bodypart\",\n\t\t\t4 => \"tramples #VICTIM\",\n\t\t\t5 => \"headbutts #VICTIM in the $bodypart\",\n\t\t\t6 => \"gores #VICTIM in the $bodypart with its horn\",\n\t\t\t7 => \"tears at #VICTIM''s $bodypart with its teeth\",\n\t\t\t8 => \"strangles #VICTIM\",\n\t\t\t9 => \"punches #VICTIM in the $bodypart\",\n\t\t\t10 => \"hits #VICTIM in the $bodypart with $weapon\",\n\t\t\t11 => \"throws $weapon at #VICTIM''s $bodypart\",\n\t\t\t12 => \"pecks at #VICTIM''s $bodypart\"\n\t\t);\n\t\t\n\t\t$attack_types2 = array(\n\t\t\t1 => \"bite #VICTIM\",\n\t\t\t2 => \"claw at #VICTIM\",\n\t\t\t3 => \"kick #VICTIM\",\n\t\t\t4 => \"trample #VICTIM\",\n\t\t\t5 => \"headbutt #VICTIM\",\n\t\t\t6 => \"gore #VICTIM with its horn\",\n\t\t\t7 => \"tear at #VICTIM with its teeth\",\n\t\t\t8 => \"strangle #VICTIM\",\n\t\t\t9 => \"punch #VICTIM\",\n\t\t\t10 => \"hit #VICTIM with $weapon\",\n\t\t\t11 => \"throw $weapon at #VICTIM\",\n\t\t\t12 => \"peck at #VICTIM\"\n\t\t);\n\t\t\n\t\t$info = $this->bodyPartTargeter(100, 1, $combatStyle);//later on falter will depend on skills\n\t\tif (!$info) {\n\t\t\t$result_str = \"The \" . $enemy->name . \" tries to \" . $attack_types2[$attackType] . \" but misses.\";\n\t\t\t$this->recordCombatEvent($combat, $result_str, $enemy->uid, $this->bodyId, 2);\n\t\t\treturn 200;\n\t\t}//Enemy missed\n\t\t//to do: what if it's not an animal?\n\t\t$severing = $atype->getAttribute(56);\n\t\t$piercing = $atype->getAttribute(57);\n\t\t$crushing = $atype->getAttribute(58);\n\t\t$broken = 0;\n\t\t$efficiency = rand(50,125);\n\t\tif ($efficiency==125&&rand(0,99)==99) $efficiency = 150;\n\t\tif ($severing>0&&($attackType==2||$attackType==7)) {\n\t\t\t$severing = round($severing*$efficiency/100);\n\t\t\t$bleed_type = 1;\n\t\t\t$bleed_level = round($severing/30);\n\t\t\t$bodypart = $info[0][\"name\"];\n\t\t\tif (bbetween($info[0][\"sever\"], 0, $severing)) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", severing it from the rest of #VICTIM''s body.\";\n\t\t\t\t$depth = 9;\n\t\t\t\tif ($bleed_level<3) $bleed_level = 3;\n\t\t\t\tif ($info[0][\"id\"]<4) $info[1] = true;//instakill\n\t\t\t\tif (ibetween($info[0][\"id\"], 18, 27)) $info[2] = $true;//crippled\n\t\t\t\t$broken = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.90)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \" so that it''s hanging by a shred.\";\n\t\t\t\t$depth = 8;\n\t\t\t\tif ($bleed_level<3) $bleed_level = 3;\n\t\t\t\tif (ibetween($info[0][\"id\"], 18, 27)) $info[2] = $true;//crippled\n\t\t\t\t$broken = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.55)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", severing it halfway.\";\n\t\t\t\t$depth = 7;\n\t\t\t\tif ($bleed_level<3) $bleed_level = 3;\n\t\t\t\tif (ibetween($info[0][\"id\"], 18, 27)) $info[2] = $true;//crippled\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.40)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", causing a deep gash\";\n\t\t\t\tif ($info[0][\"bone\"]<0&&$info[0][\"bone\"]*-1<=$severing) {\n\t\t\t\t\t$result_str .= \" and exposing bone.\";\n\t\t\t\t\t$depth = 5;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result_str .= \".\";\n\t\t\t\t\t$depth = 4;\n\t\t\t\t}\n\t\t\t\tif ($bleed_level<2) $bleed_level = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.20)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", causing a considerable gash\";\n\t\t\t\tif ($info[0][\"bone\"]<0&&$info[0][\"bone\"]*-1<=$severing) {\n\t\t\t\t\t$result_str .= \" and exposing bone.\";\n\t\t\t\t\t$depth = 5;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result_str .= \", reaching into the muscle.\";\n\t\t\t\t\t$depth = 4;\n\t\t\t\t}\n\t\t\t\tif ($bleed_level<2) $bleed_level = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.10)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", reaching into the subcutaneous fat layer.\";\n\t\t\t\t$depth = 3;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.05)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", causing a shallow wound.\";\n\t\t\t\t$depth = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", barely scratching you.\";\n\t\t\t\t$depth = 1;\n\t\t\t}\n\t\t}\n\t\telse if ($crushing>0&&($attackType==3||$attackType==4||$attackType==5||$attackType==8||$attackType==9)) {\n\t\t\t$bodypart = $info[0][\"name\"];\n\t\t\t$crushing = round($crushing*$efficiency/100);\n\t\t\t$bleed_type = 2;\n\t\t\tif ($info[0][\"crush\"]<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", totally shattering it.\";\n\t\t\t\t$depth = 8;\n\t\t\t\t$bleed_level = 6;\n\t\t\t\t$broken = 4;\n\t\t\t\t$bleed_type = 3;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.75)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", breaking it badly.\";\n\t\t\t\t$depth = 7;\n\t\t\t\t$bleed_level = 5;\n\t\t\t\t$broken = 3;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.50)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", causing a fracture.\";\n\t\t\t\t$depth = 7;\n\t\t\t\t$bleed_level = 5;\n\t\t\t\t$broken = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.40)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", causing serious internal bleeding.\";\n\t\t\t\t$depth = 5;\n\t\t\t\t$bleed_level = 4;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.20)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", which will certainly cause a big bruise.\";\n\t\t\t\t$depth = 4;\n\t\t\t\t$bleed_level = 3;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.10)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", which is going to leave a bruise.\";\n\t\t\t\t$depth = 3;\n\t\t\t\t$bleed_level = 2;\n\t\t\t}\n\t\t\telse if ($info[0][\"crush\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", which might cause a small bruise.\";\n\t\t\t\t$depth = 1;\n\t\t\t\t$bleed_level = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", which is likely to cause slight internal bleeding in the surrounding tissues.\";\n\t\t\t\t$depth = 2;\n\t\t\t\t$bleed_level = 2;\n\t\t\t}\n\t\t}\n\t\telse if ($piercing>0&&($attackType==1||$attackType==6||$attackType==12)) {\n\t\t\t$bodypart = $info[0][\"name\"];\n\t\t\t$piercing = round($piercing*$efficiency/100);\n\t\t\t$bleed_type = 1;\n\t\t\tif ($info[0][\"pierce\"]<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", which goes all the way through.\";\n\t\t\t\t$depth = 6;\n\t\t\t\t$bleed_level = 6;\n\t\t\t\tif ((strpos($info[0][\"name\"], 'artery') !== false)||(strpos($info[0][\"name\"], 'heart') !== false)) $bleed_level = 10;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.50)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", which sinks about halfway through.\";\n\t\t\t\t$depth = 4;\n\t\t\t\t$bleed_level = 5;\n\t\t\t\tif (strpos($info[0][\"name\"], 'heart') !== false) $bleed_level = 9;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.40)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \" causing a deep wound\";\n\t\t\t\tif ($info[0][\"bone\"]<0&&$info[0][\"bone\"]*-1<=$piercing) {\n\t\t\t\t\t$result_str .= \" and colliding with bone.\";\n\t\t\t\t\t$depth = 5;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result_str .= \".\";\n\t\t\t\t\t$depth = 4;\n\t\t\t\t}\n\t\t\t\t$bleed_level = 4;\n\t\t\t\tif (strpos($info[0][\"name\"], 'heart') !== false) $bleed_level = 8;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.2)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \", causing a considerable wound.\";\n\t\t\t\t$depth = 3;\n\t\t\t\t$bleed_level = 3;\n\t\t\t\tif (strpos($info[0][\"name\"], 'heart') !== false) $bleed_level = 7;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.1)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \" but the damage is only superficial.\";\n\t\t\t\t$depth = 2;\n\t\t\t\t$bleed_level = 2;\n\t\t\t}\n\t\t\telse if ($info[0][\"pierce\"]>0) {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \" but it doesn't hurt that much.\";\n\t\t\t\t$depth = 1;\n\t\t\t\t$bleed_level = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \" not really causing any damage\";\n\t\t\t\t$depth = 0;\n\t\t\t}\n\t\t}\n\t\telse $result_str = \"The \" . $enemy->name . \" \" . $attack_types1[$attackType] . \" but surprisingly (or not?) it doesn't cause any damage. Maybe there''s something wrong with it?\";//this shouldn't actually be possible because it shouldn't allow picking weapons that aren't weapons\n\t\t\n\t\tif (isset($bleed_type)&&isset($bleed_level)&&isset($depth)) {\n\t\t\t$curTime = new Time($this->mysqli);\n\t\t\t$sql = \"INSERT INTO `wounds` (`objectFK`, `bodypart`, `depth`, `bleed_level`, `bleed_type`, `broken`, `datetime`, `minute`) VALUES ('$this->bodyId', '\" . $info[0][\"id\"] . \"', '$depth', '$bleed_level', '$bleed_type', '$broken', '\" . $curTime->dateTime . \"', '\" . $curTime->minute . \"')\";\n\t\t\t$this->mysqli->query($sql);\n\t\t\t$result = $this->mysqli->insert_id;\n\t\t\tif (!$result) {\n\t\t\t\t//para(\"Something went wrong and the wound couldn't be recorded.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($info[2]) {\n\t\t\t$result_str .= \"#VICTIM is crippled by the attack.\";\n\t\t\t$mybody->setAttribute(60, 1);\n\t\t\t$mybody->setAttribute(61, 1);//sprawled\n\t\t}\n\t\tif ($info[3]) {\n\t\t\t$result_str .= \"#VICTIM feels lightheaded.\";\n\t\t\t$mybody->setAttribute(59, 1);//concussion\n\t\t}\n\t\tif ($info[1]) $result_str .= \"#VICTIM passes out.\";\n\t\t\n\t\t\n\t\t\n\t\t$result_str = str_replace(\"bung\", $info[0][\"name\"], $result_str);\n\t\t\n\t\t$this->recordCombatEvent($combat, $result_str, $enemy->uid, $this->bodyId, 2);\n\t\t\n\t\treturn 100;\n\t}",
"public function apply_block_supports()\n {\n }",
"public function onUseItem(PlayerInteractEvent $event) {\n\t\tif (!$event->getPlayer()->canPlaceBreakBlocks()) {\n\t\t\t$event->setCancelled(true);\n\t\t}\n\t\tif ($event->getFace() === 0xff) {\n\t\t\treturn;\n\t\t}\n\t\t$b = $event->getBlock();\n\t\t$area = $event->getPlayer()->currentArea;\n\t\tif ($b->x < $area->centerX - $area->kickSize || $b->z < $area->centerZ - $area->kickSize ||\n\t\t\t\t$b->x > $area->centerX + $area->kickSize || $b->z > $area->centerZ + $area->kickSize) {\n\t\t\t$event->setCancelled(true);\n\t\t\t$event->getPlayer()->sendLocalizedMessage(\"PLACE_BLOCK_ERROR\", array(), TextFormat::RED);\t\t\n\t\t\treturn;\n\t\t}\n\t}",
"public function hasAttack(){\r\n return $this->_has(5);\r\n }",
"public function receiveAttack($attack)\n {\n\n if (isset($this->_protector) && $this->_protector->_shield > 0) {\n $attackUnderTheShield = $this->_protector->reduceShield($attack);\n\n if ($attackUnderTheShield < 0) {\n parent::receiveAttack(abs($attackUnderTheShield));\n }\n } else {\n parent::receiveAttack($attack);\n }\n }",
"public function hasAttack(){\r\n return $this->_has(8);\r\n }",
"public function isBlocked()\n {\n return $this->getStatus() == self::STATUS_BLOCKED;\n }",
"function battle($type,$adress) \n{\n global $player;\n global $smarty;\n global $enemy;\n global $arrehp;\n global $db;\n if ($player -> hp <= 0) \n {\n error (NO_LIFE);\n }\n $enemy1 = $db -> Execute(\"SELECT * FROM `monsters` WHERE `id`=\".$player -> fight);\n $span = ($enemy1 -> fields['level'] / $player -> level);\n if ($span > 2) \n {\n $span = 2;\n }\n $expgain = ceil(rand($enemy1 -> fields['exp1'],$enemy1 -> fields['exp2']) * $span);\n $goldgain = ceil(rand($enemy1 -> fields['credits1'],$enemy1 -> fields['credits2']) * $span);\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \n \"agility\" => $enemy1 -> fields['agility'], \n \"speed\" => $enemy1 -> fields['speed'], \n \"endurance\" => $enemy1 -> fields['endurance'], \n \"hp\" => $enemy1 -> fields['hp'], \n \"name\" => $enemy1 -> fields['name'], \n \"id\" => $enemy1 -> fields['id'], \n \"exp1\" => $enemy1 -> fields['exp1'], \n \"exp2\" => $enemy1 -> fields['exp2'], \n \"level\" => $enemy1 -> fields['level'],\n\t\t \"lootnames\" => explode(\";\", $enemy1->fields['lootnames']),\n\t\t \"lootchances\" => explode(\";\", $enemy1->fields['lootchances']));\n if ($type == 'T') \n {\n if (!isset ($_POST['action'])) \n {\n turnfight ($expgain,$goldgain,'',$adress);\n } \n else \n {\n turnfight ($expgain,$goldgain,$_POST['action'],$adress);\n }\n } \n else \n {\n fightmonster ($enemy,$expgain,$goldgain,1);\n }\n $fight = $db -> Execute(\"SELECT `fight`, `hp` FROM `players` WHERE `id`=\".$player -> id);\n if ($fight -> fields['fight'] == 0) \n {\n if ($type == 'T')\n\t {\n\t $player->energy --;\n\t if ($player -> energy < 0) \n\t {\n\t\t$player -> energy = 0;\n\t }\n\t $db -> Execute(\"UPDATE `players` SET `energy`=\".$player->energy.\" WHERE `id`=\".$player->id);\n\t }\n if ($player -> location == 'Góry') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php?akcja=gory\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"gory.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n if ($player -> location == 'Las') \n {\n if ($fight -> fields['hp'] > 0)\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"explore.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n else\n {\n $smarty -> assign (\"Link\", \"<br /><br /><a href=\\\"las.php\\\">\".A_REFRESH.\"</a><br />\");\n }\n }\n }\n $fight -> Close();\n $enemy1 -> Close();\n}",
"public function block() {\n $friendship_relation_exists = $this->micro_relation_exists($this->from, $this->to, \"F\");\n $exists = $this->micro_relation_exists($this->from, $this->to, \"B\");\n\n if($friendship_relation_exists) {\n // Unblock\n if($exists) {\n $this->db->query(\"DELETE FROM user_relation WHERE `from` = ? AND `to` = ? AND `status` = ?\"\n ,array(\n $this->from,\n $this->to,\n \"B\"\n ));\n // Block\n } else {\n $this->db->query(\"INSERT INTO user_relation (`from`, `to`, `status`, `since`) \n VALUES (?, ?, ?, ?)\", array(\n $this->from,\n $this->to,\n \"B\",\n date(\"Y/m/d h:i:s\")\n ));\n }\n\n return true;\n }\n\n return false;\n }",
"protected function applyFinalEffects(\n PhabricatorLiskDAO $object,\n array $xactions) {\n // with a message to the effect of \"alincoln resolved blocking task Txxx.\"\n $unblock_xaction = null;\n foreach ($xactions as $xaction) {\n switch ($xaction->getTransactionType()) {\n case ManiphestTaskStatusTransaction::TRANSACTIONTYPE:\n $unblock_xaction = $xaction;\n break;\n }\n }\n\n if ($unblock_xaction !== null) {\n $blocked_phids = PhabricatorEdgeQuery::loadDestinationPHIDs(\n $object->getPHID(),\n ManiphestTaskDependedOnByTaskEdgeType::EDGECONST);\n if ($blocked_phids) {\n // In theory we could apply these through policies, but that seems a\n // little bit surprising. For now, use the actor's vision.\n $blocked_tasks = id(new ManiphestTaskQuery())\n ->setViewer($this->getActor())\n ->withPHIDs($blocked_phids)\n ->needSubscriberPHIDs(true)\n ->needProjectPHIDs(true)\n ->execute();\n\n $old = $unblock_xaction->getOldValue();\n $new = $unblock_xaction->getNewValue();\n\n foreach ($blocked_tasks as $blocked_task) {\n $parent_xaction = id(new ManiphestTransaction())\n ->setTransactionType(\n ManiphestTaskUnblockTransaction::TRANSACTIONTYPE)\n ->setOldValue(array($object->getPHID() => $old))\n ->setNewValue(array($object->getPHID() => $new));\n\n if ($this->getIsNewObject()) {\n $parent_xaction->setMetadataValue('blocker.new', true);\n }\n\n id(new ManiphestTransactionEditor())\n ->setActor($this->getActor())\n ->setActingAsPHID($this->getActingAsPHID())\n ->setContentSource($this->getContentSource())\n ->setContinueOnNoEffect(true)\n ->setContinueOnMissingFields(true)\n ->applyTransactions($blocked_task, array($parent_xaction));\n }\n }\n }\n\n return $xactions;\n }",
"public function getIsBlock();",
"public function isBlocked()\n {\n if ($this->status == 2) {\n return true;\n } else {\n return false;\n }\n }",
"public function isBlocked() : bool {\n return $this->delivery_status === WebhookEvent::EVENT_BLOCKED;\n }",
"public function ban();",
"public function ban(User $mod, User $user) {\n return $mod->getLastStatus()->status == 'moderator' && \n $user->getLastStatus()->status != 'moderator' && \n $user->getLastStatus()->status != 'banned';\n }",
"public function block(User $user,User $target){\n if ($user->hasRole('superadmin') && !$target->hasRole('superadmin')){\n return true;\n }\n //admin only can block user\n else if($user->hasRole('admin') && $target->hasRole('user')){\n return true;\n }\n }",
"function ipban()\n\t{\n\t\tglobal $ilance, $ilcrumbs, $navcrumb, $phrase, $ilconfig, $ilpage, $show, $maintenancemessage, $login_include;\n\t\n\t\t($apihook = $ilance->api('ipban_constructor_start')) ? eval($apihook) : false;\n\t\n\t\t// #### IP BLOCKER #############################################\n\t\t$ipaddress = IPADDRESS;\n\t\tif ($this->ip_address_banned($ipaddress))\n\t\t{\n\t\t\tdie($phrase['_you_have_been_banned_from_the_marketplace']);\n\t\t}\n\t\t// #### MAINTENANCE MODE #######################################\n\t\tif ($ilconfig['maintenance_mode'] AND (empty($_SESSION['ilancedata']['user']['userid']) OR !empty($_SESSION['ilancedata']['user']['userid']) AND $_SESSION['ilancedata']['user']['isadmin'] == '0'))\n\t\t{\n\t\t\t// supress maintenance mode if we're viewing admin cp, logging into site or payment notifications are being called\n\t\t\tif (defined('LOCATION') AND (LOCATION == 'admin' OR LOCATION == 'login' OR LOCATION == 'ipn'))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (ip_address_excluded($ipaddress))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (strrchr($ilconfig['maintenance_excludeurls'], ', '))\n\t\t\t{\n\t\t\t\t$scripts = explode(', ', $ilconfig['maintenance_excludeurls']);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$scripts = preg_split('#\\s+#', $ilconfig['maintenance_excludeurls'], -1, PREG_SPLIT_NO_EMPTY);\n\t\t\t}\n\t\t\tif (count($scripts) > 0)\n\t\t\t{\n\t\t\t\t$currentscript = isset($_SERVER['PHP_SELF']) ? $_SERVER['PHP_SELF'] : '';\n\t\t\t\tforeach ($scripts AS $script)\n\t\t\t\t{\n\t\t\t\t\tif (preg_match(\"/$script/i\", $currentscript))\n\t\t\t\t\t{\n\t\t\t\t\t\t// found a script that should be excluded while we're still in maintenance mode...\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t$area_title = '{_maintenance_mode_temporarily_unavailable}';\n\t\t\t$page_title = '{_template_metatitle} | ' . SITE_NAME;\n\t\t\t$navcrumb = array (\"$ilpage[main]\" => '{_maintenance_mode_temporarily_unavailable}');\n\t\t\tprint_notice('{_maintenance_mode}', '{' . $ilconfig['maintenance_message'] . '}', HTTP_SERVER . $ilpage['main'], '{_main_menu}');\n\t\t\texit();\n\t\t}\n\t\t// #### PUBLIC OR PRIVATE FACING MARKETPLACE ###################\n\t\tif ($ilconfig['publicfacing'] == 0 AND (empty($_SESSION['ilancedata']['user']['userid']) OR $_SESSION['ilancedata']['user']['userid'] == 0) AND (empty($_SESSION['ilancedata']['user']['isadmin']) OR $_SESSION['ilancedata']['user']['isadmin'] == '0'))\n\t\t{\n\t\t\tif (defined('LOCATION') AND (LOCATION == 'admin' OR LOCATION == 'login' OR LOCATION == 'ipn' OR LOCATION == 'registration' OR LOCATION == 'ajax' OR LOCATION == 'attachment'))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (ip_address_excluded($ipaddress))\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t$area_title = SITE_NAME;\n\t\t\t$page_title = '{_template_metatitle} | ' . SITE_NAME;\n\t\t\t$navcrumb = array (\"$ilpage[main]\" => '{_private_marketplace}');\n\t\t\tprint_notice('{_private_marketplace}', \"{_please} <span class=\\\"blue\\\"><a href=\\\"\" . HTTPS_SERVER . $ilpage['login'] . \"\\\">{_sign_in}</a></span> {_or} <span class=\\\"blue\\\"><a href=\\\"\" . HTTPS_SERVER . $ilpage['registration'] . \"\\\">{_register}</a></span>. {_this_is_a_private_marketplace}.\", HTTPS_SERVER . $ilpage['login'], '{_sign_in}');\n\t\t\texit();\n\t\t}\n\t}",
"abstract public function getAttack();",
"public function hasIgnoredefense(){\r\n return $this->_has(31);\r\n }",
"public function hasIgnoredefense(){\r\n return $this->_has(34);\r\n }",
"public function hasFireAttack(){\r\n return $this->_has(20);\r\n }",
"function isBanned()\n {\n if ( $this->getVar( 'level' ) == 6 ) {\n return true;\n }\n return false;\n }",
"function attack($eunik,$bdamage) \n{\n global $smarty;\n global $player;\n global $db;\n global $zmeczenie;\n global $enemy;\n global $amount;\n $number1 = $_POST['monster'] - 1;\n $number = \"mon\".$number1;\n $gwtbr = 0;\n $gatak = 0;\n if (isset ($_SESSION['exhaust'])) \n {\n $zmeczenie = $_SESSION['exhaust'];\n }\n $arrEquip = $player -> equipment();\n if (!$arrEquip[0][0] && !$arrEquip[1][0]) \n {\n $smarty -> assign(\"Message\", NO_WEAPON);\n $smarty -> display('error1.tpl');\n }\n if ($arrEquip[0][0]) \n {\n if ($arrEquip[0][3] == 'D') \n {\n $arrEquip[0][2] = $arrEquip[0][2] + $arrEquip[0][8];\n }\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $stat['damage'] = (($player -> strength + $arrEquip[0][2]) + $player -> level);\n } \n else \n {\n $stat['damage'] = ($player -> strength + $arrEquip[0][2]);\n }\n if ($player -> attack < 1) \n {\n $krytyk = 1;\n }\n if ($player -> attack > 5) \n {\n $kr = ceil($player -> attack / 100);\n $krytyk = (5 + $kr);\n } \n else \n {\n $krytyk = $player -> attack;\n }\n $name = \"bronią\";\n\t$strAtype = 'melee';\n }\n if ($arrEquip[11][0])\n {\n\t$stat['damage'] += (($arrEquip[11][2] + $player->strength) + $player->level);\n\t$name = \"obiema brońmi\";\n }\n if ($arrEquip[1][0]) \n {\n $bonus = $arrEquip[1][2] + $arrEquip[6][2];\n\tif ($arrEquip[6][3] == 'D')\n\t {\n\t $bonus += $arrEquip[6][8];\n\t }\n $bonus2 = (($player -> strength / 2) + ($player->agility / 2));\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $stat['damage'] = (($bonus2 + $bonus) + $player -> level);\n } \n else \n {\n $stat['damage'] = ($bonus2 + $bonus);\n }\n if ($player -> shoot < 1) \n {\n $krytyk = 1;\n }\n if ($player -> shoot > 5) \n {\n $kr = ceil($player -> shoot / 100);\n $krytyk = (5 + $kr);\n } \n else \n {\n $krytyk = $player -> shoot;\n }\n if (!$arrEquip[6][0]) \n {\n $stat['damage'] = 0;\n }\n $name = \"strzałą\";\n\t$strAtype = 'ranged';\n }\n if (!isset($stat['damage']))\n {\n $stat['damage'] = 0;\n }\n if ($player -> clas == 'Rzemieślnik')\n {\n $stat['damage'] = $stat['damage'] - ($stat['damage'] / 4);\n }\n if ($bdamage == 2) \n {\n $stat['damage'] = $stat['damage'] * 2;\n }\n if ($bdamage == 1) \n {\n $stat['damage'] = $stat['damage'] + ($stat['damage'] / 2);\n $eunik = $eunik - ($eunik / 10);\n }\n if ($bdamage == 3) \n {\n $stat['damage'] = $stat['damage'] - ($stat['damage'] / 2);\n $eunik = $eunik + ($eunik / 10);\n }\n $rzut2 = (rand(1,($player -> level * 10)));\n $stat['damage'] = ($stat['damage'] + $rzut2);\n $stat['damage'] = ($stat['damage'] - $enemy['endurance']);\n if ($stat['damage'] < 1) \n {\n $stat['damage'] = 0;\n }\n if ($arrEquip[0][0] && $gwtbr > $arrEquip[0][6]) \n {\n\t$stat['damage'] = 0;\n\tif ($arrEquip[11][6] > $gwtbr)\n\t {\n\t $stat['damage'] += (($arrEquip[11][2] + $player->strength) + $player->level);\n\t }\n\t$krytyk = 1;\n }\n if ($arrEquip[11][0] && $gwtbr > $arrEquip[11][6]) \n {\n\t$stat['damage'] = 0;\n\tif ($arrEquip[0][6] > $gwtbr)\n\t {\n\t $stat['damage'] += (($arrEquip[0][2] + $player->strength) + $player->level);\n\t }\n\t$krytyk = 1;\n }\n if ($arrEquip[1][0] && ($gwtbr > $arrEquip[1][6] || $gwtbr > $arrEquip[6][6])) \n {\n $stat['damage'] = 0;\n $krytyk = 1;\n }\n if ($arrEquip[1][0] && !$arrEquip[6][0]) \n {\n $stat['damage'] = 0;\n $krytyk = 1;\n }\n $ehp = $_SESSION[$number];\n if ($ehp <= 0)\n {\n $smarty -> assign(\"Message\", ERROR);\n $smarty -> display('error1.tpl');\n $gwtbr = $gwtbr + 1;\n }\n if ($arrEquip[1][0]) \n {\n $eunik = $eunik * 2;\n }\n if ($ehp > 0 && $player -> hp > 0) \n {\n if ($arrEquip[0][0]) \n {\n $zmeczenie = $zmeczenie + $arrEquip[0][4];\n } \n\telseif ($arrEquip[1][0]) \n {\n $zmeczenie = $zmeczenie + $arrEquip[1][4];\n }\n\tif ($arrEquip[11][0])\n\t {\n\t $zmeczenie += $arrEquip[11][4];\n\t }\n $szansa = rand(1, 100);\n if ($eunik >= $szansa && $szansa < 97) \n {\n $smarty -> assign (\"Message\", \"<b>\".$enemy['name'].\"</b> \".ENEMY_DODGE.\"!<br />\");\n $smarty -> display ('error1.tpl');\n if ($arrEquip[1][0]) \n {\n $gwtbr = ($gwtbr + 1);\n }\n } \n\telseif ($zmeczenie <= $player -> cond) \n {\n if ($arrEquip[0][0] || $arrEquip[1][0] || $arrEquip[11][0]) \n\t {\n\t\t$gwtbr++;\n\t\t$rzut = rand(1, 1000) / 10;\n\t\t$intRoll = rand(1, 100);\n\t\t$arrLocations = array('w tułów', 'w głowę', 'w kończynę');\n\t\t$intHit = rand(0, 2);\n\t\tif ($krytyk >= $rzut && $intRoll <= $krytyk && $player->fight != 999) \n\t\t {\n\t\t $gatak++;\n\t\t $ehp = 0;\n\t\t $smarty->assign(\"Message\", showcritical($arrLocations[$intHit], $strAtype, 'pve', $enemy['name']));\n\t\t }\n\t\telse\n\t\t {\n\t\t $ehp -= $stat['damage'];\n\t\t $smarty -> assign (\"Message\", YOU_ATTACK1.\" \".$name.\" <b>\".$enemy['name'].\"</b> \".$arrLocations[$intHit].\" \".INFLICT.\" <b>\".$stat['damage'].\"</b> \".DAMAGE.\"! (\".$ehp.\" \".LEFT.\")</font><br />\");\n\t\t if ($stat['damage'] > 0) \n\t\t {\n\t\t\t$gatak = ($gatak + 1);\n\t\t }\n\t\t }\n\t\t$smarty -> display ('error1.tpl');\n\t }\n }\n }\n $_SESSION[$number] = $ehp;\n if ($arrEquip[0][0]) \n {\n gainability($player -> id, $player -> user, 0, $gatak, 0, $player -> mana, $player -> id, 'weapon');\n lostitem($gwtbr, $arrEquip[0][6], YOU_WEAPON, $player -> id, $arrEquip[0][0], $player -> id, HAS_BEEN1, $player->level);\n }\n if ($arrEquip[11][0])\n {\n\tif (!$arrEquip[0][0])\n\t {\n\t gainability($player -> id, $player -> user, 0, $gatak, 0, $player -> mana, $player -> id, 'weapon');\n\t }\n\tlostitem($gwtbr, $arrEquip[11][6], YOU_WEAPON, $player -> id, $arrEquip[11][0], $player -> id, HAS_BEEN1, $player->level);\n }\n if ($arrEquip[1][0]) \n {\n gainability($player -> id, $player -> user, 0, $gatak, 0, $player -> mana, $player -> id, 'bow');\n lostitem($gwtbr, $arrEquip[1][6], YOU_WEAPON, $player -> id, $arrEquip[1][0], $player -> id, HAS_BEEN1, $player->level);\n lostitem($gwtbr, $arrEquip[6][6], YOU_QUIVER, $player -> id, $arrEquip[6][0], $player -> id, HAS_BEEN1, $player->level);\n }\n $_SESSION['exhaust'] = $zmeczenie;\n}",
"private function applyInfect($time, &$action_message, $skill_effect, $monster) {\n\t\tif(!empty($this->monsters[$monster['id']]['Monster']['debuffs']['infected'])) {\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'] += rand($skill_effect['amount_min'], $skill_effect['amount_max']);\n\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Infected('.$this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'].').');\n\t\t}else{\n\t\t\t$this->monsters[$monster['id']]['Monster']['debuffs']['infected'] = [\n\t\t\t\t'stacks' => rand($skill_effect['amount_min'], $skill_effect['amount_max'])\n\t\t\t];\n\t\t\tif($this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'] == 1) {\n\t\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Infected.');\n\t\t\t}else{\n\t\t\t\t$this->addActionMessage($action_message, 'debuff_gained', $this->monsters[$monster['id']]['Monster']['name'].' is Infected('.$this->monsters[$monster['id']]['Monster']['debuffs']['infected']['stacks'].').');\n\t\t\t}\n\t\t}\n\t}",
"public function attack(Character $target) {\n $rand = rand(1, 100);\n if ($rand < 10 ) {\n $status = $this->potion(); // On regénère la vie !\n }\n else if ($rand > 10 && $rand < 25) {\n $status = $this->diablotin($target); // diablotin\n }\n else if ($rand > 25 && $rand < 37) {\n $status = $this->siphonAme($target); // Siphon d'Ames\n }\n else if ($rand > 37 && $rand < 65) {\n $status = $this->drainVie($target); // Drain de vie\n }\n else if ($rand > 65 && $rand < 85) {\n $status = $this->gangreFeu($target); // GangreFeu\n }\n else{\n $status = $this->coupBaguette($target); // Attaque à la baguette !\n }\n return $status;\n }",
"public function hasFireAttack(){\r\n return $this->_has(17);\r\n }",
"public function RequestPlayerGameBan($sCheatDescription, $iDuration, $bDelayBan = false) {\n $aOptions = array(\n 'http' => array(\n 'header' => \"Content-type: application/x-www-form-urlencoded\\r\\n\",\n 'method' => 'POST',\n 'content' => http_build_query(array('key' => $this->key, 'appid' => (int) $this->game, 'steamid' => $this->steamid, 'reportid' => $this->reportid, 'cheatdescription' => $sCheatDescription, 'duration' => $iDuration, 'delayban' => $bDelayBan))\n )\n );\n $cContext = stream_context_create($aOptions);\n $fgcRequestPlayerGameBan = file_get_contents(\"https://partner.steam-api.com/ICheatReportingService/RequestPlayerGameBan/v1/\", false, $cContext);\n $oRequestPlayerGameBan = json_decode($fgcRequestPlayerGameBan);\n\n\n if (count($oRequestPlayerGameBan->response) == 0) {\n return false;\n }\n return true;\n }",
"function turnfight($expgain,$goldgain,$action,$addres) \n{\n global $player;\n global $smarty;\n global $db;\n global $title;\n global $enemy;\n global $myczaro;\n global $zmeczenie;\n global $arrEquip;\n global $myunik;\n global $amount;\n global $myagility;\n global $intPoisoned;\n global $arrTags;\n\n $arrEquip = $player -> equipment();\n $player->curstats($arrEquip);\n $myczaro = $db -> Execute(\"SELECT * FROM czary WHERE status='E' AND gracz=\".$player -> id.\" AND typ='O'\");\n $fight = $db -> Execute(\"SELECT fight FROM players WHERE id=\".$player -> id);\n\n $player->user = $arrTags[$player->tribe][0].' '.$player->user.' '.$arrTags[$player->tribe][1];\n\n if ($fight -> fields['fight'] == 0 && $title == 'Arena Walk') \n {\n\terror (NO_ENEMY);\n }\n $premia = 0;\n $zmeczenie = 0;\n if (empty ($enemy['id'])) \n {\n $location = $db -> Execute(\"SELECT miejsce FROM players WHERE id=\".$player -> id);\n if ($location -> fields['miejsce'] == 'Góry') \n {\n\t $intRoll2 = rand(1, 100);\n\t if ($intRoll2 < 25)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Altara' ORDER BY RAND()\", 1);\n\t }\n\t elseif ($intRoll2 > 24 && $intRoll2 < 90)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Altara' ORDER BY `level` DESC\", 1);\n\t }\n\t else\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`>=\".$player->level.\" AND `location`='Altara' ORDER BY RAND()\", 1);\n\t }\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \"agility\" => $enemy1 -> fields['agility'], \"speed\" => $enemy1 -> fields['speed'], \"endurance\" => $enemy1 -> fields['endurance'], \"hp\" => $enemy1 -> fields['hp'], \"name\" => $enemy1 -> fields['name'], \"exp1\" => $enemy1 -> fields['exp1'], \"exp2\" => $enemy1 -> fields['exp2'], \"level\" => $enemy1 -> fields['level']);\n $enemy1 -> Close();\n }\n if ($location -> fields['miejsce'] == 'Las') \n {\n\t $intRoll2 = rand(1, 100);\n\t if ($intRoll2 < 25)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Ardulith' ORDER BY RAND()\", 1);\n\t }\n\t elseif ($intRoll2 > 24 && $intRoll2 < 90)\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`<=\".$player->level.\" AND `location`='Ardulith' ORDER BY `level` DESC\", 1);\n\t }\n\t else\n\t {\n\t\t$enemy1 = $db->SelectLimit(\"SELECT * FROM `monsters` WHERE `level`>=\".$player->level.\" AND `location`='Ardulith' ORDER BY RAND()\", 1);\n\t }\n $enemy = array(\"strength\" => $enemy1 -> fields['strength'], \"agility\" => $enemy1 -> fields['agility'], \"speed\" => $enemy1 -> fields['speed'], \"endurance\" => $enemy1 -> fields['endurance'], \"hp\" => $enemy1 -> fields['hp'], \"name\" => $enemy1 -> fields['name'], \"exp1\" => $enemy1 -> fields['exp1'], \"exp2\" => $enemy1 -> fields['exp2'], \"level\" => $enemy1 -> fields['level']);\n $enemy1 -> Close();\n }\n }\n if ($title == 'Arena Walk') \n {\n $arrClass = array('Wojownik','Rzemieślnik', 'Złodziej', 'Barbarzyńca');\n if (in_array($player -> clas, $arrClass) && $myczaro -> fields['id']) \n {\n error (ONLY_MAGE);\n }\n }\n if ($arrEquip[2][0]) \n {\n $premia = ($premia + $arrEquip[2][2]);\n }\n if ($arrEquip[4][0]) \n {\n $premia = ($premia + $arrEquip[4][2]);\n }\n if ($arrEquip[5][0]) \n {\n $premia = ($premia + $arrEquip[5][2]);\n }\n if ($arrEquip[3][0]) \n {\n $premia = ($premia + $arrEquip[3][2]);\n }\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $enemy['damage'] = ($enemy['strength'] - ($player -> level + $player -> cond + $premia));\n } \n else \n {\n $enemy['damage'] = ($enemy['strength'] - ($player -> cond + $premia));\n }\n if ($myczaro -> fields['id']) \n {\n $myczarobr = ($player -> wisdom * $myczaro -> fields['obr']) - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[3][4] / 100));\n if ($arrEquip[2][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[2][4] / 100)));\n }\n if ($arrEquip[4][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[4][4] / 100)));\n }\n if ($arrEquip[5][0]) \n {\n $myczarobr = ($myczarobr - (($myczaro -> fields['obr'] * $player -> wisdom) * ($arrEquip[5][4] / 100)));\n }\n if ($arrEquip[7][0]) \n {\n $intN = 6 - (int)($arrEquip[7][4] / 20);\n $intBonus = (10 / $intN) * $player -> level * rand(1, $intN);\n $myczarobr = ($myczarobr + $intBonus);\n }\n if ($myczarobr < 0) \n {\n $myczarobr = 0;\n }\n $myobrona = ($myczarobr + $player -> cond + $premia);\n $enemy['damage'] = ($enemy['strength'] - $myobrona);\n }\n if (!$arrEquip[3][0] && !$myczaro -> fields['id']) \n {\n $enemy['damage'] = ($enemy['strength'] - $player -> cond);\n }\n $gmagia = 0;\n if (!isset($_SESSION['round']))\n {\n $_SESSION['round'] = 1;\n }\n $smarty -> assign (\"Message\", \"<ul><li><b>\".$player -> user.\"</b> \".VERSUS.\" <b>\".$enemy['name'].\"</b><br />\");\n $smarty -> display ('error1.tpl');\n /**\n * Count points in fight\n */\n if (!isset($_SESSION['points']) || $_SESSION['points'] == 0)\n {\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n }\n /**\n * Count dodge - player and monster\n */\n if ($player -> clas == 'Wojownik' || $player -> clas == 'Barbarzyńca') \n {\n $myunik = (($player->agility - $enemy['agility']) + $player -> level + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - ($player -> attack + $player -> level));\n\tif ($arrEquip[11][0])\n\t {\n\t $eunik -= ($player->attack / 5);\n\t }\n }\n if ($player -> clas == 'Rzemieślnik' || $player -> clas == 'Złodziej' || $player -> clas == '') \n {\n $myunik = ($player->agility - $enemy['agility'] + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - $player -> attack);\n }\n if ($player -> clas == 'Mag') \n {\n $myunik = ($player->agility - $enemy['agility'] + $player -> miss);\n $eunik = (($enemy['agility'] - $player->agility) - ($player -> magic + $player -> level));\n }\n if (!isset($myunik)) \n {\n $myunik = 1;\n }\n if (!isset($eunik)) \n {\n $eunit = 1;\n }\n if ($eunik < 1) \n {\n $eunik = 1;\n }\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n if (isset ($_SESSION['exhaust'])) \n {\n $zmeczenie = $_SESSION['exhaust'];\n }\n if (isset($_SESSION['miss']) && $_SESSION['miss'] > $myunik) \n {\n $myunik = $_SESSION['miss'];\n }\n $amount = 1;\n if (isset ($_SESSION['razy'])) \n {\n $amount = $_SESSION['razy'];\n }\n if (isset($_SESSION['mon0'])) \n {\n $temp = 0;\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n }\n else\n {\n $temp = $amount;\n $_SESSION['amount'] = $amount;\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n $_SESSION[$strIndex] = $enemy['hp'];\n }\n }\n if (isset($temp)) \n {\n if ($temp < 6 && $temp > 0)\n {\n if ($myunik < 1)\n {\n $myunik = 1;\n }\n if (isset($myunik))\n {\n $myunik = ceil($myunik / $temp);\n }\n else\n {\n $myunik = 0;\n }\n }\n else\n {\n $myunik = 1;\n }\n }\n else\n {\n if ($amount < 6)\n {\n if (isset($myunik))\n {\n $myunik = ceil($myunik / $amount);\n }\n else\n {\n $myunik = 0;\n }\n }\n else\n {\n $myunik = 1;\n }\n }\n if ($myunik < 1) \n {\n $myunik = 1;\n }\n $attacks = ceil($enemy['speed'] / $player->speed);\n if ($attacks > 5) \n {\n $attacks = 5;\n }\n if (!isset($_POST['action'])) \n {\n $_POST['action'] = '';\n }\n /**\n * If fight is longer than 24 rounds\n */\n if (isset($_SESSION['round']) && $_SESSION['round'] > 24)\n {\n $db -> Execute(\"UPDATE `players` SET `fight`=0, `hp`=\".$player -> hp.\", `bless`='', `blessval`=0 WHERE `id`=\".$player -> id);\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == 'Arena Walk') \n {\n if (!$intPoisoned)\n {\n $smarty -> assign (\"Message\", \"</ul>\".NOT_DECIDE.\"...<br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n else\n {\n $smarty -> assign (\"Message\", \"</ul><br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n $smarty -> display ('error1.tpl');\n }\n\telseif (in_array($title, array('Portal', 'Astralny plan')))\n\t {\n\t $db->Execute(\"UPDATE `players` SET `miejsce`='Altara' WHERE `id`=\".$player->id);\n\t }\n return;\n }\n $fight -> Close();\n if ($_POST['action'] == 'drink' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n drink ($_POST['potion2']);\n $objMana = $db -> Execute(\"SELECT pm FROM players WHERE id=\".$player -> id);\n $player -> mana = $objMana -> fields['pm'];\n $objMana -> Close();\n if ($_SESSION['points'] >= $attacks && $player -> hp > 0) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'use' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if (!isset($_POST['arrows']))\n {\n $_POST['arrows'] = 0;\n }\n equip ($_POST['arrows']);\n $arrEquip = $player -> equipment();\n if ($_SESSION['points'] >= $attacks) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'weapons' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 2;\n if (!isset($_POST['weapon']))\n {\n $_POST['weapon'] = 0;\n }\n equip ($_POST['weapon']);\n $arrEquip = $player -> equipment();\n if ($_SESSION['points'] >= $attacks) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'escape') \n {\n $chance = (rand(1, $player -> level * 100) + $player -> speed - $enemy['agility']);\n if ($chance > 0) \n {\n $expgain = rand($enemy['exp1'],$enemy['exp2']);\n $expgain = (ceil($expgain / 100));\n $smarty -> assign (\"Message\", ESCAPE_SUCC.\" \".$enemy['name'].YOU_GAIN1.\" \".$expgain.\" \".EXP_PTS.\"<br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n checkexp($player -> exp,$expgain,$player -> level,$player -> race,$player -> user,$player -> id,0,0,$player -> id,'',0);\n $db -> Execute(\"UPDATE players SET fight=0, bless='', blessval=0 WHERE id=\".$player -> id);\n $points = $attacks * 2;\n $temp = 1;\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == \"Arena Walk\") \n {\n $smarty -> assign (\"Message\", \"</ul><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n }\n if ($title == 'Astralny plan' || $title == 'Portal')\n {\n $db -> Execute(\"UPDATE `players` SET `fight`=9999 WHERE id=\".$player -> id);\n }\n\t if ($title == 'Przygoda')\n\t {\n\t\t$db -> Execute(\"UPDATE `players` SET `fight`=-1 WHERE id=\".$player -> id);\n\t }\n } \n else \n {\n $smarty -> assign (\"Message\", \"<br />\".ESCAPE_FAIL.\" \".$enemy['name'].\"!\");\n $smarty -> display ('error1.tpl');\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n }\n if ($_POST['action'] == 'cast' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if (!isset($_POST['castspell']))\n {\n $_POST['castspell'] = 0;\n }\n castspell($_POST['castspell'],0,$eunik);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n /**\n * Burst offensive spell\n */\n if ($_POST['action'] == 'bspell' && $_SESSION['points'] > 0) \n {\n if (intval($_POST['power']) < 1) \n {\n $smarty -> assign (\"Message\", ERROR);\n $smarty -> display ('error1.tpl');\n $_POST['power'] = 0;\n }\n else\n {\n if ($_POST['power'] > $player -> level)\n {\n $_POST['power'] = $player -> level;\n }\n\t checkvalue($_POST['bspellboost']);\n $intSpelllevel = $db -> Execute(\"SELECT `gracz, `poziom` FROM `czary` WHERE `id`=\".$_POST['bspellboost']);\n\t if ($intSpelllevel->fields['gracz'] != $player->id)\n\t {\n\t\t$intMaxburst = 0;\n\t }\n\t else\n\t {\n\t\t$intMaxburst = $player -> mana - $intSpelllevel -> fields['poziom'];\n\t }\n $intSpelllevel -> Close();\n if ($_POST['power'] > $intMaxburst)\n {\n $_POST['power'] = $intMaxburst;\n }\n $_SESSION['points'] = $_SESSION['points'] - 2;\n castspell($_POST['bspellboost'],$_POST['power'],$eunik);\n }\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n /**\n * Burst defensive spell\n */\n if ($_POST['action'] == 'dspell') \n {\n if (intval($_POST['power1']) < 1) \n {\n $smarty -> assign (\"Message\", ERROR);\n $smarty -> display ('error1.tpl');\n $_POST['power1'] = 0;\n }\n if ($_POST['power1'] > $player -> level)\n {\n $_POST['power1'] = $player -> level;\n }\n $intMaxburst = $player -> mana - $myczaro -> fields['poziom'];\n if ($_POST['power1'] > $intMaxburst)\n {\n $_POST['power1'] = $intMaxburst;\n }\n $enemy['damage'] = $enemy['damage'] - $_POST['power1'];\n $player -> mana = $player -> mana - $_POST['power1'];\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'nattack' && $_SESSION['points'] > 0) \n {\n attack($eunik,0);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $_SESSION['points'] = $_SESSION['points'] - 1;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'dattack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n attack($eunik,3);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = $myunik + ($myunik / 2);\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'aattack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 1;\n attack($eunik,1);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = $myunik / 2;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'battack' && $_SESSION['points'] > 0) \n {\n $_SESSION['points'] = $_SESSION['points'] - 2;\n attack($eunik,2);\n $temp = 0;\n for ($k=0;$k<$amount;$k++) \n {\n $strIndex = \"mon\".$k;\n if ($_SESSION[$strIndex] > 0) \n {\n $temp = $temp + 1;\n }\n }\n $myunik = 0;\n if ($temp > 0 && $attacks <= $_SESSION['points']) \n {\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if (!isset($_SESSION['points']))\n {\n $_SESSION['points'] = 0;\n }\n if($attacks > $_SESSION['points'] && $temp > 0 && $_POST['action'] != 'rest' && $_POST['action'] != 'escape') \n {\n monsterattack($attacks,$enemy,$myunik,$amount);\n if ($player -> hp > 0) \n {\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($_POST['action'] == 'rest') \n {\n monsterattack($attacks,$enemy,0,$amount);\n if ($player -> hp > 0) \n {\n $smarty -> assign (\"Message\", \"<br />\".REST_SUCC);\n $smarty -> display ('error1.tpl');\n $rest = ($player -> cond / 10);\n $zmeczenie = $zmeczenie - $rest;\n if ($zmeczenie < 0) \n {\n $zmeczenie = 0;\n }\n $_SESSION['exhaust'] = $zmeczenie;\n $_SESSION['round'] = $_SESSION['round'] + 1;\n $_SESSION['points'] = ceil($player->speed / $enemy['speed']);\n if ($_SESSION['points'] > 5) \n {\n $_SESSION['points'] = 5;\n }\n fightmenu($_SESSION['points'],$zmeczenie,$_SESSION['round'],$addres);\n }\n }\n if ($player -> hp <= 0) \n {\n if ($title != 'Arena Walk') \n\t {\n\t loststat($player -> id, $player->oldstats, 0, $enemy['name'], 0, $player->antidote);\n\t }\n\tif ($player->antidote == 'R')\n\t {\n\t $player->hp = 1;\n\t }\n if ($player -> hp < 0) \n {\n $player -> hp = 0;\n }\n\tif ($title == 'Przygoda')\n\t {\n\t $intFight = -1;\n\t }\n\telse\n\t {\n\t $intFight = 0;\n\t }\n $db -> Execute(\"INSERT INTO `events` (`text`) VALUES('Gracz \".$player -> user.\" \".DEFEATED_BY.$enemy['name'].\"')\");\n $db -> Execute(\"UPDATE `players` SET `fight`=\".$intFight.\", `hp`=\".$player -> hp.\", `bless`='', `blessval`=0, `antidote`='' WHERE `id`=\".$player -> id);\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n if ($title == 'Arena Walk') \n {\n if (!$intPoisoned)\n {\n $smarty -> assign (\"Message\", \"</ul>\".LOST_FIGHT.\"...<br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n else\n {\n $smarty -> assign (\"Message\", \"</ul><br /><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n }\n $smarty -> display ('error1.tpl');\n }\n }\n if (isset($_SESSION['points']))\n {\n $intPoints = $_SESSION['points'];\n }\n else\n {\n $intPoints = 0;\n }\n if (!$_POST['action'] && $attacks <= $intPoints) \n {\n fightmenu($_SESSION['points'],$zmeczenie,1,$addres);\n }\n if ($temp == 0 && $player -> fight > 0 && (isset($_SESSION['round']) && $_SESSION['round'] < 25)) \n {\n $db -> Execute(\"INSERT INTO `events` (`text`) VALUES('Gracz \".$player -> user.\" \".DEFEAT.\" \".$enemy['name'].\"')\");\n $db -> Execute(\"UPDATE `players` SET `credits`=`credits`+\".$goldgain.\" WHERE `id`=\".$player -> id);\n $smarty -> assign (\"Message\", \"<br /><li><b>\".YOU_DEFEAT.\" <b>\".$amount.\" \".$enemy['name'].\"</b>.\");\n $smarty -> display ('error1.tpl');\n $smarty -> assign (\"Message\", \"<li><b>\".REWARD.\" <b>\".$expgain.\"</b> \".EXP_PTS.\" \".AND_GAIN.\" <b>\".$goldgain.\"</b> \".COINS);\n $smarty -> display ('error1.tpl');\n\tmonsterloot($enemy['lootnames'], $enemy['lootchances'], $enemy['level'], $amount);\n\tbattlerecords($enemy['name'], $enemy['level'], $player->id);\n checkexp($player -> exp,$expgain,$player -> level,$player -> race,$player -> user,$player -> id,0,0,$player -> id,'',0);\n if ($player -> hp < 0) \n {\n $player -> hp = 0;\n }\n\tif (($player->hp > 0) && ($player->autodrink != 'N'))\n\t {\n\t if ($player->autodrink == 'A')\n\t {\n\t\tdrinkfew(0, 0, 'M');\n\t\tdrinkfew(0, 0, 'H');\n\t }\n\t else\n\t {\n\t\tdrinkfew(0, 0, $player->autodrink);\n\t }\n\t }\n if ($title == 'Arena Walk') \n {\n $smarty -> assign (\"Message\", \"</ul><ul><li><b>\".B_OPTIONS.\"</a><br /></li></ul>\");\n $smarty -> display ('error1.tpl');\n }\n $db -> Execute(\"UPDATE players SET hp=\".$player -> hp.\", fight=0, bless='', blessval=0 WHERE id=\".$player -> id);\n\tif (isset($_SESSION['razy']))\n\t {\n\t unset($_SESSION['razy']);\n\t }\n unset($_SESSION['exhaust'], $_SESSION['round'], $_SESSION['points'], $_SESSION['dodge']);\n for ($k = 0; $k < $amount; $k ++) \n {\n $strIndex = \"mon\".$k;\n unset($_SESSION[$strIndex]);\n }\n }\n $myczaro -> Close();\n}",
"public function allow_inventory_access(){\n if (!empty($this->flags['player_battle'])){ return false; }\n elseif (!empty($this->flags['challenge_battle'])){ return false; }\n return true;\n }",
"function checkForSpecialAchievements($player_id, $wonder_included) {\n $achievements_to_test = $wonder_included ? array(105, 106, 107, 108, 109) : array(105, 106, 108, 109);\n $end_of_game = false;\n \n \n foreach ($achievements_to_test as $achievement_id) {\n $achievement = self::getCardInfo($achievement_id);\n if ($achievement['owner'] != 0) { // Somebody has already claimed that achievement\n // So it's not claimable anymore\n continue;\n }\n \n switch ($achievement_id) {\n case 105: // Empire: three or more icons of all six types\n $eligible = true;\n $ressource_counts = self::getPlayerRessourceCounts($player_id);\n foreach ($ressource_counts as $icon => $count) {\n if ($count < 3) { // There are less than 3 icons\n $eligible = false;\n break;\n }\n }\n break;\n case 106: // Monument: tuck 6 cards or score 6 cards\n $flags = self::getFlagsForMonument($player_id);\n $eligible = $flags['number_of_tucked_cards'] >= 6 || $flags['number_of_scored_cards'] >= 6;\n break;\n case 107: // Wonder: 5 colors, each being splayed right or up\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n if (self::getCurrentSplayDirection($player_id, $color) < 2) { // This color is missing, unsplayed or splayed left\n $eligible = false;\n };\n }\n break;\n case 108: // World: 12 or more visible clocks (icon 6) on the board \n $eligible = self::getPlayerSingleRessourceCount($player_id, 6) >= 12;\n break;\n case 109: // Universe: Five top cards, each being of value 8 or more\n $eligible = true;\n for($color = 0; $color < 5 ; $color++) {\n $top_card = self::getTopCardOnBoard($player_id, $color);\n if ($top_card === null || $top_card['age'] < 8) { // This color is missing or its top card has value less than 8\n $eligible = false;\n }\n }\n break;\n default:\n break;\n }\n \n if ($eligible) { // The player meet the conditions to achieve\n try {\n self::transferCardFromTo($achievement, $player_id, 'achievements');\n }\n catch (EndOfGame $e) { // End of game has been detected\n self::trace('EOG bubbled but suspended from self::checkForSpecialAchievements');\n $end_of_game = true;\n continue; // But the other achievements must be checked as well before ending\n }\n }\n }\n // All special achievements have been checked\n if ($end_of_game) { // End of game has been detected\n self::trace('EOG bubbled from self::checkForSpecialAchievements');\n throw $e; // Re-throw the flag\n }\n }",
"public function calculateRound() {\n Yii::trace(\"calculateRound\");\n\n $this->nextRound();\n $this->onBeforeRound(new BattleEvent($this));\n\n /**\n * Resolve actions\n * Action calls expects $battle, $hero, $enemy, from the action's user \n * point of view\n * If actions happen in the same battle phase, RNG decides who acts \n * first. Otherwise, actions resolve in the order of the battle phases\n */\n if($this->combatantAAction->battlePhase == $this->combatantBAction->battlePhase) {\n $rand = mt_rand(0,100);\n if($rand >= 50) {\n $first = \"combatantA\";\n } else {\n $first = \"combatantB\";\n }\n } elseif ($this->combatantAAction->battlePhase == \"block\") {\n $first = \"combatantA\";\n } elseif ($this->combatantBAction->battlePhase == \"block\") {\n $first = \"combatantB\";\n } elseif ($this->combatantAAction->battlePhase == \"defense\") {\n $first = \"combatantA\";\n } elseif ($this->combatantBAction->battlePhase == \"defense\") {\n $first = \"combatantB\";\n }\n $second = ($first == \"combatantA\" ? \"combatantB\" : \"combatantA\");\n \n // First action\n $event = new BattleActionEvent($this, \n $this->{$first}, $this->{$second},\n $this->{$first . \"Action\"}\n );\n $this->onBeforeAction($event);\n $this->{$first . \"Action\"}->call(\"resolve\", $this, $this->{$first}, $this->{$second});\n $this->onAfterAction($event);\n \n // Second action\n $event = new BattleActionEvent($this, \n $this->{$second}, $this->{$first}, \n $this->{$second . \"Action\"}\n );\n $this->onBeforeAction($event);\n $this->{$second . \"Action\"}->call(\"resolve\", $this, $this->{$second}, $this->{$first});\n $this->onAfterAction($event);\n\n \n // Clean up\n $this->combatantAAction = null;\n $this->combatantBAction = null;\n\n /*\n * Check if fight is over\n */\n if($this->combatantA->hp <= 0 || $this->combatantB->hp <= 0) {\n $this->stop();\n } else {\n $this->onAfterRound(new BattleEvent($this));\n\n $this->combatantA->save();\n if($this->type == \"pvp\") {\n $this->combatantB->save();\n }\n $this->saveObjectState();\n }\n }",
"function doAttack(&$objSrcUser, &$objTrgUser, $arrSentArmy)\n{\n $srcKd = $objSrcUser->get_stat(ALLIANCE);\n $trgKd = $objTrgUser->get_stat(ALLIANCE);\n $strSrcRace = $objSrcUser->get_stat(RACE);\n $iSrcLand = $objSrcUser->get_build(LAND);\n $arrTrgBuilds = $objTrgUser->get_builds();\n $gains = pow(($arrTrgBuilds[LAND] / $iSrcLand), 2) + ($arrTrgBuilds[LAND] / ($iSrcLand * 3));\n $gains = min ($gains,1);\n\n $quick_gains = 0.01 * $gains; // 1% Land Gain\n\n if ($strSrcRace == \"Oleg Hai\")\n $quick_gains = $quick_gains * 1.3;\n\n //==========================================================================\n // Calculate Acre Gains\n //==========================================================================\n include_once('inc/functions/build.php');\n $arrBuildVars = getBuildingVariables($objTrgUser->get_stat(RACE));\n $arrBuildVars = $arrBuildVars['variables'];\n $max_build = $objTrgUser->get_number_build_types();\n $total_grab = 0;\n\n for($i = 1; $i <= $max_build; $i++)\n {\n $strVar = trim($arrBuildVars[$i]);\n $acres_won[$strVar] = round($arrTrgBuilds[$strVar]* ($quick_gains));\n $buildings = $objTrgUser->get_build($strVar);\n $land = $objTrgUser->get_build(LAND);\n $arrBuilds = array ($strVar => $buildings - $acres_won[$strVar], LAND => $land - $acres_won[$strVar] );\n $objTrgUser->set_builds($arrBuilds);\n $total_grab = $total_grab + $acres_won[$strVar];\n }\n\n // Explored\n $explore_gains = 0.2;\n $acres_explored = round($total_grab * $explore_gains);\n $land = $objSrcUser->get_build(LAND);\n $objSrcUser->set_build(LAND, ($land + $acres_explored));\n\n\n //==========================================================================\n // Calculate Citizens Killed\n //==========================================================================\n $trgCits = $objTrgUser->get_pop(CITIZENS);\n\n $max_kill = $trgCits * 0.2;\n $trgRace = $objTrgUser->get_stat(RACE);\n\n if ($max_kill < ($arrTrgBuilds[LAND] * 3) && $trgRace != \"Dragon\")\n $max_kill = $arrTrgBuilds[LAND] * 3;\n elseif ($max_kill < ($arrTrgBuilds[LAND] * 2) && $trgRace == \"Dragon\")\n $max_kill = $arrTrgBuilds[LAND] * 2;\n\n // War effects on max kill\n include_once(\"inc/functions/war.php\");\n $modifier = war_alli($srcKd, $trgKd);\n if ($modifier == 2)\n $max_kill = $max_kill * 1.2;\n\n // Martel: small bug fixed, $arrTrgBuilds not $arrTrgBuild\n $wallsPercent = ($arrTrgBuilds[WALLS] * 100) / $arrTrgBuilds[LAND];\n if ($wallsPercent > 20)\n $wallsPercent = 20;\n\n // frost: age 18, each % walls shelters 2% citizen\n for ($y = 1; $y <= $wallsPercent; $y++)\n $max_kill *= 0.98;\n\n // Max citizens to kill == citizens available\n $max_kill = round($max_kill);\n if ($max_kill > $trgCits)\n $max_kill = $trgCits;\n\n if ($max_kill > 0)\n {\n $intCitizens_alive = $trgCits - $max_kill;\n $objTrgUser->set_pop(CITIZENS, $intCitizens_alive);\n }\n else\n $max_kill = 0;\n\n // Let's see if we killed the tribe\n include_once('inc/functions/generic.php');\n obj_test_for_kill($objTrgUser, $objSrcUser);\n\n //==========================================================================\n // Calculate Cash Gains and Fame\n //==========================================================================\n $trgMoney = $objTrgUser->get_good(MONEY);\n\n $mod = 1;\n $stolen_crowns = round($trgMoney * 0.04);\n\n if ($arrTrgBuilds[LAND] > $iSrcLand)\n $fame_win = round($total_grab * 1.0);\n elseif ($arrTrgBuilds[LAND] < ($iSrcLand * 0.7))\n {\n $fame_win = round(-$total_grab * 1.0);\n $mod = ($arrTrgBuilds[LAND] * 1.3) / $iSrcLand;\n }\n else\n $fame_win = round($total_grab * 1.2);\n\n if ($mod < 0.7)\n $mod = 0.7;\n\n $max_crowns = round($arrTrgBuilds[LAND] * 500);\n\n $stolen_crowns = min(round($stolen_crowns * $mod), round($max_crowns));\n\n $objTrgUser->set_good(MONEY, $trgMoney - $stolen_crowns);\n $money = $objSrcUser->get_good(MONEY);\n $objSrcUser->set_good(MONEY, $money + $stolen_crowns);\n\n //==========================================================================\n // Return time\n //==========================================================================\n $wait = 4; // 4 hour attack time\n\n if ($strSrcRace == \"Raven\")\n $wait = 1;\n elseif ($strSrcRace == \"Mori Hai\" || $strSrcRace == \"Dragon\")\n $wait = 3;\n\n $landtime = 'land_t' . $wait;\n $objSrcUser->set_user_info(NEXT_ATTACK, $wait);\n\n //==========================================================================\n // Add land to incoming\n //==========================================================================\n if ($total_grab > 0)\n {\n $old_land = $objSrcUser->get_build($landtime);\n $objSrcUser->set_build($landtime, $total_grab + $old_land);\n }\n\n //==========================================================================\n // Calculate Fame Gains\n //==========================================================================\n\n // War effects\n $objSrcAlliance = $objSrcUser->get_alliance();\n require_once('inc/functions/war.php');\n if (checkWarBetween($objSrcAlliance, $trgKd))\n {\n // Update land counter in new war system March 06, 2008 Martel\n $iNeeded = $objSrcAlliance->get_war('land_needed');\n $objSrcAlliance->set_war('land_needed', max(0, $iNeeded - $total_grab));\n\n // War effects on fame\n $fame_win *= 1.2;\n }\n\n // Cannot take more fame than what the target has\n $fame_win = round($fame_win);\n $target_fame = $objTrgUser->get_stat(FAME);\n if ($fame_win > $target_fame)\n $fame_win = $target_fame;\n\n $fame1 = $objSrcUser->get_stat(FAME) + $fame_win;\n $fame2 = $target_fame - $fame_win;\n $objSrcUser->set_stat(FAME, $fame1);\n $objTrgUser->set_stat(FAME, $fame2);\n\n //==========================================================================\n\n $arrResults['gained_acres'] = $total_grab;\n $arrResults['explored_acres'] = $acres_explored;\n $arrResults['gained_fame'] = $fame_win;\n $arrResults['gained_crowns'] = $stolen_crowns;\n $arrResults['killed_citizens'] = $max_kill;\n\n return $arrResults;\n}",
"public function hasPoisonAttack(){\r\n return $this->_has(18);\r\n }",
"public function isHit()\n {\n return false;\n }",
"public function attachToBattle($battle) {\n $battle->onAfterRound = array($this, 'reactToOnAfterRound');\n if($this->blocks) {\n $battle->onBeforeAction = array($this, 'reactToOnBeforeAction');\n }\n }",
"public function hasPoisonAttack(){\r\n return $this->_has(15);\r\n }",
"function wac_allowed_bids(){\n\t$allowed = wac_setting_field('allowed_bids');\n\treturn (empty($allowed) || $allowed <= 0)? 0 : $allowed;\n}",
"function __block_caps( $caps, $cap )\n\t{\n\t if ( $cap === 'install_themes' )\n\t $caps[] = 'do_not_allow';\n\t return $caps;\n\t}",
"public static function item_function_stat_booster($objects){\n\n // Extract all objects into the current scope\n extract($objects);\n\n // Target this robot's self and print item use text\n $this_ability->target_options_update(array(\n 'frame' => 'summon',\n 'success' => array(0, 40, -2, 99,\n $this_player->print_player_name().' uses an item from the inventory… <br />'.\n $target_robot->print_robot_name().' is given the '.$this_ability->print_ability_name().'!'\n )\n ));\n $target_robot->trigger_target($target_robot, $this_ability);\n\n // Define the various object words used for each boost type\n $stat_boost_subjects = array('attack' => 'weapons', 'defense' => 'shields', 'speed' => 'mobility');\n $stat_boost_verbs = array('weapons' => 'were', 'shields' => 'were', 'mobility' => 'was');\n\n // Define the various effect words used for each item size\n if (strstr($this_ability->ability_token, 'pellet')){ $boost_effect_word = 'a bit'; }\n elseif (strstr($this_ability->ability_token, 'capsule')){ $boost_effect_word = 'a lot'; }\n\n // Define the stat(s) this ability will boost (super items boost all)\n $stat_boost_tokens = array();\n if (strstr($this_ability->ability_token, 'super')){ $stat_boost_tokens = array('attack', 'defense', 'speed'); }\n else { $stat_boost_tokens[] = $this_ability->ability_type; }\n\n // Loop through each stat boost token and raise it\n foreach ($stat_boost_tokens AS $stat_token){\n\n // Collect the object word for this stat type\n $stat_name = ucfirst($stat_token);\n $stat_subject = $stat_boost_subjects[$stat_token];\n $stat_verb = $stat_boost_verbs[$stat_subject];\n $stat_base_prop = 'robot_base_'.$stat_token;\n $stat_max_prop = 'robot_max_'.$stat_token;\n\n // Increase this robot's in-battle stat\n $this_ability->recovery_options_update(array(\n 'kind' => $stat_token,\n 'percent' => true,\n 'modifiers' => false,\n 'frame' => 'taunt',\n 'success' => array(9, 0, 0, -9999, $target_robot->print_robot_name().''s '.$stat_subject.' powered up '.$boost_effect_word.'! '.mmrpg_battle::random_positive_word()),\n 'failure' => array(9, 0, 0, -9999, $target_robot->print_robot_name().''s '.$stat_subject.''.$stat_verb.' not affected… '.mmrpg_battle::random_negative_word())\n ));\n $stat_recovery_amount = ceil($target_robot->$stat_base_prop * ($this_ability->ability_recovery / 100));\n $target_robot->trigger_recovery($target_robot, $this_ability, $stat_recovery_amount);\n\n // Only update the session of the ability was successful\n if ($this_ability->ability_results['this_result'] == 'success' && $this_ability->ability_results['total_amount'] > 0){\n\n // Create the stat boost variable if it doesn't already exist in the session\n if (!isset($_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]['robot_'.$stat_token])){\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]['robot_'.$stat_token] = 0;\n }\n\n // Collect this robot's stat calculations\n $robot_info = mmrpg_robot::get_index_info($target_robot->robot_token);\n $robot_stats = mmrpg_robot::calculate_stat_values(\n $target_robot->robot_level,\n $robot_info,\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]\n );\n\n // If this robot is not already over their stat limit, increment pending boosts\n if ($target_player->player_side == 'left' && $robot_stats[$stat_token]['bonus'] < $robot_stats[$stat_token]['bonus_max']){\n\n // Calculate the actual amount to permanently boost in case it goes over max\n $stat_boost_amount = $this_ability->ability_results['total_amount'];\n if (($robot_stats[$stat_token]['bonus'] + $stat_boost_amount) > $robot_stats[$stat_token]['bonus_max']){\n $stat_boost_amount = $robot_stats[$stat_token]['bonus_max'] - $robot_stats[$stat_token]['bonus'];\n }\n\n // Only update session variables if the boost is not empty\n if (!empty($stat_boost_amount)){\n\n // Update the session variables with the incremented stat boost\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]['robot_'.$stat_token] += $stat_boost_amount;\n $target_robot->$stat_base_prop += $stat_boost_amount;\n $target_robot->update_session();\n\n // Recalculate robot stats with new values\n $robot_stats = mmrpg_robot::calculate_stat_values(\n $target_robot->robot_level,\n $robot_info,\n $_SESSION['GAME']['values']['battle_rewards'][$target_player->player_token]['player_robots'][$target_robot->robot_token]\n );\n\n // Check if this robot has now reached max stats\n if ($robot_stats[$stat_token]['bonus'] >= $robot_stats[$stat_token]['bonus_max']){\n // Print the success message for reaching max stats for this robot\n $target_robot->robot_frame = 'victory';\n $target_robot->update_session();\n $this_battle->events_create($target_robot, false,\n \"{$target_robot->robot_name}'s {$stat_name} Stat\",\n $target_robot->print_robot_name().'\\'s '.$stat_token.' stat bonuses have been raised to the max of '.\n '<span class=\"robot_type robot_type_'.$stat_token.'\">'.$robot_stats[$stat_token]['max'].' ★</span>!<br />'.\n 'Congratulations and '.lcfirst(mmrpg_battle::random_victory_quote()).' '\n );\n $target_robot->robot_frame = 'base';\n $target_robot->update_session();\n }\n\n }\n\n }\n\n }\n\n\n }\n\n // Return true on success\n return true;\n\n }",
"private function disableBlocks()\n {\n // Check dates\n if ($this->getActionDate('statusstaticblocksmanager/statusstaticblocksmanager_group/disablestartdate', 'statusstaticblocksmanager/statusstaticblocksmanager_group/disablestarttime')) {\n\n Mage::log('Deactive blocks', null, 'wapone.log');\n\n //Blocks list to deactive\n $blocks_to_disable = $this->getBlocks('statusstaticblocksmanager/statusstaticblocksmanager_group/blockstodisable');\n\n if (count($blocks_to_disable) > 0) {\n for ($row = 0; $row < count($blocks_to_disable); $row++) {\n Mage::log('Block da disattivare:'.$blocks_to_disable[$row], null, 'wapone.log');\n Mage::getModel('cms/block')->load($blocks_to_disable[$row])\n ->setData('is_active', self::DEACTIVE)\n ->save();\n }\n /*** If you are using Letsi FPC module uncomment line below ***/\n //Mage::getSingleton('fpc/fpc')->clean();\n /*** In any case, you have to flush the cache, if you're using one ***/\n\n Mage::getConfig()->saveConfig('statusstaticblocksmanager/statusstaticblocksmanager_group/module_disabling_status', '0', 'default', 0);\n }\n }\n }",
"public function isBlockable()\n {\n if ($this->_hasVar('user_blockable')) {\n return (boolean) $this->_getVar('user_blockable');\n } else {\n return true;\n }\n }",
"function attackEnemy($enemy_id, $combatStyle, $weapon) {\n\t\t$enemy = new Obj($this->mysqli, $enemy_id);\n\t\t$enemy->getBasicData();\n\t\t$enemy->getName();\n\t\t$result_str = \"\";\n\t\t\n\t\t$bmap = array(\n\t\t\t8\t => 3,\n\t\t\t9\t => 3,\n\t\t\t11\t => 3,\n\t\t\t33\t => 3,\n\t\t\t43\t => 3,\n\t\t\t50\t => 3,\n\t\t\t51\t => 4,\n\t\t\t52\t => 4,\n\t\t\t59\t => 4,\n\t\t\t60\t => 4,\n\t\t\t61\t => 4,\n\t\t\t62\t => 3,\n\t\t\t63\t => 3,\n\t\t\t64\t => 3,\n\t\t\t65\t => 3,\n\t\t\t69\t => 3,\n\t\t\t469\t => 3,\n\t\t\t470\t => 3,\n\t\t\t471\t => 3,\n\t\t\t472\t => 3,\n\t\t\t473\t => 3,\n\t\t\t474\t => 3,\n\t\t\t475\t => 3,\n\t\t\t476\t => 3,\n\t\t\t477\t => 3,\n\t\t\t478\t => 3,\n\t\t\t479\t => 0,\n\t\t\t480\t => 0,\n\t\t\t481\t => 0,\n\t\t\t482\t => 0,\n\t\t\t483\t => 0,\n\t\t\t484\t => 2,\n\t\t\t485\t => 2,\n\t\t\t486\t => 2,\n\t\t\t487\t => 2,\n\t\t\t19\t => 1,\n\t\t\t26\t => 1,\n\t\t\t28\t => 1,\n\t\t\t25\t => 1,\n\t\t\t23\t => 1,\n\t\t\t21\t => 1\n\t\t\t);//to-do: add more target types\n\t\t$pronoun = $this->getPronoun();\n\t\t$wpn = new Obj($this->mysqli, $weapon);\n\t\t$wpn->getBasicData();\n\t\t$wpn->getName();\n\t\t\n\t\tif ($weapon==0) $wpn->name = \"fist\";\n\t\t\n\t\t$info = $this->bodyPartTargeter(10, $bmap[$enemy->preset], $combatStyle);//later on falter will depend on skills\n\t\tif (!$info) {\n\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER tries to hit #VICTIM with $pronoun \" . $wpn->name . \" but misses.\";\n\t\t\telse $result_str = \"#ATTACKER tries to hit \" . $enemy->name . \" with $pronoun \" . $wpn->name . \" but misses.\";\n\t\t\t$combat = $this->checkCurrentCombat();\n\t\t\t$this->recordCombatEvent($combat, $result_str, $this->bodyId, $enemy->uid, 1);\n\t\t\treturn false;\n\t\t}//You missed\n\t\t\n\t\tif ($weapon==0) {\n\t\t\t$severing = 0;\n\t\t\t$piercing = 0;\n\t\t\t$crushing = 5;\n\t\t}\n\t\telse {\n\t\t\t$severing = $wpn->getAttribute(56);\n\t\t\t$piercing = $wpn->getAttribute(57);\n\t\t\t$crushing = $wpn->getAttribute(58);\n\t\t}\n\t\t$broken = 0;\n\t\t$efficiency = rand(50,125);\n\t\tif ($efficiency==125&&rand(0,99)==99) $efficiency = 150;\n\t\tif ($severing>0&&$severing>$crushing&&$severing>$piercing) {\n\t\t\t$severing = round($severing*$efficiency/100);\n\t\t\t$bleed_type = 1;\n\t\t\t$bleed_level = round($severing/30);\n\t\t\tif ($info[0][\"sever\"]<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER slices through #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", severing it from the rest of the body.\";\n\t\t\t\telse $result_str = \"#ATTACKER slices through \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", severing it from the rest of the body.\";\n\t\t\t\t$depth = 9;\n\t\t\t\tif ($bleed_level<3) $bleed_level = 3;\n\t\t\t\tif ($info[0][\"id\"]<4) $info[1] = true;//instakill\n\t\t\t\tif (ibetween($info[0][\"id\"], 18, 27)) $info[2] = $true;//crippled\n\t\t\t\t$broken = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.90)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER almost severs #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \" so that it''s hanging by a shred.\";\n\t\t\t\telse $result_str = \"#ATTACKER almost severs \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \" so that it''s hanging by a shred.\";\n\t\t\t\t$depth = 8;\n\t\t\t\tif ($bleed_level<3) $bleed_level = 3;\n\t\t\t\tif (ibetween($info[0][\"id\"], 18, 27)) $info[2] = $true;//crippled\n\t\t\t\t$broken = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.55)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER half severs #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER half severs \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 7;\n\t\t\t\tif ($bleed_level<3) $bleed_level = 3;\n\t\t\t\tif (ibetween($info[0][\"id\"], 18, 27)) $info[2] = $true;//crippled\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.40)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER cuts a deep gash in #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name;\n\t\t\t\telse $result_str = \"#ATTACKER cuts a deep gash in \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name;\n\t\t\t\tif ($info[0][\"bone\"]<0&&$info[0][\"bone\"]*-1<=$severing) {\n\t\t\t\t\t$result_str .= \" exposing bone.\";\n\t\t\t\t\t$depth = 5;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result_str .= \".\";\n\t\t\t\t\t$depth = 4;\n\t\t\t\t}\n\t\t\t\tif ($bleed_level<2) $bleed_level = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.20)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER cuts a considerable gash in #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name;\n\t\t\t\telse $result_str = \"#ATTACKER cuts a considerable gash in \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name;\n\t\t\t\tif ($info[0][\"bone\"]<0&&$info[0][\"bone\"]*-1<=$severing) {\n\t\t\t\t\t$result_str .= \", exposing bone.\";\n\t\t\t\t\t$depth = 5;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result_str .= \", reaching into the muscle.\";\n\t\t\t\t\t$depth = 4;\n\t\t\t\t}\n\t\t\t\tif ($bleed_level<2) $bleed_level = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.10)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER slashs a wound in #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", reaching into the subcutaneous fat layer.\";\n\t\t\t\telse $result_str = \"#ATTACKER slashs a wound in \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", reaching into the subcutaneous fat layer.\";\n\t\t\t\t$depth = 3;\n\t\t\t}\n\t\t\telse if (($info[0][\"sever\"]*0.05)<=$severing&&$info[0][\"sever\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER slices a shallow wound in #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER slices a shallow wound in \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 2;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER slashes #VICTIM''s \" . $info[0][\"name\"] . \" superficially with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER slashes \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" superficially with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 1;\n\t\t\t}\n\t\t}\n\t\telse if ($crushing>0&&$crushing>$piercing) {\n\t\t\t$crushing = round($crushing*$efficiency/100);\n\t\t\t$bleed_type = 2;\n\t\t\tif ($info[0][\"crush\"]<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER crushes #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER crushes \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 8;\n\t\t\t\t$bleed_level = 6;\n\t\t\t\t$broken = 4;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.75)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER badly breaks #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER badly breaks \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 7;\n\t\t\t\t$bleed_level = 5;\n\t\t\t\t$broken = 3;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.50)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER fractures #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER fractures \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 7;\n\t\t\t\t$bleed_level = 5;\n\t\t\t\t$broken = 2;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.40)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER smashes #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", causing serious internal bleeding.\";\n\t\t\t\telse $result_str = \"#ATTACKER smashes \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", causing serious internal bleeding.\";\n\t\t\t\t$depth = 5;\n\t\t\t\t$bleed_level = 4;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.20)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER smashes #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which will certainly cause a big bruise.\";\n\t\t\t\telse $result_str = \"#ATTACKER smashes \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which will certainly cause a big bruise.\";\n\t\t\t\t$depth = 4;\n\t\t\t\t$bleed_level = 3;\n\t\t\t}\n\t\t\telse if (($info[0][\"crush\"]*0.10)<=$crushing&&$info[0][\"crush\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER hit #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which is going to leave a bruise.\";\n\t\t\t\telse $result_str = \"#ATTACKER hit \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which is going to leave a bruise.\";\n\t\t\t\t$depth = 3;\n\t\t\t\t$bleed_level = 2;\n\t\t\t}\n\t\t\telse if ($info[0][\"crush\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER hits #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which might cause a small bruise.\";\n\t\t\t\telse $result_str = \"#ATTACKER hits \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which might cause a small bruise.\";\n\t\t\t\t$depth = 1;\n\t\t\t\t$bleed_level = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER hits #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which is likely to cause slight internal bleeding in the surrounding tissues.\";\n\t\t\t\telse $result_str = \"#ATTACKER hits \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \", which is likely to cause slight internal bleeding in the surrounding tissues.\";\n\t\t\t\t$depth = 2;\n\t\t\t\t$bleed_level = 2;\n\t\t\t}\n\t\t\tif ($piercing>0) {\n\t\t\t\t$result_str .= \"In addition, the weapon causes some external wounds.\";\n\t\t\t\t$bleed_type = 3;\n\t\t\t}\n\t\t}\n\t\telse if ($piercing>0) {\n\t\t\t$piercing = round($piercing*$efficiency/100);\n\t\t\t$bleed_type = 1;\n\t\t\tif ($info[0][\"pierce\"]<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER pierces #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER pierces \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 6;\n\t\t\t\t$bleed_level = 6;\n\t\t\t\tif ((strpos($info[0][\"name\"], 'artery') !== false)||(strpos($info[0][\"name\"], 'heart') !== false)) $bleed_level = 10;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.50)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER pierces #VICTIM''s \" . $info[0][\"name\"] . \" halfway with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER pierces \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" halfway with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 4;\n\t\t\t\t$bleed_level = 5;\n\t\t\t\tif (strpos($info[0][\"name\"], 'heart') !== false) $bleed_level = 9;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.40)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER stabs #VICTIM''s \" . $info[0][\"name\"] . \" deeply with $pronoun \" . $wpn->name;\n\t\t\t\telse $result_str = \"#ATTACKER stabs \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" deeply with $pronoun \" . $wpn->name;\n\t\t\t\tif ($info[0][\"bone\"]<0&&$info[0][\"bone\"]*-1<=$piercing) {\n\t\t\t\t\t$result_str .= \", colliding with bone.</p>\";\n\t\t\t\t\t$depth = 5;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t$result_str .= \".\";\n\t\t\t\t\t$depth = 4;\n\t\t\t\t}\n\t\t\t\t$bleed_level = 4;\n\t\t\t\tif (strpos($info[0][\"name\"], 'heart') !== false) $bleed_level = 8;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.2)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER stabs #VICTIM''s \" . $info[0][\"name\"] . \" considerably with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER stabs \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" considerably with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 3;\n\t\t\t\t$bleed_level = 3;\n\t\t\t\tif (strpos($info[0][\"name\"], 'heart') !== false) $bleed_level = 7;\n\t\t\t}\n\t\t\telse if (($info[0][\"pierce\"]*0.1)<=$piercing&&$info[0][\"pierce\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER wounds #VICTIM''s \" . $info[0][\"name\"] . \" superficially with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER wounds \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" superficially with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 2;\n\t\t\t\t$bleed_level = 2;\n\t\t\t}\n\t\t\telse if ($info[0][\"pierce\"]>0) {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER pokes #VICTIM''s \" . $info[0][\"name\"] . \" superficially with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER pokes \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" superficially with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 1;\n\t\t\t\t$bleed_level = 1;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER nicks #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\telse $result_str = \"#ATTACKER nicks \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \".\";\n\t\t\t\t$depth = 0;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif ($enemy->type==2) $result_str = \"#ATTACKER bumps #VICTIM''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \" but it doesn't cause any damage.\";\n\t\t\telse $result_str = \"#ATTACKER bumps \" . $enemy->name . \"''s \" . $info[0][\"name\"] . \" with $pronoun \" . $wpn->name . \" but it doesn't cause any damage.\";//this shouldn't actually be possible because it shouldn't allow picking weapons that aren't weapons\n\t\t}\n\t\t\n\t\tif (isset($bleed_type)&&isset($bleed_level)&&isset($depth)) {\n\t\t\t$curTime = new Time($this->mysqli);\n\t\t\t$sql = \"INSERT INTO `wounds` (`objectFK`, `bodypart`, `depth`, `bleed_level`, `bleed_type`, `broken`, `datetime`, `minute`) VALUES ('$enemy->uid', '\" . $info[0][\"id\"] . \"', '$depth', '$bleed_level', '$bleed_type', '$broken', '\" . $curTime->dateTime . \"', '\" . $curTime->minute . \"')\";\n\t\t\t$this->mysqli->query($sql);\n\t\t\t$result = $this->mysqli->insert_id;\n\t\t\tif (!$result) {\n\t\t\t\t//para(\"Something went wrong and the wound couldn't be recorded.\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif ($info[2]) {\n\t\t\t$result_str .= \" The attack cripples the target.\";\n\t\t\t$enemy->setAttribute(60, 1);\n\t\t\t$enemy->setAttribute(61, 1);//sprawled\n\t\t}\n\t\tif ($info[3]) {\n\t\t\t$result_str .= \" The target seems disoriented.\";\n\t\t\t$enemy->setAttribute(59, 1);//concussion\n\t\t}\n\t\tif ($info[1]) $result_str .= \" There''s no way they''re going to survive that.\";\n\t\t\n\t\t//para($result_str);\n\t\t\n\t\t$combat = $this->checkCurrentCombat();\n\t\t\n\t\tif ($enemy->type==2) $res = $this->recordCombatEvent($combat, $result_str, $this->bodyId, $enemy->uid, 3);\n\t\telse $res = $this->recordCombatEvent($combat, $result_str, $this->bodyId, $enemy->uid, 1);\n\t\tif (is_array($res)) return $res;\n\t\t\n\t\treturn 100;\n\t}",
"public function hasPoisonDefense(){\r\n return $this->_has(19);\r\n }",
"public function getIsBlocked();",
"function AllowGutenbergBlocks(){\n $AllowedBlocks = array_merge($this->WPgutenberg_AllowedBlocks, $this->WPgutenberg_CustomAllowedBlocks);\n return $AllowedBlocks;\n }",
"function execute($modifier = null)\n {\n $owner = $this->getOwner();\n $target = $this->getTarget();\n\n $originalDamageToDeal = $owner->getStrength() - $target->getDefence();\n\n if($originalDamageToDeal < 0 ) {\n $originalDamageToDeal = 0;\n }\n\n $damageToDeal = $originalDamageToDeal;\n\n $defenseSkills = $target->getDefenceSkills();\n\n foreach ($defenseSkills as $defenseSkill) {\n if(get_class($defenseSkill) != get_class($this)) {\n $defenseSkill->setOwner($target);\n $defenseSkill->setTarget($owner);\n $damageToDeal = $defenseSkill->execute($damageToDeal);\n }\n }\n\n if($target->isLucky()) {\n UI::actionMessage(\" {$this->getTarget()->getName()} got lucky. {$this->getOwner()->getName()} missed \");\n $damageToDeal = 0;\n } else {\n UI::actionMessage(\" {$this->getOwner()->getName()} hit {$this->getTarget()->getName()} for {$damageToDeal} damage\");\n }\n\n $targetOriginalHealth = $target->getHealth();\n $targetNewHealth = $targetOriginalHealth - $damageToDeal;\n\n\n\n $target->setHealth($targetNewHealth);\n\n }",
"public function isHardBounce() : bool {\n if(!$this->isBounced()) {\n return false;\n }\n\n $Event = $this->getEvent(WebhookEvent::EVENT_BOUNCE);\n return\n $Event &&\n isset($Event->data['hard_bounce']) &&\n $Event->data['hard_bounce'] === true;\n }",
"public function testCanAttack()\n {\n $optimalSkillSelector = new OptimalSkillSelectorService();\n $this->entity->setOptimalSkillSelector($optimalSkillSelector);\n\n $stats = new PlayerStats();\n $stats->setStrength(30);\n\n $skillCollection = new SkillCollection();\n $attackSkill = AttackSkill::attachTo($this->entity);\n $skillCollection->add($attackSkill);\n $this->entity->setSkills($skillCollection);\n\n $broadcaster = $this->getMockBuilder(MessageBroadcaster::class)\n ->setMethods(['broadcast'])->getMock();\n $broadcaster->method('broadcast')->willReturn('');\n $this->entity->setBroadcaster($broadcaster);\n $attackSkill->setBroadcaster($broadcaster);\n\n $this->entity->setStats($stats);\n $strikes = $this->entity->attack();\n $strike = reset(reset($strikes));\n $this->assertEquals(30, $strike->getPower());\n }",
"public function testBlocking()\n {\n $this->module->enableBlockingEmail = true;\n\n $this->specify(\"we have block user\", function () {\n /** @var User $user */\n //$user = $this->getFixture('user')->getModel('active');\n $user = $this->tester->grabFixture('users', 'active');\n expect(\"we can block user\", $user->block())->true();\n $this->tester->seeEmailIsSent();\n });\n\n $this->specify(\"we have block already blocked user\", function () {\n /** @var User $user */\n $user = $this->tester->grabFixture('users', 'blocked');\n expect(\"we can't block already blocked user\", $user->block())->false();\n });\n\n $this->specify(\"we have block unconfirmed user\", function () {\n /** @var User $user */\n $user = $this->tester->grabFixture('users', 'unconfirmed');\n expect(\"we can't block unconfirmed user\", $user->block())->false();\n });\n\n $this->module->enableUnblockingEmail = true;\n $this->specify(\"we have unblock blocked user\", function () {\n /** @var User $user */\n $user = $this->tester->grabFixture('users', 'blocked');\n expect(\"we can unblock blocked user\", $user->unblock())->true();\n $this->tester->seeEmailIsSent();\n });\n\n $this->specify(\"we have unblock not blocked user\", function () {\n /** @var User $user */\n $user = $this->tester->grabFixture('users', 'unconfirmed');\n expect(\"we can't unblock not blocked user\", $user->unblock())->false();\n $this->tester->dontSeeEmailIsSent();\n });\n\n $this->specify(\"we have unblock user override mail setting\", function () {\n /** @var User $user */\n $user = $this->tester->grabFixture('users', 'active');\n expect(\"we can unblock user\", $user->unblock(false))->true();\n $this->tester->dontSeeEmailIsSent();\n });\n\n $this->specify(\"we have block user override global email setting\", function () {\n /** @var User $user */\n $user = $this->tester->grabFixture('users', 'active');\n expect(\"we can block user\", $user->block(false))->true();\n $this->tester->dontSeeEmailIsSent();\n });\n }",
"public function hasDamageaddper(){\r\n return $this->_has(30);\r\n }",
"function ozh_dlb_skip_if_bot() {\n return ozh_dlb_is_bot();\n // if anything but false is returned, functions using the two shunt_* filters will be short-circuited\n}",
"function stInterDogmaEffect() { $current_effect_type = self::getGameStateValue('current_effect_type');\n \n // Indicate the potential new (non-demand) dogma to come\n if ($current_effect_type == 0) { // I demand dogma : there is only one for this version of this game\n $current_effect_number = 1; // Switch on the first non-demand dogma, if exists\n }\n else {\n $current_effect_number = self::getGameStateValue('current_effect_number') + 1; // Next non-demand dogma, if exists\n }\n \n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n \n // Check whether this new dogma exists actually or not\n if ($current_effect_number > 3 || $card['non_demand_effect_'.$current_effect_number] === null) {\n // No card has more than 3 non-demand dogma => there is no more effect\n // or the next non-demand-dogma effect is not defined\n \n $sharing_bonus = self::getGameStateValue('sharing_bonus');\n $launcher_id = self::getGameStateValue('active_player');\n \n // Stats\n $i_demand_effects = false;\n $executing_players = self::getExecutingPlayers();\n foreach($executing_players as $player_id => $stronger_or_equal) {\n if ($player_id == $launcher_id) {\n continue;\n }\n if ($stronger_or_equal) { // This player had effectively shared some dogma effects of the card\n self::incStat(1, 'sharing_effects_number', $player_id);\n }\n else { // The card had an I demand effect, and at least one player executed it with effects\n self::incStat(1, 'i_demand_effects_number', $player_id);\n $i_demand_effects = true;\n }\n\n }\n if ($i_demand_effects) {\n self::incStat(1, 'dogma_actions_number_with_i_demand', $launcher_id);\n }\n if ($sharing_bonus == 1) {\n self::incStat(1, 'dogma_actions_number_with_sharing', $launcher_id);\n }\n \n // Award the sharing bonus if needed\n if ($sharing_bonus == 1) {\n self::notifyGeneralInfo('<span class=\"minor_information\">${text}</span>', array('i18n'=>array('text'), 'text'=>clienttranslate('Sharing bonus.')));\n $player_who_launched_the_dogma = self::getGameStateValue('active_player');\n try {\n self::executeDraw($player_who_launched_the_dogma); // Draw a card with age consistent with player board\n }\n catch (EndOfGame $e) {\n // End of the game: the exception has reached the highest level of code\n self::trace('EOG bubbled from self::stInterDogmaEffect');\n self::trace('interDogmaEffect->justBeforeGameEnd');\n $this->gamestate->nextState('justBeforeGameEnd');\n return;\n }\n }\n \n // The active player may have changed during the dogma. Reset it on the player whose turn was\n $this->gamestate->changeActivePlayer($launcher_id);\n \n // Reset player table\n self::resetPlayerTable();\n \n // [R] Disable the flags used when in dogma \n self::setGameStateValue('dogma_card_id', -1);\n self::setGameStateValue('current_effect_type', -1);\n self::setGameStateValue('current_effect_number', -1);\n self::setGameStateValue('sharing_bonus', -1);\n self::setGameStateValue('current_player_under_dogma_effect', -1);\n self::setGameStateValue('step', -1);\n self::setGameStateValue('step_max', -1);\n self::setGameStateValue('special_type_of_choice', -1);\n self::setGameStateValue('choice', -1);\n self::setGameStateValue('splay_direction', -1);\n self::setGameStateValue('n_min', -1);\n self::setGameStateValue('n_max', -1);\n self::setGameStateValue('solid_constraint', -1);\n self::setGameStateValue('owner_from', -1);\n self::setGameStateValue('location_from', -1);\n self::setGameStateValue('owner_to', -1);\n self::setGameStateValue('location_to', -1);\n self::setGameStateValue('bottom_to', -1);\n self::setGameStateValue('age_min', -1);\n self::setGameStateValue('age_max', -1);\n self::setGameStateValue('color_array', -1);\n self::setGameStateValue('with_icon', -1);\n self::setGameStateValue('without_icon', -1);\n self::setGameStateValue('not_id', -1);\n self::setGameStateValue('can_pass', -1);\n self::setGameStateValue('n', -1);\n self::setGameStateValue('id_last_selected', -1);\n self::setGameStateValue('age_last_selected', -1);\n self::setGameStateValue('color_last_selected', -1);\n self::setGameStateValue('score_keyword', -1);\n self::setGameStateValue('auxiliary_value', -1);\n for($i=1; $i<=9; $i++) {\n self::setGameStateInitialValue('nested_id_'.$i, -1);\n self::setGameStateInitialValue('nested_current_effect_number_'.$i, -1);\n }\n \n // End of this player action\n self::trace('interDogmaEffect->interPlayerTurn');\n $this->gamestate->nextState('interPlayerTurn');\n return;\n }\n \n // There is another (non-demand) effect to perform\n self::setGameStateValue('current_effect_type', 1);\n self::setGameStateValue('current_effect_number', $current_effect_number);\n \n // Jump to this effect\n self::trace('interDogmaEffect->dogmaEffect');\n $this->gamestate->nextState('dogmaEffect');\n }",
"public function blocks(){\r\n\t\tif($this->has_admin_panel()) return $this->module_blocks();\r\n return $this->module_no_permission();\r\n\t}",
"public function takeDamage()\n\t\t{\n\t\t\tif ($this->_illness)\n\t\t\t{\n\t\t\t\t$this->_health -= $this->_damage; \n\t\t\t}\n\t\t}",
"public function blockAdBlock($html_to_show_whe_blocked, $bg_color = \"#fff\", $opacity = \"95\"){\n echo <<<HTML\n <style>#fbb8{position:fixed !important;position:absolute;top:-2px;top:expression((t=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)+\"px\");left:-1px;width:103%;height:98%;background-color:{$bg_color};opacity:.{$opacity};filter:alpha(opacity=95);display:block;padding:20% 0}#fbb8 *{text-align:center;margin:0 auto;display:block;filter:none;font:bold 14px Verdana,Arial,sans-serif;text-decoration:none}#fbb8 ~ *{display:none}</style><div id=\"fbb8\"><span>Please enable / Bitte aktiviere JavaScript!<br>Veuillez activer / Por favor activa el Javascript!</span></div><script>window.document.getElementById(\"fbb8\").parentNode.removeChild(window.document.getElementById(\"fbb8\"));(function(f,k){function g(a){a&&fbb8.nextFunction()}var h=f.document,l=[\"i\",\"u\"];g.prototype={rand:function(a){return Math.floor(Math.random()*a)},getElementBy:function(a,c){return a?h.getElementById(a):h.getElementsByTagName(c)},getStyle:function(a){var c=h.defaultView;return c&&c.getComputedStyle?c.getComputedStyle(a,null):a.currentStyle},deferExecution:function(a){setTimeout(a,2E3)},insert:function(a,c){var e=h.createElement(\"span\"),d=h.body,b=d.childNodes.length,m=d.style,f=0,g=0;if(\"fbb8\"==c){e.setAttribute(\"id\",c);m.margin=m.padding=0;m.height=\"100%\";for(b=this.rand(b);f<b;f++)1==d.childNodes[f].nodeType&&(g=Math.max(g,parseFloat(this.getStyle(d.childNodes[f]).zIndex)||0));g&&(e.style.zIndex=g+1);b++}e.innerHTML=a;d.insertBefore(e,d.childNodes[b-1])},displayMessage:function(a){var c=this;a=\"abisuq\".charAt(c.rand(5));c.insert(\"<\"+a+'>{$html_to_show_whe_blocked}'+(\"</\"+a+\">\"),\"fbb8\");h.addEventListener&&c.deferExecution(function(){c.getElementBy(\"fbb8\").addEventListener(\"DOMNodeRemoved\",function(){c.displayMessage()},!1)})},i:function(){for(var a=\"ad-tower,ad_728_90,premium_ad,rxgcontent,secondad,sideadscol,site-ads,ad,ads,adsense\".split(\",\"),c=a.length,e=\"\",d=this,b=0,f=\"abisuq\".charAt(d.rand(5));b<c;b++)d.getElementBy(a[b])||(e+=\"<\"+f+' id=\"'+a[b]+'\"></'+f+\">\");d.insert(e);d.deferExecution(function(){for(b=0;b<c;b++)if(null==d.getElementBy(a[b]).offsetParent||\"none\"==d.getStyle(d.getElementBy(a[b])).display)return d.displayMessage(\"#\"+a[b]+\"(\"+b+\")\");d.nextFunction()})},u:function(){var a=\"-popexit.,.utils.ads.,/ad2gather.,/ads-module.,/adsquareleft.,/adsword.,/googlempu.,/pagepeel/ad,/pc_ads.,/480x60_\".split(\",\"),c=this,e=c.getElementBy(0,\"img\"),d,b;e[0]!==k&&e[0].src!==k&&(d=new Image,d.onload=function(){b=this;b.onload=null;b.onerror=function(){l=null;c.displayMessage(b.src)};b.src=e[0].src+\"#\"+a.join(\"\")},d.src=e[0].src);c.deferExecution(function(){c.nextFunction()})},nextFunction:function(){var a=l[0];a!==k&&(l.shift(),this[a]())}};f.fbb8=fbb8=new g;h.addEventListener?f.addEventListener(\"load\",g,!1):f.attachEvent(\"onload\",g)})(window);</script>\nHTML;\n }",
"public function takeDamage(Character $target)\n {\n $target->totalStrength = 0;\n $random = rand(1, 5);\n\n if ($random == 1) {\n $target->totalStrength = $target->strength + $target->critical;\n $target->bonus();\n } else {\n $target->totalStrength = $target->strength;\n }\n\n $this->healthPoints = $this->healthPoints - $target->totalStrength;\n }",
"public function applyDamage()\n\t\t{\n\t\t\tforeach ($this->_members as $member)\n\t\t\t{\n\t\t\t\tif ($member->_alive)\n\t\t\t\t{\n\t\t\t\t\t$member->takeDamage();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"abstract public function validate_attack($game, array $attackers, array $defenders);",
"public function isBanned() {\n return $this->getStatus() === Status::BANNED;\n }",
"public function testIntegrationSelectBlockOverWin()\n {\n $state = GameState::CreateFromString('X OX O ', 'O');\n $winMove = [2, 2, 'O'];\n $blockMove = [0, 2, 'O'];\n $validMoves = $state->getValidMoves();\n\n $this->assertContains($winMove, $this->movesToArray($validMoves));\n $this->assertContains($blockMove, $this->movesToArray($validMoves));\n\n $engine = new Blocker($state);\n $consideredMoves = $engine->getConsideredMoves();\n\n $this->assertNotContains($winMove, $this->movesToArray($consideredMoves));\n $this->assertContains($blockMove, $this->movesToArray($consideredMoves));\n }",
"function scrapbots_battle($defenderid){\n\tglobal $session;\n\t$attackerid = $session['user']['acctid'];\n\t$armies = scrapbots_get_armies($defenderid, $attackerid);\n\t$duellers = scrapbots_pair_up_scrapbots ($armies);\n\treturn;\n}",
"public function hit()\n {\n $fight = $this->getDamage();\n $fight = $fight + 5;\n $this->setDamage($fight);\n\n }",
"public function hasIceAttack(){\r\n return $this->_has(16);\r\n }",
"function advancedBids($data) {\n \tif(Configure::read('App.bidButlerType') == 'advanced') {\n \t\tif($data['bids'] < 2) {\n \t\t\treturn false;\n \t\t} else {\n \t\t\treturn true;\n \t\t}\n \t} else {\n \t\treturn true;\n \t}\n }",
"public function hasPoisonDefense(){\r\n return $this->_has(16);\r\n }",
"function canBidBuddy($bidbutler) {\n\tglobal $config;\n\t\n\tif ($bidbutler['reverse']) {\n\t\t//reverse auctions work differently\n\t\tif ($bidbutler['price'] <= $bidbutler['minimum_price'] ||\n\t\t\t\t $config['App']['bidButlerType'] == 'simple' ||\n\t\t\t\t $bidbutler['fixed'] == 1) {\n\t\t\tlogIt($bidbutler['auction_id']. '; canBidBuddy: true');\n\t\t\treturn true;\n\t\t}\n\t\t\t\t \n\t} else {\n\t\t//standard auction\n\t\t\n\t\tif ($bidbutler['price'] >= $bidbutler['minimum_price'] &&\n\t\t\t ($bidbutler['price'] < $bidbutler['maximum_price']) ||\n\t\t\t $config['App']['bidButlerType'] == 'simple' ||\n\t\t\t $bidbutler['fixed'] == 1) {\n\t\t\tlogIt($bidbutler['auction_id']. '; canBidBuddy: true');\n\t\t\treturn true;\n\t\t}\n\t}\n}",
"public function isBanned()\n {\n return $this->is_banned;\n }",
"function giveDamage($target) :int {\n //si on ne ce tape pas nous meme\n if ($target->getId() !== $this->getId()) {\n return $target->receiveDamage($this->getAttack());\n } else {\n // TODO: return something?????\n }\n }",
"public function hasDamageaddper(){\r\n return $this->_has(33);\r\n }",
"public function beforeRunRules() {\n\t\t$whitelistedURLs = wfWAF::getInstance()->getStorageEngine()->getConfig('whitelistedURLs');\n\t\tif ($whitelistedURLs) {\n\t\t\t$whitelistPattern = \"\";\n\t\t\tforeach ($whitelistedURLs as $whitelistedURL) {\n\t\t\t\t$whitelistPattern .= preg_replace('/\\\\\\\\\\*/', '.*?', preg_quote($whitelistedURL, '/')) . '|';\n\t\t\t}\n\t\t\t$whitelistPattern = '/^(?:' . wfWAFUtils::substr($whitelistPattern, 0, -1) . ')$/i';\n\n\t\t\twfWAFRule::create(wfWAF::getInstance(), 0x8000000, 'rule', 'whitelist', 0, 'User Supplied Whitelisted URL', 'allow',\n\t\t\t\tnew wfWAFRuleComparisonGroup(\n\t\t\t\t\tnew wfWAFRuleComparison(wfWAF::getInstance(), 'match', $whitelistPattern, array(\n\t\t\t\t\t\t'request.uri',\n\t\t\t\t\t))\n\t\t\t\t)\n\t\t\t)->evaluate();\n\t\t}\n\n\t\t// Whitelisted IPs (Wordfence config)\n\t\t$whitelistedIPs = wfWAF::getInstance()->getStorageEngine()->getConfig('whitelistedIPs');\n\t\tif ($whitelistedIPs) {\n\t\t\tif (!is_array($whitelistedIPs)) {\n\t\t\t\t$whitelistedIPs = explode(',', $whitelistedIPs);\n\t\t\t}\n\t\t\tforeach ($whitelistedIPs as $whitelistedIP) {\n\t\t\t\t$ipRange = new wfWAFUserIPRange($whitelistedIP);\n\t\t\t\tif ($ipRange->isIPInRange(wfWAF::getInstance()->getRequest()->getIP())) {\n\t\t\t\t\tthrow new wfWAFAllowException('Wordfence whitelisted IP.');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Check plugin blocking\n\t\tif ($result = wfWAF::getInstance()->willPerformFinalAction(wfWAF::getInstance()->getRequest())) {\n\t\t\tif ($result === true) { $result = 'Not available'; } // Should not happen but can if the reason in the blocks table is empty\n\t\t\twfWAF::getInstance()->getRequest()->setMetadata(array_merge(wfWAF::getInstance()->getRequest()->getMetadata(), array('finalAction' => $result)));\n\t\t}\n\t}",
"public function getIsEffect()\n {\n return $this->is_effect;\n }",
"public function actionBanned()\n\t{\n\t\t$model = CoreSettings::findOne(1);\n if ($model === null) {\n $model = new CoreSettings();\n }\n\t\t$model->scenario = CoreSettings::SCENARIO_BANNED;\n\n if (Yii::$app->request->isPost) {\n $model->load(Yii::$app->request->post());\n // $postData = Yii::$app->request->post();\n // $model->load($postData);\n // $model->order = $postData['order'] ? $postData['order'] : 0;\n\n if ($model->save()) {\n Yii::$app->session->setFlash('success', Yii::t('app', 'Spam & banning setting success updated.'));\n return $this->redirect(['banned']);\n\n } else {\n if (Yii::$app->request->isAjax) {\n return \\yii\\helpers\\Json::encode(\\app\\components\\widgets\\ActiveForm::validate($model));\n }\n }\n }\n\t\t\n\t\t$this->view->title = Yii::t('app', 'Spam & Banning Tools');\n\t\t$this->view->description = Yii::t('app', '{app-name} platform are often the target of aggressive spam tactics. This most often comes in the form of fake user accounts and spam in comments. On this page, you can manage various anti-spam and censorship features. Note: To turn on the signup image verification feature (a popular anti-spam tool), see the {setting} page.', ['app-name' => Yii::$app->name, 'setting' => Html::a(Yii::t('app', 'Signup Setting'), Url::to(['signup']))]);\n\t\t$this->view->keywords = '';\n\t\treturn $this->render('admin_banned', [\n\t\t\t'model' => $model,\n\t\t]);\n\t}",
"public function isBlocked() {\n return $this->user !== null && $this->user->blocked;\n }",
"public function isBlocked()\n {\n if ($this->edit_id === 0) {\n return false;\n } else {\n if ($this->edit_time + 7200 > time()) {\n return true;\n } else {\n return false;\n }\n }\n }",
"public function disableBannedAtScope()\n {\n return true;\n }",
"function block_has_support($block_type, $feature, $default_value = \\false)\n {\n }",
"public function getBuyBattleChance()\n {\n return $this->get(self::_BUY_BATTLE_CHANCE);\n }",
"public function baned()\n {\n\t\t$source = $this->render('baned.html', array());\n\t\t$this->_view($source);\n\t}",
"public function blockAccount() {\n\t\tif(check($this->_userid)) {\n\t\t\t$result = $this->db->query(\"UPDATE \"._TBL_MI_.\" SET \"._CLMN_BLOCCODE_.\" = ? WHERE \"._CLMN_MEMBID_.\" = ?\", array(1, $this->_userid));\n\t\t\tif(!$result) return;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif(check($this->_username)) {\n\t\t\t$result = $this->db->query(\"UPDATE \"._TBL_MI_.\" SET \"._CLMN_BLOCCODE_.\" = ? WHERE \"._CLMN_USERNM_.\" = ?\", array(1, $this->_username));\n\t\t\tif(!$result) return;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tif(check($this->_email)) {\n\t\t\t$result = $this->db->query(\"UPDATE \"._TBL_MI_.\" SET \"._CLMN_BLOCCODE_.\" = ? WHERE \"._CLMN_EMAIL_.\" = ?\", array(1, $this->_email));\n\t\t\tif(!$result) return;\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn;\n\t}",
"public function exempt($action): bool;",
"public static function blocks_call_to_action_gfont( $attr ) {\n\n\t\t\t$title_load_google_font = isset( $attr['titleLoadGoogleFonts'] ) ? $attr['titleLoadGoogleFonts'] : '';\n\t\t\t$title_font_family = isset( $attr['titleFontFamily'] ) ? $attr['titleFontFamily'] : '';\n\t\t\t$title_font_weight = isset( $attr['titleFontWeight'] ) ? $attr['titleFontWeight'] : '';\n\t\t\t$title_font_subset = isset( $attr['titleFontSubset'] ) ? $attr['titleFontSubset'] : '';\n\n\t\t\t$desc_load_google_font = isset( $attr['descLoadGoogleFonts'] ) ? $attr['descLoadGoogleFonts'] : '';\n\t\t\t$desc_font_family = isset( $attr['descFontFamily'] ) ? $attr['descFontFamily'] : '';\n\t\t\t$desc_font_weight = isset( $attr['descFontWeight'] ) ? $attr['descFontWeight'] : '';\n\t\t\t$desc_font_subset = isset( $attr['descFontSubset'] ) ? $attr['descFontSubset'] : '';\n\n\t\t\t$cta_load_google_font = isset( $attr['ctaLoadGoogleFonts'] ) ? $attr['ctaLoadGoogleFonts'] : '';\n\t\t\t$cta_font_family = isset( $attr['ctaFontFamily'] ) ? $attr['ctaFontFamily'] : '';\n\t\t\t$cta_font_weight = isset( $attr['ctaFontWeight'] ) ? $attr['ctaFontWeight'] : '';\n\t\t\t$cta_font_subset = isset( $attr['ctaFontSubset'] ) ? $attr['ctaFontSubset'] : '';\n\n\t\t\tUAGB_Helper::blocks_google_font( $cta_load_google_font, $cta_font_family, $cta_font_weight, $cta_font_subset );\n\t\t\tUAGB_Helper::blocks_google_font( $title_load_google_font, $title_font_family, $title_font_weight, $title_font_subset );\n\t\t\tUAGB_Helper::blocks_google_font( $desc_load_google_font, $desc_font_family, $desc_font_weight, $desc_font_subset );\n\t\t}",
"function stDogmaEffect() {\n $current_effect_type = self::getGameStateValue('current_effect_type');\n $current_effect_number = self::getGameStateValue('current_effect_number');\n $card_id = self::getGameStateValue('dogma_card_id');\n $card = self::getCardInfo($card_id);\n $qualified_effect = self::qualifyEffect($current_effect_type, $current_effect_number, $card);\n \n // Search for the first player who will undergo/share the effects, if any\n $first_player = self::getFirstPlayerUnderEffect($current_effect_type);\n if ($first_player === null) {\n // There is no player affected by the effect\n self::notifyGeneralInfo(\"<span class='minor_information'>\" . clienttranslate('Nobody is affected by the ${qualified_effect} of the card.') . \"</span>\", array(\n 'i18n' => array('qualified_effect'),\n 'qualified_effect' => $qualified_effect\n ));\n \n // End of the effect\n self::trace('dogmaEffect->interDogmaEffect');\n $this->gamestate->nextState('interDogmaEffect');\n return;\n }\n \n self::setGameStateValue('current_player_under_dogma_effect', $first_player);\n $this->gamestate->changeActivePlayer($first_player);\n \n // Begin the loop with this player\n self::trace('dogmaEffect->playerInvolvedTurn');\n $this->gamestate->nextState('playerInvolvedTurn');\n }",
"function Add_Ability_Bonuses(&$character1) {\r\n\t\t$positions = array(\"head\", \"neck\", \"torso\", \"cloak\", \"weaponr\", \"weaponl\", \"ringr\", \"ringl\", \"bracer\", \"belt\", \"feet\");\r\n\t\t$attributes = array(\"str\", \"dex\", \"con\", \"intel\", \"wis\", \"cha\");\r\n\t\tforeach($positions as $key=>$position) {\r\n\t\t\tforeach($attributes as $key=>$attrib) {\r\n\t\t\t\tif(!empty($_SESSION['modifiers'][$position][$attrib])) \r\n\t\t\t\t{\r\n\t\t\t\t\t$character1[$attrib] = $character1[$attrib] + $_SESSION['modifiers'][$position][$attrib];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"function spam_karma_blacklist_ban() {\r\n\t// blacklist those IPs who haven't spammed in 60 days.\r\n\t$ip = $_SERVER['REMOTE_ADDR'];\r\n\t$ip = apply_filters( 'spam_karma_blacklist_ban_get_ip', $ip );\r\n\tif( empty( $ip ) ) \r\n\t\treturn;\r\n\t\r\n\tglobal $wpdb;\r\n\trequire_wp_db(); // in the off case that the database isn't loaded yet.\r\n\r\n\t$blacklist_count = $wpdb->get_var( $wpdb->prepare( \"SELECT `used_count` FROM `sk2_blacklist` WHERE `type` = 'ip_black' AND `value` = '%s' LIMIT 1\", $ip ) );\r\n\tapply_filters( 'spam_karma_blacklist_ban_count', $blacklist_count );\r\n\tif ( $blacklist_count - SPAM_KARMA_BLACKLIST_COUNT_TO_BAN > 0 ) {\r\n\t\tdo_action( 'spam_karma_blacklist_ban_do_ban' );\r\n\t\theader(\"HTTP/1.0 403 Forbidden\", true, 403);\r\n\t\tdie();\r\n\t}\r\n}",
"function AfficheBatiment(batiment &$batiment, personnage &$oJoueur = NULL, maison &$oMaison = NULL){\r\n\t$ImgSize = 'height';\r\n\t$txt = NULL;\r\n\r\n\t$contenu = 'Ne peut rien contenir';\r\n\t\r\n\t$chkPositionJoueur = false;\r\n\t$nbLigne = 3;\r\n\t\r\n\tif(!is_null($oJoueur)){\t\r\n\t\t$chkPositionJoueur\t\t= $oJoueur->GetCoordonnee() == $batiment->GetCoordonnee();\r\n\t}\r\n\t\r\n\t$chkMarche = false;\r\n\t\r\n\t$lstBatimentAvecEsclaves = array(ferme::ID_BATIMENT, potager::ID_BATIMENT, mine::ID_BATIMENT, carriere::ID_BATIMENT, scierie::ID_BATIMENT);\r\n\r\n\tswitch($batiment->GetIDType()){\r\n\t\tcase maison::ID_BATIMENT:\r\n\t\t\t$ImgSize = 'width';\r\n\t\t\tif($chkPositionJoueur){\r\n\t\t\t\t$contenu = '<p>Ne peut rien contenir.</p>';\r\n\t\t\t\t$chkOptions = false;\r\n\t\t\t}else{\r\n\t\t\t\t$contenu = '<p>Si ici que vous devez vous placer pour vous inscrire ou valider une quête.</p>';\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\t/* case 'bank':\r\n\t\t\t$contenu = $batiment->AfficheContenu($oJoueur);\r\n\t\t\tbreak; */\r\n\t\tcase scierie::ID_BATIMENT:\r\n\t\tcase ferme::ID_BATIMENT:\r\n\t\tcase mine::ID_BATIMENT :\r\n\t\tcase potager::ID_BATIMENT:\r\n\t\tcase carriere::ID_BATIMENT:\r\n\t\t\t$ImgSize = 'width';\r\n\t\t\tif(!is_null($oJoueur)){\t$contenu = $batiment->AfficheContenu($oJoueur);}\r\n\t\t\tbreak;\r\n\t\tcase marche::ID_BATIMENT:\r\n\t\t\tif($chkPositionJoueur){\r\n\t\t\t\t$chkMarche = true;\r\n\t\t\t}else{\r\n\t\t\t\t$contenu = '<p>Vous devez vous placez sur son emplacement pour afficher les transactions disponibles.</p>';\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t}\r\n\tif(in_array($batiment->GetIDType(), $lstBatimentAvecEsclaves))\r\n\t{\r\n\t\t$arLignes[3] = '\r\n\t\t\t<tr>\r\n\t\t\t\t<td>'\r\n\t\t.(!is_null($oJoueur)?\r\n\t\t$batiment->AfficheAchatEsclave($oJoueur)\r\n\t\t:'Possibilité d\\'acheter des esclaves pour augmenter sa production')\r\n\t\t.'</td>\r\n\t\t\t</tr>';\r\n\t\t$nbLigne++;\r\n\t}\r\n\t\r\n\tif(!is_null($oJoueur))\r\n\t{\r\n\t\t$arLignes[2] = '\r\n\t\t\t<tr><td>'.$batiment->AfficheOptionAmeliorer($oJoueur, $oMaison).'</td></tr>';\r\n\t\t$arLignes[4] = '\r\n\t\t\t<tr>\r\n\t\t\t\t<td>'\r\n\t\t\t\t\t.'<img alt=\"Barre status\" src=\"./fct/fct_image.php?type=statusetat&value='.$batiment->GetEtat().'&max='.$batiment->GetEtatMax().'\" />'\r\n\t\t\t\t\t.'<br />'\r\n\t\t\t\t\t.$batiment->AfficheOptionReparer($oJoueur)\r\n\t\t\t\t.'</td>\r\n\t\t\t</tr>';\r\n\t\t$arLignes[7] = '\r\n\t\t\t<tr><td>'.$contenu.'</td></tr>';\r\n\t\r\n\t\t$nbLigne+=3;\r\n\t\t\r\n\t\tif($batiment->GetIDType() == marche::ID_BATIMENT)\r\n\t\t{\r\n\t\t\t$arLignes[8] = '\r\n\t\t\t<tr><td>'.$batiment->AfficheTransactions($oJoueur).'</td></tr>';\r\n\t\t\t\r\n\t\t\t$nbLigne++;\r\n\t\t}\r\n\t}\r\n\t\r\n\t$arLignes[5] = '\r\n\t\t\t<tr>\r\n\t\t\t\t<td>\r\n\t\t\t\t\t<ul style=\"list-style-type:none; padding:0px; text-align:center; margin:0px;\">\r\n\t\t\t\t\t\t<li style=\"display:inline;\">'.AfficheIcone(objArmement::TYPE_ATTAQUE).' : '.(is_null($batiment->GetAttaque())?'0':$batiment->GetAttaque()).'</li>\r\n\t\t\t\t\t\t<li style=\"display:inline; margin-left:40px;\">'.AfficheIcone(objArmement::TYPE_DISTANCE).' : '.(is_null($batiment->GetDistance())?'0':$batiment->GetDistance())\t.'</li>\r\n\t\t\t\t\t\t<li style=\"display:inline; margin-left:40px;\">'.AfficheIcone(objArmement::TYPE_DEFENSE).' : '.(is_null($batiment->GetDefense())?'0':$batiment->GetDefense()).'</li>\r\n\t\t\t\t\t</ul>\r\n\t\t\t\t</td>\r\n\t\t\t</tr>';\r\n\t$arLignes[6] = '\r\n\t\t\t<tr><td>'.$batiment->GetDescription().'</td></tr>';\r\n\t$arLignes[1] = '\r\n\t\t\t<tr>\r\n\t\t\t\t<td rowspan=\"'.$nbLigne.'\" style=\"width:400px;\">\r\n\t\t\t\t\t<img alt=\"'.$batiment->GetType().'\" src=\"./img/batiments/'.$batiment->GetType().'.png\" width=\"400px\" onmouseover=\"montre(\\''.CorrectDataInfoBulle($batiment->GetDescription()).'\\');\" onmouseout=\"cache();\"/>\r\n\t\t\t\t</td>\r\n\t\t\t\t<th>'\r\n\t\t\t\t\t.(!is_null($oJoueur)?\r\n\t\t\t\t\t\t'<a name=\"'.str_replace(',', '_', $batiment->GetCoordonnee()).'\">'\r\n\t\t\t\t\t\t:NULL)\r\n\t\t\t\t\t.$batiment->GetNom((!is_null($oJoueur)?$oJoueur->GetCivilisation():personnage::CIVILISATION_GAULOIS)).(!is_null($oJoueur)?' ('.$batiment->GetNiveau().' / '.$batiment->GetNiveauMax().')':NULL)\r\n\t\t\t\t\t.(!is_null($oJoueur)?\r\n\t\t\t\t\t\t'</a>'\r\n\t\t\t\t\t\t:NULL)\r\n\t\t\t\t.'</th>\r\n\t\t\t</tr>';\r\n\t\r\n\t//on trie par keys\r\n\tksort($arLignes);\r\n\t\r\n\treturn implode('', $arLignes);\r\n}",
"function bid($data = array(), $autobid = false, $bid_description = null) {\r\n\t\t\t\t\t$canBid = true;\r\n\t\t\t\t\t$message = '';\r\n\t\t\t\t\t$flash = '';\r\n\r\n\t\t\t\t\t// Get the auctions\r\n\t\t\t\t\t$this->contain();\r\n\t\t\t\t\t$fieldList = array('Auction.id', 'Auction.product_id', 'Auction.start_time', 'Auction.end_time', 'Auction.price', 'Auction.peak_only', 'Auction.closed', 'Auction.minimum_price', 'Auction.autobids', 'Auction.max_end', 'Auction.max_end_time', 'Auction.penny');\r\n\r\n\t\t\t\t\t$auction = $this->find('first', array('conditions' => array('Auction.id' => $data['auction_id']), 'fields' => $fieldList));\r\n\r\n\t\t\t\t\tif(!empty($auction)){\r\n\t\t\t\t\t\t// check to see if this is a free auction\r\n\t\t\t\t\t\tif(!empty($this->appConfigurations['freeAuctions'])) {\r\n\t\t\t\t\t\t\t$product = $this->Product->find('first', array('conditions' => array('Product.id' => $auction['Auction']['product_id']), 'fields' => 'Product.free', 'contain' => ''));\r\n\t\t\t\t\t\t\tif(!empty($product['Product']['free'])) {\r\n\t\t\t\t\t\t\t\t$data['bid_debit'] = 0;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif(!empty($this->appConfigurations['limits']['active'])) {\r\n\t\t\t\t\t\t\t$limits_exceeded = $this->requestAction('/limits/canbid/'.$data['auction_id'].'/'.$data['user_id']);\r\n\t\t\t\t\t\t\tif($limits_exceeded == false) {\r\n\t\t\t\t\t\t\t\t$message = __('You cannot bid on this auction as your have exceeded your bidding limit.', true);\r\n\t\t\t\t\t\t\t\t$canBid = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Check if the auction has been end - this only applies to NON autobidders\r\n\t\t\t\t\t\tif((!empty($auction['Auction']['closed']) || strtotime($auction['Auction']['end_time']) <= time()) && $autobid == false) {\r\n\t\t\t\t\t\t\t$message = __('Auction has been closed', true);\r\n\t\t\t\t\t\t\t$canBid = false;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Check if the auction has been not started yet\r\n\t\t\t\t\t\tif(!empty($auction['Auction']['start_time'])) {\r\n\t\t\t\t\t\t\tif(strtotime($auction['Auction']['start_time']) > time()){\r\n\t\t\t\t\t\t\t\t$message = __('Auction has not started yet', true);\r\n\t\t\t\t\t\t\t\t$canBid = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Check if the auction is peak only and if the now is peak time\r\n\t\t\t\t\t\tif(!empty($auction['Auction']['peak_only'])){\r\n\t\t\t\t\t\t\tif(empty($data['isPeakNow'])){\r\n\t\t\t\t\t\t\t\t$message = __('This is a peak auction', true);\r\n\t\t\t\t\t\t\t\t$canBid = false;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// Get user balance\r\n\t\t\t\t\t\tif($autobid == true || $this->appConfigurations['bidButlerDeploy'] == 'group') {\r\n\t\t\t\t\t\t\t$balance = $data['bid_debit'];\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t$balance = $this->Bid->balance($data['user_id']);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// this goes last to prevent the double bid issues\r\n\t\t\t\t\t\t$latest_bid = $this->Bid->lastBid($data['auction_id']);\r\n\t\t\t\t\t\tif(!empty($latest_bid) && $latest_bid['user_id'] == $data['user_id']){\r\n\t\t\t\t\t\t\t$message = __('You cannot bid as you are already the highest bidder', true);\r\n\t\t\t\t\t\t\t$canBid = false;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tif($canBid == true) {\r\n\t\t\t\t\t\t\t// Checking if user has enough bid to place\r\n\t\t\t\t\t\t\tif($balance >= $data['bid_debit']) {\r\n\r\n\t\t\t\t\t\t\t\t// Check if it's bidbutler call\r\n\t\t\t\t\t\t\t\tif(!empty($data['bid_butler'])) {\r\n\t\t\t\t\t\t\t\t\t// Find the bidbutler\r\n\t\t\t\t\t\t\t\t\t$this->Bidbutler->contain();\r\n\t\t\t\t\t\t\t\t\t$bidbutler = $this->Bidbutler->find('first', array('conditions' => array('Bidbutler.id' => $data['bid_butler'])));\r\n\r\n\t\t\t\t\t\t\t\t\t// If bidbutler found\r\n\t\t\t\t\t\t\t\t\tif(!empty($bidbutler)){\r\n\t\t\t\t\t\t\t\t\t\tif($bidbutler['Bidbutler']['bids'] >= $data['bid_debit']) {\r\n\t\t\t\t\t\t\t\t\t\t\t// Decrease the bid butler bids\r\n\t\t\t\t\t\t\t\t\t\t\t$bidbutler['Bidbutler']['bids'] -= $data['bid_debit'];\r\n\r\n\t\t\t\t\t\t\t\t\t\t\t// Save it\r\n\t\t\t\t\t\t\t\t\t\t\t$this->Bidbutler->save($bidbutler, false);\r\n\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t// Get out of here, the bids on bidbutler was empty\r\n\t\t\t\t\t\t\t\t\t\t\treturn $auction;\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// Formatting auction time and price increment\r\n\t\t\t\t\t\t\t\tif(!empty($auction['Auction']['penny'])) {\r\n\t\t\t\t\t\t\t\t\t$auction['Auction']['price'] \t+= 0.01;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$auction['Auction']['price'] \t+= $data['price_increment'];\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t$auction['Auction']['end_time'] = date('Y-m-d H:i:s', strtotime($auction['Auction']['end_time']) + $data['time_increment']);\r\n\r\n\t\t\t\t\t\t\t\t// lets make sure the auction time is now less than now\r\n\t\t\t\t\t\t\t\tif(strtotime($auction['Auction']['end_time']) < time()) {\r\n\t\t\t\t\t\t\t\t\t$auction['Auction']['end_time'] = date('Y-m-d H:i:s', time() + $data['time_increment']);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// lets check the max end time to see if the end_time is greater than the max_end_time\r\n\t\t\t\t\t\t\t\tif(!empty($auction['Auction']['max_end'])) {\r\n\t\t\t\t\t\t\t\t\tif(strtotime($auction['Auction']['end_time']) > strtotime($auction['Auction']['max_end_time'])) {\r\n\t\t\t\t\t\t\t\t\t\t$auction['Auction']['end_time'] = $auction['Auction']['max_end_time'];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// lets extend the minimum price if its an auto bidder\r\n\t\t\t\t\t\t\t\tif($autobid == true) {\r\n\t\t\t\t\t\t\t\t\tif(!empty($auction['Auction']['penny'])) {\r\n\t\t\t\t\t\t\t\t\t\t$auction['Auction']['minimum_price'] += 0.01;\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t$auction['Auction']['minimum_price'] += $data['price_increment'];\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t$auction['Auction']['autobids'] += 1;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$auction['Auction']['autobids'] = 0;\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// Formatting user bid transaction\r\n\t\t\t\t\t\t\t\t$bid['Bid']['user_id'] \t = $data['user_id'];\r\n\t\t\t\t\t\t\t\t$bid['Bid']['auction_id'] = $auction['Auction']['id'];\r\n\t\t\t\t\t\t\t\t$bid['Bid']['credit'] = 0;\r\n\r\n\t\t\t\t\t\t\t\tif(!empty($data['bid_butler']) && Configure::read('App.bidButlerType') == 'advanced') {\r\n\t\t\t\t\t\t\t\t\t$bid['Bid']['debit'] = 0;\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$bid['Bid']['debit'] = $data['bid_debit'];\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// Insert proper description, bid or bidbutler\r\n\t\t\t\t\t\t\t\tif(!empty($bid_description)) {\r\n\t\t\t\t\t\t\t\t\t$bid['Bid']['description'] = $bid_description;\r\n\t\t\t\t\t\t\t\t} elseif(!empty($data['bid_butler'])){\r\n\t\t\t\t\t\t\t\t\t$bid['Bid']['description'] = __('Bid Butler', true);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t$bid['Bid']['description'] = __('Single Bid', true);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// lets check for double bids - 01/03/2008 - Michael - lets only include bids in this check due to error from group deploy for bid butlers\r\n\t\t\t\t\t\t\t\t$auction['Auction']['double_bids_check'] = false;\r\n\t\t\t\t\t\t\t\t$bid['Bid']['double_bids_check'] = true;\r\n\r\n\t\t\t\t\t\t\t\t// Saving bid\r\n\t\t\t\t\t\t\t\tif(is_array($data['user_id'])) {\r\n\t\t\t\t\t\t\t\t\tforeach($data['user_id'] as $user){\r\n\t\t\t\t\t\t\t\t\t\t// 2008-02-27 21:44:20 -- Maulana\r\n\t\t\t\t\t\t\t\t\t\t// Update the leader id, set the leader_id to\r\n\t\t\t\t\t\t\t\t\t\t// latest user_id in array Q\r\n\t\t\t\t\t\t\t\t\t\t$auction['Auction']['leader_id'] = $user;\r\n\t\t\t\t\t\t\t\t\t\t$this->save($auction);\r\n\r\n\t\t\t\t\t\t\t\t\t\t$bid['Bid']['user_id'] = $user;\r\n\t\t\t\t\t\t\t\t\t\t$this->Bid->create();\r\n\t\t\t\t\t\t\t\t\t\t$this->Bid->save($bid);\r\n\r\n\t\t\t\t\t\t\t\t\t\tif($this->appConfigurations['simpleBids'] == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t$winner = $this->Winner->find('first', array('conditions' => array('Winner.id' => $data['user_id']), 'contain' => ''));\r\n\t\t\t\t\t\t\t\t\t\t\t$winner['Winner']['bid_balance'] -= $bid['Bid']['debit'];\r\n\t\t\t\t\t\t\t\t\t\t\t$winner['Winner']['modified'] = date('Y-m-d H:i:s');\r\n\t\t\t\t\t\t\t\t\t\t\t$this->Winner->save($winner);\r\n\t\t\t\t\t\t\t\t\t\t} elseif($autobid == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t// 18/2/2009 - this has been added for \"grouped\" bids. We need to update the modified date for the autobidders\r\n\t\t\t\t\t\t\t\t\t\t\t$winner = $this->Winner->find('first', array('conditions' => array('Winner.id' => $data['user_id']), 'contain' => ''));\r\n\t\t\t\t\t\t\t\t\t\t\t$winner['Winner']['modified'] = date('Y-m-d H:i:s');\r\n\t\t\t\t\t\t\t\t\t\t\t$this->Winner->save($winner, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t// 2008-02-27 21:44:20 -- Maulana\r\n\t\t\t\t\t\t\t\t\t// Update the leader id to $data['user_id']. since\r\n\t\t\t\t\t\t\t\t\t// it's not an array we can put it directly\r\n\t\t\t\t\t\t\t\t\t$auction['Auction']['leader_id'] = $data['user_id'];\r\n\r\n\t\t\t\t\t\t\t\t\t$this->Bid->create();\r\n\t\t\t\t\t\t\t\t\t$this->Bid->save($bid);\r\n\r\n\t\t\t\t\t\t\t\t\tif($this->appConfigurations['simpleBids'] == true) {\r\n\t\t\t\t\t\t\t\t\t\t$winner = $this->Winner->find('first', array('conditions' => array('Winner.id' => $data['user_id']), 'contain' => ''));\r\n\t\t\t\t\t\t\t\t\t\t$winner['Winner']['bid_balance'] -= $bid['Bid']['debit'];\r\n\t\t\t\t\t\t\t\t\t\t$winner['Winner']['modified'] = date('Y-m-d H:i:s');\r\n\t\t\t\t\t\t\t\t\t\t$this->Winner->save($winner, false);\r\n\t\t\t\t\t\t\t\t\t} elseif($autobid == true) {\r\n\t\t\t\t\t\t\t\t\t\t// 18/2/2009 - this has been added for \"grouped\" bids. We need to update the modified date for the autobidders\r\n\t\t\t\t\t\t\t\t\t\t$winner = $this->Winner->find('first', array('conditions' => array('Winner.id' => $data['user_id']), 'contain' => ''));\r\n\t\t\t\t\t\t\t\t\t\t$winner['Winner']['modified'] = date('Y-m-d H:i:s');\r\n\t\t\t\t\t\t\t\t\t\t$this->Winner->save($winner, false);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t// Saving auction\r\n\t\t\t\t\t\t\t\t$this->save($auction);\r\n\r\n\t\t\t\t\t\t\t\t$message = __('Your bid was placed', true);\r\n\r\n\t\t\t\t\t\t\t\tif(!empty($this->appConfigurations['flashMessage'])) {\r\n\t\t\t\t\t\t\t\t\tApp::import('Helper', array('Number'));\r\n\t\t\t\t\t\t\t\t\t$number = new NumberHelper();\r\n\r\n\t\t\t\t\t\t\t\t\t// New flash message\r\n\t\t\t\t\t\t\t\t\tif(!empty($data['bid_butler'])){\r\n\t\t\t\t\t\t\t\t\t\tif(!empty($data['bid_butler_count'])){\r\n\t\t\t\t\t\t\t\t\t\t\t$flash = sprintf(__('%d Bid Butler + %s + %s seconds', true), $data['bid_butler_count'], $number->currency($data['price_increment'], $this->appConfigurations['currency']), $data['time_increment']);\r\n\t\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t\t$flash = sprintf(__('1 Bid Butler + %s + %s seconds', true), $number->currency($data['price_increment'], $this->appConfigurations['currency']), $data['time_increment']);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\t\t\t$flash = sprintf(__('1 Single bid + %s + %s seconds', true), $number->currency($data['price_increment'], $this->appConfigurations['currency']), $data['time_increment']);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t\t$auction['Auction']['success'] = true;\r\n\t\t\t\t\t\t\t\t$auction['Bid']['description'] = $bid['Bid']['description'];\r\n\t\t\t\t\t\t\t\t$auction['Bid']['user_id'] = $bid['Bid']['user_id'];\r\n\r\n\t\t\t\t\t\t\t\t// lets add in the bid information for smartBids - we need this\r\n\t\t\t\t\t\t\t\t$result['Bid'] = $bid['Bid'];\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t$message = __('You have no more bids in your account', true);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t$result['Auction']['id'] = $auction['Auction']['id'];\r\n\t\t\t\t\t\t$result['Auction']['message'] = $message;\r\n\t\t\t\t\t\t$result['Auction']['element'] = 'auction_'.$auction['Auction']['id'];\r\n\r\n\t\t\t\t\t\tif(!empty($this->appConfigurations['flashMessage'])){\r\n\t\t\t\t\t\t\t$auction['Auction']['flash'] = $flash;\r\n\r\n\t\t\t\t\t\t\t$auctionMessage = $this->Message->findByAuctionId($auction['Auction']['id']);\r\n\t\t\t\t\t\t\t$auctionMessage['Message']['auction_id'] = $auction['Auction']['id'];\r\n\t\t\t\t\t\t\t$auctionMessage['Message']['message'] = $flash;\r\n\r\n\t\t\t\t\t\t\tif(empty($auctionMessage)){\r\n\t\t\t\t\t\t\t\t$this->Message->create();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$this->Message->save($auctionMessage);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t// now lets refund any bid credits not used before returning the data IF advanced mode is on\r\n\t\t\t\t\t\tif($this->appConfigurations['bidButlerType'] == 'advanced') {\r\n\t\t\t\t\t\t\t$this->Bid->refundBidButlers($auction['Auction']['id'], $auction['Auction']['price']);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn $result;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}\r\n\t\t\t\t}",
"private function _protectionFunctions()\n\t{\n\t\tglobal $MySmartBB;\n\t\t\n\t\t// ... //\n\t\t\n\t\t// Preventing XSS and SQL Injection's keywords from the GET request\n \tforeach ( $MySmartBB->_GET as $get )\n \t{\n \t\t\tif ( (preg_match(\"/\\<[^\\>]*script*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*object*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*iframe*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*applet*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*meta*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*style*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*form*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/\\<[^\\>]*img*\\\"?[^\\>]*\\>/\", $get)) or\n \t\t\t(preg_match(\"/select/\", $get)) or\n \t\t\t(preg_match(\"/union/\", $get)) or\n \t\t\t(preg_match(\"/--/\", $get)) )\n {\n \t\t\tdie( 'Forbidden Action' );\n \t\t\t}\n \t\t}\n \t\t \t\t\n \t\t// ... //\n \t\t\n \t\t// Stop any external post request.\n \t\t// At least prevent novice crackers.\n \t\tif ( $MySmartBB->_SERVER['REQUEST_METHOD'] == 'POST' )\n \t{\n \t\t// ... //\n \t\t\n \t\t\t$from = explode( '/', $MySmartBB->_SERVER[ 'HTTP_REFERER' ] );\n \t\t\t$host = explode( '/', $MySmartBB->_SERVER[ 'HTTP_HOST' ] );\n\n \t\t\t// ... //\n \t\t\t\n \t\t\tif ( $from[ 2 ] != $host[ 0 ] )\n \t\t\t\tdie( 'Forbidden Action' );\n \t\t\t\n \t\t\t// ... //\n \t\t}\n \t\t\n \t\t// ... //\n\t}",
"public function getAttack()\n {\n return $this->attack;\n }",
"public function is_block_theme()\n {\n }",
"public function hasBlocked()\n {\n return $this->blocked !== null;\n }",
"public function onBreak(BlockBreakEvent $event){\n\t\tif($event->getBlock()->getLevel()->getTile($event->getBlock()) instanceof CustomChest) $event->setCancelled();\n\t}",
"public static function ability_function_forward_attack($objects, $target_options, $damage_options, $recovery_options, $effect_options = array()){\n\n // Define defaults for undefined target options\n if (!isset($target_options['stat_kind'])){ $target_options['stat_kind'] = 'energy'; }\n if (!isset($target_options['robot_frame'])){ $target_options['robot_frame'] = 'shoot'; }\n if (!isset($target_options['robot_kickback'])){ $target_options['robot_kickback'] = array(0, 0, 0); }\n if (!isset($target_options['ability_frame'])){ $target_options['ability_frame'] = 0; }\n if (!isset($target_options['ability_offset'])){ $target_options['ability_offset'] = array(110, 0, 10); }\n if (!isset($target_options['ability_text'])){ $target_options['ability_text'] = '{this_robot_name} uses the {this_ability_name}!'; }\n\n // Define defaults for undefined damage options\n if (!isset($damage_options['robot_frame'])){ $damage_options['robot_frame'] = 'damage'; }\n if (!isset($damage_options['robot_kickback'])){ $damage_options['robot_kickback'] = array(10, 0, 0); }\n if (!isset($damage_options['ability_sucess_frame'])){ $damage_options['ability_sucess_frame'] = 4; }\n if (!isset($damage_options['ability_success_offset'])){ $damage_options['ability_success_offset'] = array(-90, 0, 10); }\n if (!isset($damage_options['ability_success_text'])){ $damage_options['ability_success_text'] = 'The {this_ability_name} hit the target!'; }\n if (!isset($damage_options['ability_failure_frame'])){ $damage_options['ability_failure_frame'] = 4; }\n if (!isset($damage_options['ability_failure_offset'])){ $damage_options['ability_failure_offset'] = array(-100, 0, -10); }\n if (!isset($damage_options['ability_failure_text'])){ $damage_options['ability_failure_text'] = 'The {this_ability_name} missed...'; }\n\n // Define defaults for undefined recovery options\n if (!isset($recovery_options['robot_frame'])){ $recovery_options['robot_frame'] = 'taunt'; }\n if (!isset($recovery_options['robot_kickback'])){ $recovery_options['robot_kickback'] = array(0, 0, 0); }\n if (!isset($recovery_options['ability_sucess_frame'])){ $recovery_options['ability_sucess_frame'] = 4; }\n if (!isset($recovery_options['ability_success_offset'])){ $recovery_options['ability_success_offset'] = array(-45, 0, 10); }\n if (!isset($recovery_options['ability_success_text'])){ $recovery_options['ability_success_text'] = 'The {this_ability_name} was absorbed by the target!'; }\n if (!isset($recovery_options['ability_failure_frame'])){ $recovery_options['ability_failure_frame'] = 4; }\n if (!isset($recovery_options['ability_failure_offset'])){ $recovery_options['ability_failure_offset'] = array(-100, 0, -10); }\n if (!isset($recovery_options['ability_failure_text'])){ $recovery_options['ability_failure_text'] = 'The {this_ability_name} had no effect on the target...'; }\n\n // Define defaults for undefined effect options\n if (!isset($effect_options['stat_kind'])){ $effect_options = false; }\n else {\n if (!isset($effect_options['damage_text'])){ $effect_options['damage_text'] = '{this_robot_name}\\'s stats were damaged!'; }\n if (!isset($effect_options['recovery_text'])){ $effect_options['recovery_text'] = '{this_robot_name}\\'s stats improved!'; }\n if (!isset($effect_options['effect_chance'])){ $effect_options['effect_chance'] = 50; }\n }\n\n // Extract all objects into the current scope\n extract($objects);\n\n // Define Search and replace object strings for replacing\n $search_replace = array();\n $search_replace['this_player_name'] = $this_player->print_player_name();\n $search_replace['this_robot_name'] = $this_robot->print_robot_name();\n $search_replace['target_player_name'] = $target_player->print_player_name();\n $search_replace['target_robot_name'] = $target_robot->print_robot_name();\n $search_replace['this_ability_name'] = $this_ability->print_ability_name();\n\n // Run the obtion arrays through the parsing function\n $target_options = self::parse_string_variables($search_replace, $target_options);\n $damage_options = self::parse_string_variables($search_replace, $damage_options);\n $recovery_options = self::parse_string_variables($search_replace, $recovery_options);\n if (!empty($effect_options)){\n $effect_options = self::parse_string_variables($search_replace, $effect_options);\n }\n\n // Update target options for this ability\n $this_ability->target_options_update(array(\n 'frame' => $target_options['robot_frame'],\n 'kickback' => $target_options['robot_kickback'],\n 'success' => array(\n $target_options['ability_frame'],\n $target_options['ability_offset'][0],\n $target_options['ability_offset'][1],\n $target_options['ability_offset'][2],\n $target_options['ability_text']\n )\n ));\n\n // Update damage options for this ability\n $this_ability->damage_options_update(array(\n 'kind' => $target_options['stat_kind'],\n 'frame' => $damage_options['robot_frame'],\n 'kickback' => $damage_options['robot_kickback'],\n 'success' => array(\n $damage_options['ability_sucess_frame'],\n $damage_options['ability_success_offset'][0],\n $damage_options['ability_success_offset'][1],\n $damage_options['ability_success_offset'][2],\n $damage_options['ability_success_text']\n ),\n 'failure' => array(\n $damage_options['ability_failure_frame'],\n $damage_options['ability_failure_offset'][0],\n $damage_options['ability_failure_offset'][1],\n $damage_options['ability_failure_offset'][2],\n $damage_options['ability_failure_text']\n )\n ));\n\n // Update recovery options for this ability\n $this_ability->recovery_options_update(array(\n 'kind' => $target_options['stat_kind'],\n 'frame' => $recovery_options['robot_frame'],\n 'kickback' => $recovery_options['robot_kickback'],\n 'success' => array(\n $recovery_options['ability_sucess_frame'],\n $recovery_options['ability_success_offset'][0],\n $recovery_options['ability_success_offset'][1],\n $recovery_options['ability_success_offset'][2],\n $recovery_options['ability_success_text']\n ),\n 'failure' => array(\n $damage_options['ability_failure_frame'],\n $damage_options['ability_failure_offset'][0],\n $damage_options['ability_failure_offset'][1],\n $damage_options['ability_failure_offset'][2],\n $damage_options['ability_failure_text']\n )\n ));\n\n\n // Target the opposing robot with this ability\n $this_robot->trigger_target($target_robot, $this_ability);\n\n // Attempt to inflict damage on the opposing robot\n $stat_damage_amount = $this_ability->ability_damage;\n $target_robot->trigger_damage($this_robot, $this_ability, $stat_damage_amount);\n\n // Only apply a secondary affect if one was defined\n if (!empty($effect_options)){\n\n // Define the stat property strings\n $robot_stat_prop = 'robot_'.$effect_options['stat_kind'];\n\n // Trigger effect if target isn't disabled and ability was successful and chance\n if (\n $target_robot->robot_status != 'disabled' &&\n $this_ability->ability_results['this_result'] != 'failure' &&\n $this_ability->ability_results['this_amount'] > 0 &&\n $target_robot->$robot_stat_prop > 0 &&\n ($effect_options['effect_chance'] == 100 || $this_battle->critical_chance($effect_options['effect_chance']))\n ){\n\n // Define the default damage options for the stat effect\n $this_ability->damage_options_update(array(\n 'kind' => $effect_options['stat_kind'],\n 'frame' => 'defend',\n 'percent' => true,\n 'kickback' => array(10, 0, 0),\n 'success' => array(9, 0, 0, -10, $effect_options['damage_text']),\n 'failure' => array(9, 0, 0, -9999, '')\n ));\n\n // Define the default recovery options for the stat effect\n $this_ability->recovery_options_update(array(\n 'kind' => $effect_options['stat_kind'],\n 'frame' => 'taunt',\n 'percent' => true,\n 'kickback' => array(0, 0, 0),\n 'success' => array(9, 0, 0, -10, $effect_options['recovery_text']),\n 'failure' => array(9, 0, 0, -9999, '')\n ));\n\n // Calculate the exact damage amount and trigger it on the target\n $trigger_options = array('apply_modifiers' => false);\n $stat_damage_amount = ceil($target_robot->$robot_stat_prop * ($this_ability->ability_damage2 / 100));\n $target_robot->trigger_damage($this_robot, $this_ability, $stat_damage_amount, true, $trigger_options);\n }\n\n }\n\n // Return true on success\n return true;\n\n }",
"public function hasDefense(){\r\n return $this->_has(6);\r\n }",
"function ban_user($reason, $duration, $user_id) {\n\tif(!set_user_role(ROLE_BANNED, $user_id)) {\n\t\treturn false;\n\t}\n\tadd_ban_details($reason, $duration, $user_id);\n\n\treturn true;\n}",
"public function banUser(){\n if($this->adminVerify()){\n\n }else{\n echo \"Vous devez avoir les droits administrateur pour accéder à cette page\";\n }\n }",
"function is_banned()\n\t{\n\t\treturn $this->_banned;\n\t}"
] | [
"0.5783276",
"0.5361477",
"0.5286241",
"0.5276812",
"0.51689386",
"0.5086634",
"0.5077476",
"0.50732356",
"0.50585276",
"0.50259596",
"0.50109994",
"0.50036454",
"0.49991325",
"0.4981347",
"0.4973806",
"0.4952765",
"0.493337",
"0.49172273",
"0.49167368",
"0.4907985",
"0.48989463",
"0.48972565",
"0.4896613",
"0.48811448",
"0.48789582",
"0.48750672",
"0.48591542",
"0.48296154",
"0.4818889",
"0.48026785",
"0.47894388",
"0.4789044",
"0.47782058",
"0.47703633",
"0.47613502",
"0.47464776",
"0.47304946",
"0.471684",
"0.4711761",
"0.4706994",
"0.46752286",
"0.46740043",
"0.4666433",
"0.46634263",
"0.46569228",
"0.46432883",
"0.46332645",
"0.46329573",
"0.46291196",
"0.46263158",
"0.4625883",
"0.4615571",
"0.46155348",
"0.4613874",
"0.4612243",
"0.46068302",
"0.459005",
"0.4582821",
"0.456592",
"0.45617566",
"0.45598406",
"0.45597684",
"0.45538265",
"0.4550776",
"0.4549409",
"0.45205545",
"0.451682",
"0.45143765",
"0.45124254",
"0.4512087",
"0.45103523",
"0.4510018",
"0.45096168",
"0.4507654",
"0.4499028",
"0.44919246",
"0.44870248",
"0.44865555",
"0.44829816",
"0.4478964",
"0.44772798",
"0.44767666",
"0.44657505",
"0.4464608",
"0.44624877",
"0.44607928",
"0.44588783",
"0.44580317",
"0.44571462",
"0.44567278",
"0.44565108",
"0.4454361",
"0.44505072",
"0.44472194",
"0.44403487",
"0.4432404",
"0.44323137",
"0.44212177",
"0.44194224",
"0.4419064"
] | 0.58765244 | 0 |
Empty event handler. Only there to have a fallback function if a SpecialnessBehavior class does not provide it. "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnAfterAction($event) { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function HookEvents();",
"public static function usesCustomHandler();",
"public function shouldntRaiseAnEvent()\n {\n }",
"public function behaviors() {\n return array(\"application.components.SpecialnessBehavior\");\n }",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function getBase(): false|EventBase {}",
"abstract protected function handle($event);",
"public function handles_events()\n\t{\n\t\treturn false;\n\t}",
"public function getDefaultHandler();",
"public function onOutOfBand (): void;",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"private function set_default_behaviour()\n {\n if (isset($this->_config['behaviour']['default'])) {\n $_func_name = $this->_config['behaviour']['default'];\n if ($_func_name && is_string($_func_name) && function_exists($this->_default_func)) {\n $this->_default_func = $_func_name;\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n }",
"abstract public function handler() : void;",
"public function isHandled(): bool;",
"function getSpecialHandling()\n\t{\n\t\treturn $this->_specialHandling;\n\t}",
"public function reactToOnBeforeDealDamage($event) { }",
"public function getDefaultCallback();",
"abstract public function handle(AbstractEvent $event): void;",
"abstract protected function doEvil();",
"final public function allowsEvents() {\n\t\treturn false;\n\t}",
"abstract public function shouldHandle(): bool;",
"protected abstract function applyNoArg();",
"public function isSpecial();",
"function testBehaviorDisabledToTag() {\n\t\t$this->tag->Behaviors->disable('Documentable');\n\t\t$result = $this->tag->Behaviors->enabled('Documentable');\n\t\t$this->assertFalse($result);\n\t}",
"public function hook();",
"abstract protected function inscriretruetrue($event, $membre);",
"function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}",
"public function implementedEvents() {\n\t\treturn parent::implementedEvents() + [\n\t\t\t'Visualisation.onCheck' => array('callable' => 'onCheck', 'passParams' => true)\n\t\t];\n\t}",
"protected function applyElementBehavior(): void\n {\n $behaviors = isset($this->elementBehaviors[$this->element()]) ? $this->elementBehaviors[$this->element()] : [];\n\n foreach ($behaviors as $behavior) {\n $this->{$behavior}(true);\n }\n }",
"abstract public function fire();",
"function eventclass_slot()\n\t{\n\n//\tonscreen events\n\n\t}",
"public static function event_method()\n {\n return true;\n }",
"public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}",
"public function getIsHandled();",
"private function __construct()\n {\n // disabled method\n }",
"public function reactToOnBeforeTakingDamage($event) { }",
"protected function setEventName() {\n return NULL;\n }",
"function __construct() {\r\n\t\tparent::disable_loop_block_features();\r\n\t}",
"public function test_event_notification_with_unexisting_method()\n {\n $this->event_notification_helper('unexisting_method', true);\n }",
"public static function __events () {\n \n }",
"abstract protected function handle(): void;",
"public function handledClass();",
"public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }",
"public function isOverrideAllowed();",
"public function testBehaviorOrderCallbacks() {\n\t\t$model = ClassRegistry::init ( 'Orangutan' );\n\t\t$model->Behaviors->init ( 'Orangutan', array (\n\t\t\t\t'Second' => array (\n\t\t\t\t\t\t'priority' => 9 \n\t\t\t\t),\n\t\t\t\t'Third',\n\t\t\t\t'First' => array (\n\t\t\t\t\t\t'priority' => 8 \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\t$this->assertEmpty ( $model->called );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'ThirdBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'Third', array (\n\t\t\t\t'priority' => 1 \n\t\t) );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'First' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->unload ( 'Third' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->disable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->enable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t}",
"public function hookHandler() {\n\n\t\t$this->buildDependencyMap();\n\t\t$this->handled = array();\n $this->priorityHelpers = array();\n\n\t\tforeach ($this->priorityBased['min'] as $priority=>$v) {\n\t\t\t$this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\t\tforeach ($this->priorityBased['max'] as $priority=>$v) {\n if (!isset($this->priorityBased['min'][$priority]))\n $this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\n\t\t// trigger priority helper cleanup after everything else was done\n add_action($this->hookName,array($this,'priorityHandlerCleanup'),self::LATEST+1);\n \t}",
"function did_filter($hook_name)\n {\n }",
"public function testHydrateNotImplementing(): void\n {\n $this->hydrateEvent->getDocument()->willReturn($this->notImplementing);\n $this->hydrateEvent->getOption(Argument::any())->shouldNotBeCalled();\n\n $this->subscriber->handleHydrate($this->hydrateEvent->reveal());\n }",
"public function testSpecial(): void {\n\t}",
"protected function _initialize() {\n\t\tparent::_initialize();\n\t\t\n\t\tforeach ($this->_behaviors as $key => $value) {\n\t\t\t$behavior = is_string($key) ? $key : $value;\n\t\t\t$config = is_array($value) ? $value : array();\n\t\t\t\n\t\t\tunset($this->_behaviors[$key]);\n\t\t\t$this->attach_behavior(new $behavior($this, $config));\n\t\t}\n\t}",
"protected function initialize() {\n // NOOP\n }",
"private function public_hooks()\n\t{\n\t}",
"public function stopPropagation(): void;",
"function unknownHandler($d, $data, $clientid){\n\t}",
"public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }",
"public function onEvent();",
"protected function addDefaultHandlers()\n {\n // When the server PINGs us, just respond with PONG and the server's host\n $pingHandler = new EventListener(null, function($event) {\n $event->addResponse(Response::pong($event->getRequest()->getMessage()));\n });\n\n // If an Error message is encountered, just log it for now.\n $log = $this->log;\n $errorHandler = new EventListener(null, function($event) use ($log) {\n $log->debug(\"ERROR: {$event->getRequest()->getMessage()}\");\n });\n\n $this->dispatcher->addListener('server.ping', array($pingHandler, 'testAndExecute'));\n $this->dispatcher->addListener('server.error', array($errorHandler, 'testAndExecute'));\n }",
"function noop() {\n}",
"public static function override($event, $callback) {\n static::clear($event);\n\n static::listen($event, $callback);\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract public function getEventName();",
"protected static function event_throw_incomplete() {\n throw new moodle_exception('event:incompleteimplementation',\n 'local_licensing', '', get_called_class());\n }",
"function noop()\n {\n }",
"public function postLoad(Interpreter $interpreter, LifecycleEventArgs $event)\n {\n // disabled it because another wildcards listener is expecting\n // certain params\n //$$this->getEventManager()->trigger(__FUNCTION__, $this);\n }",
"public function testExtendedState(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateThree::class);\n self::assertEquals(666, $daughterInstance->method6());\n\n $grandDaughterInstance = new GrandDaughter();\n $grandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandDaughterInstance->method6());\n self::assertEquals(777, $grandDaughterInstance->method7());\n\n $grandGrandDaughterInstance = new GrandGrandDaughter();\n $grandGrandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandGrandDaughterInstance->method6());\n self::assertEquals(777, $grandGrandDaughterInstance->method7());\n }",
"function method_no_specs() {}",
"private function init_nopriv_event_listeners() {\n\t\t// add_action('wp_ajax_nopriv_example_action', [$this, 'example_function']);\n\t}",
"function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }",
"final private function markAsHandled(hookHandler $handler) {\n\t\t$this->handled[spl_object_hash($handler)] = true;\n\t}",
"public function onDisable() {\n\t}",
"public function replace_3rd_party_pugins_hooks(){\n }",
"public function testLoadDisabled() {\n\t\t$Apple = new Apple ();\n\t\t$this->assertSame ( array (), $Apple->Behaviors->loaded () );\n\t\t\n\t\t$Apple->Behaviors->load ( 'Translate', array (\n\t\t\t\t'enabled' => false \n\t\t) );\n\t\t$this->assertTrue ( $Apple->Behaviors->loaded ( 'Translate' ) );\n\t\t$this->assertFalse ( $Apple->Behaviors->enabled ( 'Translate' ) );\n\t}",
"abstract protected function _preHandle();",
"public function nothing(): void;",
"public function supportsHookSubscribers()\n {\n return false;\n }",
"public function testDispatchWithNotifierNotSupportEvent()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('foo', $event)\n ->will($this->returnValue($event));\n\n $this->notifier->expects($this->once())\n ->method('supportsObject')\n ->with($event, 'foo')\n ->will($this->returnValue(false));\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('foo', $event);\n }",
"public function hooks() {\n\t\tadd_action( 'wp_ajax_wp_sc_form_process_'. $this->button_slug, array( $this, 'process_form' ) );\n\n\t\t// If we have a conditional callback and the return of the callback is false\n\t\tif ( $this->args['conditional_callback'] && is_callable( $this->args['conditional_callback'] ) && ! call_user_func( $this->args['conditional_callback'], $this ) ) {\n\t\t\t// Then that means we should bail\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'admin_init', array( $this, 'button_init' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_modal_form' ) );\n\t}",
"public function set_hooks() {\n\t\t\t$this->hook_prefix = photonfill_hook_prefix();\n\n\t\t\t// Override Photon arg.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_array', array( $this, 'set_photon_args' ), 5, 2 );\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_string', array( $this, 'set_photon_args' ), 5, 2 );\n\n\t\t\t// If we're using the photonfill_bypass_image_downsize, we skip downsize, and now need to\n\t\t\t// ensure the Photon args are being set (but with a lower priority).\n\t\t\tif ( apply_filters( 'photonfill_bypass_image_downsize', false ) ) {\n\t\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'set_photon_args' ), 4, 3 );\n\t\t\t}\n\n\t\t\t// Transform our Photon url.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'transform_photon_url' ), 5, 1 );\n\t\t}",
"public function disable_extension(){}",
"abstract protected function handle();",
"protected function preHandle(Event $ev) { return; }",
"public function testEventCallBackPatch()\n {\n }",
"function __onload($params){\n\t\t$this->disable_methods();\n\t}",
"public function boot()\n {\n if (!$this->isEnabled()) return;\n\n parent::boot();\n }",
"public function setIsHandled($bool);",
"protected function initHandlers()\n\t{\n\t}",
"function doing_filter($hook_name = \\null)\n {\n }",
"abstract function selectHook();",
"public function testRegisterListenerThrowsExceptionForEmptyClassCallback()\n\t{\n\t\t$instance = new Dispatcher();\n\n\t\t$instance->register_listener('random', array());\n\t}",
"final public function __wakeup(){\n throw new Exception('Feature disabled.');\n }",
"public function testComposerPrePackageUninstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package('dummy', '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('uninstall');\n $this->app->handleEvent($event);\n }",
"protected function func_default() {}",
"public function hook()\n {\n // Add the settings tab\n// $this->on('!wprss_options_tabs', array($this, 'addTab'), null, 100);\n // Register the settings option, sections and fields\n// $this->on('!wprss_admin_init', array($this, 'register'));\n\n parent::hook();\n }",
"function fann_set_activation_function_hidden($ann, $activation_function)\n{\n}",
"public static function withoutTouching(callable $callback);",
"public function noOnclick($flag = true)\n {\n $this->noOnclick = $flag;\n }",
"#[Pure]\n public function __construct(EventBase $base, bool $initialize) {}",
"public function preventDefault() {\n\t\t$this->runDefault = false;\n\t}"
] | [
"0.57540596",
"0.5727323",
"0.57113004",
"0.5701299",
"0.56790817",
"0.5578631",
"0.54766786",
"0.54480755",
"0.5348219",
"0.5329564",
"0.530385",
"0.530385",
"0.5289556",
"0.5289252",
"0.52645624",
"0.52549374",
"0.5215005",
"0.5209896",
"0.51986986",
"0.5188996",
"0.5188425",
"0.5152794",
"0.5124203",
"0.5068401",
"0.50286084",
"0.5010182",
"0.49952123",
"0.49850428",
"0.49738196",
"0.4943097",
"0.49211657",
"0.48995662",
"0.48977754",
"0.48905107",
"0.48800218",
"0.48796776",
"0.4876449",
"0.48728734",
"0.48580033",
"0.48563546",
"0.48505655",
"0.48483205",
"0.48446018",
"0.4841639",
"0.4837204",
"0.48353595",
"0.48299155",
"0.48195338",
"0.48177454",
"0.48148343",
"0.48069662",
"0.47896838",
"0.4775221",
"0.47717553",
"0.47675958",
"0.47598347",
"0.47569737",
"0.47539815",
"0.4751633",
"0.47466025",
"0.474459",
"0.474459",
"0.474459",
"0.4735153",
"0.4730976",
"0.4730821",
"0.4712238",
"0.47073182",
"0.47063032",
"0.470394",
"0.47026756",
"0.46994418",
"0.46933043",
"0.4690732",
"0.46860024",
"0.46813685",
"0.46806",
"0.4677852",
"0.4657034",
"0.46546125",
"0.46544945",
"0.46495447",
"0.46430352",
"0.46363845",
"0.4633284",
"0.4631946",
"0.46315724",
"0.4629142",
"0.46211305",
"0.4613099",
"0.46108964",
"0.46094358",
"0.46075714",
"0.4592093",
"0.45829916",
"0.45761806",
"0.45723403",
"0.45694372",
"0.45682368",
"0.4566426",
"0.45638806"
] | 0.0 | -1 |
Empty event handler. Only there to have a fallback function if a SpecialnessBehavior class does not provide it. "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnBeforeDealDamage($event) { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function HookEvents();",
"public static function usesCustomHandler();",
"public function shouldntRaiseAnEvent()\n {\n }",
"public function behaviors() {\n return array(\"application.components.SpecialnessBehavior\");\n }",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function getBase(): false|EventBase {}",
"abstract protected function handle($event);",
"public function handles_events()\n\t{\n\t\treturn false;\n\t}",
"public function getDefaultHandler();",
"public function onOutOfBand (): void;",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"abstract public function handler() : void;",
"private function set_default_behaviour()\n {\n if (isset($this->_config['behaviour']['default'])) {\n $_func_name = $this->_config['behaviour']['default'];\n if ($_func_name && is_string($_func_name) && function_exists($this->_default_func)) {\n $this->_default_func = $_func_name;\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n }",
"public function isHandled(): bool;",
"function getSpecialHandling()\n\t{\n\t\treturn $this->_specialHandling;\n\t}",
"public function getDefaultCallback();",
"abstract public function handle(AbstractEvent $event): void;",
"final public function allowsEvents() {\n\t\treturn false;\n\t}",
"abstract protected function doEvil();",
"abstract public function shouldHandle(): bool;",
"protected abstract function applyNoArg();",
"public function isSpecial();",
"function testBehaviorDisabledToTag() {\n\t\t$this->tag->Behaviors->disable('Documentable');\n\t\t$result = $this->tag->Behaviors->enabled('Documentable');\n\t\t$this->assertFalse($result);\n\t}",
"public function hook();",
"abstract protected function inscriretruetrue($event, $membre);",
"function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}",
"public function implementedEvents() {\n\t\treturn parent::implementedEvents() + [\n\t\t\t'Visualisation.onCheck' => array('callable' => 'onCheck', 'passParams' => true)\n\t\t];\n\t}",
"protected function applyElementBehavior(): void\n {\n $behaviors = isset($this->elementBehaviors[$this->element()]) ? $this->elementBehaviors[$this->element()] : [];\n\n foreach ($behaviors as $behavior) {\n $this->{$behavior}(true);\n }\n }",
"abstract public function fire();",
"function eventclass_slot()\n\t{\n\n//\tonscreen events\n\n\t}",
"public static function event_method()\n {\n return true;\n }",
"public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}",
"public function getIsHandled();",
"private function __construct()\n {\n // disabled method\n }",
"public function reactToOnBeforeTakingDamage($event) { }",
"protected function setEventName() {\n return NULL;\n }",
"function __construct() {\r\n\t\tparent::disable_loop_block_features();\r\n\t}",
"public function test_event_notification_with_unexisting_method()\n {\n $this->event_notification_helper('unexisting_method', true);\n }",
"public static function __events () {\n \n }",
"abstract protected function handle(): void;",
"public function handledClass();",
"public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }",
"public function testBehaviorOrderCallbacks() {\n\t\t$model = ClassRegistry::init ( 'Orangutan' );\n\t\t$model->Behaviors->init ( 'Orangutan', array (\n\t\t\t\t'Second' => array (\n\t\t\t\t\t\t'priority' => 9 \n\t\t\t\t),\n\t\t\t\t'Third',\n\t\t\t\t'First' => array (\n\t\t\t\t\t\t'priority' => 8 \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\t$this->assertEmpty ( $model->called );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'ThirdBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'Third', array (\n\t\t\t\t'priority' => 1 \n\t\t) );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'First' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->unload ( 'Third' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->disable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->enable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t}",
"public function isOverrideAllowed();",
"public function hookHandler() {\n\n\t\t$this->buildDependencyMap();\n\t\t$this->handled = array();\n $this->priorityHelpers = array();\n\n\t\tforeach ($this->priorityBased['min'] as $priority=>$v) {\n\t\t\t$this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\t\tforeach ($this->priorityBased['max'] as $priority=>$v) {\n if (!isset($this->priorityBased['min'][$priority]))\n $this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\n\t\t// trigger priority helper cleanup after everything else was done\n add_action($this->hookName,array($this,'priorityHandlerCleanup'),self::LATEST+1);\n \t}",
"function did_filter($hook_name)\n {\n }",
"public function testHydrateNotImplementing(): void\n {\n $this->hydrateEvent->getDocument()->willReturn($this->notImplementing);\n $this->hydrateEvent->getOption(Argument::any())->shouldNotBeCalled();\n\n $this->subscriber->handleHydrate($this->hydrateEvent->reveal());\n }",
"public function testSpecial(): void {\n\t}",
"protected function _initialize() {\n\t\tparent::_initialize();\n\t\t\n\t\tforeach ($this->_behaviors as $key => $value) {\n\t\t\t$behavior = is_string($key) ? $key : $value;\n\t\t\t$config = is_array($value) ? $value : array();\n\t\t\t\n\t\t\tunset($this->_behaviors[$key]);\n\t\t\t$this->attach_behavior(new $behavior($this, $config));\n\t\t}\n\t}",
"protected function initialize() {\n // NOOP\n }",
"private function public_hooks()\n\t{\n\t}",
"public function stopPropagation(): void;",
"function unknownHandler($d, $data, $clientid){\n\t}",
"public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }",
"public function onEvent();",
"protected function addDefaultHandlers()\n {\n // When the server PINGs us, just respond with PONG and the server's host\n $pingHandler = new EventListener(null, function($event) {\n $event->addResponse(Response::pong($event->getRequest()->getMessage()));\n });\n\n // If an Error message is encountered, just log it for now.\n $log = $this->log;\n $errorHandler = new EventListener(null, function($event) use ($log) {\n $log->debug(\"ERROR: {$event->getRequest()->getMessage()}\");\n });\n\n $this->dispatcher->addListener('server.ping', array($pingHandler, 'testAndExecute'));\n $this->dispatcher->addListener('server.error', array($errorHandler, 'testAndExecute'));\n }",
"function noop() {\n}",
"public static function override($event, $callback) {\n static::clear($event);\n\n static::listen($event, $callback);\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract public function getEventName();",
"protected static function event_throw_incomplete() {\n throw new moodle_exception('event:incompleteimplementation',\n 'local_licensing', '', get_called_class());\n }",
"function noop()\n {\n }",
"public function postLoad(Interpreter $interpreter, LifecycleEventArgs $event)\n {\n // disabled it because another wildcards listener is expecting\n // certain params\n //$$this->getEventManager()->trigger(__FUNCTION__, $this);\n }",
"public function testExtendedState(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateThree::class);\n self::assertEquals(666, $daughterInstance->method6());\n\n $grandDaughterInstance = new GrandDaughter();\n $grandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandDaughterInstance->method6());\n self::assertEquals(777, $grandDaughterInstance->method7());\n\n $grandGrandDaughterInstance = new GrandGrandDaughter();\n $grandGrandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandGrandDaughterInstance->method6());\n self::assertEquals(777, $grandGrandDaughterInstance->method7());\n }",
"function method_no_specs() {}",
"private function init_nopriv_event_listeners() {\n\t\t// add_action('wp_ajax_nopriv_example_action', [$this, 'example_function']);\n\t}",
"function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }",
"final private function markAsHandled(hookHandler $handler) {\n\t\t$this->handled[spl_object_hash($handler)] = true;\n\t}",
"public function onDisable() {\n\t}",
"public function replace_3rd_party_pugins_hooks(){\n }",
"public function testLoadDisabled() {\n\t\t$Apple = new Apple ();\n\t\t$this->assertSame ( array (), $Apple->Behaviors->loaded () );\n\t\t\n\t\t$Apple->Behaviors->load ( 'Translate', array (\n\t\t\t\t'enabled' => false \n\t\t) );\n\t\t$this->assertTrue ( $Apple->Behaviors->loaded ( 'Translate' ) );\n\t\t$this->assertFalse ( $Apple->Behaviors->enabled ( 'Translate' ) );\n\t}",
"abstract protected function _preHandle();",
"public function nothing(): void;",
"public function supportsHookSubscribers()\n {\n return false;\n }",
"public function testDispatchWithNotifierNotSupportEvent()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('foo', $event)\n ->will($this->returnValue($event));\n\n $this->notifier->expects($this->once())\n ->method('supportsObject')\n ->with($event, 'foo')\n ->will($this->returnValue(false));\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('foo', $event);\n }",
"public function hooks() {\n\t\tadd_action( 'wp_ajax_wp_sc_form_process_'. $this->button_slug, array( $this, 'process_form' ) );\n\n\t\t// If we have a conditional callback and the return of the callback is false\n\t\tif ( $this->args['conditional_callback'] && is_callable( $this->args['conditional_callback'] ) && ! call_user_func( $this->args['conditional_callback'], $this ) ) {\n\t\t\t// Then that means we should bail\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'admin_init', array( $this, 'button_init' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_modal_form' ) );\n\t}",
"public function set_hooks() {\n\t\t\t$this->hook_prefix = photonfill_hook_prefix();\n\n\t\t\t// Override Photon arg.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_array', array( $this, 'set_photon_args' ), 5, 2 );\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_string', array( $this, 'set_photon_args' ), 5, 2 );\n\n\t\t\t// If we're using the photonfill_bypass_image_downsize, we skip downsize, and now need to\n\t\t\t// ensure the Photon args are being set (but with a lower priority).\n\t\t\tif ( apply_filters( 'photonfill_bypass_image_downsize', false ) ) {\n\t\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'set_photon_args' ), 4, 3 );\n\t\t\t}\n\n\t\t\t// Transform our Photon url.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'transform_photon_url' ), 5, 1 );\n\t\t}",
"public function disable_extension(){}",
"abstract protected function handle();",
"protected function preHandle(Event $ev) { return; }",
"public function testEventCallBackPatch()\n {\n }",
"function __onload($params){\n\t\t$this->disable_methods();\n\t}",
"public function boot()\n {\n if (!$this->isEnabled()) return;\n\n parent::boot();\n }",
"public function setIsHandled($bool);",
"protected function initHandlers()\n\t{\n\t}",
"function doing_filter($hook_name = \\null)\n {\n }",
"abstract function selectHook();",
"public function testRegisterListenerThrowsExceptionForEmptyClassCallback()\n\t{\n\t\t$instance = new Dispatcher();\n\n\t\t$instance->register_listener('random', array());\n\t}",
"final public function __wakeup(){\n throw new Exception('Feature disabled.');\n }",
"public function testComposerPrePackageUninstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package('dummy', '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('uninstall');\n $this->app->handleEvent($event);\n }",
"protected function func_default() {}",
"public function hook()\n {\n // Add the settings tab\n// $this->on('!wprss_options_tabs', array($this, 'addTab'), null, 100);\n // Register the settings option, sections and fields\n// $this->on('!wprss_admin_init', array($this, 'register'));\n\n parent::hook();\n }",
"function fann_set_activation_function_hidden($ann, $activation_function)\n{\n}",
"public static function withoutTouching(callable $callback);",
"public function noOnclick($flag = true)\n {\n $this->noOnclick = $flag;\n }",
"#[Pure]\n public function __construct(EventBase $base, bool $initialize) {}",
"public function preventDefault() {\n\t\t$this->runDefault = false;\n\t}"
] | [
"0.57549065",
"0.572741",
"0.57116985",
"0.57023585",
"0.56787324",
"0.557894",
"0.5477127",
"0.5449194",
"0.5348193",
"0.5329303",
"0.530269",
"0.530269",
"0.5289751",
"0.52885824",
"0.5264387",
"0.52549034",
"0.5209728",
"0.5199234",
"0.5189028",
"0.51880175",
"0.51523566",
"0.51234955",
"0.50667584",
"0.5028434",
"0.5010275",
"0.49947092",
"0.49859616",
"0.49748436",
"0.4943262",
"0.49211037",
"0.4899959",
"0.48984286",
"0.48902038",
"0.48798472",
"0.4879126",
"0.48759848",
"0.48728424",
"0.4857604",
"0.48562244",
"0.48516163",
"0.4848411",
"0.4845457",
"0.4841149",
"0.48363268",
"0.483567",
"0.4830925",
"0.48201752",
"0.4816604",
"0.4813753",
"0.48080862",
"0.4788925",
"0.47755003",
"0.47722876",
"0.4767577",
"0.4760071",
"0.47574002",
"0.47539452",
"0.47499996",
"0.47452432",
"0.47436973",
"0.47436973",
"0.47436973",
"0.47358915",
"0.4731314",
"0.4729393",
"0.4712983",
"0.47068244",
"0.47049445",
"0.4704176",
"0.4701705",
"0.46996558",
"0.46928144",
"0.46906093",
"0.46855566",
"0.46806827",
"0.46794412",
"0.4678468",
"0.46570712",
"0.46557564",
"0.46545273",
"0.4648388",
"0.4643401",
"0.4635788",
"0.4634236",
"0.46312988",
"0.46307826",
"0.46289265",
"0.46214545",
"0.46132678",
"0.4610839",
"0.46098077",
"0.46073982",
"0.45909414",
"0.45816213",
"0.4576005",
"0.45721194",
"0.45686164",
"0.4567316",
"0.45661238",
"0.45641112"
] | 0.5214572 | 16 |
Empty event handler. Only there to have a fallback function if a SpecialnessBehavior class does not provide it. "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnAfterDealtDamage($event) { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function HookEvents();",
"public static function usesCustomHandler();",
"public function shouldntRaiseAnEvent()\n {\n }",
"public function behaviors() {\n return array(\"application.components.SpecialnessBehavior\");\n }",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function getBase(): false|EventBase {}",
"abstract protected function handle($event);",
"public function handles_events()\n\t{\n\t\treturn false;\n\t}",
"public function getDefaultHandler();",
"public function onOutOfBand (): void;",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"abstract public function handler() : void;",
"private function set_default_behaviour()\n {\n if (isset($this->_config['behaviour']['default'])) {\n $_func_name = $this->_config['behaviour']['default'];\n if ($_func_name && is_string($_func_name) && function_exists($this->_default_func)) {\n $this->_default_func = $_func_name;\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n }",
"public function isHandled(): bool;",
"function getSpecialHandling()\n\t{\n\t\treturn $this->_specialHandling;\n\t}",
"public function reactToOnBeforeDealDamage($event) { }",
"public function getDefaultCallback();",
"abstract public function handle(AbstractEvent $event): void;",
"final public function allowsEvents() {\n\t\treturn false;\n\t}",
"abstract protected function doEvil();",
"abstract public function shouldHandle(): bool;",
"protected abstract function applyNoArg();",
"public function isSpecial();",
"function testBehaviorDisabledToTag() {\n\t\t$this->tag->Behaviors->disable('Documentable');\n\t\t$result = $this->tag->Behaviors->enabled('Documentable');\n\t\t$this->assertFalse($result);\n\t}",
"public function hook();",
"abstract protected function inscriretruetrue($event, $membre);",
"function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}",
"public function implementedEvents() {\n\t\treturn parent::implementedEvents() + [\n\t\t\t'Visualisation.onCheck' => array('callable' => 'onCheck', 'passParams' => true)\n\t\t];\n\t}",
"protected function applyElementBehavior(): void\n {\n $behaviors = isset($this->elementBehaviors[$this->element()]) ? $this->elementBehaviors[$this->element()] : [];\n\n foreach ($behaviors as $behavior) {\n $this->{$behavior}(true);\n }\n }",
"abstract public function fire();",
"function eventclass_slot()\n\t{\n\n//\tonscreen events\n\n\t}",
"public static function event_method()\n {\n return true;\n }",
"public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}",
"public function getIsHandled();",
"private function __construct()\n {\n // disabled method\n }",
"public function reactToOnBeforeTakingDamage($event) { }",
"protected function setEventName() {\n return NULL;\n }",
"function __construct() {\r\n\t\tparent::disable_loop_block_features();\r\n\t}",
"public function test_event_notification_with_unexisting_method()\n {\n $this->event_notification_helper('unexisting_method', true);\n }",
"public static function __events () {\n \n }",
"abstract protected function handle(): void;",
"public function handledClass();",
"public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }",
"public function testBehaviorOrderCallbacks() {\n\t\t$model = ClassRegistry::init ( 'Orangutan' );\n\t\t$model->Behaviors->init ( 'Orangutan', array (\n\t\t\t\t'Second' => array (\n\t\t\t\t\t\t'priority' => 9 \n\t\t\t\t),\n\t\t\t\t'Third',\n\t\t\t\t'First' => array (\n\t\t\t\t\t\t'priority' => 8 \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\t$this->assertEmpty ( $model->called );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'ThirdBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'Third', array (\n\t\t\t\t'priority' => 1 \n\t\t) );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'First' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->unload ( 'Third' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->disable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->enable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t}",
"public function isOverrideAllowed();",
"public function hookHandler() {\n\n\t\t$this->buildDependencyMap();\n\t\t$this->handled = array();\n $this->priorityHelpers = array();\n\n\t\tforeach ($this->priorityBased['min'] as $priority=>$v) {\n\t\t\t$this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\t\tforeach ($this->priorityBased['max'] as $priority=>$v) {\n if (!isset($this->priorityBased['min'][$priority]))\n $this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\n\t\t// trigger priority helper cleanup after everything else was done\n add_action($this->hookName,array($this,'priorityHandlerCleanup'),self::LATEST+1);\n \t}",
"function did_filter($hook_name)\n {\n }",
"public function testHydrateNotImplementing(): void\n {\n $this->hydrateEvent->getDocument()->willReturn($this->notImplementing);\n $this->hydrateEvent->getOption(Argument::any())->shouldNotBeCalled();\n\n $this->subscriber->handleHydrate($this->hydrateEvent->reveal());\n }",
"public function testSpecial(): void {\n\t}",
"protected function _initialize() {\n\t\tparent::_initialize();\n\t\t\n\t\tforeach ($this->_behaviors as $key => $value) {\n\t\t\t$behavior = is_string($key) ? $key : $value;\n\t\t\t$config = is_array($value) ? $value : array();\n\t\t\t\n\t\t\tunset($this->_behaviors[$key]);\n\t\t\t$this->attach_behavior(new $behavior($this, $config));\n\t\t}\n\t}",
"protected function initialize() {\n // NOOP\n }",
"private function public_hooks()\n\t{\n\t}",
"public function stopPropagation(): void;",
"function unknownHandler($d, $data, $clientid){\n\t}",
"public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }",
"public function onEvent();",
"protected function addDefaultHandlers()\n {\n // When the server PINGs us, just respond with PONG and the server's host\n $pingHandler = new EventListener(null, function($event) {\n $event->addResponse(Response::pong($event->getRequest()->getMessage()));\n });\n\n // If an Error message is encountered, just log it for now.\n $log = $this->log;\n $errorHandler = new EventListener(null, function($event) use ($log) {\n $log->debug(\"ERROR: {$event->getRequest()->getMessage()}\");\n });\n\n $this->dispatcher->addListener('server.ping', array($pingHandler, 'testAndExecute'));\n $this->dispatcher->addListener('server.error', array($errorHandler, 'testAndExecute'));\n }",
"function noop() {\n}",
"public static function override($event, $callback) {\n static::clear($event);\n\n static::listen($event, $callback);\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract public function getEventName();",
"protected static function event_throw_incomplete() {\n throw new moodle_exception('event:incompleteimplementation',\n 'local_licensing', '', get_called_class());\n }",
"function noop()\n {\n }",
"public function postLoad(Interpreter $interpreter, LifecycleEventArgs $event)\n {\n // disabled it because another wildcards listener is expecting\n // certain params\n //$$this->getEventManager()->trigger(__FUNCTION__, $this);\n }",
"public function testExtendedState(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateThree::class);\n self::assertEquals(666, $daughterInstance->method6());\n\n $grandDaughterInstance = new GrandDaughter();\n $grandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandDaughterInstance->method6());\n self::assertEquals(777, $grandDaughterInstance->method7());\n\n $grandGrandDaughterInstance = new GrandGrandDaughter();\n $grandGrandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandGrandDaughterInstance->method6());\n self::assertEquals(777, $grandGrandDaughterInstance->method7());\n }",
"function method_no_specs() {}",
"private function init_nopriv_event_listeners() {\n\t\t// add_action('wp_ajax_nopriv_example_action', [$this, 'example_function']);\n\t}",
"function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }",
"final private function markAsHandled(hookHandler $handler) {\n\t\t$this->handled[spl_object_hash($handler)] = true;\n\t}",
"public function onDisable() {\n\t}",
"public function replace_3rd_party_pugins_hooks(){\n }",
"public function testLoadDisabled() {\n\t\t$Apple = new Apple ();\n\t\t$this->assertSame ( array (), $Apple->Behaviors->loaded () );\n\t\t\n\t\t$Apple->Behaviors->load ( 'Translate', array (\n\t\t\t\t'enabled' => false \n\t\t) );\n\t\t$this->assertTrue ( $Apple->Behaviors->loaded ( 'Translate' ) );\n\t\t$this->assertFalse ( $Apple->Behaviors->enabled ( 'Translate' ) );\n\t}",
"abstract protected function _preHandle();",
"public function nothing(): void;",
"public function supportsHookSubscribers()\n {\n return false;\n }",
"public function testDispatchWithNotifierNotSupportEvent()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('foo', $event)\n ->will($this->returnValue($event));\n\n $this->notifier->expects($this->once())\n ->method('supportsObject')\n ->with($event, 'foo')\n ->will($this->returnValue(false));\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('foo', $event);\n }",
"public function hooks() {\n\t\tadd_action( 'wp_ajax_wp_sc_form_process_'. $this->button_slug, array( $this, 'process_form' ) );\n\n\t\t// If we have a conditional callback and the return of the callback is false\n\t\tif ( $this->args['conditional_callback'] && is_callable( $this->args['conditional_callback'] ) && ! call_user_func( $this->args['conditional_callback'], $this ) ) {\n\t\t\t// Then that means we should bail\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'admin_init', array( $this, 'button_init' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_modal_form' ) );\n\t}",
"public function set_hooks() {\n\t\t\t$this->hook_prefix = photonfill_hook_prefix();\n\n\t\t\t// Override Photon arg.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_array', array( $this, 'set_photon_args' ), 5, 2 );\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_string', array( $this, 'set_photon_args' ), 5, 2 );\n\n\t\t\t// If we're using the photonfill_bypass_image_downsize, we skip downsize, and now need to\n\t\t\t// ensure the Photon args are being set (but with a lower priority).\n\t\t\tif ( apply_filters( 'photonfill_bypass_image_downsize', false ) ) {\n\t\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'set_photon_args' ), 4, 3 );\n\t\t\t}\n\n\t\t\t// Transform our Photon url.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'transform_photon_url' ), 5, 1 );\n\t\t}",
"public function disable_extension(){}",
"abstract protected function handle();",
"protected function preHandle(Event $ev) { return; }",
"public function testEventCallBackPatch()\n {\n }",
"function __onload($params){\n\t\t$this->disable_methods();\n\t}",
"public function boot()\n {\n if (!$this->isEnabled()) return;\n\n parent::boot();\n }",
"public function setIsHandled($bool);",
"protected function initHandlers()\n\t{\n\t}",
"function doing_filter($hook_name = \\null)\n {\n }",
"abstract function selectHook();",
"public function testRegisterListenerThrowsExceptionForEmptyClassCallback()\n\t{\n\t\t$instance = new Dispatcher();\n\n\t\t$instance->register_listener('random', array());\n\t}",
"final public function __wakeup(){\n throw new Exception('Feature disabled.');\n }",
"public function testComposerPrePackageUninstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package('dummy', '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('uninstall');\n $this->app->handleEvent($event);\n }",
"protected function func_default() {}",
"public function hook()\n {\n // Add the settings tab\n// $this->on('!wprss_options_tabs', array($this, 'addTab'), null, 100);\n // Register the settings option, sections and fields\n// $this->on('!wprss_admin_init', array($this, 'register'));\n\n parent::hook();\n }",
"function fann_set_activation_function_hidden($ann, $activation_function)\n{\n}",
"public static function withoutTouching(callable $callback);",
"public function noOnclick($flag = true)\n {\n $this->noOnclick = $flag;\n }",
"#[Pure]\n public function __construct(EventBase $base, bool $initialize) {}",
"public function preventDefault() {\n\t\t$this->runDefault = false;\n\t}"
] | [
"0.57549065",
"0.572741",
"0.57116985",
"0.57023585",
"0.56787324",
"0.557894",
"0.5477127",
"0.5449194",
"0.5348193",
"0.5329303",
"0.530269",
"0.530269",
"0.5289751",
"0.52885824",
"0.5264387",
"0.52549034",
"0.5214572",
"0.5209728",
"0.5199234",
"0.5189028",
"0.51880175",
"0.51523566",
"0.51234955",
"0.50667584",
"0.5028434",
"0.5010275",
"0.49947092",
"0.49859616",
"0.49748436",
"0.4943262",
"0.49211037",
"0.4899959",
"0.48984286",
"0.48902038",
"0.48798472",
"0.4879126",
"0.48759848",
"0.48728424",
"0.4857604",
"0.48562244",
"0.48516163",
"0.4848411",
"0.4845457",
"0.4841149",
"0.48363268",
"0.483567",
"0.4830925",
"0.48201752",
"0.4816604",
"0.4813753",
"0.48080862",
"0.4788925",
"0.47755003",
"0.47722876",
"0.4767577",
"0.4760071",
"0.47574002",
"0.47539452",
"0.47499996",
"0.47452432",
"0.47436973",
"0.47436973",
"0.47436973",
"0.47358915",
"0.4731314",
"0.4729393",
"0.4712983",
"0.47068244",
"0.47049445",
"0.4704176",
"0.4701705",
"0.46996558",
"0.46928144",
"0.46906093",
"0.46855566",
"0.46806827",
"0.46794412",
"0.4678468",
"0.46570712",
"0.46557564",
"0.46545273",
"0.4648388",
"0.4643401",
"0.4635788",
"0.4634236",
"0.46312988",
"0.46307826",
"0.46289265",
"0.46214545",
"0.46132678",
"0.4610839",
"0.46098077",
"0.46073982",
"0.45909414",
"0.45816213",
"0.4576005",
"0.45721194",
"0.45686164",
"0.4567316",
"0.45661238",
"0.45641112"
] | 0.0 | -1 |
Empty event handler. Only there to have a fallback function if a SpecialnessBehavior class does not provide it. "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnBeforeTakingDamage($event) { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function HookEvents();",
"public static function usesCustomHandler();",
"public function shouldntRaiseAnEvent()\n {\n }",
"public function behaviors() {\n return array(\"application.components.SpecialnessBehavior\");\n }",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function getBase(): false|EventBase {}",
"abstract protected function handle($event);",
"public function handles_events()\n\t{\n\t\treturn false;\n\t}",
"public function getDefaultHandler();",
"public function onOutOfBand (): void;",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"abstract public function handler() : void;",
"private function set_default_behaviour()\n {\n if (isset($this->_config['behaviour']['default'])) {\n $_func_name = $this->_config['behaviour']['default'];\n if ($_func_name && is_string($_func_name) && function_exists($this->_default_func)) {\n $this->_default_func = $_func_name;\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n }",
"public function isHandled(): bool;",
"function getSpecialHandling()\n\t{\n\t\treturn $this->_specialHandling;\n\t}",
"public function reactToOnBeforeDealDamage($event) { }",
"public function getDefaultCallback();",
"abstract public function handle(AbstractEvent $event): void;",
"final public function allowsEvents() {\n\t\treturn false;\n\t}",
"abstract protected function doEvil();",
"abstract public function shouldHandle(): bool;",
"protected abstract function applyNoArg();",
"public function isSpecial();",
"function testBehaviorDisabledToTag() {\n\t\t$this->tag->Behaviors->disable('Documentable');\n\t\t$result = $this->tag->Behaviors->enabled('Documentable');\n\t\t$this->assertFalse($result);\n\t}",
"public function hook();",
"abstract protected function inscriretruetrue($event, $membre);",
"function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}",
"public function implementedEvents() {\n\t\treturn parent::implementedEvents() + [\n\t\t\t'Visualisation.onCheck' => array('callable' => 'onCheck', 'passParams' => true)\n\t\t];\n\t}",
"protected function applyElementBehavior(): void\n {\n $behaviors = isset($this->elementBehaviors[$this->element()]) ? $this->elementBehaviors[$this->element()] : [];\n\n foreach ($behaviors as $behavior) {\n $this->{$behavior}(true);\n }\n }",
"abstract public function fire();",
"function eventclass_slot()\n\t{\n\n//\tonscreen events\n\n\t}",
"public static function event_method()\n {\n return true;\n }",
"public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}",
"public function getIsHandled();",
"private function __construct()\n {\n // disabled method\n }",
"protected function setEventName() {\n return NULL;\n }",
"function __construct() {\r\n\t\tparent::disable_loop_block_features();\r\n\t}",
"public function test_event_notification_with_unexisting_method()\n {\n $this->event_notification_helper('unexisting_method', true);\n }",
"public static function __events () {\n \n }",
"abstract protected function handle(): void;",
"public function handledClass();",
"public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }",
"public function testBehaviorOrderCallbacks() {\n\t\t$model = ClassRegistry::init ( 'Orangutan' );\n\t\t$model->Behaviors->init ( 'Orangutan', array (\n\t\t\t\t'Second' => array (\n\t\t\t\t\t\t'priority' => 9 \n\t\t\t\t),\n\t\t\t\t'Third',\n\t\t\t\t'First' => array (\n\t\t\t\t\t\t'priority' => 8 \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\t$this->assertEmpty ( $model->called );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'ThirdBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'Third', array (\n\t\t\t\t'priority' => 1 \n\t\t) );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'First' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->unload ( 'Third' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->disable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->enable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t}",
"public function isOverrideAllowed();",
"public function hookHandler() {\n\n\t\t$this->buildDependencyMap();\n\t\t$this->handled = array();\n $this->priorityHelpers = array();\n\n\t\tforeach ($this->priorityBased['min'] as $priority=>$v) {\n\t\t\t$this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\t\tforeach ($this->priorityBased['max'] as $priority=>$v) {\n if (!isset($this->priorityBased['min'][$priority]))\n $this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\n\t\t// trigger priority helper cleanup after everything else was done\n add_action($this->hookName,array($this,'priorityHandlerCleanup'),self::LATEST+1);\n \t}",
"function did_filter($hook_name)\n {\n }",
"public function testHydrateNotImplementing(): void\n {\n $this->hydrateEvent->getDocument()->willReturn($this->notImplementing);\n $this->hydrateEvent->getOption(Argument::any())->shouldNotBeCalled();\n\n $this->subscriber->handleHydrate($this->hydrateEvent->reveal());\n }",
"public function testSpecial(): void {\n\t}",
"protected function _initialize() {\n\t\tparent::_initialize();\n\t\t\n\t\tforeach ($this->_behaviors as $key => $value) {\n\t\t\t$behavior = is_string($key) ? $key : $value;\n\t\t\t$config = is_array($value) ? $value : array();\n\t\t\t\n\t\t\tunset($this->_behaviors[$key]);\n\t\t\t$this->attach_behavior(new $behavior($this, $config));\n\t\t}\n\t}",
"protected function initialize() {\n // NOOP\n }",
"private function public_hooks()\n\t{\n\t}",
"public function stopPropagation(): void;",
"function unknownHandler($d, $data, $clientid){\n\t}",
"public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }",
"public function onEvent();",
"protected function addDefaultHandlers()\n {\n // When the server PINGs us, just respond with PONG and the server's host\n $pingHandler = new EventListener(null, function($event) {\n $event->addResponse(Response::pong($event->getRequest()->getMessage()));\n });\n\n // If an Error message is encountered, just log it for now.\n $log = $this->log;\n $errorHandler = new EventListener(null, function($event) use ($log) {\n $log->debug(\"ERROR: {$event->getRequest()->getMessage()}\");\n });\n\n $this->dispatcher->addListener('server.ping', array($pingHandler, 'testAndExecute'));\n $this->dispatcher->addListener('server.error', array($errorHandler, 'testAndExecute'));\n }",
"function noop() {\n}",
"public static function override($event, $callback) {\n static::clear($event);\n\n static::listen($event, $callback);\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract public function getEventName();",
"protected static function event_throw_incomplete() {\n throw new moodle_exception('event:incompleteimplementation',\n 'local_licensing', '', get_called_class());\n }",
"function noop()\n {\n }",
"public function postLoad(Interpreter $interpreter, LifecycleEventArgs $event)\n {\n // disabled it because another wildcards listener is expecting\n // certain params\n //$$this->getEventManager()->trigger(__FUNCTION__, $this);\n }",
"public function testExtendedState(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateThree::class);\n self::assertEquals(666, $daughterInstance->method6());\n\n $grandDaughterInstance = new GrandDaughter();\n $grandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandDaughterInstance->method6());\n self::assertEquals(777, $grandDaughterInstance->method7());\n\n $grandGrandDaughterInstance = new GrandGrandDaughter();\n $grandGrandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandGrandDaughterInstance->method6());\n self::assertEquals(777, $grandGrandDaughterInstance->method7());\n }",
"function method_no_specs() {}",
"private function init_nopriv_event_listeners() {\n\t\t// add_action('wp_ajax_nopriv_example_action', [$this, 'example_function']);\n\t}",
"function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }",
"final private function markAsHandled(hookHandler $handler) {\n\t\t$this->handled[spl_object_hash($handler)] = true;\n\t}",
"public function onDisable() {\n\t}",
"public function replace_3rd_party_pugins_hooks(){\n }",
"public function testLoadDisabled() {\n\t\t$Apple = new Apple ();\n\t\t$this->assertSame ( array (), $Apple->Behaviors->loaded () );\n\t\t\n\t\t$Apple->Behaviors->load ( 'Translate', array (\n\t\t\t\t'enabled' => false \n\t\t) );\n\t\t$this->assertTrue ( $Apple->Behaviors->loaded ( 'Translate' ) );\n\t\t$this->assertFalse ( $Apple->Behaviors->enabled ( 'Translate' ) );\n\t}",
"abstract protected function _preHandle();",
"public function nothing(): void;",
"public function supportsHookSubscribers()\n {\n return false;\n }",
"public function testDispatchWithNotifierNotSupportEvent()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('foo', $event)\n ->will($this->returnValue($event));\n\n $this->notifier->expects($this->once())\n ->method('supportsObject')\n ->with($event, 'foo')\n ->will($this->returnValue(false));\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('foo', $event);\n }",
"public function hooks() {\n\t\tadd_action( 'wp_ajax_wp_sc_form_process_'. $this->button_slug, array( $this, 'process_form' ) );\n\n\t\t// If we have a conditional callback and the return of the callback is false\n\t\tif ( $this->args['conditional_callback'] && is_callable( $this->args['conditional_callback'] ) && ! call_user_func( $this->args['conditional_callback'], $this ) ) {\n\t\t\t// Then that means we should bail\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'admin_init', array( $this, 'button_init' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_modal_form' ) );\n\t}",
"public function set_hooks() {\n\t\t\t$this->hook_prefix = photonfill_hook_prefix();\n\n\t\t\t// Override Photon arg.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_array', array( $this, 'set_photon_args' ), 5, 2 );\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_string', array( $this, 'set_photon_args' ), 5, 2 );\n\n\t\t\t// If we're using the photonfill_bypass_image_downsize, we skip downsize, and now need to\n\t\t\t// ensure the Photon args are being set (but with a lower priority).\n\t\t\tif ( apply_filters( 'photonfill_bypass_image_downsize', false ) ) {\n\t\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'set_photon_args' ), 4, 3 );\n\t\t\t}\n\n\t\t\t// Transform our Photon url.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'transform_photon_url' ), 5, 1 );\n\t\t}",
"public function disable_extension(){}",
"abstract protected function handle();",
"protected function preHandle(Event $ev) { return; }",
"public function testEventCallBackPatch()\n {\n }",
"function __onload($params){\n\t\t$this->disable_methods();\n\t}",
"public function boot()\n {\n if (!$this->isEnabled()) return;\n\n parent::boot();\n }",
"public function setIsHandled($bool);",
"protected function initHandlers()\n\t{\n\t}",
"function doing_filter($hook_name = \\null)\n {\n }",
"abstract function selectHook();",
"public function testRegisterListenerThrowsExceptionForEmptyClassCallback()\n\t{\n\t\t$instance = new Dispatcher();\n\n\t\t$instance->register_listener('random', array());\n\t}",
"final public function __wakeup(){\n throw new Exception('Feature disabled.');\n }",
"public function testComposerPrePackageUninstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package('dummy', '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('uninstall');\n $this->app->handleEvent($event);\n }",
"protected function func_default() {}",
"public function hook()\n {\n // Add the settings tab\n// $this->on('!wprss_options_tabs', array($this, 'addTab'), null, 100);\n // Register the settings option, sections and fields\n// $this->on('!wprss_admin_init', array($this, 'register'));\n\n parent::hook();\n }",
"function fann_set_activation_function_hidden($ann, $activation_function)\n{\n}",
"public static function withoutTouching(callable $callback);",
"public function noOnclick($flag = true)\n {\n $this->noOnclick = $flag;\n }",
"#[Pure]\n public function __construct(EventBase $base, bool $initialize) {}",
"public function preventDefault() {\n\t\t$this->runDefault = false;\n\t}"
] | [
"0.57549065",
"0.572741",
"0.57116985",
"0.57023585",
"0.56787324",
"0.557894",
"0.5477127",
"0.5449194",
"0.5348193",
"0.5329303",
"0.530269",
"0.530269",
"0.5289751",
"0.52885824",
"0.5264387",
"0.52549034",
"0.5214572",
"0.5209728",
"0.5199234",
"0.5189028",
"0.51880175",
"0.51523566",
"0.51234955",
"0.50667584",
"0.5028434",
"0.5010275",
"0.49947092",
"0.49859616",
"0.49748436",
"0.4943262",
"0.49211037",
"0.4899959",
"0.48984286",
"0.48902038",
"0.48798472",
"0.4879126",
"0.48728424",
"0.4857604",
"0.48562244",
"0.48516163",
"0.4848411",
"0.4845457",
"0.4841149",
"0.48363268",
"0.483567",
"0.4830925",
"0.48201752",
"0.4816604",
"0.4813753",
"0.48080862",
"0.4788925",
"0.47755003",
"0.47722876",
"0.4767577",
"0.4760071",
"0.47574002",
"0.47539452",
"0.47499996",
"0.47452432",
"0.47436973",
"0.47436973",
"0.47436973",
"0.47358915",
"0.4731314",
"0.4729393",
"0.4712983",
"0.47068244",
"0.47049445",
"0.4704176",
"0.4701705",
"0.46996558",
"0.46928144",
"0.46906093",
"0.46855566",
"0.46806827",
"0.46794412",
"0.4678468",
"0.46570712",
"0.46557564",
"0.46545273",
"0.4648388",
"0.4643401",
"0.4635788",
"0.4634236",
"0.46312988",
"0.46307826",
"0.46289265",
"0.46214545",
"0.46132678",
"0.4610839",
"0.46098077",
"0.46073982",
"0.45909414",
"0.45816213",
"0.4576005",
"0.45721194",
"0.45686164",
"0.4567316",
"0.45661238",
"0.45641112"
] | 0.48759848 | 36 |
Empty event handler. Only there to have a fallback function if a SpecialnessBehavior class does not provide it. "Override" and extend by SpecialnessBehavior classes as necessary | public function reactToOnAfterTakingDamage($event) { } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract function HookEvents();",
"public static function usesCustomHandler();",
"public function shouldntRaiseAnEvent()\n {\n }",
"public function behaviors() {\n return array(\"application.components.SpecialnessBehavior\");\n }",
"final public function onOutOfBand (): void {\n // do nothing\n }",
"public function getBase(): false|EventBase {}",
"abstract protected function handle($event);",
"public function handles_events()\n\t{\n\t\treturn false;\n\t}",
"public function getDefaultHandler();",
"public function onOutOfBand (): void;",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"public function isSpecial()\n\t{\n\t\t return false;\n\t}",
"private function set_default_behaviour()\n {\n if (isset($this->_config['behaviour']['default'])) {\n $_func_name = $this->_config['behaviour']['default'];\n if ($_func_name && is_string($_func_name) && function_exists($this->_default_func)) {\n $this->_default_func = $_func_name;\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n } else {\n $this->_default_func = self::DEFAULT_FUNC;\n }\n }",
"abstract public function handler() : void;",
"public function isHandled(): bool;",
"function getSpecialHandling()\n\t{\n\t\treturn $this->_specialHandling;\n\t}",
"public function reactToOnBeforeDealDamage($event) { }",
"public function getDefaultCallback();",
"abstract public function handle(AbstractEvent $event): void;",
"abstract protected function doEvil();",
"final public function allowsEvents() {\n\t\treturn false;\n\t}",
"abstract public function shouldHandle(): bool;",
"protected abstract function applyNoArg();",
"public function isSpecial();",
"function testBehaviorDisabledToTag() {\n\t\t$this->tag->Behaviors->disable('Documentable');\n\t\t$result = $this->tag->Behaviors->enabled('Documentable');\n\t\t$this->assertFalse($result);\n\t}",
"public function hook();",
"abstract protected function inscriretruetrue($event, $membre);",
"function ibase_set_event_handler($event_handler, $event_name1, $event_name2 = NULL, $_ = NULL)\n{\n}",
"public function implementedEvents() {\n\t\treturn parent::implementedEvents() + [\n\t\t\t'Visualisation.onCheck' => array('callable' => 'onCheck', 'passParams' => true)\n\t\t];\n\t}",
"protected function applyElementBehavior(): void\n {\n $behaviors = isset($this->elementBehaviors[$this->element()]) ? $this->elementBehaviors[$this->element()] : [];\n\n foreach ($behaviors as $behavior) {\n $this->{$behavior}(true);\n }\n }",
"abstract public function fire();",
"function eventclass_slot()\n\t{\n\n//\tonscreen events\n\n\t}",
"public static function event_method()\n {\n return true;\n }",
"public function isDefaultHookHandlingDisabled() {\n\t\treturn (boolean)((integer)$this->typoScriptConfiguration->getSetting('disableDefaultHookHandling'));\n\t}",
"public function getIsHandled();",
"private function __construct()\n {\n // disabled method\n }",
"public function reactToOnBeforeTakingDamage($event) { }",
"protected function setEventName() {\n return NULL;\n }",
"function __construct() {\r\n\t\tparent::disable_loop_block_features();\r\n\t}",
"public function test_event_notification_with_unexisting_method()\n {\n $this->event_notification_helper('unexisting_method', true);\n }",
"public static function __events () {\n \n }",
"abstract protected function handle(): void;",
"public function handledClass();",
"public function testDispatchWithEventNameIsDisabledForNotify()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('disable_event', $event);\n\n $this->notifier->expects($this->never())\n ->method('supportsObject')\n ->with($event, 'foo');\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('disable_event', $event);\n }",
"public function isOverrideAllowed();",
"public function testBehaviorOrderCallbacks() {\n\t\t$model = ClassRegistry::init ( 'Orangutan' );\n\t\t$model->Behaviors->init ( 'Orangutan', array (\n\t\t\t\t'Second' => array (\n\t\t\t\t\t\t'priority' => 9 \n\t\t\t\t),\n\t\t\t\t'Third',\n\t\t\t\t'First' => array (\n\t\t\t\t\t\t'priority' => 8 \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\t$this->assertEmpty ( $model->called );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'ThirdBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'Third', array (\n\t\t\t\t'priority' => 1 \n\t\t) );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'First' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->unload ( 'Third' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->disable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->enable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t}",
"public function hookHandler() {\n\n\t\t$this->buildDependencyMap();\n\t\t$this->handled = array();\n $this->priorityHelpers = array();\n\n\t\tforeach ($this->priorityBased['min'] as $priority=>$v) {\n\t\t\t$this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\t\tforeach ($this->priorityBased['max'] as $priority=>$v) {\n if (!isset($this->priorityBased['min'][$priority]))\n $this->priorityHelpers[] = new priorityHelper($this,$priority);\n\t\t}\n\n\t\t// trigger priority helper cleanup after everything else was done\n add_action($this->hookName,array($this,'priorityHandlerCleanup'),self::LATEST+1);\n \t}",
"function did_filter($hook_name)\n {\n }",
"public function testHydrateNotImplementing(): void\n {\n $this->hydrateEvent->getDocument()->willReturn($this->notImplementing);\n $this->hydrateEvent->getOption(Argument::any())->shouldNotBeCalled();\n\n $this->subscriber->handleHydrate($this->hydrateEvent->reveal());\n }",
"public function testSpecial(): void {\n\t}",
"protected function _initialize() {\n\t\tparent::_initialize();\n\t\t\n\t\tforeach ($this->_behaviors as $key => $value) {\n\t\t\t$behavior = is_string($key) ? $key : $value;\n\t\t\t$config = is_array($value) ? $value : array();\n\t\t\t\n\t\t\tunset($this->_behaviors[$key]);\n\t\t\t$this->attach_behavior(new $behavior($this, $config));\n\t\t}\n\t}",
"protected function initialize() {\n // NOOP\n }",
"private function public_hooks()\n\t{\n\t}",
"public function stopPropagation(): void;",
"function unknownHandler($d, $data, $clientid){\n\t}",
"public function isHandled() {\n if (!is_null($this->handler)) {\n return true;\n }\n return false;\n }",
"public function onEvent();",
"protected function addDefaultHandlers()\n {\n // When the server PINGs us, just respond with PONG and the server's host\n $pingHandler = new EventListener(null, function($event) {\n $event->addResponse(Response::pong($event->getRequest()->getMessage()));\n });\n\n // If an Error message is encountered, just log it for now.\n $log = $this->log;\n $errorHandler = new EventListener(null, function($event) use ($log) {\n $log->debug(\"ERROR: {$event->getRequest()->getMessage()}\");\n });\n\n $this->dispatcher->addListener('server.ping', array($pingHandler, 'testAndExecute'));\n $this->dispatcher->addListener('server.error', array($errorHandler, 'testAndExecute'));\n }",
"function noop() {\n}",
"public static function override($event, $callback) {\n static::clear($event);\n\n static::listen($event, $callback);\n }",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract protected function _unimplemented() : Exception;",
"abstract public function getEventName();",
"protected static function event_throw_incomplete() {\n throw new moodle_exception('event:incompleteimplementation',\n 'local_licensing', '', get_called_class());\n }",
"function noop()\n {\n }",
"public function postLoad(Interpreter $interpreter, LifecycleEventArgs $event)\n {\n // disabled it because another wildcards listener is expecting\n // certain params\n //$$this->getEventManager()->trigger(__FUNCTION__, $this);\n }",
"public function testExtendedState(): void\n {\n $daughterInstance = new Daughter();\n $daughterInstance->enableState(StateThree::class);\n self::assertEquals(666, $daughterInstance->method6());\n\n $grandDaughterInstance = new GrandDaughter();\n $grandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandDaughterInstance->method6());\n self::assertEquals(777, $grandDaughterInstance->method7());\n\n $grandGrandDaughterInstance = new GrandGrandDaughter();\n $grandGrandDaughterInstance->enableState(StateThreeGD::class);\n self::assertEquals(666, $grandGrandDaughterInstance->method6());\n self::assertEquals(777, $grandGrandDaughterInstance->method7());\n }",
"function method_no_specs() {}",
"private function init_nopriv_event_listeners() {\n\t\t// add_action('wp_ajax_nopriv_example_action', [$this, 'example_function']);\n\t}",
"function chouXiang()\n {\n echo '必须继承重写的抽象类的抽象方法'.'</br>';\n }",
"final private function markAsHandled(hookHandler $handler) {\n\t\t$this->handled[spl_object_hash($handler)] = true;\n\t}",
"public function onDisable() {\n\t}",
"public function replace_3rd_party_pugins_hooks(){\n }",
"public function testLoadDisabled() {\n\t\t$Apple = new Apple ();\n\t\t$this->assertSame ( array (), $Apple->Behaviors->loaded () );\n\t\t\n\t\t$Apple->Behaviors->load ( 'Translate', array (\n\t\t\t\t'enabled' => false \n\t\t) );\n\t\t$this->assertTrue ( $Apple->Behaviors->loaded ( 'Translate' ) );\n\t\t$this->assertFalse ( $Apple->Behaviors->enabled ( 'Translate' ) );\n\t}",
"abstract protected function _preHandle();",
"public function nothing(): void;",
"public function supportsHookSubscribers()\n {\n return false;\n }",
"public function testDispatchWithNotifierNotSupportEvent()\n {\n $event = new EventTested();\n\n $this->eventDispatcher->expects($this->once())\n ->method('dispatch')\n ->with('foo', $event)\n ->will($this->returnValue($event));\n\n $this->notifier->expects($this->once())\n ->method('supportsObject')\n ->with($event, 'foo')\n ->will($this->returnValue(false));\n\n $this->notifier->expects($this->never())\n ->method('notify');\n\n $this->notifierProxy->dispatch('foo', $event);\n }",
"public function hooks() {\n\t\tadd_action( 'wp_ajax_wp_sc_form_process_'. $this->button_slug, array( $this, 'process_form' ) );\n\n\t\t// If we have a conditional callback and the return of the callback is false\n\t\tif ( $this->args['conditional_callback'] && is_callable( $this->args['conditional_callback'] ) && ! call_user_func( $this->args['conditional_callback'], $this ) ) {\n\t\t\t// Then that means we should bail\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( 'admin_init', array( $this, 'button_init' ) );\n\t\tadd_action( 'admin_enqueue_scripts', array( $this, 'register_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_quicktag_button_script' ) );\n\t\tadd_action( 'admin_footer', array( $this, 'add_modal_form' ) );\n\t}",
"public function set_hooks() {\n\t\t\t$this->hook_prefix = photonfill_hook_prefix();\n\n\t\t\t// Override Photon arg.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_array', array( $this, 'set_photon_args' ), 5, 2 );\n\t\t\tadd_filter( $this->hook_prefix . '_photon_image_downsize_string', array( $this, 'set_photon_args' ), 5, 2 );\n\n\t\t\t// If we're using the photonfill_bypass_image_downsize, we skip downsize, and now need to\n\t\t\t// ensure the Photon args are being set (but with a lower priority).\n\t\t\tif ( apply_filters( 'photonfill_bypass_image_downsize', false ) ) {\n\t\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'set_photon_args' ), 4, 3 );\n\t\t\t}\n\n\t\t\t// Transform our Photon url.\n\t\t\tadd_filter( $this->hook_prefix . '_photon_pre_args', array( $this, 'transform_photon_url' ), 5, 1 );\n\t\t}",
"public function disable_extension(){}",
"abstract protected function handle();",
"protected function preHandle(Event $ev) { return; }",
"public function testEventCallBackPatch()\n {\n }",
"function __onload($params){\n\t\t$this->disable_methods();\n\t}",
"public function boot()\n {\n if (!$this->isEnabled()) return;\n\n parent::boot();\n }",
"public function setIsHandled($bool);",
"protected function initHandlers()\n\t{\n\t}",
"function doing_filter($hook_name = \\null)\n {\n }",
"abstract function selectHook();",
"public function testRegisterListenerThrowsExceptionForEmptyClassCallback()\n\t{\n\t\t$instance = new Dispatcher();\n\n\t\t$instance->register_listener('random', array());\n\t}",
"final public function __wakeup(){\n throw new Exception('Feature disabled.');\n }",
"public function testComposerPrePackageUninstallEventHandlerDoesNotRunWithOtherEvents(): void {\n // Clean up must not run when other than\n // PackageEvents::PRE_PACKAGE_UNINSTALL event is dispatched.\n $package = new Package('dummy', '1.0.0.0', '^1.0');\n $operation = new InstallOperation($package);\n $event = new PackageEvent(PackageEvents::PRE_PACKAGE_INSTALL, $this->composer, $this->io, FALSE, $this->installedRepo, [$operation], $operation);\n $this->configInstallManager\n ->expects(self::never())\n ->method('uninstall');\n $this->app->handleEvent($event);\n }",
"protected function func_default() {}",
"public function hook()\n {\n // Add the settings tab\n// $this->on('!wprss_options_tabs', array($this, 'addTab'), null, 100);\n // Register the settings option, sections and fields\n// $this->on('!wprss_admin_init', array($this, 'register'));\n\n parent::hook();\n }",
"function fann_set_activation_function_hidden($ann, $activation_function)\n{\n}",
"public static function withoutTouching(callable $callback);",
"public function noOnclick($flag = true)\n {\n $this->noOnclick = $flag;\n }",
"#[Pure]\n public function __construct(EventBase $base, bool $initialize) {}",
"public function preventDefault() {\n\t\t$this->runDefault = false;\n\t}"
] | [
"0.57540596",
"0.5727323",
"0.57113004",
"0.5701299",
"0.56790817",
"0.5578631",
"0.54766786",
"0.54480755",
"0.5348219",
"0.5329564",
"0.530385",
"0.530385",
"0.5289556",
"0.5289252",
"0.52645624",
"0.52549374",
"0.5215005",
"0.5209896",
"0.51986986",
"0.5188996",
"0.5188425",
"0.5152794",
"0.5124203",
"0.5068401",
"0.50286084",
"0.5010182",
"0.49952123",
"0.49850428",
"0.49738196",
"0.4943097",
"0.49211657",
"0.48995662",
"0.48977754",
"0.48905107",
"0.48800218",
"0.48796776",
"0.4876449",
"0.48728734",
"0.48580033",
"0.48563546",
"0.48505655",
"0.48483205",
"0.48446018",
"0.4841639",
"0.4837204",
"0.48353595",
"0.48299155",
"0.48195338",
"0.48177454",
"0.48148343",
"0.48069662",
"0.47896838",
"0.4775221",
"0.47717553",
"0.47675958",
"0.47598347",
"0.47569737",
"0.47539815",
"0.4751633",
"0.47466025",
"0.474459",
"0.474459",
"0.474459",
"0.4735153",
"0.4730976",
"0.4730821",
"0.4712238",
"0.47073182",
"0.47063032",
"0.470394",
"0.47026756",
"0.46994418",
"0.46933043",
"0.4690732",
"0.46860024",
"0.46813685",
"0.46806",
"0.4677852",
"0.4657034",
"0.46546125",
"0.46544945",
"0.46495447",
"0.46430352",
"0.46363845",
"0.4633284",
"0.4631946",
"0.46315724",
"0.4629142",
"0.46211305",
"0.4613099",
"0.46108964",
"0.46094358",
"0.46075714",
"0.4592093",
"0.45829916",
"0.45761806",
"0.45723403",
"0.45694372",
"0.45682368",
"0.4566426",
"0.45638806"
] | 0.0 | -1 |
Returns a list of CBehaviors to be attached to this Model | public function behaviors() {
return array("application.components.SpecialnessBehavior");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function behaviors() {\n\t\treturn $this->Behaviors;\n\t}",
"public function getBehaviors()\n {\n return array(\n 'log' => array (\n),\n 'adderror' => array (\n),\n 'utils' => array (\n),\n );\n }",
"public function getBehaviors()\n {\n return $this->getSchema()->behaviors;\n }",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t);\n\t}",
"public function behaviors()\r\n\t {\r\n\t $behaviors = parent::behaviors();\r\n\r\n\t return $behaviors;\r\n\t }",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t\t'symfony_i18n' => array('i18n_table' => 'gen_paises_i18n', ),\n\t\t);\n\t}",
"public function behaviors()\n {\n return parent::behaviors();\n }",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t\t'symfony_timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', ),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'symfony' => array('form' => 'true', 'filter' => 'true', ),\n\t\t\t'symfony_behaviors' => array(),\n\t\t\t'symfony_timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', ),\n\t\t);\n\t}",
"public function behaviors()\n\t{\n\t\treturn array('CAdvancedArBehavior',array('class' => 'ext.CAdvancedArBehavior'));\n\t}",
"public function behaviors()\n\t{\n\t\t/*\n\t\t * Warning: every behavior need contains fields:\n\t\t * 'configLanguageAttribute' required\n\t\t * 'configBehaviorAttribute' required\n\t\t * 'configBehaviorKey' optional (default: b_originKey_lang, where originKey is key of the row in array\n\t\t * lang will be added in tail\n\t\t */\n\t\t$languageBehaviors = array();\n\t\t$behaviors = $this->prepareBehaviors($languageBehaviors);\n\t\treturn \\CMap::mergeArray(\n\t\t\tparent::behaviors(),\n\t\t\t\\CMap::mergeArray(\n\t\t\t\t$behaviors,\n\t\t\t\tarray(\n\t\t\t\t)\n\t\t\t)\n\t\t);\n\t}",
"public static function behaviors()\n\t{\n\t\treturn array(\n\t\t\t'beforeInsert' => array(\n\n\t\t\t),\n\n\t\t\t'afterInsert' => array(\n\n\t\t\t),\n\n\t\t\t'beforeUpdate' => array(\n\n\t\t\t),\n\n\t\t\t'afterUpdate' => array(\n\n\t\t\t),\n\n\t\t\t'beforeDelete' => array(\n\n\t\t\t),\n\n\t\t\t'afterDelete' => array(\n\n\t\t\t),\n\n\t\t);\n\t}",
"public function behaviors()\n {\n return $this->belongsToMany(Behavior::class);\n }",
"public function getBehaviors()\n {\n return array(\n 'symfony' => array('form' => 'true', 'filter' => 'true', ),\n 'symfony_behaviors' => array(),\n 'symfony_timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', ),\n );\n }",
"public function behaviors()\n\t{\n\t\treturn array_merge(\n\t\t\tparent::behaviors(),\n\t\t\tarray(\n\t\t\t\t//\tTimestamper\n\t\t\t\t'psTimeStamp' => array(\n\t\t\t\t\t'class' => 'pogostick.behaviors.CPSTimeStampBehavior',\n\t\t\t\t\t'createdColumn' => 'create_date',\n\t\t\t\t\t'createdByColumn' => 'create_user_id',\n\t\t\t\t\t'lmodColumn' => 'lmod_date',\n\t\t\t\t\t'lmodByColumn' => 'lmod_user_id',\n\t\t\t\t),\n\n\t\t\t\t//\tSoft Deleting\n\t\t\t\t'psSoftDelete' => array(\n\t\t\t\t\t'class' => 'pogostick.behaviors.CPSSoftDeleteBehavior',\n\t\t\t\t\t'softDeleteColumn' => 'delete_ind',\n\t\t\t\t),\n\n\t\t\t\t//\tDelta Change\n\t\t\t\t'psDeltaChange' => array(\n\t\t\t\t\t'class' => 'pogostick.behaviors.CPSDeltaChangeBehavior',\n\t\t\t\t),\n\t\t\t)\n\t\t);\n\t}",
"public function behaviors() {\n return array(\n 'ValidateModelBehavior' => array(\n 'class' => 'application.components.behaviors.ValidateModelBehavior',\n 'model' => $this\n ),\n 'AuditFieldBehavior' => array(\n 'class' => 'audit.components.AuditFieldBehavior'\n )\n );\n }",
"public function behaviors()\n {\n return CMap::mergeArray(parent::behaviors(), array(\n 'points' => array(\n 'class' => 'ext.YiiMongoDbSuite.extra.EEmbeddedArraysBehavior',\n 'arrayPropertyName' => 'points',\n 'arrayDocClassName' => 'Point'\n ),\n 'MongoTypes' => array(\n 'class' => 'CMongoTypeBehavior',\n 'attributes' => array(\n 'authorId' => 'MongoId',\n 'category' => 'MongoId',\n 'style'=>'array',\n ),\n ),\n ));\n }",
"public function getBehaviorsEnabled()\n\t{\n\t\treturn $this->_behaviorsenabled;\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'soft_delete' => array('deleted_column' => 'deleted_at', ),\n\t\t);\n\t}",
"public function getBehaviors()\n\t{\n\t\treturn array(\n\t\t\t'soft_delete' => array('deleted_column' => 'deleted_at', ),\n\t\t);\n\t}",
"public function getEarlyBehaviors()\n {\n $behaviors = [];\n foreach ($this->behaviors as $name => $behavior) {\n if ($behavior->isEarly()) {\n $behaviors[$name] = $behavior;\n }\n }\n\n return $behaviors;\n }",
"public function behaviors()\n {\n return [\n 'image' => [\n 'class' => 'rico\\yii2images\\behaviors\\ImageBehave',\n ],\n [\n 'class' => AdjacencyListBehavior::className(),\n ],\n ];\n }",
"public function behaviors()\n {\n return array_merge(parent::behaviors(), array(\n 'audit' => array(\n 'class' => 'app.behaviors.AuditBehavior',\n )\n ));\n }",
"public static function getBehavior()\n {\n return array_keys(self::$BEHAVIOR_TYPE_RELATION);\n }",
"public function getBehaviors()\n {\n return array(\n 'timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', ),\n );\n }",
"public function getBehaviors()\n {\n return array(\n 'timestampable' => array('create_column' => 'created_at', 'update_column' => 'updated_at', ),\n );\n }",
"public function behaviors() {\n return array(\n 'TimestampBehavior' => array('class' => 'TimestampBehavior'),\n 'ERememberFiltersBehavior' => array(\n 'class' => 'application.components.behaviors.ERememberFiltersBehavior',\n 'defaults' => array(),\n 'defaultStickOnClear' => false\n ),\n );\n }",
"public function getSearchBehaviors() : ?array\n {\n return $this->searchBehaviors;\n }",
"function behaviors() {\n return CMap::mergeArray(parent::behaviors(), array(\n \n\n \n\n 'files' => array(\n 'class'=>'application.modules.ycm.behaviors.FileBehavior',\n ),\n 'date2time' => array(\n 'class' => 'ycm.behaviors.Date2TimeBehavior',\n 'attributes'=>'',\n 'format'=>'Y-m-d',\n ),\n 'datetime2time' => array(\n 'class' => 'ycm.behaviors.Date2TimeBehavior',\n 'attributes'=>'',\n 'format'=>'Y-m-d H:i:s',\n ),\n 'currency' => array(\n 'class' => 'ycm.behaviors.CurrencyBehavior',\n 'attributes'=>'',\n ),\n ));\n }",
"public function getAllBehaviors() {\n\n $user = JWTAuth::parseToken()->toUser();\n\n $behaviors = $user->behaviors()->get();\n \n $response = [\n 'behaviors' => $behaviors\n ];\n\n return response()->json( $response, 200 );\n\n }",
"public function behaviors() {\n return array(\n 'AttributesBackupBehavior' => 'ext.AttributesBackupBehavior',\n );\n }",
"public function getBehaviors()\n {\n return array(\n 'timestampable' => array (\n 'create_column' => 'created_at',\n 'update_column' => 'updated_at',\n 'disable_updated_at' => 'false',\n),\n );\n }",
"public function behaviors()\n {\n return [\n [\n 'class' => 'app\\nestic\\behaviors\\RelacionesMaestroDetalleBehavior',\n ],\n 'bedezign\\yii2\\audit\\AuditTrailBehavior',\n ];\n }",
"public function behaviors()\n {\n $facade = new DocumentopdfControllerFachada;\n return $facade->behaviors();\n }",
"public function behaviors()\n\t{\n\t return array(\n\t // Classname => path to Class\n\t 'ActiveRecordLogableBehavior'=>\n\t 'application.behaviors.ActiveRecordLogableBehavior',\n\t );\n\t}",
"public function behaviors()\n {\n return array(\n 'ProfileControllerBehavior' => array(\n 'class' => 'application.modules.rooms.behaviors.RoomsControllerBehavior',\n ),\n );\n }",
"public function behaviors()\n {\n return [\n [\n 'class' => BlameableBehavior::className(),\n 'createdByAttribute' => 'created_by',\n 'updatedByAttribute' => 'modified_by',\n ],\n [\n 'class' => TimestampBehavior::className(),\n 'createdAtAttribute' => 'created_datetime',\n 'updatedAtAttribute' => 'modified_datetime',\n 'value' => new Expression('NOW()'),\n ],\n ];\n }",
"public function behaviors()\n {\n $behaviors['authenticator'] = [\n 'class' => QueryParamAuth::className(),\n 'except' => ['help','setcompras','getcompras'],\n ];\n return $behaviors;\n }",
"public function getBehaviorCallbacks(Model $model) {\n\t\t$callbacks = array();\n\t\t$behaviors = Configure::read('Admin.behaviorCallbacks');\n\n\t\tforeach ($behaviors as $behavior => $methods) {\n\t\t\tif (!$model->Behaviors->loaded($behavior)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tforeach ($methods as $method => $options) {\n\t\t\t\tif (is_string($options)) {\n\t\t\t\t\t$options = array('title' => $options, 'access' => 'update');\n\t\t\t\t} else {\n\t\t\t\t\t$options = $options += array('access' => 'update');\n\t\t\t\t}\n\n\t\t\t\tif ($this->hasAccess($model->qualifiedName, $options['access'])) {\n\t\t\t\t\t$callbacks[$method] = array(\n\t\t\t\t\t\t'title' => __d('admin', $options['title'], $model->singularName),\n\t\t\t\t\t\t'behavior' => Inflector::underscore($behavior),\n\t\t\t\t\t\t'method' => $method\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $callbacks;\n\t}",
"public function behaviors()\n {\n return array(\n 'CTimestampBehavior' => array(\n 'class' => 'zii.behaviors.CTimestampBehavior'\n ),\n 'statusMain' => array(\n 'class' => 'application.components.behaviors.StatusBehavior',\n 'list' => array(\n Yii::t('BlogModule.blog', 'Blocked'),\n Yii::t('BlogModule.blog', 'Active')\n )\n ),\n );\n }",
"public function behaviors()\n {\n return [\n TimestampBehavior::className(),\n // BlameableBehavior::className(),\n ];\n }",
"public function behaviors(){\n return [\n [\n 'class' => TimestampBehavior::className(),\n //'createdAtAttribute' => 'create_time',\n //'updatedAtAttribute' => 'update_time',\n // 'value' => new Expression('NOW()'),\n ],\n [\n 'class' => BlameableBehavior::className(),\n //'createdByAttribute' => 'author_id',\n //'updatedByAttribute' => 'updater_id',\n ]\n ];\n }",
"public function behaviors()\n {\n $behaviors = parent::behaviors();\n $behaviors['authenticator'] = [\n 'class' => HttpBearerAuth::className(),\n 'only' => ['create', 'update', 'delete']\n ];\n $behaviors['authorAccess'] = [\n 'class' => AccessControl::className(),\n 'only' => ['update', 'delete'],\n 'rules' => [\n [\n 'class' => AuthorAccessRule::className(),\n 'actions' => ['update', 'delete']\n ]\n ]\n ];\n return $behaviors;\n }",
"public function getBehavior()\n\t{\n\t\treturn $this->_behavior;\n\t}",
"public function getBehavior()\n\t{\n\t\treturn $this->_behavior;\n\t}",
"public function behaviors()\n {\n return [\n 'verbs' => [\n 'class' => VerbFilter::className(),\n 'actions' => [\n 'add' => ['post'],\n 'remove' => ['post'],\n ],\n ],\n ];\n }",
"public function behaviors()\n {\n return \\app\\models\\Action::getAccess($this->id);\n }",
"public function behaviors()\n {\n return [\n 'status' => [\n 'class' => AttributeBehavior::className(),\n 'attributes' => [\n ActiveRecord::EVENT_BEFORE_INSERT => 'status'\n ],\n 'value' => 1,\n ],\n 'create_update' => [\n 'class' => TimestampBehavior::className(),\n 'createdAtAttribute' => 'created',\n 'updatedAtAttribute' => 'updated',\n ],\n ];\n }",
"public function behaviors()\n {\n\n return [\n 'timestamp' => [\n 'class' => TimestampBehavior::className(),\n 'attributes' => [\n ActiveRecord::EVENT_BEFORE_INSERT => ['created_at', 'updated_at'],\n ActiveRecord::EVENT_BEFORE_UPDATE => 'updated',\n ],\n 'value' => function(){ return date('Y-m-d H:i:s'); /* MySql DATETIME */},\n ],\n 'autouserid' => [\n 'class' => BlameableBehavior::className(),\n 'attributes' => [\n ActiveRecord::EVENT_BEFORE_INSERT => ['user_id'],\n ],\n ],\n ];\n }",
"public function behaviors()\n {\n \n $behaviors = parent::behaviors();\n \n $behaviors['verbs'] = [\n 'class' => \\yii\\filters\\VerbFilter::className(),\n 'actions' => [\n 'authorize' => ['POST'],\n 'accesstoken' => ['POST'],\n 'index' => ['GET'],\n 'order' => ['GET'],\n 'order-detail' => ['GET'],\n ]\n ];\n \n return $behaviors;\n }",
"public function behaviors() {\n return array(\n 'CTimestampBehavior' => array(\n 'class' => 'zii.behaviors.CTimestampBehavior',\n\t\t\t\t'createAttribute' => 'createTime',\n 'updateAttribute' => 'createTime',\n ),\n );\n }",
"public function receivedInteractions()\n {\n return $this->morphMany('App\\Interaction', 'receiver');\n }",
"public function behaviors()\n {\n parent::behaviors();\n return [\n 'verbs' => [\n 'class' => VerbFilter::className(),\n 'actions' => [\n 'delete' => ['POST'],\n ],\n ],\n ];\n }",
"public function behaviors()\n {\n $behaviors = parent::behaviors();\n\t\t$behaviors['authenticator'] =\n\t\t[\n\t\t\t'class' => TokenAuth::className(),\n\t\t];\n $behaviors['verbs'] =\n [\n 'class' => VerbFilter::className(),\n 'actions' => [\n 'get-me' => ['get'],\n 'get-active' => ['get'],\n ],\n ];\n return $behaviors;\n }",
"public function behaviors()\n {\n return ArrayHelper::merge([\n [\n 'class' => SluggableBehavior::class,\n 'attribute' => 'name'\n ]\n ],\n parent::behaviors()\n );\n }",
"public function behaviors()\n {\n return array(\n 'CTimestampBehavior' => array(\n 'class' => 'zii.behaviors.CTimestampBehavior',\n 'createAttribute' => 'create_time',\n 'updateAttribute' => 'update_time',\n 'setUpdateOnCreate' => true,\n ),\n );\n }",
"public function behaviors()\n {\n return array(\n 'CTimestampBehavior' => array(\n 'class' => 'zii.behaviors.CTimestampBehavior',\n 'createAttribute' => 'create_time',\n 'updateAttribute' => 'update_time',\n 'setUpdateOnCreate' => true,\n ),\n );\n }",
"public function applyBehaviors()\n {\n foreach ($this->behaviors as $behavior) {\n if (!$behavior->isEntityModified()) {\n $behavior->getEntityModifier()->modifyEntity();\n $behavior->setEntityModified(true);\n }\n }\n }",
"protected function addContentNegotiatorBehavior($behaviors): array\n {\n $behaviors['contentNegotiator'] = [\n 'class' => ContentNegotiator::class,\n 'formats' => [\n 'application/json' => Response::FORMAT_JSON\n ],\n ];\n return $behaviors;\n }",
"public function clearBehaviors()\n\t{\n\t\tif($this->_m!==null)\n\t\t{\n\t\t\tforeach($this->_m->toArray() as $name=>$behavior)\n\t\t\t\t$this->detachBehavior($name);\n\t\t\t$this->_m=null;\n\t\t}\n\t}",
"public function sentInteractions()\n {\n return $this->morphMany('App\\Interaction', 'sender');\n }",
"public function testBehaviorOrderCallbacks() {\n\t\t$model = ClassRegistry::init ( 'Orangutan' );\n\t\t$model->Behaviors->init ( 'Orangutan', array (\n\t\t\t\t'Second' => array (\n\t\t\t\t\t\t'priority' => 9 \n\t\t\t\t),\n\t\t\t\t'Third',\n\t\t\t\t'First' => array (\n\t\t\t\t\t\t'priority' => 8 \n\t\t\t\t) \n\t\t) );\n\t\t\n\t\t$this->assertEmpty ( $model->called );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'ThirdBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'Third', array (\n\t\t\t\t'priority' => 1 \n\t\t) );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'FirstBehavior',\n\t\t\t\t'SecondBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->load ( 'First' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'ThirdBehavior',\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->unload ( 'Third' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->disable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t\t\n\t\t$model->called = array ();\n\t\t$model->Behaviors->enable ( 'Second' );\n\t\t\n\t\t$model->find ( 'first' );\n\t\t$expected = array (\n\t\t\t\t'SecondBehavior',\n\t\t\t\t'FirstBehavior' \n\t\t);\n\t\t$this->assertEquals ( $expected, $model->called );\n\t}",
"protected function parseBehaviorTraits(){\n\t\t$traits = (new \\ReflectionClass($this))->getTraits();\n\t\tif (!empty($traits)){\n\t\t\t$getName = function(\\ReflectionMethod $image){ return $image->name; };\n\t\t\tforeach($traits as $reflection){\n\t\t\t\t$methods = $reflection->getMethods(\\ReflectionMethod::IS_PUBLIC);\n\t\t\t\t$this->behaviorMethods += array_map($getName, $methods);\n\t\t\t}\n\t\t}\n\t}",
"public function behaviors()\n {\n return [\n 'verbs' => [\n 'class' => VerbFilter::className(),\n 'actions' => [\n 'delete' => ['post'],\n ],\n ],\n ];\n }",
"public function behaviors()\n {\n return [\n 'verbs' => [\n 'class' => VerbFilter::className(),\n 'actions' => [\n 'delete' => ['post'],\n ],\n ],\n ];\n }",
"public function behaviors() {\n return [\n FilterMessageBehavior::className(),\n ];\n }",
"public function loadBehaviors($data)\n {\n $loaded = true;\n foreach ($this->getBehaviors() as $behavior) {\n if ($behavior instanceof ModelBehaviorInterface) {\n if (!$behavior->load($data)) {\n $loaded = false;\n }\n }\n }\n\n return $loaded;\n }",
"public function behaviors()\n {\n return [\n 'verbs' => [\n 'class' => VerbFilter::className(),\n 'actions' => [\n 'delete' => ['POST'],\n ],\n ],\n ];\n }",
"public function behaviors()\n {\n return [\n 'verbs' => [\n 'class' => VerbFilter::className(),\n 'actions' => [\n 'add' => ['POST'],\n ],\n ],\n ];\n }",
"private function getBehaviorNames(CComponent $obj) {\n $prop = new ReflectionProperty( 'CComponent', '_m' );\n $prop->setAccessible( true );\n $behaviors = $prop->getValue( $obj );\n\n return array_keys( $behaviors );\n }",
"public function behaviors()\n {\n return [\n 'bedezign\\yii2\\audit\\AuditTrailBehavior'\n ];\n }",
"public function behaviors()\n {\n $behaviors = parent::behaviors();\n// print_r($behaviors);exit;\n\n $behaviors['contentNegotiator']['formats'] = '';\n $behaviors['contentNegotiator']['formats']['application/xml'] = Response::FORMAT_XML;\n return $behaviors;\n }",
"public function getAdditionalBuilders()\n {\n $additionalBuilders = [];\n foreach ($this->behaviors as $behavior) {\n $additionalBuilders = array_merge($additionalBuilders, $behavior->getAdditionalBuilders());\n }\n\n return $additionalBuilders;\n }",
"public function behaviors() {\n return [\n [\n 'class' => \\app\\components\\AccessFilter::className(),\n ],\n [\n 'class' => \\app\\components\\AuthItemFilter::className(),\n 'only' => [\n 'admin', 'detalle', 'crear', 'actualizar', 'eliminar', 'listar-ofertas'\n ],\n 'authsActions' => [\n 'admin' => 'intranet_ofertas-laborales_admin',\n 'detalle' => 'intranet_ofertas-laborales_admin',\n 'crear' => 'intranet_ofertas-laborales_admin',\n 'actualizar' => 'intranet_ofertas-laborales_admin',\n 'eliminar' => 'intranet_ofertas-laborales_admin',\n 'listar-ofertas' => 'intranet_usuario'\n ]\n ],\n ];\n }",
"public function attachments()\n {\n return $this->morphMany(Attachment::class, 'attachmentable');\n }",
"public function attachments()\n {\n return $this->morphMany(Attachment::class, 'attachmentable');\n }",
"public function resumeAllBehaviors() {\n\t\tforeach ($this->model->behaviors() as $key => $behav) {\n\t\t\tif ($this->suspendedBehaviors[$behav['class']]) {\n\t\t\t\t$this->model->attachBehavior($key, $this->suspendedBehaviors[$behav['class']]);\n\t\t\t\tunset($this->suspendedBehaviors[$behav['class']]);\n\t\t\t}\n\t\t}\n\t}",
"public function behaviors()\n {\n $behaviors = parent::behaviors();\n $behaviors['contentNegotiator'] = [\n 'class' => 'yii\\filters\\ContentNegotiator',\n 'only' => ['index'], // in a controller\n // if in a module, use the following IDs for user actions\n // 'only' => ['user/view', 'user/index']\n 'formats' => [\n 'application/json' => Response::FORMAT_JSON,\n ],\n 'languages' => [\n 'en',\n 'de',\n ],\n ];\n $behaviors['authenticator'] = [\n 'class' => TwXAuth::className(),\n ];\n $behaviors['corsFilter'] = [\n 'class' => \\yii\\filters\\Cors::className(),\n 'cors' => [\n 'Origin' => ['*'],\n 'Access-Control-Request-Method' => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD', 'OPTIONS'],\n 'Access-Control-Request-Headers' => ['*'],\n 'Access-Control-Allow-Credentials' => true,\n 'Access-Control-Expose-Headers' => [],\n 'Access-Control-Max-Age' => 86400,\n ],\n\n ];\n\n // Disable the authenticator for OPTION (Cors Preflight)\n if (Yii::$app->request->isOptions) {\n unset($behaviors['authenticator']);\n }\n\n $whitelist = getenv('APP_API_WHITELIST');\n if (!empty($whitelist)) {\n $ips = explode(',', $whitelist);\n if (in_array(Yii::$app->getRequest()->getUserIP(), $ips)) {\n unset($behaviors['authenticator']);\n }\n }\n\n return $behaviors;\n }",
"protected function getSupportedDirectiveLocationsByBehavior() : array\n {\n return [FieldDirectiveBehaviors::OPERATION, FieldDirectiveBehaviors::FIELD, FieldDirectiveBehaviors::FIELD_AND_OPERATION];\n }",
"public function behaviors()\n {\n return ArrayHelper::merge(parent::behaviors(), [\n [\n 'class' => 'yii\\filters\\ContentNegotiator',\n //'only' => ['view', 'index'], // in a controller\n // if in a module, use the following IDs for user actions\n // 'only' => ['user/view', 'user/index']\n 'formats' => [\n 'application/json' => Response::FORMAT_JSON,\n ],\n ],\n ]);\n }",
"public function behaviors()\n {\n return [\n // Only allow logged in users to comment\n 'access' => [\n 'class' => AccessControl::class,\n 'only' => ['create'],\n 'rules' => [\n [\n 'allow' => true,\n 'roles' => ['@'],\n ],\n ],\n ],\n 'content' => [\n 'class' => ContentNegotiator::class,\n 'only' => ['create', 'update', 'delete'],\n 'formats' => [\n 'application/json' => Response::FORMAT_JSON,\n ],\n ],\n // Only allow POST requests\n 'verb' => [\n 'class' => VerbFilter::class,\n 'actions' => [\n 'delete' => ['POST'],\n ],\n ],\n ];\n }",
"public static function taxRuleBehaviors(): array\n {\n return [\n 'only' => __('Only This Tax'),\n 'combine' => __('Combine Taxes'),\n 'all' => __('One After Another'),\n ];\n }",
"public function behaviors() \r\n {\r\n return [\r\n TimestampBehavior::className(),\r\n ];\r\n }",
"public function relations() {\r\n\t\treturn CMap::mergeArray(parent::relations(), array(\r\n\t\t\t\"properties\" => array(self::HAS_MANY,\"APropertyModel\",\"classId\"),\r\n\t\t\t\"interfaces\" => array(self::MANY_MANY,\"AInterfaceModel\",\"classImplements(classId,implementsId)\"),\r\n\t\t));\r\n\t}",
"public function behaviors()\n {\n return [\n TimestampBehavior::className(),\n ];\n }",
"public function behaviors()\n {\n return [\n TimestampBehavior::className(),\n ];\n }",
"public function behaviors()\n {\n return [\n TimestampBehavior::className(),\n ];\n }",
"public function behaviors()\n {\n return [\n TimestampBehavior::className(),\n ];\n }",
"public function testGetEntityBehaviors()\n {\n $this->prepareProductNotes();\n\n $importModel = $this->_model;\n $actualBehaviors = $importModel->getEntityBehaviors();\n\n foreach ($this->_entityBehaviors as $entityKey => $behaviorData) {\n $this->assertArrayHasKey($entityKey, $actualBehaviors);\n $this->assertEquals($behaviorData, $actualBehaviors[$entityKey]);\n }\n }",
"public function behaviors()\n {\n return ArrayHelper::merge(parent::behaviors(), [\n 'access' => [\n 'class' => AccessControl::class,\n 'rules' => [\n [\n 'allow' => true,\n 'roles' => ['@'],\n ],\n [\n 'allow' => true,\n 'actions' => ['login', 'logout'],\n 'roles' => ['?'],\n ],\n ]\n ],\n 'authenticator' => [\n 'except' => ['login', 'logout'] // bypass authentication for /auth/login\n ]\n ]);\n }",
"public function attachments()\n {\n return $this->morphMany(Attachment::class, 'model')->AttachmentType();\n }",
"protected function _setupBehaviors() {\n\t\tif (class_exists('SearchableBehavior')) {\n\t\t\t$this->actsAs[] = 'Search.Searchable';\n\t\t}\n\n\t\tif (class_exists('SluggableBehavior') && Configure::read('Users.disableSlugs') !== true) {\n\t\t\t$this->actsAs['Utils.Sluggable'] = array(\n\t\t\t\t'label' => 'username',\n\t\t\t\t'method' => 'multibyteSlug');\n\t\t}\n\t}"
] | [
"0.8009588",
"0.7839868",
"0.780444",
"0.7443945",
"0.7443945",
"0.7443945",
"0.7443945",
"0.7443945",
"0.7443945",
"0.7443945",
"0.7443945",
"0.7443945",
"0.74065214",
"0.73934823",
"0.72787577",
"0.7253186",
"0.7253186",
"0.7211261",
"0.7206979",
"0.7179388",
"0.71209157",
"0.7077062",
"0.6989556",
"0.69661725",
"0.6897217",
"0.67816234",
"0.67758393",
"0.67758393",
"0.6747731",
"0.6738397",
"0.6727226",
"0.6618143",
"0.6592283",
"0.6592283",
"0.6582401",
"0.65823245",
"0.6550923",
"0.65484154",
"0.6489102",
"0.6450558",
"0.6415097",
"0.6397504",
"0.63956255",
"0.63736224",
"0.63695633",
"0.6344543",
"0.63004726",
"0.6226247",
"0.6184321",
"0.6180583",
"0.60713947",
"0.60519385",
"0.60519385",
"0.5990477",
"0.59770226",
"0.5969786",
"0.5959482",
"0.594354",
"0.5924257",
"0.590616",
"0.58776176",
"0.58465225",
"0.58255523",
"0.57751364",
"0.57751364",
"0.57681316",
"0.576727",
"0.5758592",
"0.5755733",
"0.57380784",
"0.5671966",
"0.5655012",
"0.5655012",
"0.5612643",
"0.5583075",
"0.5576919",
"0.5548812",
"0.5542591",
"0.5529854",
"0.5491845",
"0.54840904",
"0.5483171",
"0.5479617",
"0.5479617",
"0.5476011",
"0.54624283",
"0.54530984",
"0.5443461",
"0.54162043",
"0.5389188",
"0.53624153",
"0.5357571",
"0.53361475",
"0.53361475",
"0.53361475",
"0.53361475",
"0.5334634",
"0.53253204",
"0.5299587",
"0.5291518"
] | 0.65692294 | 36 |
Factory method to get Model objects | public static function model($className=__CLASS__) {
return parent::model($className);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract protected function modelFactory();",
"protected static function getModel()\n {\n $modelName = get_called_class();\n $model = new $modelName();\n $model->setFetchMode(\\Phalcon\\Db::FETCH_OBJ);\n return $model;\n }",
"public static function model()\n {\n return new self;\n }",
"public function model()\n {\n $model = $this->_model;\n return new $model;\n\n }",
"public function model($model) {\r\n require_once \"../app/models/$model.php\";\r\n return new $model; //return class\r\n }",
"protected function instantiate()\n\t{\n\t\t$class = get_class($this);\n\t\t$model = new $class(null);\n\t\treturn $model;\n\t}",
"public static function model() {\n //here __CLASS__ or self does not work because these will return coreModel class name but this is an abstract class so php will generate an error.\n //get_called_class() will return the class name where model is called.It may be the child.\n $class = get_called_class();\n return new $class;\n }",
"abstract public function instanceModel(): Model;",
"public function make($modelClass);",
"protected function getModelInstance()\n {\n return new $this->model();\n }",
"protected function makeModel()\n {\n return factory(Employee::class)->create();\n }",
"protected function model()\n {\n $model = new $this->className;\n foreach ($this->conditions as $cond) {\n if (is_array($cond)) {\n if (count($cond) === 3) {\n // Convert to whereIn()\n if ($cond[1] === 'in') {\n $model = $model->whereIn($cond[0], $cond[2]);\n }\n // Typical 3 params where()\n else {\n $model = $model->where($cond[0], $cond[1], $cond[2]);\n }\n }\n elseif (count($cond) === 2) {\n // Typical 2 params where()\n $model = $model->where($cond[0], $cond[1]);\n }\n else {\n throw new \\Exception('Invalid number of parameters.');\n }\n }\n }\n $this->model = $model;\n return $this->model;\n }",
"public abstract function model();",
"public function createModel()\n\t{\n\t\t$class = '\\\\'.ltrim($this->model, '\\\\');\n\t\treturn new $class;\n\t}",
"abstract public function model();",
"abstract public function model();",
"abstract public function model();",
"abstract public function model();",
"abstract protected function model();",
"abstract protected function model();",
"static public function getModel($model_name) {\n return new $model_name();\n }",
"public function getModel()\n {\n return new $this->model;\n }",
"abstract function getModel();",
"private function loadModel() {\n // name as requested resource.\n $name = $this->name.'Model';\n $path = str_replace(kPlaceholder, $this->version, kModelsFolder);\n $path = $path . $name . \".php\";\n // If it does not exist, go with\n // the default Model class.\n if (!file_exists($path)) {\n return new Model();\n } else {\n if (!class_exists($name)) {\n include $path;\n }\n\n return new $name();\n }\n }",
"protected abstract function model();",
"abstract protected function newModel(): Model;",
"public function createModel()\n {\n $class = '\\\\' . ltrim($this->model, '\\\\');\n\n return new $class;\n }",
"public function createModel()\n {\n $class = '\\\\' . ltrim($this->model, '\\\\');\n\n return new $class;\n }",
"public function model($name){\n\t\treturn new $name();\n\t}",
"abstract function model();",
"abstract function model();",
"abstract function model();",
"abstract function model();",
"abstract protected function getModel();",
"abstract public function getModel();",
"public function model($model) {\n // Require model file\n require_once \"../app/models/{$model}.php\";\n\n // Instantiate model\n return new $model();\n }",
"public function getModel()\n {\n return $this->model->newInstance();\n }",
"public function model($model){\n\n if(file_exists('../src/models/' . $model . '.php')){\n require_once '../src/models/' . $model . '.php';\n return new $model();\n } else {\n die('<strong>Fatal Error:</strong> Model <em>' . $model .'</em> does not exist');\n }\n }",
"private function makeModel()\n {\n\n $this->model = $this->app->make($this->model());\n\n if (!$this->model instanceof Model)\n throw new Exception(\"Class \".$this->model.\" must be an instance of Illuminate\\\\Database\\\\Eloquent\\\\Model\");\n\n\n return $this->model;\n }",
"public function getModel()\n {\n $model = new $this->versionable_type();\n $model->unguard();\n $model->fill(unserialize($this->model_data));\n $model->exists = true;\n $model->reguard();\n return $model;\n }",
"public static function newModel()\n {\n $model = static::$model;\n\n return new $model;\n }",
"function M($model)\n{\n\n $modelFile = APP.'/Model/'.$model.'Model.class.php';\n $modelClass = '\\\\'.MODULE.'\\Model\\\\'.$model.'Model';\n if (is_file($modelFile)) {\n \t$model = new $modelClass();\n \treturn $model;\n } else {\n \tthrow new \\Exception('找不到模型', $modelClass);\n }\n}",
"protected function createModel()\n {\n $class = $this->getModelClass();\n\n $attributes = $this->getModelAttributes();\n\n return new $class($attributes);\n }",
"public function query()\n {\n if ($model = $this->model) {\n return new $model();\n }\n }",
"abstract public function instanceFactory($model): EloquentStorage;",
"protected function make(): Model\n {\n $model = new $this->model;\n $this->modelPk = $model->getKeyName();\n\n return $model;\n }",
"public function model($model)\n\t{\n\t\trequire_once '../app/models/'.$model.'.php';\n\t\treturn new $model();\n\t}",
"public function makeModel()\n {\n return $this->model;\n }",
"public function manager($model) {\n $namespaceModel = 'App\\Model\\\\' . $model;\n return new $namespaceModel(); \n }",
"public static function getModel($name) {\r\n\r\n $class_name = '\\\\App\\\\Models\\\\' . ucfirst($name);\r\n return new $class_name();\r\n\r\n\r\n }",
"public function get_model() {\r\n\t\t$model = null;\r\n\t\t\r\n\t\t//Includes the shared model, if exists.\r\n\t\t$path_shared = 'models/shared.php';\r\n\t\tif (file_exists($path_shared)) include($path_shared);\r\n\t\t\r\n\t\t//Checks if the models' file for the current controller exists.\r\n\t\t$path_current_model = 'models/'.$this->controller.'.php';\r\n\t\t\r\n\t\tif (file_exists($path_current_model)) {\r\n\t\t\t//If the file exists, checks if the class for the current action exists.\r\n\t\t\tinclude($path_current_model);\r\n\t\t\t$class_name = ucwords($this->controller).ucwords($this->action).\"Model\";\r\n\t\t\t\r\n\t\t\tif (class_exists($class_name)) {\r\n\t\t\t\t//Creates the class and populates its properties.\r\n\t\t\t\t$model = new $class_name();\r\n\t\t\t\t\r\n\t\t\t\t//Iterates through all request values and check for properties with the same name.\r\n\t\t\t\tforeach ($_REQUEST as $key => $value) {\r\n\t\t\t\t\tif (property_exists($model, $key)) {\r\n\t\t\t\t\t\t$model->$key = $value;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn $model;\r\n\t}",
"public function _instanciar_model() {\n $Model = ClassRegistry::init('Autenticacao.' . $this->config['model_usuario']);\n return $Model;\n }",
"public function model($model)\n\t{\n\t\trequire_once INC_ROOT .'/app/models/'. $model .'.php';\n\t\treturn new $model();\n\t}",
"public function getModel()\n {\n $modelData = is_resource($this->model_data)\n ? stream_get_contents($this->model_data,-1,0)\n : $this->model_data;\n\n $className = self::getActualClassNameForMorph($this->versionable_type);\n $model = new $className();\n $model->unguard();\n $model->fill(unserialize($modelData));\n $model->exists = true;\n $model->reguard();\n return $model;\n }",
"abstract protected function getModelClass();",
"abstract public function getModel($name);",
"public function create()\n {\n return $this->modelManager->instance($this->model);\n }",
"function getModel($model, $params = array()) {\n $model = \"app\\\\models\\\\\" . $model . \"Model\";\n return new $model($params);\n }",
"public function model($model)\n\t{\n\t\tif(file_exists(\"app/model/\".$model.\".php\"))\n\t\t{\n\t\t\trequire_once(\"app/model/\".$model.\".php\");\n\t\t\t$actual=explode(\"/\", $model);\n\t\t\t$main=end($actual);\n\t\t\treturn new $main;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdie(\"Model \".$model.\" not found\");\n\t\t}\n\t}",
"public function getModel(): Model;",
"public function getModel(): Model;",
"private function _getModel()\n {\n if (NULL === $this->_model) {\n $this->_model = new Model();\n }\n\n return $this->_model;\n }",
"protected function get_model()\n {\n if( ! isset(self::$models[$this->_model]))\n {\n $model = $this->_model;\n self::$models[$this->_model] = new $model;\n }\n return self::$models[$this->_model];\n }",
"public function model();",
"public function model();",
"public static function model($className=__CLASS__) {\n\tif (isset(self::$_models[$className]))\n\t return self::$_models[$className];\n\telse {\n\t $model = self::$_models[$className] = new $className(null);\n\t return $model;\n\t}\n }",
"public function Model($model){\r\n $fullpath=cf(\"BASE/MVCPATH\").\"models\".DS.ucwords($model).EXT;\r\n if($this->Load($fullpath)){\r\n return new $model();\r\n }\r\n else {\r\n return null;\r\n } \r\n }",
"protected function model($model)\r\n {\r\n if (file_exists(ROOT_DIR . '/app/models/' . $model . '.php'))\r\n {\r\n require_once ROOT_DIR . '/app/models/' . $model . '.php';\r\n return new $model(self::$db);\r\n }\r\n return NULL;\r\n }",
"public function createModel()\n\t{\n\t\treturn $this->getModelConfiguration()->createModel();\n\t}",
"public function getModel():IModel;",
"public function model() {\n require_once \"../app/models/model.php\";\n $this->model = new Model($this->db);\n }",
"public function _createMockModel()\r\n {\r\n return new D2LWS_User_Model();\r\n }",
"public static function factory($model, $id = NULL)\n\t{\t\n\t\t$class = Jelly_Meta::class_name($model);\n\t\t\n\t\treturn new $class($id);\n\t}",
"function getModel($name);",
"public function getModel() {\r\n\tforeach (glob('modules/' . $this->name . '/model/*.php') as $filename) {\r\n\t $model = basename($filename, '.php');\r\n\t $this->model[$model] = $this->getEntity($model);\r\n\t}\r\n\treturn $this->model;\r\n }",
"public static function newModel(...$params) : Model\n {\n $model = new Model();\n $count = $params ? count($params) : 0;\n\n if ($count === 1)\n {\n $model->loadModelFromText($params[0]);\n }\n\n if ($count === 2 && $params[0])\n {\n $model->loadModel($params[0]);\n }\n\n return $model;\n }",
"public static function factory( $modelClassName )\n\t{\n\t\t$factory = self::$factory;\n\t\treturn ( $factory ) ? $factory( $modelClassName ) : new $modelClassName();\n\t}",
"public function model($model = '')\n\t{\n\t\t// mengarah pada folder apps/models/ namamodels.php\n\t\t\n\t\ttry {\n\t\t\tif (!file_exists(_ROOT_MODEL . $model . '.php')) {\n\t\t\t\tthrow new Exception(\"Models \". $model .\" Not Found. Check Controllernya Bro di bagian load modelnya \");\n\t\t\t}\n\n\t\t\trequire_once _ROOT_MODEL . $model . '.php';\n\t\t\treturn new $model;\n\t\t\texit;\n\t\t} catch (Exception $exception) {\n\t\t\t$my_error = new Error_Handling;\n\t\t\t$my_error->showerror_message($exception->getMessage() , $exception->getFile() , $exception->getLine() , $exception->getTraceAsString());\n\t\t\texit;\n\t\t}\n\t}",
"public static function model() {\n return parent::model(get_called_class());\n }",
"public function getModel(){\n\t\tif( isset($this->model) ){\n\t\t\treturn $this->model;\n\t\t}\n\t\t$nameModel = str_replace(' View' , 'Model' ,__CLASS__ );\n\t\t$this->model = new $nameModel();\n\t}",
"public static function model($className=__CLASS__) { return parent::model($className); }",
"function getModel($model)\n{\n $models = [];\n /* $models['Address'] = new Address;\n $models['Agency'] = new Agency;\n $models['AgencyBranch'] = new AgencyBranch;\n $models['AgencySolicitorPartnership'] = new AgencySolicitorPartnership;\n $models['Cache'] = new Cache;\n $models['ConveyancingCase'] = new ConveyancingCase;\n $models['User'] = new User;\n $models['UserAddress'] = new UserAddress;\n $models['UserPermission'] = new UserPermission;\n $models['UserRole'] = new UserRole;*/\n $models['TargetsAgencyBranch'] = new TargetsAgencyBranch;\n return $models[$model];\n}",
"public function loadModel ($name) { \n $modelName = $name . 'Model';\n if (class_exists($modelName, FALSE)) {\n return new $modelName($this->db);\n } else {\n $path = MODEL_PATH . strtolower($name) . '_model.php';\n // Check for model: Does such a model exist?\n if (file_exists($path)) {\n require MODEL_PATH . strtolower($name) . '_model.php'; \n // Return new model and pass the database connection to the model\n return new $modelName($this->db);\n } else {\n return null;\n }\n }\n }",
"protected function createModel()\n {\n $this->call('make:model', array_filter([\n 'name' => $this->getNameInput(),\n '--factory' => $this->option('factory'),\n '--migration' => $this->option('migration'),\n ]));\n }",
"protected function getNewModel()\n {\n $modelName = $this->getModelName();\n return new $modelName;\n }",
"static public function model($className = __CLASS__)\r\n {\r\n return parent::model($className);\r\n }",
"public function getModel($modelName);",
"protected function model() {\n\t\t$model = Config::get('auth.model');\n\n\t\treturn new $model;\n\t}",
"public static function model($className=__CLASS__) \n { \n return parent::model($className); \n }",
"public static function model($className=__CLASS__) \n { \n return parent::model($className); \n }",
"public function create(): Model;",
"function loadModel($modelName,$negocio){\r\n\tif($modelName=='database'){\r\n\t\t$modelPath = '../Config/'.$negocio.'_'.$modelName.'.php';\r\n\t\tif(is_file($modelPath)){\r\n\t\t\tif (!class_exists($modelName)) {\r\n\t\t\t\trequire_once($modelPath);\r\n\t\t\t}\t\t\r\n\t\t}else{\r\n\t\t\techo 'No existe la conexion'.$modelPath;\r\n\t\t\texit();\r\n\t\t}\r\n\t\t$model = new $modelName();\r\n\t\treturn $model;\t\r\n\t}else{\r\n\t\t$modelPath = '../Model/'.$modelName.'.php';\r\n\t\tif(is_file($modelPath)){\r\n\t\t\tif (!class_exists($modelName)) {\r\n\t\t\t\trequire_once($modelPath);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\techo 'No existe este modelo '.$modelPath;\r\n\t\t\texit();\r\n\t\t}\r\n\t\t$model = new $modelName();\r\n\t\tif($negocio != 'null'){\r\n\t\t\t$model->negocio = $negocio;\r\n\t\t}\t\t\r\n\t\treturn $model;\r\n\t}\r\n}",
"final public static function getModel($model){\n $fileClass = self::getConfig()->path->path_modules.'/'. self::getPathModule().'/model/'.ucfirst($model).self::getConfig()->path->ext_file;\n if(file_exists($fileClass)){\n\n $model = str_replace('/', '\\\\', self::getPathModule().'/model/'.ucfirst($model));\n $obj = new $model();\n return $obj;\n\n }\n\n }",
"private function getModel()\n {\n $model = new CallbacksModel();\n $this->assertInstanceOf('\\CPCCore\\Application\\Model\\CallbacksModel', $model);\n return $model;\n }",
"public function getModel()\n {\n $model = Post::class;\n\n return new $model;\n }",
"public function getModel(){ }",
"public static function newModel()\n {\n return resolve(Manager::class);\n }",
"public function getModelsManager() {}",
"abstract protected function getDefaultModel();",
"public function loadModel($name)\r\n\t\t{\r\n\r\n\t\t\t$path = 'application\\models\\\\'.ucfirst($name);\r\n\t\t\tif (class_exists($path))\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\treturn new $path;\r\n\t\t\t}\r\n\t\t}",
"private static function model()\n {\n $files = ['ORM_', 'CRUD', 'ORM', 'Collection', 'ModelArray'];\n $folder = static::$root.'MVC/Model'.'/';\n\n self::call($files, $folder);\n\n $files = ['ForeingKeyMethodException', 'ColumnNotEmptyException', 'ManyPrimaryKeysException', 'TableNotFoundException', 'ModelNotFoundException', 'PrimaryKeyNotFoundException'];\n $folder = static::$root.'MVC/Model/Exceptions'.'/';\n\n self::call($files, $folder);\n }"
] | [
"0.8138668",
"0.73691905",
"0.7292686",
"0.7284232",
"0.7215549",
"0.72005635",
"0.71583873",
"0.7102406",
"0.708645",
"0.7084505",
"0.70818114",
"0.70503384",
"0.70439637",
"0.70132804",
"0.7010717",
"0.7010717",
"0.7010717",
"0.7010717",
"0.6996837",
"0.6996837",
"0.6976247",
"0.6974843",
"0.69668615",
"0.69642675",
"0.69630057",
"0.69582564",
"0.6958216",
"0.6958216",
"0.6954249",
"0.6953639",
"0.6953639",
"0.6953639",
"0.6953639",
"0.69339454",
"0.68867064",
"0.6875066",
"0.68627286",
"0.68410873",
"0.6834033",
"0.6792703",
"0.6790783",
"0.67840475",
"0.67653644",
"0.6755256",
"0.67313355",
"0.67301327",
"0.67210907",
"0.6691163",
"0.6690452",
"0.66834074",
"0.66794544",
"0.6667361",
"0.6663565",
"0.6637326",
"0.6629047",
"0.66158545",
"0.66097903",
"0.66047025",
"0.6598553",
"0.65797454",
"0.65797454",
"0.65496516",
"0.65347415",
"0.6534057",
"0.6534057",
"0.65153337",
"0.65149754",
"0.6493447",
"0.64648014",
"0.64510274",
"0.64461935",
"0.6441893",
"0.6440451",
"0.6424697",
"0.6422499",
"0.6420682",
"0.6415897",
"0.6406703",
"0.640493",
"0.6394257",
"0.63942105",
"0.63934773",
"0.6385914",
"0.6376451",
"0.6372935",
"0.63702434",
"0.6364882",
"0.63568527",
"0.63530725",
"0.63530725",
"0.6350761",
"0.6350658",
"0.63400024",
"0.63382196",
"0.633538",
"0.6333389",
"0.63304836",
"0.6326464",
"0.6306075",
"0.6292743",
"0.6282187"
] | 0.0 | -1 |
To get Votes w.r.t an Enroller Id | public function votes() : hasMany
{
return $this->hasMany(Vote::class);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getVoterVotes($id){\n\t\t\t\n\t\t\t$url = \"https://www.govtrack.us/api/v2/vote_voter?vote=$id&limit=500\";\n\t\t\treturn json_decode(file_get_contents($url));\n\t\t\t\n\t\t}",
"function getVotes(){\n\t\t\t$date = date(\"Y-m-d\", strtotime(\"-1 day\"));\n\t\t\t$url = \"https://www.govtrack.us/api/v2/vote?created__gt=$date\";\n return json_decode(file_get_contents($url));\n }",
"public function getVoters($id) {\n if (Voter::where('index_number', $id)->exists()) {\n $voter = Voter::where('index_number', $id)->first();\n if($voter->vote_status == \"yes\"){\n return response()->json([\n \"message\" => \"Voter has already voted\"\n ], 201);\n }\n else{\n return response($voter, 200);\n }\n } else {\n return response()->json([\n \"message\" => \"voter not found\"\n ], 404);\n }\n }",
"public function getAllVoters($idea_id){\r\n $table = Engine_Api::_()->getDbtable('ideavotes', 'ynidea');\r\n\t\t$select = $table->select()->where(\"idea_id = ?\",$idea_id);\r\n\t\t$rows = $table->fetchAll($select);\r\n\t \treturn $rows;\r\n }",
"public function votes_get($pollId){\n $this->load->model(\"poll\");\n $this->load->model(\"answer\");\n $this->load->model(\"vote\");\n\n try {\n //Check to see if the poll exists (this throws an exception if it doesn't)\n $poll = $this->poll->getPoll($pollId);\n $answers = $this->answer->getAnswers($pollId);\n $votes = $this->vote->getVotes($pollId);\n\n $answerVotes = array();\n foreach ($answers as $answer) {\n //Set the number of votes for this answer to 0\n $answerVotes[$answer->optionNo - 1] = 0;\n foreach ($votes as $vote){\n //Foreach vote that counts towards this answer\n //add one to the number of vote it has\n if ($vote->answerId == $answer->id){\n $answerVotes[$answer->optionNo - 1] += 1;\n }\n }\n }\n\n $this->response($answerVotes, 200);\n }catch (Exception $e){\n $this->response(array(\"errorMessage\"=>\"Poll does not exist!\"), 404);\n }\n }",
"public function getVotes() {\n\n\t\t//DataBase connection & query\n\t\t$db = Dbconn::getDB();\n\t\t$query = \"SELECT * FROM votes\";\n\t\t$result = $db->query($query);\n\n\t\t$votes = array();\n\n\t\tforeach ($result as $row)\n\t\t{\n\t\t\t$vote = new Vote(\n\t\t\t\t\t\t\t$row['vote_id'],\n\t\t\t\t\t\t\t$row['caselaw_id'],\n\t\t\t\t\t\t\t$row['votes_up'],\n\t\t\t\t\t\t\t$row['votes_down'],\n\t\t\t\t\t\t\t$row['user_id']\n\t\t\t\t\t\t\t);\n\t\t\t$votes[] = $vote;\n\t\t}\n\n\t\treturn $votes;\n\t}",
"function voter() {\n\t\tif (isset($_GET['id']) && isset($_GET['vote'])) {\n\t\t\tif ($this -> modele -> getSondage($_GET['id']) && $this -> modele -> getAVote($_GET['id'], $_SESSION['id']) == 0) {\n\t\t\t\tif ($this -> modele -> insertAVote($_GET['id'], $_SESSION['id'], $_GET['vote']) != 0 && $this -> modele -> updateSondage($_GET['vote'], $_GET['id'])) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t$sondage = $this -> modele -> getSondage($_GET['id']);\n\t\t\t$resultats = '';\n\t\t\t$totalVote = $sondage[5] + $sondage[6] + $sondage[7] + $sondage[8];\n\t\t\tif (is_array($sondage) || is_object($sondage)) {\n\t\t\t\tforeach ($sondage as $key => $reponse) {\n\t\t\t\t\tif ($key > 0 && $key < 5 && $reponse != null) {\n\t\t\t\t\t\tif ($totalVote == 0)\n\t\t\t\t\t\t\t$resultats .= $this -> vue -> resultat($reponse, 0);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\t$resultats .= $this -> vue -> resultat($reponse, $sondage[$key + 4] / $totalVote * 100);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\techo $this -> vue -> resultatSondage($resultats);\n\t\t}\n\t}",
"public function votes(Request $request, $id = null)\n {\n return Vote::where(['request_id' => $id])->get();\n }",
"public function getVotes()\n {\n return $this->votes;\n }",
"public function voteAction()\n {\n $return = 0;\n\n /* Getting current user's data */\n $user = Auth::getUser();\n\n /* Checking if user is online and answer_id > 0 */\n if ($user && $_GET['id'] > 0) {\n \n /* Vote answer and return number of votes */\n $return = VotedAnswer::vote($user->id, $_GET['id']);\n }\n \n /* Return response */\n header('Content-Type: application/json');\n echo json_encode($return);\n }",
"public static function fetchVotesByCharityId() {\n\t\tglobal $wpdb;\n\n\t\tif (self::$votesByCharityId)\n\t\t\treturn;\n\n\t\tself::$votesByCharityId=array();\n\n\t\t$countRows=$wpdb->get_results(\n\t\t\t\"SELECT charityId, COUNT(ip) as count \".\n\t\t\t\"FROM {$wpdb->prefix}vote \".\n\t\t\t\"WHERE valid=1 \".\n\t\t\t\"GROUP BY charityId \",\n\t\t\tARRAY_A);\n\n\t\tif ($wpdb->last_error)\n\t\t\tthrow new Exception($wpdb->last_error);\n\n\t\tforeach ($countRows as $countRow)\n\t\t\tself::$votesByCharityId[$countRow[\"charityId\"]]=$countRow[\"count\"];\n\t}",
"public function getVotes($id)\n {\n $queryBuilder = $this->createQueryBuilder('review');\n $queryBuilder->select('review.id','review.votes')\n ->where(\"review.id = :id\")\n ->setParameter('id', $id);\n\n $query = $queryBuilder->getQuery();\n $result = $query->getSingleResult();\n\n return $result;\n }",
"function getvotes($id)\r\n\t{\r\n\t\t$query = 'SELECT rating_sum, rating_count FROM #__content_rating WHERE content_id = '.(int)$id;\r\n\t\t$this->_db->setQuery($query);\r\n\t\t$votes = $this->_db->loadObjectlist();\r\n\r\n\t\treturn $votes;\r\n\t}",
"public function getOffers()\n {\n return $this->getValue('offers');\n }",
"public function getVotersPolling($id){\n $Query = \"SELECT v.id, v.firstname, v.middlename, v.lastname, v.datebirth, v.gender, v.residentialaddress, \n v.voterIDnumber, v.lifestatus, p.name\n FROM voters2015 v\n JOIN pollingstations p ON v.pollingstation_id = p.id\n JOIN pollingstation_shehia ps ON v.pollingstation_id = ps.pollingstation_id\n WHERE ps.shehia_id = $id\n ORDER BY p.name, v.gender, v.firstname, v.middlename, v.lastname ASC\";\n $stmt = $this->con->prepare($Query);\n $stmt->bind_param(\"i\",$id);\n $stmt->execute();\n $pollVoters = $stmt->get_result();\n $stmt->close();\n return $pollVoters;\n }",
"private function getQuoteVales($id)\n {\n $user = auth()->user();\n $valoresVenta = DB::select('SELECT SUM(dv.quantity*dv.price) AS subTotal,\n SUM(dv.other) AS descuentos\n FROM quote_items dv\n INNER JOIN quotes v ON v.id = dv.quote_id\n INNER JOIN users ON users.id = v.created_by_id\n WHERE dv.quote_id = ? AND dv.offer <> 1\n AND dv.package = 0 AND dv.optional <> 1 AND users.organization_id = ?',\n [$id,$user->organization_id]);\n return $valoresVenta;\n }",
"function get_voucher($id)\n\t{\n\t\treturn $this->db->where('id', $id)->get('vouchers')->row();\n\t}",
"public function getVoters($id, $username, $voteType)\n {\n $queryBuilder = $this->createQueryBuilder('review');\n $queryBuilder->select('review.id','review.upVoters', 'review.downVoters')\n ->where(\"review.id = :id\")\n ->setParameter('id', $id);\n\n $query = $queryBuilder->getQuery();\n $queryResult = $query->getSingleResult();\n $upVoters = $queryResult['upVoters'];\n $downVoters = $queryResult['downVoters'];\n if ($voteType === 'up') {\n if (strpos($upVoters,$username) !== false) {\n return false;\n } else {\n if (strpos($downVoters,$username) !== false) {\n $downReplace = str_replace($username,'',$downVoters);\n $downVoters = $downReplace;\n } else {\n $upVoters = is_null($upVoters) ? $username : $upVoters . ',' . $username;\n }\n }\n } elseif ($voteType === 'down') {\n if (strpos($downVoters,$username) !== false) {\n return false;\n } else {\n if (strpos($upVoters,$username) !== false) {\n $upReplace = str_replace($username,'',$upVoters);\n $upVoters = $upReplace;\n } else {\n $downVoters = is_null($downVoters) ? $username : $downVoters . ',' . $username;\n }\n }\n }\n\n return ['upVoters' => $upVoters, 'downVoters' => $downVoters];\n }",
"public function Voted ($id) {\n // if (Voter::where('index_number', $id)->exists()) {\n $voter = Voter::where(\"index_number\", '=', $id)->update(['vote_status'=> 'yes']);\n if($voter){\n return response()->json([\n \"message\" => \"sucesss\"\n ], 200);\n }\n else{\n return response()->json([\n \"message\" => \"Failed to update yes\"\n ], 404);\n }\n \n \n // } else {\n \n // }\n }",
"public function getOffers()\n {\n return $this->offers;\n }",
"public function getAllVoters(Request $request) {\n $voter = Voter::get()->toJson(JSON_PRETTY_PRINT);\n return response($voter, 200);\n }",
"public function votes()\n {\n return $this->hasMany(Vote::class);\n }",
"public function votes()\n {\n return $this->hasMany(Vote::class);\n }",
"public function offers_get()\n\t{\n $token = $_SERVER['HTTP_TOKEN'];\n $data = array(\n 'status' => 0,\n 'code' => -1,\n 'msg' => 'Bad Request',\n 'data' => null\n );\n if($this->checkToken($token))\n {\n $offers = $this->Api_model->getOffers();\n if (isset($offers)) {\n $data = array(\n 'status' => 1,\n 'code' => 1,\n 'msg' => 'success',\n 'data' => $offers\n );\n }else{\n $data = array(\n 'status' => 1,\n 'code' => 1,\n 'msg' => 'success',\n 'data' => null\n );\n }\n }else\n {\n $data['msg'] = 'Request Unknown or Bad Request';\n }\n $this->response($data, REST_Controller::HTTP_OK);\n\t}",
"public function getProductOffers($productId);",
"public function post_votes()\n {\n return $this->hasMany('arts\\Post_vote', 'post_id', 'post_id');\n }",
"function vote_edition() {\n\t$nonce = $_POST['nonce'];\n\n\tif ( ! wp_verify_nonce( $nonce, 'ajax-nonce' ) )\n\t\tdie ( 'Busted!');\n\t\n\t// get edition\n\t$editionID = $_POST['tag_id'];\n\n\t// get edition data\n\t$editionData = get_edition_data($editionID);\n\n\t// get current IP\n\t$currentVoterIP = get_client_ip();\n\n\t// check if already voted\n\t$voterCheck = check_if_voted($currentVoterIP, $editionID, $editionData[\"votes\"]);\n\t\n\t// if not yet voted\n\tif( empty($voterCheck) ) {\n\t\n\t\t// add new vote\n\t\t$editionData[\"votes\"] = addVote($currentVoterIP, $editionID, $editionData[\"votes\"]);\n\t}\n\t// if already voted\n\telse {\n\t\n\t\t// remove vote\n\t\t$editionData[\"votes\"] = removeVote($currentVoterIP, $editionID, $editionData[\"votes\"]);\n\t}\n\t\n\t//$editionData[\"votes\"] = [];\n\t// save new data\t\n\tsave_extra_post_tag_fields( $editionID, $editionData );\n\n\t// get votes count for current edition\n\t$count = count( $editionData[\"votes\"] );\n\t\n\t// display count (ie jQuery return value)\n\techo $count;\n\t\n\tdie();\n}",
"public function getOffer($id = 0)\n\t{\n\t\t$offer=Offers::where('id',$id)->where('status',1)->get();\t\t\n\t\t\n\t\t/*$arr = str_split('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ');\n\t\t$offer->code = '';\n\t\tfor($i = 0; $i <= 8; $i++)\n\t\t{\n\t\t\t$offer->code .= $arr[array_rand($arr)];\n\t\t}*/\n\t\t\n\t\t$offer=OffersResource::collection($offer);\n\t\treturn $this->apiDataResponse($offer);\n\t}",
"public function index()\n {\n $votes = $this->votes->getVotesPaginated(config('core.interaction.vote.default_per_page'))->items();\n $res = [\n 'status' => $votes ? 'OK' : 'error',\n 'result' => $votes,\n ];\n return response()->json($res);\n }",
"public function getAllVotes($id,$number=20)\n {\n $topics = DB::table('、')->select('topic_id')->where('user_id',[$id])->get();\n $topicId = [];\n foreach ($topics as $topic)\n $topicId[] = $topic->topic_id;\n return Topic::whereIn('id',$topicId)->whereNotIn('user_id',[$id])\n ->whereHas('category',function($q){\n $q->where('is_blocked','no');\n })->paginate($number);\n\n }",
"public function list_voters() {\n\t\t\t$comment_id = absint( filter_input( INPUT_POST, 'comment_id', FILTER_SANITIZE_STRING ) );\n\t\t\t$users = get_comment_meta( $comment_id, 'votes', true );\n\t\t\t$voter_data = array();\n\n\t\t\tforeach ( $users as $user_id => $vote_type ) {\n\t\t\t\t$user_obj = get_user_by( 'ID', $user_id );\n\t\t\t\t$voter_data[] = array(\n\t\t\t\t\t'voter_name' => $user_obj->display_name,\n\t\t\t\t\t'vote_type' => $vote_type,\n\t\t\t\t);\n\t\t\t}\n\t\t\techo wp_json_encode( $voter_data );\n\t\t\twp_die();\n\t\t}",
"public function getPostsVotados()\n {\n return $this->hasMany(Post::className(), ['id' => 'post_id'])->via('votos');\n }",
"function getVoted()\n {\n JSession::checkToken() or jexit('Invalid Token');\n\n $app = JFactory::getApplication();\n $idea_id = JRequest::getInt('id', 0);\n $option_id = JRequest::getInt('voteid', 0);\n $idea = JTable::getInstance('Idea', 'Table');\n\n if(!$idea->load($idea_id) || $idea->published != 1)\n {\n $app->redirect('index.php', JText::_('ALERTNOTAUTH 1'));\n\n return true;\n }\n\n require_once(JPATH_COMPONENT . '/models/idea.php');\n $model = new JUIdeiModelIdea();\n $params = new JRegistry($idea->params);\n $cookieName = JApplicationHelper::getHash($app->getName() . 'idea' . $idea_id);\n\n\n $voted_cookie = JRequest::getVar($cookieName, '0', 'COOKIE', 'INT');\n $voted_ip = $model->ipVoted($idea, $idea_id);\n\n if($params->get('ip_check') and ($voted_cookie or $voted_ip or !$option_id))\n {\n /*if($voted_cookie || $voted_ip)\n {\n $msg = JText::_('COM_MIR_ALREADY_VOTED');\n $tom = \"error\";\n }\n\n if(!$option_id)\n {\n $msg = JText::_('COM_MIR_NO_SELECTED');\n $tom = \"error\";\n }\n */\n\n $this->_voted = 0;\n }\n else\n {\n if($model->vote($idea_id, $option_id))\n {\n $this->_voted = 1;\n\n setcookie($cookieName, '1', time() + 60 * $idea->lag);\n }\n else\n {\n $this->_voted = 0;\n }\n }\n\n return $this->_voted = 1;\n }",
"public function votes()\n\t{\n\t\treturn $this->hasMany('Vote');\n\t}",
"public function votes()\n {\n return $this->hasMany('App\\Vote');\n }",
"public function votes()\n {\n return $this->hasMany('App\\Vote');\n }",
"public function votes()\n {\n return $this->hasMany('App\\Vote');\n }",
"public function votes()\n {\n return $this->hasMany('App\\Vote');\n }",
"public function getOffersList()\n {\n $query = $this->createQueryBuilder('offers')\n ->getQuery();\n\n return $query->getResult();\n }",
"protected function vouchers(): Voucher\n {\n return Config::model('voucher')::make();\n }",
"private function getInfoVenta($id)\n {\n $user = auth()->user();\n $infoVenta = DB::table('quotes')\n ->select('quotes.id as quote_id','quotes.account_id', 'quotes.created_by_id',\n 'quotes.id as quoteId', 'quotes.quote_date','countries.currency',\n 'accounts.name as accountName','users.name as userName',\n 'quotes.tax','quotes.stage_id',\n DB::raw(\"upper(quotes.quote_number) AS quote_number\"),\n 'quotes.aditional_detail','organizations.email',\n 'locations.address','accounts.billing_address',\n 'locations.city','quotes.quote_date','organizations.phone',\n 'organizations.name as organizationName',\n 'accounts.document_number','document_types.name as documenttype')\n ->join('accounts', 'accounts.id', '=', 'quotes.account_id')\n ->join('document_types', 'document_types.id', '=', 'accounts.document_type_id')\n ->join('record_types', 'record_types.id', '=', 'document_types.record_type_id')\n ->join('users', 'users.id', '=', 'quotes.created_by_id')\n ->join('locations', 'locations.id', '=', 'quotes.location_id')\n ->join('countries', 'countries.id', '=', 'locations.country_id')\n ->join('organizations', 'organizations.id', '=', 'users.organization_id')\n ->where('users.organization_id', $user->organization_id)\n ->where('quotes.id', $id)->first();\n return $infoVenta;\n }",
"public function vote(Voting $voting, User $user, $answerId);",
"public function voteAction ()\n {\n /* @var $em \\Doctrine\\ORM\\EntityManager */\n $em = $this->get('doctrine')->getManager();\n \n $user = $this->getUser();\n if(!$user) {\n throw new UnauthorizedHttpException('You must be logged in to comment.');\n }\n \n $request = $this->getRequest();\n $decklist_id = filter_var($request->get('id'), FILTER_SANITIZE_NUMBER_INT);\n \n $decklist = $em->getRepository('NetrunnerdbBuilderBundle:Decklist')->find($decklist_id);\n $query = $em->getRepository('NetrunnerdbBuilderBundle:Decklist')\n ->createQueryBuilder('d')\n ->innerJoin('d.votes', 'u')\n ->where('d.id = :decklist_id')\n ->andWhere('u.id = :user_id')\n ->setParameter('decklist_id', $decklist_id)\n ->setParameter('user_id', $user->getId())\n ->getQuery();\n \n $result = $query->getResult();\n if (empty($result)) {\n $user->addVote($decklist);\n $author = $decklist->getUser();\n $author->setReputation($author->getReputation() + 1);\n $decklist->setTs(new \\DateTime());\n $decklist->setNbvotes($decklist->getNbvotes() + 1);\n $this->get('doctrine')\n ->getManager()\n ->flush();\n }\n \n return new Response(count($decklist->getVotes()));\n \n }",
"public function getEvidenciasIndicadores($id){\n// INNER JOIN tipomovilidad AS tipo ON tipo.ID_USUARIO = usu.DOCUMENTO_IDENTIDAD\n// INNER JOIN evidencia AS eviden ON eviden.idUsuario = usu.ID \n// INNER JOIN caracteristica AS carac ON carac.ID = tipo.idCaracteristica\n// WHERE carac.ID = 1';\n $sql = 'SELECT linkArchivo, linkFace, linkPagina, linkYoutube FROM evidencia AS eviden \n INNER JOIN caracteristica AS carac ON carac.ID = eviden.idCaracteristica\n WHERE carac.ID = \"'.$id.'\"';\n $result = $this->adapter->query($sql, Adapter::QUERY_MODE_EXECUTE);\n return $result;\n }",
"public function show($id)\n {\n $ventas = Venta::where(\"nboletos\",$id)->get();\n\treturn $ventas;\n }",
"function getVotes($id, $reverse = false){\n $con = make_mysql_connection();\n\n $query = \"SELECT id, fightid, vote, timestamp FROM votes\n WHERE fightid LIKE ?\";\n if($reverse) $query .= \" ORDER BY timestamp DESC \";\n else $query .= \" ORDER BY timestamp ASC \";\n\n //Fetch the spells from the database\n $sql = $con->prepare($query);\n $sql->bind_param(\"i\", $id);\n $sql->execute();\n\n $votes = array();\n $result = $sql->get_result();\n while($row = $result->fetch_array(MYSQLI_ASSOC)) {\n $votes[] = $row;\n }\n $con->close();\n\n return $votes;\n}",
"public function index()\n {\n $parties = Party::all();\n\n foreach($parties as $party){\n $party->votes = Vote::whereIn('candidate_id',PresidentialCandidate::select('id')->where('party_id',$party->id))->where('type','President')->sum('votes');\n\n $party->candidate = PresidentialCandidate::where('party_id',$party->id)->get()->first();\n }\n\n return response()->json($parties);\n\n\n }",
"public function indexApi()\n {\n return Post::orderBy('votes', 'DESC')->get();\n }",
"public function getSellerOffers($sellerId);",
"public function DevuelveArticulosEnTienda($id) {\n if (is_numeric($id)) {\n $productos = DB::table('articles')\n -> select('articles.id', 'articles.name', 'articles.description', 'articles.price', 'articles.total_in_shelf','articles.total_in_vault', 'articles.store_id', 'stores.name as store_name')\n -> leftJoin('stores', 'articles.store_id','=', 'stores.id')\n -> where('store_id', $id);\n\n if (!$productos-> get()) {\n return response()->json(['error_msg'=>'Record not Found', 'error_code'=>'404', 'success'=>false], 404);\n }\n if ($productos->count()>1) $RESP = 'articles';\n else $RESP='article';\n return response()->json([$RESP=>$productos-> get(), 'success'=>true,'total_elements'=>$productos->count()],200);\n } else {\n return response()->json(['error_msg'=>'Bad Request', 'error_code'=>'400', 'success'=>false], 400);\n }\n }",
"public function vote()\r\n\t{\r\n\r\n\t\t$poll_id = $_POST['poll_id']; \r\n\r\n\t\t// Increate vote for desired field\r\n\t\tif (have_rows('polls_options', $poll_id)) {\r\n\t\t\twhile (have_rows('polls_options', $poll_id)) {\r\n\t\t\t\tthe_row();\r\n\t\t\t\tif (get_sub_field('poll_option') === $_POST[\"votes_question\"]) {\r\n\r\n\t\t\t\t\t// Update vote count into ACF field\r\n\t\t\t\t\t$current_votes_count = get_sub_field('poll_option_votes');\r\n\t\t\t\t\t$vote = update_sub_field('poll_option_votes', $current_votes_count ? ++$current_votes_count : 1, $poll_id);\r\n\r\n\t\t\t\t\t// Add poll ID to session \r\n\t\t\t\t\tsession_start();\r\n\t\t\t\t\tif (!isset($_SESSION['wppoll'])) {\r\n\t\t\t\t\t\t$_SESSION['wppoll'] = array();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tarray_push($_SESSION['wppoll'], (int) $poll_id);\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\twp_die();\r\n\r\n\t\tif (!$vote) {\r\n\t\t\t$data = array('type' => 'error', 'message' => 'Voting failed');\r\n\t\t\theader('HTTP/1.1 400 Bad Request');\r\n\t\t\theader('Content-Type: application/json; charset=UTF-8');\r\n\t\t\techo json_encode($data);\r\n\t\t}\r\n\t\twp_die();\r\n\t}",
"public function electionQuery()\n {\n // create the HTTP request url\n $this->url = $this->buildRequestURL('elections');\n // return the json result\n return $this->execute();\n }",
"public function getVotacion() {\n return $this->votacion;\n }",
"public function getElections() {\n $sql = \"SELECT id, jsonData, electionTitle,\n beginDate, endDate, coefficients, appVersion\n FROM tbl_elections\";\n $stmt = $this->db->query($sql);\n $results = [];\n while($row = $stmt->fetch()) {\n $results[] = new ElectionEntity($row);\n }\n return $results;\n }",
"public function voter() {\n return $this->belongsTo('Voter', 'voter_id_num', 'voter_id_num');\n }",
"public function votes()\n {\n $this->response->setCache(['max-age' => 300, 's-maxage' => 900, 'etag' => '187d475']);\n\n $data = ['page_title' => lang('votes._page_votes')];\n $data['breadcrumb'][] = ['url' => admin_url('home/index'), 'title' => lang('home.dashboard')];\n $data['breadcrumb'][] = ['title' => lang('votes._page_votes'), 'class' => 'active'];\n\n $this->_render('votes', $data);\n }",
"public function getVotersWord($id){\n $Query = \"SELECT v.id, v.firstname, v.middlename, v.lastname, v.datebirth, v.gender, v.residentialaddress, \n v.voterIDnumber, v.lifestatus, p.name\n FROM voters2015 v\n JOIN pollingstations p ON v.pollingstation_id = p.id\n JOIN pollingstation_shehia ps ON v.pollingstation_id = ps.pollingstation_id\n WHERE ps.word_id = $id\n ORDER BY p.name, v.gender, v.firstname, v.middlename, v.lastname ASC\";\n $stmt = $this->con->prepare($Query);\n $stmt->bind_param(\"i\",$id);\n $stmt->execute();\n $wordVoters = $stmt->get_result();\n $stmt->close();\n return $wordVoters;\n }",
"function init($voteId = 0){\n\t\t$vote = null;\n\t\t$bill = null;\n\t\t$result = array();\n\t\t$result[\"Defaults\"] = array('Yea'=>0, 'Nay'=>0, 'Not Voting'=>0);\n\t\t$title = \"STUB: VOTE TITLE\";\n\t\t$link = \"STUB: VOTE LINK\";\n\t\t$description = \"STUB: VOTE DESCRIPTION\";\n\t\t$sponsor = \"STUB: VOTE SPONSOR\";\n\t\t$thomas = \"STUB: LIBRARY OF CONGRESS LINK\";\n\t\t$sponsorLink = \"STUB: SPONSOR LINK\";\n\t\t$currentStatus = \"STUB: CURRENT STATUS\";\n\t\t$sponsorDescription = \"STUB: SPONSOR DESCRIPTION\";\n\t\t\n\t\t//** This first part retrieves the raw JSON data. **//\n\t\t\n\t\t//if voteId != 0, display vote info.\n\t\tif($voteId != 0){\n\t\t\t$voteUrl = app_path(). \"/views/assets/data/vote/$voteId.json\";\n\t\t\n\t\t $voteObject = json_decode( file_get_contents($voteUrl) );\n\t\t $vote = $voteObject->objects;\n\t\t\n\t\t\n\t\t $billId = getBillId($voteId);\n\t\t\n\t\t\n\t \t if($billId){\n\t\t\t $billUrl = app_path(). \"/views/assets/data/bill/$billId.json\";\n\t\t\t $bill = json_decode( file_get_contents($billUrl) );\n\t\t }\n\n $vh = new voterVoteHelper($vote);\n\t\t $result = $vh->getVoteResults();\n\t\t}\n\t\t\n\t\t//** This next part pulls specific info from the data **//\n\t\t\n\t if( isset($vote) ){\n\t \t//echo \"<pre>\";\n\t\t\t//print_r($vote);\n\t\t\t$title = $vote[0]->vote->question;\n\t\t\t$description = $vote[0]->vote->result;\n\t\t\t$link = $vote[0]->vote->link;\n\t }\n\t\t\n\t\tif( isset($bill) ){\n\t\t $currentStatus = $bill->current_status_description;\n\t\t $thomas = $bill->thomas_link;\n\t\t\t$sponsor = $bill->sponsor->name;\n\t\t\t$sponsorLink = $bill->sponsor_role->website;\n\t\t\t$sponsorDescription = $bill->sponsor_role->description;\n\t }\n\n\t\t\n\t\t//Stuff it all in an array\n\t\t$data = array('title'=>$title,\n\t\t 'link'=>$link,\n\t\t\t\t\t 'result'=>$result,\n\t\t\t\t\t 'description'=>$description,\n\t\t\t\t\t 'currentstatus'=>$currentStatus,\n\t\t\t\t\t 'sponsor'=>$sponsor,\n\t\t\t\t\t 'thomas'=>$thomas,\n\t\t\t\t\t 'sponsorlink'=>$sponsorLink,\n\t\t\t\t\t 'sponsordescription'=>$sponsorDescription,\n\t\t\t\t\t 'bill'=>$bill,\n\t\t\t\t\t 'vote'=>$vote,\n\t\t\t\t\t 'isAdmin'=>false);\n\t\t/*\t\t\t \n\t\techo \"<pre>\";\n\t\tprint_r($data);\n\t\tdie();\n\t\t */\n\t\t\t\t\t \n\t\ttry{\n\t\t\techo View::make(\"main\", $data)->render();\n\t\t}\n\t\tcatch(Exception $e){\n\t\t\techo \"<pre>\";\n\t\t\tprint_r($e);\n\t\t}\n\t\t\n\t\t\n\t}",
"function getVotes($pdo) {\n\t$statement = $pdo->prepare\n\t(\"SELECT vote_id, post_id, user_id\n\tFROM votes\n\tWHERE post_id = post_id\");\n\n\t$statement->execute();\n\t$votes = $statement->fetchAll(PDO::FETCH_ASSOC);\n\n\t\tif (!$statement) {\n\t\t\tdie(var_dump($pdo->errorInfo()));\n\t\t}\n\n\treturn $votes;\n}",
"public function get(string $offerId): EbayOfferDetailsWithAll\n {\n return $this->client->request('getOffer', 'GET', \"offer/{$offerId}\",\n [\n ]\n );\n }",
"function getLikes($model,$model_id){\n\t\treturn $this->Vote->getLikes($model,$model_id);\n\t}",
"public function votersAction($postID, $userID, $last, $limit)\n {\n // Initialize voters array\n $voters = [];\n\n // Initialize last\n if($last == 0)\n {\n $voteController = new VoteController();\n $last = $voteController->getLast();\n }\n\n // Find all who voted on the post\n $vote = Vote::find([\n \"conditions\" => \"post_id = :postID: AND id < :last:\",\n \"order\" => \"id DESC\",\n \"limit\" => $limit,\n \"bind\" => [\"postID\" => $postID, \"last\" => $last]\n ]);\n\n // For each voter gather account and follow data\n foreach($vote as $voter)\n {\n // Find user\n $user = $voter->getUser();\n\n // Find follow\n $follow = Follow::findFirst([\n \"conditions\" => \"user_id = :userID: AND follower_id = :followerID: AND is_deleted = 0\",\n \"bind\" => [\"userID\" => $user->id, \"followerID\" => $userID]\n ]);\n\n // Dynamically add new properties (username and follow data) to voter\n $voter->username = $user->username;\n $voter->following = ($follow == true)?1:0;\n\n // Push voter into votes array\n array_push($voters, $voter);\n }\n\n // Return OK\n return $this->response(200, 'OK', ['response' => ['voters' => $voters]]);\n }",
"public function index()\n {\n $votes = Votes::orderBy('created_at', 'desc')->get();\n return view('votes.index')->with('votes', $votes);\n }",
"public function geefEscalatiesTickets() {\n $klant_id = $_SESSION['gebruiker']->geefKlant_id();\n $sql = 'SELECT * FROM `tickets` WHERE `escalatie` != \"\" AND `klant_id` = :klant_id';\n $stmnt = $this->db->prepare($sql);\n $stmnt->bindParam(':klant_id', $klant_id);\n $stmnt->execute();\n $tickets = $stmnt->fetchAll(\\PDO::FETCH_CLASS, __NAMESPACE__ . '\\Ticket');\n return $tickets;\n }",
"public function getVotersShehia($id){\n $Query = \"SELECT v.id, v.firstname, v.middlename, v.lastname, v.datebirth, v.gender, v.residentialaddress, \n v.voterIDnumber, v.lifestatus, p.name\n FROM voters2015 v\n JOIN pollingstations p ON v.pollingstation_id = p.id\n JOIN pollingstation_shehia ps ON v.pollingstation_id = ps.pollingstation_id\n WHERE ps.pollingstation_id = $id\n ORDER BY p.name, v.gender, v.firstname, v.middlename, v.lastname ASC\";\n $stmt = $this->con->prepare($Query);\n $stmt->bind_param(\"i\",$id);\n $stmt->execute();\n $shehiaVoters = $stmt->get_result();\n $stmt->close();\n return $shehiaVoters;\n }",
"function get_votes_by_answer($answer_id) {\r\n // set connection var\r\n global $db;\r\n\r\n //query to get all associated surveys\r\n $sql = \"SELECT id\r\n FROM votes\r\n WHERE is_active = '1' AND answer_id = '$answer_id';\";\r\n\r\n $answers_data = array();\r\n $answers = array();\r\n\r\n foreach ($db->query($sql) as $key => $value) {\r\n $answers_data[$key] = $value;\r\n foreach ($answers_data[$key] as $subkey => $subvalue) {\r\n if (is_int($subkey)) {\r\n $answers[] = $subvalue;\r\n }\r\n }\r\n }\r\n\r\n return $answers;\r\n}",
"public function viewPendingVotes()\r\n {\r\n // array que contindrà les votacions amb els seus usuaris a avaluar\r\n $voting = array();\r\n // actualitza els pesos de tots els usuaris\r\n $this->weightCalculation();\r\n // obté l'usuari actual\r\n $currentUser = $this->getUser();\r\n // obté les votacions pendents per a l'usuari\r\n $votes = $this->votingModel->getPendingVotes($currentUser['id']);\r\n \r\n // recorre cada votació pendent\r\n foreach ($votes as $vote) {\r\n // carrega a l'array la votació i l'usuari a avaluar\r\n $voting[$vote['id']] = array(\r\n 'vote' => $vote,\r\n 'owner' => $this->userModel->getById($vote['evaluated_user_id'])\r\n );\r\n }\r\n \r\n // mostra la vista amb la llista de votacions\r\n $this->response->html($this->helper->layout->app('Voting:view/votingList', array(\r\n 'voting' => $voting,\r\n 'user' => $currentUser\r\n )));\r\n }",
"public function showOneVoucher($id)\n {\n return response()->json(VoucherPool::find($id));\n }",
"public function index()\n {\n $emotes = Emote::orderBy('created_at' , 'DESC')->get();\n return view('emotes.index', compact('emotes'));\n }",
"function getReviewsByInventoryId($invId) {\n $db = phpmotorsConnect();\n $sql = 'SELECT * FROM reviews \n WHERE invId = :invId';\n $stmt = $db->prepare($sql);\n $stmt->bindValue(':invId', $invId, PDO::PARAM_INT);\n $stmt->execute();\n $reviews = $stmt->fetchAll(PDO::FETCH_ASSOC);\n $stmt->closeCursor();\n return $reviews;\n }",
"function getEventPartnersById($eventId){\n try {\n global $dbh;\n $stmt = $dbh -> prepare('SELECT * FROM Entity JOIN Partner USING(id) WHERE event = ?');\n $stmt -> execute(array($eventId));\n $eventPartners = $stmt -> fetchAll();\n return $eventPartners;\n } \n catch(PDOException $e) {\n $err = $e -> getMessage(); \n }\n }",
"public function vote(Tide $tide, Tide\\Configuration\\ArrayObject $context);",
"public function VentasPorId()\n{\n\tself::SetNames();\n\t$sql = \" SELECT clientes.codcliente, clientes.cedcliente, clientes.nomcliente, clientes.tlfcliente, clientes.direccliente, clientes.emailcliente, ventas.idventa, ventas.codventa, ventas.codcaja, ventas.codcliente as cliente, ventas.subtotalivasive, ventas.subtotalivanove, ventas.ivave, ventas.totalivave, ventas.descuentove, ventas.totaldescuentove, ventas.totalpago, ventas.totalpago2, ventas.tipopagove, ventas.formapagove, ventas.montopagado, ventas.montodevuelto, ventas.fechaventa, ventas.fechavencecredito, ventas.statusventa, ventas.delivery, ventas.repartidor, ventas.observaciones, mediospagos.mediopago, salas.nombresala, mesas.codmesa, mesas.nombremesa, usuarios.nombres, cajas.nrocaja, abonoscreditos.codventa as cod, abonoscreditos.fechaabono, SUM(montoabono) AS abonototal FROM (ventas LEFT JOIN clientes ON clientes.codcliente = ventas.codcliente) LEFT JOIN mesas ON ventas.codmesa = mesas.codmesa LEFT JOIN salas ON mesas.codsala = salas.codsala LEFT JOIN mediospagos ON ventas.formapagove = mediospagos.codmediopago LEFT JOIN abonoscreditos ON ventas.codventa = abonoscreditos.codventa LEFT JOIN cajas ON ventas.codcaja = cajas.codcaja LEFT JOIN usuarios ON ventas.codigo = usuarios.codigo WHERE ventas.codventa =? GROUP BY cod\";\n\t$stmt = $this->dbh->prepare($sql);\n\t$stmt->execute( array(base64_decode($_GET[\"codventa\"])) );\n\t$num = $stmt->rowCount();\n\tif($num==0)\n\t{\n\t\techo \"\";\n\t}\n\telse\n\t{\n\t\tif($row = $stmt->fetch(PDO::FETCH_ASSOC))\n\t\t\t{\n\t\t\t\t$this->p[] = $row;\n\t\t\t}\n\t\t\treturn $this->p;\n\t\t\t$this->dbh=null;\n\t\t}\n\t}",
"public function listServiceOfferings() {\n\t\t$data = array (\n\t\t\t\t\"apiKey\" => $this->apiKey,\n\t\t\t\t\"command\" => \"listServiceOfferings\",\n\t\t\t\t\"response\" => \"json\"\n\t\t);\n\t\t$url = $this->getSignatureUrl ( $data );\n\t\treturn $this->curlGet ( $url );\n\t}",
"public function getTodayVotes()\n\t{\n\t\treturn $this->today_votes;\n\t}",
"public function show($id)\n {\n $candidate = PresidentialCandidate::find($id);\n $candidate->party = Party::find($candidate->party_id);\n $all_votes= Vote::where('type','President')->sum('votes');\n\n $constiteuncies = Constituency::all();\n $consttit = [];\n\n foreach ($constiteuncies as $constiteuncy){\n\n $polling_stations = PollingStation::where('constituency_id',$constiteuncy->id)->orderBy('name','asc')->get();\n\n foreach ($polling_stations as $polling_station){\n\n $polling_station->votes = Vote::where('polling_station_id',$polling_station->id)->where('candidate_id',$id)->where('type','President')->sum('votes');\n $polling_station->no_votes = Vote::where('polling_station_id',$polling_station->id)->where('candidate_id','<>',$id)->where('type','President')->sum('votes');\n\n }\n\n $constiteuncy->polling_stations = $polling_stations;\n\n array_push($consttit,$constiteuncy);\n\n }\n $candidate->all_votes = $all_votes;\n\n\n $data['candidate'] = $candidate;\n $data['constituencies'] =$consttit;\n\n return response()->json($data);\n\n\n\n }",
"public function getProductInOffers()\n {\n return $this->hasMany(ProductInOffer::className(), ['id_offer' => 'id_offer']);\n }",
"public function readVotes($pageSlug)\n {\n\n $pageList = ['votes'];\n $pageSlug = trim($pageSlug);\n\n if (!in_array($pageSlug, $pageList))\n {\n return $this->response->setJSON(['error' => 'Invalid Page Name']);\n }\n \n session();\n\n $_SESSION['draw'] = (int)($draw = $_SESSION['draw'] ?? 1) + 1;\n\n $start = intval($_POST['start'] ?? $_GET['start'] ?? 0); \n $length = intval($_POST['length'] ?? $_GET['length'] ?? 200);\n $order = $this->request->getPostGet('order'); //asc desc\n $order_dir = (isset($order[0]['dir']) && in_array($order[0]['dir'], ['asc', 'desc'])) ? $order[0]['dir'] : 'desc';\n $order_column = filter_var($order[0]['name'] ?? NULL, FILTER_SANITIZE_STRING);\n\n $model = new VotesModel();\n $primaryKey = $model->primaryKey;\n\n $table_colons = $model->getAllowedFields();\n \n // ---------------------------------------------------------------------\n // Form Search Filter\n $formFilter = $this->request->getPostGet('formFilter');\n $filterArray = null;\n $search_text = null;\n \n if (!empty($formFilter) && is_string($formFilter))\n {\n parse_str($formFilter, $filterArray);\n \n //filterSearch is general input search used in pageview\n if (isset($filterArray['filterSearch']) && !empty($filterArray['filterSearch']))\n {\n $search_text = trim($filterArray['filterSearch']);\n }\n }\n else\n {\n //Standart datatable.net $search['value'] input. used in subtable.\n $search = $this->request->getPost(\"search\");\n if (!empty($search) && !empty($search['value']))\n {\n $search_text = trim($search['value']);\n }\n }\n // ---------------------------------------------------------------------\n\n //--------------------------------------------------------------------//\n // Page votes\n //--------------------------------------------------------------------//\n\n if($pageSlug === 'votes')\n {\n $select_text = \"votes.*, c4_zone.name as c4_zone_RELATIONAL_name, county.name as county_RELATIONAL_name, subcounty.name as subcounty_RELATIONAL_name, parish.name as parish_RELATIONAL_name, pollstat.name as pollstat_RELATIONAL_name, users.firstname as users_RELATIONAL_firstname\";\n $multipleFields = [];\n\n //------------------------------------------------------------------//\n //merge relation fields names to make Sortable\n $table_colons = array_merge($table_colons, ['c4_zone_RELATIONAL_name', 'county_RELATIONAL_name', 'subcounty_RELATIONAL_name', 'parish_RELATIONAL_name', 'pollstat_RELATIONAL_name', 'users_RELATIONAL_firstname']);\n //------------------------------------------------------------------//\n //------------------------------------------------------------------// \n // Left Join Text\n //------------------------------------------------------------------//\n $model->join(\"(SELECT c4_zone_id, name FROM c4_zone GROUP BY c4_zone_id ORDER BY c4_zone_id DESC) c4_zone\", 'c4_zone.c4_zone_id = votes.districtid', 'left');\n $model->join(\"(SELECT countyid, name FROM county WHERE county.deleted_at IS NULL AND county.status = '1' GROUP BY countyid ORDER BY countyid DESC) county\", 'county.countyid = votes.countyid', 'left');\n $model->join(\"(SELECT id, name FROM subcounty WHERE subcounty.deleted_at IS NULL AND subcounty.status = '1' GROUP BY id ORDER BY id DESC) subcounty\", 'subcounty.id = votes.subcountyid', 'left');\n $model->join(\"(SELECT id, name FROM parish WHERE parish.deleted_at IS NULL AND parish.status = '1' GROUP BY id ORDER BY id DESC) parish\", 'parish.id = votes.parishid', 'left');\n $model->join(\"(SELECT id, name FROM pollstat WHERE pollstat.deleted_at IS NULL AND pollstat.status = '1' GROUP BY id ORDER BY id DESC) pollstat\", 'pollstat.id = votes.pollstatid', 'left');\n $model->join(\"(SELECT user_id, firstname FROM users WHERE users.deleted_at IS NULL AND users.status = '1' GROUP BY user_id ORDER BY user_id DESC) users\", 'users.user_id = votes.userid', 'left');\n\n }\n //----------------------------oo----------------------------------//\n\n\n $model->select($select_text);\n\n //---------------------------------------------------------------------//\n //OTHER FORM SEARCH OPTIONS\n //---------------------------------------------------------------------//\n\n if (!empty($filterArray) && is_array($filterArray))\n {\n foreach ($filterArray as $filterField => $filterValue)\n {\n\n if (!is_array($filterValue))\n {\n $filterValue = trim($filterValue);\n }\n\n if (empty($filterValue) && !is_numeric($filterValue))\n {\n continue;\n }\n\n if ($filterField === 'daterangefilter' && !empty($filterValue))\n {\n foreach ($filterValue as $dateField => $dateRange)\n {\n $exp = explode(' - ', $dateRange);\n if (count($exp) === 2)\n { \n $_GET['dateRangeStart'][$dateField] = $exp[0];\n $_GET['dateRangeEnd'][$dateField] = $exp[1];\n }\n }\n continue;\n }\n\n if(!in_array($filterField, $table_colons) || in_array($filterField, ['filterSearch', 'status', 'deleted_at']))\n {\n continue;\n }\n\n if (in_array($filterField, $multipleFields))\n {\n if(is_array($filterValue))\n {\n $model->groupStart();\n foreach ($filterValue as $fvalue)\n {\n $model->like($filterField, filter_var($fvalue, FILTER_SANITIZE_STRING)); \n }\n $model->groupEnd();\n }\n else\n {\n $model->groupStart();\n $model->like($filterField, filter_var($filterValue, FILTER_SANITIZE_STRING)); \n $model->groupEnd();\n }\n }\n elseif (!is_array($filterValue) || is_numeric($filterValue))\n {\n $model->where(\"votes.$filterField\", trim(filter_var($filterValue, FILTER_SANITIZE_STRING)));\n }\n }\n }\n //Show Allways active status if not filtered\n if (!isset($filterArray['status']))\n {\n $model->where('votes.status', '1');\n }\n else\n {\n $model->where('votes.status', $filterArray['status']);\n }\n if (isset($filterArray['deleted_at']) && $filterArray['deleted_at'] === '1')\n {\n $model->onlyDeleted();\n }\n else\n {\n $model->where('votes.deleted_at', NULL);\n }\n\n //---------------------------------------------------------------------//\n /**\n * dateRangeStart and dateRangeEnd used in statistic page. \n * Also you can use for datatable filter.\n * Get Request E.g\n * dateRangeStart[created_at]=2020-01-01&dateRangeEnd[created_at]=2020-03-02\n */\n\n $dateRangeStart = $_GET['dateRangeStart'] ?? $_POST['dateRangeStart'] ?? NULL;\n\n if (!empty($dateRangeStart) && is_array($dateRangeStart))\n {\n foreach ($dateRangeStart as $key_field => $fieldValue)\n {\n if (in_array($key_field, $table_colons) && !empty($fieldValue))\n {\n $fieldValue = date( \"Y-m-d\", strtotime(trim($fieldValue)));\n $model->where(\"votes.$key_field >=\", $fieldValue);\n }\n }\n }\n\n $dateRangeEnd = $_GET['dateRangeEnd'] ?? $_POST['dateRangeEnd'] ?? NULL;\n\n if (!empty($dateRangeEnd) && is_array($dateRangeEnd))\n {\n foreach ($dateRangeEnd as $key_field => $fieldValue)\n {\n if (in_array($key_field, $table_colons) && !empty($fieldValue))\n {\n $fieldValue = date( \"Y-m-d\", strtotime(trim($fieldValue)));\n $model->where(\"votes.$key_field <=\", $fieldValue .' 23:59:59');\n }\n }\n }\n //---------------------------------------------------------------------//\n\n //==========SORT==========//\n if (!empty($order_column) && in_array($order_column, $table_colons))\n {\n $model->orderBy($order_column, $order_dir);\n }\n else\n {\n $model->orderBy($primaryKey, 'DESC');\n }\n\n //==========LIMIT==========//\n if($length > 0)\n {\n $model->limit($length, $start);\n } \n\n //==========GET RESULT==========//\n $db_result = $model->get()->getResult();\n\n //==========RETURN DATA==========//\n $getLastQuery = $model->showLastQuery();\n $unlimited = explode('LIMIT', $getLastQuery)[0];\n $select_sql = \"SELECT COUNT($primaryKey) as count FROM ($unlimited) AS subquery\";\n $iTotalRecords = $model->query($select_sql)->getRow()->count;\n\n if (!empty($db_result))\n {\n foreach ($db_result as $key => $value)\n {\n $db_result[$key]->DT_RowId = $value->$primaryKey;\n\n //--------------------------------------------------------------------//\n // Page votes\n //--------------------------------------------------------------------//\n\n if($pageSlug === 'votes')\n { \n\n //------------------------------------------------------------------//\n // Get File Data From FileID\n // Limit 1\n //------------------------------------------------------------------//\n $fileService = \\Admin\\Config\\Services::file();\n\n if(!empty($value->evidence) && !empty($getFiles = $fileService->getAllFile($value->evidence, 1, 'sort_order')))\n {\n $db_result[$key]->evidence_c4_url_icon = $getFiles[0]['url_icon'];\n $db_result[$key]->evidence_c4_url_thumb = $getFiles[0]['url_thumb'];\n $db_result[$key]->evidence_c4_url_download = $getFiles[0]['url_download'];\n $db_result[$key]->evidence_c4_other = $getFiles;\n }\n else\n {\n $db_result[$key]->evidence = '';\n $db_result[$key]->evidence_fileInfo = []; \n }\n //------------------------------------------------------------------//\n\n } //endif\n\n }\n }\n\n $result = [\n 'draw' => $draw,\n 'recordsTotal' => intval($iTotalRecords),\n 'recordsFiltered' => intval($iTotalRecords),\n //'sql' => $getLastQuery,\n 'data' => $db_result\n ];\n return $this->response->setJSON($result);\n\n }",
"public function getVenta($idVenta){\n\t\t$query = $this->db->query('\n\t\t\tSELECT\n\t\t\t\tv.idVenta as idVenta, \n\t\t\t\tu.nombre_usuario as usuario,\n\t\t\t\tc.nombre as cliente,\n\t\t\t \tv.fecha_venta as fecha, \n\t\t\t\tv.total as total\n\t\t\tFROM \n\t\t\t\tventas as v\n\t\t\tINNER JOIN \t\n\t\t\t\tusuarios as u on u.idUsuario = v.idUsuario \n\t\t\tINNER JOIN \n\t\t\t\tclientes as c on c.idCliente = v.idCliente\n\t\t\twhere v.idVenta = '. $idVenta .'\n\t\t\tORDER by idVenta;\n\t\t');\n\t\tif($query -> num_rows() > 0) {\n\t\t\treturn $query;\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\treturn false;\t\n\t\t}\n\t}",
"public function getVotos() {\n return $this->votos;\n }",
"public function votes()\n {\n return $this->hasMany(PropertyVote::class,'property_id', 'id');\n }",
"public function getVoucher()\n {\n return $this->voucher;\n }",
"public function electionCandidates($electionId) {\n $candidates = Candidate::where(\n 'election_id', \n $electionId\n )->paginate(100); \n\n return CandidateResource::collection($candidates);\n }",
"public function getEx25(){\n $incidents = \\Safetymap\\Incident::with('target')->orderBy('target_id', 'ASC')->get();\n\n foreach($incidents as $incident) {\n echo $incident->target->mode. '<br>';\n }\n dump($incidents->toArray());\n }",
"protected function _getLeveranciersData($id){\n\t\t$lMdl \t\t\t= new App_Model_Leverancierproduct();\n\t\t$leveranciers \t= $lMdl->fetchByProduct($id);\n\t\t\n\t\treturn $leveranciers;\n\t}",
"public function getVenta()\r\n {\r\n return $this->_venta;\r\n }",
"public function index()\n {\n $votes= vote::all();\n \n \n return view(\"admin.votes.index\",compact('votes'));\n }",
"public function getTotalVote($idea_id,$version = 0)\r\n {\r\n $model = new Ynidea_Model_DbTable_Ideavotes; \r\n $select = $model->select()\r\n ->from('engine4_ynidea_ideavotes',array('count(*) AS total_vote'))\r\n ->where('idea_id = ?',$idea_id)->where('version_id=?',$version); \r\n $row = $model->fetchRow($select);\r\n return $row->total_vote ; \r\n }",
"function getVotes() {\n\t\tif ($this->votes !== false) {\n\t\t\treturn $this->votes;\n\t\t}\n\n\t\t$voters = $this->ArtifactType->getVoters();\n\t\tunset($voters[0]);\t/* just in case */\n\t\tunset($voters[100]);\t/* need users */\n\t\tif (($numvoters = count($voters)) < 1) {\n\t\t\t$this->votes = array(0, 0, 0);\n\t\t\treturn $this->votes;\n\t\t}\n\n\t\t$res = db_query_params('SELECT COUNT(*) AS count FROM artifact_votes WHERE artifact_id=$1 AND user_id=ANY($2)',\n\t\t\t\t\tarray($this->getID(), db_int_array_to_any_clause($voters)));\n\t\t$db_count = db_fetch_array($res);\n\t\t$numvotes = $db_count['count'];\n\n\t\t/* check for invalid values */\n\t\tif ($numvotes < 0 || $numvoters < $numvotes) {\n\t\t\t$this->votes = array(-1, -1, 0);\n\t\t} else {\n\t\t\t$this->votes = array($numvotes, $numvoters,\n\t\t\t\t(int)($numvotes * 100 / $numvoters + 0.5));\n\t\t}\n\t\treturn $this->votes;\n\t}",
"public function getVoting($items, $vote ='') {\r\n $votstdy = $this->votstdyDb($items); // gets array with items voted by the user\r\n\r\n // if $vote not empty, perform to register the vote, $items contains one item to vote\r\n if(!empty($vote)) {\r\n // if $voter empty means user not loged\r\n if($this->voter ==='') return \"alert('Vote Not registered.\\\\nYou must be logged in to can vote')\";\r\n\r\n // if already voted, returns JSON from which JS alert message and will reload the page\r\n // else, accesses the method to add the new vote\r\n if(in_array($items[0], $votstdy) || ($this->nrvot ===1 && count($votstdy) >0)) return json_encode([$items[0]=>['v_plus'=>0, 'v_minus'=>0, 'voted'=>3]]);\r\n else $this->setVotDb($items, $vote, $votstdy); // add the new vote in mysql\r\n\r\n array_push($votstdy, $items[0]); // adds curent item as voted\r\n }\r\n\r\n // if $nrvot is 1, and $votstdy has item, set $setvoted=1 (user already voted today)\r\n // else, user can vote multiple items, after Select is checked if already voted the existend $item\r\n $setvoted = ($this->nrvot === 1 && count($votstdy) > 0) ? 1 : 0;\r\n\r\n // get array with items and their votings\r\n $votitems = $this->getVotDb($items, $votstdy, $setvoted);\r\n\r\n return json_encode($votitems);\r\n }",
"public function actionGetVeterinariaByProvincia($id){\n\t\t$localidades = Ciudad::model()->findAll(array(\"condition\"=>\"provincia = \".$id));\n\t\tforeach($localidades as $localidad){\n\t\t\t$Criteria = new CDbCriteria();\n\t\t\t$Criteria->condition = \"ciudad = '\".$localidad->nombre.\"'\";\n\n\t\t\t$veterinarias= Veterinarias::model()->findAll($Criteria);\n\t\t\tif($veterinarias){\n\t\t\tforeach($veterinarias as $veterinaria){\n\t\t\t?>\n\t\t\t\t<h1><?php echo $veterinaria->cuenta; ?></h1>\n\t\t\t\t <p><?php echo $veterinaria->provincia; ?>, <?php echo $veterinaria->ciudad; ?></p>\n\t\t\t\t <p><?php echo $veterinaria->direccion; ?> <?php echo $veterinaria->altura; ?></p>\n\t\t\t\t <p><?php echo $veterinaria->telefono; ?></p>\n\t\t\t<?php\n\t\t\t}\n\t\t}\n\t\t}\n\t}",
"public function getVotes($username, $ip)\n {\n $username = $this->uri->segment(2);\n $ip = $this->uri->segment(3);\n $ip = str_replace('_', '.',$ip);\n $voteRec = $this->VoteModel->getVoteTimesFromUser($username);\n if ($voteRec === null || sizeof($voteRec) === 0) {\n $voteRec =$this->VoteModel->newVotingAccount($username,$ip);\n }\n $now = $this->millitime();\n return $this->jsonIFy(array(\n 'data' => array(\n (($now - (double)$voteRec->gtopDate) >= 86400000),\n (($now - (double)$voteRec->topgDate) >= 43200000),\n (($now - (double)$voteRec->xtremeDate) >= 43200000)\n )\n ),200);\n }",
"public function get_articles() {\n return $this->linkemperor_exec(null, null,\"/api/v2/customers/articles.json\");\n }",
"function getVentas()\n{\n\t$con = getDBConnection();\n\t$sql = \"SELECT * FROM ventas\";\n\t$stmt = $con->prepare($sql);\n\t$stmt->execute();\n\t$ventas = null;\n\twhile ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {\n\t\t$venta = new Venta();\n\t\t$venta->setFolio($row['folio']);\n\t\t$venta->set($row['fecha'],$row['monto'],$row['descripcion']);\n\t\t$ventas[] = $venta;\n\t}\n\treturn $ventas;\n}",
"public function getCachedVotersAttribute(): Collection\n {\n return Cache::remember($this->cacheKey().':voters', 10, function () {\n return $this->voters()->latest()->get();\n });\n }",
"public function getAllLikes($id)\n {\n $likes = Encounter::join('user', 'user.id', '=', 'encounter.user2')\n ->where('user.activate_user', '!=', 'deactivated')\n ->where(\"encounter.user1\",\"=\", $id)\n ->where(\"encounter.likes\",\"=\",1)\n ->orderBy('encounter.created_at', 'desc')\n ->select('encounter.*')\n ->paginate(9);\n\n $likes->setPath('iliked');\n $likes->count = count($likes);\n \n return $likes;\n }",
"public function getVoto($id)\n {\n $stmt = self::$con->prepare(\"SELECT * FROM voto WHERE id=:id\");\n $stmt->execute(array(\":id\"=>$id));\n $voto=$stmt->fetch(PDO::FETCH_ASSOC);\n return $voto;\n }",
"public function apartmentPrices($id, $perPage = 30){\n\n $photos = DB::table('apartament_prices')\n ->select('price_value', 'date_of_price')\n ->where('apartament_id', $id)\n ->where('date_of_price', '>', date('now'))\n ->paginate($perPage);\n\n return $photos;\n }",
"function display_used_vouchers() {\n\n\t\tglobal $current_user, $woo_vou_vendor_role;\n\n\t\t$prefix = WOO_VOU_META_PREFIX;\n\n\t\t$args = $data = array();\n\n\t\t// Taking parameter\n\t\t$orderby \t= isset( $_GET['orderby'] )\t? urldecode( $_GET['orderby'] )\t\t: 'ID';\n\t\t$order\t\t= isset( $_GET['order'] )\t? $_GET['order'] \t: 'DESC';\n\t\t$search \t= isset( $_GET['s'] ) \t\t? sanitize_text_field( trim($_GET['s']) )\t: null;\n\n\t\t$args = array(\n\t\t\t\t\t\t'posts_per_page'\t=> $this->per_page,\n\t\t\t\t\t\t'page'\t\t\t\t=> isset( $_GET['paged'] ) ? $_GET['paged'] : null,\n\t\t\t\t\t\t'orderby'\t\t\t=> $orderby,\n\t\t\t\t\t\t'order'\t\t\t\t=> $order,\n\t\t\t\t\t\t'offset' \t\t\t=> ( $this->get_pagenum() - 1 ) * $this->per_page,\n\t\t\t\t\t\t'woo_vou_list'\t\t=> true\n\t\t\t\t\t);\n\n\t\t$search_meta = \tarray(\n\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t'key' \t\t=> $prefix . 'used_codes',\n\t\t\t\t\t\t\t\t'value' \t=> '',\n\t\t\t\t\t\t\t\t'compare' \t=> '!='\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t);\n\t\t\t\t\t\t\n\t\t//Get user role\n\t\t$user_roles\t= isset( $current_user->roles ) ? $current_user->roles : array();\n\t\t$user_role\t= array_shift( $user_roles );\n\n\t\t//voucher admin roles\n\t\t$admin_roles\t= woo_vou_assigned_admin_roles();\n\n\t\tif( !in_array( $user_role, $admin_roles ) ) {// voucher admin can redeem all codes\n\t\t\t$args['author'] = $current_user->ID;\n\t\t}\n\n\t\tif( isset( $_GET['woo_vou_post_id'] ) && !empty( $_GET['woo_vou_post_id'] ) ) {\n\t\t\t$args['post_parent'] = $_GET['woo_vou_post_id'];\n\t\t}\n\t\t\n\t\tif( isset( $_GET['woo_vou_user_id'] ) && !empty( $_GET['woo_vou_user_id'] ) ) {\n\t\t\t\n\t\t\t$search_meta =\tarray(\n\t\t\t\t\t\t\t\t'relation' => 'AND',\n\t\t\t\t\t\t\t\t($search_meta),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'redeem_by',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $_GET['woo_vou_user_id'],\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> '=',\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t}\n\t\t\n\t\tif( isset( $_GET['woo_vou_start_date'] ) && !empty( $_GET['woo_vou_start_date'] ) ) {\n\t\t\t\n\t\t\t$search_meta =\tarray(\n\t\t\t\t\t\t\t\t'relation' => 'AND',\n\t\t\t\t\t\t\t\t($search_meta),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'used_code_date',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> date( \"Y-m-d H:i:s\", strtotime( $_GET['woo_vou_start_date'] ) ),\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> '>=',\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t}\n\t\t\n\t\tif( isset( $_GET['woo_vou_end_date'] ) && !empty( $_GET['woo_vou_end_date'] ) ) {\n\t\t\t\n\t\t\t$search_meta =\tarray(\n\t\t\t\t\t\t\t\t'relation' => 'AND',\n\t\t\t\t\t\t\t\t($search_meta),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'used_code_date',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> date( \"Y-m-d H:i:s\", strtotime( $_GET['woo_vou_end_date'] ) ),\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> '<=',\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t}\n\n\t\tif( !empty( $search ) ) {\n\n\t\t\t$search_meta =\tarray(\n\t\t\t\t\t\t\t\t'relation' => 'AND',\n\t\t\t\t\t\t\t\t($search_meta),\n\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t'relation'\t=> 'OR',\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'used_codes',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $_GET['s'],\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> 'LIKE',\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'first_name',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $_GET['s'],\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> 'LIKE',\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'last_name',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $_GET['s'],\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> 'LIKE',\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'order_id',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $_GET['s'],\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> 'LIKE',\n\t\t\t\t\t\t\t\t\t\t),\n\t\t\t\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t\t\t\t\t'key'\t\t=> $prefix.'order_date',\n\t\t\t\t\t\t\t\t\t\t\t'value'\t\t=> $_GET['s'],\n\t\t\t\t\t\t\t\t\t\t\t'compare'\t=> 'LIKE',\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t);\n\t\t}\n\t\t\n\t\t$args['meta_query']\t= $search_meta;\n\n\t\t//get used voucher codes data from database\n\t\t$woo_data \t= $this->model->woo_vou_get_voucher_details( $args );\n\t\t$data\t\t= isset( $woo_data['data'] ) ? $woo_data['data'] : '';\n\n\t\tif( !empty( $data ) ) {\n\n\t\t\tforeach ( $data as $key => $value ) {\n\n\t\t\t\t$user_id \t = get_post_meta( $value['ID'], $prefix.'redeem_by', true );\n\t\t\t\t$user_detail = get_userdata( $user_id );\n\t\t\t\t$user_profile = add_query_arg( array('user_id' => $user_id), admin_url('user-edit.php') );\n\t\t\t\t$display_name = isset( $user_detail->display_name ) ? $user_detail->display_name : '';\n\n\t\t\t\tif( !empty( $display_name ) ) {\n\t\t\t\t\t$display_name = '<a href=\"'.$user_profile.'\">'.$display_name.'</a>';\n\t\t\t\t} else {\n\t\t\t\t\t$display_name = __( 'N/A', 'woovoucher' );\n\t\t\t\t}\n\n\t\t\t\t$data[$key]['ID'] \t\t\t= $value['ID'];\n\t\t\t\t$data[$key]['post_parent'] \t= $value['post_parent'];\n\t\t\t\t$data[$key]['code'] \t\t= get_post_meta( $value['ID'], $prefix.'used_codes', true );\n\t\t\t\t$data[$key]['redeem_by'] \t= $display_name;\n\t\t\t\t$data[$key]['first_name'] \t= get_post_meta( $value['ID'], $prefix.'first_name', true );\n\t\t\t\t$data[$key]['last_name'] \t= get_post_meta( $value['ID'], $prefix.'last_name', true );\n\t\t\t\t$data[$key]['order_id'] \t= get_post_meta( $value['ID'], $prefix.'order_id', true );\n\t\t\t\t$data[$key]['order_date'] \t= get_post_meta( $value['ID'], $prefix.'order_date', true );\n\t\t\t\t$data[$key]['product_title']= get_the_title( $value['post_parent'] );\n\n\t\t\t\t$order_id = $data[$key]['order_id'];\n\n\t\t\t\t$data[$key]['buyers_info'] = $this->model->woo_vou_get_buyer_information( $order_id );\n\t\t\t}\n\t\t}\n\n\t\t$result_arr['data']\t\t= !empty($data) ? $data : array();\n\t\t$result_arr['total'] \t= isset( $woo_data['total'] ) ? $woo_data['total'] \t: 0; // Total no of data\n\n\t\treturn $result_arr;\n\t}",
"function votes($pid, $query = array(), $rawJson = false) {\n \t\tif ( $json = $this->_get('/merchants/'.$pid.'/votes.json', $query) )\n \t\t\treturn $this->_parseApi($json, $rawJson);\n \t\telse\n \t\t\treturn false;\n \t}",
"public function voteAction($id = 0, $option = 0)\n {\n $response = new Response();\n\n if (!$this->checkTokenGetJson('post-' . $id)) {\n $csrfTokenError = [\n 'status' => 'error',\n 'message' => 'This post is outdated. Please try to vote again.'\n ];\n return $response->setJsonContent($csrfTokenError);\n }\n\n if (!$post = Posts::findFirstById($id)) {\n $contentNotExist = [\n 'status' => 'error',\n 'message' => 'Poll does not exist'\n ];\n return $response->setJsonContent($contentNotExist);\n }\n\n if (!$user = Users::findFirstById($this->session->get('identity'))) {\n $contentlogIn = [\n 'status' => 'error',\n 'message' => 'You must log in first to vote'\n ];\n return $response->setJsonContent($contentlogIn);\n }\n\n if (!$option = PostsPollOptions::findFirstById($option)) {\n $optionNotFound = [\n 'status' => 'error',\n 'message' => 'Please select one option from the list below'\n ];\n return $response->setJsonContent($optionNotFound);\n }\n\n if ($post->isParticipatedInPoll($user->id)) {\n $contentAlreadyVote = [\n 'status' => 'error',\n 'message' => 'You have already voted this post'\n ];\n return $response->setJsonContent($contentAlreadyVote);\n }\n\n $pollVote = new PostsPollVotes();\n $pollVote->posts_id = $post->id;\n $pollVote->users_id = $user->id;\n $pollVote->options_id = $option->id;\n if (!$pollVote->save()) {\n foreach ($pollVote->getMessages() as $message) {\n /** @var \\Phalcon\\Mvc\\Model\\Message $message */\n $contentError = [\n 'status' => 'error',\n 'message' => $message->getMessage()\n ];\n return $response->setJsonContent($contentError);\n }\n }\n\n if ($post->users_id != $user->id) {\n $post->user->increaseKarma(Karma::SOMEONE_DID_VOTE_MY_POLL);\n $user->increaseKarma(Karma::VOTE_ON_SOMEONE_ELSE_POLL);\n }\n\n if (!$post->save()) {\n foreach ($post->getMessages() as $message) {\n /** @var \\Phalcon\\Mvc\\Model\\Message $message */\n $contentErrorSave = [\n 'status' => 'error',\n 'message' => $message->getMessage()\n ];\n return $response->setJsonContent($contentErrorSave);\n }\n }\n\n $viewCache = $this->getDI()->getShared('viewCache');\n $viewCache->delete('post-' . $post->id);\n $viewCache->delete('poll-votes-' . $post->id);\n $viewCache->delete('poll-options-' . $post->id);\n\n $contentOk = [\n 'status' => 'OK'\n ];\n\n return $response->setJsonContent($contentOk);\n }"
] | [
"0.6557441",
"0.6163091",
"0.6078227",
"0.5746624",
"0.57403666",
"0.566556",
"0.56401616",
"0.5518212",
"0.5515898",
"0.5512432",
"0.5499127",
"0.54756826",
"0.54738533",
"0.54492134",
"0.54444546",
"0.5424095",
"0.54217297",
"0.54177743",
"0.5390697",
"0.5328425",
"0.5268309",
"0.5257524",
"0.5257524",
"0.5225492",
"0.5207399",
"0.51965576",
"0.51882654",
"0.5163214",
"0.515238",
"0.515157",
"0.51365983",
"0.51327705",
"0.5121163",
"0.5118997",
"0.5107689",
"0.5107689",
"0.5107689",
"0.5107689",
"0.50922185",
"0.50899017",
"0.50436777",
"0.5038159",
"0.50044763",
"0.5003194",
"0.5002916",
"0.49719566",
"0.4966793",
"0.49534085",
"0.4944897",
"0.49138308",
"0.48970875",
"0.48935997",
"0.4870466",
"0.4870012",
"0.4868604",
"0.4868055",
"0.48639578",
"0.4863124",
"0.48623446",
"0.48547977",
"0.484171",
"0.4834812",
"0.4833966",
"0.48269907",
"0.48265624",
"0.48180798",
"0.48072836",
"0.480156",
"0.47969058",
"0.47853327",
"0.47852024",
"0.47783163",
"0.4775784",
"0.47755086",
"0.47722352",
"0.4771376",
"0.47666204",
"0.4760871",
"0.47503304",
"0.47444332",
"0.47431335",
"0.4728745",
"0.47281933",
"0.47190672",
"0.47091848",
"0.47015795",
"0.4699511",
"0.469866",
"0.46952912",
"0.4693692",
"0.46893623",
"0.46873417",
"0.46872935",
"0.46807075",
"0.467335",
"0.46717143",
"0.4669132",
"0.46681324",
"0.4667142",
"0.46621436",
"0.4657969"
] | 0.0 | -1 |
The menu shall be shown to users in role 'editor' and 'administrator'. | public function get_aacp_backend() {
// I don't know how to manage this other than using this capability, which
// is used for both roles.
$capability = 'moderate_comments';
add_menu_page( 'AACP Settings', 'AACP Settings', $capability, 'aacp-settings', array( $this, 'aacp_settings_page' ), 'dashicons-update' );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function lgm_theme_edit_editor_menu() {\n\t if( current_user_can('editor')) {\n\t /*MENU*/\n\t remove_menu_page( 'tools.php' );\n\t remove_menu_page( 'themes.php' );\n\t remove_menu_page( 'edit-comments.php' );\n\t /*SOUSMENU*/\n\n\t /*AJOUT NOUVEAU BOUTON MENU*/\n\t add_menu_page( 'Menu', 'Menu', 'edit_theme_options', 'nav-menus.php', '', 'dashicons-menu', 61);\n\t }\n\t }",
"public function Menu() {\n $user_role = get_option('oxi_addons_user_permission');\n $role_object = get_role($user_role);\n $first_key = '';\n if (isset($role_object->capabilities) && is_array($role_object->capabilities)) {\n reset($role_object->capabilities);\n $first_key = key($role_object->capabilities);\n } else {\n $first_key = 'manage_options';\n }\n add_submenu_page('oxi-addons', 'Elementor Addons', 'Elementor Addons', $first_key, 'oxi-el-addons', [$this, 'oxi_addons_elementors']);\n }",
"public function adminMenu()\n\t{\n\t\t$this->app['events']->listen('routes.finish', function()\n\t\t{\n\t\t\tif (! $user = $this->app['auth']->user() ) return;\n\n\t\t\t$menu = $this->app['menu']->menu('admin-header-nav');\n\t\t\t\t$menu->setAttributes(array('class' => 'eight columns'));\n\n\t\t\t$usersMenu = $menu->item('users', 'Users');\n\t\t\t\t$usersMenu->item('manage-users', 'Manage users', route('admin.user.index'));\n\n\t\t\t$profileMenu = $menu->item('user', $user->name, route('admin.profile'));\n\t\t\t\t$profileMenu->item('logout', 'Log Out', route('logout'));\n\t\t});\n\t}",
"function d4tw_remove_menus(){\r\nif ( current_user_can( 'editor' ) ) {\r\nremove_menu_page( 'tools.php' );\r\n\t}\r\n}",
"function exchange_add_user_management_for_editors() {\n\t$role = get_role( 'editor' );\n\t$caps = exchange_get_user_caps();\n\tforeach ( $caps as $cap ) {\n\t\t$role->add_cap( $cap );\n\t}\n}",
"function control_custom_menus() {\n\n\t// Check if the menu exists\n\t$menu_exists = wp_get_nav_menu_object( 'secondary' );\n\n\t// If it doesn't exist, let's create it.\n\tif( !$menu_exists){\n\t\t$menu_id = wp_create_nav_menu( 'secondary' );\n\n\t\t$user = wp_get_current_user();\n\n\t\t// Set up default menu items\n\t\t$menu_author_id = wp_update_nav_menu_item($menu_id, 0, array(\n\t\t\t'menu-item-title' => __( $user->display_name ),\n\t\t\t'menu-item-url' => get_author_posts_url( $user->ID ),\n\t\t\t'menu-item-status' => 'publish'));\n\n\t\t// Set up default menu items\n\t\t$menu_logout_id = wp_update_nav_menu_item($menu_id, 0, array(\n\t\t\t'menu-item-title' => __( 'Logout' ),\n\t\t\t'menu-item-parent-id' => $menu_author_id,\n\t\t\t'menu-item-url' => wp_logout_url(),\n\t\t\t'menu-item-status' => 'publish'));\n\n\t}\n}",
"public static function add_admin_menus()\n\t{\n\t}",
"function isa_editor_manage_users()\n{\n if (get_option('isa_add_cap_editor_once') != 'done') {\n // let editor manage users\n $edit_editor = get_role('editor'); // Get the user role\n $edit_editor->add_cap('edit_users');\n $edit_editor->add_cap('list_users');\n $edit_editor->add_cap('promote_users');\n $edit_editor->add_cap('create_users');\n $edit_editor->add_cap('add_users');\n $edit_editor->add_cap('delete_users');\n\n update_option('isa_add_cap_editor_once', 'done');\n }\n}",
"function jpa_menu_administrator()\n{\n add_menu_page(JPA_NOMBRE,JPA_NOMBRE,'manage_options',JPA_RUTA . '/admin/jpa-configuration.php');\n add_submenu_page(JPA_RUTA . '/admin/jpa-configuration.php','Add resource','Add resource','manage_options',JPA_RUTA . '/admin/jpa-add_resource.php');\n}",
"protected function menus()\n {\n\n }",
"function custom_adminbar_menu( $meta = TRUE ) { \n global $wp_admin_bar; \n if ( !is_user_logged_in() ) { return; } \n if ( !is_super_admin() || !is_admin_bar_showing() ) { return; } \n $wp_admin_bar->add_menu( array( \n 'id' => 'custom_menu', \n 'title' => __( 'Menu Name', 'tabula-rasa' ), \n 'href' => 'http://google.com/', \n 'meta' => array( target => '_blank' ) ) \n ); \n}",
"function login_menu() {\n $asf = CAsdf::Instance();\n if($asf->user['isAuthenticated']) {\n $items = \"<a href='\" . create_url('user/profile') . \"'><img class='gravatar' src='\" . get_gravatar(20) . \"' alt=''> \" . $asf->user['acronym'] . \"</a> \";\n if($asf->user['hasRoleAdministrator']) {\n $items .= \"<a href='\" . create_url('acp') . \"'>acp</a> \";\n }\n $items .= \"<a href='\" . create_url('user/logout') . \"'>logout</a> \";\n } else {\n $items = \"<a href='\" . create_url('user/login') . \"'>login</a> \";\n }\n return \"<nav id='login-menu'>$items</nav>\";\n}",
"function admin_menu() {\n\t\t// Set Admin Access Level\n\t\tif(!$this->options['access_level']): \n\t\t\t$access = 'edit_dashboard';\n\t\telse: \n\t\t\t$access = $this->options['access_level'];\n\t\tendif;\n\t\t\n\t\t// Create Menu Items \n\t\tadd_options_page('Escalate Network', 'Escalate Network', $access, 'escalate-network-options', array($this, 'settings_page'));\n\t}",
"static function user_menu($menu, $theme) {\n $user = identity::active_user();\n if ($user->guest) {\n // disable the default login\n $menu->remove('user_menu_login');\n // add ours\n $menu->append(Menu::factory(\"link\")\n ->id(\"user_menu_openid\")\n ->css_id(\"g-openid-menu\")\n ->url(url::site(\"openid\"))\n ->label(t(\"Login\")));\n }\n }",
"public static function canDisplayRolesMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_ROLE);\n\t}",
"public function executeIndex()\n {\n sfConfig::set('config_menu','active');\n if (!$this->getUser()->hasAttribute('page', 'tv_admin/role'))\n $this->getUser()->setAttribute('page', 1, 'tv_admin/role');\n }",
"public function index()\n {\n $data = $this->user->getUserData();\n $data['title'] = 'Menu Management';\n $data['menu'] = $this->menu->getMenuByUser($data['role_id']);\n $data['submenu'] = $this->menu->getAllSubmenu();\n $this->template->load('menu/menuManagement', $data, 'menu/JS_menu');\n }",
"protected function _menu()\n\t{\n\t\tif (ee()->view->disabled('ee_menu'))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tee()->view->cp_main_menu = ee()->menu->generate_menu();\n\t}",
"public function adminmenu()\n {\n\n $vue = new ViewAdmin(\"Administration\");\n $vue->generer(array());\n }",
"function applicants_admin_actions() {\n //add_menu_page(\"Applicants\", \"Applicants\", 5, \"Applicants\", \"applicants_admin\");\n\tadd_menu_page( 'Applicants', 'Applicants', 'manage_options', 'applicants', 'applicants_admin', '', 27 );\n}",
"function admin_menu()\n {\n }",
"function admin_menu()\n {\n }",
"function admin_menu()\n {\n }",
"function mainMenu() \r\n\t\t{\r\n\t\t\tif($this->RequestAction('/external_functions/verifiedAccess/'.$this->Auth->user('id').\"/1/mainMenu\") == true)\r\n\t\t\t{\r\n\t\t\t\t$this->set('title_for_layout', 'Fondos por rendir :: Menu Principal');\r\n\t\t\t\t$this->set('userAdmin', $this->Auth->user('admin'));\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t$this->Session->setFlash('No tienes permisos para ver esta pagina, consulta con el administrador del sistema.', 'flash_alert');\r\n\t\t\t\t$this->redirect(array('controller' => 'dashboard', 'action' => 'index'));\r\n\t\t\t}\r\n\t\t}",
"function registrar_menu() {\nregister_nav_menu('menuprincipal', __('Menu Principal'));\n}",
"function polizeipresse_create_admin_menu() {\r\n\tif(current_user_can('manage_options')){\r\n\t\t// Create new top-level menu\r\n\t\tadd_options_page('Polizeipresse-Plugin',\r\n\t\t\t\t\t\t 'Polizeipresse',\r\n\t\t\t\t\t\t 'manage_options',\r\n\t\t\t\t\t\t 'polizeipresse_options',\r\n\t\t\t\t\t\t 'polizeipresse_option_page');\r\n\t}\r\n}",
"public function add_menus()\n {\n }",
"function h_add_menus(array $args) {\n if (!is_admin()) { return;}\n\n $menu = new H_Sidenav($args);\n $menu->add();\n}",
"function sld_manage_menu_items() {\n\tif( !current_user_can( 'administrator' ) ) {\n\t}\n\tremove_menu_page('link-manager.php'); // Links\n\t// remove_menu_page('edit.php'); // Posts\n\tremove_menu_page('upload.php'); // Media\n\t// remove_menu_page('edit-comments.php'); // Comments\n\t// remove_menu_page('edit.php?post_type=page'); // Pages\n\t// remove_menu_page('plugins.php'); // Plugins\n\t// remove_menu_page('themes.php'); // Appearance\n\t// remove_menu_page('users.php'); // Users\n\t// remove_menu_page('tools.php'); // Tools\n\t// remove_menu_page('options-general.php'); // Settings\n}",
"protected function getModuleMenu() {}",
"protected function getModuleMenu() {}",
"protected function getModuleMenu() {}",
"public function admin_menu(&$menu)\n {\n\n\t}",
"public function modMenu() {}",
"public function modMenu() {}",
"public function modMenu() {}",
"function my_function_admin_bar($content) {\n\treturn ( current_user_can( 'administrator' ) ) ? $content : false;\n}",
"function mitlibnews_remove_dashboard_menu_items() {\n\tif (!current_user_can('add_users')) {\n\t\tremove_menu_page('edit-comments.php');\n\t\tremove_menu_page('tools.php');\n\t}\n}",
"public static function getAdminMenu()\n {\n return [\n 'label' => Yii::t('rbac', 'Access control'),\n 'icon' => FA::_WRENCH,\n 'order' => 6,\n 'roles' => ['rbac'],\n 'items' => [\n [\n 'label' => Yii::t('rbac', 'Action access'),\n 'icon' => FA::_MAP_SIGNS,\n 'url' => '/rbac/access/',\n 'roles' => ['rbac'],\n ],\n [\n 'label' => Yii::t('rbac', 'Elements Access'),\n 'icon' => FA::_EXTERNAL_LINK,\n 'url' => '/rbac/element/',\n 'roles' => ['rbac'],\n ],\n [\n 'label' => Yii::t('rbac', 'Fields Access'),\n 'icon' => FA::_TEXT_HEIGHT,\n 'url' => '/rbac/field/',\n 'roles' => ['rbac'],\n ],\n [\n 'label' => Yii::t('rbac', 'Assignments'),\n 'icon' => FA::_GAVEL,\n 'url' => '/rbac/assignment/',\n 'roles' => ['rbac'],\n ],\n [\n 'label' => Yii::t('rbac', 'Auth items'),\n 'icon' => FA::_GEARS,\n 'url' => '/rbac/auth-item/',\n 'roles' => ['rbac'],\n ],\n [\n 'label' => Yii::t('rbac', 'Roles'),\n 'icon' => FA::_GEAR,\n 'url' => '/rbac/role/',\n 'roles' => ['rbac'],\n ],\n [\n 'label' => Yii::t('rbac', 'Permissions'),\n 'icon' => FA::_GEAR,\n 'url' => '/rbac/permission/',\n 'roles' => ['rbac'],\n ],\n [\n 'label' => Yii::t('rbac', 'Rules'),\n 'icon' => FA::_GAVEL,\n 'url' => '/rbac/rule/',\n 'roles' => ['rbac'],\n ],\n ],\n ];\n }",
"public function menuItems()\n\t{\n\t\treturn array(\n array('label'=>$this->labelMenu!==null?$this->labelMenu:Yii::t('app','Generator'), 'icon'=>'fa fa-code', 'url'=>'#','items'=>$this->getMyselfMenu(),'visible'=>Yii::app()->getModule('users')->check('root')),\n );\n\t}",
"function add_menu() {\n add_menu_page(\"Polls\", \"Polls\", \"administrator\", \"polls\", \"managePollsPage\");\n}",
"public function admin_menu() {\n\n $capability = CL_Common::get_option( 'capability', 'general', 'manage_options' );\n\n $this->menu_page = add_options_page(\n __( 'Custom Login Settings', CUSTOM_LOGIN_DIRNAME ),\n __( 'Custom Login', CUSTOM_LOGIN_DIRNAME ),\n $capability,\n CUSTOM_LOGIN_DIRNAME,\n array( $this, 'settings_page' )\n );\n }",
"public function permissionedControlled() {\r\n return [\r\n '#markup' => $this->t('This menu entry will not show and the page will not be accessible without the \"access protected menu example\" permission to current user.'),\r\n ];\r\n }",
"function getMenuItems()\n {\n $this->menuitem(\"xp\", \"\", \"main\", array(\"xp.story\", \"admin\"));\n $this->menuitem(\"stories\", dispatch_url(\"xp.story\", \"admin\"), \"xp\", array(\"xp.story\", \"admin\"));\n }",
"function add_admin_menu() {\n\t\t$this->readme_page = new Launchable_AdminPage();\n\n\t\t$this->menu_id = add_menu_page(\n\t\t\t__( 'Launchable Options', $this->text_domain ), // Page Title\n\t\t\t__( 'Launchable', $this->text_domain ), // Menu Title\n\t\t\t'manage_options', // Capability\n\t\t\t$this->text_domain, // Slug\n\t\t\tarray(&$this->options_page, 'readme_page') );\n\n\t\t$this->options_page = new Launchable_AdminPage();\n\t\tadd_submenu_page(\n\t\t\t$this->text_domain, // Slug\n\t\t\t__( 'Readme', $this->text_domain ), // Page Title\n\t\t\t__( 'Readme', $this->text_domain ), // Menu Title\n\t\t\t'manage_options', // Capability\n\t\t\t'launchable-readme',//$this->text_domain, // Menu Slug\n\t\t\tarray(&$this->readme_page, 'readme_page') );\n\t}",
"public static function getMenu(): array {\n\t\treturn [\n\t\t\t[\n\t\t\t\t'text' => 'ROLES',\n\t\t\t\t'order' => 5,\n\t\t\t\t'permission' => 'manage-roles',\n\t\t\t\t'icon' => 'fa fa-user-tag',\n\t\t\t\t'submenu' => [\n\t\t\t\t\t[\n\t\t\t\t\t\t'text' => 'Roles List',\n\t\t\t\t\t\t'route' => 'admin.roles.index',\n\t\t\t\t\t\t'icon' => 'fa fa-user-tag',\n\t\t\t\t\t\t'permission' => 'list-roles',\n\t\t\t\t\t],\n\t\t\t\t\t[\n\t\t\t\t\t\t'text' => 'Create Role',\n\t\t\t\t\t\t'route' => 'admin.roles.create',\n\t\t\t\t\t\t'icon' => 'fa fa-plus-square',\n\t\t\t\t\t\t'permission' => 'create-roles',\n\t\t\t\t\t],\n\t\t\t\t]\n\t\t\t],\n\t\t];\n\t}",
"function add_cap_editor() {\n $perfil = get_role('editor');\n $perfil->add_cap('edit_users');\n $perfil->add_cap('delete_users');\n $perfil->add_cap('create_users');\n $perfil->add_cap('list_users');\n $perfil->remove_cap('remove_users');\n $perfil->remove_cap('add_users');\n $perfil->add_cap('promote_users');\n $perfil->remove_cap('add_users');\n // Editar opciones del tema\n $perfil->add_cap('edit_theme_options');\n}",
"protected function registerMenu()\n {\n }",
"function custom_menus(){\n global $menu;\n global $submenu;\n\n $menu[2][0] = 'Início';\n $menu[5][0] = 'Exposição Virtual';\n $menu[10][0] = 'Biblioteca mídia';\n\n\n if (! current_user_can('administrator')) {\n unset($submenu['themes.php'][6]); // remove customize\n unset($submenu['themes.php'][8]); // remove editor\n\n remove_menu_page('edit-comments.php');\n remove_menu_page('tools.php');\n remove_submenu_page('themes.php','theme-editor.php');\n\n remove_menu_page( 'edit.php?post_type=page' );\n remove_menu_page( 'edit.php?post_type=acf-field-group' );\n }\n}",
"function at_try_menu()\n{\n add_menu_page('signup_list', //page title\n 'Sign Up List', //menu title\n 'manage_options', //capabilities\n 'Signup_List', //menu slug\n Signup_list //function\n );\n}",
"function editable_roles( $roles ){\n if( isset( $roles['administrator'] ) && !current_user_can('administrator') ){\n unset( $roles['administrator']);\n }\n return $roles;\n }",
"function adminMenu() {\r\n\t\t// TODO: This does not only create the menu, it also (only?) *does* sth. with the entries.\r\n\t\t// But those actions must be done before the menu is created (due to the redirects).\r\n\t\t// !Split the function!\r\n\t\t//$page = add_submenu_page('admin.php', __('UWR Ergebnisse'), __('UWR Ergebnisse'), 'edit_posts', 'uwr1results', array('Uwr1resultsController', 'adminAction'));\r\n\t\t$page = add_submenu_page('uwr1menu', __('UWR Ergebnisse'), __('UWR Ergebnisse'), UWR1RESULTS_CAPABILITIES, 'uwr1results', array('Uwr1resultsController', 'adminAction'));\r\n\t\tadd_action( 'admin_print_scripts-' . $page, array('Uwr1resultsView', 'adminScripts') );\r\n\t}",
"function user_role_admin_styles(){\n\t/**\n\t * Admin:\n\t */\n\tif (current_user_can('administrator')){\n\t\t// load admin-admin-style.css\n\t\twp_enqueue_style( 'editor-style', get_template_directory_uri() . '/css/admin-admin-style.css' );\n\t\t// Remove posts and comments from admin menu:\n\t\tremove_menu_page( 'edit.php' ); //Posts\n\t\tremove_menu_page( 'edit-comments.php' ); //Comments\n\t}\n\t/**\n\t * NOT Admin:\n\t */\n\telse {\n\t\tremove_menu_page( 'index.php' ); //Dashboard\n\t\tremove_menu_page( 'upload.php' ); //Media\n\t\t/**\n\t\t * Load Editor style\n\t\t */\n\t\twp_enqueue_style( 'editor-style', get_template_directory_uri() . '/css/editor-admin-style.css' );\n\t}\n}",
"function gymfitness_menus(){ \n register_nav_menus(array(\n 'menu-principal' =>__('Menu principal', 'gymfitness'),\n 'menu-principal2' =>__('Menu principal2', 'gymfitness')\n\n ));\n}",
"public function generateAdminDevMenus() {\n Menu::create([\n 'menu' => 'Home',\n 'icon' => 'fa fa-home',\n 'active' => 'home/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '0',\n 'link_to' => 'home'\n ]);\n\n Menu::create([\n 'menu' => 'Dashboard',\n 'icon' => 'fa fa-dashboard',\n 'active' => 'dashboard/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '1',\n 'link_to' => 'dashboard'\n ]);\n\n Menu::create([\n 'menu' => 'Ambiente',\n 'icon' => 'fa fa-tree',\n 'active' => 'decompose/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '2',\n 'link_to' => 'decompose'\n ]);\n\n Menu::create([\n 'menu' => 'Rotas',\n 'icon' => 'fa fa-map',\n 'active' => 'routes/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '3',\n 'link_to' => 'routes'\n ]);\n\n Menu::create([\n 'menu' => 'Env Editor',\n 'icon' => 'fa fa-code',\n 'active' => 'enveditor/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '4',\n 'link_to' => 'enveditor'\n ]);\n\n Menu::create([\n 'menu' => 'Logs',\n 'icon' => 'fa fa-pencil-square',\n 'active' => 'logs/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '5',\n 'link_to' => 'logs'\n ]);\n\n Menu::create([\n 'menu' => 'APIs',\n 'icon' => 'fa fa-code',\n 'active' => 'api/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '6',\n 'link_to' => 'api'\n ]);\n\n Menu::create([\n 'menu' => 'Usuarios',\n 'icon' => 'fa fa-users',\n 'active' => 'users/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '7',\n 'link_to' => 'users'\n ]);\n\n Menu::create([\n 'menu' => 'Paginas',\n 'icon' => 'fa fa-file-o',\n 'active' => 'pages/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '8',\n 'link_to' => 'pages'\n ]);\n\n Menu::create([\n 'menu' => 'Opçoes',\n 'icon' => 'fa fa-list-ul',\n 'active' => 'options/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '9',\n 'link_to' => 'options'\n ]);\n\n Menu::create([\n 'menu' => 'Menus',\n 'icon' => 'fa fa-bars',\n 'active' => 'menus/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '10',\n 'link_to' => 'menus'\n ]);\n\n Menu::create([\n 'menu' => 'Holder',\n 'icon' => 'fa fa-home',\n 'active' => 'holder/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '11',\n 'link_to' => 'holder'\n ]);\n\n Menu::create([\n 'menu' => 'Strings',\n 'icon' => 'fa fa-font',\n 'active' => 'strings/*',\n 'menu_root' => null,\n 'appears_to' => User::UserTypeAdmin,\n 'order' => '12',\n 'link_to' => 'strings'\n ]);\n }",
"public function writeMenu() {}",
"public function writeMenu() {}",
"public function menu()\n {\n add_settings_field(\n 'menu',\n apply_filters($this->plugin_name . 'label-menu', esc_html__('Menu', $this->plugin_name)),\n [$this->builder, 'checkbox'],\n $this->plugin_name,\n $this->plugin_name . '-general',\n [\n 'description' => 'Show security.txt menu at the top of the WordPress admin interface. You should turn this off after you have the plugin configured.',\n 'id' => 'menu',\n 'value' => isset($this->options['menu']) ? $this->options['menu'] : false,\n ]\n );\n }",
"public function writeMenu() {}",
"public function writeMenu() {}",
"protected function activateAdminMenu()\n {\n app()->singleton(\n 'AdminMenu',\n AdminMenu::class\n );\n }",
"public function cseMenuLinks() {\n\n\t\tif(Session::getSess('logged') == false) {\n\t\t\t$this->cseMenuLinks .= '\n\t\t\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/regUser\"><span>Регистрация</span></a></li>\n\t\t\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/logIn\"><span>Вход</span></a></li>\n\t\t\t';\n\t\t} else {\n\t\t\t$username = $this->setUrl('userNameDisplay');\n\t\t\t$this->cseMenuLinks .= '\n\t\t\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/userProfile/'. $username .'\"><span>Настройки</span></a></li>\n\t\t\t\t<li><a href=\"'. $this->dataInfo['BASE_URL'] .'user/logOut\"><span>Изход</span></a></li>\n\t\t\t';\n\t\t}\n\t}",
"function okr_module_init_menu_items()\n{\n $CI = &get_instance();\n \n if(has_permission('okr','','view') || is_admin() || has_permission('okr','','view_own')){\n $CI->app_menu->add_sidebar_menu_item('OKR', [\n 'name' => _l('okr'),\n 'icon' => 'fa fa-crosshairs', \n 'position' => 30,\n ]);\n\n $CI->app_menu->add_sidebar_children_item('OKR', [\n 'slug' => 'okr_dashboard',\n 'name' => _l('okr_dashboard'),\n 'icon' => 'fa fa-pie-chart',\n 'href' => admin_url('okr/dashboard'),\n 'position' => 1,\n ]);\n\n $CI->app_menu->add_sidebar_children_item('OKR', [\n 'slug' => 'okr_report',\n 'name' => _l('okr_report'),\n 'icon' => 'fa fa-signal',\n 'href' => admin_url('okr/report'),\n 'position' => 2,\n ]);\n\n $CI->app_menu->add_sidebar_children_item('OKR', [\n 'slug' => 'okrs',\n 'name' => _l('okrs'),\n 'icon' => 'fa fa-crosshairs',\n 'href' => admin_url('okr/okrs'),\n 'position' => 3,\n ]);\n\n $CI->app_menu->add_sidebar_children_item('OKR', [\n 'slug' => 'okr_checkin',\n 'name' => _l('okr_checkin'),\n 'icon' => 'fa fa-calendar-check-o',\n 'href' => admin_url('okr/checkin'),\n 'position' => 4,\n ]);\n\n \n }\n if(is_admin()){\n $CI->app_menu->add_sidebar_children_item('OKR', [\n 'slug' => 'okr_setting',\n 'name' => _l('okr_setting'),\n 'icon' => 'fa fa-cog',\n 'href' => admin_url('okr/setting'),\n 'position' => 5,\n ]);\n }\n \n}",
"protected function generateMenu() {}",
"protected function generateMenu() {}",
"protected function generateMenu() {}",
"protected function generateMenu() {}",
"protected function generateMenu() {}",
"protected function generateMenu() {}",
"private function showAdminMenu() : bool\n {\n return \\apply_filters(self::FILTER_SHOW_ADMIN_MENU, true) === true;\n }",
"protected function adminMenu()\n {\n \\add_submenu_page(\n 'options-general.php',\n \\esc_html__('WP REST API Cache', 'wp-rest-api-cache'),\n \\esc_html__('REST API Cache', 'wp-rest-api-cache'),\n self::CAPABILITY,\n self::MENU_SLUG,\n function () {\n $this->renderPage();\n }\n );\n }",
"function adminMenu()\n{\n if (function_exists('rstCheckAccessPermissions') && rstCheckAccessPermissions()) {\n // available for Contributors\n $capability = 'edit_posts';\n } else {\n // available only for Administrators\n $capability = 'manage_options';\n }\n // available only for Administrators\n $capability_for_settings = 'manage_options';\n add_menu_page(__('Row Seats', 'menu-test'), __('Row Seats', 'menu-test'), $capability, 'rst-intro', 'rst_intro_page', RSTPLN_URL . 'images/row-seat-ico.png');\n add_submenu_page('rst-intro', __('Row Seats Settings', 'menu-test'), __('Row Seats Settings', 'menu-test'), $capability_for_settings, 'rst-settings', 'rst_settings');\n\tadd_submenu_page('rst-intro', __('Payment Settings', 'menu-test'), __('Payment Settings', 'menu-test'), $capability_for_settings, 'rst-pay-settings', 'rst_pay_settings');\n add_submenu_page('rst-intro', __('Manage Seats', 'menu-test'), __('Manage Seats', 'menu-test'), $capability, 'rst-manage-seats', 'rst_manage_seats');\n\t///add_submenu_page('rst-intro', __('Special Price', 'menu-test'), __('Special Price', 'menu-test'), $capability, 'rst-special-price', 'rst_special_price');\n\tadd_submenu_page('rst-intro', __('Transactions', 'menu-test'), __('Transactions', 'menu-test'), $capability, 'rst-transactions', 'rst_transactions');\n add_submenu_page('rst-intro', __('Add an Event', 'menu-test'), __('Add an Event', 'menu-test'), $capability, 'rst-manage-seats-moncal', 'rst_manage_seats_moncalender');\n\tadd_submenu_page('rst-intro', __('Reports', 'menu-test'), __('Reports', 'menu-test'), $capability, 'rst-reports', 'rst_reports');\n //add_submenu_page('rst-intro', __('Wpuser Access', 'menu-test'), __('Wpuser Access', 'menu-test'), $capability, 'wpuser-access', 'wpuser_access');\n\t//add_submenu_page('rst-intro', __('Seat color', 'menu-test'), __('Seat color', 'menu-test'), $capability, 'seat-color', 'seat_color');\n\t\t//wp_register_script('jscolor.js', plugin_dir_url(__FILE__) . 'js/jscolor/jscolor.js', array('jquery'));\n\t\t//wp_enqueue_script('jscolor.js');\n}",
"function remove_menus() {\n\tglobal $menu;\n\t$restricted = array( 'Posts', 'Media', 'Comments', 'Tools', 'Settings' );\n\tend ( $menu );\n\t\n\tif (current_user_can('contributor')) {\n\t\twhile ( prev( $menu )) {\n\t\t\t$value = explode( ' ', $menu[key( $menu )][0] );\n\t\t\tif ( in_array( $value[0] != NULL ? $value[0] : \"\" , $restricted )) { \n\t\t\t\tunset( $menu[key( $menu )] ); \n\t\t\t}\n\t\t}\n\t}\n}",
"public function MenuUtilisateur(){\n\t\t\tparent::view('Home/Menu5');\n\t\t}",
"public function index()\n {\n if(Gate::denies('EDIT_USERS')){\n abort(403);\n }\n\n $this->title = 'Менеджер прав пользователей';\n\n $roles = $this->getRoles();\n $permitions = $this->getPermitions();\n \n $this->content = view(config('settings.theme') . '.admin.permitions_content', compact('roles', 'permitions'))->render();\n \n return $this->renderOutput();\n }",
"function add_manager_role()\n{\n add_role('manager', __(\n 'Manager'),\n array(\n 'read' => true, // Allows a user to read\n 'create_posts' => true, // Allows user to create new posts\n 'edit_posts' => true, // Allows user to edit their own posts\n )\n );\n}",
"public function showMenu() {\n return view('user.menu'); \n }",
"function contact_form_admin_menu($menu)\n{\n $menu[] = array(\n 'URL' => CONTACT_FORM_ADMIN,\n 'NAME' => 'Contact Form',\n );\n return $menu;\n}",
"public function add_menu_items () {\n\t\t\n\t\t//add menu in wordpress dashboard\n\n\t\tadd_submenu_page(\n\t\t\t'ltple-settings',\n\t\t\t__( 'Affiliate Commissions', $this->plugin->slug ),\n\t\t\t__( 'Affiliate Commissions', $this->plugin->slug ),\n\t\t\t'edit_pages',\n\t\t\t'edit.php?post_type=affiliate-commission'\n\t\t);\n\t\t\n\t\tadd_users_page( \n\t\t\t'All Affiliates', \n\t\t\t'All Affiliates', \n\t\t\t'edit_pages',\n\t\t\t'users.php?' . $this->parent->_base .'view=affiliates'\n\t\t);\n\t}",
"function network_admin_menu()\n {\n }",
"function my_custom_dash() {\n\t$user_id = get_current_user_id();\n\tif ($user_id == 1) { // is one specific admin role\n\t // Show This\n\t} elseif (!current_user_can('administrator')) { // is not the administrator\n\t\t// Show That\n\t} elseif (!current_user_can('manage_options')) { // cannot manage options\n\t\t\n\t} else {\n\t\t//rest can see everything they can in that role\n\t}\n}",
"public function actionIndex()\n {\n $service = new MenuService();\n $menus = $service->getAuthorizedBackendMenusByUserId(Yii::$app->getUser()->getId());\n return $this->renderPartial('index', [\n \"menus\" => $menus,\n 'identity' => Yii::$app->getUser()->getIdentity(),\n ]);\n }",
"function create_admin_menu()\n {\n add_menu_page(\n 'Mattevideo Exercises', //page title\n 'Mattevideo Exercises', //menu title\n 'manage_options', //capabilities\n 'mattevideo_exercise', //menu slug\n array($this, 'mattevideo_exercise') //function\n );\n add_submenu_page('mattevideo_exercise', //parent slug\n 'Create Exercise', //page title\n 'Create Exercise', //menu title\n 'manage_options', //capability\n 'create_exercise', //menu slug\n array($this, 'create_exercise')); //function\n }",
"protected function viewMenu(){\n\t\t$userStatus = $_SESSION[\"user_status\"];\n\t\t\n\t\t// menus\n\t\t$menu = false;\n\t\tif ($userStatus > 2){\n\t\t\t$menu = true;\n\t\t}\n\t\treturn $menu;\n\t}",
"public function adminMenu() {\n\t\t$cap = is_multisite() ? 'manage_network_options' : 'manage_options';\n\t\t$action = \"actionIndex\";\n\t\tadd_submenu_page( 'wp-defender', esc_html__( \"IP Lockouts\", \"defender-security\" ), esc_html__( \"IP Lockouts\", \"defender-security\" ), $cap, $this->slug, array(\n\t\t\t&$this,\n\t\t\t$action\n\t\t) );\n\t}",
"private function menu() {\n // Array Map: Key(Menu Elements) => Array(Bold, Not Dynamic tag)\n if(isset($_SESSION['isAdmin'])) {\n $data['menu'] = [\n 'dashboard' => [false, false],\n 'general' => [false, false],\n 'weather' => [false, false],\n 'themes' => [false, false],\n 'languages' => [false, false],\n 'info_pages' => [false, false],\n 'ads' => [false, false],\n 'password' => [false, false],\n 'logout' => [false, true]\n ];\n } else {\n $data['menu'] = [\n 'login' => [false, false],\n ];\n }\n\n // If on the current route, enable the Bold flag\n $data['menu'][$this->url[1]][0] = true;\n\n return $this->view->render($data, 'admin/menu');\n }",
"public static function canDisplayUsersMenu()\n\t{\n\t\treturn PermissionValidator::hasPermission(PermissionConstants::VIEW_USER);\n\t}",
"function wp_admin_bar_edit_site_menu($wp_admin_bar)\n {\n }",
"public function menuConfig() {}",
"public function menuConfig() {}",
"public function menuConfig() {}",
"public function menuConfig() {}",
"public function menuConfig() {}",
"public function menuConfig() {}",
"public function indexAction() {\n if (in_array(0, $this->_rolesUser) || in_array(1, $this->_rolesUser)) $this->_redirect(\"/admintool/index/go\");\n \n // traductores\n if (in_array(2, $this->_rolesUser)) $this->_redirect(\"/admintool/index/translate\"); \n }",
"function initAdminMenu() {\r\n\r\n\t\t$accounts_hook = $this->addMenu('accounts', ShoppWholesale::SHOPP_MENU_ROOT);\r\n\t\t$this->addMenu('account-review', $accounts_hook);\r\n\t\t$this->addMenu('account-settings', $accounts_hook);\r\n\t\t$this->addMenu('account-shortcode-help', $accounts_hook);\r\n\r\n\t\t//reorder menus\r\n\t\t$this->sendToBottom('Settings');\r\n\r\n\t}",
"public function customAccessPage() {\r\n return [\r\n '#markup' => $this->t('This menu entry will not be visible and access will result\r\n in a 403 error unless the user has the \"authenticated\" role. This is\r\n accomplished with a custom access check plugin.'),\r\n ];\r\n }",
"public function add_admin_menus()\n {\n\n add_menu_page(\n 'Online Exam',\n 'Online Exam',\n 'manage_department',\n 'online_exam',\n function () {\n new \\OE\\includes\\html\\Manage_Department;\n },\n 'dashicons-text-page',\n );\n\n /**\n * adding theme setting menu to admin page\n */\n\n add_menu_page(\n 'OE Theme Setting',\n 'Theme Setting',\n 'manage_options',\n 'oe_theme_setting',\n function () {\n new \\OE\\includes\\html\\Theme_Setting;\n },\n 'dashicons-admin-generic',\n 98\n );\n\n /**\n * adding all the submens to admin page\n * this is teacher's submenu page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Teacher's\",\n // menu title\n \"Manage Teacher's\",\n // capability\n 'manage_teachers',\n // menu slug\n 'manage_teachers',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Teaher;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Questions\",\n // menu title\n \"Manage Questions\",\n // capability\n 'manage_questions',\n // menu slug\n 'manage_questions',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Question;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Exam Routine\",\n // menu title\n \"Exam Routine\",\n // capability\n 'manage_routine',\n // menu slug\n 'manage_routine',\n // callback function\n function () {\n new \\OE\\includes\\html\\Exam_Routine;\n },\n );\n\n /**\n * adding all the submens to admin page\n * this is all questions managing page\n */\n\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Manage Students\",\n // menu title\n \"Manage Students\",\n // capability\n 'manage_students',\n // menu slug\n 'manage_students',\n // callback function\n function () {\n new \\OE\\includes\\html\\Manage_Student;\n },\n );\n\n /**\n * adding create all question page according to question folder\n * this is question creation page\n */\n if (isset($_GET['exam_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Create Qustion\",\n // menu title\n \"Create Qustion\",\n // capability\n 'create_question',\n // menu slug\n 'create_question',\n // callback function\n function () {\n new \\OE\\includes\\html\\Create_Qustion;\n },\n );\n }\n\n /**\n * adding student performence page according to question folder\n * this is question creation page\n */\n if (isset($_GET['current_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"Student's Performence\",\n // menu title\n \"Student's Performence\",\n // capability\n 'student_performence',\n // menu slug\n 'student_performence',\n // callback function\n function () {\n new \\OE\\includes\\html\\Student_Performence;\n },\n );\n }\n\n /**\n * adding individual performence page according to question folder\n * this is question creation page\n */\n if (isset($_GET['performence_folder_id'])) {\n add_submenu_page(\n // parant slug\n 'online_exam',\n // page title\n \"\" . $_GET['student_name'] . \"'s Performence\",\n // menu title\n \"\" . $_GET['student_name'] . \"'s Performence\",\n // capability\n 'individual_performence',\n // menu slug\n 'individual_performence',\n // callback function\n function () {\n new \\OE\\includes\\html\\Individual_Performence;\n },\n );\n }\n\n /**\n * renaming online exam menu\n */\n\n $this->admin_menu_rename();\n }",
"public function testRolesAreAppledToAdminAndEditor() {\n\t\tberry_activation();\n\t\t$admin = get_role( 'administrator' );\n\t\t$this->assertTrue( $admin->has_cap( 'berry_admin' ) );\n\n\t\t$editor = get_role( 'editor' );\n\t\t$this->assertTrue( $editor->has_cap( 'berry_user' ) );\n\n\t}",
"function addMenu()\n{\n add_menu_page (\"Members and Email\", \"Members / Email\", 4, \"members-email-1\", \"MeMenu\" );\n add_submenu_page(\"members-email-1\", \"Email List\", \"Email\", 4, \"members-email-sub-1\", \"MeMenuSub1\");\n add_submenu_page(\"members-email-1\", \"Tracking\", \"Tracking Scripts\", 4, \"tracking-scripts-1\", \"MeMenuSub2\");\n\n\n}",
"public function addAdminMenu()\n\t {\n\t add_menu_page('Create Metas', 'Create Metas', 'manage_options', 'create-metas', array( $this, 'optionsPage' ), 'dashicons-admin-tools', 66 );\n\t }"
] | [
"0.7492707",
"0.7216009",
"0.699389",
"0.68960935",
"0.687454",
"0.68223417",
"0.675822",
"0.6720738",
"0.6685212",
"0.66504407",
"0.665011",
"0.6642993",
"0.6636951",
"0.6624392",
"0.6622494",
"0.6594268",
"0.6591349",
"0.6561748",
"0.6556097",
"0.65332735",
"0.6517953",
"0.6517953",
"0.6517953",
"0.65107656",
"0.6502245",
"0.6493528",
"0.64470416",
"0.6418557",
"0.64155054",
"0.64127403",
"0.64127403",
"0.64119273",
"0.6410387",
"0.64091533",
"0.6408497",
"0.6408019",
"0.6401928",
"0.6385605",
"0.6380015",
"0.6378085",
"0.63635117",
"0.63560563",
"0.634372",
"0.63427967",
"0.63418597",
"0.63313985",
"0.63240606",
"0.6323911",
"0.63233286",
"0.63175696",
"0.63135237",
"0.6312196",
"0.6309805",
"0.6302208",
"0.6298238",
"0.6295885",
"0.629573",
"0.6295422",
"0.62950456",
"0.62950456",
"0.62915283",
"0.6284055",
"0.6275852",
"0.62734604",
"0.62734604",
"0.62734604",
"0.62734604",
"0.62734604",
"0.62734604",
"0.6272633",
"0.62725747",
"0.6272408",
"0.6267038",
"0.62580633",
"0.625751",
"0.62566555",
"0.62564677",
"0.6254755",
"0.6249883",
"0.624056",
"0.6240321",
"0.62367845",
"0.623672",
"0.6236193",
"0.6226886",
"0.622535",
"0.62240493",
"0.622253",
"0.62213564",
"0.62198746",
"0.62198746",
"0.62198746",
"0.6217916",
"0.6217916",
"0.6216781",
"0.6210388",
"0.6199768",
"0.6197667",
"0.6192698",
"0.61924773",
"0.6192405"
] | 0.0 | -1 |
Constructor, create a minimal Recipient object. | public function __construct(string $email = null, string $label = null, string $notificationURL = null)
{
$this->_email = $email;
$this->_label = $label;
$this->_notificationURL = $notificationURL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function __construct( $recipient = null ) {\n\t\tif ( null !== $recipient ) {\n\t\t\t$this->set( $recipient );\n\t\t}\n\t}",
"function __construct($sender)\r\n {\r\n $this->sender = $sender;\r\n $this->recipients = array(); \r\n }",
"public function testConstructor()\n {\n $cut = new Recipient();\n\n $this->assertNull($cut->getAmount());\n $this->assertNull($cut->getAddress());\n\n $cut = new Recipient('sdfwfjdsfg4wr23fecdsb', '100000');\n\n $this->assertEquals(100000, $cut->getAmount());\n $this->assertEquals('sdfwfjdsfg4wr23fecdsb', $cut->getAddress());\n }",
"public static function recipientNotProvided()\n {\n return new static('Facebook notification recipient ID or Phone Number was not provided. Please refer usage docs.');\n }",
"public function __construct()\n {\n parent::__construct(\"You didn't specify a `recipient` numeric field.\");\n }",
"public static function createInstance()\n {\n return new MailMessage('[email protected]');\n }",
"public function __construct(User $sender , User $recipient, Message $message)\n {\n //\n $this->sender = $sender;\n $this->recipient = $recipient;\n $this->message = $message;\n\n }",
"public static function missingRecipient()\n {\n return new static('Notification was not sent. You should specify peer_id, user_id, domain, chat_id or user_ids param.');\n }",
"public function __construct($recipient, $sender, $title)\n {\n $this->recipient = $recipient;\n $this->sender = $sender;\n $this->title = $title;\n }",
"public static function Factory($recipient, &$config) {\n $senderclassname = 'Arcanum_SMS_Sender_'.ucfirst($config->sender);\n return new $senderclassname($recipient, $config);\n }",
"public function __construct()\n {\n parent::__construct('simple_mail');\n\n $contactRepository = tx_caretaker_ContactRepository::getInstance();\n\n $this->mail_from = $this->getConfigValue('mail_from');\n $this->mail_subject = $this->getConfigValue('mail_subject');\n $this->mail_link = $this->getConfigValue('mail_link');\n $this->mail_link = $this->getConfigValue('mail_link');\n $this->mail_roles = array();\n $role_ids = explode(',', $this->getConfigValue('role_ids'));\n foreach ($role_ids as $role_id) {\n $role = $contactRepository->getContactRoleById(trim($role_id));\n if (!$role && is_numeric($role_id)) {\n $role = $contactRepository->getContactRoleByUid(intval($role_id));\n }\n if ($role) {\n $this->mail_roles[] = $role;\n }\n }\n }",
"public function __construct($toAddress = null, $fromAddress = null)\n {\n if ($toAddress !== null) {\n $this->setToAddress($toAddress);\n }\n if ($fromAddress !== null) {\n $this->setFromAddress($fromAddress);\n }\n }",
"public function __construct()\n {\n // Sender of the SMS – PreRegistered through the Customer Area.\n $this->from = '+919790048427';\n\n // The full international mobile number without the + or 00\n $this->to = '919790048427';\n\n // The SMS content.\n $this->msgtext = 'Vimala Anbalagan from Expert Texting';\n $this->send();\n }",
"public function __construct(string $to, string $subject, $body, ?string $cc, ?string $from, ?string $bcc)\n {\n $this->to = $to;\n $this->from = $from;\n $this->subject = $subject;\n $this->body = $body;\n $this->cc = $cc ?? \"\";\n $this->bcc = $bcc ?? \"\";\n }",
"public function __construct() {\r\n $this->html = false;\r\n $this->setFrom(EMAIL_FROM);\r\n }",
"public static function factory()\n\t\t{\n\t\t\t// crea la nuova istanza della classe Mail e la ritorna\n\t\t\treturn new Mailer();\n\t\t}",
"public function __construct(\n private readonly Recipients $recipients,\n private readonly string $subject,\n private readonly string $text = '',\n private readonly string $html = '',\n private readonly array $headers = []\n ) {\n }",
"public function __construct($sender, $recipient, $title, $content) {\n $this->sender = $sender;\n $this->recipient = $recipient;\n $this->title = $title;\n $this->content = $content;\n }",
"public function setRecipient($recipient)\n {\n $this->recipient = $recipient;\n return $this;\n }",
"public function setRecipient($recipient)\n {\n $this->recipient = $recipient;\n return $this;\n }",
"public function setRecipient($recipient)\n {\n $this->recipient = $recipient;\n return $this;\n }",
"public function recipient($address = null)\n {\n return new Account([\"address\" => $address ?: $this->getAttribute(\"recipient\")]);\n }",
"public function setRecipient(User $User = NULL) {\r\n if ($User instanceof User) {\r\n $this->Recipient = $User;\r\n \r\n $this->to_user_id = $this->Recipient->id;\r\n $this->to_username = $this->Recipient->username;\r\n $this->to_user_viewonline = $this->Recipient->hide;\r\n $this->to_user_avatar = $this->Recipient->avatar;\r\n }\r\n \r\n return $this;\r\n }",
"public function createMailMessage();",
"public function __construct($To = \"[email protected]\",$BCC = NULL)\n\t{\n\t\tparent::__construct();\n\t\t$this->To = $To;\n\t\t$this->BCC = $BCC;\n\t}",
"public function recipient($recipient)\n {\n\n\n $this->recipient = str_replace(' ', '', trim($recipient) ) ;\n\n return $this;\n\n\n }",
"public function to($recipient)\n {\n throw_if(is_null($recipient), SmsException::class, 'Recipient cannot be empty');\n\n throw_if(!is_string($recipient) && $recipient instanceof HasPhoneNumber, SmsException::class, 'Invalid argument for recipient. Must be phone number (string) or entity that implements HasPhoneNumber interface.');\n\n $this->recipient = $recipient;\n\n return $this;\n }",
"public function __construct() {\n\t\tparent::__construct(array(\n\t\t\t'signature' => '',\n\t\t\t'trusted_signatures' => array(''),\n\t\t\t'event_prefix' => 'invite'\n\t\t));\n\t}",
"public function __construct($pmID, $recipientID, $row = null) {\n\t\tif ($pmID !== null && $recipientID !== null) {\n\t\t\t$sql = \"SELECT\t\t*\n\t\t\t\tFROM\t\twcf\".WCF_N.\"_pm_to_user\n\t\t\t\tWHERE\t\tpmID = \".$pmID.\"\n\t\t\t\t\t\tAND recipientID = \".$recipientID;\n\t\t\t$row = WCF::getDB()->getFirstRow($sql);\n\t\t}\n\t\t\n\t\tparent::__construct($row);\n\t}",
"public function __construct()\n {\n //\n $this->receiverEmail = \"[email protected]\";\n $this->data = \"hi hi hi \";\n $this->subject = \"Test Subjest \";\n $this->receiverName = \"Board SO H\";\n }",
"public function __construct($to) {\n $this->params['to'] = $to;\n }",
"public function __construct($user, MailTemplate $template)\n {\n $this->recipients = collect();\n \n $this->apiKey = $this->config('apiKey');\n $this->apiUrl = $this->config('apiUrl');\n\n $this->template = $template;\n $this->addRecipient($user);\n }",
"public function __construct(string $to, string $body)\n {\n //\n $this->body = $body;\n $this->to = $to;\n }",
"public function __construct(User $sender,User $receiver)\n {\n $this->sender = $sender;\n $this->receiver = $receiver;\n }",
"public function __construct($toEmail, $site, $user)\n {\n $this->toEmail = $toEmail;\n $this->site = $site;\n $this->user = $user;\n $this->subject = 'You are invited to ' . $site->name;\n\n $this->email = Helper::createNewEmail([\n 'toEmail' => $toEmail,\n 'toName' => $toEmail,\n 'subject' => $this->subject,\n 'emailType' => self::EMAIL_TYPE,\n 'siteId' => $site->id\n ]);\n }",
"public function recipient($recipient)\n {\n return $this->setProperty('recipient', $recipient);\n }",
"public function __construct(MailToSend $mail)\n {\n $this->mail = $mail;\n }",
"public function __construct($recipient, $callback)\n {\n $this->callback = $callback;\n\n parent::__construct($recipient);\n }",
"protected function createMessage()\n {\n $message = new Message(new Swift_Message);\n\n\n // If a global from address has been specified we will set it on every message\n // instances so the developer does not have to repeat themselves every time\n // they create a new message. We will just go ahead and push the address.\n if (isset($this->from['address'])) {\n $message->from($this->from['address'], $this->from['name']);\n }\n\n return $message;\n }",
"public function __construct(\n MailUserInterface $sender,\n MailUserInterface $recipient,\n $subject,\n $template,\n $priority = self::DEFAULT_PRIORITY,\n $returnPath = null\n ) {\n $this->recipient = $this->getUserModel($recipient);\n $this->init($sender, $subject, $template, $priority, $returnPath);\n }",
"public function __construct(\n ?int $id = null,\n ?string $sentBy = null,\n ?string $sentByEmail = null,\n ?string $sentFrom = null,\n ?string $sentFromEmail = null,\n ?MessageRecipients $recipients = null,\n ?string $subject = null,\n ?string $body = null,\n ?bool $includeLinkToClientInvoice = null,\n ?bool $attachPdf = null,\n ?bool $sendMeACopy = null,\n ?bool $thankYou = null,\n ?string $eventType = null,\n ?bool $reminder = null,\n ?DateTimeInterface $sendReminderOn = null,\n ?DateTimeInterface $createdAt = null,\n ?DateTimeInterface $updatedAt = null\n ) {\n $this->id = $id;\n $this->sentBy = $sentBy;\n $this->sentByEmail = $sentByEmail;\n $this->sentFrom = $sentFrom;\n $this->sentFromEmail = $sentFromEmail;\n $this->recipients = $recipients;\n $this->subject = $subject;\n $this->body = $body;\n $this->includeLinkToClientInvoice = $includeLinkToClientInvoice;\n $this->attachPdf = $attachPdf;\n $this->sendMeACopy = $sendMeACopy;\n $this->thankYou = $thankYou;\n $this->eventType = $eventType;\n $this->reminder = $reminder;\n $this->sendReminderOn = $sendReminderOn;\n $this->createdAt = $createdAt;\n $this->updatedAt = $updatedAt;\n\n parent::__construct();\n }",
"public function __construct( $to, $msg )\n\t{\n\n\t\t$this->from = Config::get('sms.from');\n\t\t$this->to = $to;\n\t\t$this->msg = $msg;\t\t\t\t\n\n\t}",
"public function __construct($message,$recipients,$sender,$id,$dataCoding=0x00)\n\t{\n\t\t$this->message = $message;\n\t\t$this->recipients = $recipients;\n\t\t$this->sender = $sender;\n\t\t$this->id = $id;\n\t\t$this->dataCoding = $dataCoding;\n\t}",
"public function __construct() {\n parent::__construct();\n $this->CharSet = 'utf-8';\n $this->IsMail(); // telling the class to use native PHP mail()\n $this->SetFrom(\"[email protected]\", \"Schedule-NRCU\");\n $this->Subject = 'schedule.nrcu.gov.ua';\n $this->AltBody = 'To view the message, please use an HTML compatible email viewer!'; // optional - MsgHTML will create an alternate automatically\n }",
"public function toXML()\n {\n $xmlString = \"<?xml version=\\\"1.0\\\"?><recipient></recipient>\";\n $xml = new \\SimpleXMLElement($xmlString);\n\n if (isset($this->contact)) {\n $xml->addChild(\"contact\", $this->contact->toXML());\n } \n if (isset($this->mailingId)) {\n $xml->addChild(\"mailing_id\", $this->mailingId);\n }\n if (isset($this->timestamp)) {\n $xml->addChild(\"timestamp\", $this->timestamp);\n }\n if (isset($this->transactionId)) {\n $xml->addChild(\"transaction_id\", $this->transactionId);\n }\n\n return $xml;\n }",
"public function defaultRecipient()\n {\n return $this->hasOne(Recipient::class, 'id', 'default_recipient_id');\n }",
"public function setRecipient(\\App\\Models\\Entity\\User $recipient)\n {\n $this->recipient = $recipient;\n\n return $this;\n }",
"public function __construct(MailerContract $mailer, Swift_Mime_SimpleMessage $message, int $recipients)\n {\n $this->name = 'message.sending';\n $this->target = $mailer;\n $this->parameters = ['message' => $message, 'recipients' => $recipients];\n }",
"public function __construct(array $recipients, string $title, string $body)\n {\n $this->recipients = $recipients;\n $this->title = $title;\n $this->body = $body;\n }",
"public function setRecipient($value)\n {\n return $this->set('Recipient', $value);\n }",
"public function setRecipient($value)\n {\n return $this->set('Recipient', $value);\n }",
"public function __construct(MemberMailer $mailer)\n {\n $this->mailer = $mailer;\n }",
"public function __construct(\n private readonly string $fromName,\n private readonly string $fromEmail,\n private readonly string $smtpHost,\n private readonly int $smtpPort,\n private readonly string $smtpUsername,\n private readonly string $smtpPassword\n )\n {\n }",
"public static function factory(\\SetaPDF_Core_Document $document, $recipients) {}",
"public function __construct($name, $message, $from_email)\n {\n $this->user_name = $name;\n $this->body_message = $message;\n $this->from_email = $from_email;\n }",
"public function __construct()\n {\n $this->mail = new PHPMailer();\n }",
"public function __construct(Swift_Transport $transport)\n {\n $this->mailer = new Swift_Mailer($transport);\n }",
"public function getRecipient()\n {\n return $this->hasOne($this->userClassName, ['id' => 'recipient_id'])->from(['recipient' => $this->userTableName]);\n }",
"public function __construct( ezcMailOptions $options = null )\n {\n parent::__construct();\n\n $this->properties['from'] = null;\n $this->properties['to'] = array();\n $this->properties['cc'] = array();\n $this->properties['bcc'] = array();\n $this->properties['subject'] = null;\n $this->properties['subjectCharset'] = 'us-ascii';\n $this->properties['body'] = null;\n $this->properties['messageId'] = null;\n $this->properties['returnPath'] = null;\n\n if ( $options === null )\n {\n $options = new ezcMailOptions();\n }\n\n $this->options = $options;\n }",
"public function __construct(MessageSender $messageSender)\n {\n parent::__construct();\n $this->messageSender = $messageSender;\n }",
"public function withRecipient($email, $name = null);",
"protected function create_notification_email_object()\n\t{\n\t\t$category = $this->category();\n\n\t\t$email = new Charcoal_Email;\n\t\t$email->to = $this->get_notified_email_address();\n\t\t$email->reply_to = $this->get_lead_email_address();\n\n\t\tif ( $category ) {\n\t\t\t$email->subject = $category->p('confirmation_email_subject')->text();\n\t\t\t$email->from = $category->p('confirmation_email_from')->text();\n\t\t\t$email->cc = $category->v('confirmation_email_cc');\n\t\t\t$email->bcc = $category->v('confirmation_email_bcc');\n\t\t}\n\n\t\treturn $email;\n\t}",
"public function __construct(){\n $this->xMailer = phpversion();\n $this->isHtmlEmail = true; //only HTML emails\n\n //TODO : should be set based on config\n $this->subjectPrefix = '';\n $this->body_header = '';\n $this->body_footer = '';\n\n $this->senderName = OcConfig::getSiteName();\n }",
"public function __construct($smtpAccountId)\n {\n parent::__construct($smtpAccountId);\n }",
"public function getRecipientId();",
"public function getRecipientId();",
"public function setRecipients(?array $recipients): self\n {\n $this->initialized['recipients'] = true;\n $this->recipients = $recipients;\n\n return $this;\n }",
"public function __construct(Registration $Registration,EmailSender $send){\n \n $this->register = $Registration;\n\n $this->sendemail = $send;\n\n }",
"public function __construct(SentDockets $sentDocket, User $recipient, $subject)\n {\n $this->sentDocket = $sentDocket;\n $this->subject = $subject;\n $this->recipient = $recipient;\n }",
"public static function factory(\\SetaPDF_Core_Document $document, $recipients, $encryptMetadata = true) {}",
"public static function factory(\\SetaPDF_Core_Document $document, $recipients, $encryptMetadata = true) {}",
"public static function factory(\\SetaPDF_Core_Document $document, $recipients, $encryptMetadata = true) {}",
"public function __construct($reply_email, $template_name, $params, $email, $user_id = NULL, $subject = NULL, $ab_test_id = NULL, $email_num = NULL)\n {\n\n $this->reply_email = $reply_email;\n $this->template_name = $template_name;\n $this->params = $params;\n $this->email = $email; \n $this->subject = $subject;\n $this->user_id = $user_id;\n $this->ab_test_id = $ab_test_id;\n $this->email_num = $email_num;\n }",
"public function setRecipientId($recipientId) {\n $this->recipientId = $recipientId;\n\n return $this;\n }",
"public static function createSimpleRecipient($emailAddress, $countryCode)\n {\n return (new Recipient())->setEmailAddress($emailAddress)\n ->setCountry($countryCode);\n }",
"public function __construct(Mailer $mailer)\n\t{\n//\tprint_r(\"test\");exit;\t\n $this->mailer = $mailer;\n \n\t}",
"function __construct(){\n $this->SMTPDebug = 0;\n $this->Host = \"smtp.gmail.com\";\n $this->Port = 587;\n $this->SMTPSecure = \"tls\";\n $this->SMTPAuth = true;\n $this->Username = \"[email protected]\";\n $this->Password = \"Sys123456MU\";\n $this->NameEmail = \"Sys Monsters University\";\n }",
"public function __construct($sender)\n {\n $this->_sender = $sender;\n }",
"public static function create($params = Array(), $crediental = null) {\n\t\t\n\t\tExtension::load('phpmailer');\n\t\t$mailer = new PHPMailer(true);\n\t\t\n\t\t$mailer -> SMTPOptions = array(\n\t\t\t'ssl'=> array(\n\t\t\t\t'verify_peer' => false,\n\t\t\t\t'verify_peer_name' => false,\n\t\t\t\t'allow_self_signed' => true\n\t\t\t\t)\n\t\t\t);\n\t\t\n\t\t$mailer -> CharSet = Easy::charset;\n\t\t\n\t\t$mailer -> From = (isset($params['sender_email'])) ? $params['sender_email'] : Easy::owner_email;\n\t\t$mailer -> FromName = (isset($params['sender_name'])) ? \n\t\t\t\t\t\t\t\t\t$params['sender_name'] : \n\t\t\t\t\t\t\t\t\tEasy::owner_name;\n\t\n\t\tif (!isset($params['BCC']))\n\t\t\t$mailer -> AddBCC(Easy::owner_email, Easy::owner_name);\n\n\t\tif (Easy::smtp_enabled && $crediental == null) {\n\t\t\t$mailer -> IsSMTP();\n\t\t\t$mailer -> SMTPSecure = Easy::smtp_secure;\n\t\t\t$mailer -> SMTPAuth = true;\n\t\t\t$mailer -> Host = Easy::smtp_host;\n\t\t\t$mailer -> Port = Easy::smtp_port;\n\t\t\t$mailer -> Username = Easy::smtp_user;\n\t\t\t$mailer -> Password = Easy::smtp_pass;\n\t\t} elseif ($crediental != null && is_array($crediental)) {\n\t\t\t$mailer -> IsSMTP();\n\t\t\t$mailer -> SMTPSecure = $crediental['smtp_secure'];\n\t\t\t$mailer -> SMTPAuth = true;\n\t\t\t$mailer -> Host = $crediental['smtp_host'];\n\t\t\t$mailer -> Port = $crediental['smtp_port'];\n\t\t\t$mailer -> Username = $crediental['smtp_user'];\n\t\t\t$mailer -> Password = $crediental['smtp_pass'];\n\t\t} else {\n\t\t\t$mailer -> Sendmail = @ini_get('sendmail_path');\n\t\t\t$mailer -> IsSendmail();\n\t\t}\n\n\t\t$mailer->AddReplyTo(Easy::owner_email);\n\t\t\n\t\t\n\t\treturn $mailer;\n\t}",
"public function __construct($user, $message, $toAll = false)\n {\n if(!empty($user)){\n $this->user = $user;\n $this->token = sha1($user->id + config('messenger.token'));\n }\n $this->message = $message;\n $this->toAll = $toAll;\n }",
"public function __construct()\n\t{\n\t\t$this->mailer = new \\PHPMailer;\n\n\t\t$this->mailer->isSMTP();\n\t\t$this->mailer->Host = Config::get('mail.host');\n\t\t$this->mailer->Port = Config::get('mail.port');\n\t\t$this->mailer->Username = Config::get('mail.username');\n\t\t$this->mailer->Password = Config::get('mail.password');\n\t\t$this->mailer->SMTPAuth = Config::get('mail.auth');\n\t\t$this->mailer->SMTPSecure = Config::get('mail.secure');\n\n\t\t$this->mailer->isHTML(Config::get('mail.html'));\n\t\t$this->mailer->CharSet = Config::get('mail.charset');\n\n\t\t$this->smartyInit();\n\t\t$this->message = new Message($this->mailer);\n\t}",
"protected function seeEmailTo($recipient, Swift_Message $message = null)\n {\n $this->assertArrayHasKey(\n $recipient,\n $this->getEmail($message)->getTo(),\n \"No email was sent to $recipient.\"\n );\n\n return $this;\n }",
"public function __construct($message = null, \\Arkitecht\\FedEx\\Structs\\EMailRecipient $recipients = null)\n {\n $this\n ->setMessage($message)\n ->setRecipients($recipients);\n }",
"public static function init( $_id )\n {\n $message = new Message();\n $message->get( $_id );\n return $message;\n }",
"public function __construct(Mailer $mailer)\n {\n \t$this->mailer = $mailer;\n }",
"public function __construct(string $text, string $to, string $subject, ?string $attachment = null, ?string $attachmentNmae = null)\n {\n $this->content = $text;\n $this->to = $to;\n $this->subject = $subject;\n $this->attachment = $attachment;\n $this->attachmentName = $attachmentNmae;\n }",
"public function contact()\n {\n return new Contact($this);\n }",
"public function __construct(UserMailer $mailer)\n {\n $this->mailer = $mailer;\n }",
"public function create()\n {\n return view('architect.messageRecipient.create');\n }",
"public function __construct($sender)\n {\n $this->uuid(Uuid::uuid4()->toString());\n $this->sender($sender);\n $this->timestamp(Carbon::now());\n }",
"public function __construct($email, $subscriber)\n {\n $this->email = $email;\n $this->subscriber = $subscriber;\n parent::__construct();\n }",
"public static function factory($exceptions = TRUE)\n\t{\n\t\treturn new Email($exceptions);\n\t}",
"public function __construct() {\n $this->startup= new Date('2018-06-02 14:12:11+0200');\n $this->responsible= new Person(1549, 'Timm');\n }",
"public function __construct($to = '', $subject = '', $message = '', $from = '', $cc = '', $bcc = '', $attachments = array(), $priority = '', $header = '') {\n\t\t$this->setBoundary();\n\t\t\n\t\tif (empty($from)) \t$from \t\t= array(MAIL_FROM_NAME => MAIL_FROM_ADDRESS);\n\t\tif (empty($priority)) \t$priority \t= 3;\n\t\t\t\n\t\t$this->setFrom($from);\n\t\t$this->setSubject($subject);\n\t\t$this->setMessage($message);\n\t\t$this->setPriority($priority);\n\t\t$this->setHeader($header);\n\t\t\n\t\tif (!empty($to))\t$this->addTo($to);\n\t\tif (!empty($cc))\t$this->addCC($cc);\n\t\tif (!empty($bcc))\t$this->addBCC($bcc);\n\t\t\n\t\tif (count($attachments) > 0) $this->setAttachments($attachments);\n\t}",
"public function create()\n {\n /** Zend_Mail_Transport_Sendmail */\n require_once \"Zend/Mail/Transport/Sendmail.php\";\n\n return new Zend_Mail_Transport_Sendmail(\n $this->_parameters\n );\n }",
"public function __construct(CanReceiveNotifications $recipient, $magic_link)\n {\n $this->magic_link = $magic_link;\n $this->recipient = $recipient;\n\n // set the applications locale to the user's culture we are sending\n // the notification to, instead of the current application locale\n Localization::setApplicationLocale($recipient->culture);\n }",
"public function __construct(\n\t\tstring $requesterId,\n\t\tCertifiedIntermediary $certifiedIntermediary,\n\t\tstring $mailClass,\n\t\tfloat $weight,\n\t\tAddress $returnAddress,\n\t\tAddress $destinationAddress\n\t) {\n\t\tparent::__construct($requesterId, $certifiedIntermediary);\n\t\t// poking a few ivar directly so that validation starts in a valid state\n\t\t$this->productionTest = false;\n\t\t$this->useCertifiedMail = false;\n\t\t$this->useDesinationConfirmMail = false;\n\t\t$this->labelSize = NULL;\n\t\t$this->imageFormat = NULL;\n\n\t\t// set ivars using accessors for specified params\n\t\t$this->setMailClass($mailClass);\n\t\t$this->setWeight($weight);\n\t\t$this->setReturnAddress($returnAddress);\n\t\t$this->setDestinationAddress($destinationAddress);\n\t}",
"protected function buildContactObject()\n {\n return new Contact();\n }",
"abstract public function __construct($name, $email, $phone);",
"public function __construct(array $sender = [])\n {\n $this\n ->setSender($sender);\n }",
"public function __construct(string $receiver = '', string $subject = '', string $message = '')\n {\n $this->receiver = $receiver;\n $this->subject = $subject;\n $this->message = $message;\n }"
] | [
"0.6656643",
"0.6610976",
"0.65577084",
"0.6472757",
"0.6421481",
"0.6348695",
"0.6306467",
"0.6251115",
"0.59682626",
"0.5943772",
"0.5910265",
"0.590641",
"0.5845137",
"0.58096915",
"0.58089703",
"0.57890713",
"0.57832545",
"0.5773239",
"0.5717753",
"0.5717753",
"0.5717753",
"0.5699709",
"0.5695052",
"0.5689943",
"0.56875396",
"0.56759566",
"0.5620899",
"0.56147975",
"0.56002706",
"0.5586311",
"0.55647254",
"0.55480295",
"0.55452645",
"0.55307764",
"0.55224854",
"0.55203456",
"0.5515266",
"0.55038005",
"0.5458616",
"0.5453625",
"0.54283077",
"0.54105276",
"0.5403732",
"0.54005885",
"0.5399768",
"0.5395326",
"0.53894436",
"0.53846365",
"0.5382919",
"0.5357741",
"0.5357741",
"0.534823",
"0.5347652",
"0.53450614",
"0.53436697",
"0.5334461",
"0.5324467",
"0.5315874",
"0.5313547",
"0.5309317",
"0.5303109",
"0.53019726",
"0.52932084",
"0.52920026",
"0.52733845",
"0.52733845",
"0.5271084",
"0.52643746",
"0.5261009",
"0.52456474",
"0.52456474",
"0.52442884",
"0.524246",
"0.52408534",
"0.52338934",
"0.522758",
"0.52267003",
"0.52172536",
"0.52164245",
"0.5214954",
"0.5213302",
"0.51911217",
"0.51843774",
"0.5182759",
"0.51771843",
"0.5175406",
"0.5165119",
"0.5157453",
"0.515687",
"0.51553345",
"0.5147795",
"0.51417005",
"0.51296115",
"0.5127124",
"0.51252943",
"0.5120343",
"0.5119244",
"0.51189595",
"0.5117829",
"0.5111939",
"0.5098609"
] | 0.0 | -1 |
Listens for messages from the socket and handles the responses/actions needed. | public function handle(array $defaultContext = []): void
{
$message = null;
$this->defaultContext = $defaultContext;
try {
while ($message = $this->queue->getMessage()) {
$this->dispatchRequest($message);
# If a protocol handler closed the TCP connection, then just break here...
if (!$this->queue->isConnected()) {
break;
}
}
} catch (OperationException $e) {
# OperationExceptions may be thrown by any handler and will be sent back to the client as the response
# specific error code and message associated with the exception.
$this->queue->sendMessage($this->responseFactory->getStandardResponse(
$message,
$e->getCode(),
$e->getMessage()
));
} catch (ConnectionException $e) {
$this->logInfo(
'Ending LDAP client due to client connection issues.',
array_merge(
['message' => $e->getMessage()],
$this->defaultContext
)
);
} catch (EncoderException | ProtocolException $e) {
# Per RFC 4511, 4.1.1 if the PDU cannot be parsed or is otherwise malformed a disconnect should be sent with a
# result code of protocol error.
$this->sendNoticeOfDisconnect('The message encoding is malformed.');
$this->logError(
'The client sent a malformed request. Terminating their connection.',
$this->defaultContext
);
} catch (Exception | Throwable $e) {
$this->logError(
'An unexpected exception was caught while handling the client. Terminating their connection.',
array_merge(
$this->defaultContext,
['exception' => $e]
)
);
if ($this->queue->isConnected()) {
$this->sendNoticeOfDisconnect();
}
} finally {
if ($this->queue->isConnected()) {
$this->queue->close();
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function listen()\n {\n do {\n $data = fgets($this->socket, 512);\n if (!empty($data)) {\n $request = $this->receive($data);\n $cmd = strtolower($request->getCommand());\n\n if ($cmd === 'privmsg') {\n $event_name = 'message.' . ($request->isPrivateMessage() ? 'private' : 'channel');\n } else {\n $event_name = 'server.' . $cmd;\n }\n\n // Skip processing if the incoming message is from the bot\n if ($request->getSendingUser() === $this->config['nick']) {\n continue;\n }\n\n $event = new Event($request);\n $this->dispatcher->dispatch($event_name, $event);\n $responses = $event->getResponses();\n\n if (!empty($responses)) {\n $this->send($responses);\n }\n }\n } while (!feof($this->socket));\n }",
"public function listen()\n {\n $this->openWorker();\n while (!Signal::isExit()) {\n if (($payload = $this->pop(3)) !== null) {\n list($id, $message) = explode(':', $payload, 2);\n $this->handleMessage($message);\n }\n }\n $this->closeWorker();\n }",
"private function listenSocket() {\n $result = socket_listen($this->listeningSocket);\n $this->checkResult($result);\n }",
"protected function socketPerform() {}",
"public function listen(): void\n {\n $receive = function () {\n each($this->receiveMessages(), $this->parseAndConsumeMessage());\n };\n\n $this->settings->beforeReceive($receive);\n }",
"public function listen();",
"public function handle()\n {\n /***** Controller Server *****/\n $host = 'localhost'; //host\n $port = '4070'; //port\n $null = NULL; //null var\n\n echo(\"========Starting=========\\n\");\n\t\t\t// Create TCP/IP sream socket\n echo(\"1. Creating socket...\\n\");\n $socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\t\t// Socket option\n echo(\"2. Setting socket options...\\n\");\n socket_set_option($socket, SOL_SOCKET, SO_REUSEADDR, 1);\n\t\t\t// Bind socket\n echo(\"3. Binding socket...\\n\");\n socket_bind($socket, 0, $port);\n\t\t\t// listen to port\n echo(\"4. Start Listener...\\n\");\n socket_listen($socket);\n\n $clients = array($socket);\n\n echo(\"Controller server is started\\n\");\n echo(\"=========================\\n\");\n while (true) {\n \t$changed = $clients;\n \tsocket_select($changed, $null, $null, 0, $null);\n\n \t//Changed will be the server #resource IF new connection is being made\n \tif (in_array($socket, $changed)) {\n //New connection incoming\n \t\t$socket_new = socket_accept($socket); //accept new socket\n \t\tsocket_getpeername($socket_new, $ip); //get ip address of connected socket\n if ($ip != env('APP_IP')){\n \t\t echo \"Client \".$ip.\" is connected\\n\";\n \t\t $clients[$ip] = $socket_new; //add socket to client array\n\t\t\t\t\t} else {\n\t\t\t\t\t array_push($clients, $socket_new); //add 'send_message' socket to clients array\n\t\t\t\t\t}\n \t\t//Clear the changed array (the server) so it won't go to the foreach below\n \t\t$found_socket = array_search($socket, $changed);\n \t\tunset($changed[$found_socket]);\n \t}\n\n \t//Changed will be the client #resource IF message from client is incoming\n \tforeach ($changed as $changed_socket) {\n // Reading incoming message first 10 chars\n \t\t$buf = @socket_read($changed_socket, 10, PHP_NORMAL_READ); //to check $buf is filled\n\t\t\t\t\tsocket_getpeername($changed_socket, $ip);\n\n \t\tif ($buf === false) { //if $buf empty\n \t\t\t$clients = array_diff($clients, array($changed_socket)); // Remove client from $clients array\n if ($ip != env('APP_IP'))\n \t\t\t echo \"$ip is disconnected\\n\";\n \t\t} else {\n \t\t\tif($ip == env('APP_IP')) { //server to controller\n\t\t\t\t\t\t\t$buf .= @socket_read($changed_socket, 2, PHP_NORMAL_READ);\n\t\t\t\t\t\t\t$length = substr ($buf, 5, 6);\n\t\t\t\t\t\t\t$buf .= @socket_read($changed_socket, $length-12, PHP_NORMAL_READ);\n \t\t\t\t/*********************************************\n \t\t\t\t* Message from server 0000;000037;%0060;0010;%192.168.100.1\n * unmask[0] = 0000;XXXXXX;\n * unmask[1] = 0060;0010; (the message)\n * unmask[2] = 192.168.xxx.xxx (the controller) or 0 (all controller)\n *********************************************/\n \t\t\t\t$unmask = explode(\"%\", $buf);\n \t\t\t\t$message = $unmask[1];\n $controllerip = $unmask[2];\n echo \"$message to $controllerip\\n\";\n \t\t\t\t\n \t\t\t\tif(isset($clients[$controllerip])) {\n \t\t\t$this->send_message($message, array($clients[$controllerip]));\n } else {\n echo \"Controller isn't connected\\n\";\n }\n \t\t\t} else { //controller to server\n\t\t\t\t\t\t\t$length = substr ($buf, 5, 4);\n\t\t\t\t\t\t\t$buf .= @socket_read($changed_socket, $length-10, PHP_NORMAL_READ);\n \t\t\t\t/*********************************************\n \t\t\t\t* Message from controller\n *********************************************/\n echo \"$ip : $buf\\n\";\n\t\t\t\t\t\t\tif(!in_array(substr($buf,0,4), ['1027', '1012', '1080'])) //ignore these event\n\t\t\t\t\t\t\t\tevent(new EventHappened($buf.\"%\".$ip));\n /* Lupa buat apa\n if (isset($clients[env('APP_IP')])) {\n \t\t\t\t $this->send_message($buf, array($clients[getHostByName(getHostName())]));\n } else {\n echo \"Can't send message to server\\n\";\n }\n */\n \t\t\t}\n }\n \t}\n }\n socket_close($socket);\n }",
"protected function listen()\n {\n // Set time limit to indefinite execution\n set_time_limit (0);\n\n $this->socket = socket_create(\n AF_INET,\n SOCK_DGRAM,\n SOL_UDP\n );\n\n if (!is_resource($this->socket))\n {\n $this->logger->log(\"Failed to create a socket for the discovery server. The reason was: \" .\n socket_strerror(socket_last_error()));\n }\n\n if (!@socket_bind(\n $this->socket,\n $this->config->getSetting('discovery-address'),\n $this->config->getSetting('discovery-port')))\n {\n $this->logger->log(\"Failed to bind to socket while initialising the discovery server.\");\n }\n\n // enter an infinite loop, waiting for data\n $data = '';\n while (true)\n {\n if (@socket_recv($this->socket, $data, 9999, MSG_WAITALL))\n {\n $this->logger->log(\"Discovery server received the following: $data\");\n\n $this->handleMessage($data);\n }\n }\n }",
"public function run()\n {\n $port = (int) CommandLine::getInput('p');\n\n if (!$port) {\n die('You must specify a valid port for the socket server. For example: \"-p=1024\"');\n }\n\n $server = new SocketServer('127.0.0.1', $port);\n\n // Set greetings for the new connection\n $server->greetings(\"\\nHi! Just type your brackets sequence and you will see the result\\n\");\n\n // Set handler of the incoming messages\n $server->setMessageHandler($this->messageHandler);\n\n // Start up the server\n $server->run();\n }",
"public function receive(): void\n {\n $connection = $this->getConnection();\n $node = $connection->getCurrentNode();\n\n do {\n $this->_run($node);\n } while (\n false === $connection->isDisconnected() &&\n true !== $node->isMessageComplete()\n );\n }",
"public function run() {\n $read = array (\n 0 => $this->socket\n );\n\n foreach($this->clients as $client)\n $read[] = $client->socket;\n\n $result = @ socket_select($read, $write = null, $except = null, $this->blocking ? null : 1);\n if ($result === false || ($result === 0 && $this->blocking)) {\n $this->error('Socket Select Interruption: ' . socket_strerror(socket_last_error()));\n return false;\n }\n\n // If the master socket is in the $read array, there's a pending connection\n if (in_array($this->socket, $read))\n $this->connect();\n\n // Handle input from sockets in the $read array.\n $daemon = $this->daemon;\n $printer = function($str) use ($daemon) {\n $daemon->log($str, 'SocketServer');\n };\n\n foreach($this->clients as $slot => $client) {\n if (!in_array($client->socket, $read))\n continue;\n\n $input = socket_read($client->socket, $this->max_read);\n if ($input === null) {\n $this->disconnect($slot);\n continue;\n }\n\n $this->command($input, array($client->write, $printer));\n }\n }",
"protected function main()\r\n {\r\n // save incomming data and chop the leading white space\r\n $this->_raw = chop( fgets( $this->_conn ) );\r\n \r\n $this->debug( '<- ' . $this->_raw );\r\n \r\n $data = explode( ' ', $this->_raw );\r\n \r\n // first make sure we are connected and registered on the server\r\n if ( ! $this->_loggedOn )\r\n {\r\n // if not logged on, wait with processing events till we can login\r\n if ( strstr( $this->_raw, \"Found your hostname\" ) )\r\n {\r\n // save the servername so we can use it to identify server notices\r\n $this->_serverName = substr( $data[0], 1 );\r\n \r\n // start login\r\n $this->login();\r\n }\r\n }\r\n else\r\n {\r\n $this->observe( $data );\r\n }\r\n \r\n // if we are still connecting continue monitoring the data\r\n if ( ! feof( $this->_conn ) )\r\n {\r\n $this->main();\r\n }\r\n else\r\n {\r\n // we are disconnected so remove the socket\r\n unset( $this->_conn );\r\n \r\n // reconnect if required\r\n if ( $this->_autoReconnect )\r\n {\r\n $this->reconnect();\r\n }\r\n else\r\n {\r\n $this->log( \"Disconnected from server.\" );\r\n \r\n exit;\r\n }\r\n }\r\n }",
"function server_loop($address, $port)\n{\n GLOBAL $__server_listening;\n\n if(($sock = socket_create(AF_INET, SOCK_STREAM, 0)) < 0)\n {\n echo \"failed to create socket: \".socket_strerror($sock).\"\\n\";\n exit();\n }\n\n if(($ret = socket_bind($sock, $address, $port)) < 0)\n {\n echo \"failed to bind socket: \".socket_strerror($ret).\"\\n\";\n exit();\n }\n\n if( ( $ret = socket_listen( $sock, 0 ) ) < 0 )\n {\n echo \"failed to listen to socket: \".socket_strerror($ret).\"\\n\";\n exit();\n }\n\n socket_set_nonblock($sock);\n \n echo \"waiting for clients to connect\\n\";\n\n while ($__server_listening)\n {\n $connection = @socket_accept($sock);\n if ($connection === false)\n {\n usleep(100);\n }elseif ($connection > 0)\n {\n handle_client($sock, $connection);\n }else\n {\n echo \"error: \".socket_strerror($connection);\n die;\n }\n }\n}",
"public function listen() :void {\n\n echo \"Starting websocket server on... \" . $this->address . \":\" . $this->port;\n \n socket_listen($this->server);\n socket_set_nonblock($this->server);\n $this->clients[] = new WebSocket($this->server);\n\n do {\n\n $read = array_map(function($ws) {return $ws->socket;}, $this->clients);\n $write = null; \n $except = null;\n\n $ready = socket_select($read, $write, $except, 0);\n if ($ready === false) {\n if ($this->onError !== null) {\n $callback = $this->onError;\n $callback(\"[\".socket_last_error().\"]\".\" \".socket_strerror(socket_last_error()));\n }\n\n return;\n }\n\n if ($ready < 1) continue;\n\n // check if there is a client trying to connect.\n if (in_array($this->server, $read)) {\n if (($client = socket_accept($this->server)) !== false) {\n\n // send websocket handshake headers.\n if (!$this->sendHandshakeHeaders($client)) {\n continue;\n }\n\n // add the new client to the $clients array.\n $ws = new WebSocket($client);\n $this->clients[] = $ws;\n\n // call \"connection\" event handler for each new client.\n if ($this->onConnect !== null) {\n $callback = $this->onConnect;\n $callback($ws);\n }\n\n // remove the listening socket from the clients-with-data array.\n $key = array_search($this->server, $read);\n unset($read[$key]);\n }\n }\n\n foreach ($read as $key => $client) {\n\n $buffer = \"\";\n $bytes = @socket_recv($client, $buffer, 2048, 0);\n\n // check if the client is disconnected.\n if ($bytes === false) {\n\n // remove client from $clients array\n // and call disconnect event handler.\n unset($this->clients[$key]);\n if ($this->onDisconnect !== null) {\n $callback = $this->onDisconnect;\n $callback();\n }\n\n continue;\n }\n\n $ws = $this->clients[$key];\n $callback = $ws->onMessage;\n if ($callback !== null) {\n $callback($ws, $this->unmask($buffer));\n }\n }\n } while (true);\n socket_close($this->server);\n }",
"public function run() \n\t{\n\t\twhile( true ) \n\t\t{\n\t\t\tif ( empty($this->sockets) )\n\t\t\t\t$this->sockets['m'] = $this->master;\n\n\t\t\t$read = $this->sockets;\n\t\t\t$write = $except = null;\n\n\t\t\t$this->_tick();\n\t\t\t$this->tick();\n\n\t\t\t@socket_select($read, $write, $except, 1);\n\n\t\t\tforeach ( $read as $socket ) \n\t\t\t{\n\t\t\t\tif ( $socket == $this->master ) \n\t\t\t\t{\n\t\t\t\t\t$client = socket_accept($socket);\n\n\t\t\t\t\tif ( $client < 0 ) \n\t\t\t\t\t{\n\t\t\t\t\t\t$this->stderr(\"Failed: socket_accept()\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} \n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\t$this->connect($client);\n\t\t\t\t\t\t$this->stdout(\"Client connected. \" . $client);\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t$numBytes = @socket_recv($socket, $buffer, $this->maxBufferSize, 0);\n\n\t\t\t\t\tif ( $numBytes === false ) \n\t\t\t\t\t{\n\t\t\t\t\t\t$sockErrNo = socket_last_error($socket);\n\n\t\t\t\t\t\tswitch ($sockErrNo)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase 102: // ENETRESET-- Network dropped connection because of reset\n\t\t\t\t\t\t\tcase 103: // ECONNABORTED -- Software caused connection abort\n\t\t\t\t\t\t\tcase 104: // ECONNRESET -- Connection reset by peer\n\t\t\t\t\t\t\tcase 108: // ESHUTDOWN-- Cannot send after transport endpoint shutdown -- probably more of an error on our part, if we're trying to write after the socket is closed.Probably not a critical error, though.\n\t\t\t\t\t\t\tcase 110: // ETIMEDOUT-- Connection timed out\n\t\t\t\t\t\t\tcase 111: // ECONNREFUSED -- Connection refused -- We shouldn't see this one, since we're listening... Still not a critical error.\n\t\t\t\t\t\t\tcase 112: // EHOSTDOWN-- Host is down -- Again, we shouldn't see this, and again, not critical because it's just one connection and we still want to listen to/for others.\n\t\t\t\t\t\t\tcase 113: // EHOSTUNREACH -- No route to host\n\t\t\t\t\t\t\tcase 121: // EREMOTEIO-- Rempte I/O error -- Their hard drive just blew up.\n\t\t\t\t\t\t\tcase 125: // ECANCELED-- Operation canceled\n\t\t\t\t\t\t\t\t$this->stderr(\"Unusual disconnect on socket \" . $socket);\n\t\t\t\t\t\t\t\t$this->disconnect($socket, true, $sockErrNo); // disconnect before clearing error, in case someone with their own implementation wants to check for error conditions on the socket.\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t$this->stderr('Socket error: ' . socket_strerror($sockErrNo));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\telseif ( $numBytes == 0 ) \n\t\t\t\t\t{\n\t\t\t\t\t\t$this->disconnect($socket);\n\t\t\t\t\t\t$this->stderr(\"Client disconnected. TCP connection lost: \" . $socket);\n\t\t\t\t\t} \n\t\t\t\t\telse \n\t\t\t\t\t{\n\t\t\t\t\t\t$user = $this->getUserBySocket($socket);\n\n\t\t\t\t\t\tif ( !$user->handshake ) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$tmp = str_replace(\"\\r\", '', $buffer);\n\n\t\t\t\t\t\t\tif (strpos($tmp, \"\\n\\n\") === false ) \n\t\t\t\t\t\t\t\tcontinue; // If the client has not finished sending the header, then wait before sending our upgrade response.\n\n\t\t\t\t\t\t\t$this->doHandshake($user, $buffer);\n\t\t\t\t\t\t} \n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//split packet into frame and send it to deframe\n\t\t\t\t\t\t\t$this->split_packet($numBytes, $buffer, $user);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function listen()\n {\n $this->open();\n $callback = function(AMQPMessage $message) {\n $job = $this->unserialize($message->body);\n if ($this->getQueue()->run($job)) {\n $message->delivery_info['channel']->basic_ack($message->delivery_info['delivery_tag']);\n }\n };\n $this->_channel->basic_qos(null, 1, null);\n $this->_channel->basic_consume($this->queueName, '', false, false, false, false, $callback);\n while(count($this->_channel->callbacks)) {\n $this->_channel->wait();\n }\n }",
"private function controller() {\n\n\t\t# While connected, manage the input\n\t\twhile(!feof($this->socket)) {\n\t\t\t# Read inbound connection into $this->inbound\n\t\t\t$this->getTransmission();\n\n\t\t\t# Detect MOTD (message number 376 or 422)\n\t\t\tif(strpos($this->inbound, $this->config['server'].\" 376\") || strpos($this->inbound, $this->config['server'].\" 422\")) {\n\t\t\t\t# Join channel then...\n\t\t\t\t$this->sendCommand(\"JOIN \".$this->config['destinationChannel']);\n\t\t\t\t$this->log(\"[INIT]: Joined destination channel\");\n }\n\t\t\t# If successfully joined the channel, mark bot as ready (names list message id 353)\n\t\t\tif(strpos($this->inbound, $this->config['server'].\" 353\")) {\n\t\t\t\t$this->ready = true;\n\t\t\t\t$this->log(\"[INIT]: Ready for commands!\");\n }\n\n\t\t\tif($this->ready) {\n\t\t\t\t# Parse the inbound message and scan for a command\n\t\t\t\t$this->parseMessage();\n\n # See if this command can be found in the command list\n # Command list is established by the loaded modules\n\t\t\t\tif(strlen($this->lastMessage['command']) > 0) {\n\t\t\t\t\tforeach($this->modules as $moduleName => $moduleObj) {\n\t\t\t\t\t\tif($moduleObj->findCommand($this->lastMessage['command'])) {\n # Launch command\n\t\t\t\t\t\t\t$this->log(\" -> Found command '\".$this->lastMessage['command'].\"' in module '\".$moduleName.\"' called by user: '\".$this->lastMessage['nickname'].\"'\");\n\t\t\t\t\t\t\t$reply = $this->modules[$moduleName]->launch($this->lastMessage['command'], $this->lastMessage);\n\t\t\t\t\t\t\tif(strlen($reply) > 0) {\n\t\t\t\t\t\t\t\t$this->sendMessage($reply);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n # If not, scan chatter for relevant calls to the bot\n if(strlen($this->lastMessage['chatter']) > 0) {\n foreach($this->modules as $moduleName => $moduleObj) {\n if($trigger = $moduleObj->findTrigger($this->lastMessage['chatter'])) {\n # Found a trigger for a command, fire it off\n # First, strip out chatter into command and args\n $triggered_command = $moduleObj->getCommandByTrigger($trigger);\n $this->lastMessage['command'] = $triggered_command;\n $chatter = $this->lastMessage['chatter'];\n $this->lastMessage['chatter'] = '';\n $this->lastMessage['args'] = rtrim(ltrim($chatter,$trigger),\"\\n\\r\");\n # Launch command\n $this->log(\" -> Found command '\".$this->lastMessage['command'].\"' in module '\".$moduleName.\"' by trigger '\".$trigger.\"' called by user: '\".$this->lastMessage['nickname'].\"'\");\n $reply = $this->modules[$moduleName]->launch($this->lastMessage['command'], $this->lastMessage);\n if(strlen($reply) > 0) {\n $this->sendMessage($reply);\n }\n }\n }\n }\n\t\t\t}\n\n\t\t\t# If server has sent PING command, handle\n if(substr($this->inbound, 0, 6) == \"PING :\") {\n\t\t\t\t# Reply with PONG for keepalive\n\t\t\t\t$this->sendCommand(\"PONG :\".substr($this->inbound, 6));\n }\n \n $this->lastMessage = null;\n $this->inbound = null;\n\t\t}\n\t}",
"function handleEvent( &$socket ) {\n\t$conn = socket_accept( $socket );\n\t$req = readHttpReq( $conn );\n\t$uri = parseGetReq( $req );\n\t$query = array();\n\n\t$status = ( $req && $uri )\n\t\t? '204 No Content'\n\t\t: '501 Not Implemented';\n\n\tif ( array_key_exists( 'query', $uri ) ) {\n\t\tparse_str( $uri[ 'query' ], $query );\n\t}\n\n\tsendHttpResp( $conn, $status );\n\tconsoleLog( \"$req [\\033[1;33m$status\\033[0m]\" );\n\n\treturn $query;\n}",
"function server_loop($address, $port)\n{\n GLOBAL $fh;\n GLOBAL $__server_listening;\n\t\n\t//printLog($fh, \"server_looping...\");\n\n if(($sock = socket_create(AF_INET, SOCK_STREAM, 0)) < 0)\n {\n\t\t//printLog($fh, \"failed to create socket: \".socket_strerror($sock));\n exit();\n }\n\n\tif(($ret = socket_bind($sock, $address, $port)) < 0)\n\t{\n\t\t//printLog($fh, \"failed to bind socket: \".socket_strerror($ret));\n\t\texit();\n\t}\n\n\tif( ( $ret = socket_listen( $sock, 0 ) ) < 0 )\n\t{\n\t\t//printLog($fh, \"failed to listen to socket: \".socket_strerror($ret));\n\t\texit();\n\t}\n\n\tsocket_set_nonblock($sock);\n\n\t//printLog($fh, \"waiting for clients to connect...\");\n\n\twhile ($__server_listening)\n\t{\n\t\t$connection = @socket_accept($sock);\n\t\tif ($connection === false)\n\t\t{\n\t\t\tusleep(100);\n\t\t} elseif ($connection > 0) {\n\t\t\thandle_client($sock, $connection);\n\t\t} else {\n\t\t\t//printLog($fh, \"error: \".socket_strerror($connection));\n\t\t\tdie;\n\t\t}\n\t}\n}",
"public function onReadAvailable()\n\t{\n\t\t$s = @fread($this->stream, 0xffff);\n\n\t\tif ($s === false || @feof($this->stream)) {\n\t\t\t$this->close();\n\n\t\t} else {\n\t\t\t$this->readBuffer .= $s;\n\n\t\t\twhile (($l = strlen($this->readBuffer)) >= 8) {\n\t\t\t\t$frame = unpack(\"Cversion/Ctype/nrequestId/ncontentLength/CpaddingLength\", $this->readBuffer);\n\t\t\t\t$type = $frame[\"type\"];\n\t\t\t\t$requestId = $frame[\"requestId\"];\n\t\t\t\t$contentLength = $frame[\"contentLength\"];\n\t\t\t\t$paddingLength = $frame[\"paddingLength\"];\n\n\t\t\t\tif ($l < 8 + $contentLength + $paddingLength) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t$this->contentBuffer = substr($this->readBuffer, 8, $contentLength);\n\t\t\t\t$this->readBuffer = substr($this->readBuffer, 8 + $contentLength + $paddingLength) ?: \"\";\n\n\t\t\t\tif ($frame[\"version\"] !== 1) {\n\t\t\t\t\t$this->handler->onError(\n\t\t\t\t\t\tnew ConnectionException(\"Protocol version mismatch. Expected 1, got {$frame[\"version\"]}.\"),\n\t\t\t\t\t\t$this\n\t\t\t\t\t);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif ($type === Constants::TYPE_PARAMS) {\n\t\t\t\t\t$this->onParamsFrame($requestId);\n\n\t\t\t\t} elseif ($type === Constants::TYPE_STDIN) {\n\t\t\t\t\t$this->onStdinFrame($requestId);\n\n\t\t\t\t} elseif ($type === Constants::TYPE_BEGIN_REQUEST) {\n\t\t\t\t\t$this->onBeginRequestFrame($requestId);\n\n\t\t\t\t} elseif ($type === Constants::TYPE_ABORT_REQUEST) {\n\t\t\t\t\t$this->onAbortRequestFrame($requestId);\n\n\t\t\t\t} elseif ($type === Constants::TYPE_GET_VALUES) {\n\t\t\t\t\tif ($requestId !== Constants::NULL_REQUEST_ID) {\n\t\t\t\t\t\t$this->closeWithError(\"Received frame GET-VALUES on non-null-request id channel.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->onGetValuesFrame();\n\t\t\t\t\t}\n\n\t\t\t\t} elseif ($type === Constants::TYPE_END_REQUEST) {\n\t\t\t\t\t$this->closeWithError(\"Received unexpected frame: END-REQUEST.\");\n\n\t\t\t\t} elseif ($type === Constants::TYPE_STDOUT) {\n\t\t\t\t\t$this->closeWithError(\"Received unexpected frame: STDOUT.\");\n\n\t\t\t\t} elseif ($type === Constants::TYPE_STDERR) {\n\t\t\t\t\t$this->closeWithError(\"Received unexpected frame: STDERR.\");\n\n\t\t\t\t} elseif ($type === Constants::TYPE_DATA) {\n\t\t\t\t\t$this->onDataFrame($requestId);\n\n\t\t\t\t} elseif ($type === Constants::TYPE_GET_VALUES_RESULT) {\n\t\t\t\t\t$this->closeWithError(\"Received unexpected frame: GET-VALUES-RESULT.\");\n\n\t\t\t\t} elseif ($type === Constants::TYPE_UNKNOWN_TYPE) {\n\t\t\t\t\t$this->contentBuffer = \"\";\n\n\t\t\t\t} else {\n\t\t\t\t\t$this->closeWithError(\"Unhandled request type #{$type}, closing connection.\");\n\t\t\t\t}\n\n\t\t\t\tif (!$this->closed && !empty($this->contentBuffer)) {\n\t\t\t\t\t$this->closeWithError(\"Content buffer hasn't been fully consumed.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function receiveData()\n {\n while (false !== ($data = socket_read($this->socket, 512))) {\n if ($data === '') {\n $this->reactor->removeReader($this->socket);\n \n call_user_func($this->callback, Response::fromString($this->buffer));\n return;\n }\n \n $this->buffer .= $data;\n }\n }",
"protected function run()\n {\n while (true)\n {\n $changedSockets = $this->sockets;\n\n $write = $except = $tv = $tvu = null;\n\n $result = socket_select($changedSockets, $write, $except, $tv, $tvu);\n\n if ($result === false)\n {\n socket_close($this->socket);\n\n $error = static::getLastError($this->socket);\n\n throw new Exception('Checking for changed sockets failed: ' . $error->message . ' [' . $error->code . ']');\n }\n\n foreach ($changedSockets as $socket)\n {\n if ($socket == $this->socket)\n {\n $newSocket = socket_accept($this->socket);\n\n if ($newSocket !== false)\n {\n $this->connectClient($newSocket);\n }\n else\n {\n $error = static::getLastError($this->socket);\n\n trigger_error('Failed to accept incoming client: ' . $error->message . ' [' . $error->code . ']', E_USER_WARNING);\n }\n }\n else\n {\n $client = $this->getClientBySocket($socket);\n\n if (!isset($client))\n {\n trigger_error('Failed to match given socket to client', E_USER_WARNING);\n\n socket_close($socket);\n\n continue;\n }\n\n $buffer = '';\n $message = '';\n\n $bytes = @socket_recv($socket, $buffer, 4096, 0);\n\n if ($bytes === false)\n {\n $error = static::getLastError($this->socket);\n\n trigger_error('Failed to receive data from client #' . $client->id . ': ' . $error->message . ' [' . $error->code . ']', E_USER_WARNING);\n\n $this->disconnectClient($client->socket);\n\n continue;\n }\n\n $len = ord($buffer[1]) & 127;\n\n $masks = null;\n $data = null;\n\n if ($len === 126)\n {\n $masks = substr($buffer, 4, 4);\n $data = substr($buffer, 8);\n }\n else if ($len === 127)\n {\n $masks = substr($buffer, 10, 4);\n $data = substr($buffer, 14);\n }\n else\n {\n $masks = substr($buffer, 2, 4);\n $data = substr($buffer, 6);\n }\n\n for ($index = 0; $index < strlen($data); $index++)\n {\n $message .= $data[$index] ^ $masks[$index % 4];\n }\n\n if ($bytes == 0)\n {\n $this->disconnectClient($socket);\n }\n else\n {\n if ($client->state == WebSocketClient::STATE_OPEN)\n {\n $client->lastRecieveTime = time();\n\n $this->debug('Received from socket #' . $client->id . ': ' . $message);\n\n $this->onMessageRecieved($client, $message);\n }\n else if ($client->state == WebSocketClient::STATE_CONNECTING)\n {\n $client->performHandshake($buffer);\n }\n }\n }\n }\n }\n }",
"public function handle()\n {\n\t //创建server\n $server = new \\swoole_websocket_server(\"0.0.0.0\" , 9501);\n\n\t $server->on(\"open\" , function(Server $server , $request){\n//\t\t $this->info($request->fd . \"连接成功\");\n\t\t echo $request->fd . \"连接成功\";\n\t });\n\n\t $server->on(\"message\" , function(Server $server , $request){\n\t\t $msg = $request->data;\n\n\t\t foreach($server->connections as $fd){\n\t\t\t $server->push($fd , $msg);\n\t\t }\n\t });\n\n\t $server->on(\"close\" , function(Server $server , $request){\n//\t\t $this->info($request->fd . \"断开连接\");\n\t\t echo $request->fd . \"断开连接\";\n\t });\n\n\t $server->start();\n }",
"public function receive();",
"public function startListening();",
"public function listen() {\n $this->source->listen($this->id);\n }",
"public function listen(): void\n {\n $this->logger->debug('Start listening to the queue.');\n $handler = function (MessageInterface $message) {\n $this->worker->process($message, $this);\n };\n\n $this->driver->subscribe($handler);\n $this->logger->debug('Finish listening to the queue.');\n }",
"public function processRead()\n {\n if (feof($this->socket)) {\n $this->log('Client closed remote socket', Loggable::LEVEL_WARN);\n $this->disconnect();\n } else if ($this->securityMethod && !$this->cryptoComplete) {\n $this->log('Continuing crypto negotiation');\n\n $success = stream_socket_enable_crypto($this->socket, true, $this->securityMethod);\n if ($success === false) {\n $this->log('stream_socket_enable_crypto() failed: ' . $this->getLastSocketError(), Loggable::LEVEL_WARN);\n $this->trigger('error', $this, 'stream_socket_enable_crypto() failed: ' . $this->getLastSocketError());\n\n $this->disconnect();\n } else if ($success) {\n $this->log('Crypto negotiation complete');\n $this->cryptoComplete = true;\n\n $this->trigger('cryptoenabled', $this);\n }\n } else {\n $this->readDataIntoBuffer();\n\n if (!$this->handshake->isComplete()) {\n $this->shakeHands();\n } else {\n // keep processing until there are no complete frames left in the buffer\n while ($this->messageDecoder->processData($this->buffer));\n }\n }\n }",
"public function run()\n {\n $this->openWorker();\n while (($payload = $this->pop(0)) !== null) {\n list($id, $message) = explode(':', $payload, 2);\n $this->handleMessage($message);\n }\n $this->closeWorker();\n }",
"public function run()\n {\n while(true)\n {\n $changed_sockets = $this->allsockets;\n $write = null;\n $except = null;\n @stream_select($changed_sockets, $write, $except, 0, 5000); \n foreach($changed_sockets as $socket)\n {\n if($socket == $this->master)\n {\n if(($ressource = stream_socket_accept($this->master)) === false)\n {\n $this->log('Socket error: ' . socket_strerror(socket_last_error($ressource)));\n continue;\n }\n else\n {\n $client = $this->createConnection($ressource);\n $this->clients[(int)$ressource] = $client;\n $this->allsockets[] = $ressource;\n \n if(count($this->clients) > $this->_maxClients)\n {\n $this->log('Attention: Client Limit Reached!');\n $client->onDisconnect();\n if($this->getApplication('status') !== false)\n {\n $this->getApplication('status')->statusMsg('Attention: Client Limit Reached!', 'warning');\n }\n continue;\n }\n \n $this->_addIpToStorage($client->getClientIp());\n if($this->_checkMaxConnectionsPerIp($client->getClientIp()) === false)\n {\n $this->log('Connection/Ip limit for ip ' . $client->getClientIp() . ' was reached!');\n $client->onDisconnect();\n if($this->getApplication('status') !== false)\n {\n $this->getApplication('status')->statusMsg('Connection/Ip limit for ip ' . $client->getClientIp() . ' was reached!', 'warning');\n }\n continue;\n } \n }\n }\n else\n { \n $client = $this->clients[(int)$socket];\n if(!is_object($client))\n {\n unset($this->clients[(int)$socket]);\n continue;\n }\n $data = $this->readBuffer($socket); \n $bytes = strlen($data);\n \n if($bytes === 0)\n {\n $client->onDisconnect(); \n continue;\n }\n elseif($data === false)\n {\n $this->removeClientOnError($client);\n continue;\n }\n elseif($client->waitingForData === false && $this->_checkRequestLimit($client->getClientId()) === false)\n {\n $client->onDisconnect();\n }\n else\n { \n $client->onData($data);\n }\n }\n }\n }\n }",
"public function listen() {\n\t\t// Checks the user agents match\n\t\tif ( $this->user_agent == $this->request_user_agent ) {\n\t\t\t// Determine if a key request has been made\n\t\t\tif ( isset( $_GET['key'] ) ) {\n\t\t\t\t$this->download_update();\n\t\t\t} else {\n\t\t\t\t// Determine the action requested\n\t\t\t\t$action = filter_input( INPUT_POST, 'action', FILTER_SANITIZE_STRING );\n\n\t\t\t\t// If that method exists, call it\n\t\t\t\tif ( method_exists( $this, $action ) )\n\t\t\t\t\t$this->{$action}();\n\t\t\t}\n\t\t}\n\t}",
"abstract public function receive();",
"function run() {\n while ($this->running) {\n $read = $this->readStreams;\n $write = $this->writeStreams;\n $except = null;\n\n if ($read || $write) {\n @stream_select($read, $write, $except, 0, 100);\n\n foreach ($read as $stream) {\n $this->readHandlers[(int) $stream]($stream);\n }\n\n foreach ($write as $stream) {\n $this->writeHandlers[(int) $stream]($stream);\n }\n } else {\n usleep(100);\n }\n }\n }",
"function process_message($socket, $data){\r\n\tif($socket->process == true){\r\n\t\toutput($data);\r\n\t}\r\n}",
"protected function handleMessage($data)\n {\n // check whether the message was for us\n if (strpos($data, self::DISCOVERY_FROM_HEADER) !== false)\n {\n // if it was, pull out the sending IP so we know where to respond to\n preg_match(\"/\" . self::DISCOVERY_FROM_HEADER . \": (\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}):(\\d+)/\", $data, $matches);\n\n if (count($matches) > 1)\n {\n $callerIp = $matches[1];\n $callerPort = $matches[2];\n }\n\n // connect to the sender, telling them we exist.\n $replySocket = new HumptySimpleSocket();\n\n try\n {\n // connect to the broadcast ip and port\n $replySocket->connect(\n $callerIp,\n $callerPort\n );\n\n // compose the discovery message\n $message = HumptyDiscoveryServer::DISCOVERY_RESPONSE_HEADER . ': ' .\n $replySocket->getIp() . ':' . $this->config->getSetting('server-port');\n\n $this->logger->log(\"Discovery server sending response to: $callerIp:$callerPort\");\n\n // try to write the discovery message to the socket\n $replySocket->write($message);\n\n $replySocket->close();\n }\n catch (HumptySocketException $e)\n {\n $this->logger->log($e->getMessage());\n }\n }\n }",
"public abstract function receive();",
"public static function tcp_sender(): void\n {\n //Set TCP server host address and port\n sock::$host = self::host;\n sock::$port = self::port;\n\n //Set Socket type to 'tcp:sender'\n sock::$type = 'tcp:sender';\n\n //Create Socket (sender)\n $ok = sock::create();\n\n if (!$ok) exit('TCP Sender creation failed!');\n\n do {\n $data = [];\n\n echo 'Please input your commands, we will send it to others: ';\n\n $msg = fgets(STDIN);\n\n $data[] = ['msg' => $msg];\n\n //Send data to Server\n $result = sock::write($data);\n\n echo PHP_EOL . '============================================' . PHP_EOL;\n echo $result[0] ? 'Message: \"' . trim($msg) . '\" sent successfully!' : 'Send failed!';\n echo PHP_EOL . '============================================' . PHP_EOL;\n\n //Listen to TCP port\n sock::listen();\n\n //Read data from server\n $msg = sock::read();\n\n $received = current($msg)['msg'];\n\n $list = false !== strpos($received, PHP_EOL) ? explode(PHP_EOL, $received) : [$received];\n\n $list = array_filter($list);\n\n if (empty($list)) continue;\n\n if (1 < count($list) || 'OK! ' !== substr($list[0], 0, 4)) {\n echo PHP_EOL . 'Wow, you have messages unread!' . PHP_EOL;\n echo PHP_EOL . '↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓' . PHP_EOL . PHP_EOL;\n }\n\n foreach ($list as $cmd) {\n $cmd = trim($cmd);\n\n if ('OK! ' === substr($cmd, 0, 4)) {\n echo PHP_EOL . $cmd . PHP_EOL . PHP_EOL;\n continue;\n }\n\n echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' . PHP_EOL;\n echo $cmd . PHP_EOL;\n echo '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!' . PHP_EOL . PHP_EOL;\n echo '!!!Do NOT execute the command that you don\\'t know!!!' . PHP_EOL;\n echo 'Execute the messages? (y/n): ';\n echo PHP_EOL . PHP_EOL;\n\n $input = fgets(STDIN);\n\n if ('y' === strtolower(trim($input))) {\n exec($cmd, $out);\n echo 'Executed. The command shows:' . PHP_EOL;\n echo '============================================' . PHP_EOL;\n var_dump($out);\n echo '============================================' . PHP_EOL . PHP_EOL . PHP_EOL . PHP_EOL;\n }\n }\n } while (true);\n }",
"protected function handleRead($read_sock)\n\t{\n\t\t// socket_read while show errors when the client is disconnected, so silence the error messages\n\t\t$data = @socket_read($read_sock, 1024, PHP_NORMAL_READ);\n\n\t\t// check if the client is disconnected\n\t\tif ($data === false)\n\t\t{\n\t\t\t// remove client for $this->clients array\n\t\t\t$key = array_search($read_sock, $this->clients);\n\t\t\tunset($this->clients[$key]);\n\t\t\techo \"client disconnected.\\n\";\n\t\t\t// continue to the next client to read from, if any\n\t\t\tcontinue;\n\t\t}\n\n\t\t// trim off the trailing/beginning white spaces\n\t\t$data = trim($data);\n\n\t\t// check if there is any data after trimming off the spaces\n\t\tif (!empty($data))\n\t\t{\t\n\t\t\t// send this to all the clients in the $this->clients array (except the first one, which is a listening socket)\n\t\t\tforeach ($this->clients as $send_sock)\n\t\t\t{\n\t\t\t\t// if its the listening sock or the client that we got the message from, go to the next one in the list\n\t\t\t\tif ($send_sock == $this->sock || $send_sock == $read_sock)\n\t\t\t\t\tcontinue;\n\n\t\t\t\t// write the message to the client -- add a newline character to the end of the message\n\t\t\t\tsocket_write($send_sock, $data.\"\\n\");\n\t\t\t}\n\t\t}\n\t}",
"abstract function receive();",
"public function listen(): static\n {\n $this->breakLoop = false;\n $this->listening = true;\n\n $baseTime = microtime(true);\n $times = [];\n $lastCycle = $baseTime;\n $this->generateMaps = false;\n $this->generateMaps();\n\n $this->startSignalHandlers();\n $this->breakLoop = false;\n\n while (!$this->breakLoop) {\n $socketCount = count($this->sockets);\n $streamCount = count($this->streams);\n $signalCount = count($this->signals);\n $timerCount = count($this->timers);\n\n if ($this->generateMaps) {\n $this->generateMaps();\n }\n\n $hasHandler = false;\n\n\n // Timers\n if (!empty($this->timers)) {\n $hasHandler = true;\n $time = microtime(true);\n\n foreach ($this->timers as $id => $binding) {\n if ($binding->frozen) {\n continue;\n }\n\n $dTime = $times[$id] ?? $baseTime;\n $diff = $time - $dTime;\n\n if ($diff > $binding->duration) {\n $times[$id] = $time;\n $binding->trigger(null);\n }\n }\n }\n\n\n\n // Signals\n if (!empty($this->signals) && $this->hasPcntl) {\n $hasHandler = true;\n pcntl_signal_dispatch();\n }\n\n // Sockets\n if (!empty($this->socketMap)) {\n $hasHandler = true;\n $e = null;\n\n /** @var array<int, resource|Socket> $read */\n $read = $this->socketMap[self::RESOURCE][self::READ];\n /** @var array<int, resource|Socket> $write */\n $write = $this->socketMap[self::RESOURCE][self::WRITE];\n\n try {\n /* @phpstan-ignore-next-line */\n $res = socket_select($read, $write, $e, 0, 10000);\n } catch (Throwable $e) {\n $res = false;\n }\n\n if ($res === false) {\n // TODO: deal with error\n } elseif ($res > 0) {\n foreach ($read as $resourceId => $socket) {\n foreach (Coercion::toArray(\n $this->socketMap[self::HANDLER][self::READ][$resourceId]\n ) as $id => $binding) {\n /** @var Binding $binding */\n $binding->trigger($socket);\n }\n }\n\n foreach ($write as $resourceId => $socket) {\n foreach (Coercion::toArray(\n $this->socketMap[self::HANDLER][self::WRITE][$resourceId]\n ) as $id => $binding) {\n /** @var Binding $binding */\n $binding->trigger($socket);\n }\n }\n }\n\n // TODO: add timeout handler\n }\n\n // Streams\n if (!empty($this->streamMap)) {\n $hasHandler = true;\n $e = null;\n\n /** @var array<int, resource> $read */\n $read = $this->streamMap[self::RESOURCE][self::READ];\n /** @var array<int, resource> $write */\n $write = $this->streamMap[self::RESOURCE][self::WRITE];\n\n try {\n $res = stream_select($read, $write, $e, 0, 10000);\n } catch (Throwable $e) {\n $res = false;\n }\n\n\n if ($res === false) {\n // TODO: deal with error\n } elseif ($res > 0) {\n foreach ($read as $resourceId => $stream) {\n foreach (Coercion::toArray(\n $this->streamMap[self::HANDLER][self::READ][$resourceId]\n ) as $id => $binding) {\n /** @var Binding $binding */\n $binding->trigger($stream);\n }\n }\n\n foreach ($write as $resourceId => $stream) {\n foreach (Coercion::toArray(\n $this->streamMap[self::HANDLER][self::WRITE][$resourceId]\n ) as $id => $binding) {\n /** @var Binding $binding */\n $binding->trigger($stream);\n }\n }\n }\n\n // TODO: add timeout handler\n }\n\n\n // Tick\n if (\n !$this->breakLoop &&\n $this->tickHandler\n ) {\n if (false === ($this->tickHandler)($this)) {\n $this->breakLoop = true;\n }\n }\n\n // Cycle\n if (\n !$this->breakLoop &&\n $this->cycleHandler\n ) {\n $time = microtime(true);\n\n if ($time - $lastCycle > 1) {\n $lastCycle = $time;\n\n if (false === ($this->cycleHandler)(++$this->cycles, $this)) {\n $this->breakLoop = true;\n }\n }\n }\n\n\n if (!$hasHandler) {\n $this->breakLoop = true;\n } elseif (\n $socketCount !== count($this->sockets) ||\n $streamCount !== count($this->streams) ||\n $signalCount !== count($this->signals) ||\n $timerCount !== count($this->timers)\n ) {\n $this->generateMaps = true;\n }\n\n usleep(30000);\n }\n\n $this->breakLoop = false;\n $this->listening = false;\n\n $this->stopSignalHandlers();\n\n return $this;\n }",
"protected static function main()\n\t{\n\t\t// Create a TCP/SSL server socket context\n\t\t$context = MHTTPD::getContext();\n\t\t\n\t\t// Start the listener\n\t\tMHTTPD::createListener($context);\n\n\t\t// Initialize some handy vars\n\t\t$timeout = ini_get('default_socket_timeout');\n\t\t$maxClients = MHTTPD::$config['Server']['max_clients'];\n\t\t$maxHeaderBlockSize = MHTTPD_Message::getMaxHeaderBlockSize();\n\t\tif (MHTTPD::$debug) {\n\t\t\t$listener_name = stream_socket_get_name(MHTTPD::$listener, false);\n\t\t}\n\t\t\n\t\t// Start the browser\n\t\tMHTTPD::launchBrowser();\n\t\t\n\t\t// The main loop\n\t\twhile (MHTTPD::$running) \t{\t\n\t\t\n\t\t\t// Build a list of active streams to monitor\n\t\t\t$read = array('listener' => MHTTPD::$listener);\n\t\t\tforeach (MHTTPD::$clients as $i=>$client) {\n\t\t\t\t\t\t\t\n\t\t\t\t// Add any client sockets\n\t\t\t\tif ($csock = $client->getSocket()) {\n\t\t\t\t\t$read[\"client_$i\"] = $csock;\n\t\t\t\t\t\n\t\t\t\t\t// Add any client FCGI sockets\n\t\t\t\t\tif ($cfsock = $client->getFCGISocket()) {\n\t\t\t\t\t\t$read[\"clfcgi_$i\"] = $cfsock;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// Add any client file streams\n\t\t\t\t\tif ($client->isStreaming()) {\n\t\t\t\t\t\t$read[\"clstrm_$i\"] = $client->getStream();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Add any aborted FCGI requests\n\t\t\tforeach (MHTTPD::$aborted as $aID=>$ab) {\n\t\t\t\t$read['aborted_'.$aID.'_'.$ab['client'].'_'.$ab['pid']] = $ab['socket'];\n\t\t\t}\n\n\t\t\tif (MHTTPD::$debug) {\n\t\t\t\tcecho(\"FCGI scoreboard:\\n\"); cprint_r(MFCGI::getScoreboard(true)); cecho(\"\\n\");\n\t\t\t\tcecho(\"Pre-select:\\n\"); cprint_r($read);\n\t\t\t\tcecho(chrule().\"\\n>>>> Waiting for server activity ($listener_name)\\n\".chrule().\"\\n\\n\");\n\t\t\t}\n\n\t\t\t// Wait for any new activity\n\t\t\tif (!($ready = @stream_select($read, $write=null, $error=null, null))) {\n\t\t\t\ttrigger_error(\"Could not select streams\", E_USER_WARNING);\n\t\t\t}\n\t\t\t\n\t\t\tif (MHTTPD::$debug) {cecho(\"Post-select:\\n\"); cprint_r($read);}\n\t\t\t\t\t\t\n\t\t\t// Check if the listener has a new client connection\n\t\t\tif (in_array(MHTTPD::$listener, $read)) {\n\t\t\t\t\n\t\t\t\t// Search for a free slot to add the new client\n\t\t\t\tfor ($i = 1; $i <= $maxClients; $i++) {\n\t\t\t\t\t\n\t\t\t\t\tif (!isset(MHTTPD::$clients[$i])) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// This slot is free, so add the new client connection\n\t\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"New client ($i): \");}\n\t\t\t\t\t\tif (!($sock = @stream_socket_accept(MHTTPD::$listener, $timeout, $peername))) {\n\t\t\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"\\nCould not accept client stream\\n\");}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"$peername\\n\");}\n\t\t\t\t\t\t$client = new MHTTPD_Client($i, $sock, $peername);\n\t\t\t\t\t\t$client->debug = MHTTPD::$debug;\n\t\t\t\t\t\tMHTTPD::$clients[$i] = $client;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t} elseif ($i == $maxClients) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No free slots, so the request goes to the backlog\n\t\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"No free client slots!\\n\");}\n\t\t\t\t\t\ttrigger_error(\"Too many clients\", E_USER_NOTICE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Return to waiting if only the listener is active\n\t\t\t\tif ($ready == 1) {\n\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"No other connections to handle\\n\\n\");}\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Handle any incoming client data on selected sockets\n\t\t\tforeach (MHTTPD::$clients as $i=>$client) {\n\t\t \n\t\t\t\tif (MHTTPD::$debug) {cecho(\"Client ($i) ... \");}\n\t\t\t\t$csock = $client->getSocket();\n\n\t\t\t\t// Handle any new client requests\n\t\t\t\tif ($client->isReady() && $csock && in_array($csock, $read)) {\n\t\t\t\t\n\t\t\t\t\t// Start reading the request\n\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"reading ... \");}\n\t\t\t\t\t$client->setTimeout(10);\n\t\t\t\t\t$input = '';\n\t\t\t\t\t\n\t\t\t\t\t// Get the request header block only\n\t\t\t\t\twhile ($buffer = @fgets($csock, 1024)) {\n\t\t\t\t\t\t$input .= $buffer;\n\t\t\t\t\t\tif ($buffer == '' || substr($input, -4) == \"\\r\\n\\r\\n\" \n\t\t\t\t\t\t\t|| strlen($input) > $maxHeaderBlockSize\n\t\t\t\t\t\t\t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif ($input) {\n\t\t\t\t\t\n\t\t\t\t\t\t// Store the headers and process the request\n\t\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"done\\n\");}\n\t\t\t\t\t\t$client->setInput(trim($input));\n\t\t\t\t\t\tif (!$client->processRequest() && !$client->needsAuthorization()) {\n\t\t\t\t\t\t\tMHTTPD::removeClient($client);\n\t\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// No request data, client is disconnecting\n\t\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"disconnected\\n\");}\n\t\t\t\t\t\tMHTTPD::removeClient($client);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Handle any request body data\n\t\t\t\t} elseif ($client->isPosting() && $csock && in_array($csock, $read)) {\n\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"reading body \");}\n\t\t\t\t\t$client->readRequestBody();\n\t\t\t\t\n\t\t\t\t// Handle any disconnects or malformed requests\n\t\t\t\t} elseif ($csock && in_array($csock, $read)) {\n\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"aborted connection\\n\");}\n\t\t\t\t\tMHTTPD::removeClient($client);\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\t// Handle any inactive client connections\n\t\t\t\t} else {\n\t\t\t\t\tif (MHTTPD::$debug) {\n\t\t\t\t\t\tcecho('inactive (');\n\t\t\t\t\t\tcecho('req:'.$client->hasRequest());\n\t\t\t\t\t\tcecho(' resp:'.$client->hasResponse());\n\t\t\t\t\t\tcecho(' fcgi:'.$client->hasFCGI());\n\t\t\t\t\t\tcecho(\")\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Handle any incoming FCGI responses\n\t\t\t\tif (($clfsock = $client->getFCGISocket()) && in_array($clfsock, $read)) {\n\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"Client ($i) ... reading FCGI socket: {$clfsock}\\n\");}\n\t\t\t\t\tif (!$client->readFCGIResponse()) {\n\t\t\t\t\t\tMHTTPD::removeClient($client); // abort any hanging connections\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Handle any outgoing FCGI requests\n\t\t\tforeach (MHTTPD::$clients as $i=>$client) {\n\t\t\t\tif ($client->hasFCGI() && !$client->hasSentFCGI()\n\t\t\t\t\t&& (!$client->isPosting() || $client->hasFullRequestBuffer())\n\t\t\t\t\t) {\n\t\t\t\t\tif (MHTTPD::$debug){cecho(\"Client ($i) ... sending FCGI request\\n\");}\n\t\t\t\t\tif (!$client->sendFCGIRequest()) {\n\t\t\t\t\t\tMHTTPD::removeClient($client); // abort any failed connections\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Handle any outgoing client responses\n\t\t\tforeach (MHTTPD::$clients as $i=>$client) {\n\t\t\t\tif ($client->hasRequest()) {\n\t\t\t\t\tif (!$client->isPosting() && $client->hasSentFCGI() && !$client->hasResponse()) {\n\t\t\t\t\t\tif (MHTTPD::$debug){cecho(\"Client ($i) ... waiting for FCGI response\\n\");}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} elseif ($client->needsAuthorization()) {\n\t\t\t\t\t\tif (MHTTPD::$debug){cecho(\"Client ($i) ... waiting for authorization\\n\");}\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} elseif ($client->hasResponse()) {\n\t\t\t\t\t\tif (MHTTPD::$debug) {cecho(\"Client ($i) ... handling response\\n\");}\n\t\t\t\t\t\tMHTTPD::handleResponse($client);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t// Handle any aborted FCGI requests\n\t\t\tforeach ($read as $r) {\n\t\t\t\tforeach (MHTTPD::$aborted as $aID=>$ab) {\n\t\t\t\t\tif ($r == $ab['socket']) {\n\t\t\t\t\t\tMFCGI::removeClient($ab['process']);\n\t\t\t\t\t\tMHTTPD::closeSocket($r);\n\t\t\t\t\t\tunset(MHTTPD::$aborted[$aID]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// End of main loop\n\t\t\tif (MHTTPD::$debug) {cecho(\"\\n\");}\n\t\t}\n\t\t\n\t\t// Quit the server cleanly\n\t\tMHTTPD::shutdown();\n\t}",
"protected abstract function receive();",
"public function listen(ServerInterface $socket)\n {\n $socket->on('connection', array($this->parser, 'handle'));\n }",
"public function aim_loop()\r\n\t{\r\n\t\twhile ($this->aim_connected()) {\r\n\t\t\techo $this->aim_recv();\r\n\t\t} \r\n\t}",
"public function readSocket()\n {\n $output = socket_read($this->socket, 2048);\n\n echo $output;\n socket_close($this->socket);\n }",
"public function serveRequest()\n {\n $msg = $this->connection->read();\n if (!$msg) return;\n $this->connection->acknowledge($msg);\n \n $replyMsg = $this->act($msg);\n\n // write correlation id\n $replyMsg->setHeader(\"correlation-id\", $msg->getId());\n\n $this->connection->send($msg->getReplyTo(), $replyMsg);\t\t\n }",
"public function handle()\n {\n echo \"Running telegram messages listener...\\n\";\n\n\n while (true) {\n $offset = $this->getPreviousUpdateID();\n $this->processMessages($offset);\n sleep(1);\n }\n }",
"public function handle()\n {\n \n while (true) {\n \n $loop = ReactEventLoopFactory::create();\n\n $client = new SlackRealTimeClient($loop);\n $client->setToken(config('services.slack.token'));\n\n // disconnect after first message\n $client->on('message', function ($data) use ($client) {\n //echo \"Someone typed a message: \".$data['text'].\"\\n\";\n //print_r($data);\n //$client->disconnect();\n \n if($data['type'] == 'message'){\n \n if(!isset($data['text'])) return;\n if(isset($data['username']) && $data['username'] == 'bot') return;\n\n print_r($data);\n\n if(substr($data['channel'], 0, 1) == 'D'){\n //If it's a DM, treat it as a search query\n echo \"Direct Message: \";\n print_r($data);\n }elseif(!isset($data['user'])){\n $this->error('No valid user. Previous event not saved');\n Log::debug('No valid user. Previous event not saved');\n }else{\n //Insert new message to DB\n $message = new Messages;\n $message->message = $data['text'];\n $message->user = $data['user'];\n $message->channel = $data['channel'];\n $message->ts = convert_timestamp($data['ts']);\n $message->save();\n\n $message->addToIndex(); //add to ES Index\n }\n\n\n }//END IF DATA TYPE CHECK\n $client->disconnect();\n\n });\n\n $client->connect()->then(function () {\n echo \"Connected!\\n\";\n });\n\n $loop->run();\n\n }//END WHILE INF\n }",
"abstract protected function onMessageRecieved(WebSocketClient $sender, $message);",
"function listen()\n {\n $method = strtoupper($_SERVER['REQUEST_METHOD']);\n $path = trim($_SERVER['REQUEST_URI']);\n\n print $this->match_and_exec($method, $path);\n }",
"protected function onConnect($socket) {\n $client = new Client($socket, Cluster::$mainLoop);\n $worker = false;\n // find any available client\n foreach($this->workers as $w) {\n if (!$w->pipe) {\n $worker = $w;\n break;\n }\n }\n // forward the message\n if ($worker && $worker->pipe($client)) return;\n // no available worker, server is unavailable\n $client->end(Cluster::$busy);\n }",
"protected function socketSelect() {}",
"protected function processMessages()\n {\n while ($done = curl_multi_info_read($this->multiHandle)) {\n $request = $this->resourceHash[(int)$done['handle']];\n $this->processResponse($request, $this->handles[$request], $done);\n }\n }",
"public function listen(Message $message, Command $command);",
"function onMessage(ConnectionInterface $from, $msg);",
"public function run()\n {\n if ($this->connect()) {\n $this->login();\n $this->join();\n $this->listen();\n }\n }",
"function ssl_accept_cb($listener, $fd, $address, $ctx) {\n\t\t// We got a new connection! Set up a bufferevent for it.\n\t\t$this->bev = EventBufferEvent::sslSocket($this->base, $fd, $this->ctx,\n\t\t\tEventBufferEvent::SSL_ACCEPTING, EventBufferEvent::OPT_CLOSE_ON_FREE);\n\n\t\tif (!$this->bev) {\n\t\t\techo \"Failed creating ssl buffer\\n\";\n\t\t\t$this->base->exit(NULL);\n\t\t\texit(1);\n\t\t}\n\n\t\t$this->bev->enable(Event::READ);\n\t\t$this->bev->setCallbacks(array($this, \"ssl_read_cb\"), NULL,\n\t\t\tarray($this, \"ssl_event_cb\"), NULL);\n\t}",
"public function handle()\n {\n $this->getStream('client')->handle(new TimeoutTimer($this->delay/4));\n $this->getStream('workerHandler')->handle(new TimeoutTimer($this->delay/4));\n $this->handleWorkerHandlerQueue();\n $this->getStream('workerHandlerStatus')->handle(new TimeoutTimer($this->delay/4));\n $this->handleExpired();\n $this->handleExpiredWorkerHandlers();\n }",
"public function listen (array $options = [])\r\n\t\t{\r\n\t\t\t\tif ($this -> isListening ())\r\n\t\t\t\t{\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t$flags = STREAM_SERVER_BIND | STREAM_SERVER_LISTEN;\r\n\t\t\t\t$context = stream_context_create ($options);\r\n\t\t\t\t$scheme = (string) $this -> getTransport () . '://' . $this -> getAddress () . ':' . $this -> getPort ();\r\n\t\t\t\t$resourcePointer = stream_socket_server ($scheme, $errno, $errstr, $flags, $context);\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t* Determine on which port we bound.\r\n\t\t\t\t*/\r\n\t\t\t\tif ($this -> getPort () == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\t\t$localAddress = stream_socket_get_name ($resourcePointer, false);\r\n\t\t\t\t\t\t$port = substr ($localAddress, strrpos ($localAddress, ':') + 1);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$this -> setPort ($port);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t* Check if we succeeded to make the resource\r\n\t\t\t\t*/\r\n\t\t\t\tif (!is_resource ($resourcePointer) || $errno || $errstr )\r\n\t\t\t\t{\r\n\t\t\t\t\t\tthrow new SocketException (sprintf ('Failed to create socket resource, error: %s', $errstr));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t* Callback for when a new connection has been received.\r\n\t\t\t\t*/\r\n\t\t\t\t$acceptCallback = function (PollerInterface $pollerInterface, $resourcePointer)\r\n\t\t\t\t{\r\n\t\t\t\t\t\tif (false === $newConnection = stream_socket_accept ($resourcePointer))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$event = new AcceptingFailedEvent ($this);\r\n\t\t\t\t\t\t\t\t$this -> dispatch (SocketEvents :: SOCK_EXCEPTION, $event);\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$socket = $this -> handleNewConnection ($newConnection);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ($this -> getTransport () == self :: TRANSPORT_SSL)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$socket -> setTransport (ClientStream :: TRANSPORT_SSL);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t$event = new AcceptingSucceededEvent ($this, $socket);\r\n\t\t\t\t\t\t$this -> dispatch (SocketEvents :: SOCK_ACCEPTED_CONN, $event);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t* Insert callback into poller\r\n\t\t\t\t*/\r\n\t\t\t\t$this -> pollerInstance -> addReadStream ($resourcePointer, $acceptCallback);\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t* Finishing up..\r\n\t\t\t\t*/\r\n\t\t\t\t$this -> currentState = self :: STATE_LISTENING;\r\n\t\t\t\t$this -> resourcePointer = $resourcePointer;\r\n\t\t\t\t$this -> resourcePointerId = (int) $resourcePointer;\r\n\t\t\t\t\r\n\t\t\t\treturn true;\r\n\t\t}",
"public function start()\n {\n $this->server->on(\"open\", [$this, 'wsOpen']);\n $this->server->on(\"message\", [$this, 'wsMessage']);\n $this->server->on(\"close\", [$this, 'wsClose']);\n\n $this->server->start();\n }",
"private function onPing()\n {\n $this->send($this->replyEvent());\n }",
"public function accept(mixed $socket): bool {}",
"function onMessage(ConnectionInterface $conn, $msg)\n {\n /** @noinspection PhpComposerExtensionStubsInspection */\n $event = json_decode($msg);\n $this->mEventsController->onNewEvent($event, function ($person, $roomId,$alert) {\n $res = json_encode([\"person\" => $person, \"room\" => $roomId,\"type\"=>\"position\"]);\n foreach ($this->clients as $client) {\n $client->send($res);\n if ($alert != null) {\n $client->send(json_encode([\"person\" => $person, \"room\" => $roomId,\"type\"=>\"alert\"]));\n }\n }\n });\n }",
"public function run()\n {\n while (($payload = array_shift($this->payloads)) !== null) {\n list($ttr, $message) = $payload;\n $this->startedId = $this->finishedId + 1;\n $this->handleMessage($this->startedId, $message, $ttr, 1);\n $this->finishedId = $this->startedId;\n $this->startedId = 0;\n }\n }",
"public function fetchMessage()\n {\n if ($this->socket === null) {\n $this->socket = stream_socket_server(static::buildFullAddress($this->address));\n }\n return @stream_socket_accept($this->socket);\n }",
"public function listener()\n {\n /** @var \\Illuminate\\Redis\\Connections\\PhpRedisConnection|\\Illuminate\\Redis\\Connections\\PredisConnection $connection */\n $connection = Redis::connection($this->connection());\n\n register_shutdown_function(function () use ($connection) {\n $connection->disconnect();\n abort(200);\n });\n\n return response()->stream(function () use ($connection) {\n\n // Send the message with a retry timer\n $this->message()->retry($this->timeRetry())->send();\n\n // If the Last-Event-Id header is set, restore the connection with the last message id.\n if (request()->hasHeader('Last-Event-Id')) {\n $this->restore(request()->header('Last-Event-Id'));\n }\n\n // Listen for new messages\n $connection->subscribe([$this->channel()], fn (string $message) => $this->handler($message));\n\n }, Response::HTTP_OK, $this->headers());\n }",
"public function onReceivedMessage($data)\n {\n try {\n // Decode incoming data and log it\n $message = json_decode($data, true, 512, JSON_THROW_ON_ERROR);\n echo print_r($message, true);\n } catch (\\JsonException $e) {\n // If it's not valid JSON, we can ignore it, but we should send and\n // ACK regardless. NOTE: This is probably the opening message from\n // OOCSI\n $this->connection->send('.');\n return;\n }\n \n // Send back a dot as acknowledgement\n $this->connection->send('.');\n\n // Check if the message contains a timestamp\n if (!$message['timestamp']) {\n onDataReceived($message);\n }\n\n // Pass the data off to the next function\n $this->handleData($message);\n }",
"public function handle()\n {\n $websocketServer = new WebSocketServer();\n $websocketServer->start();\n }",
"public function onMessage($connection){\n\t\t// REQUEST_URI.\n\t\t$workerman_url_info = parse_url($_SERVER['REQUEST_URI']);\n\t\tif(!$workerman_url_info){\n\t\t\tHttp::header('HTTP/1.1 400 Bad Request');\n\t\t\t$connection->close('<h1>400 Bad Request</h1>');\n\t\t\treturn;\n\t\t}\n\t\t$_SERVER['REMOTE_ADDR'] = $connection->getRemoteIp();\n\t\t$_SERVER['REMOTE_PORT'] = $connection->getRemotePort();\n\n\t\t$content = call_user_func($this->onReceive, $connection);\n\n\t\tif(strtolower($_SERVER['HTTP_CONNECTION']) === \"keep-alive\"){\n\t\t\t$connection->send($content);\n\t\t}else{\n\t\t\t$connection->close($content);\n\t\t}\n\t}",
"public static function http_server(): void\n {\n sock::$type = 'http:server';\n sock::$host = '0.0.0.0';\n sock::$port = 80;\n $ok = sock::create();\n\n if (!$ok) exit('HTTP Server creation failed!');\n\n do {\n //IMPORTANT!!! Reset all data & read list & client list\n $data = $read = $client = [];\n\n //Accept new connection\n sock::accept($read, $client);\n\n //Read HTTP Request data\n $msg = sock::read($client);\n\n var_dump($msg);\n\n //Prepare simple data\n $key = key($client);\n $sock = current($client);\n\n $data[$key]['sock'] = $sock;\n\n $data[$key]['msg'] = 'Hello! I am a simple HTTP Server running under PHP~';\n $data[$key]['msg'] .= PHP_EOL . PHP_EOL;\n $data[$key]['msg'] .= 'Your request message was: ';\n $data[$key]['msg'] .= PHP_EOL . PHP_EOL;\n $data[$key]['msg'] .= trim(current($msg)['msg']);\n $data[$key]['msg'] .= PHP_EOL . PHP_EOL;\n $data[$key]['msg'] .= 'Thanks for your test!';\n\n //Send to browser\n $result = sock::write($data, $client);\n\n var_dump($result);\n\n } while (true);\n }",
"public function listen(): bool;",
"function wsOnReceive($clientID, $message, $messageLength, $binary) {\r\n\tglobal $Server;\r\n\r\n\t$message = json_decode($message, true);\r\n\t$command = $message['command'];\r\n\t$argument = $message['argument'];\r\n\r\n\t// check if message length is 0\r\n\tif ($messageLength == 0) {\r\n\t\t$Server->wsClose($clientID);\r\n\t\treturn;\r\n\t}\r\n\t$command($clientID, $argument);\r\n\r\n\t//The speaker is the only person in the room. Don't let them feel lonely.\r\n\t/*foreach ( $Server->wsClients as $id => $client )\r\n\t\tif ( $id != $clientID )\r\n\t\t\t$Server->wsSend($id, \"Visitor $clientID ($ip) said \\\"$message\\\"\");\r\n\t*/\r\n}",
"function serve($cb) {\n\t$offset = rand(0,2000);\n\tforeach (range(40000+$offset, 50000+$offset) as $port) {\n\t\tlogger(\"serve: Trying port %d\", $port);\n\t\tif (($server = @stream_socket_server(\"tcp://localhost:$port\"))) {\n\t\t\tfprintf(STDERR, \"%s\\n\", $port);\n\t\t\tlogger(\"serve: Using port %d\", $port);\n\t\t\tdo {\n\t\t\t\t$R = array($server); $W = array(); $E = array();\n\t\t\t\t$select = stream_select($R, $E, $E, 10, 0);\n\t\t\t\tif ($select && ($client = stream_socket_accept($server, 1))) {\n\t\t\t\t\tlogger(\"serve: Accept client %d\", (int) $client);\n\t\t\t\t\tif (getenv(\"PHP_HTTP_TEST_SSL\")) {\n\t\t\t\t\t\tstream_socket_enable_crypto($client, true, STREAM_CRYPTO_METHOD_SSLv23_SERVER);\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\t$R = array($client);\n\t\t\t\t\t\twhile (!feof($client) && stream_select($R, $W, $E, 1, 0)) {\n\t\t\t\t\t\t\tlogger(\"serve: Handle client %d\", (int) $client);\n\t\t\t\t\t\t\t$cb($client);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tlogger(\"serve: EOF/timeout on client %d\", (int) $client);\n\t\t\t\t\t} catch (Exception $ex) {\n\t\t\t\t\t\tlogger(\"serve: Exception on client %d: %s\", (int) $client, $ex->getMessage());\n\t\t\t\t\t\t/* ignore disconnect */\n\t\t\t\t\t\tif ($ex->getMessage() !== \"Empty message received from stream\") {\n\t\t\t\t\t\t\tfprintf(STDERR, \"%s\\n\", $ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} while ($select);\n\t\t\treturn;\n\t\t}\n\t}\n}",
"protected function received($user,$buffer,$socket,$bytes){\n\t\tif(!$user->hadHandshake()){\n\t\t\t$this->doHandshake($user,$buffer,$socket);\n\t\t\treturn;\n\t\t}\n\t\t# handshake already done, read data\n\t\t$msg=$this->unwrap($buffer,$bytes);\n\t\t$this->log(\"<{$action}\");\n\t\t\n\n\t\tif( method_exists('socketWebSocketTrigger',$action) ){\n\t\t\t$this->send($socket,socketWebSocketTrigger::$action());\n\t\t}else{\n\t\t\tfor ($i = 0; $i <= 0; $i++) {\n\t\t\t\t$this->send($socket,\"{$action}\");\n\t\t\t}\n\t\t}\n\t}",
"public static function tcp_server(): void\n {\n sock::$type = 'tcp:server';\n sock::$host = '0.0.0.0';\n sock::$port = self::port;\n $ok = sock::create();\n\n if (!$ok) exit('TCP Server creation failed!');\n\n //Set Client list alone\n $client = [];\n\n do {\n //Copy client list to read list\n $read = $client;\n\n //Listen to TCP port\n sock::listen($read);\n\n //Accept new connection\n sock::accept($read, $client);\n\n //Read TCP Data\n $msg = sock::read($read, $client);\n\n var_dump($msg);\n\n $data = [];\n\n //example: from message and send back to client\n foreach ($client as $k => $v) {\n foreach ($msg as $key => $value) {\n $data[$k]['sock'] = $v;\n $data[$k]['msg'] = $key !== $k ? $value['msg'] : 'OK! ' . count($client) . ' players are online waiting!';\n }\n }\n\n //Send data back and maintain clients\n $result = sock::write($data, $client);\n\n var_dump($result);\n\n } while (true);\n }",
"public function baseRead($socket)\n {\n while($buffer = fread($socket, self::READ_BUFFER_SIZE))\n {\n $this->_recvBuffer .= $buffer; \n }\n \n if($this->_recvBuffer)\n {\n if(!$this->onMessage)\n {\n return ;\n }\n \n // protocol has been set\n if($this->protocol)\n {\n $parser = $this->protocol;\n while($this->_recvBuffer)\n {\n // already know current package length \n if($this->_currentPackageLength)\n {\n // we need more buffer\n if($this->_currentPackageLength > strlen($this->_recvBuffer))\n {\n break;\n }\n }\n else\n {\n // try to get the current package length\n $this->_currentPackageLength = $parser::input($this->_recvBuffer, $this);\n // need more buffer\n if($this->_currentPackageLength === 0)\n {\n break;\n }\n elseif($this->_currentPackageLength > 0 && $this->_currentPackageLength <= self::$maxPackageSize)\n {\n // need more buffer\n if($this->_currentPackageLength > strlen($this->_recvBuffer))\n {\n break;\n }\n }\n // error package\n else\n {\n $this->close('error package. package_length='.var_export($this->_currentPackageLength, true));\n }\n }\n \n // recvived the whole data \n self::$statistics['total_request']++;\n $one_request_buffer = substr($this->_recvBuffer, 0, $this->_currentPackageLength);\n $this->_recvBuffer = substr($this->_recvBuffer, $this->_currentPackageLength);\n $this->_currentPackageLength = 0;\n try\n {\n call_user_func($this->onMessage, $this, $parser::decode($one_request_buffer, $this));\n }\n catch(Exception $e)\n {\n self::$statistics['throw_exception']++;\n echo $e;\n }\n }\n if($this->_status !== self::STATUS_CLOSED && feof($socket))\n {\n $this->destroy();\n return;\n }\n return;\n }\n self::$statistics['total_request']++;\n // protocol not set\n try \n {\n call_user_func($this->onMessage, $this, $this->_recvBuffer);\n }\n catch(Exception $e)\n {\n self::$statistics['throw_exception']++;\n echo $e;\n }\n $this->_recvBuffer = '';\n if($this->_status !== self::STATUS_CLOSED && feof($socket))\n {\n $this->destroy();\n return;\n }\n }\n else if(feof($socket))\n {\n $this->destroy();\n return;\n }\n }",
"public function handle()\n {\n $this->laravel->bind(RedisSubscribe::class,$this->handler);\n $instance = $this->laravel->make(RedisSubscribe::class);\n\n while(true) {\n $value = Redis::brpop($this->channel, 0);\n\n $channel = $value[0];\n $data = $value[1];\n\n $instance->reset();\n $instance->setData($channel,json_decode($data,true));\n $instance->handle();\n }\n }",
"public function handleSendMessage() {\n\t\t$json = file_get_contents(\"php://input\"); //vytánutí všech dat z POST požadavku - data ve formátu JSON\n\t\t$data = Json::decode($json); //prijata zprava dekodovana z JSONu\n\t\t$user = $this->getPresenter()->getUser();\n\t\t$addMessage = $this->addMessage($data, $user);\n\t\tif (!empty($addMessage)) {\n\t\t\t$this->sendRefreshResponse($data->lastid);\n\t\t}\n\t}",
"public function run()\n {\n $this->router->listen();\n }",
"public static function tcp_server(): void\n {\n sock::$type = 'tcp:server';\n sock::$host = '0.0.0.0';\n sock::$port = 1000;\n $ok = sock::create();\n\n if (!$ok) exit('TCP Server creation failed!');\n\n //Set Client list alone\n $client = [];\n\n do {\n //Copy client list to read list\n $read = $client;\n\n //Listen to TCP port\n sock::listen($read);\n\n //Accept new connection\n sock::accept($read, $client);\n\n //Read TCP Data\n $msg = sock::read($read, $client);\n\n var_dump($msg);\n\n //Regroup data\n $data = [];\n\n //example: from message and send back to client\n foreach ($msg as $key => $value) {\n //Client socket resource\n $data[$key]['sock'] = $client[$key];\n //Message to be sent\n $data[$key]['msg'] = 'Hello, dear sender!';\n $data[$key]['msg'] .= PHP_EOL;\n $data[$key]['msg'] .= 'I received your message, and now send it back.';\n $data[$key]['msg'] .= PHP_EOL . PHP_EOL;\n $data[$key]['msg'] .= '====================================================================';\n $data[$key]['msg'] .= PHP_EOL . PHP_EOL;\n $data[$key]['msg'] .= $value['msg'];\n $data[$key]['msg'] .= PHP_EOL . PHP_EOL;\n $data[$key]['msg'] .= '====================================================================';\n $data[$key]['msg'] .= PHP_EOL . PHP_EOL;\n $data[$key]['msg'] .= 'Thanks for your test!';\n }\n\n //Send data back and maintain clients\n $result = sock::write($data, $client);\n\n var_dump($result);\n\n } while (true);\n }",
"public function onMessage($msgData) {\r\n\r\n }",
"public function connect(): void\n {\n if ($this->socket === null) {\n $this->socket = @fsockopen($this->host, $this->port, $errNo, $errStr);\n\n if (!$this->socket) {\n throw new FaktoryException('Unable to connect to server: ' . $errStr);\n }\n\n $hi = $this->read();\n\n if (strpos($hi, \"HI\") !== 0) {\n $this->disconnect();\n throw new FaktoryException('Did not receive HI from server');\n }\n\n $data = json_decode(substr($hi, 2), true);\n\n if ($data['v'] !== 2) {\n $this->disconnect();\n throw new FaktoryException('Unsupported server version ' . $data['v']);\n }\n\n $options = $this->workerOptions;\n $options['v'] = 2;\n\n $this->writeCommand('HELLO', json_encode($options));\n }\n }",
"function wsOnMessage($clientID, $message, $messageLength, $binary) {\n\tglobal $Server;\n\tglobal $userlist;\n\t$ip = long2ip( $Server->wsClients[$clientID][6] );\n\n\tif ($messageLength == 0) {\n\t\t$Server->wsClose($clientID);\n\t\treturn;\n\t}\n\t\n\t// TODO: Add handling of different events\n\t// addmms\n\t// chatmsg\n\t// accept\n\t// decline\n\t\n\t// Params contain type and data\n\t$params = json_decode($message, true);\n\n\t// Parse command based on type\n\tswitch ($params['type']) {\n\t\tcase 'chatmsg':\n//The speaker is the only person in the room. Don't let them feel lonely.\n//\t\tif ( sizeof($Server->wsClients) == 1 ) {\n//\t\t\t$Server->wsSend($clientID, 'You are the only one here.');\n//\t\t}\n\t\t\t$message = $params['data'][0];\n\t\t\t$data = array(\n\t\t\t\t'clientid' => $clientID,\n\t\t\t\t'ip' => $ip,\n\t\t\t\t'nickname' => $userlist[$clientID],\n\t\t\t\t'message' => $message\n\t\t\t);\n\t\t\tSendToAllClients('chatmsg', $data);\n\t\tbreak;\n\t\t\t\n\t\tcase 'setnick':\n\t\t\t// If clientID already has a nick, we pass the old nickname on aswell\n\t\t\t$oldnickname = array_key_exists($clientID, $userlist) ? $userlist[$clientID] : '';\n\t\t\t$newnickname = $params['data'][0]; \n\t\t\t\n\t\t\t// Avoid confusion, disallow two users the same nickname, add trailing number\n\t\t\t$i = 0;\n\t\t\tforeach ($userlist as $id => $nickname) {\n\t\t\t\tif ($i > 0 && $newnickname.$i == $nickname) {\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\tif ($newnickname == $nickname) {\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($i > 0) {\n\t\t\t\t$newnickname = $newnickname.$i;\n\t\t\t}\n\t\t\t$userlist[$clientID] = $newnickname;\n\n\t\t\t$data = array(\n\t\t\t\t'clientid' => $clientID,\n\t\t\t\t'ip' => $ip,\n\t\t\t\t'newnickname' => $newnickname,\n\t\t\t\t'oldnickname' => $oldnickname\n\t\t\t);\n\t\t\tSendToAllClientsExcept($clientID, 'setnick', $data);\n\t\t\t$data = array(\n\t\t\t\t'userlist' => $userlist\n\t\t\t);\n\t\t\tSendToAllClients('updateuserlist', $data); // At the moment this means that userlist is updated whenver anyone connects\n\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\t// :|\n\t\tbreak;\n\t}\n}",
"public function onRead() {\n\t\tstart:\n\t\tif ($this->type === 'udp') {\n\t\t\t$this->onUdpPacket($this->read($this->highMark));\n\t\t}\n\t\tif ($this->state === self::STATE_ROOT) {\n\t\t\tif (false === ($hdr = $this->readExact(2))) {\n\t\t\t\treturn; // not enough data\n\t\t\t}\n\t\t\t$this->pctSize = Binary::bytes2int($hdr, true);\n\t\t\t$this->setWatermark($this->pctSize);\n\t\t\t$this->state = self::STATE_PACKET;\n\t\t}\n\t\tif ($this->state === self::STATE_PACKET) {\n\t\t\tif (false === ($pct = $this->readExact($this->pctSize))) {\n\t\t\t\treturn; // not enough data\n\t\t\t}\n\t\t\t$this->state = self::STATE_ROOT;\n\t\t\t$this->setWatermark(2);\n\t\t\t$this->onUdpPacket($pct);\n\t\t}\n\t\tgoto start;\n\t}",
"public function onWriteAvailable()\n\t{\n\t\tif (($written = @fwrite($this->stream, $this->writeBuffer)) === false) {\n\t\t\t$this->closeWithError(\"Could not write data to socket.\");\n\t\t\treturn;\n\t\t}\n\n\t\tif ($written === 0) {\n\t\t\t$this->closeWithError(\"Broken pipe or closed connection.\");\n\t\t\treturn;\n\t\t}\n\n\t\t$this->writeBuffer = substr($this->writeBuffer, $written) ?: \"\";\n\n\t\tif (empty($this->writeBuffer)) {\n\t\t\t$this->flushing = false;\n\t\t\t$this->loop->removeWriteStream($this->stream);\n\t\t}\n\t}",
"function server_parse($socket, $expected_response)\n{\n $server_response = '';\n $counter = 0;\n while (substr($server_response, 3, 1) != ' ') {\n if (!($server_response = fgets($socket, 256))) {\n $counter++;\n if ($counter % 100 == 0) {\n echo json_encode([\"message\" => \"Error fetching response from server $expected_response\"]);\n sleep(1);\n }\n }\n }\n if (!(substr($server_response, 0, 3) == $expected_response)) {\n echo json_encode([\"message\" => 'Unable to send e-mail.\"' . $server_response . '\"' . \" $expected_response\"]);\n }\n}",
"public function accept();",
"public function listen()\n {\n $this->log->addInfo('Begin listen routine');\n \n $connection = new AMQPConnection('localhost', 5672, 'guest', 'guest');\n $channel = $connection->channel();\n \n $channel->queue_declare(\n 'invoice_queue', #queue\n false, #passive\n true, #durable, make sure that RabbitMQ will never lose our queue if a crash occurs\n false, #exclusive - queues may only be accessed by the current connection\n false #auto delete - the queue is deleted when all consumers have finished using it\n );\n \n /**\n * don't dispatch a new message to a worker until it has processed and \n * acknowledged the previous one. Instead, it will dispatch it to the \n * next worker that is not still busy.\n */\n $channel->basic_qos(\n null, #prefetch size - prefetch window size in octets, null meaning \"no specific limit\"\n 1, #prefetch count - prefetch window in terms of whole messages\n null #global - global=null to mean that the QoS settings should apply per-consumer, global=true to mean that the QoS settings should apply per-channel\n );\n \n /**\n * indicate interest in consuming messages from a particular queue. When they do \n * so, we say that they register a consumer or, simply put, subscribe to a queue.\n * Each consumer (subscription) has an identifier called a consumer tag\n */ \n $channel->basic_consume(\n 'invoice_queue', #queue\n '', #consumer tag - Identifier for the consumer, valid within the current channel. just string\n false, #no local - TRUE: the server will not send messages to the connection that published them\n false, #no ack, false - acks turned on, true - off. send a proper acknowledgment from the worker, once we're done with a task\n false, #exclusive - queues may only be accessed by the current connection\n false, #no wait - TRUE: the server will not respond to the method. The client should not wait for a reply method\n array($this, 'process') #callback\n );\n \n $this->log->addInfo('Consuming from queue');\n \n while(count($channel->callbacks)) {\n $this->log->addInfo('Waiting for incoming messages');\n $channel->wait();\n }\n \n $channel->close();\n $connection->close();\n }",
"public function socketPerform() {\n \n //if (!$this->active) { requests added on runtime\n $this->initProcessing();\n //}\n $remaining = count($this->requests);\n if ($remaining > 0) {\n curl_multi_exec($this->mh, $running);\n \n $this->readAll();\n /* Remove timeout requests */\n $this->cleanupTimeoutedRequests();\n \n return $running > 0 or count($this->requests)>0;\n }\n return false;\n }",
"public function aim_recv()\r\n\t{\r\n\t\t$header = fread($this->resource, 6);\r\n if ($this->user['debug']) $this->aim_debug($header, AIM_RAW);\r\n\r\n\t\t// Need error checking here to prevent bad data\r\n\t\ttry {\r\n\t\t\tif (!$data = @unpack(\"aone/Ctwo/nthree/nfour\", $header)) {\r\n\t\t\t\t// This normally happens if you sign on elsewhere with the same name,\r\n // or, if the TOC server resets (AOL likes to do this alot).\r\n\t\t\t\tthrow new TACException('Connection to TOC server interrupted.');\r\n\t\t\t} \r\n\t\t} catch(TACException $ex) {\r\n\t\t\t$ex->display();\r\n\t\t}\r\n\r\n if ($this->user['debug']) print_r($data);\r\n\t\t$msg = fread($this->resource, $data['four']);\r\n\t\t$msg = implode('', unpack(\"a*done\", $msg));\r\n if ($this->user['debug']) var_dump($msg);\r\n\r\n // match incoming commands\r\n preg_match(\"/^([A-Z0-9_]{4,19})\\:(.*)/s\", $msg, $matches);\r\n @list($orig, $cmd, $args) = $matches;\r\n // send the command and arguments to our parser\r\n $this->parser->aim_parse_command($cmd, $args);\r\n // regain some memory\r\n unset($header, $orig, $data, $matches);\r\n\t}",
"public function receive(Message $message, Connection $connection);",
"abstract protected function handleMessage(Message $message);",
"function executeCallbacks() {\n\n\t\t// receive callbacks with a timeout of 1 second ...\n\t\t$this->client->readCB(2000);\n\n\t\t// now get the responses out of the 'buffer' ...\n\t\t$calls = $this->client->getCBResponses();\n\n\t\tif (!empty($calls)) {\n\t\t\twhile ($call = array_shift($calls)) {\n\t\t\t\tswitch ($call[0]) {\n\t\t\t\t\tcase 'TrackMania.PlayerConnect':\n\t\t\t\t\t\t// event is released in the function!\n\t\t\t\t\t\t$this->playerConnect($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerDisconnect':\n\t\t\t\t\t\t// event is released in the function!\n\t\t\t\t\t\t$this->playerDisconnect($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerManialinkPageAnswer':\n\t\t\t\t\t\t$this->playerServerMessageAnswer($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BillUpdated':\n\t\t\t\t\t\t$this->releaseEvent('onBillUpdated', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerFinish':\n\t\t\t\t\t\t$this->playerFinish($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerChat':\n\t\t\t\t\t\t$this->playerChat($call[1]);\n\t\t\t\t\t\t$this->releaseEvent('onChat', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BeginRace':\n\t\t\t\t\t\t$this->beginRace($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.EndRace':\n\t\t\t\t\t\t$this->endRace($call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerCheckpoint':\n\t\t\t\t\t\t$this->releaseEvent('onCheckpoint', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.PlayerIncoherence':\n\t\t\t\t\t\t$this->releaseEvent('onPlayerIncoherence', $call[1]);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.BeginRound':\n\t\t\t\t\t\t$this->beginRound();\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tcase 'TrackMania.StatusChanged':\n//\t\t\t\t\t\t$this->console_text($call[1][0].\" - \".$call[1][1]);\n\t\t\t\t\t\tif ( $call[1][0] == 4 )\t\t// Running - Play\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->runningPlay();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( $call[1][0] == 3 )\t\t// Synchronisation (always)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tdisplayAllPlayerInfo($this, $this->server->challenge);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( $call[1][0] == 2 )\t\t// Launching (new map)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif ( $call[1][0] == 5 )\t\t// Finish (always)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\tdefault:\n\t\t\t\t\t\t// do nothing ...\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn $calls;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"abstract public function handler(string $message);",
"public function Poll(){\n\n\t\t$myEppServer = new EppServer();\n\t\tif(DEBUG_lEVEL >=5){ print \"<p>Starting Connection</p>\";}\n\t\t$myEppServer->Start();\n\t\t$flag = 0;\t\t\t\t\t\t\n\t\twhile ($flag != 1){\n\t\t\t\t$TransactionID = $myEppServer->Chat($this->xmlPoll());\n\t\t\t\t$resultcode = $myEppServer->ResultCode();\n\t\n\t\t\t\tif(DEBUG_lEVEL >=5){ print \"<p>Result code: $resultcode</p>\";}\n\t\t\t\n\t\t\t\t\tif ($resultcode == 1300){\n\t\t\t\t\t\tif(DEBUG_lEVEL >=5){ print \"<p>There are no messages in the queue</p>\";}\n\t\t\t\t\t\tprint \"<p>There are no messages in the queue</p>\";\n\t\t\t\t\t\t$flag =1;\n\n\t\t\t\t\t}elseif ($resultcode == 1301){\n\t\t\t\t\t\tif(DEBUG_lEVEL >=5){ print \"<p>There are messages</p>\";}\n\t\t\t\t\t\t$EPPID = $this->xmlPollProcess($myEppServer->OutXML, $TransactionID);\n\t\t\t\t\t\t\tprint \"<p>Loading Message</p>\";\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(DEBUG_lEVEL >=5){ print \"<p>ACK message</p>\";}\n\t\t\t\t\t\t\t$myEppServer->Chat($this->xmlAck($EPPID));\n\t\t\t\t\t\t\t$resultcode2 = $myEppServer->ResultCode();\n\t\t\t\t\t\tif(DEBUG_lEVEL >=5){ print \"<p>ACK Result Code: $resultcode2</p>\";}\n\t\t\t\t\t\t\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(DEBUG_lEVEL >=5){ print \"<p>Failed due to an unknown Error</p>\";}\n\t\t\t\t\t\t$flag =1;\n\t\t\t\t\t}\n\t\t}\n\t\t$myEppServer->Stop();\n\t\tif(DEBUG_lEVEL >=5){ print \"<p>Stopping Connection</p>\";}\n\t}",
"public function acceptTcp($main_socket) {\n $socket = @stream_socket_accept($main_socket, 0, $remote_address);\n \n //thundering herd EAGAIN (Resource temporarily unavailable)\n if (!$socket) {\n return;\n }\n \n $connection = new Connection($socket, $this);\n \n if($this->handler ){\n $this->handler->attach($connection);\n }\n \n $this->handler->owner = $this;\n \n $this->trigger(Server::ON_ACCEPT, new IOEvent(['context'=>$connection]));\n \n $connection->ready();\n }",
"public function onReceive(string $str)\n {\n }",
"public function onReceive(string $str)\n {\n }",
"function send_read($data){\n\t\n\t\t$address = gethostbyname($this->vars['host']);\n\t\t$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);\n\t\t$result = socket_connect($socket, $address, $this->vars['port']);\n\n\t\t$transfer = json_encode($this->vars[function_list]);\n\t\t\n\t\t$count = strlen($transfer);\n\t\tprint \"abc\";\n\t\tsocket_send($socket,$count,strlen($count),MSG_DONTROUTE); #send length data to server\n\n\t\tsocket_recv($socket , $buf , 2 , MSG_WAITALL ); #become ack\n\n\t\tsocket_send($socket,$transfer,$count,MSG_DONTROUTE); #send data to server\n\t\t\n\t\tsocket_recv($socket , $count , 30 , MSG_WAITALL ); #income char lentgh\n\t\t\n\t\tsocket_send($socket,'ok',2,MSG_DONTROUTE); #send ack\n\t\t\n\t\tsocket_recv($socket , $buf , $count , MSG_WAITALL ); #income new data\n\n\t\t$returner = json_decode($buf,true);\n\t\tsocket_close($socket);\n\t\treturn($returner);\n\t\t\n\t}",
"public function handle()\n {\n MessagingAmqpService::declareSysQueues();\n ExchangeService::bindAllExchanges();\n MessagingAmqpService::listen(\n config('amqp.log_queue'),\n [ MessageService::class, 'consumeLog' ]\n );\n }",
"public function handle()\n {\n $mqManager = app(MQManager::class);\n\n try {\n $mqManager->listen();\n } catch (IncorrectQueueFormatException $e) {\n $this->info($e->getMessage() . ' - closing MQ connection');\n die();\n }\n\n $this->info('MQ Manager is listening for messages');\n }"
] | [
"0.835913",
"0.7538819",
"0.68974656",
"0.6760791",
"0.6750277",
"0.66015685",
"0.65827245",
"0.6569336",
"0.6563922",
"0.6533243",
"0.6479019",
"0.64303935",
"0.632928",
"0.6328377",
"0.63115287",
"0.6282755",
"0.62582165",
"0.6140287",
"0.6118816",
"0.60735846",
"0.6062565",
"0.6037692",
"0.599373",
"0.5964078",
"0.5960968",
"0.5932148",
"0.591956",
"0.5910244",
"0.5908014",
"0.5898544",
"0.5854285",
"0.5834116",
"0.581902",
"0.58035934",
"0.579006",
"0.5778422",
"0.5777494",
"0.57616496",
"0.57285047",
"0.57262677",
"0.5721854",
"0.57212484",
"0.5720645",
"0.5720081",
"0.5709103",
"0.5676789",
"0.5662059",
"0.56603605",
"0.5612163",
"0.5609882",
"0.5609846",
"0.56080717",
"0.55707175",
"0.5566966",
"0.5559393",
"0.5553379",
"0.5458904",
"0.541561",
"0.54121566",
"0.5410139",
"0.54052186",
"0.5404635",
"0.5399242",
"0.5381565",
"0.53810924",
"0.53705496",
"0.5366111",
"0.53654593",
"0.5365022",
"0.53577155",
"0.53490895",
"0.53306407",
"0.53110385",
"0.53102916",
"0.5305196",
"0.5288171",
"0.5287488",
"0.5287121",
"0.5266999",
"0.5259184",
"0.5241399",
"0.5237516",
"0.5237493",
"0.5233921",
"0.5233704",
"0.52228796",
"0.52219915",
"0.5216749",
"0.520531",
"0.51909995",
"0.51898766",
"0.5179511",
"0.51656556",
"0.5162102",
"0.51593",
"0.5154586",
"0.51532763",
"0.51532763",
"0.5138939",
"0.5129162",
"0.5108056"
] | 0.0 | -1 |
Used asynchronously to end a client session when the server process is shutting down. | public function shutdown(array $context = []): void
{
$this->sendNoticeOfDisconnect(
'The server is shutting down.',
ResultCode::UNAVAILABLE
);
$this->queue->close();
$this->logInfo(
'Sent notice of disconnect to client and closed the connection.',
$context
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function close()\n {\n $this->_client->endSession($this->_session);\n }",
"public function quit() {\n if ($this->client) {\n $this->client->quit();\n }\n }",
"public function disconnect()\n {\n $this->client->close();\n }",
"public function shutdown();",
"public function shutdown();",
"private function end() {\n if ($this->isSessionStarted()) {\n session_commit();\n $this->clear();\n }\n }",
"public function shutdown() {}",
"public function shutdown() {}",
"public function shutdown() {}",
"public function shutdown() {}",
"public function shutdown() {}",
"public function end(): void\n {\n if ($this->socket !== null) {\n // It seems like the server is closing this connection before responding, possibly?\n $ok = $this->writeCommand('END', '');\n\n if ($ok === 'OK') {\n $this->disconnect();\n }\n\n throw new FaktoryException('Unable to end connection');\n }\n }",
"protected static function shutdown()\n\t{\n\t\tif (MHTTPD::$debug) {cecho(\"Shutting down the server ...\\n\");}\n\t\tMHTTPD::$running = false;\n\t\t\n\t\t// Close listener\n\t\tMHTTPD::closeSocket(MHTTPD::$listener);\n\t\t\n\t\t// Kill all running FCGI processes\n\t\texec('taskkill /F /IM php-cgi.exe');\n\t\t\t\t\n\t\t// Remove any active clients\n\t\tforeach ($this->clients as $client) {\n\t\t\tMHTTPD::removeClient($client);\n\t\t}\n\t\t\n\t\t// Flush any buffered logs\n\t\tMHTTPD_Logger::flushLogs();\t\t\n\t}",
"public function sessions_end()\n\t{\n\t\t// nothing to see here\n\t}",
"abstract function shutdown();",
"public function quit()\n {\n $this->sendServerCommand(\"quit\");\n }",
"public function disconnect() {\n $this->exec('echo \"EXITING\" && exit;');\n $this->connection = null;\n }",
"public function close() {\n\t\t$this->send('__internal__', 'close'); //server side closing can be an issue, let the client do it\n\t}",
"abstract public function shutdown();",
"public function disconnect() {\n if ($this->client) {\n $this->client->disconnect();\n }\n }",
"public function onShutdown() {\n\t\tif ($this->client) {\n\t\t\treturn $this->client->onShutdown();\n\t\t}\n\t\treturn true;\n\t}",
"public function shutdown() {\r\n\t\tif($this->status == 'running') {\r\n\t\t\toutput('Shutting Down Blossom Server');\r\n\t\t\t$this->status = 'shutdown';\r\n\t\t\t$this->start_shutdown_time = time();\r\n\t\t\r\n\t\t\tforeach ($this->socket_array as $socket) {\r\n\t\t\t\tif(!$socket->live_past_shutdown) {\r\n\t\t\t\t\t$socket->trigger_remove();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->set_interval($this, 'check_shutdown', 1);\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\texit();\r\n\t\t}\r\n\t}",
"public function endCommunication()\n {\n $this->restAPI->keepAuth = false;\n $this->restAPI->logout();\n }",
"public function quit(){\n try {\n $this->execute('quit', $statusCode, 500);\n } catch (VarnishException $exception) {\n\n }\n\n $this->disconnect();\n }",
"public static function sessionCloseHandler();",
"function shutdown() {\r\n // Write the session data to the disk\r\n session_write_close();\r\n}",
"function close(){\n $this->disconnect();\n stream_socket_shutdown($this->socket, STREAM_SHUT_WR);\n }",
"public function client_forget()\n\t{\n\t\treturn $this->CLI->pingQuery($this->SqueezePlyrID.\" client forget\");\n\t}",
"function _shutdown()\n {\n $curr_time = time();\n\n if (!isset($_SESSION['__sessionhandler']) ||\n ($curr_time >= $_SESSION['__sessionhandler'])) {\n\n $_SESSION['__sessionhandler'] = $curr_time + (ini_get('session.gc_maxlifetime') / 2);\n $this->_force = true;\n }\n }",
"function __destruct() {\n\t\tfputs($this->conn, 'QUIT' . $this->newline);\n\t\t$this->getServerResponse();\n\t\tfclose($this->conn);\n\t}",
"abstract function shutdown ();",
"abstract function shutdown ();",
"protected function unlock_session() {\n \\core\\session\\manager::write_close();\n ignore_user_abort(true);\n }",
"public function serverClosed(ServerClosedEvent $event): void;",
"function __destruct() {\r\n\t\tfputs ( $this->conn, 'QUIT' . $this->newline );\r\n\t\t$this->getServerResponse ();\r\n\t\tfclose ( $this->conn );\r\n\t}",
"private function stopServer() {\n\t\t$this->socketSend('shutdown');\n\t\tforeach($this->pipes as $pipe) {\n\t\t\tfclose($pipe);\n\t\t}\n\t\tproc_close($this->server);\n\t}",
"public function disconnect() {\n $this->exec('exit;');\n $this->connection = null;\n }",
"function shutdown() {\n\tsocket_close( $socket );\n}",
"public function executeOnShutdown();",
"public function close()\n {\n $this->connection->quit();\n unset($this->connection);\n $this->connection = null;\n }",
"public function shutdown()\n {\n $this->setAttribute('lastrequest', time(), 'user');\n\n // rimozione variabili flash da eliminare\n foreach ($names = $this->getNames('core/user/flash/remove') as $name)\n {\n $this->removeAttribute($name, 'core/user/flash');\n $this->removeAttribute($name, 'core/user/flash/remove');\n }\n\n // termina immediatamente\n session_write_close();\n }",
"public function end() {}",
"public function end() {}",
"public function end() {}",
"protected function case_teardown() {\r\n if ($this->service->is_connected()) {\r\n $this->service->disconnect();\r\n }\r\n }",
"public function disconnect()\r\n {\r\n if ( $this->state != self::STATE_NOT_CONNECTED )\r\n {\r\n $this->connection->sendData( 'QUIT' );\r\n $this->connection->getLine(); // discard\r\n $this->state = self::STATE_UPDATE;\r\n\r\n $this->connection->close();\r\n $this->connection = null;\r\n $this->state = self::STATE_NOT_CONNECTED;\r\n }\r\n }",
"public function shutdownHandler()\n {\n if ($this->gi) {\n geoip_close($this->getGI());\n }\n }",
"public function onShutdown();",
"public function onShutdown();",
"function _close()\n\t{\n\t\tif (!$this->connection)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $this->_send_command('QUIT');\n\t}",
"public function shutdown() {\n\t\t$this->stop();\n\t}",
"public function endCommunication()\n {\n $this->provider->keepAuth = false;\n $this->provider->logout();\n }",
"static function shutdown()\n\t{\n\t\tif (!empty(self::$channel))\n\t\t{\n\t\t\tself::$channel->close();\n\t\t\tself::$channel = null;\n\t\t}\n\n\t\tif (!empty(self::$connection))\n\t\t{\n\t\t\tself::$connection->close();\n\t\t\tself::$connection = null;\n\t\t}\n\t}",
"function onClose(\\Ratchet\\ConnectionInterface $conn)\n {\n// echo 'BYE';\n }",
"public function Disconnect () {\n $this->sendString('QUIT');\n\n fclose($this->pop_conn);\n }",
"public static function terminate(): void {\n\t\tself::$sessionInstance->terminate ();\n\t}",
"public function disconnect()\n\t{\n\t\tself::$connected_client[self::$connection_params]->disconnect();\n\t\tself::$connected_client[self::$connection_params] = null;\n\t}",
"public function onConnectionClosed();",
"public function shutdown()\n {\n }",
"public function shutdown()\r\n {\r\n }",
"public function dispatchLoopShutdown()\n {\n //...\n }",
"function ts3client_stopConnection($serverConnectionHandlerID, $quitMessage) {}",
"public function __destruct()\r\n {\r\n if ( $this->state != self::STATE_NOT_CONNECTED )\r\n {\r\n $this->connection->sendData( 'QUIT' );\r\n $this->connection->getLine(); // discard\r\n $this->connection->close();\r\n }\r\n }",
"public function auto_shutdown() {\r\n\t\t$this->shutdown();\r\n\t}",
"function onClose(ConnectionInterface $conn)\n {\n $this->clients->detach($conn);\n }",
"public function shutdown()\n {\n }",
"function on_session_end() {\n}",
"public function quit()\n {\n $this->disconnect();\n }",
"public function terminate()\n {\n $this->io->text(\"Shutting down..\");\n // TODO: Dispatch console.terminate event ..maybe..?\n exit();\n }",
"function onClose(Ratchet\\ConnectionInterface $conn)\r\n {\r\n echo $conn->resourceId . \" has disconnected\\n\";\r\n\r\n $message = array(\r\n 'resourceId' => $conn->resourceId,\r\n 'type' => 'closeConnection'\r\n );\r\n \r\n foreach($this->clients as $client){\r\n if ($conn !== $client){\r\n $client->send(json_encode($message));\r\n }\r\n }\r\n\r\n $this->clients->detach($conn);\r\n }",
"function onClose(ConnectionInterface $conn)\n {\n $this->clients->detach($conn);\n\n echo \"Connection {$conn->resourceId} has disconnected\\n\";\n }",
"public function onKernelTerminate()\n {\n $this->session = null;\n }",
"public function shutdown()\n\t{\n\t\t$this->shutdown = true;\n\t\t$this->logger->log(LogLevel::NOTICE, 'Shutting down');\n\t}",
"public function onClose(ConnectionInterface $conn): void\n {\n $resourceId = $conn->resourceId;\n unset(\n $this->clients[$this->clientTask[$resourceId]][$resourceId],\n $this->clientTask[$resourceId]\n );\n echo \"Close connection {$resourceId}\\n\";\n }",
"public function disconnect() {\n\t\t@fclose ( $this->socket );\n\t}",
"protected function _disconnect() {\n\t\t@fclose($this->socket);\n\t\t$this->socket = NULL;\n\t}",
"function disconnect ()\n {\n if ( $this->socket )\n {\n $this->writeFrame(new StompFrame('DISCONNECT'));\n }\n socket_shutdown($this->socket, 1);\n usleep(500);\n socket_shutdown($this->socket, 2);\n socket_close($this->socket);\n $this->socket = NULL;\n }",
"public function close() {\n\t\t$this->sessionClosed = true;\n\t}",
"private function close()\n {\n socket_close($this->socket);\n }",
"public function close()\n {\n curl_close($this->_session);\n }",
"public static function sessionDestroyHandler();",
"abstract protected function logout(TcpClient $client);",
"protected function shutdown()\n {\n }",
"public function end() {\n\t\t$this->get = null;\n\t\t$this->post = null;\n\t\t$this->server = null;\n\t\t$this->header = null;\n\t\t$this->cookie = null;\n\t\t$this->files = null;\n\t\t$this->sw_request = null;\n\t\tif ($this->session !== null) {\n\t\t\t$handler = Container::getInstance()->get(Dispatcher::class)->getSessionHandler();\n\t\t\t$handler->write($this->session->id(), $this->session->encode());\n\t\t\t$this->session = null;\n\t\t}\n\t}",
"public function disconnect()\n\t{\n\t\t$this->disconnectInternal();\n\t}",
"public function end()\n\t{\n\t\t$this->set_process_state(false);\n\t}",
"public function shutdown()\n {\n \n }",
"abstract protected function onClientDisconnected(WebSocketClient $client);",
"protected function disconnect()\r\n {\r\n $this->log( \"Closing connection and shutting down.\" );\r\n \r\n fclose( $this->_conn );\r\n exit;\r\n }",
"private function shutdown(): void\n {\n $this->connectionPool->shutdown();\n\n foreach ($this->connectionHandlers as $connectionHandler) {\n $connectionHandler->shutdown();\n }\n\n while ($this->connectionPool->count() > 0) {\n $this->processConnectionPool();\n }\n\n $this->connectionPool->close();\n }",
"public function shutdown() {\n\t\t\t//\n\t\t}",
"protected function closeConnection()\n {\n fclose($this->client);\n }",
"function shutdown() ;",
"public function dispatchLoopShutdown()\n {\n\n }",
"public function shutdown()\n\t{\n\t\tif ( is_resource( $this->_stream ) )\n\t\t{\n\t\t\tfclose( $this->_stream );\n\t\t}\n\t}",
"public static function endSession()\n {\n if (!empty(self::$_start_time)) {\n $now = microtime(true);\n self::$_duration = $now - self::$_start_time;\n }\n }",
"private function close() {\n\t\t// Close socket connection if keep alive isn't supported\n\t\tif (!$this->canKeepAlive()) {\n\t\t\t$this->client->close();\n\t\t} else {\n\t\t\t// Read away socket data to prepare for next request\n\t\t\tif (!$this->isEmptyBody) {\n\t\t\t\twhile ($this->readChunk() !== \"\") {\n\t\t\t\t\t// Empty body\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public function shutdown()\n {\n // Do nothing. Can be overridden by extending classes.\n }",
"public function shutdown(): void\n {\n $this->handleOnShutDownListeners();\n }",
"public function shutdown(): void\n {\n $this->handleOnShutDownListeners();\n }"
] | [
"0.69729865",
"0.67111415",
"0.6370241",
"0.61782974",
"0.61782974",
"0.6175588",
"0.6137207",
"0.6137207",
"0.6137207",
"0.6137207",
"0.6137207",
"0.60816854",
"0.6079114",
"0.6077686",
"0.606116",
"0.6059999",
"0.60517514",
"0.60327137",
"0.60099095",
"0.59980047",
"0.59951276",
"0.595458",
"0.5934931",
"0.5928848",
"0.58427703",
"0.58407426",
"0.58251804",
"0.58250934",
"0.58101696",
"0.57946986",
"0.5794162",
"0.5794162",
"0.57882184",
"0.57749057",
"0.57565874",
"0.57527095",
"0.5730237",
"0.57178843",
"0.5695178",
"0.5694179",
"0.56879056",
"0.5676418",
"0.5676418",
"0.5676418",
"0.5663619",
"0.5661828",
"0.56440973",
"0.5638857",
"0.5638857",
"0.5634146",
"0.56318814",
"0.5619741",
"0.56109434",
"0.5599966",
"0.5599929",
"0.55950403",
"0.5581161",
"0.5577958",
"0.5571508",
"0.5570812",
"0.5567888",
"0.5565956",
"0.556518",
"0.55627435",
"0.5551119",
"0.55503917",
"0.55299944",
"0.5518998",
"0.551892",
"0.5518891",
"0.5497284",
"0.5495818",
"0.549527",
"0.5488522",
"0.5485977",
"0.548341",
"0.54827315",
"0.54795414",
"0.54719615",
"0.5467922",
"0.5467241",
"0.5465074",
"0.545259",
"0.5452569",
"0.545168",
"0.5450292",
"0.54428744",
"0.5441204",
"0.5439585",
"0.543525",
"0.5428533",
"0.54150283",
"0.5408087",
"0.5393902",
"0.53903776",
"0.5390249",
"0.53788936",
"0.5377774",
"0.53771913",
"0.53771913"
] | 0.5760764 | 34 |
Routes requests from the message queue based off the current authorization state and what protocol handler the request is mapped to. | protected function dispatchRequest(LdapMessageRequest $message): void
{
if (!$this->isValidRequest($message)) {
return;
}
$this->messageIds[] = $message->getMessageId();
# Send auth requests to the specific handler for it...
if ($this->authorizer->isAuthenticationRequest($message->getRequest())) {
$this->authorizer->setToken($this->handleAuthRequest($message));
return;
}
$request = $message->getRequest();
$handler = $this->protocolHandlerFactory->get(
$request,
$message->controls()
);
# They are authenticated or authentication is not required, so pass the request along...
if ($this->authorizer->isAuthenticated() || !$this->authorizer->isAuthenticationRequired($request)) {
$handler->handleRequest(
$message,
$this->authorizer->getToken(),
$this->handlerFactory->makeRequestHandler(),
$this->queue,
$this->options
);
# Authentication is required, but they have not authenticated...
} else {
$this->queue->sendMessage($this->responseFactory->getStandardResponse(
$message,
ResultCode::INSUFFICIENT_ACCESS_RIGHTS,
'Authentication required.'
));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function beforeRoutingMiddleWare()\n {\n if (isset($this->before[$_SERVER['REQUEST_METHOD']])) {\n $this->handle($this->before[$_SERVER['REQUEST_METHOD']]);\n }\n }",
"private static function runDispatcher()\n {\n if (self::$groupHalt || self::$halts) {\n return;\n }\n $uri = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);\n $method = $_SERVER['REQUEST_METHOD'];\n $searches = array_keys(static::$patterns);\n $replaces = array_values(static::$patterns);\n $found_route = false;\n\n self::$routes = str_replace('//', '/', self::$routes);\n // Check if route is defined without regex\n\n if (in_array($uri, self::$routes)) {\n $route_pos = array_keys(self::$routes, $uri);\n foreach ($route_pos as $route) {\n // Using an ANY option to match both GET and POST requests\n if (self::$methods[$route] === $method || self::$methods[$route] === 'ANY') {\n //dd(preg_match('#^' . $route . '$#', $uri, $matched));\n\n // If route is not an object\n if (!is_object(self::$callbacks[$route])) {\n self::haltOnMatch();\n $found_route = true;\n self::$currentURI = $uri;\n\n if (self::$isGroup) {\n self::$groupHalt = true;\n self::$groupController->{self::$groupMethodName}();\n }\n\n // Grab all parts based on a / separator\n $parts = explode('/', self::$callbacks[$route]);\n\n // Collect the last index of the array\n $last = end($parts);\n\n // Grab the controller name and method call\n $segments = explode('@', $last);\n\n if (count($segments) >= 2) {\n // Instanitate controller\n $controller = new $segments[0]();\n\n // Call method\n $controller->{$segments[1]}();\n } else {\n Viewer::file(self::$callbacks[$route]);\n }\n\n if (self::$halts) {\n return true;\n }\n } else {\n self::haltOnMatch();\n $found_route = true;\n self::$currentURI = $uri;\n\n // Call closure\n if (self::$isGroup) {\n self::$groupHalt = true;\n self::$groupController->{self::$groupMethodName}();\n }\n\n if (is_object(self::$callbacks[$route])) {\n call_user_func(self::$callbacks[$route]);\n } else {\n Viewer::file(self::$callbacks[$route]);\n }\n\n if (self::$halts) {\n return true;\n }\n }\n }\n }\n } else {\n // Check if defined with regex\n $pos = 0;\n foreach (self::$routes as $route) {\n if (strpos($route, ':') !== false) {\n $route = str_replace($searches, $replaces, $route);\n }\n\n if (preg_match('#^'.$route.'$#', $uri, $matched)) {\n if (self::$methods[$pos] === $method || self::$methods[$pos] === 'ANY') {\n self::haltOnMatch();\n $found_route = true;\n self::$currentURI = $uri;\n\n if (self::$isGroup) {\n self::$groupHalt = true;\n self::$groupController->{self::$groupMethodName}();\n }\n\n // Remove $matched[0] as [1] is the first parameter.\n array_shift($matched);\n if (!is_object(self::$callbacks[$pos])) {\n // Grab all parts based on a / separator\n $parts = explode('/', self::$callbacks[$pos]);\n // Collect the last index of the array\n $last = end($parts);\n // Grab the controller name and method call\n $segments = explode('@', $last);\n // Instanitate controller\n $controller = new $segments[0]();\n\n // Fix multi parameters\n if (!method_exists($controller, $segments[1])) {\n //\"controller and action not found\"\n Debugger::report(500);\n } else {\n call_user_func_array([$controller, $segments[1]], $matched);\n }\n if (self::$halts) {\n return;\n }\n } else {\n self::haltOnMatch();\n $found_route = true;\n self::$currentURI = $uri;\n\n if (self::$isGroup) {\n self::$groupHalt = true;\n self::$groupController->{self::$groupMethodName}();\n }\n\n call_user_func_array(self::$callbacks[$pos], $matched);\n if (self::$halts) {\n return;\n }\n }\n } else {\n // continue searching\n }\n }\n $pos++;\n }\n }\n\n // Tell if there is no found grouped routes\n return false;\n }",
"public function route() {\n\t\t// Start the profiler\n\t\tProfiler::register('Core', 'Router');\n\n\t\t// First, let's look at the URL the user supplied\n\t\t$requestUrl = array_values(array_filter(explode('/', Request::getUrl())));\n\t\t$requestRoute = null;\n\n\t\t// Loop over each route and test to see if they are valid\n\t\tforeach (self::$_routes as $route) {\n\t\t\tif ($this->routeTest($requestUrl, $route)) {\n\t\t\t\t$requestRoute = $route;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// We have completed the route matching\n\t\t// Finish the setup of the request object\n\t\tProfiler::register('Core', 'Request');\n\t\tif ($requestRoute) {\n\t\t\t$_GET['controller'] = $route->endpoint['controller'];\n\t\t\t$_GET['action'] = $route->endpoint['action'];\n\t\t\tRequest::setUrlFragments(str_replace($this->_routePath, '', Request::getUrl()));\n\t\t} else {\n\t\t\tRequest::setUrlFragments(Request::getUrl(), true);\n\t\t}\n\t\tProfiler::deregister('Core', 'Request');\n\n\t\t// Inform the event listener a request has been initialised\n\t\tEvent::trigger(\n\t\t\t'initRequest',\n\t\t\tarray(\n\t\t\t\t'controller' => Request::get('controller'),\n\t\t\t\t'action' => Request::get('action')\n\t\t\t)\n\t\t);\n\n\t\t// And stop the profiler\n\t\tProfiler::deregister('Core', 'Router');\n\t\tProfiler::deregister('Core', 'Front');\n\n\t\t// And dispatch\n\t\tDispatcher::loadController(\n\t\t\tRequest::get('controller'),\n\t\t\tRequest::get('action')\n\t\t);\n\t}",
"public function dispatch()\n\t{\n\t\t$method = $_SERVER['REQUEST_METHOD'];\n\t\tif($method == 'OPTIONS')\n\t\t{\n\t\t\treturn $this->handle(function() {\n\t\t\t\t$response = array('options' => 'Defined!');\n\t\t\t\treturn [200, $response];\n\t\t\t});\n\t\t}\n\n\t\t$uri = $_SERVER['REQUEST_URI'];\n\n\t\t$end = strpos($uri, '?');\n\t\t$path = substr($uri, 0, $end ? $end : strlen($uri));\n\n\t\t$action = NULL;\n\t\t// Match directly, we skip it.\n\t\tif(!empty($this->_routes[$method][$path]))\n\t\t{\n\t\t\t$action = $this->_routes[$method][$path];\n\t\t}\n\n\t\t$argumentsList = array();\n\n\t\tif($action === NULL)\n\t\t{\n\t\t\t/**\n\t\t\t * Match URL\n\t\t\t *\n\t\t\t * WARNING: Known bug, the first endpoint with params to match will be choosen!\n\t\t\t * Example for the path: /order/125/update\n\t\t\t * - /order\n\t\t\t * - /order/{id} <-- This endpoint will be choosen\n\t\t\t * - /order/{id}/update\n\t\t\t */\n\t\t\tforeach($this->_routes[$method] AS $endpoint => $actionParam)\n\t\t\t{\n\t\t\t\t/**\n\t\t\t\t * Retrieve the params from the endpoint.\n\t\t\t\t */\n\t\t\t\t$paramRegex = '/{[^}]*}/';\n\t\t\t\tpreg_match_all($paramRegex, $endpoint, $params);\n\n\t\t\t\t/* The endpoint wasn't requiring any param, it should be matched before, we skip it. */\n\t\t\t\tif(empty($params[0]))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Generate the regex for URL matching\n\t\t\t\t */\n\t\t\t\t$arguments = array();\n\t\t\t\tforeach($params[0] AS $param)\n\t\t\t\t{\n\t\t\t\t\t$param_name = substr($param, 1, -1);\n\t\t\t\t\t$regexp = '(?P<' . $param_name . '>[^/]+)';\n\t\t\t\t\t$endpoint = str_replace($param, $regexp, $endpoint);\n\t\t\t\t\t$arguments[] = $param_name;\n\t\t\t\t}\n\t\t\t\t$endpoint_matcher = '@^' . $endpoint . '|/?$@';\n\n\t\t\t\t/**\n\t\t\t\t * Match the endpoint.\n\t\t\t\t */\n\t\t\t\tpreg_match($endpoint_matcher, $path, $args);\n\n\t\t\t\t/**\n\t\t\t\t * Endpoint doesn't match.\n\t\t\t\t */\n\t\t\t\tif(empty($args[0]))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Set action and retrieve the list of values.\n\t\t\t\t */\n\t\t\t\t$action = $actionParam;\n\t\t\t\tforeach($arguments AS $name)\n\t\t\t\t{\n\t\t\t\t\t$argumentsList[$name] = $args[$name];\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif(empty($action))\n\t\t{\n\t\t\treturn $this->handle(function() use($method, $path) {\n\t\t\t\t$response = array('error' => 'Not found!', 'method' => $method, 'route' => $path);\n\t\t\t\treturn [404, $response];\n\t\t\t});\n\t\t}\n\n\t\tif(!$this->checkAuthentication($action))\n\t\t{\n\t\t\treturn $this->handle(function() use($action) {\n\t\t\t\treturn [401, 'Access denied!'];\n\t\t\t});\n\t\t}\n\n\t\treturn $this->handle($action['action'], $argumentsList);\n\t}",
"public function register_routes() {\n\n\t\t\\add_filter( 'do_parse_request', array( $this, 'handle_routing' ) );\n\n\t}",
"protected function forwardToReferringRequest() {}",
"public function route()\n\t{\n\t\t/* [http|https]/[Ajax|]/[Get|Post|Delete|Put]/uri */\n\t\t$this->route = $this->route_raw = ($this->c->Request->is_https ? 'https' : 'http').'/'.($this->c->Request->is_ajax ? 'Ajax' : '').'/'.$this->c->Request->request.'/'.$this->c->Request->uri;\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->preRouter();\n\n\t\t/* rewrite dispatch route */\n\t\tforeach ($this->c->router['routes'] as $regexpath => $switchto) {\n\t\t\tif (preg_match($regexpath, $this->route)) {\n\t\t\t\t/* we got a match */\n\t\t\t\t$this->route = preg_replace($regexpath, $switchto, $this->route);\n\t\t\t\t$this->route_matched = $regexpath;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t/* call dispatch event */\n\t\t$this->c->Event->postRouter();\n\n\t}",
"public function RouteRequest ();",
"public function dispatch ()\n {\n $matchCount = $diffCount = 0;\n $matches = $differs = array();\n\n foreach ($this->routes as $id => $route) {\n if (preg_match(\"#^{$route}$#\", $this->request)) {\n $matchCount++;\n $matches[$id] = $route;\n } else {\n $diffCount++;\n $differs[$id] = $route;\n }\n }\n\n if (count($matches) <= 0) {\n http_response_code(404);\n echo \"<h1>404</h1>\";\n throw new \\Exception(\"No route was found for: {$this->request}\");\n die;\n } elseif (count($matches) > 1) {\n http_response_code(500);\n die(\"Looks like there is a problem trying to find the right location... Stupid devs....\");\n } elseif (count($matches) === 1) {\n foreach ($matches as $id => $match) {\n $request = explode('/', $this->request);\n $slugs = explode('/', $match);\n\n foreach ($slugs as $key => $slug) {\n if ($slug == '.+') {\n array_push($this->args, $request[$key]);\n }\n }\n\n call_user_func_array($this->methods[$id], $this->args);\n }\n }\n }",
"protected function _parse_routes()\n {\n $uri = implode('/', $this->uri->segments);\n\n // Get HTTP verb\n $http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri])) {\n // Check default routes format\n if (is_string($this->routes[$uri])) {\n $this->_set_request(explode('/', $this->routes[$uri]));\n return;\n }\n // Is there a matching http verb?\n elseif (is_array($this->routes[$uri]) && isset($this->routes[$uri][$http_verb])) {\n $this->_set_request(explode('/', $this->routes[$uri][$http_verb]));\n return;\n }\n }\n\n // decryption of module/controller/function name in admin\n if ($this->config->item('is_admin') == 1) {\n if ($this->config->item('ADMIN_URL_ENCRYPTION') == 'Y') {\n $uri_t = str_replace('admin/', '', $uri);\n if ($uri_t != \"\") {\n require_once(APPPATH . '/libraries/Ci_encrypt.php');\n $CI_Enc = new Ci_encrypt();\n $uri_t_decode = $CI_Enc->decrypt($uri_t, true);\n $CI_Enc->convertEncryptedVars();\n }\n $uri = 'admin/' . $uri_t_decode;\n }\n }\n // Loop through the route array looking for wildcards\n foreach ($this->routes as $key => $val) {\n // Check if route format is using http verb\n if (is_array($val)) {\n if (isset($val[$http_verb])) {\n $val = $val[$http_verb];\n } else {\n continue;\n }\n }\n\n // Convert wildcards to RegEx\n #$key = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $key);\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n // Does the RegEx match?\n if (preg_match('#^' . $key . '$#', $uri, $matches)) {\n // Are we using callbacks to process back-references?\n if (!is_string($val) && is_callable($val)) {\n // Remove the original string from the matches array.\n array_shift($matches);\n\n // Execute the callback using the values in matches as its parameters.\n $val = call_user_func_array($val, $matches);\n }\n // Are we using the default routing method for back-references?\n elseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE) {\n $val = preg_replace('#^' . $key . '$#', $val, $uri);\n }\n\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request(array_values($this->uri->segments));\n }",
"public function matchRoute() {\n\t\tforeach($this->routes as $pattern => $callback) {\n\t\t\tif (preg_match('{^' . $pattern . '$}', $this->url) === 1) {\n\t\t\t\tif(!isset($_SESSION)){ session_start(); }\n\t\t\t\t// Parameters\n\t\t\t\t$params = array();\n\t\t\t\tif (isset($callback['params'])) {\n\t\t\t\t\t$url = explode('/', $this->url);\n\t\t\t\t\t$url = array_slice($url, -1 * count($callback['params']));\n\t\t\t\t\t$params = array_combine(array_keys($callback['params']), $url);\n\t\t\t\t}\n\t\t\t\t// Secured (Backend)\n\t\t\t\tif (isset($callback['secured'])) {\n\t\t\t\t\tif (isset($_SESSION['auth']) && $_SESSION['auth'] === true) {\n\t\t\t\t\t\t$this->dispatch($callback['controller'], $callback['action'], $params);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->url = 'http://' . $_SERVER['SERVER_NAME'] . '/login';\n\t\t\t\t\t\theader('location:' . $this->url);\n\t\t\t\t\t}\n\t\t\t\t// Secured (Frontend)\n\t\t\t\t} elseif (isset($callback['clientsecured'])) {\n\t\t\t\t\tif (isset($_SESSION['fauth']) && $_SESSION['fauth'] === true) {\n\t\t\t\t\t\t$this->dispatch($callback['controller'], $callback['action'], $params);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$this->url = 'home/login';\n\t\t\t\t\t\theader('location:' . $this->url);\n\t\t\t\t\t}\n\t\t\t\t// Simple\n\t\t\t\t} else {\n\t\t\t\t\t$this->dispatch($callback['controller'], $callback['action'], $params);\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// No match\n\t\t$this->dispatch('Default', 'error', array('code' => 404));\n\t\treturn;\n\t}",
"public function route()\n {\n $this->dashboardRouting($this->relativeCmsUri);\n $this->logOffRouting($this->request, $this->relativeCmsUri);\n $this->apiRouting($this->relativeCmsUri);\n $this->documentRouting($this->userRights, $this->relativeCmsUri);\n $this->valuelistsRouting($this->userRights, $this->relativeCmsUri);\n $this->sitemapRouting($this->userRights, $this->relativeCmsUri);\n $this->redirectRouting($this->userRights, $this->relativeCmsUri);\n $this->imageRouting($this->userRights, $this->relativeCmsUri);\n $this->filesRouting($this->userRights, $this->relativeCmsUri);\n $this->configurationRouting($this->userRights, $this->relativeCmsUri);\n $this->searchRouting($this->relativeCmsUri);\n }",
"protected function _parse_routes()\n\t{\n\t\t$uri = implode('/', $this->uri->segments);\n\n\t\t// Get HTTP verb\n\t\t$http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n\t\t// Loop through the route array looking for wildcards\n\t\tforeach ($this->routes as $key => $val)\n\t\t{\n\t\t\t// Check if route format is using HTTP verbs\n\t\t\tif (is_array($val))\n\t\t\t{\n\t\t\t\t$val = array_change_key_case($val, CASE_LOWER);\n\t\t\t\tif (isset($val[$http_verb]))\n\t\t\t\t{\n\t\t\t\t\t$val = $val[$http_verb];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Convert wildcards to RegEx\n\t\t\t$key = str_replace(array(':any', ':num',':all'), array('[^/]+', '[0-9]+','(?!(Techsystem|techsystem|Vindex\\/tech5sManagerControl).*$).*'), $key);\n\t\t\t// $key = str_replace(array(':any', ':num'), array('[^/]+', '[0-9]+'), $key);\n\t\t\t// Does the RegEx match?\n\t\t\tif (preg_match('#^'.$key.'$#', $uri, $matches))\n\t\t\t{\n\t\t\t\t// Are we using callbacks to process back-references?\n\t\t\t\tif ( ! is_string($val) && is_callable($val))\n\t\t\t\t{\n\t\t\t\t\t// Remove the original string from the matches array.\n\t\t\t\t\tarray_shift($matches);\n\n\t\t\t\t\t// Execute the callback using the values in matches as its parameters.\n\t\t\t\t\t$val = call_user_func_array($val, $matches);\n\t\t\t\t}\n\t\t\t\t// Are we using the default routing method for back-references?\n\t\t\t\telseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$val = preg_replace('#^'.$key.'$#', $val, $uri);\n\t\t\t\t}\n\n\t\t\t\t$this->_set_request(explode('/', $val));\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\n\t\t// If we got this far it means we didn't encounter a\n\t\t// matching route so we'll set the site default route\n\t\t$this->_set_request(array_values($this->uri->segments));\n\t}",
"private static function traverseRoutes() {\r\n\r\n\r\n\t\t$method = $_SERVER['REQUEST_METHOD'];\r\n\t\t$requested = $_SERVER['REQUEST_URI'];\r\n\t\t$path = $requested; // set our path to our request\r\n\t\t$path = explode('?',$path)[0]; // check for a query string. At zero index\r\n\t\t$path = strlen($path) > 1 ? rtrim($path,'/') : $path; //strip the slash at the end of the string (if its there). rtrim will take care of this automatically\r\n\t\t$parts = explode('/',$path);\r\n\t\t$parameters = array(); // Start traversal process. These are the parameters that we will pass\r\n\t\t$level = &self::$routes[$method]; // same as when we are registering. Grab a reference to our trunk\r\n\t\t\r\n\t\t// traverse the tree and determine if we have a valid route\r\n\t\treset($parts);\r\n\t\twhile(($part = current($parts)) !== false) {\r\n\r\n\t\t\tif(isset($level[$part])) { // found, now we move down one more level\r\n\t\t\t\t$level = &$level[$part];\r\n\t\t\t} elseif(isset($level['@'])) { // didn't find a defined, but we have a wild card. Go down this level\r\n\t\t\t\t$level = &$level['@'];\r\n\t\t\t\t$parameters[$level['name']] = urldecode($part);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new RouteException($requested.' route not found');\r\n\t\t\t}\r\n\r\n\t\t\tnext($parts);\r\n\t\t}\r\n\r\n\t\t// we have reached the final level. Extract the required information and dig in \r\n\t\t$callback = $level['*'];\r\n\t\tif(is_callable($callback)) {\r\n\t\t\t$callback($parameters);\r\n\t\t} else {\r\n\t\t\t$callbackParts = explode('@', $callback);\r\n\t\t\t$class = 'App\\Controllers\\\\'.$callbackParts[0];\r\n\t\t\t$function = $callbackParts[1];\r\n\t\t\t$controller = new $class();\r\n\t\t\treturn $controller->{$function}($parameters);\r\n\t\t}\r\n\r\n\t}",
"public function run(): void\n {\n $this->currentRoute = null;\n\n if (array_key_exists($currentRoute = $this->resolveRouterUri($this->currentUri), $this->routes[\"REDIRECT\"])) {\n $route = $this->routes[\"REDIRECT\"][$currentRoute];\n $redirectRoute = $this->getByName($route[\"redirect\"]);\n\n $this->redirectRoute(\n [$redirectRoute, $route],\n $route[\"permanent\"]\n );\n }\n\n $this->resolveRequestMethod();\n\n foreach ($this->routes[$this->requestMethod] as $route) {\n if (preg_match(\"~^\" . $route->getRoute() . \"$~\", $this->currentUri)) {\n $this->currentRoute = $route;\n }\n }\n\n $this->dispatchRoute();\n }",
"public static function run() {\n\t\t// Validate user against spam blacklists\n\t\tif (PHP_SAPI!='cli' &&\n\t\t\tisset(self::$global['DNSBL']) && self::spam(self::realIP())) {\n\t\t\tif (isset($_global['SPAM']))\n\t\t\t\t// Spammer detected; Send to blackhole\n\t\t\t\tself::reroute($_global['SPAM']);\n\t\t\telse\n\t\t\t\t// HTTP 404 message\n\t\t\t\tself::http404();\n\t\t}\n\t\t// Process routes\n\t\tif (isset(self::$global['ROUTES'])) {\n\t\t\t$_found=FALSE;\n\t\t\tkrsort(self::$global['ROUTES']);\n\t\t\tforeach (self::$global['ROUTES'] as $_regex=>$_route) {\n\t\t\t\tif (!preg_match($_regex,$_SERVER['REQUEST_URI'],$_args))\n\t\t\t\t\tcontinue;\n\t\t\t\t$_found=TRUE;\n\t\t\t\t// Inspect each defined route\n\t\t\t\tforeach ($_route as $_method=>$_proc) {\n\t\t\t\t\tif ($_SERVER['REQUEST_METHOD']!=$_method)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t// Save named regex captures\n\t\t\t\t\tforeach ($_args as $_key=>$_arg)\n\t\t\t\t\t\tif (is_numeric($_key) && $_key)\n\t\t\t\t\t\t\tunset($_args[$_key]);\n\t\t\t\t\tself::$global['PARAMS']=$_args;\n\t\t\t\t\t// Default: Do not cache\n\t\t\t\t\tself::httpCache(0);\n\t\t\t\t\t// Save the current time\n\t\t\t\t\t$_time=time();\n\t\t\t\t\tif ($_method=='GET' && $_proc[1]) {\n\t\t\t\t\t\t$_SERVER['REQUEST_TTL']=$_proc[1];\n\t\t\t\t\t\t// Save to/retrieve from cache\n\t\t\t\t\t\tself::urlCache($_proc);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t// Capture output\n\t\t\t\t\t\tob_start();\n\t\t\t\t\t\tself::call($_proc[0]);\n\t\t\t\t\t\tself::$global['RESPONSE']=ob_get_contents();\n\t\t\t\t\t\tob_end_clean();\n\t\t\t\t\t}\n\t\t\t\t\t$_elapsed=microtime(TRUE)-$_time;\n\t\t\t\t\tif ((self::$global['THROTTLE']/1e3)>$_elapsed)\n\t\t\t\t\t\tusleep(\n\t\t\t\t\t\t\t1e6*(self::$global['THROTTLE']/\n\t\t\t\t\t\t\t1e3-$_elapsed)\n\t\t\t\t\t\t);\n\t\t\t\t\tif (self::$global['RESPONSE'] && \n\t\t\t\t\t\t!self::$global['QUIET'])\n\t\t\t\t\t\t// Display response\n\t\t\t\t\t\techo self::$global['RESPONSE'];\n\t\t\t\t\t// Hail the conquering hero\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// No such Web page\n\t\tself::http404();\n\t}",
"public function routes() {\n $storage = $this->entityTypeManager->getStorage('graphql_server');\n /** @var \\Drupal\\graphql\\Entity\\ServerInterface[] $servers */\n $servers = $storage->loadMultiple();\n $routes = [];\n\n // Allow all authentication providers by default.\n $auth = array_keys($this->authenticationCollector->getSortedProviders());\n\n foreach ($servers as $id => $server) {\n $path = $server->get('endpoint');\n\n $routes[\"graphql.query.$id\"] = (new Route($path))\n ->addDefaults([\n 'graphql_server' => $id,\n '_graphql' => TRUE,\n '_controller' => '\\Drupal\\graphql\\Controller\\RequestController::handleRequest',\n '_disable_route_normalizer' => TRUE,\n ])\n ->addRequirements([\n '_graphql_query_access' => 'graphql_server:{graphql_server}',\n '_format' => 'json',\n ])\n ->addOptions([\n '_auth' => $auth,\n 'no_cache' => TRUE,\n 'default_url_options' => ['path_processing' => FALSE],\n 'parameters' => ['graphql_server' => ['type' => 'entity:graphql_server']]\n ]);\n }\n\n return $routes;\n }",
"public function setRoutes()\n {\n $this->route('/test_extend', function() {\n $this->get(function($request, $response, $params) {\n $array = array_merge($this->foo(), $request->getHeaders());\n $response->write(200, $array);\n\n return $response;\n })->auth(\\Dioxide\\AUTH_BASIC); // require basic auth to use this method\n });\n\n\n // send the request headers back to the user\n $this->route('/headers', function() {\n $this->get(function($request, $response, $params) {\n $rateHeaders = $this->emit('rate.limit.headers', [$request->getRealRemoteAddr()]);\n\n $response->write(200, $request->getHeaders()); // send the request headers back\n $response->headers($rateHeaders);\n\n return $response;\n });\n });\n\n $this->route('/post_test', function() {\n $this->post(function($request, $response, $params) {\n $response->write(200, $request->getContent());\n return $response;\n });\n });\n\n $this->route('/server_vars', function() {\n $this->get(function($request, $response, $params) {\n $response->write(200, $_SERVER);\n return $response;\n });\n });\n\n $this->route('/cache_test', function() {\n $this->get(function($request, $response, $params) {\n $response->write(200, ['foo' => 'bar']); // will be a 304 with no response body if cached\n return $response;\n });\n });\n\n }",
"public function parseRoutes()\n {\n $this->cacheRoutes();\n\n $request_uri = $this->prepareUrl($_SERVER['REQUEST_URI']);\n\n foreach (static::$routes as $uri => $data) {\n static::$uri = $uri;\n static::$routingType = $data['routingType'];\n\n if ($this->compareMethods($data['methods'], $data['routingType']) === false)\n continue;\n\n if ($this->parseUri($uri, $request_uri) === false)\n if (static::$urlCatcher === false)\n continue;\n\n if ($this->parseMiddleware($data['middleware']) === false)\n break;\n\n $this->parseServices($data['services']);\n\n if ($data['locale'] !== null)\n App::setLocale($data['locale']);\n\n // Execute\n $this->executeRoute($uri, $data);\n\n RouterStatus::increase();\n break;\n }\n\n if (RouterStatus::get() === 0) {\n static::$uri = null;\n abort(404);\n\n return;\n }\n }",
"public function handleRequest() {}",
"public function handleRouting(){\n\t\t$request = ControllerRequest::getInstance();\n\t\t$soapRawRequest = $request->getRawBody();\n\t\t$domDocument = new DOMDocument();\n\t\t$xmlValidation = @$domDocument->loadXML($soapRawRequest);\n\t\tif($xmlValidation==false){\n\t\t\t$soapException = new SoapException('SOAP Envelope mal formado. '.$php_errormsg);\n\t\t\t$soapException->setFaultCode('Sender');\n\t\t\tthrow $soapException;\n\t\t}\n\n\t\tif(isset($_SERVER['HTTP_SOAPACTION'])){\n\t\t\t$soapAction = str_replace(\"\\\"\", \"\", $_SERVER['HTTP_SOAPACTION']);\n\t\t} else {\n\t\t\tif(isset($_SERVER['CONTENT_TYPE'])){\n\t\t\t\tif(preg_match('/action=\"(.+)\"/', $_SERVER['CONTENT_TYPE'], $matches)){\n\t\t\t\t\t$soapAction = $matches[1];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tthrow new SoapException('No se indicó la acción SOAP a ejecutar');\n\t\t\t}\n\t\t}\n\n\t\t$soapAction = explode('#', $soapAction);\n\t\tforeach($domDocument->getElementsByTagNameNS($soapAction[0], $soapAction[1]) as $domElement){\n\t\t\t$parameters = array();\n\t\t\tforeach($domElement->childNodes as $actionParam){\n\t\t\t\tif($actionParam->nodeType==1){\n\t\t\t\t\t$paramType = $actionParam->getAttributeNS($this->_xmlSchemaNamespace, 'type');\n\t\t\t\t\tif($paramType=='ns2:Map'){\n\t\t\t\t\t\t$parameters[] = $this->_getXSIMap($actionParam);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif($paramType=='SOAP-ENC:Array'||$paramType=='enc:Array'){\n\t\t\t\t\t\t\t$parameters[] = $this->_decodeSoapArray($actionParam);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$parameters[] = $this->_decodeXSDType($paramType, $actionParam->nodeValue);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tRouter::setAction($soapAction[1]);\n\t\t\tRouter::setParameters($parameters);\n\t\t}\n\t}",
"public function handleRequest() {\n // Make sure the action parameter exists\n $this->requireParam('action');\n\n // Call the correct handler based on the action\n switch($this->requestBody['action']) {\n\n case 'checkoutLocker':\n $this->handleCheckoutLocker();\n\t\t\t\tbreak;\n\n\t\t\tcase 'remindLocker':\n $this->handleRemindLocker();\n\t\t\t\tbreak;\n\n\t\t\tcase 'returnLocker':\n $this->handleReturnLocker();\n\t\t\t\tbreak;\n\n default:\n $this->respond(new Response(Response::BAD_REQUEST, 'Invalid action on Locker resource'));\n }\n }",
"public static function performRouting(){\n // When patterns are defined, try to parse friendly URLs at first\n if(is_array(self::$urlPatterns)){\n if(self::performFriendlyRouting()){\n return;\n }\n }\n\n // Use standard routing method\n if(self::performStandardRouting()){\n return;\n }\n\n // Execute controller set as a fallback\n if(!self::executeController(self::$notFoundFallbackController)){\n die(\"Dispatcher: Failed to execute fallback controller\");\n }\n }",
"public function run() {\r\n $this->routeRequest(new Request());\r\n }",
"public function run()\n {\n $requested_url = explode('/', $this->requestUrl);\n\n if (!empty($this->definedRoutes[$this->requestMethod])) {\n foreach ($this->definedRoutes[$this->requestMethod] as $route => $action) {\n $route = explode('/', $route);\n $route_depth = count($route);\n\n // Check for defined route parameters\n for( $i = 0; $i < $route_depth; $i++) {\n if (preg_match('/\\{([\\w?]+?)\\}/',$route[$i])) {\n if (isset($requested_url[$i])) {\n array_push($this->requestParameters, $requested_url[$i]);\n // replace defined route parameters with peer request url parameter for final comparison\n $route[$i] = $requested_url[$i];\n }\n }\n }\n\n // Check for unreplaced route parameters and delete them if are optional parameters (for final comparison)\n for ($j = 0; $j < $route_depth; $j++) {\n if (preg_match('/\\{([\\w]+?)\\?}/', $route[$j])) {\n unset($route[$j]);\n }\n }\n\n $route = implode('/', $route);\n\n // Final comparision. Check requested url is equal to current checking route\n if ($route == $this->requestUrl) {\n $this->matched = true;\n\n if ($action instanceof Closure) {\n return call_user_func_array($action, $this->requestParameters);\n } else if($this->isController($action)) {\n return $this->loadController($action);\n } else {\n throw new Exception('Invalid action for route');\n }\n break; // Route found, stop the operations\n } else {\n $this->reset();\n }\n }\n }\n\n if ($this->matched === false) {\n return $this->exception->notFound();\n }\n }",
"protected function loadBackendRoutes() {}",
"public function dispatch()\r\n {\r\n $route = $this->searchRoute();\r\n\r\n $this->filterRoute();\r\n\r\n if (count($route) === 0) {\r\n $this->run404();\r\n }\r\n\r\n $this->runCallback($route);\r\n }",
"protected function _handle()\n {\n return $this\n ->_addData('post', $_POST)\n ->_addData('get', $_GET)\n ->_addData('server', $_SERVER)\n ->_handleRequestRoute();\n }",
"protected function executeRouter(Router $router) {\n\n foreach ($router->queue as $middleware) {\n\n // if $middleware is router call this function recursively.\n if ($middleware instanceof Router) {\n\n if ($this->matchUrl($middleware->route, $router->req->url)) {\n $router->executeRouter($middleware);\n }\n\n continue;\n }\n\n // match http method\n if (!($middleware->method === 'ALL' || $middleware->method === $router->req->method)) {\n continue;\n }\n\n // match route\n if (!$this->matchUrl($router->mountpath . $middleware->route, $router->req->url)) {\n continue;\n }\n\n ($middleware->closure) ($router->mountpath, $router->req, $router->res);\n }\n }",
"public function dispatch(): ResponseInterface\n {\n if(!isset($this->current_route)){\n $this->current_route = $this->resolve($this->current_method, $this->current_url);\n }\n\n $hasRoute = isset($this->current_route) && !empty($this->current_route);\n\n if($hasRoute === FALSE){\n return $this->notFound();\n }\n\n $route = $this->current_route;\n $arguments = $route['arguments'] ?? [];\n \\define('INITPHP_ROUTER_CURRENT_ARGUMENTS', $arguments);\n\n $filters = [\n 'before' => [],\n 'after' => [],\n ];\n if(isset($route['options']['middleware']['before'])){\n $filters['before'] = $route['options']['middleware']['before'];\n unset($route['options']['middleware']['before']);\n }\n if(isset($route['options']['middleware']['after'])){\n $filters['after'] = $route['options']['middleware']['after'];\n unset($route['options']['middleware']['after']);\n }\n if(isset($route['options']['middleware']) && !empty($route['options']['middleware'])){\n $filters['before'] = \\array_merge($route['options']['middleware'], $filters['before']);\n $filters['after'] = \\array_merge($route['options']['middleware'], $filters['after']);\n unset($route['options']['middleware']);\n }\n\n $this->middleware_handle($filters['before'], $arguments, self::BEFORE);\n $responseStatusCode = (int)$this->response->getStatusCode();\n if($responseStatusCode < 200 || $responseStatusCode > 299){\n return $this->response;\n }\n if ($route['methods'] === ['LINK']) {\n return $this->execute($route['execute'], $arguments, self::LINK);\n } else {\n if(\\is_callable($route['execute'])){\n \\define('INITPHP_ROUTER_CURRENT_CONTROLLER', '__CALLABLE__');\n \\define('INITPHP_ROUTER_CURRENT_METHOD', '');\n $this->response = $this->execute($route['execute'], $arguments);\n }else{\n $parse = $this->getControllerMethod($route['execute'], $route['options']);\n $parse['controller'] = $this->controllerFind($parse['controller']);\n $reflection = new \\ReflectionClass($parse['controller']);\n $controller = $this->getClassContainer($reflection);\n $this->middleware_handle($this->controller_middlewares_property($controller, $parse['method'], self::BEFORE), $arguments, self::BEFORE);\n \\define('INITPHP_ROUTER_CURRENT_CONTROLLER', \\get_class($controller));\n \\define('INITPHP_ROUTER_CURRENT_METHOD', $parse['method']);\n $responseStatusCode = (int)$this->response->getStatusCode();\n if($responseStatusCode < 200 || $responseStatusCode > 299){\n return $this->response;\n }\n $this->response = $this->execute([$controller, $parse['method']], $arguments);\n $after_middleware = $this->controller_middlewares_property($controller, $parse['method'], self::AFTER);\n if(!empty($after_middleware)){\n $filters['after'] = \\array_merge($filters['after'], $after_middleware);\n }\n }\n }\n\n $this->middleware_handle($filters['after'], $arguments, self::AFTER);\n\n return $this->response;\n }",
"private function run()\n {\n $dispatcher = $this->getDispatcher(self::getConfigSection('routes'));\n\n $routeInfo = $dispatcher->dispatch(self::getRequest('method'), self::getRequest('path'));\n\n switch ($routeInfo[0]) {\n case \\FastRoute\\Dispatcher::NOT_FOUND:\n $this->errorNotFound();\n break;\n case \\FastRoute\\Dispatcher::METHOD_NOT_ALLOWED:\n $this->error405();\n break;\n case \\FastRoute\\Dispatcher::FOUND:\n $this->actionParams = $routeInfo[2];\n $handler = explode('.', $routeInfo[1]);\n $this->controllerName = 'app\\controllers\\\\' . ucfirst($handler[0]) . 'Controller';\n $controllerFile = ucfirst($handler[0]) . 'Controller.php';\n $this->actionName = 'action' . ucfirst($handler[1]);\n $this->actionSlug = $handler[0] . '.' . $handler[1];\n if (!file_exists(self::$request['root_path'] . '/app/controllers/' . $controllerFile) ||\n !method_exists($this->controllerName, $this->actionName)) {\n //there is not a controller file or action name == index\n if (App::getConfig('app.debug')) {\n echo 'There is not a controller file \"' . $controllerFile . '\" or action name == index';\n }\n $this->errorNotFound();\n }\n if (isset($handler[2])) {\n //part of hangler for checking permissions\n if ($handler[2] == 'auth') {\n //need login and not logged\n if (App::isGuest()) {\n $this->redirect(App::getConfig('app.login_url'));\n }\n } else {\n //check permission for $handler[2]\n $auth = self::getComponent('auth');\n $user = self::getUser();\n $checkUser = $user ? $auth->hasAccessTo($user->email, $handler[2]) : false;\n if (!$checkUser) {\n //user does not exists or user does not have a permission\n $this->error405();\n }\n }\n }\n break;\n }\n $this->startAction();\n }",
"public function resolveRequestHandler() {}",
"public function handle(): void\n {\n $globals = $_SERVER;\n //$SlimPsrRequest = ServerRequestFactory::createFromGlobals();\n //it doesnt matters if the Request is of different class - no need to create Guzaba\\Http\\Request\n $PsrRequest = ServerRequestFactory::createFromGlobals();\n //the only thing that needs to be fixed is the update the parsedBody if it is NOT POST & form-fata or url-encoded\n\n\n //$GuzabaPsrRequest =\n\n //TODO - this may be reworked to reroute to a new route (provided in the constructor) instead of providing the actual response in the constructor\n $DefaultResponse = $this->DefaultResponse;\n //TODO - fix the below\n// if ($PsrRequest->getContentType() === ContentType::TYPE_JSON) {\n// $DefaultResponse->getBody()->rewind();\n// $structure = ['message' => $DefaultResponse->getBody()->getContents()];\n// $json_string = json_encode($structure, JSON_UNESCAPED_SLASHES);\n// $StreamBody = new Stream(null, $json_string);\n// $DefaultResponse = $DefaultResponse->\n// withBody($StreamBody)->\n// withHeader('Content-Type', ContentType::TYPES_MAP[ContentType::TYPE_JSON]['mime'])->\n// withHeader('Content-Length', (string) strlen($json_string));\n// }\n\n $FallbackHandler = new RequestHandler($DefaultResponse);//this will produce 404\n $QueueRequestHandler = new QueueRequestHandler($FallbackHandler);//the default response prototype is a 404 message\n foreach ($this->middlewares as $Middleware) {\n $QueueRequestHandler->add_middleware($Middleware);\n }\n $PsrResponse = $QueueRequestHandler->handle($PsrRequest);\n $this->emit($PsrResponse);\n\n }",
"public function handleWorkerHandlerQueue()\n {\n if (!$this->workerHandlerReady || count($this->workerHandlerQueue) == 0) {\n return;\n }\n $requestId = array_shift($this->workerHandlerQueue);\n $request = $this->getRequest($requestId);\n\n if ($request === null) {\n return;\n }\n\n $this->getLogger()->debug('Sending request: '.$requestId.' to worker-handler.');\n\n $this->workerHandlerReady = false;\n\n $this->getStream('workerHandler')->send(\n new ClientHandlerJobRequest(\n $requestId,\n $request->getActionName(),\n $request->getParams()\n )\n );\n }",
"public function map()\n {\n //wap端路由为了防止和web端路由冲突一定要放到前面\n $this->mapWapRoutes();\n //web端路由\n $this->mapWebRoutes();\n //api路由\n $this->mapApiRoutes();\n //Backend路由\n $this->mapBackendRoutes();\n }",
"function _route()\n\t{\n\t\t// if the user login redirect to base\n\t\tif(\\lib\\permission::access('enter:another:session'))\n\t\t{\n\t\t\t// the admin can login by another session\n\t\t\t// never redirect to main\n\t\t}\n\t\telse\n\t\t{\n\t\t\tparent::if_login_not_route();\n\t\t}\n\n\t\t// check remeber me is set\n\t\t// if remeber me is set: login!\n\t\tparent::check_remember_me();\n\n\t\t// save all param-* | param_* in $_GET | $_POST\n\t\t$this->save_param();\n\n\t\tif(self::get_request_method() === 'get')\n\t\t{\n\t\t\t$this->get(false, 'enter')->ALL();\n\t\t}\n\t\telseif(self::get_request_method() === 'post')\n\t\t{\n\t\t\t$this->post('enter')->ALL();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tself::error_method('home');\n\t\t}\n\t}",
"protected function _parse_routes()\n {\n $uri = implode('/', $this->uri->segments);\n\n // only for test\n // sometime js file has map file but not found in server\n if (ENVIRONMENT === 'development') {\n log_message('error', json_encode($uri));\n }\n\n // Get HTTP verb\n $http_verb = isset($_SERVER['REQUEST_METHOD']) ? strtolower($_SERVER['REQUEST_METHOD']) : 'cli';\n\n // Loop through the route array looking for wildcards\n foreach ($this->routes as $key => $val)\n {\n // Check if route format is using HTTP verbs\n if (is_array($val))\n {\n $val = array_change_key_case($val, CASE_LOWER);\n if (isset($val[$http_verb]))\n {\n $val = $val[$http_verb];\n }\n else\n {\n continue;\n }\n }\n\n // Convert wildcards to RegEx\n $key = str_replace(array(':any', ':num'), array('.+', '[0-9]+'), $key);\n\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri, $matches))\n {\n // Are we using callbacks to process back-references?\n if ( ! is_string($val) && is_callable($val))\n {\n // Remove the original string from the matches array.\n array_shift($matches);\n\n // Execute the callback using the values in matches as its parameters.\n $val = call_user_func_array($val, $matches);\n }\n // Are we using the default routing method for back-references?\n elseif (strpos($val, '$') !== FALSE && strpos($key, '(') !== FALSE)\n {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request(array_values($this->uri->segments));\n }",
"public function onBeforeRouting() {\n\t\t// TODO: need some way of allowing plugins to specify whether they want\n\t\t// to be notified of this request or not\n\t\t// This is true for all plugin events\n\t\tforeach ( $this->getInstantiablePlugins() as $pluginContainer ) {\n\t\t\t$pluginContainer->trigger(\"onBeforeRouting\");\n\t\t}\n\t}",
"protected function resolve()\n {\n// $callStack = new CallStack;\n\n $executePattern = $this->route->getProperty('execute');\n\n /** @var ExecuteHandler[] $handlers */\n $handlers = array();\n\n $middlewares = array();\n\n $decorators = array();\n\n foreach ($this->route->getFullRoutes() as $route) {\n $group = $route->getGroup();\n\n foreach ($group->factory->getExecuteHandlers() as $handler)\n $handlers[get_class($handler)] = $handler;\n\n // stack all the handlers\n foreach ($group->getExecuteHandlers() as $name => $handler)\n $handlers[$name] = $handler;\n\n foreach ($group->getMiddlewares() as $middleware)\n $middlewares[] = new Call($this->resolveMiddleware($middleware[0]), $middleware[1]);\n// $callStack->addCallable($this->resolveMiddleware($middleware[0]), $middleware[1]);\n\n // append all route middlewares\n// foreach ($route->getProperty('middleware') as $middleware)\n// $middlewares[] = new Call($this->resolveMiddleware($middleware[0]), $middleware[1]);\n// $callStack->addCallable($this->resolveMiddleware($middleware[0]), $middleware[1]);\n\n foreach ($route->getStates() as $key => $value)\n $this->states[$key] = $value;\n\n foreach ($route->getFlags() as $flag)\n $this->flags[] = $flag;\n\n foreach ($route->getSerieses() as $key => $value) {\n if (!array_key_exists($key, $this->serieses))\n $this->serieses[$key] = array();\n\n foreach ($value as $v)\n $this->serieses[$key][] = $v;\n }\n\n foreach ($group->getDecorators() as $decorator)\n $decorators[] = new Call($this->resolveMiddleware($decorator));\n\n// foreach ($route->getDecorators() as $decorator)\n// $decorators[] = new Call($this->resolveMiddleware($decorator));\n\n // pass config.\n if ($config = $route->getProperty('config'))\n $this->config = array_merge($this->config, $config);\n }\n\n foreach ($handlers as $name => $class) {\n $handler = null;\n\n if (is_string($class)) {\n $handler = new $class;\n } else if (is_object($class)) {\n if ($class instanceof \\Closure) {\n $class($handler = new DynamicHandler());\n } else if ($class instanceof ExecuteHandler) {\n $handler = $class;\n }\n }\n\n if (!$handler || !is_object($handler) || !($handler instanceof ExecuteHandler))\n throw new InvalidArgumentException('Handler must be either class name, ' . ExecuteHandler::class . ' or \\Closure ');\n\n if ($handler->validateHandle($executePattern)) {\n $resolve = $handler->resolveHandle($executePattern);\n\n if (!is_callable($resolve))\n throw new \\Exedra\\Exception\\InvalidArgumentException('The resolveHandle() method for handler [' . get_class($handler) . '] must return \\Closure or callable');\n\n $properties = array();\n\n if ($this->route->hasDependencies())\n $properties['dependencies'] = $this->route->getProperty('dependencies');\n\n if (!$resolve)\n throw new InvalidArgumentException('The route [' . $this->route->getAbsoluteName() . '] execute handle was not properly resolved. ' . (is_string($executePattern) ? ' [' . $executePattern . ']' : ''));\n\n// $callStack->addCallable($resolve, $properties);\n\n return $this->createCallStack($middlewares, $decorators, new Call($resolve, $properties));\n\n// return $callStack;\n }\n }\n\n return null;\n }",
"public function request_handler(){\r\n\t\t$route = new Router;\r\n\t\t$session = new Session;\r\n\t\t$segments = $route->urlRoute();\r\n\t\t#check if controller/action exist\r\n\t\t#if not use default_controller / default_action\r\n\t\tif( count($segments) == 0 || count($segments) == 1 ){\r\n\t\t\tinclude_class_method( default_controller , default_action );\r\n\t\t}else{\r\n\t\t#if controller/action exist in the url\r\n\t\t#then check the controller if it's existed in the file\r\n\t\t\tif( file_exists( CONTROLLER_DIR . $segments[0] . CONT_EXT ) )\r\n\t\t\t{\r\n\t\t\t\t#check for segments[1] = actions\r\n\t\t\t\t#if segments[1] exist, logically segments[0] which is the controller is also exist!!\r\n\t\t\t\t//if( isset($segments[1]) ){\r\n\t\t\t\t\tinclude_class_method( $segments[0], $segments[1] . 'Action' );\r\n\t\t\t\t//}\r\n\t\t\t}else{\r\n\t\t\t\terrorHandler(CONTROLLER_DIR . $segments[0] . CONT_EXT);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected function registerRouteBindings()\n {\n //\n }",
"public function dispatch(RequestContract $request) {\n\n\t\t$response = NULL;\n\n\t\tforeach ($this->routes as $route) {\n\n\t\t\tif ($route->matches($request)) {\n\n\t\t\t\t$response = $route->fire($request);\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\n\t\treturn $response;\n\n\t}",
"public function handler() {\n\t\t$type = Router::verify_type();\n\n\t\tswitch ( $type ) {\n\t\t\tcase self::TYPE_REFRESH_MAP:\n\t\t\t\t$this->cls( 'Crawler_Map' )->gen();\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_EMPTY:\n\t\t\t\t$this->cls( 'Crawler_Map' )->empty_map();\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_BLACKLIST_EMPTY:\n\t\t\t\t$this->cls( 'Crawler_Map' )->blacklist_empty();\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_BLACKLIST_DEL:\n\t\t\t\tif ( ! empty( $_GET[ 'id' ] ) ) {\n\t\t\t\t\t$this->cls( 'Crawler_Map' )->blacklist_del( $_GET[ 'id' ] );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_BLACKLIST_ADD:\n\t\t\t\tif ( ! empty( $_GET[ 'id' ] ) ) {\n\t\t\t\t\t$this->cls( 'Crawler_Map' )->blacklist_add( $_GET[ 'id' ] );\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t// Handle the ajax request to proceed crawler manually by admin\n\t\t\tcase self::TYPE_START:\n\t\t\t\tself::start( true );\n\t\t\t\tbreak;\n\n\t\t\tcase self::TYPE_RESET:\n\t\t\t\t$this->reset_pos();\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t\tAdmin::redirect();\n\t}",
"abstract public function handle_request();",
"private function dispatchingHandlers(GroupCountBased $dispatcher) : void\n {\n $routeInfo = $dispatcher->dispatch($this->httpMethod, $this->uri);\n\n switch ($routeInfo[0])\n {\n case \\FastRoute\\Dispatcher::NOT_FOUND: // 404\n break;\n case \\FastRoute\\Dispatcher::METHOD_NOT_ALLOWED: // 405\n $allowedMethods = $routeInfo[1];\n break;\n case \\FastRoute\\Dispatcher::FOUND:\n $this->routeActions['handler'] = $routeInfo[1];\n $this->routeActions['vars'] = $routeInfo[2];\n break;\n }\n }",
"public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n $this->mapACLRoutes(); \n //\n }",
"protected abstract function handleRequest();",
"public function process_request() {\n if(!empty($this->POST)) {\n return $this->handlePOST();\n } else {\n return $this->handleGET();\n }\n }",
"protected function preReRouting()\n {\n\n }",
"abstract protected function _handleAuthRequest(Zend_Controller_Request_Abstract $request);",
"public function handle($request, $next);",
"function _parse_routes()\n {\n // Do we even have any custom routing to deal with?\n // There is a default scaffolding trigger, so we'll look just for 1\n if (count($this->routes) == 1)\n {\n $this->_set_request($this->uri->segments);\n return;\n }\n\n // Turn the segment array into a URI string\n $uri = implode('/', $this->uri->segments);\n\n // Is there a literal match? If so we're done\n if (isset($this->routes[$uri]))\n {\n $this->_set_request(explode('/', $this->routes[$uri]));\n return;\n }\n\n //Art\n $i = $this->_search_by_key($this->routes, self::MAIN, $uri);\n if ($i !== FALSE)\n {\n $this->_set_request(explode('/', $this->routes[$i][self::ROUTE]));\n return;\n }\n\n // Loop through the route array looking for wild-cards\n foreach ($this->routes as $key => $val)\n {\n if(is_int($key))\n {\n $key = $val[self::MAIN];\n $val = $val[self::ROUTE];\n }\n // Convert wild-cards to RegEx\n $key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n // Does the RegEx match?\n if (preg_match('#^'.$key.'$#', $uri))\n {\n // Do we have a back-reference?\n if (strpos($val, '$') !== FALSE AND strpos($key, '(') !== FALSE)\n {\n $val = preg_replace('#^'.$key.'$#', $val, $uri);\n }\n $this->_set_request(explode('/', $val));\n return;\n }\n }\n\n // If we got this far it means we didn't encounter a\n // matching route so we'll set the site default route\n $this->_set_request($this->uri->segments);\n }",
"public function handle($uri = null) {\n\n\t\tif(!$uri)\n\t\t\t$uri = $this->getRewriteUri();\n\n\t\t/**\n\t\t * Remove extra slashes in the route\n\t\t */\n\n\t\tif($this->_removeExtraSlashes && $uri != '/')\n\t\t\t$handledUri = rtrim($uri, '/');\n\t\telse\n\t\t\t$handledUri = $uri;\n\n\t\t$request = null;\n\t\t$currentHostName = null;\n\t\t$routeFound = false;\n\t\t$parts = [];\n\t\t$params = [];\n\t\t$matches = null;\n\t\t$this->_wasMatched = false;\n\t\t$this->_matchedRoute = null;\n\n\t\tif(!is_object($this->_dependencyContainer))\n\t\t\tthrow new Exception('A dependency injection container is required to access the \\'request\\' service.');\n\n\t\tforeach($this->_routes as $route) {\n\n\t\t\t$params = [];\n\t\t\t$matches = null;\n\n\t\t\t$methods = $route->getHttpMethods();\n\n\t\t\tif(!is_null($methods)) {\n\n\t\t\t\t/** @var \\Mike\\Http\\Request $request */\n\n\t\t\t\tif(is_null($request))\n\t\t\t\t\t$request = $this->_dependencyContainer->get('request');\n\n\t\t\t\tif(!$request->isMethod($methods))\n\t\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\t$hostname = $route->getHostName();\n\n\t\t\tif(!is_null($hostname)) {\n\n\t\t\t\tif(is_null($currentHostName))\n\t\t\t\t\t$currentHostName = $request->getHttpHost();\n\n\t\t\t\tif(!$currentHostName)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tif(Text::contains($hostname, '(')) {\n\n\t\t\t\t\tif(!Text::contains($hostname, '#')) {\n\n\t\t\t\t\t\t$regexHostName = '#^' . $hostname;\n\n\t\t\t\t\t\tif(!Text::contains($hostname, ':'))\n\t\t\t\t\t\t\t$regexHostName .= '(:[[:digit:]]+)?';\n\n\t\t\t\t\t\t$regexHostName .= '$#i';\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\t$regexHostName = $hostname;\n\t\t\t\t\t}\n\n\t\t\t\t\t$matched = preg_match($regexHostName, $currentHostName);\n\n\t\t\t\t} else {\n\n\t\t\t\t\t$matched = ($currentHostName == $hostname);\n\t\t\t\t}\n\n\t\t\t\tif(!$matched)\n\t\t\t\t\tcontinue;\n\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * If the route has parentheses use preg_match\n\t\t\t */\n\n\t\t\t$pattern = $route->getCompiledPattern();\n\n\t\t\tif(Text::contains($pattern, '^'))\n\t\t\t\t$routeFound = preg_match($pattern, $handledUri, $matches);\n\n\t\t\telse\n\t\t\t\t$routeFound = ($pattern == $handledUri);\n\n\t\t\t/**\n\t\t\t * Check for beforeMatch conditions\n\t\t\t */\n\n\t\t\tif($routeFound) {\n\n\t\t\t\t$beforeMatch = $route->getBeforeMatch();\n\n\t\t\t\tif(!is_null($beforeMatch)) {\n\n\t\t\t\t\tif(!is_callable($beforeMatch))\n\t\t\t\t\t\tthrow new Exception('Before-Match callback is not callable in matched route.');\n\n\t\t\t\t\t$routeFound = call_user_func_array($beforeMatch, [$handledUri, $route, $this]);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tif($routeFound) {\n\n\t\t\t\t$paths = $route->getPaths();\n\n\t\t\t\tif(is_array($matches)) {\n\n\t\t\t\t\t$converters = $route->getConverters();\n\n\t\t\t\t\tforeach($paths as $part => $position) {\n\n\t\t\t\t\t\tif(!is_string($part))\n\t\t\t\t\t\t\tthrow new Exception('Wrong key in paths: ' . $part);\n\n\t\t\t\t\t\tif(!is_string($position) && !is_integer($position))\n\t\t\t\t\t\t\tcontinue;\n\n\t\t\t\t\t\tif(isset($matches[$position])) {\n\n\t\t\t\t\t\t\tif(is_array($converters)) {\n\n\t\t\t\t\t\t\t\tif(isset($converters[$part])) {\n\n\t\t\t\t\t\t\t\t\t$parts[$part] = call_user_func_array($converters[$part], [ $matches[$position] ]);\n\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t$parts[$part] = $matches[$position];\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tif(is_array($converters)) {\n\n\t\t\t\t\t\t\t\tif(isset($converters[$part]))\n\t\t\t\t\t\t\t\t\t$parts[$part] = call_user_func_array($converters[$part], [$position]);\n\n\t\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\t\tif(is_integer($position))\n\t\t\t\t\t\t\t\t\tunset($parts[$part]);\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$this->_matches = $matches;\n\t\t\t\t}\n\n\t\t\t\t$this->_matchedRoute = $route;\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif($routeFound)\n\t\t\t$this->_wasMatched = true;\n\t\telse\n\t\t\t$this->_wasMatched = false;\n\n\t\tif(!$routeFound) {\n\n\t\t\t$notFoundPaths = $this->_notFoundPaths;\n\n\t\t\tif(!is_null($notFoundPaths)) {\n\n\t\t\t\t$parts = Route::getRoutePaths($notFoundPaths);\n\t\t\t\t$routeFound = true;\n\n\t\t\t}\n\n\t\t}\n\n\t\t$this->_module = $this->_defaultModule;\n\t\t$this->_controller = $this->_defaultController;\n\t\t$this->_action = $this->_defaultAction;\n\t\t$this->_params = $this->_defaultParams;\n\n\t\tif($routeFound) {\n\n\t\t\tif(isset($parts['module'])) {\n\n\t\t\t\tif(!is_numeric($parts['module']))\n\t\t\t\t\t$this->_module = $parts['module'];\n\n\t\t\t\tunset($parts['module']);\n\t\t\t}\n\n\n\t\t\tif(isset($parts['controller'])) {\n\n\t\t\t\tif(!is_numeric($parts['controller']))\n\t\t\t\t\t$this->_controller = $parts['controller'];\n\n\t\t\t\tunset($parts['controller']);\n\t\t\t}\n\n\n\t\t\tif(isset($parts['action'])) {\n\n\t\t\t\tif(!is_numeric($parts['action']))\n\t\t\t\t\t$this->_action = $parts['action'];\n\n\t\t\t\tunset($parts['action']);\n\t\t\t}\n\n\t\t\tif(isset($parts['params'])) {\n\n\t\t\t\tif(is_string($parts['params'])) {\n\n\t\t\t\t\t$strParams = trim($parts['params'], '/');\n\n\t\t\t\t\tif($strParams != '')\n\t\t\t\t\t\t$params = explode('/', $strParams);\n\n\t\t\t\t}\n\n\t\t\t\tunset($parts['params']);\n\t\t\t}\n\n\t\t\tif(count($params))\n\t\t\t\t$this->_params = array_merge($params, $parts);\n\t\t\telse\n\t\t\t\t$this->_params = $parts;\n\n\t\t}\n\t}",
"public function dispatch(Request $request)\n\t{\n\t\t// Before we handle the requests we need to make sure the application has been\n\t\t// booted up. The boot process will call the \"boot\" method on each service\n\t\t// provider giving them all a chance to register any application events.\n\t\tif ( ! $this->booted)\n\t\t{\n\t\t\t$this->boot();\n\t\t}\n\n\t\t$this->prepareRequest($request);\n\n\t\t// First we will call the \"before\" global middlware, which we'll give a chance\n\t\t// to override the normal requests process when a response is returned by a\n\t\t// middlewares. Otherwise we'll call the route just like a normal reuqest.\n\t\t$response = $this->callGlobalMiddleware('before');\n\n\t\tif ( ! is_null($response))\n\t\t{\n\t\t\treturn $this->prepareResponse($response, $request);\n\t\t}\n\n\t\t$route = $this['router']->dispatch($request);\n\n\t\t// Once we have the route and before middlewares, we will iterate through them\n\t\t// and call each one. If a given filter returns a response we will let that\n\t\t// value override the rest of the request cycle and return the Responses.\n\t\t$before = $this->getBeforeMiddlewares($route, $request);\n\n\t\tforeach ($before as $middleware)\n\t\t{\n\t\t\t$response = $this->callMiddleware($middleware);\n\t\t}\n\n\t\t// If none of the before middlewares returned a response, we will just execute\n\t\t// the route that matched the request, then call the after filters for this\n\t\t// and return the responses back out and they'll get sent to the clients.\n\t\tif ( ! isset($response))\n\t\t{\n\t\t\t$response = $route->run();\n\t\t}\n\n\t\t$response = $this->prepareResponse($response, $request);\n\n\t\t// Once all of the \"after\" middlewares are called we should be able to return\n\t\t// the completed response object back to the consumers so it will be given\n\t\t// to the client as a response. The Responses should be final and ready.\n\t\tforeach ($route->getAfterMiddlewares() as $middleware)\n\t\t{\n\t\t\t$this->callMiddleware($middleware, array($response));\n\t\t}\n\n\t\t$this->callAfterMiddleware($response);\n\n\t\treturn $response;\n\t}",
"public function route() {\n\t\t$method = $_SERVER['REQUEST_METHOD'];\n\t\t$request = (isset($_SERVER['PATH_INFO'])) ? explode(\"/\", trim($_SERVER['PATH_INFO'], \"/\")) : \"\";\n\t\t\n\t\treturn $this->routeRequest($method, $request);\n\t}",
"public function handle( $requestUri )\n {\n $url = $this->_di->getService( \"url\" );\n\n /**\n * Remove the uri prefix from the request uri\n * (the uri prefix is added when route is created)\n */\n $requestUri = str_replace( $url->getUriPrefix(), \"\", $requestUri );\n\n $request_route = $this->_createRoute( [\"uri\" => $requestUri] );\n\n /**\n * Passing the uri to the get function in the url service to make sure the uri:s have a consistent format\n */\n //$request_route->setUri( $url->get( $request_route->getUri() ) );\n\n $request_route_uri_fragments = explode( \"/\", $request_route->getUri() );\n\n foreach ($this->_routeDefinitions as $routeDefinition)\n {\n $route = call_user_func($routeDefinition);\n\n /**\n * Passing the uri to the get function in the url service to make sure the uri:s have a consistent format\n */\n //$route->setUri( $url->get( $route->getUri() ) );\n\n $route_uri_fragments = explode( \"/\", $route->getUri() );\n\n /**\n * Check if request uri and route uri has the same number of fragments.\n * If not, continue to next route.\n */\n if ( count($route_uri_fragments) != count($request_route_uri_fragments) )\n {\n continue;\n }\n\n $params = array();\n\n /**\n * Compare every fragment of the uris\n */\n for ( $i = 0; $i < count($route_uri_fragments); $i++ )\n {\n /**\n * Parameters are not compared\n */\n if ( $route_uri_fragments[$i] == \"{param}\" )\n {\n $params[] = $request_route_uri_fragments[$i];\n\n continue;\n }\n\n /**\n * If a fragment is not equal -> continue to next route\n */\n if ( $route_uri_fragments[$i] != $request_route_uri_fragments[$i] )\n {\n continue 2;\n }\n }\n\n $route->setParams( $params );\n\n /**\n * We have a match!\n */\n $this->_matchRoute = $route;\n\n return;\n }\n\n /**\n * No match :(\n * If not found route has been set -> set as out match route\n */\n if ( isset($this->_notFoundRoute) )\n {\n $this->_matchRoute = $this->_notFoundRoute;\n\n return;\n }\n\n /**\n * With no other options, we set the match route to a default route\n */\n $this->_matchRoute = new Route();\n }",
"public function run()\n\t{\n\t\t$this->request['method'] = strtolower($_SERVER['REQUEST_METHOD']);\n\n\t\t// strtok to strip parameters\n\t\t$this->request['uri'] = strtok($_SERVER['REQUEST_URI'], '?');\n\n\t\tif (!isset($routes[$this->request['method']])) {\n\t\t\tthrow new \\InvalidArgumentException(\n\t\t\t\t\"No routes assigned to HTTP method {$this->request['method']}.\");\n\t\t}\n\n\t\t// Fetch action assigned to route\n\t\t$action = $this->route();\n\n\t\t// Route was not found; handle 404\n\t\tif ($action === false) {\n\t\t\ttry {\n\t\t\t\t$response = $this->execute($routes['error']['404']);\n\t\t\t} catch (InvalidActionException $e) {\n\t\t\t\t// Default 404 handling\n\t\t\t\theader(\"HTTP/1.0 404 Not Found\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t$response = $this->execute($action);\n\n\t\tif($response) {\n\t\t\t$this->respond($response);\n\t\t}\n\t}",
"public function handleRequest();",
"public function handleRequest();",
"public function handleRequest();",
"public function process_queue()\r\n {\r\n error_reporting(0);\r\n\r\n // TODO: Prefill information is stored in this array. It's nasty, but it works for now.\r\n // This will need to be cleaned up somehow, later.\r\n $this->prefillRequests = array();\r\n\r\n $this->parseResponses();\r\n\r\n // Array of keys that need to be included in the response.\r\n $include = array('request', 'class', 'hit');\r\n $responseQuery = [];\r\n foreach($this->messageQuery as $response) {\r\n // Switch all keys to lower case to prevent possible case errors.\r\n $responseArr = array_change_key_case($response, CASE_LOWER);\r\n // returns an array that intersects with the keys from the $include array\r\n $responseQuery[] = array_intersect_key($responseArr, array_flip($include));\r\n }\r\n\r\n $requestSummary = $this->ArchiveResponse->ArchiveRequest->Request->getSummary(\r\n $this->CurrentAgency->agencyId,\r\n $this->CurrentDevice->agencyDeviceId);\r\n\r\n $summary = array(\r\n 'requests' => $requestSummary,\r\n 'response' => $responseQuery,\r\n 'prefill' => $this->prefillRequests\r\n );\r\n $this->set('summary', $summary);\r\n }",
"public function dispatch() {\n if ($this->dispatching == null) {\n\n $this->dispatching = $this->router->getMatchedRoutes($this->request->getPath());\n }\n\n // Dispatch array is not empty\n while (!empty($this->dispatching)) {\n\n // Get the next available dispatch\n $dispatching = array_shift($this->dispatching);\n\n // Get the controller namespace\n $namespace = '\\modules\\\\' . $dispatching['module'] . '\\controllers\\\\' . $dispatching['controller'];\n\n // The controller does not exist\n if (class_exists($namespace) === false) {\n\n continue;\n }\n\n // Set the request vars\n $this->request->setVar(array_diff_key($dispatching, array_flip(['module', 'controller', 'action'])));\n // Set the dispatcher dispatched values\n $this->dispatched = array_intersect_key($dispatching, array_flip(['module', 'controller', 'action']));\n\n $controller = new $namespace($this->request, $this, $this->container);\n\n // We have a POST action defined\n if ($this->request->isPost() &&\n method_exists($controller, $this->getBaseActionName() . Router::ACTION_POST_SUFFIX)) {\n\n // Set the correct dispatching/dispatched action\n $dispatching['action'] = $this->dispatched['action'] = $this->getBaseActionName() . Router::ACTION_POST_SUFFIX;\n\n // A default controller action cannot be found\n } else if ($this->request->isGet() && method_exists($controller, $dispatching['action']) === false) {\n\n continue;\n }\n\n // Set the controller was forwarded to false\n $this->controllerWasForwarded = false;\n\n // The controller has a pre method defined\n if (method_exists($controller, 'pre')) {\n\n $controller->pre();\n }\n\n // The controller was forwarded\n if ($this->controllerWasForwarded === true) {\n\n continue;\n }\n\n $controller->{$dispatching['action']}();\n\n // The action was forwarded\n if ($this->controllerWasForwarded === true) {\n\n continue;\n }\n\n // The controller has a post method defined\n if (method_exists($controller, 'post')) {\n\n $controller->post();\n }\n\n // The action was forwarded\n if ($this->controllerWasForwarded === true) {\n\n continue;\n }\n\n // Render the view and set the response body\n $controller->getResponse()->setBody($controller->getView()->render());\n\n return;\n }\n\n // Empty the dispatched array so dispatcher not resolved event can switch to a different module if needed\n $this->dispatched = ['module' => '', 'controller' => '', 'action' => ''];\n\n $this->eventManager->emit($this->container->get('event', ['dispatcher:notResolved', $this]));\n $this->dispatch();\n }",
"public function dispatch()\n {\n // Match all param keys\n $paramKeys = array();\n preg_match_all('/:' . $this->_paramPattern . '/i', $this->_uri, $paramKeys);\n \n // Remove leading :'s from keys\n $paramKeys = array_map(\n function($key) {\n $key = substr($key, 1);\n return $key;\n },\n $paramKeys[0]\n );\n \n // Match all param values\n $paramValues = array();\n preg_match_all($this->getPatternForUri(), $_SERVER['REQUEST_URI'], $paramValues, \\PREG_SET_ORDER);\n \n // Remove leading match\n $paramValues = $paramValues[0];\n array_shift($paramValues);\n \n // Set $_GET values. User has to filter all by himself!\n foreach ($paramValues as $idx => $value) {\n $_GET[$paramKeys[$idx]] = urldecode($value);\n }\n \n parent::dispatch();\n }",
"public function _route()\n\t{\n\t\tif(self::lock('ban'))\n\t\t{\n\t\t\tself::error_page('ban');\n\t\t\treturn;\n\t\t}\n\t}",
"public function call()\n {\n // Get the reference to the application\n $app = $this->app;\n\n // Get the application request without trailing slashes \n $requesturi = ltrim($app->request->getPathInfo(), '/');\n\n if($requesturi != 'unauthorized') {\n // Check if the user is authorized to execute this request\n if(!Security::isUserAuthorized($requesturi)) {\n $app->redirect('/unauthorized');\n }\n }\n\n // Run the inner middleware and application\n $this->next->call();\n }",
"final public function handle()\n {\n \n $this->_preHandle();\n \n if ($this->_request->getActionName() == null) {\n throw new ZendL_Tool_Endpoint_Exception('Endpoint failed to setup the action name.');\n }\n\n if ($this->_request->getProviderName() == null) {\n throw new ZendL_Tool_Endpoint_Exception('Endpoint failed to setup the provider name.');\n }\n \n ob_start();\n \n try {\n $dispatcher = new ZendL_Tool_Rpc_Endpoint_Dispatcher();\n $dispatcher->setRequest($this->_request)\n ->setResponse($this->_response)\n ->dispatch();\n \n } catch (Exception $e) {\n //@todo implement some sanity here\n die($e->getMessage());\n //$this->_response->setContent($e->getMessage());\n return;\n }\n \n if (($content = ob_get_clean()) != '') {\n $this->_response->setContent($content);\n }\n \n $this->_postHandle();\n }",
"public function preDispatch() \n\t{\n\t\t// except for error\n\t\t$request = $this->getRequest();\n\t\tif($request->getControllerName() != 'api' || $request->getActionName() != 'error') {\n\t\t\tif(!$this->authenticate()) {\n\t\t\t\t$this->_forward('error', 'api', null, array(\n\t\t\t\t\t//'http_code' => 401, Flex/AS§ doesn't support status codes\n\t\t\t\t\t'code' => 'AuthenticationFailed',\n\t\t\t\t\t'message' => 'Authentication failed!'\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\t}",
"public function start()\n {\n foreach ($this->routes as $route) {\n if ($route->match()) {\n $this->applyRoute($route); \n }\n\n if (!$route->continue) {\n break;\n }\n }\n }",
"private function findRoute()\n {\n // we need to start the session, because we check userLogin over the session\n session_start();\n\n if (!isset($_GET['cmd'])) {\n // if user is not logged in, we send hem to register page, so he can register or go to login from there\n if (!isset($_SESSION['userName'])) {\n $this->cmd = 'register';\n } else {\n $this->cmd = 'overview';\n }\n } elseif (!isset($_SESSION['userName']) && $_GET['cmd'] != 'login' && $_GET['cmd'] != 'register') {\n $this->cmd = 'overview';\n } else {\n $this->cmd = $_GET['cmd'];\n }\n\n // if we need to send data over json, the cmd in POST must be json, so we can go to json handler\n if(isset($_POST['cmd']) && $_POST['cmd'] == 'json'){\n $this->cmd = 'json';\n }\n }",
"public static function run()\n\t{\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tif(substr(Request::getUri(), -1) !== '/') {\n\t\t\t\t\tif(Router::getMatchedRoute(true)) {\n\t\t\t\t\t\tself::redirect(Request::getBaseUri() . Request::getUri() . '/' . Request::getQueryString());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// log the uri\n\t\t\t\tLog::out(__METHOD__ . ' URI: ' . Request::getBaseUri() . Request::getUri(), Log::LEVEL_DEBUG);\n\t\t\t\t\n\t\t\t\t// only starts output buffering in development mode\n\t\t\t\tif(!self::isDevMode()) {\n\t\t\t\t\tob_start();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$all_routes_processed = false;\n\t\t\t\t$matched_route = null;\n\t\t\t\t$offset = -1;\n\t\t\t\t\n\t\t\t\t// start searching for matched route\n\t\t\t\twhile(!$all_routes_processed) {\n\t\t\t\t\t$matched_route = Router::getMatchedRoute(false, $offset + 1);\n\t\t\t\t\t\n\t\t\t\t\tif(!$matched_route) {\n\t\t\t\t\t\tApp::notFound();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// log the pattern\n\t\t\t\t\tLog::out(__METHOD__ . ' Matched route: \"' . $matched_route->name . '\", pattern: ' . \n\t\t\t\t\t\t\t$matched_route->getPatternRegex() . ', offset: ' . \n\t\t\t\t\t\t\t$matched_route->getOffset(), Log::LEVEL_DEBUG);\n\t\t\t\t\t\n\t\t\t\t\t// log route params\n\t\t\t\t\tLog::out(__METHOD__ . \" Route params: \\n\" . print_r($matched_route->getParams(), true), \n\t\t\t\t\t\t\tLog::LEVEL_DEBUG); \n\t\t\t\t\t\n\t\t\t\t\t$offset = $matched_route->getOffset();\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tLoader::invoke($matched_route);\n\t\t\t\t\t}\n\t\t\t\t\tcatch(BakedCarrotPassException $e) {\n\t\t\t\t\t\t$all_routes_processed = false;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t$all_routes_processed = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!self::isDevMode()) {\n\t\t\t\t\tob_end_flush();\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception $e) {\n\t\t\t\tif(self::isDevMode()) {\n\t\t\t\t\twhile(@ob_end_clean());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t$classes_to_test = array(get_class($e), get_parent_class($e), 'Exception');\n\t\t\t\t$executed = false;\n\t\t\t\t\n\t\t\t\tforeach($classes_to_test as $class) {\n\t\t\t\t\tif(isset(self::$exception_handlers[$class])) {\n\t\t\t\t\t\tLoader::invokeExceptionHandler($e, self::$exception_handlers[$class]);\n\t\t\t\t\t\t\n\t\t\t\t\t\tLog::out(__METHOD__ . ' Exception handler \"' . self::$exception_handlers[$class] . '\" invoked for class \"' . \n\t\t\t\t\t\t\t\t$class . '\"', Log::LEVEL_INFO);\n\t\t\t\t\t\t\n\t\t\t\t\t\t$executed = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!$executed) {\n\t\t\t\t\tthrow $e;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(Exception $e) {\n\t\t\tself::$instance->handleDefaultException($e);\n\t\t}\n\t}",
"static function route () {\n\t\tif (isset($_GET['path'])) {\n\t\t\t$get_path = $_GET['path'];\n\t\t}\n\t\telse {\n\t\t\t$get_path = '/';\n\t\t}\n\n\t\t// check if GET path has a match, show 404 by default if it does not\n\t\t$parameters = [];\n\t\t$controller_method = 'AppController::four_zero_four';\n\n\t\tforeach (self::$routes as $route) {\n\t\t\tif ($route['regex_path'] != '/') {\n\t\t\t\t$route['regex_path'] = trim($route['regex_path'], '/');\n\t\t\t}\n\n\t\t\tif (preg_match('|^'.$route['regex_path'].'$|i', $get_path, $parameters)) {\n\t\t\t\t// match found for GET path\n\t\t\t\tif ($route['auth_required'] == 'not_signed_in' && AppUser::is_signed_in()) {\n\t\t\t\t\t// auth required is not_signed_in and user is signed in, redirect to dashboard\n\t\t\t\t\tRedirector::redirect('dashboard');\n\t\t\t\t}\n\t\t\t\telse if ($route['auth_required'] == 'signed_in' && !AppUser::is_signed_in()) {\n\t\t\t\t\t// auth required is signed in and user is not signed in, redirect to sign in page\n\t\t\t\t\tRedirector::redirect('sign_in');\n\t\t\t\t}\n\n\t\t\t\tif ($route['permission_required'] == null || AppUser::has_permission($route['permission_required'])) {\n\t\t\t\t\t// set controller method if user has permission\n\t\t\t\t\t$controller_method = $route['controller_method'];\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// user does not have permission, redirect to index\n\t\t\t\t\tRedirector::redirect('/');\n\t\t\t\t}\n\n\t\t\t\t// remove first parameter as it is the GET path and not a value we want\n\t\t\t\tif (!empty($parameters)) {\n\t\t\t\t\tunset($parameters[0]);\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// route to the corresponding controller method\n\t\tcall_user_func_array($controller_method, $parameters);\n\t}",
"public function run(): void\n {\n $requestBody = $this->getConfig()->getInputAdapter()::getParsedBody();\n $request = ServerRequestFactory::fromGlobals(\n $_SERVER,\n $_GET,\n $requestBody,\n $_COOKIE,\n $_FILES\n );\n\n $queue = [];\n\n $queue[] = new \\Middlewares\\Emitter();\n $queue[] = new ErrorHandler([new JsonFormatter()]);\n $queue[] = (new \\Middlewares\\PhpSession())->name('VENUSSESSID')\n ->regenerateId(60); // Prevent session fixation attacks\n\n $queue[] = (new \\Middlewares\\FastRoute(\n $this->getConfig()->getDispatcher()\n ))->attribute('handler');\n\n $queue = array_merge($queue, $this->getConfig()->getMiddlewares());\n\n // Use router access permission check\n if ($this->getConfig()->usePermission()) {\n $queue[] = (new Permission(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n }\n\n $queue[] = (new RequestHandler(\n $this->getConfig()->getContainer()\n ))->handlerAttribute('handler');\n\n $dispatcher = new Dispatcher($queue);\n $dispatcher->dispatch($request);\n }",
"public function resolveRequestHandler() {\n\t\t$availableRequestHandlerClassNames = $this->reflectionService->getAllImplementationClassNamesForInterface('F3\\FLOW3\\MVC\\RequestHandlerInterface');\n\n\t\t$suitableRequestHandlers = array();\n\t\tforeach ($availableRequestHandlerClassNames as $requestHandlerClassName) {\n\t\t\tif (!$this->objectManager->isObjectRegistered($requestHandlerClassName)) continue;\n\n\t\t\t$requestHandler = $this->objectManager->getObject($requestHandlerClassName);\n\t\t\tif ($requestHandler->canHandleRequest()) {\n\t\t\t\t$priority = $requestHandler->getPriority();\n\t\t\t\tif (isset($suitableRequestHandlers[$priority])) throw new \\F3\\FLOW3\\MVC\\Exception('More than one request handler with the same priority can handle the request, but only one handler may be active at a time!', 1176475350);\n\t\t\t\t$suitableRequestHandlers[$priority] = $requestHandler;\n\t\t\t}\n\t\t}\n\t\tif (count($suitableRequestHandlers) === 0) throw new \\F3\\FLOW3\\MVC\\Exception('No suitable request handler found.', 1205414233);\n\t\tksort($suitableRequestHandlers);\n\t\treturn array_pop($suitableRequestHandlers);\n\t}",
"public function handleExpiredWorkerHandlers()\n {\n if (!$this->hasExpiredWorkerHandler()) {\n return;\n }\n\n foreach ($this->request as $request) {\n $worker_handler_id = $request->getWorkerHandlerId();\n\n if ($this->hasWorkerHandler($worker_handler_id)) {\n continue;\n }\n\n $this->addWorkerQueue($request->getId());\n\n $this->getLogger()->info(\n sprintf(\n 'WorkerHandler %s for request %s is expired. '.\n 'Therefore, the request is queued again.',\n $worker_handler_id,\n $request->getId()\n )\n );\n }\n }",
"function routes($http, $uri) {\n\n $dispatcher = FastRoute\\simpleDispatcher(function(FastRoute\\RouteCollector $r) {\n $r->addRoute('GET', '/question', 'questions#get_answer');\n $r->addRoute('GET', '/hello', 'questions#get_hello');\n $r->addRoute('GET', '/question/{name}/{id}/', 'questions#get_answer');\n $r->addRoute('GET', '/question/{name}/{id}', 'questions#get_answer');\n });\n\n\n// Strip query string (?foo=bar) and decode URI\n if (false !== $pos = strpos($uri, '?')) {\n $uri = substr($uri, 0, $pos);\n }\n\n $uri = rawurldecode($uri);\n $uri = str_replace(BASENAME_DIR . '/', '', $uri);\n $routeInfo = $dispatcher->dispatch($http, $uri);\n\n switch ($routeInfo[0]) {\n case FastRoute\\Dispatcher::NOT_FOUND:\n core\\basebuild::view('error/404');\n break;\n case FastRoute\\Dispatcher::METHOD_NOT_ALLOWED:\n $allowedMethods = $routeInfo[1];\n echo 'allowed not found';\n break;\n case FastRoute\\Dispatcher::FOUND:\n\n $handler = explode('#', $routeInfo[1]);\n $build = $handler[0];\n $function = $handler[1];\n $vars = $routeInfo[2];\n $interfaces = APP_INTERFACE . $build;\n $interfaces = new $interfaces();\n $interfaces->$function();\n break;\n }\n}",
"public function handle_routing( $continue ) {\n\n\t\t// Get the request path / URI.\n\t\t$request_path = $_SERVER['REQUEST_URI'] ?? '';\n\t\t$request_path = trim( $request_path, '/' ); // Remove leading/trailing slashes.\n\t\t$request_path = strtok( $request_path, '?' ); // Remove query string args.\n\n\t\t// Root sitemap.\n\t\tif ( preg_match( '{^sitemap_index.xml$}', $request_path ) ) {\n\t\t\t$this->handle_route_sitemap_root();\n\t\t}\n\n\t\t// Sitemap XSL which doesn't work otherwise for some reason.\n\t\tif ( preg_match( '{^main-sitemap.xsl$}', $request_path ) ) {\n\t\t\t$this->handle_route_sitemap_xsl();\n\t\t}\n\n\t\treturn $continue;\n\n\t}",
"abstract public function handler(string $message);",
"function wpib_register_route() {\n\tregister_rest_route( 'wpib/1.0/', '/inbox', array(\n\t\tarray(\n\t\t\t'methods' => 'POST',\n\t\t\t'callback' => 'wpib_on_email_recived',\n\t\t\t'args' => array(\n\t\t\t\t'mandrill_events' => array(\n\t\t\t\t\t'required' => true\n\t\t\t\t),\n\t\t\t)\n\t\t),\n\t) );\n}",
"public function handled($rt = '')\n {\n $uriSegmentsInThisRoute = explode('/', $this->urlToMatch);\n $uriSegmentsInRequestedRoute = explode('/', $rt);\n\n if (count($uriSegmentsInRequestedRoute) == count($uriSegmentsInThisRoute)) {\n $thisUrlUpToFirstDollarSign = explode('/$',$this->urlToMatch)[0];\n $numberOfSegmentsUpToFirstDollarSign = count( explode('/',$thisUrlUpToFirstDollarSign) );\n $theyMatch = true;\n for( $i=0; $i<$numberOfSegmentsUpToFirstDollarSign; $i++ ) {\n if ( strcmp($uriSegmentsInThisRoute[$i],$uriSegmentsInRequestedRoute[$i]) <> 0 ) {\n $theyMatch = false;\n break;\n }\n }\n\n if ( $theyMatch ) {\n if ($this->processMiddleWare()==true) {\n // have to explode these two again, in case middleware changed anything\n $uriSegmentsInThisRoute = explode('/',$this->urlToMatch);\n $uriSegmentsInRequestedRoute = explode('/', $rt);\n $NumberOfParams = count(explode('$',$this->urlToMatch)) - 1;\n $params = array();\n for ($i = count($uriSegmentsInThisRoute) - $NumberOfParams; $i < count($uriSegmentsInThisRoute); $i++) {\n $params[] = $uriSegmentsInRequestedRoute[$i];\n }\n \\ipinga\\log::ipinga('Route {'. $this->identifier .'} ('. $this->urlToMatch. ') fired!');\n self::launchController($this->controller, $this->method, $params);\n $this->fired = true;\n return true;\n } else {\n \\ipinga\\log::ipinga('Route {'. $this->identifier .'} middcleware refused');\n }\n }\n\n }\n\n return false;\n\n }",
"public function processRequests() {\n\t\t$receivedRequests = $this->receivedRequestMapper->findAll();\n\t\tforeach ($receivedRequests as $receivedRequest) {\n\t\t\t$id = $receivedRequest->getId();\n\t\t\t$sendingLocation = $receivedRequest->getSendingLocation();\n\t\t\t$type = $receivedRequest->getRequestType();\n\t\t\t$addedAt = $receivedRequest->getAddedAt();\n\t\t\t$field1 = $receivedRequest->getField1();\n\t\t\t\n\t\t\tswitch ($type) {\n\t\t\t\tcase Request::USER_EXISTS: //Want same behavior for these two queries\n\t\t\t\tcase Request::FETCH_USER: //for login for a user that doesn't exist in the db\n\t\t\t\t\t$userExists = $this->api->userExists($field1) ? '1' : '0';\t\n\n\t\t\t\t\t$this->api->beginTransaction();\n\t\t\t\t\t$response = new QueuedResponse($id, $sendingLocation, (string) $userExists, $this->api->microTime());\n\t\t\t\t\t$this->queuedResponseMapper->save($response); //Does not throw Exception if already exists\n\n\t\t\t\t\tif ($userExists) {\n\t\t\t\t\t\t$userUpdate = $this->userUpdateMapper->find($field1);\n\t\t\t\t\t\t$displayName = $this->api->getDisplayName($field1);\n\t\t\t\t\t\t$password = $this->api->getPassword($field1);\n\t\t\t\t\t\t$queuedUser = new QueuedUser($field1, $displayName, $password, $userUpdate->getUpdatedAt(), $sendingLocation); \n\t\t\t\t\t\t$this->queuedUserMapper->save($queuedUser); //Does not throw Exception if already exists\n\t\t\t\t\t}\n\t\t\t\t\t$this->api->commit();\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$this->api->log(\"Invalid request_type {$type} for request from {$sendingLocation} added_at {$addedAt}, field1 = {$field1}\");\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$request = $this->receivedRequestMapper->delete($receivedRequest);\n\t\t}\n\t}",
"public static function handler()\n\t{\n\t\t$instance = self::get_instance() ;\n\n\t\t$type = LiteSpeed_Cache_Router::verify_type() ;\n\n\t\tswitch ( $type ) {\n\n\t\t\tdefault:\n\t\t\t\tbreak ;\n\t\t}\n\n\t\tLiteSpeed_Cache_Admin::redirect() ;\n\t}",
"public function route()\n {\n $request = '';\n if (isset($_GET['q']))\n {\n $request = $_GET['q'];\n }\n \n $this->request = $request;\n $this->rebuildGet();\n \n //get controller\n $found = false;\n \n if ($request == '')\n {\n $request = 'index';\n }\n \n $segments = explode('/', $request);\n $dir = APP_PATH.'controllers/';\n foreach ($segments as $index => $segment)\n {\n $segment = str_replace('-', '_', $segment);\n if (file_exists($dir.$segment.'.php'))\n {\n //load controller\n $found = true;\n $this->params = array_slice($segments, $index+1);\n require($dir.$segment.'.php');\n break;\n }\n else\n {\n $dir .= $segment.'/';\n }\n }\n \n if (!$found)\n {\n //try index controller\n if (file_exists($dir.'index.php'))\n {\n //load controller\n $found = true;\n $this->params = array();\n require($dir.'index.php');\n }\n }\n \n if (!$found)\n {\n $this->notFound();\n }\n \n $this->completeRequest();\n }",
"public function DispatchRequest ();",
"public function run(){\n // server response object \n $requestMethod = $this->requestBuilder->getRequestMethod();\n $this->response = new Response($requestMethod);\n\n try{\n $route = $this->router->validateRequestedRoute($this->requestBuilder);\n\n // serve request object\n $this->requestBuilder->setQuery();\n $this->requestBuilder->setBody();\n $requestParams = $this->requestBuilder->getParam();\n $requestQuery = $this->requestBuilder->getQuery();\n $requestBody = $this->requestBuilder->getBody(); \n $this->request = new Request($requestParams, $requestQuery, $requestBody);\n\n $callback = $route->getCallback();\n $callback($this->request, $this->response);\n }catch(RouteNotImplementedException $e){\n $this->response->statusCode(404)->json($e->getMessage()); \n }\n \n }",
"public function route()\n {\n $path = Url::getPath();\n\n // If no routes exist, set 404\n if (count($this->routes) == 0)\n {\n return;\n }\n\n // Check if exact match (cheap)\n if ((isset($this->routes[$path]))\n && (!$this->routes[$path]['is_regex']))\n {\n $this->dispatch($this->routes[$path]);\n exit;\n }\n\n // Loop through all routes and attempt to find a match. (expensive)\n foreach ($this->routes as $i => $route)\n {\n $matches = null;\n\n // If route found\n if (($route['is_regex'])\n && (preg_match($route['match'], $path, $matches)))\n {\n // Remove full match from array list\n array_shift($matches);\n\n $this->dispatch($route, $matches);\n exit;\n }\n }\n }",
"public function __invoke(ServerRequestInterface $request, Route $route);",
"public function match(ServerRequestInterface $request) : RouteInterface;",
"public function map()\n {\n $this->mapProcessEngineRoutes();\n $this->mapApiRoutes();\n $this->mapWebRoutes();\n }",
"public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n $this->mapCustomerRoutes();\n\n $this->mapInternalRoutes();\n\n $this->mapVendorRoutes();\n\n $this->mapWhiteGloveRoutes();\n\n $this->mapLocalRoutes();\n }",
"function handleRequest() ;",
"public static function dispatch()\n {\n self::runDispatcher();\n if (!self::$halts && !self::$groupHalt) {\n Debugger::report(404);\n }\n }",
"abstract public function handleRequest($request);",
"function serve(array $routes, string $reqmethod, string $reqpath, ...$args): callable {\n\n $action = null;\n $params = null;\n $mwares = null;\n\n # test method + path against action method + expression\n foreach ($routes as [$actmethod, $regexp, $handlers]) {\n if ($reqmethod === $actmethod && preg_match($regexp, $reqpath, $caps)) {\n # action is last in the handlers chain\n $action = array_pop($handlers);\n $params = array_slice($caps, 1);\n $mwares = $handlers;\n break;\n }\n }\n\n # no matching route, 404\n if (empty($action)) {\n return call_user_func(_404(), ...$args);\n }\n\n # if we have params, run them through bindings\n $bindings = stash(DISPATCH_BINDINGS_KEY) ?? [];\n if (count($params) && count($bindings)) {\n foreach ($params as $key => $val) {\n $params[$key] = isset($bindings[$key])\n ? call_user_func($bindings[$key], $params[$key], ...$args)\n : $params[$key];\n }\n }\n\n # wrap action as last midware chain link\n $next = function () use ($action, $params, $args) {\n return empty($params)\n ? $action(...$args)\n : $action($params, ...$args);\n };\n\n # prepend matching global middleware into middleware chain\n $globalmwares = array_reverse(stash(DISPATCH_MIDDLEWARE_KEY) ?? []);\n foreach ($globalmwares as $middleware) {\n $pattern = array_shift($middleware);\n if (preg_match($pattern, $reqpath)) {\n array_unshift($mwares, ...$middleware);\n }\n }\n\n # build midware chain, from last to first, if any\n foreach (array_reverse($mwares) as $middleware) {\n $next = function () use ($middleware, $next, $params, $args) {\n return empty($params)\n ? $middleware($next, ...$args)\n : $middleware($next, $params, ...$args);\n };\n }\n\n # trigger middleware chain + handlers\n return $next();\n}",
"public function handlerNeedsRequest()\n {\n }",
"public function matchRequest(\\WP $environment)\n {\n $request = Request::getInstance();\n $matched_route = $this->match($environment->query_vars, $request->getMethod());\n\n if ($matched_route instanceof Route) {\n $this->matchedRoute = $matched_route;\n //Add query vars to request object\n $path = $this->matchedRoute->getPath();\n if (strpos($path, '{') !== false) {\n preg_match_all('/{(.*?)}/', $path, $wildCardsMatchs);\n if (!empty($wildCardsMatchs[1])) {\n foreach ($wildCardsMatchs[1] as $wildCard) {\n //Passing them to the request\n $request->query->set($wildCard, $environment->query_vars[$wildCard]);\n //Keeping them for the callable\n $this->matchedRouteParams[$wildCard] = $environment->query_vars[$wildCard];\n }\n }\n }\n }\n if ($matched_route instanceof \\WP_Error) {\n if (in_array('route_not_found', $matched_route->get_error_codes())) {\n wp_redirect('/404');\n }\n if (in_array('method_not_authorized', $matched_route->get_error_codes())) {\n wp_redirect('/503');\n }\n }\n }",
"public function route() {\n\n try {\n \n $obj = APIFactory::init($this->parsed_path[0]);\n echo $this->getAction($obj, $this->parsed_path);\n \n } catch(UndefinedActionException $e) { \n\n echo $e->getMessage();\n\n } catch(Exception $e) {\n\n echo $e->getMessage();\n\n }\n }",
"function dispatch() {\n $app = $this->app;\n $db = $this->db;\n $u = $this->user;\n $cl = $this;\n foreach ($this->pages as $i => $p) {\n $app->group('/'.$p, function () use ($app, $db, $p, $u) {\n $class = 'includes/pages/class.'.$p.'.php';\n if (file_exists($class)) {\n require_once($class);\n $cn = '\\\\'.ucfirst($p);\n $pg = new $cn($app, $db, $u);\n }\n });\n }\n\n $this->app->notFound(function() use($app) {\n $app->halt(404, json_encode(array('status' => 404, 'message' => 'not found')));\n });\n\n $app->run();\n }",
"public function run()\n {\n $uri = $this->getURI();\n\n // Check the availability of this request in the array of routes (routesOld.php)\n foreach ($this->routes as $uriPattern => $path) {\n\n // Compare $uriPattern and $uri\n if (preg_match(\"~$uriPattern~\", $uri)) {\n\n $internalRoute = preg_replace(\"~$uriPattern~\", $path, $uri);\n\n\n $segments = explode('/', $internalRoute);\n\n $controllerName = array_shift($segments) . 'Controller';\n $controllerName = ucfirst($controllerName);\n\n $action = array_shift($segments);\n $actionName = 'action' . ucfirst($action);\n\n $parameters = $segments;\n\n $controllerName = $this->controlNameSpace . $controllerName;\n $controllerObject = new $controllerName;\n\n return ['ref' => $controllerObject,\n 'actionName' => $actionName,\n 'args' => $parameters];\n\n }\n }\n }",
"public function map()\n {\n $this->mapApiRoutes();\n\n $this->mapWebRoutes();\n\n //\n }",
"public function resolve(): void\n {\n $path = $this->request->path();\n $method = $this->request->method();\n $handler = $this->routes[$method][$path] ?? false;\n\n if (!$handler) {\n $this->response->showNotFoundPage();\n return;\n }\n\n [$controller, $method] = $handler;\n\n (new $controller())->$method($this->request);\n }"
] | [
"0.5892556",
"0.56021845",
"0.55596864",
"0.5546113",
"0.5518553",
"0.5489541",
"0.5473459",
"0.5414586",
"0.5366478",
"0.53508157",
"0.5321542",
"0.5315449",
"0.5286896",
"0.5268917",
"0.52593595",
"0.5256602",
"0.5251807",
"0.52385813",
"0.5226879",
"0.5196391",
"0.5190374",
"0.51894385",
"0.5184486",
"0.51774794",
"0.5172423",
"0.5143951",
"0.513394",
"0.51219213",
"0.5112974",
"0.5110283",
"0.509392",
"0.5083985",
"0.50637424",
"0.5051554",
"0.5047041",
"0.5037265",
"0.50298274",
"0.50197226",
"0.5019672",
"0.5018143",
"0.50066215",
"0.49882862",
"0.49835277",
"0.49793494",
"0.49767864",
"0.4972496",
"0.49698046",
"0.4953359",
"0.49320537",
"0.49312717",
"0.49306694",
"0.49275494",
"0.49264246",
"0.49254954",
"0.49152187",
"0.49138814",
"0.49132475",
"0.49062005",
"0.49062005",
"0.49062005",
"0.4902005",
"0.4891868",
"0.48860347",
"0.48807433",
"0.48800427",
"0.48762158",
"0.48684528",
"0.4865803",
"0.48523292",
"0.48521703",
"0.48517254",
"0.48416626",
"0.48385438",
"0.48382384",
"0.4836428",
"0.4832096",
"0.4831357",
"0.48275512",
"0.48240417",
"0.48229197",
"0.48193064",
"0.48148388",
"0.48079288",
"0.4805387",
"0.48052606",
"0.47943616",
"0.4787402",
"0.47763237",
"0.47674027",
"0.47638643",
"0.47530225",
"0.4746346",
"0.474029",
"0.47336587",
"0.472659",
"0.47079787",
"0.47042808",
"0.47032517",
"0.4702915",
"0.4702105"
] | 0.52849 | 13 |
Checks that the message ID is valid. It cannot be zero or a message ID that was already used. | protected function isValidRequest(LdapMessageRequest $message): bool
{
if ($message->getMessageId() === 0) {
$this->queue->sendMessage($this->responseFactory->getExtendedError(
'The message ID 0 cannot be used in a client request.',
ResultCode::PROTOCOL_ERROR
));
return false;
}
if (in_array($message->getMessageId(), $this->messageIds, true)) {
$this->queue->sendMessage($this->responseFactory->getExtendedError(
sprintf('The message ID %s is not valid.', $message->getMessageId()),
ResultCode::PROTOCOL_ERROR
));
return false;
}
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function checkID(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_numeric($this->_ID) && $this->_ID !== 0 ) {\n\t\t\t$inMessage .= \"{$this->_ID} is not a valid value for ID\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}",
"protected function checkID(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_numeric($this->_ID) && $this->_ID !== 0 ) {\n\t\t\t$inMessage .= \"{$this->_ID} is not a valid value for ID\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}",
"protected function checkID(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_numeric($this->_ID) && $this->_ID !== 0 ) {\n\t\t\t$inMessage .= \"{$this->_ID} is not a valid value for ID\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}",
"private function validateId()\n {\n return is_numeric($this->id) && (int)$this->id >= 1;\n }",
"protected function checkUserID(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_numeric($this->_UserID) && $this->_UserID !== 0 ) {\n\t\t\t$inMessage .= \"{$this->_UserID} is not a valid value for UserID\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}",
"protected function checkMovieID(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_numeric($this->_MovieID) && $this->_MovieID !== 0 ) {\n\t\t\t$inMessage .= \"{$this->_MovieID} is not a valid value for MovieID\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}",
"public function valide_messageid() {\n\t\tif (empty ( $this->getMessageId () )) {\n\t\t\t$this->onDebug ( $this->getMessageId (), 2 );\n\t\t\t$this->onError ( \"Il faut un message id renvoye par O365 pour travailler\" );\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"function invalid_id($id)\n{\n\treturn isset($id) && $id < 0;\n}",
"private function __validate_id() {\n if (isset($this->initial_data[\"id\"])) {\n # Check the Unbound ACLs array for ID\n if (array_key_exists($this->initial_data[\"id\"], $this->config[\"unbound\"][\"acls\"])) {\n $this->id = $this->initial_data[\"id\"];\n } else {\n $this->errors[] = APIResponse\\get(2074);\n }\n } else {\n $this->errors[] = APIResponse\\get(2072);\n }\n }",
"private function checkID($id)\n {\n if ($id == 0) {\n $response = array(\"status\" => false, \"message\" => 'Invalid ID');\n $this->send(400, $response);\n }\n }",
"public function validate_message( $id ) {\n $v = $this->call( \"messageValidate\", [ 'messageId' => $id ] );\n return ($v != false && ! isset( $v->validationResult->code ) ) ? true : false;\n }",
"protected function validateId($id) {\n // check blacklist\n if (in_array($id,$this->blackList)) {\n $this->isBlackListed = true;\n $this->valid = false;\n\n return false;\n }\n\n // check string length\n // GLN Numbers are 14 characters long\n // FN Numbers (with or without FN prefix) are at least 5 characters long\n // GKZ Numbers are 5 characters long\n $this->valid = strlen($id) > 4;\n\n return $this->valid;\n }",
"private function __validate_id() {\n if (isset($this->initial_data[\"id\"])) {\n $id = intval($this->initial_data[\"id\"]);\n\n # Ensure a bandwidth object with this ID exists\n if (array_key_exists($id, $this->config[\"dnshaper\"][\"queue\"][$this->parent_id][\"bandwidth\"][\"item\"])) {\n $this->id = $id;\n $this->validated_data = $this->config[\"dnshaper\"][\"queue\"][$this->parent_id][\"bandwidth\"][\"item\"][$id];\n } else {\n $this->errors[] = APIResponse\\get(4216);\n }\n } else {\n $this->errors[] = APIResponse\\get(4215);\n }\n }",
"public function isValid() {\n return !empty($id);\n }",
"private function checkUserId() {\n\t\tif(!$this->userId || gettype($this->userId) != 'integer') {\n\t\t\tthrow new ErrorException($this->idErrorMessage);\n\t\t}\n\t\treturn true;\n\t}",
"public function testGenerateMessageId()\n {\n if ( ezcMailTools::generateMessageID( \"doe.com\" ) === ezcMailTools::generateMessageID( \"doe.com\") )\n {\n $this->fail( \"testGenerateMessageID generated the same ID twice\" );\n }\n }",
"Public function testGetInvalidMessageByMessageId(){\n\t //create a new message\n\t $newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t $newMessage->insert($this->getPDO());\n\n\t //grab the data from guzzle\n\t $response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t $this->assertSame($response->getStatusCode(),200);\n\t $body = $response->getBody();\n\t $alertLevel = json_decode ($body);\n\t $this->assertSame(200, $alertLevel->status);\n }",
"function isvalid_ID( $id = null, $request_param = null ) {\n\n\t\t\tif ( ! is_null( $request_param ) && ! empty( $_REQUEST[ $request_param ] ) ) {\n\t\t\t\t$id = (int) $_REQUEST[ $request_param ];\n\t\t\t}\n\n\t\t\tif ( is_null( $id ) ) {\n\t\t\t\t$id = $this->id;\n\t\t\t}\n\n\t\t\t$id = (int) $id;\n\n\t\t\treturn ( $id > 0 );\n\t\t}",
"protected function checkProfileID(&$inMessage = '') {\n\t\t$isValid = true;\n\t\tif ( !is_numeric($this->_ProfileID) && $this->_ProfileID !== 0 ) {\n\t\t\t$inMessage .= \"{$this->_ProfileID} is not a valid value for ProfileID\";\n\t\t\t$isValid = false;\n\t\t}\n\t\treturn $isValid;\n\t}",
"public function isValidId($id);",
"private function validateForumId(){\n \t\tif (!is_null($this->_id) && is_numeric($this->_id)) return;\n \t\t\n \t\t$id = $this->_id =0;\n \t\tif (!$this->isOptionSet('id')){\n \t\t\tif ($this->isOptionSet('name')){\n\t\t\t\t$name = strtolower($this->getOption('name'));\n\t\t\t\tif ($this->doesNameExists($name,$this->isDebug())) \n\t\t\t\t\t$id = $this->_id = $this->retrieveForumId($name,$this->isDebug());\n \t\t\t}else{\n \t\t\t\t$this->setError('noId');\n \t\t\t\treturn;\t\n \t\t\t} \t\t\t\n \t\t}else $this->_id = $id = $this->getOption('id');\n\t\t\n \t\tif (!$this->doesForumExists($id,false)){\n \t\t\tthrow new ForumMException('supplied forum id ('.$id.') is invalid');\n \t\t}\n \t\t$this->_id = $id;\n \t}",
"public function testGetValidMessagebyMessageId(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}",
"public static function validId($input)\n\t{\n\t\treturn (isset($input) && is_numeric($input) && $input > 0);\n\t}",
"function isValid(&$message = '') {\n\t\t$valid = true;\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkID($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkUserID($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkProfileName($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkActive($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkCreateDate($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkUpdateDate($message);\n\t\t}\n\t\treturn $valid;\n\t}",
"public function isValidId($id) {\n\t\treturn (is_numeric($id) && $id > 0) ? true : false;\n\t}",
"function isValid() {\n return( BitBase::verifyId( $this->mContentId ) );\n }",
"public function isValidId($id)\n\t{\n\t\t//return is_string($id) && preg_match('/^[a-f0-9]{40}$/', $id);\n\n\t\t// overload this checking\n\t\t// check that session id has enough characters\n\t\treturn strlen($id) == 64;\n\t}",
"function validateIdNumber($idNumber, $name)\n\t\t{\n\t\t\t// include the Id Number Validator Class and validate the id number\n\t\t\tinclude(\"class_libraries/IdNumberValidator.php\");\n\t\t\t$idValidator = new IdNumberValidator();\n\t\t\t\n\t\t\t// validate the id number\n\t\t\t$result = $idValidator -> validateIdNumber($idNumber, $name);\n\t\t\t\n\t\t\t// check the result\n\t\t\tif($result == false)\n\t\t\t{\n\t\t\t\t// get the error and return it\n\t\t\t\treturn $idValidator -> getErrors();\n\t\t\t}\n\t\t\t\n\t\t\treturn false;\n\t\t}",
"protected function get_user_message_id() {\n\n\t\t$codes = array(\n\t\t\t'22' => 'card_number_invalid',\n\t\t\t'25' => 'card_expiry_invalid',\n\t\t\t'08' => 'csc_mismatch',\n\t\t\t'44' => 'avs_mismatch',\n\t\t\t'F1' => 'avs_mismatch',\n\t\t\t'F2' => 'card_declined',\n\t\t\t'201' => 'card_number_invalid',\n\t\t\t'302' => 'insufficient_funds',\n\t\t\t'303' => 'card_declined',\n\t\t\t'304' => 'card_number_type_invalid',\n\t\t\t'401' => 'card_declined',\n\t\t\t'402' => 'card_declined',\n\t\t\t'501' => 'card_declined',\n\t\t\t'502' => 'decline',\n\t\t\t'503' => 'csc_mismatch',\n\t\t\t'505' => 'decline',\n\t\t\t'508' => 'decline',\n\t\t\t'509' => 'insufficient_funds',\n\t\t\t'510' => 'insufficient_funds',\n\t\t\t'521' => 'insufficient_funds',\n\t\t\t'522' => 'card_expired',\n\t\t\t'530' => 'card_declined',\n\t\t\t'531' => 'csc_mismatch',\n\t\t\t'750' => 'bank_aba_invalid',\n\t\t\t'751' => 'bank_aba_invalid',\n\t\t\t'787' => 'decline',\n\t\t\t'811' => 'csc_mismatch',\n\t\t\t'903' => 'card_expiry_invalid',\n\t\t);\n\n\t\treturn isset( $codes[ $this->get_status_code() ] ) ? $codes[ $this->get_status_code() ] : 'error';\n\t}",
"private static function isValidID($id) {\n\t\tif(!is_string($id)) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif(strlen($id) < 1) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif(preg_match('/[^0-9a-z]/', $id)) {\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}",
"public function isValid() : bool {\n\t\treturn (int) $this->id > 0;\n\t}",
"private function verifyID($urlID) {\n\t\t# However, returns true if the url is a valid custom-one\n\t\t# Note that the ID must ALWAYS be in base10\n\t\tif(!isset($urlID)) {\n\t\t\tthrow new Exception(\"Missing parameter, aborting.\", 0);\n\t\t}\n\n\t\tif(preg_match(\"/^[0-9]+$/\", $urlID)) {\n\t\t\t# The id submitted seems to be a normal int'y id\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\t$this->log->logInfo(\"Invalid ID submitted - {$urlID}\");\n\t\t\theader(\"Location:{$this->siteURL}error/201\");\n\t\t\tdie;\n\t\t}\n\t}",
"private function validate()\r\n\t{\r\n\t\tif (!ctype_digit($this -> curComm))\r\n\t\t{\r\n\t\t\t$this -> Error('er1');\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t//check if the user with chat_id exists\r\n\t\tif (!($this -> Exists()))\r\n\t\t{\r\n\t\t\t$this -> Error('er2');\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t//check if the inputed chat_id = user chat_id\r\n\t\tif (($this -> isSelf()))\r\n\t\t{\r\n\t\t\t$this -> Error('er3');\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 1;\t \t\r\n\t}",
"function messageExists($id){\n return (getSingleValue(\"SELECT COUNT(`id`) FROM `private_messages` WHERE `id` = '\" . escape(intval($id)) . \"'\") >= 1);\n }",
"public static function checkId($id){\n return (!empty($id) && $id != NULL && is_numeric($id));\n }",
"public function isValidId($id) {\n // In NCTU, student id is 7 digits\n if (strlen($id) != 7) return FALSE;\n if (!ctype_digit($id)) return FALSE;\n return TRUE;\n }",
"public static function validate_id($value){\n\t\treturn (int)$value > 0;\n\t}",
"function isValid(&$message = '') {\n\t\t$valid = true;\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkID($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkMovieID($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkType($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkExt($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkProfileID($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkDescription($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkWidth($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkHeight($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkMetadata($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkFilename($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkDateModified($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkCdnURL($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkNotes($message);\n\t\t}\n\t\treturn $valid;\n\t}",
"public static function isValidId($id) {\n if ($id != null && is_numeric($id) && $id > 0) {\n return true;\n }\n return false;\n }",
"public function isIdValid($id)\n {\n \treturn $this->mgrOrder->isIdValid($id);\n }",
"function isValid(&$message = '') {\n\t\t$valid = true;\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkID($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkReplacesTerms($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkVersion($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkDescription($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkHtmlLink($message);\n\t\t}\n\t\tif ( $valid ) {\n\t\t\t$valid = $this->checkPdfLink($message);\n\t\t}\n\t\treturn $valid;\n\t}",
"public function isValidId( $id )\n\t{\n\t\ttry\n\t\t{\n\t\t\tstatic::normalizeId( $id );\n\n\t\t\treturn true;\n\t\t}\n\t\tcatch ( \\InvalidArgumentException $e )\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public static function isValidId(string $id) : bool {\n\t\treturn strlen($id) <= 5 && preg_match('/^[0-9]+$/', $id) === 1;\n\t}",
"function isValid(&$inMessage = '');",
"public function isValid($id);",
"abstract public function supportsMessageIDHeader();",
"abstract public function supportsMessageIDHeader();",
"abstract public function supportsMessageIDHeader();",
"public function validate()\n {\n // generate Token String\n $idTokenString = $this->getTokenString($this->_key);\n return ($idTokenString == $this->_tokenString);\n }",
"public function hasMessageId(){\n return $this->_has(3);\n }",
"public static function id_exists($id)\n {\n if (is_numeric($id) && gettype($id) == 'integer') {\n // check numeric indexes created with $array[] = 'message'; has no sense\n // only string ids are valid\n return false;\n }\n\n foreach (self::getMessages() as $type => $messages) {\n if (empty($messages))\n continue;\n\n if (isset($messages[$id])) {\n return true;\n }\n }\n\n return false;\n }",
"function validateIdNumber($idNumber, $name)\n {\n //include the id number validator class to validate the id number and the name of the student if it matches\n include(\"../includes/class_libraries/IdNumberValidator.php\");\n $idNumberValidator = new IdNumberValidator();\n \n // validate the id number\n $result = $idNumberValidator -> validateIdNumber($idNumber, $name);\n \n // check the result if there is an error committed\n if($result == false)\n {\n // get the error and and return the error\n return $idNumberValidator -> getErrors();\n }\n \n return;\n }",
"public function hasMessageId()\n {\n return $this->MessageId !== null;\n }",
"public function iN_CheckMesageIDExist($userID, $messageID, $conversationID) {\n\t\t$userID = mysqli_real_escape_string($this->db, $userID);\n\t\t$conversationID = mysqli_real_escape_string($this->db, $conversationID);\n\t\t$messageID = mysqli_real_escape_string($this->db, $messageID);\n\t\t$checkMessage = mysqli_query($this->db, \"SELECT * FROM i_chat_conversations WHERE chat_id_fk = '$conversationID' AND con_id = '$messageID' AND user_one = '$userID'\") or die(mysqli_error($this->db));\n\t\tif (mysqli_num_rows($checkMessage) == 1) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static function is_valid_id( $pixel_id ) {\n\t\t\treturn isset( $pixel_id ) && is_numeric( $pixel_id ) && (int) $pixel_id > 0;\n\t\t}",
"function validateBlacklistId( $id ) {\n $rowcount = $this->SHARED_DB->get_var($this->SHARED_DB->prepare(\n \"SELECT COUNT(1)\n FROM hbo_blacklist\n WHERE id = %d\", $id));\n\n if($this->SHARED_DB->last_error) {\n throw new DatabaseException($this->SHARED_DB->last_error);\n }\n\n if ($rowcount == 0) {\n throw new DatabaseException( \"Unable to find blacklist id $id\" );\n }\n }",
"function isValid() {\n\t\treturn( $this->verifyId( $this->mPostId ) && is_numeric( $this->mPostId ) && $this->mPostId > 0 );\n\t}",
"function revalidateUserID() {\n\t\tglobal $pun_user;\n\t\t\n\t\tif($this->getUserRole() === AJAX_CHAT_GUEST && $pun_user['is_guest'] || ($this->getUserID() === $pun_user['id'])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public function validate_id( $link_id ) {\n\t\t$ret = (int) $link_id;\n\n\t\tif ( $ret <= 0 ) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn $ret;\n\t}",
"public function testValidateThrowMissingIdException()\n {\n $this->job->setMapper($this->createMock(Mapper::class));\n\n $this->job->setCsvData([['Name', 'Id'], ['test', 'IdTest']]);\n\n try {\n $this->job->validate();\n } catch (\\Exception $e) {\n $this->assertContains(JobException::MSG_UPSERT_DATA_CANNOT_HAVE_ID_ASSIGNED, $e->getMessage());\n }\n\n $this->job->setExternalId('');\n\n try {\n $this->job->validate();\n } catch (\\Exception $e) {\n $this->assertContains(JobException::MSG_EXTERNAL_ID_FIELD_IS_REQUIRED, $e->getMessage());\n }\n }",
"function _validate_cache_id($object_id)\n {\n }",
"public function isIdentifierValid()\n {\n return (request('identifier') == $this->identifier) ? true : false;\n }",
"public function checkMessage(){\r\n \t\t// checking message\r\n \t\t$message_id = $this->_request->getParam(\"message_id\");\r\n \t\t// check id param for project\r\n \t\tif(!is_numeric($message_id)){\r\n \t\t\t$this->_helper->FlashMessenger(array('error' => 'This FloBox message is not found, are you trying to hack us? :D '));\r\n \t\t\t$this->_redirect('/member/error/');\r\n \t\t}\r\n \t\t \r\n \t\ttry{\r\n \t\t\treturn $this->facadeFlobox->findOneMessage($this->_member_id,$message_id);\r\n \t\t}catch(\\Exception $e){\r\n \t\t\t$this->_helper->FlashMessenger(array('error' => $e->getMessage()));\r\n \t\t\t$this->_redirect('/member/error/');\r\n \t\t}\r\n \t}",
"private function validateCacheId($id)\n\t{\n\t\tif (strlen($id) > self::CACHE_ID_MAX_LENGTH) {\n\t\t\tthrow InvalidCacheId::exceedsMaxLength($id, self::CACHE_ID_MAX_LENGTH);\n\t\t}\n\n\t\tif (preg_match('/[\\t\\r\\n]/', $id) === 1) {\n\t\t\tthrow InvalidCacheId::containsControlCharacter($id);\n\t\t}\n\t}",
"public function testGenerateContentId()\n {\n if ( ezcMailTools::generateContentID() === ezcMailTools::generateContentID() )\n {\n $this->fail( \"testGenerateMessageID generated the same ID twice\" );\n }\n }",
"private function validateId($id):void {\n // Only condition that can be considered invalid $id\n if($id === \"\") {\n if(isset($this->logger))\n $this->logger->error('UId can not be null.');\n throw new COARNotificationException('UId can not be null.');\n }\n\n $pattern = '/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/';\n\n if (!filter_var($id, FILTER_VALIDATE_URL) && (preg_match($pattern, $id) === 0)) {\n if(isset($this->logger))\n $this->logger->warning(\"(UId: '$id') Uid is neither a valid URL nor an UUID.\");\n }\n\n\n }",
"public function validate_file_id($file_id)\r\n\t{\t\r\n\t\t$sid=null;\r\n\t\tif(array_key_exists('sid',$this->form_validation->validation_data)){\r\n\t\t\t$sid=$this->form_validation->validation_data['sid'];\r\n\t\t}\r\n\r\n\t\t//list of all existing FileIDs\r\n\t\t$files=$this->list_fileid($sid);\r\n\r\n\t\tif(in_array($file_id,$files)){\r\n\t\t\t$this->form_validation->set_message(__FUNCTION__, 'FILE_ID already exists. The FILE_ID should be unique.' );\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\treturn true;\r\n\t}",
"public function memberIdCheck ()\r\n {\r\n $member_id = $this->getMember_id(true);\r\n return $this->getMapper()->memberIdCheck($member_id);\r\n }",
"protected function requireId() {\n\t\tif (empty($this->document->_id)) {\n\t\t\tthrow new DocumentException(\"Please provide an _id.\");\n\t\t}\n\t}",
"function is_valid_input( $id = 0 ) {\n \t\treturn true;\n\t}",
"function is_valid_input( $id = 0 ) {\n\n\t\t$rule = 'required|callback_is_valid_name['. $id .']';\n\n\t\t$this->form_validation->set_rules( 'key', get_msg( 'name' ), $rule);\n\n\t\tif ( $this->form_validation->run() == FALSE ) {\n\t\t// if there is an error in validating,\n\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"public function testGetInvalidMessageByOrgId(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}",
"public static function validateId($post_key)\n\t{\n\t\treturn (isset($_POST[$post_key]) && is_numeric($_POST[$post_key]) && $_POST[$post_key] > 0);\n\t}",
"function postCheckformTeamMemberValidation($data, $id) {\n if ($id === null) {\n $check = nkDB_totalNumRows(\n 'FROM '. TEAM_MEMBERS_TABLE .'\n WHERE userId = '. nkDB_quote($data['userId']) .'\n AND team = '. (int) $data['team']\n );\n\n if ($check >= 1) {\n printNotification(__('MEMBER_ALREADY_REGISTRED_IN_TEAM'), 'error');\n return false;\n }\n }\n\n return true;\n}",
"public function facebook_id_check($str) {\n // return FALSE;\n return TRUE;\n }",
"function checkId($input){\n\n $output = preg_match('/^[0-9]+$/', $input);\n if(!$output){\n echo json_encode(\n array(\n \"errorMsg\" => \"ID can only contain numbers\"\n )\n );\n die();\n }\n\n return null;\n }",
"function valid()\n {\n if (isset($this->aid))\n return true;\n else\n return false;\n }",
"public function testGetMessageByIdRequiredParams()\n {\n // Configure HTTP basic authorization: basicAuth\n $config = Configuration::getDefaultConfiguration()\n ->setUsername('YOUR_USERNAME')\n ->setPassword('YOUR_PASSWORD');\n\n $expected_code = 200;\n // Create a mock response\n $expected = new \\Karix\\Model\\MessageResponse();\n // Create a mock handler\n $mock = new \\GuzzleHttp\\Handler\\MockHandler([\n new \\GuzzleHttp\\Psr7\\Response($expected_code, [], $expected),\n ]);\n $handler = \\GuzzleHttp\\HandlerStack::create($mock);\n $client = new \\GuzzleHttp\\Client(['handler' => $handler]);\n\n $apiInstance = new Api\\MessageApi(\n $client,\n $config\n );\n $uid = \"uid_example\";\n\n $_tempVal = $uid;\n $uid = null;\n try {\n $result = $apiInstance->getMessageById($uid);\n $this->fail(\"No exception when calling MessageApi->getMessageById with null uid\");\n } catch (\\InvalidArgumentException $e) {\n $this->assertEquals('Missing the required parameter $uid when calling getMessageById', $e->getMessage());\n }\n $uid = $_tempVal;\n }",
"public function setMessageId($newMessageId) {\n\t//base case: if the message id is null, this a new message without a mySQL assigned id (yet)\n\tif($newMessageId === null) {\n\t\t$this->messageId = null;\n\t\treturn;\n\t}\n\t//verify the message id is valid\n\t$newMessageId = filter_var($newMessageId, FILTER_VALIDATE_INT);\n\tif($newMessageId === false) {\n\t\tthrow(new InvalidArgumentException(\"message id is not a valid integer\"));\n\t}\n\t//verify the message id is positive\n\tif($newMessageId <= 0) {\n\tthrow(new RangeException(\"message id is not positive\"));\n\t}\n\t//convert and store the message id\n\t$this->messageId = intval($newMessageId);\n}",
"static function validateSessionID() {\n\t\t\n\t\t// Connect to the database\n\t\t$db = new Database ();\n\t\t\n\t\t// Figure out that we got a USERID paired to our session\n\t\t// If we got, then we check its format. If wrong then throw it!\n\t\t\n\t\tif ((strlen ( session_id () ) != 32) && isset ( $_SESSION ['userid'] )) {\n\t\t\tthrow new Exception ( \"The session ID is malformed\" );\n\t\t}\n\t\t\n\t\t// Dig deeper into our sessions, fetch the row containing our session ID\n\t\t$query = \"SELECT * FROM user_sessions WHERE session_id = '\" . session_id () . \"'\";\n\t\tforeach ( $db->query ( $query ) as $result ) {\n\t\t\tself::$result = $result;\n\t\t\tself::$valid_session_id = md5 ( $result ['u_id'] . $_SERVER ['HTTP_USER_AGENT'] . self::$salt . $_SERVER ['REMOTE_ADDR'] . $result ['created'] );\n\t\t}\n\t\t\n\t\t// Check whether our sessionID is valid if an userid index is present\n\t\t// If not valid, drop an exception\n\t\tif (session_id () != self::$valid_session_id && isset ( $_SESSION ['userid'] )) {\n\t\t\tself::DestroySession ();\n\t\t}\n\t\t\n\t\t// Destroy our session if its past the time limit\n\t\t\n\t\tif (! is_null ( self::$result ['u_id'] ) && self::$result ['created'] + 1200 < time () && ! self::keepMeLogged ()) {\n\t\t\tself::DestroySession ();\n\t\t\t\n\t\t\t// Update our session if its recent\n\t\t} elseif (! is_null ( self::$result ['u_id'] ) && self::$result ['created'] + 1200 > time ()) {\n\t\t\tself::updateSession ();\n\t\t}\n\t\t// Return the userid\n\t\tRETURN self::$result ['u_id'];\n\t}",
"function sanitizer($inputId)\n {\n preg_match(\"/([0-9]{6})(_)([a-zA-Z]{1,})/\", $inputId, $inputId2);\n\n if ( !empty($inputId2) and is_numeric($inputId2[1]) and $inputId2[2] == '_' and is_string($inputId2[3]) )\n {\n return TRUE;\n }\n else\n {\n echo \"<strong style='color: red'>Error: </strong>Please enter an ID which starts with six numeric values followed by underscore followed by string in the format example as shown --> 123456_ABC\";\n return FALSE;\n }\n }",
"function jbr_options_validate_ID($ID) {\n\n\treturn $ID;\n\n}",
"public function validateUniqueData(string $data)\n {\n $users = self::selectAllData();\n\n foreach($users as $user) {\n switch($data) {\n case $user->acc_number:\n $message = self::USER_ACCNUMBER_ALREADY_EXISTS;\n break;\n case Helper::decrypt_data($user->document_number):\n $message = self::USER_DOCUMENT_NUMBER_ALREADY_EXISTS;\n break;\n default:\n $message = self::USER_VALID_DATA;\n break;\n }\n }\n\n return $message;\n }",
"public function valid()\n\t{\n\t\treturn isset ($this->_messages[$this->_position]);\n\t}",
"public function testGetInvalidMessageByListingId(){\n\t\t//create a new message\n\t\t$newMessage =new message (null, $this->VALID_MESSAGE_ID, $this->VALID_LISTING_Id, $this->VALID_ORG_ID, $this->VALID_MESSAGE_ID, $this->VALID_MESSAGE_TEXT);\n\t\t$newMessage->insert($this->getPDO());\n\n\t\t//grab the data from guzzle\n\t\t$response = $this->guzzle->get('http://bootcamp-coders.cnm.edu/~bread-basket/public_html/php/api/message/' . $newMessage-getMessage());\n\t\t$this->assertSame($response->getStatusCode(),200);\n\t\t$body = $response->getBody();\n\t\t$alertLevel = json_decode ($body);\n\t\t$this->assertSame(200, $alertLevel->status);\n\t}",
"public function isValid() {\n\t\treturn $this->isMessageNamespace() && $this->getGroupIds();\n\t}",
"public function checkIsValidForDelete() {\n $errors = false;\n if(strlen(trim($this->idGroup)) == 0){\n $errors = \"Group identifier is mandatory\";\n }else if(!preg_match('/^\\d+$/', $this->idGroup)){\n $errors = \"Group identifier format is invalid\";\n }else if($this->existsGroup() !== true) {\n $errors = \"Group doesn't exist\";\n }\n return $errors;\n }",
"public static function isValidDataBoxId(string $dataBoxId)\n {\n $charCount = 7;\n $mapString = 'abcdefghijkmnpqrstuvwxyz23456789';\n if (Strings::length($dataBoxId) !== $charCount) {\n throw new InputNotValid(sprintf('DataBoxId \"%s\" have less char. Required is %d char.', $dataBoxId, $charCount));\n }\n $checkChar = Strings::substring($dataBoxId, -1);\n $checkId = Strings::substring($dataBoxId, 0, -1);\n $tmp = null;\n $splittedDataBoxId = str_split($checkId);\n foreach ($splittedDataBoxId as $charIndex => $char) {\n $int = strpos($mapString, $char);\n $charIndex = Strings::indexOf($mapString, $char);\n if (($charIndex % 2) > 0) {\n $int *= 2;\n }\n $restOfTheDivision = null;\n $value = null;\n if ($int > 0) {\n $value = round($int / 32);\n $restOfTheDivision = $int % 32;\n $int = $value + $restOfTheDivision;\n }\n $tmp += $int;\n }\n\n $restOfTheDivision = $tmp % 32;\n if ($restOfTheDivision > 0) {\n $restOfTheDivision = 32 - $restOfTheDivision;\n }\n if ($mapString[$restOfTheDivision] !== $checkChar) {\n throw new InputNotValid(sprintf('Luhn algoritmh is not valid for DataBoxId \"%s\"', $dataBoxId));\n }\n return true;\n }",
"private function validateIdentificationID(request $request)\n {\n //rules for basic validation\n $Rules = [\n 'idcode' => array('digits:4','required'),\n 'phone' => array('digits:4','required')\n ];\n\n //custom messages for validation errors\n $Messages = [\n 'idcode' => 'The :attribute field must be 4 digits.',\n 'required' => 'The :attribute field must be 4 digits'\n ];\n\n //do validation\n $Validation = \\Validator::make($request->all(), $Rules, $Messages);\n\n $Errors = $Validation->errors();\n\n //if validation errors were detected, return them\n if (count($Errors) > 0) {\n return $Errors;\n }\n\n return false;\n }",
"protected function validate (&$msgs, $original)\n\t{\n\t\t//validity\n\t\tif ($this->fields['BoothNum'] == \"\")\n\t\t{\n\t\t\t$msgs['BoothNum'] = \"Booth Number cannot be empty.\";\n\n\t\t\treturn false;\n\t\t}\n\n\t\t//uniqueness\n\t\telse\n\t\t{\n\t\t\tif ($original == false)\n\t\t\t\t$original = \"NULL\";\n\n\t\t\t//test if there is another Booth with this BoothNum\n\t\t\t$query = $this->connection->prepare\n\t\t\t(\"\n\t\t\t\tselect count(*) as 'count'\n\t\t\t\tfrom Booth\n\t\t\t\twhere BoothNum = ? AND\n\t\t\t\tNOT BoothID <=> \" . $original //NULL-safe equals operator\n\t\t\t);\n\n\t\t\t$query->execute(array($this->fields['BoothNum']));\n\t\t\t$count = $query->fetch(PDO::FETCH_ASSOC)['count'];\n\n\t\t\tif ($count !== \"0\")\n\t\t\t{\n\t\t\t\t$msgs['BoothNum'] = \"There is already a booth with this number.\";\n\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t} //end uniqueness\n\n\t\treturn true;\n\n\t}",
"private function isValid($what) {\n\t\t\t$params = array($this->id_);\n\n\t\t\ttry { \n\t\t\t\t$this->dbHandler_->executeQuery(\"SELECT * FROM \" . $what . \" WHERE id_\". $what . \"=%d\", $params, true);\n\t\t\t}\n\t\t\tcatch(DeltaException $e) {\n\t\t\t\tif($e->isCode(603)) //empty result, throw id not valid\n\t\t\t\t\tthrow new DeltaException(100);\n\t\t\t\telse\n\t\t\t\t\tthrow $e;\n\t\t\t}\n\t\t\t$this->dbHandler_->releaseResult();\t\t\t\n\t\t}",
"public static function isValidSessionId($id) {\n\t\tif(empty($id) || !($id = trim($id)))\n\t\t\treturn false;\n\t\t\n\t\treturn preg_match('/^[a-f0-9]{40}$/', $id);\n\t}",
"private function assertValidClientID($value, $fromPacket)\r\n {\r\n\r\n if (strlen($value) > 23) {\r\n $this->throwException(\r\n sprintf(\r\n 'Expected client id shorter than 24 bytes but got \"%s\".',\r\n $value\r\n ),\r\n $fromPacket\r\n );\r\n }\r\n\r\n if ($value !== '' && !ctype_alnum($value)) {\r\n $this->throwException(\r\n sprintf(\r\n 'Expected a client id containing characters 0-9, a-z or A-Z but got \"%s\".',\r\n $value\r\n ),\r\n $fromPacket\r\n );\r\n }\r\n }",
"private function checkIdTokenFailure($id_token, $msg) {\n $certs = $this->getSignonCerts();\n $oauth2 = new Google_OAuth2();\n try {\n $oauth2->verifySignedJwtWithCerts($id_token, $certs, \"client_id\");\n $this->fail(\"Should have thrown for $id_token\");\n } catch (Google_AuthException $e) {\n $this->assertContains($msg, $e->getMessage());\n }\n }",
"function canAccessMessage($id, $userid){\n return (getSingleValue(\"SELECT COUNT(`id`) FROM `private_messages` WHERE `id` = '\" . escape(intval($id)) . \"' AND `receiverId` = '\" . escape(intval($userid)) . \"' AND `deleted` =0\") >= 1);\n }",
"function verify_vendor_id($vendor_id) // Colorize: green\n { // Colorize: green\n return isset($vendor_id) // Colorize: green\n && // Colorize: green\n is_int($vendor_id) // Colorize: green\n && // Colorize: green\n $vendor_id > 0; // Colorize: green\n }",
"public function testGenerateID()\n {\n $this->Mail->Body = 'Testing 1, 2, 3';\n $this->Mail->isHTML();\n $this->Mail->AltBody = $this->Mail->Body;\n $this->buildBody();\n $this->Mail->preSend();\n $message = $this->Mail->getSentMIMEMessage();\n\n // Find the generated ID in the message.\n self::assertSame(\n 1,\n preg_match(\n '`Content-Type: multipart/alternative;\\s+boundary=\"(b[1-3]_[A-Za-z0-9]{32,})\"`',\n $message,\n $matches\n ),\n 'Boundary identifier header line not found in message'\n );\n\n // Check that the generated ID is used in at least one boundary.\n $LE = PHPMailer::getLE();\n self::assertStringContainsString(\n $LE . '--' . $matches[1] . $LE,\n $message,\n 'No boundaries using the generated ID found in message'\n );\n }",
"function verify_app_id($app_id) // Colorize: green\n { // Colorize: green\n return isset($app_id) // Colorize: green\n && // Colorize: green\n is_int($app_id) // Colorize: green\n && // Colorize: green\n $app_id > 0; // Colorize: green\n }",
"function isValid( $id_user ) {\n\n\t\treturn true;\n\t}",
"function isValidStudentID($id){\n if(preg_match('/^\\d+$/', $id) && strlen($id) == 8){\n return true;\n }\n else{\n return false;\n }\n }"
] | [
"0.77930003",
"0.77930003",
"0.77930003",
"0.679712",
"0.6781004",
"0.6779849",
"0.65859747",
"0.6568991",
"0.6420011",
"0.6385268",
"0.63621074",
"0.63200504",
"0.62524426",
"0.62411964",
"0.62179273",
"0.61943597",
"0.6186127",
"0.61554587",
"0.6150058",
"0.61460346",
"0.61138684",
"0.60853326",
"0.6052307",
"0.60255826",
"0.60124964",
"0.5996404",
"0.59663945",
"0.59378827",
"0.5923963",
"0.58961487",
"0.5888436",
"0.5862623",
"0.58512896",
"0.5849717",
"0.58405",
"0.5835901",
"0.5835176",
"0.5828435",
"0.58129203",
"0.5811792",
"0.5788129",
"0.5779846",
"0.57581496",
"0.5745371",
"0.5744764",
"0.57081926",
"0.57081926",
"0.57081926",
"0.57034695",
"0.5699953",
"0.56934816",
"0.5686457",
"0.56807834",
"0.5675497",
"0.5661147",
"0.5637093",
"0.563285",
"0.5596984",
"0.5569461",
"0.55658776",
"0.5561102",
"0.5552096",
"0.5540837",
"0.5527926",
"0.5514876",
"0.5511445",
"0.54708076",
"0.5455897",
"0.5452526",
"0.5436703",
"0.54331994",
"0.5429117",
"0.542909",
"0.5426944",
"0.54249203",
"0.5420118",
"0.5414097",
"0.54059374",
"0.54032093",
"0.5402463",
"0.539523",
"0.5382835",
"0.53620684",
"0.5350522",
"0.52734065",
"0.52572864",
"0.5257272",
"0.525622",
"0.523811",
"0.52285886",
"0.52232087",
"0.5216571",
"0.5205087",
"0.51950806",
"0.5191523",
"0.51835215",
"0.51790404",
"0.5178595",
"0.51678556",
"0.51604605"
] | 0.5506575 | 66 |
Sends a bind request to the bind handler and returns the token. | protected function handleAuthRequest(LdapMessageRequest $message): TokenInterface
{
if (!$this->authorizer->isAuthenticationTypeSupported($message->getRequest())) {
throw new OperationException(
'The requested authentication type is not supported.',
ResultCode::AUTH_METHOD_UNSUPPORTED
);
}
return $this->bindHandlerFactory->get($message->getRequest())->handleBind(
$message,
$this->handlerFactory->makeRequestHandler(),
$this->queue,
$this->options
);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected static function bind() {}",
"public function getBind();",
"public function getBind(string $name): mixed;",
"public function getBind() {\n return $this->aBind;\n }",
"public function getBindVariableName() {}",
"public function getBindVariableName();",
"function getBindVariableName() ;",
"public function getBinding() {\n return $this->binding;\n }",
"public function bindVariable($bindVariableName);",
"function mBOUND(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$BOUND;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:246:3: ( 'bound' ) \n // Tokenizer11.g:247:3: 'bound' \n {\n $this->matchString(\"bound\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }",
"protected function _bind($bind)\r\n {\r\n if ($bind === null) {\r\n return null;\r\n }\r\n if (!is_array($bind)) {\r\n $bind = [$bind];\r\n }\r\n return $bind;\r\n }",
"public function bind(callable $k)\n {\n return $this->bindGen(\n function (RoseTree $rose) use ($k) {\n $gen = new self(function ($rng, $size) use ($rose, $k) {\n return $rose->fmap($k)\n ->fmap(FP::method('call', $rng, $size));\n });\n return $gen->fmapGen(FP::method('join'));\n }\n );\n }",
"public function bind($param, $value);",
"public function bind(string $symbol): IDIBindTo\n {\n return new DIBindTo($this, $symbol);\n }",
"public function add_ip_binding($param){\n $input = array(\n 'command' => '/ip/hotspot/ip-binding/add'\n );\n $out = array_merge($input, $param);\n return $this->query($out);\n }",
"public function token()\n {\n\n\t\t$this->server->handleTokenRequest(OAuth2\\Request::createFromGlobals())->send();\n }",
"public function getBindingClass() {\r\n\t\treturn get_class($this->_salt_obj);\r\n\t}",
"public function bind($bind, $choice, $length){\n $choice = strtolower($choice);\n //the ideas from lecture notes\n $choice = str_replace(\"'\", \"''\", $choice);\n oci_bind_by_name($this->result, $bind, $choice, $length);\n }",
"public function bind(string $methodName, string $path, $action)\n {\n //sprawdza czy metoda jest dozwolona\n $this->checkIfMethodAllowed($methodName);\n\n //tworzymy bindowanie routingu\n $route = new AppRouterBinding();\n $route->method($methodName);\n $route->path($path);\n $route->action($action);\n $this->routes[] = $route;\n\n return $route;\n }",
"protected function registerBindings()\n {\n // bind the manager class.\n $this->app->bind(Contracts\\Token\\Manager::class, Manager::class);\n\n // bind the guard class.\n $this->app->bind(Contracts\\Auth\\Guard::class, Guard::class);\n }",
"function bind(string $name, callable $transform): void {\n $bindings = stash(DISPATCH_BINDINGS_KEY) ?? [];\n $bindings[$name] = $transform;\n stash(DISPATCH_BINDINGS_KEY, $bindings);\n}",
"protected function createToken()\n {\n $currentServerIp = $this->request->server('SERVER_ADDR');\n\n $secretKey = $this->config['doublespark_contaobridge_secret_key'];\n\n return md5('phpbbbridge'.date('d/m/Y').$currentServerIp.$secretKey);\n }",
"public static function GetTokenServer ()\n {\n\t\treturn self::GetServer('forceTokenServer', 'token');\n }",
"public function bind(string $type) : Bindings\n {\n return $this->bindings->setActiveKey($type);\n }",
"private function bind($token = null): void\n {\n if ($token !== null) {\n $this->options = [\n CURLOPT_RETURNTRANSFER => true,\n CURLOPT_ENCODING => '',\n CURLOPT_MAXREDIRS => 10,\n CURLOPT_TIMEOUT => 0,\n CURLOPT_FOLLOWLOCATION => true,\n CURLOPT_FRESH_CONNECT => true,\n CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,\n CURLOPT_HTTPHEADER => array(\n 'Accept: application/json',\n 'Authorization: Bearer ' . self::$token,\n ),\n ];\n }\n }",
"public function sendToken() {\n\n\t\t$TokenObject = $this->getTokenObject()->getToken();\n\t\t$this->setToken($TokenObject->__toString());\n\n\t\treturn $this->Token;\n\t}",
"public static function bind(): void\n {\n Route::bind('item', function ($value) {\n $model = request()->resource->model();\n\n return $model::withoutGlobalScopes()\n ->where((new $model)->getRouteKeyName(), $value)\n ->firstOrFail();\n });\n }",
"function bindauth($bindDn,$pass)\n\t{\n\t\tif (! $this->result = @ldap_bind($this->connection, $bindDn, $pass))\n\t\t{\n\t\t\t$this->ldapErrorCode = ldap_errno($this->connection);\n\t\t\t$this->ldapErrorText = ldap_error($this->connection);\n\t\t\t$this->error=$this->ldapErrorCode.\" \".$this->ldapErrorText;\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}",
"public function getBoundContext(): IoContextInterface;",
"public function bind(array $bindings);",
"function bind()\n\t{\n\t\tif (! $this->result=@ldap_bind($this->connection))\n\t\t{\n\t\t\t$this->ldapErrorCode = ldap_errno($this->connection);\n\t\t\t$this->ldapErrorText = ldap_error($this->connection);\n\t\t\t$this->error=$this->ldapErrorCode.\" \".$this->ldapErrorText;\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}",
"public static function bind ( &$srv )\n\t{\n\t\tif ( is_null( self::$instance ) )\n\t\t\tself::$instance = new CoreXrsDec( $srv );\n\t\t\n\t\t$srv->register(\tself::$instance,\t'auth.validate',\t'validate',\tarray( 'token' ) );\n\t\t$srv->register(\tself::$instance,\t'auth.login',\t\t'login',\tarray( 'username', 'password' ) );\n\t\t$srv->register(\tself::$instance,\t'auth.logout',\t\t'logout',\tarray( 'token' ) );\n\t}",
"protected function bindNetworkRequest($network_id, $bind_network)\n {\n // verify the required parameter 'network_id' is set\n if ($network_id === null || (is_array($network_id) && count($network_id) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $network_id when calling bindNetwork'\n );\n }\n // verify the required parameter 'bind_network' is set\n if ($bind_network === null || (is_array($bind_network) && count($bind_network) === 0)) {\n throw new \\InvalidArgumentException(\n 'Missing the required parameter $bind_network when calling bindNetwork'\n );\n }\n\n $resourcePath = '/networks/{networkId}/bind';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n // path params\n if ($network_id !== null) {\n $resourcePath = str_replace(\n '{' . 'networkId' . '}',\n ObjectSerializer::toPathValue($network_id),\n $resourcePath\n );\n }\n\n // body params\n $_tempBody = null;\n if (isset($bind_network)) {\n $_tempBody = $bind_network;\n }\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/json']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/json'],\n ['application/json']\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n $httpBody = $_tempBody;\n \n if($headers['Content-Type'] === 'application/json') {\n // \\stdClass has no __toString(), so we should encode it manually\n if ($httpBody instanceof \\stdClass) {\n $httpBody = \\GuzzleHttp\\json_encode($httpBody);\n }\n // array has no __toString(), so we should encode it manually\n if(is_array($httpBody)) {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($httpBody));\n }\n }\n } elseif (count($formParams) > 0) {\n if ($multipart) {\n $multipartContents = [];\n foreach ($formParams as $formParamName => $formParamValue) {\n $multipartContents[] = [\n 'name' => $formParamName,\n 'contents' => $formParamValue\n ];\n }\n // for HTTP post (form)\n $httpBody = new MultipartStream($multipartContents);\n\n } elseif ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode($formParams);\n\n } else {\n // for HTTP post (form)\n $httpBody = \\GuzzleHttp\\Psr7\\build_query($formParams);\n }\n }\n\n // this endpoint requires API key authentication\n $apiKey = $this->config->getApiKeyWithPrefix('X-Cisco-Meraki-API-Key');\n if ($apiKey !== null) {\n $headers['X-Cisco-Meraki-API-Key'] = $apiKey;\n }\n\n $defaultHeaders = [];\n if ($this->config->getUserAgent()) {\n $defaultHeaders['User-Agent'] = $this->config->getUserAgent();\n }\n\n $headers = array_merge(\n $defaultHeaders,\n $headerParams,\n $headers\n );\n\n $query = \\GuzzleHttp\\Psr7\\build_query($queryParams);\n return new Request(\n 'POST',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }",
"function bindTerm($STATEMENT_ID,$termWeWant,$fieldWeAreChanging){\n return oci_bind_by_name($STATEMENT_ID,$termWeWant,$fieldWeAreChanging);\n }",
"private function getBoundTarget()\n {\n return $this->getFormDataBinder()->get();\n }",
"public function testBind(): void\n {\n $request = new Request([]);\n\n $this->assertFalse($request->isComplexQuery());\n\n $this->assertNotNull($request->bind('banana', static function () {\n return 'strawberry';\n }));\n }",
"protected function registerBindings()\n {\n $this->app->bind(\n \\LaravelFlare\\Flare\\Contracts\\Permissions\\Permissionable::class,\n \\Flare::config('permissions')\n );\n }",
"public function bind($target): void\n {\n $this->bindings[] = $target;\n }",
"public function bind($name,$value,$type = NULL);",
"public static function connected($bindAddress) {\n self::$bindAddress= $bindAddress;\n }",
"public function insert(array $bind)\n {\n $this->getAdapter()->insert($this->_name, $bind);\n\n return $this->getAdapter()->lastInsertId($this->_name);\n }",
"private function registerBindings()\n {\n foreach($this->bindings as $key => $val)\n {\n $this->app->bind($key, $val);\n }\n }",
"public function getBound()\n {\n return $this->bound;\n }",
"public function getBound()\n {\n return $this->bound;\n }",
"protected function request_token() {\r\n\t\t$code = $this->tmhOAuth->request(\r\n\t\t\t'POST',\r\n\t\t\t$this->tmhOAuth->url('oauth/request_token', ''),\r\n\t\t\tarray(\r\n\t\t\t\t'oauth_callback' => SocialHelper::php_self()\r\n\t\t\t)\r\n\t\t);\r\n\r\n\t\tif ($code == 200) {\r\n\t\t\t$_SESSION['oauth'] = $this->tmhOAuth->extract_params($this->tmhOAuth->response['response']);\r\n\t\t\t$this->authorize();\r\n\t\t} else {\r\n\t\t\t$this->addError();\r\n\t\t}\r\n\t}",
"public function bind(InputDefinition $definition);",
"public function bind(string $key, $resolver)\n {\n $this->app->set($key, $resolver);\n }",
"public function getBindingId(): ?string\n {\n return $this->getParameter('bindingId');\n }",
"public function getBindingMemberName();",
"public function bindIn(&...$binds);",
"public function issueRequestToken()\n {\n // 2legged OAuth\n $this->authenticate();\n\n // Check parameter\n $this->getRequest()->checkParameters(self::$_3l_request_params);\n $callback = $this->getRequest()->getParameter('oauth_callback');\n if (!preg_match('#^https?://.#', $callback)) {\n throw new HTTP_OAuthProvider_Exception('400 oauth_callback is not correct: '.$callback, 400);\n }\n\n // make token\n $store = $this->getStore();\n $store->issueRequestToken($this);\n $ok = $store->save();\n if (!$ok) {\n throw new HTTP_OAuthProvider_Exception('500 Store error', 500);\n }\n\n // response\n $resp = array(\n 'oauth_token' => $store->getToken(),\n 'oauth_token_secret' => $store->getSecret(),\n 'oauth_callback_confirmed' => 'true'\n );\n return http_build_query($resp);\n }",
"public function requestToken() {\n \n $result = $this->doRequest('v1.0/token?grant_type=1', 'GET');\n\n $this->_setToken($result->result->access_token);\n $this->_setRefreshToken($result->result->refresh_token);\n $this->_setExpireTime($result->result->expire_time);\n $this->_setUid($result->result->uid);\n\n }",
"private function getLetterBinding()\n {\n $letterBind = self::$letterBind;\n\n self::$letterBind++;\n\n return $letterBind;\n }",
"public function bind(string $serviceId, string $service): static;",
"function create_binding() {\r\n\t\ttry {\r\n\t\t\t$conn = db_connect::getInstance();\r\n\t\t\t$result = $conn->db->query(\"SELECT OLT_ID from OLT_IP_POOLS where OLT_ID = '$this->olt_id'\");\r\n\t\t} catch (PDOException $e) {\r\n\t\t\t$error = \"Connection Failed:\" . $e->getMessage() . \"\\n\";\r\n\t\t\treturn $error;\r\n\t\t}\r\n\t\twhile ($row = $result->fetch(PDO::FETCH_ASSOC)) {\r\n\t\t\tif ($row[\"OLT_ID\"])\r\n\t\t\t\t$error = (\"ERROR: THIS OLT have been ASSIGNED pool ALREADY, Please remove any existing bindings and try to create again!\");\r\n\t\t\t\treturn $error;\t\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\t$conn = db_connect::getInstance();\r\n\t\t\t$result = $conn->db->query(\"INSERT INTO OLT_IP_POOLS (OLT_ID, IP_POOL_ID) VALUES ('$this->olt_id', '$this->id')\");\r\n\t\t} catch (PDOException $e) {\r\n\t\t\t$error = \"Connection Failed:\" . $e->getMessage() . \"\\n\";\r\n\t\t\treturn $error;\r\n\t\t}\r\n\t}",
"public function tokenSupply($tokenIdentifier) {\n $params = [\n 'module' => \"stats\",\n 'action' => \"tokensupply\",\n ];\n\n if (strlen($tokenIdentifier) === 42) {\n $params['contractaddress'] = $tokenIdentifier;\n } else {\n $params['tokenname'] = $tokenIdentifier;\n }\n\n return $this->request->exec($params);\n }",
"public function getBoundContext(): IoContextInterface\n {\n return $this->boundContext;\n }",
"private function getBoundValue($bind, string $name)\n {\n if ($bind === false) {\n return null;\n }\n\n $bind = $bind ?: $this->getBoundTarget();\n\n if ($this->manyRelation) {\n return $this->getAttachedKeysFromRelation($bind, $name);\n }\n\n $boundValue = data_get($bind, $name);\n\n if ($bind instanceof Model && $boundValue instanceof DateTimeInterface) {\n return $this->formatDateTime($bind, $name, $boundValue);\n }\n\n return $boundValue;\n }",
"public function add(Bind $bind): void\n {\n $dependency = $bind->getBound();\n $dependency->register($this->container, $bind);\n }",
"public function makeAuth()\n {\n $url = $this->environment->getApiUrl() . \"auth/oauth/v2/token\";\n\n $client = new Client();\n\n try {\n $guzzleReturn = $client->request('POST', $url, [\n 'headers' => [\n 'Authorization' => 'Basic ' . $this->authString\n ],\n 'form_params' => [\n 'scope' => 'oob',\n 'grant_type' => 'client_credentials',\n ]\n ]);\n\n $return = json_decode($guzzleReturn->getBody(), true);\n\n $this->getnetResponse = new GetNetResponse(true, $guzzleReturn->getStatusCode(), '');\n\n $this->accessToken = $return['access_token'];\n $this->tokenType = $return['token_type'];\n $this->expiresIn = $return['expires_in'];\n $this->scope = $return['scope'];\n\n } catch (RequestException $e) {\n $this->getnetResponse = new GetNetResponse(false, $e->getCode(), $e->getMessage());\n }\n\n return $this;\n }",
"private function getNamedParam()\n {\n return self::BINDING_PREFIX . $this->getLetterBinding();\n }",
"protected function registerSocketBinding(SocketBinding $binding): void\n {\n $this->regenerateMaps();\n }",
"public function bind(UserInterface $user, $password);",
"public function register()\n {\n $this->app->bind(PostPostcardApi::class, function($app) {\n $config = Configuration::getDefaultConfiguration()\n ->setUsername(getenv('CLICKSEND_USERNAME'))\n ->setPassword(getenv('CLICKSEND_API_KEY'));\n\n return new PostPostcardApi(app(Client::class), $config);\n });\n }",
"public function getInboundToken()\n {\n return $this->scopeConfig->getValue(self::XML_PATH_INBOUND_TOKEN, ScopeInterface::SCOPE_WEBSITES);\n }",
"public function get_request_token($callback);",
"public function startFormDataBinder($bind = null, $modelable = null)\n {\n app(FormDataBinder::class)\n ->bind($bind)\n ->model($modelable ?? false);\n }",
"public function wechatBindAsync(array $params = [])\n {\n return $this->handleMiddleware('wechatBind', $params, function(MiddlewareRequest $request) {\n $params = $request->getApiMethodArguments();\n $accessToken = isset($params['access_token']) ? $params['access_token'] : null;\n $redirectUri = isset($params['redirect_uri']) ? $params['redirect_uri'] : null;\n $accountId = isset($params['account_id']) ? $params['account_id'] : null;\n $wechatAccountId = isset($params['wechat_account_id']) ? $params['wechat_account_id'] : null;\n $fields = isset($params['fields']) ? $params['fields'] : null;\n $response = $this->apiInstance->authorizationWechatBindAsync($accessToken, $redirectUri, $accountId, $wechatAccountId, $fields);\n return $response;\n });\n }",
"public function bind(\n string $type,\n string|object|null $target = null\n ): Binding {\n if (isset($this->store[$type])) {\n throw Exceptional::Runtime('Type \"' . $type . '\" is already registered in the key-value store');\n }\n\n // Create binding\n $binding = new Binding($this, $type, $target);\n $type = $binding->getType();\n\n // Remove old binding\n if ($oldBinding = ($this->bindings[$type] ?? null)) {\n $this->remove($type);\n }\n\n // Remove type aliases and provider reference\n unset($this->aliases[$type]);\n unset($this->providers[$type]);\n\n // Add new binding\n $this->bindings[$type] = $binding;\n\n\n if ($oldBinding) {\n // Trigger rebinding event\n $this->triggerAfterRebinding($binding);\n }\n\n return $binding;\n }",
"protected function _respond($bind)\n {\n echo json_encode($bind);\n }",
"function requestToken() {\n\t\t$conn = new Connection('DB-Name');\n\n\t\t//instantiate login information, api_key, username, and password\n\t\t$api = $conn->tokenGrab(x);\n\t\t$user = $conn->tokenGrab(x);\n\t\t$pass = $conn->tokenGrab(x);\n\n\t\t//build fields to send to the token giver\n\t\t$fields = array(\n\t\t\t'grant_type' \t=> urlencode('password')\n\t\t\t, 'client_id' \t=> urlencode($api)\n\t\t\t, 'username' \t=> urlencode($user)\n\t\t\t, 'password'\t=> urlencode($pass));\n\n\t\t$fields_string = '';\n\t\tforeach ($fields as $key=>$value) { $fields_string .= $key . '=' . $value . '&'; }\n\t\trtrim($fields_string, '&');\n\n\t\t//send the request to token giver via cURL\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $conn->tokenGrab(x));\n\t\tcurl_setopt($ch, CURLOPT_POST, count($fields));\n\t\tcurl_setopt($ch, CURLOPT_POSTFIELDS, $fields_string);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\t\tcurl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);\n\t\tcurl_setopt($ch, CURLOPT_HTTPHEADER, array(\n\t\t\t 'Content-Type' => urlencode('application/x-www-form-urlencoded')\n\t\t\t, 'Content-Length' => urlencode(strlen($fields_string))\n\t\t));\n\n\t\t$cherwellApiResponse = json_decode(curl_exec($ch), TRUE);\n\t\treturn $cherwellApiResponse['access_token'];\n\t}",
"public function bind(Model $bind_model, $bind_name = null) {\n\n\t\t// Get correct bind config\n\t\t$config = false;\n\t\tif (!$bind_name) {\n\t\t\t$model = Model::model_name($bind_model);\n\t\t\tforeach (Model_Forum_Area::get_binds(false) as $bind_name => $bind_config) {\n\t\t\t\tif ($bind_config['model'] == $model) {\n\t\t\t\t\t$config = $bind_config;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\t$config = Model_Forum_Area::get_binds($bind_name);\n\t\t}\n\n\t\tif ($config) {\n\n\t\t\t// Get area\n\t\t\t$area = Model_Forum_Area::factory();\n\t\t\t$area = $area->load(\n\t\t\t\tDB::select_array($area->fields())\n\t\t\t\t\t->where('area_type', '=', Model_Forum_Area::TYPE_BIND)\n\t\t\t\t\t->where('status', '=', Model_Forum_Area::STATUS_NORMAL)\n\t\t\t\t\t->where('bind', '=', $bind_name)\n\t\t\t);\n\t\t\tif ($area->loaded()) {\n\t\t\t\t$this->forum_area_id = $area->id;\n\t\t\t\t$this->bind_id = $bind_model->id();\n\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public function get_binds(){\n\t\treturn $this->binds;\n\t}",
"function connect_bind()\n\t{\n\t\tglobal $langs;\n\n\t\t$connected=0;\n\t\t$this->bind=0;\n\n\t\t// Check parameters\n\t\tif (count($this->server) == 0 || empty($this->server[0]))\n\t\t{\n\t\t\t$this->error='LDAP setup (file conf.php) is not complete';\n\t\t\tdol_syslog(get_class($this).\"::connect_bind \".$this->error, LOG_WARNING);\n\t\t\treturn -1;\n\t\t}\n\n\t\tif (! function_exists('ldap_connect'))\n\t\t{\n\t\t\t$this->error='Your PHP need extension ldap';\n\t\t\tdol_syslog(get_class($this).\"::connect_bind \".$this->error, LOG_WARNING);\n\t\t return -1;\n\t\t}\n\t\t\n\t\t// Loop on each ldap server\n\t\tforeach ($this->server as $key => $host)\n\t\t{\n\t\t\tif ($connected) break;\n\t\t\tif (empty($host)) continue;\n\n\t\t\tif (preg_match('/^ldap/',$host))\n\t\t\t{\n\t\t\t\t$this->connection = ldap_connect($host);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->connection = ldap_connect($host,$this->serverPort);\n\t\t\t}\n\n\t\t\tif (is_resource($this->connection))\n\t\t\t{\n\t\t\t\t// Execute the ldap_set_option here (after connect and before bind)\n\t\t\t\t$this->setVersion();\n\t\t\t\tldap_set_option($this->connection, LDAP_OPT_SIZELIMIT, 0); // no limit here. should return true.\n\n\n\t\t\t\tif ($this->serverType == \"activedirectory\")\n\t\t\t\t{\n\t\t\t\t\t$result=$this->setReferrals();\n\t\t\t\t\tdol_syslog(get_class($this).\"::connect_bind try bindauth for activedirectory on \".$host.\" user=\".$this->searchUser.\" password=\".preg_replace('/./','*',$this->searchPassword),LOG_DEBUG);\n\t\t\t\t\t$this->result=$this->bindauth($this->searchUser,$this->searchPassword);\n\t\t\t\t\tif ($this->result)\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->bind=$this->result;\n\t\t\t\t\t\t$connected=2;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->error=ldap_errno($this->connection).' '.ldap_error($this->connection);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t// Try in auth mode\n\t\t\t\t\tif ($this->searchUser && $this->searchPassword)\n\t\t\t\t\t{\n\t\t\t\t\t\tdol_syslog(get_class($this).\"::connect_bind try bindauth on \".$host.\" user=\".$this->searchUser.\" password=\".preg_replace('/./','*',$this->searchPassword),LOG_DEBUG);\n\t\t\t\t\t\t$this->result=$this->bindauth($this->searchUser,$this->searchPassword);\n\t\t\t\t\t\tif ($this->result)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->bind=$this->result;\n\t\t\t\t\t\t\t$connected=2;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->error=ldap_errno($this->connection).' '.ldap_error($this->connection);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t// Try in anonymous\n\t\t\t\t\tif (! $this->bind)\n\t\t\t\t\t{\n\t\t\t\t\t\tdol_syslog(get_class($this).\"::connect_bind try bind on \".$host,LOG_DEBUG);\n\t\t\t\t\t\t$result=$this->bind();\n\t\t\t\t\t\tif ($result)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->bind=$this->result;\n\t\t\t\t\t\t\t$connected=1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->error=ldap_errno($this->connection).' '.ldap_error($this->connection);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (! $connected) $this->close();\n\t\t}\n\n\t\tif ($connected)\n\t\t{\n\t\t\t$return=$connected;\n\t\t\tdol_syslog(get_class($this).\"::connect_bind return=\".$return, LOG_DEBUG);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->error='Failed to connect to LDAP'.($this->error?': '.$this->error:'');\n\t\t\t$return=-1;\n\t\t\tdol_syslog(get_class($this).\"::connect_bind return=\".$return.' - '.$this->error, LOG_WARNING);\n\t\t}\n\t\treturn $return;\n\t}",
"function registerToken()\n {\n $query = \"select fnc_registro_token_diario(?, ?, ?, ?)\";\n\n $umail = $this->_object->getEmail();\n $token = token_gen();\n $from = quote_content($_SERVER['REMOTE_ADDR']);\n $itok = __INTERNAL_TOKEN_HASH__;\n\n $q = $this->_con->prepare($query);\n $q->bindParam(1, $umail);\n $q->bindParam(2, $token);\n $q->bindParam(3, $from);\n $q->bindParam(4, $itok);\n\n if($q->execute()){\n $r = $q->fetch(PDO::FETCH_NUM);\n\n $this->_object->setToken($r[0]);\n\n if(__SEND_TOKENS__ && $this->_object->getToken() == $token):\n if(!$this->_object->sendToken()){\n error_log(\"New token sent.\");\n return 2;\n }\n endif;\n\n return $this->_object;\n }\n return false;\n }",
"public function register()\n {\n \\App::bind('vkapi', function () {\n return new VkApi();\n });\n }",
"public function getToken()\n {\n $value = $this->getParameter('token');\n $value = $value ?: $this->httpRequest->query->get('token');\n return $value;\n }",
"public function request_token() : object\n {\n $this->parameters = [\n 'headers' => [\n 'Content-Type' => 'application/x-www-form-urlencoded',\n 'User-Agent' => $this->config['DISCOGS_USER_AGENT'],\n 'Authorization' => 'OAuth oauth_consumer_key=' . $this->config['DISCOGS_CONSUMER_KEY']\n . ',oauth_nonce=' . time() . ',oauth_signature=' . $this->config['DISCOGS_CONSUMER_SECRET']\n . '&,oauth_signature_method=PLAINTEXT,oauth_timestamp=' . time() . ',oauth_callback='\n . $this->config['OAUTH_CALLBACK'],\n ],\n ];\n\n return $this->response('GET', \"/oauth/request_token\");\n }",
"public function bind($routeName)\n {\n $this->routeName = $routeName;\n\n return $this;\n }",
"public function bind(ConnectionInterface $conn, $token)\n {\n try {\n $public_channel = $this->validateToken($token);\n\n $this->isUserBanned($conn, $public_channel->site->id);\n\n $this->validateMaxConnections($public_channel, $conn);\n\n self::$clients->put($conn->resourceId, $conn);\n\n $userdata = json_encode(DataHandler::getData($conn));\n\n $client = Client::create([\n 'resource_id' => $conn->resourceId,\n 'ip' => $conn->remoteAddress,\n 'site_id' => $public_channel->site->id,\n 'userdata' => $userdata,\n ]);\n $client->subscriptions()->attach($public_channel->id, ['event' => 'public']);\n qlog(\"Client {$conn->resourceId} connected successfully.\");\n } catch (InvalidTokenException $ex) {\n qlog(\"{$conn->resourceId} attmpted to connect with an invalid token.\");\n $conn->close();\n } catch (UserIsBannedException $ex) {\n qlog(\"{$conn->resourceId} attmpted to connect but is banned.\");\n $conn->close();\n }\n }",
"public function bind($variable, $callback = null)\n {\n $name = 'bind.'.$variable;\n\n // If callback pass, so put in a queue.\n if (! empty($callback)) {\n // Preparing callback in to queues.\n $this->events->listen($name, function() use ($callback, $variable) {\n return ($callback instanceof Closure) ? $callback() : $callback;\n });\n }\n\n // Passing variable to closure.\n $_events =& $this->events;\n $_bindings =& $this->bindings;\n\n // Buffer processes to save request.\n return array_get($this->bindings, $name, function() use (&$_events, &$_bindings, $name) {\n $response = current($_events->fire($name));\n array_set($_bindings, $name, $response);\n return $response;\n });\n }",
"protected function registerModule()\n {\n //determine module and bind urls\n $requestUri = $this->url;\n if(empty($requestUri)) {\n $requestUri = '/';\n }\n if($requestUri == '/') {\n $mod = 'index';\n } else {\n $requestUri = trim($requestUri, '/');\n if(strpos($requestUri, '/') === false) {\n $mod = $requestUri;\n } else {\n list($mod) = explode('/',$requestUri);\n }\n }\n $mod = filter_var($mod, FILTER_SANITIZE_STRING, FILTER_FLAG_STRIP_HIGH);\n\n $this->mod = $mod;\n $this->uri = $requestUri;\n }",
"public function wechatBind(array $params = [])\n {\n return $this->handleMiddleware('wechatBind', $params, function(MiddlewareRequest $request) {\n $params = $request->getApiMethodArguments();\n $accessToken = isset($params['access_token']) ? $params['access_token'] : null;\n $redirectUri = isset($params['redirect_uri']) ? $params['redirect_uri'] : null;\n $accountId = isset($params['account_id']) ? $params['account_id'] : null;\n $wechatAccountId = isset($params['wechat_account_id']) ? $params['wechat_account_id'] : null;\n $fields = isset($params['fields']) ? $params['fields'] : null;\n $response = $this->apiInstance->authorizationWechatBind($accessToken, $redirectUri, $accountId, $wechatAccountId, $fields);\n return $response;\n });\n }",
"private function getRequestToken() {\n \n // send request for a request token\n $this->tmhOAuth->request('POST', $this->tmhOAuth->url('oauth/request_token', ''), array(\n\n // pass a variable to set the callback\n 'oauth_callback' => $this->tmhOAuth->php_self()\n ));\n\n\n if($this->tmhOAuth->response['code'] == 200) {\n\n // get and store the request token\n $response = $this->tmhOAuth->extract_params($this->tmhOAuth->response['response']);\n\t error_log($response);\n $_SESSION['authtoken'] = $response['oauth_token'];\n $_SESSION['authsecret'] = $response['oauth_token_secret'];\n\n // state is now 1\n $_SESSION['authstate'] = 1;\n\n // redirect the user to Twitter to authorize\n $url = $this->tmhOAuth->url('oauth/authorize', '') . '?oauth_token=' . $response['oauth_token'];\n header('Location: ' . $url);\n exit;\n }\n\n return false;\n }",
"public function onBind(callable $action): self\n {\n $this->onBind = $action;\n return $this;\n }",
"public function register()\n {\n // register routes\n $this->registerConfigurations();\n\n // https://github.com/laravolt/indonesia\n $this->app->bind('linebot', function() {\n return new LineBotManager(\"ko\");\n });\n \n // $this->app->bind('linebot', function($app){\n \n // $config = $this->app['config']->get('services.linebot', []);\n // // dd($config);\n // $client = new Client(Arr::get($config, 'guzzle', []));\n \n // return new LineBotManager(\"Kiw\");\n // });\n }",
"public function register()\n {\n foreach ($this->simpleBindings as $contract => $service) {\n $this->app->bind($contract, $service);\n }\n }",
"public function bindValue($name, $value);",
"function dbh_bind( $dbh ) {\n $GLOBALS['orm_dbh'] = $dbh;\n}",
"protected function getBindingNeedle($bindingKey)\n {\n return str_replace('?', $bindingKey, $this->bindingWrapper);\n }",
"public function getToken();",
"public function getToken();",
"public function getToken();",
"public function getToken();",
"protected function registerBaseBindings()\n {\n $this->container->bind(\n \\Lib\\Contracts\\Http\\Kernel::class,\n \\Lib\\Http\\Kernel::class\n );\n\n $this->container->bind(\n \\Lib\\Contracts\\Support\\Config::class,\n \\Lib\\Support\\Config::class\n );\n }",
"public function getToken()\n {\n $parameters = array(\n 'Identifier' => $this->getIdentifier(),\n );\n\n $response = self::sendRequest(self::getModelName(), 'gettoken', $parameters);\n\n if (isset($response['status']) == false) {\n return false;\n }\n if ($response['status'] != 'success') {\n return false;\n }\n if (isset($response['domain']['AuthKey']) == false) {\n return false;\n }\n $this->setAuthKey($response['domain']['AuthKey']);\n return $response['domain']['AuthKey'];\n }",
"public function bindings();",
"public function bind(InputDefinition $definition): void\n {\n }",
"public function register()\n {\n $this->app->bind(ClientRepositoryInterface::class, function() {\n return new ClientRepository();\n });\n\n $this->app->bind(AccessTokenRepositoryInterface::class, function() {\n return new AccessTokenRepository();\n });\n\n $this->app->bind(ScopeRepositoryInterface::class, function() {\n return new ScopeRepository();\n });\n\n $this->app->bind(ResourceServer::class, function() {\n $accessTokenRespository = new AccessTokenRepository();\n $publicKey = base_path('public.key');\n return new ResourceServer($accessTokenRespository, $publicKey);\n });\n\n $this->app->bind(AuthorizationServer::class, function() {\n\n $clientRepository = new ClientRepository();\n $scopeRepository = new ScopeRepository();\n $accessTokenRepository = new AccessTokenRepository();\n $authCodeRepository = new AuthCodeRepository();\n $refreshTokenRepository = new RefreshTokenRepository();\n\n\n $privateKey = base_path('private.key');\n $publicKey = base_path('public.key');\n $userRepository = new UserRepository();\n $refreshTokenRepository = new RefreshTokenRepository();\n $intervaloPadrao = new \\DateInterval('P12M');\n\n\n $server = new AuthorizationServer($clientRepository, $accessTokenRepository, $scopeRepository, $privateKey, $publicKey);\n $server->enableGrantType(new ClientCredentialsGrant(), $intervaloPadrao);\n $server->enableGrantType(new PasswordGrant($userRepository, $refreshTokenRepository), $intervaloPadrao);\n\n $authGrant = new AuthCodeGrant($authCodeRepository, $refreshTokenRepository, $intervaloPadrao);\n $authGrant->setRefreshTokenTTL(new \\DateInterval('P12M'));\n \n \n $refreshGrant = new \\League\\OAuth2\\Server\\Grant\\RefreshTokenGrant($refreshTokenRepository);\n $refreshGrant->setRefreshTokenTTL(new \\DateInterval('P12M'));\n\n $server->enableGrantType($authGrant, $intervaloPadrao);\n $server->enableGrantType($refreshGrant, $intervaloPadrao);\n\n\n\n return $server;\n\n });\n\n }",
"public function register()\n {\n if($this->catch) $this->bind();\n if($this->raw) $this->raw();\n }"
] | [
"0.5810081",
"0.5729396",
"0.5453172",
"0.5432479",
"0.52244586",
"0.51836944",
"0.5167909",
"0.50051683",
"0.49391276",
"0.48240218",
"0.48161474",
"0.4695256",
"0.46449715",
"0.4605994",
"0.45890018",
"0.4575535",
"0.45727807",
"0.45503092",
"0.45051137",
"0.4475204",
"0.447387",
"0.44414377",
"0.4413485",
"0.44108945",
"0.43919328",
"0.43745402",
"0.43495703",
"0.43485656",
"0.43325263",
"0.43189272",
"0.43026838",
"0.42987546",
"0.42749378",
"0.42746535",
"0.42709154",
"0.42704287",
"0.4266855",
"0.42626378",
"0.4258065",
"0.42320395",
"0.4214229",
"0.4194958",
"0.4174995",
"0.4174995",
"0.4170713",
"0.41687387",
"0.4159179",
"0.4155175",
"0.41217625",
"0.41163266",
"0.40906566",
"0.40905306",
"0.40885618",
"0.40839407",
"0.40769166",
"0.40766072",
"0.40730134",
"0.4070885",
"0.40680146",
"0.40641212",
"0.40620226",
"0.4059064",
"0.40493008",
"0.40438518",
"0.40427798",
"0.4042123",
"0.40372175",
"0.40344217",
"0.40336773",
"0.40203503",
"0.40174267",
"0.40155202",
"0.40139917",
"0.40122938",
"0.40114",
"0.40074107",
"0.39833596",
"0.39826855",
"0.39823604",
"0.39783254",
"0.39648446",
"0.3962374",
"0.3958967",
"0.39557785",
"0.3947983",
"0.39434436",
"0.3938275",
"0.3934922",
"0.39333034",
"0.39250308",
"0.3921058",
"0.3921058",
"0.3921058",
"0.3921058",
"0.39208624",
"0.39195272",
"0.39190483",
"0.39187363",
"0.39123031",
"0.39099693"
] | 0.40484104 | 63 |
Transform post resource to array. | public function toArray($request): array
{
return [
'id' => $this->id,
'group_id' => $this->group_id,
'title' => $this->title,
'summary' => $this->summary,
'image' => $this->whenLoaded('images', function () {
return $this->images->first()->id ?? new MissingValue();
}),
];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPost(): array;",
"protected function getArrPost()\n {\n return $this->getServices()\n ->get(\\Application\\Service\\ServiceJsonPostRequest::class)\n ->setObjRequest(\n $this->getRequest()\n )\n ->getJsonPost();\n }",
"public function transform($resource)\n {\n return [];\n }",
"public function toArray($request): array;",
"public function toArray(): array\n {\n if (is_null($this->resource)) {\n return [];\n }\n\n return is_array($this->resource)\n ? $this->resource\n : $this->resource->toArray();\n }",
"public function toArray(): array\n {\n if (is_null($this->resource)) {\n return [];\n }\n\n return is_array($this->resource)\n ? $this->resource\n : $this->resource->toArray();\n }",
"public function asArray() {\n return $this->resource;\n }",
"public function transform($resource)\n {\n return [\n 'id' => $resource['id'],\n 'item' => $resource['item'],\n 'qty' => $resource['qty'],\n\n ];\n }",
"public function toArray($request): array\n {\n return [\n 'data' => $this->collection->map(\n function ($tag) {\n return new TagResource($tag);\n })\n ]; }",
"public function toArray(): array\n {\n $content = $this->getContent();\n\n if (\\is_array($content)) {\n return $this instanceof Filterable\n ? (array) $this->filterResponse($content)\n : $content;\n }\n\n return [];\n }",
"protected function getPostObject(): array\n {\n /** @var Input $oInput */\n $oInput = Factory::service('Input');\n /** @var Group $oUserGroupModel */\n $oUserGroupModel = Factory::model('UserGroup', Constants::MODULE_SLUG);\n /** @var Password $oUserPasswordModel */\n $oUserPasswordModel = Factory::model('UserPassword', Constants::MODULE_SLUG);\n\n return [\n 'slug' => $oInput->post('slug'),\n 'label' => $oInput->post('label'),\n 'description' => $oInput->post('description'),\n 'default_homepage' => $oInput->post('default_homepage'),\n 'registration_redirect' => $oInput->post('registration_redirect'),\n 'acl' => json_encode(\n array_values(\n array_filter(\n $oInput->post('is_superuser')\n ? [SuperUser::class]\n : (array) $oInput->post('acl'),\n )\n )\n ),\n 'password_rules' => $oUserPasswordModel->processRules($oInput->post('pw') ?: []),\n ];\n }",
"public function toArray($request): array\n {\n\n $data = [\n 'id' => $this->id,\n 'quantity' => $this->quantity,\n 'product_id' => $this->product_id,\n 'product' => new ProductResource($this->product),\n 'order_id' => $this->order_id,\n 'order' => new OrderResource($this->order)\n ];\n\n return parent::toArray($data);\n }",
"public function toArray(Request $request): array\n {\n return [\n \"id\" => $this->id,\n \"type\" => $this->type,\n \"title\" => $this->title,\n \"description\" => $this->description,\n \"contents\" => PraticeQuestionContentResource::collection($this->whenLoaded(\"contents\")),\n \"createdAt\" => $this->created_at\n ];\n }",
"public function transform()\n {\n $object = $this->resource;\n\n $data = $object instanceof Collection || $object instanceof AbstractPaginator\n ? $object->map([$this, 'transformResource'])->toArray()\n : $this->transformResource($object);\n\n if ($object instanceof AbstractPaginator) {\n $this->withMeta(array_merge(\n $this->getExtra('meta', []), Arr::except($object->toArray(), ['data'])\n ));\n }\n\n $data = array_filter(compact('data') + $this->extras);\n ksort($data);\n\n return $data;\n }",
"public function getArrayResp()\n {\n return json_decode(Yii::$app->request->post(), false);\n }",
"protected function getPost(array $post): array\n {\n unset($post['task']);\n\n // Decode JSON encoded fields and merge them to data.\n if (isset($post['_json'])) {\n $post = array_replace_recursive($post, $this->jsonDecode($post['_json']));\n unset($post['_json']);\n }\n\n $post = $this->cleanDataKeys($post);\n\n return $post;\n }",
"public function getPostArray()\n {\n return [\n 'name' => $this->name,\n 'message' => $this->message,\n 'iplog' => $this->iplog,\n 'timelog' => $this->timelog\n ];\n }",
"public function toArray($request)\n {\n return [\n 'type' => $this->post_type,\n 'id' => $this->id,\n 'title' => $this->title,\n 'body' => $this->body,\n 'cover_img' => $this->cover_img,\n 'user' => $this->user,\n 'deleted_at' => $this->deleted_at,\n 'createdDate' => $this->created_at,\n 'updatedDate' => $this->updated_at,\n ];\n }",
"private function getPostData(): array\n {\n return [\n 'product' => [\n 'attribute_set_id' => '4',\n 'status' => '1',\n 'name' => 'Simple Product',\n 'sku' => 'simple',\n 'url_key' => 'simple-product',\n 'type_id' => \\Magento\\Catalog\\Model\\Product\\Type::TYPE_SIMPLE\n ],\n 'links' => [\n 'upsell' => [\n ['id' => '10'],\n ],\n 'crosssell' => [\n ['id' => '11'],\n ],\n 'related' => [\n ['id' => '12'],\n ],\n ]\n ];\n }",
"public function toArray($request)\n {\n return [\n 'data' => $this->collection->transform(function($post){\n $relations = $post->getRelations();\n return [\n 'id' => $post->id,\n 'name' => $post->name,\n 'slug' => $post->slug,\n 'section' => $post->section,\n 'includes' => $relations,\n ];\n }),\n 'links' => [\n 'self' => 'link-value',\n ],\n ];\n }",
"abstract public function parsePostData() : array;",
"public function toArray($request)\n {\n return [\n 'post_id' => $this->id,\n 'user_id' => $this->user_id,\n 'account_id' => $this->account_id,\n 'account_name' => $this->name,\n 'account_url' => $this->account_url,\n 'social_id' => $this->social_network_id,\n 'caption' => $this->post_caption,\n 'media' => $this->post_data,\n 'type' => $this->post_type,\n 'timer' => $this->post_schedule,\n 'status' => $this->post_status,\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at,\n ];\n }",
"public function parse($resource)\n {\n return $resource->toArray();\n }",
"public function toArray($request)\n {\n //return parent::toArray($request);\n\n return [\n 'id' => $this->id,\n 'title' => $this->title,\n 'number_of_posts' => $this->number_of_posts,\n 'description' => $this->description,\n 'qualification' => $this->qualification,\n 'category_id' => $this->category_id,\n 'employer_id' => $this->employer_id,\n 'posted_on' => $this->posted_on,\n 'deadline' => $this->deadline,\n 'salary_scale' => $this->salary_scale,\n 'file_path' => $this->file_path,\n ];\n }",
"public function toArray($request)\n {\n if($this->resource != null){\n return [\n 'id' => $this->id,\n 'products_id' => new ProductResource($this->product),\n 'file_path' => $this->file_path,\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at\n ];\n }\n }",
"public function toArray($request): array\n {\n return parent::toArray($request);\n }",
"public function toArray($request): array\n {\n return parent::toArray($request);\n }",
"public function toArray($request): array\n {\n return parent::toArray($request);\n }",
"function convertJsonToPostList($json){\n\t\treturn array_map(\"jsonToPost\", $json);\n\t}",
"public function toArray(): array\n {\n return [\n 'id' => intval($this->id),\n 'title' => strval($this->title),\n 'body' => strval($this->body),\n 'owner' => new UserResource($this->whenLoaded('owner')),\n 'children' => CommentResource::collection($this->whenLoaded('children')),\n 'created_at' => strval($this->created_at),\n 'updated_at' => strval($this->updated_at),\n ];\n }",
"public function getPosts() {\n return isset($_POST) ? $_POST : array();\n }",
"public function toArray($request)\n {\n return [\n 'post_id' => $this->id,\n 'user_id' => $this->user_id,\n 'user' => $this->user->getFullNameAttribute(),\n 'post' => $this->post,\n 'sharedFrom' => new SharedPostResource($this->sharedFrom),\n 'likes' => $this->likesCount(),\n 'likers' => ProfileResource::collection($this->likers()),\n 'is_liker' => $this->isLiker(Auth::user()->id),\n 'created_at' => $this->created_at->format('M d, y h:ia'),\n 'comments' => CommentResource::collection($this->comments())\n ];\n }",
"public function toArray($request)\n {\n $data = [];\n\n if (!empty($this->resource)) {\n foreach ($this->resource as $item) {\n $data[] = [\n 'title' => $item->title,\n 'parent_id' => $item->parent_id,\n 'id' => $item->id,\n 'user_id' => $item->user_id,\n 'created_at' => \\Carbon\\Carbon::createFromFormat('Y-m-d H:i:s', $item->created_at)\n ->format('Y-m-d H:i')\n ];\n }\n }\n return $data;\n }",
"public function toArray($request)\n {\n return parent::toArray($request);\n }",
"public function toArray($request)\n {\n return parent::toArray($request);\n }",
"public function toArray()\n {\n return array(\n \"httpGet\" => $this->httpGet,\n \"httpPost\" => $this->httpPost,\n \"formats\" => $this->formats\n );\n }",
"protected function asArray()\n\t{\n\t\treturn \\json_decode($this->response, true);\n\t}",
"abstract public function getRawPostPayload() : array;",
"public function transform($resource)\n {\n return [\n\n 'id' => (int) $resource->id,\n\t\t\t'name' => $resource->name,\n\t\t\t'description' => $resource->description,\n 'seat_count' => $resource->seat_count,\n\t\t\t'is_active' => $resource->is_active,\n\t\t\t'status' => $resource->status,\n\t\t\t'created_at' => $resource->created_at->toDateTimeString(),\n\t\t\t'updated_at' => $resource->updated_at->toDateTimeString(),\n\t\t\t\n ];\n }",
"public function toArray()\n {\n return $this->getContent();\n }",
"public function toArray()\n {\n return $this->castNestedArrayables($this->payload);\n }",
"public function toArray($request): array\n {\n return [\n 'id' => $this->id,\n 'text' => $this->text,\n 'parent' => $this->parent_id?new CommentWithoutRelationsResource($this->related):null,\n 'post' => new PostWithoutRelationsResource($this->post),\n 'author' => new UserWithoutRelationsResource($this->author),\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at,\n ];\n }",
"public function toArray($request) \n\t{\n if (is_null($this->resource)) {\n return [];\n }\n if (is_array($this->resource)) {\n \treturn $this->resource;\n }\n\n return $this->modelResponse();\n\t}",
"public function toArray($request): array\n {\n return [\n 'id' => $this->id,\n 'content' => $this->content,\n 'is_read' => $this->is_read,\n 'user' => UserResource::make($this->whenLoaded('user')),\n 'created_at' => $this->created_at,\n 'updated_at' => $this->updated_at,\n ];\n }",
"public function toArray( $request )\n {\n\n return [\n self::COLUMN_ID => $this->{self::COLUMN_ID},\n self::COLUMN_SLUG => $this->{self::COLUMN_SLUG},\n self::COLUMN_TITLE => $this->{self::COLUMN_TITLE},\n self::COLUMN_DESCRIPTION => $this->{self::COLUMN_DESCRIPTION},\n self::COLUMN_CONTENT => $this->{self::COLUMN_CONTENT},\n 'post_type' => $this->{self::COLUMN_POST_TYPE},\n 'parent' => $this->{self::COLUMN_PARENT_ID},\n 'user' => $this->when(\n $this->user,\n new UserResource($this->user),\n null\n ),\n 'image' => $this->when(\n $this->image,\n new ImageResource($this->image),\n null\n ),\n 'status' => $this->when(\n $this->status,\n new StatusResource($this->status),\n null\n ),\n// 'meta_fields' => new PostMetaFieldsResourceCollection(\n// $this->metaFields\n// ->loadMissing(\n// 'children',\n// 'data',\n// 'type'\n// )\n// ),\n self::COLUMN_UPDATED_AT => $this->{self::COLUMN_UPDATED_AT},\n self::COLUMN_CREATED_AT => $this->{self::COLUMN_CREATED_AT},\n ];\n\n }",
"public function toArray($request) \n {\n return [\n 'id' => $this->id,\n 'header' => [\n 'title' =>$this->title, \n 'subtitle' => $this->subtitle,\n ],\n 'meta' => [\n 'publish_date' => $this->published_at,\n 'tags' => ['tag1', 'tag2', 'tag3'],\n 'url' => url(route('posts.show', ['id' => $this->id])),\n ],\n 'content' => $this->body,\n 'author' => new Author($this->author),\n ];\n }",
"public function toArray(): array\n {\n return [\n 'slug' => $this->slug,\n 'path' => $this->getPath(),\n 'concurrency' => $this->concurrency,\n 'requests' => $this->requests,\n ];\n }",
"public function toArray($request)\n {\n \n return [\n \"author\"=>[\n \"links\"=>[\n \"self\"=> route('post.relationships.author', [\"post\"=>$this->id]),\n \"related\"=> route('post.author',['post'=>$this->id]),\n ],\n // \"data\"=>[\n // 'type'=>$this->author->getTable(),\n // 'id'=>$this->author->id\n // ]\n \"data\"=>new AuthorIdentifierResource($this->author)\n ],\n // Aqui cree una coleccion por los all comments q pertenecen a un Post\n \"comments\"=>(new PostCommentsRelationshipCollection($this->comments))->additional([\"post\"=>$this])\n ];\n }",
"public function toArray()\n {\n $data = [];\n\n foreach (get_object_vars($this) as $attribute => $value) {\n if ($attribute != 'resource' and !empty($value)) {\n $data[$attribute] = $value;\n }\n }\n\n return $data;\n }",
"public function getPostData() :array\n {\n return empty($_POST) ? [] : $_POST;\n }",
"function toArray(){\r\n\t\treturn $this->data;\r\n\t}",
"public function transform($resource)\n {\n return [\n 'id' => $resource->id,\n 'sname' => $resource->field_sname,\n 'cname' => $resource->field_cname,\n 'type' => $this->getType($resource->field_type),\n 'typeId' => $resource->field_type,\n 'length' => $resource->field_length,\n 'desc' => $resource->field_desc,\n 'default' => $resource->field_default,\n 'fieldType' => $resource->type->name,\n 'fieldTypeId' => $resource->field_type_id,\n 'dict' => $resource->field_dict,\n 'model' => $resource->dict_table,\n 'url' => $resource->url,\n 'system' => $resource->system,\n 'created_at' => $resource->created_at->format('Y-m-d H:i:s'),\n 'updated_at' => $resource->updated_at->format('Y-m-d H:i:s'),\n ];\n }",
"public function toArray()\n {\n return $this->transform();\n }",
"public function arr() {\n\t\t\treturn \\uri\\generate::to_array($this->object);\n\t\t}",
"public function toArray(): array\n {\n $body = (string) $this->response->getBody();\n\n return json_decode($body, true) ?? [];\n }",
"public function toArray(): array\n {\n return [\n 'header' => (array)$this->header(),\n 'content' => (string)$this->getFormValue('content')\n ];\n }",
"public function toArray($request)\n {\n return [\n 'id' => $this->id,\n 'name' => $this->mergeWhen('2>1', 'test'),\n 'post' => $this->whenLoaded('posts', 'photo'),\n ];\n }",
"public function toArray($request)\n {\n //return parent::toArray($request);\n return [\n 'id' => $this->id,\n 'user' => $this->user->uname,\n 'content' => $this->body,\n 'created' => $this->created_at->toDateTimeString(),\n 'likes' => $this->likes_count,\n 'mylike' => $this->mylike_count,\n 'post_id' => $this->post_id,\n //'comment_to' => $this->comment->user->id,\n 'reply_to' => !empty($this->comment->user->id) ? $this->comment->user->uname : '',\n ];\n }",
"public function toArray()\n {\n if ($this->resource instanceof ArrayableInterface) {\n\n return $this->resource->toArray();\n } else {\n\n return null;\n }\n }",
"public function toArray()\n {\n $params = array();\n\n //prepare an array of scalar properties\n $this->prepareParams($this->_request, $params);\n\n return $params;\n }",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray() {}",
"public function toArray($request)\n {\n // return parent::toArray($request);\n\n return [\n 'id' => $this->id,\n 'restaurant_id' => $this->restaurant_id,\n 'restaurant_name' => $this->restaurant->restaurant_name,\n 'name' => $this->name ,\n 'review' => $this->review,\n ];\n }",
"public function transform()\n {\n $posts = (new PostCollectionTransformer($this->posts->getCollection()))->transform();\n\n return [\n 'data' => $posts,\n 'total' => $this->posts->total(),\n 'per_page' => $this->posts->perpage(),\n 'current_page' => $this->posts->currentPage(),\n 'last_page' => $this->posts->lastpage(),\n 'next_page_url' => $this->posts->nextPageUrl(),\n 'prev_page_url' => $this->posts->previousPageUrl(),\n 'from' => $this->posts->firstItem(),\n 'to' => $this->posts->lastItem(),\n ];\n }",
"public function toArray($request)\n\t{\n\t\t$data = $this->resource->toArray();\n\n\t\t$data['id'] = shorten_uuid($data['id']);\n\t\t$data['code_id'] = shorten_uuid($data['code_id']);\n\t\t$data['user_id'] = shorten_uuid($data['user_id']);\n\n\t\t$data['order_cards'] = OrderCardTransformer::collection($this->whenLoaded('orderCards'));\n\n\t\treturn $data;\n\t}",
"public function toArray()\n {\n\n\n return $this->data;\n }",
"public function toArray($request): array|JsonSerializable|Arrayable\n {\n return [\n 'id' => $this->resource->id,\n\n 'name' => $this->resource->name,\n 'email' => $this->resource->email,\n 'email_verified_at' => $this->resource->email_verified_at,\n\n 'created_at' => $this->resource->created_at,\n 'updated_at' => $this->resource->updated_at,\n 'deleted_at' => $this->resource->deleted_at,\n ];\n }",
"public function toArray($request)\n {\n\n //By default we import all fields\n return parent::toArray($request);\n\n\n /*But we can format it as we like\n return [\n 'id' => $this->id,\n 'name' => $this->name\n ];*/\n\n }",
"public function toArray($request)\n {\n return [\n 'data' => $this->collection->transform(function($page){\n return [\n 'id' => $page->id,\n 'title' => $page->title\n ];\n }),\n ]; \n }",
"public function toArray($request)\n {\n return [\n 'id' => $this->id,\n 'branch_id' => $this->branch_id,\n 'branch' => Branch::findOrFail($this->branch_id),\n 'name' => $this->name,\n 'email' => $this->email,\n 'phone' => $this->phone,\n 'message' => $this->message,\n 'read' => $this->read,\n 'created_at' => $this->created_at->format('d.m. Y'),\n 'updated_at' => $this->created_at->format('d.m. Y'),\n 'pagination' => $this->collection \n ];\n // return ['data' => $this->collection];\n // // return parent::toArray($request);\n\n // EAger + Lazy loading\n // $branches = $this->whenLoaded('branch');\n // return [\n // 'id' => $this->id,\n // 'message' => $this->message,\n // 'branch' => new BranchResource($branches)\n // ];\n }",
"public function toArray($request)\n {\n return [\n 'id' => $this->id,\n 'author' => new UserResource($this->author),\n 'postDate' => $this->post_date,\n 'content' => $this->content,\n 'title' => $this->title,\n 'status' => $this->status,\n 'commentStatus' => $this->comment_status,\n 'slug' => $this->slug,\n 'postParent' => $this->post_parent,\n 'guid' => $this->guid,\n 'menuOrder' => $this->menu_order,\n 'postType' => $this->post_type,\n 'commentCount' => $this->comment_count,\n 'postVisibility' => $this->post_visibility,\n 'promoProducts' => new PromoProductCollection($this->promoProducts),\n 'createdAt' => $this->created_at,\n ];\n }",
"public function toArray() {\r\n \treturn array(\"response\"=>$this->_response);\r\n }",
"public function toArray($request)\n {\n return [\n 'id' => $this->id,\n 'pedido' => $this->pedidoObject,\n 'producto' => $this->productoObject,\n 'cantidad' => $this->cantidad,\n ];\n }",
"public function toArray() // untested\n {\n return $this->data;\n }",
"public function toArray($request)\n {\n return [\n 'form_title' => $this->form_id ? $this->form->form_name : null,\n 'form_data' => json_decode($this->form_data)\n ];\n }",
"public function getAsArray(): array\n {\n return \\GuzzleHttp\\json_decode(\\GuzzleHttp\\json_encode($this->values), true);\n }",
"public function toArray($request)\n {\n return [\n 'id' => $this-> id,\n 'user_id' => $this->user_id,\n 'model_id' => $this->model_id,\n 'model_type' => $this-> model_type,\n 'score'=> $this-> score,\n 'commentary'=> $this-> commentary,\n\n 'display_date_created_at' => $this->display_date_created_at,\n 'display_created_at' => $this->display_created_at,\n\n 'reviewable' => new BusinessWebResource($this->whenLoaded('reviewable')),\n 'user'=> new UserWebResource($this->whenLoaded('user'))\n ];\n }",
"public function toArray(): array\n {\n return $this->data;\n }",
"public function toArray(): array\n {\n return $this->data;\n }",
"public function toArray($request)\n {\n return [\n 'id' => $this->id,\n 'numero' => $this->numero,\n 'temperatura' => (string)($this->temperatura),\n 'codigo' => $this->codigo,\n 'tamanho_id' => $this->tamanho_id,\n 'estado_id' => $this->estado_id,\n 'localizacao_id' => $this->localizacao_id,\n\n 'tamanho' => new TamanhoResource($this->tamanho),\n 'estado' => new EstadoResource($this->estado),\n 'localizacao' => new LocalizacaoResource($this->localizacao),\n ];\n }",
"public function toArray() {\n return [\n 'content' => $this->content,\n 'status' => $this->status\n ];\n }",
"public function toArray($request)\n {\n $createdAt = now()->createFromFormat('Y-m-d H:i:s', $this->created_at ?? now())\n ->diffForHumans();\n\n $updatedAt = now()->createFromFormat('Y-m-d H:i:s', $this->updated_at ?? now())\n ->diffForHumans();\n\n $array = [\n 'id' => $this->id,\n 'body' => $this->body,\n 'votes' => $this->votes ?? 0,\n 'voted' => $this->voted ?? 0,\n 'created_at' => $createdAt,\n 'updated_at' => $updatedAt,\n 'user' => [\n 'slug' => $this->user->slug,\n 'name' => $this->user->username,\n 'avatar' => $this->user->avatar\n ]\n ];\n\n $this->getCommentPost($array);\n\n return $array;\n }",
"public function toArray() {\n\t\treturn $this->data;\n\t}",
"private function get_posted_resources() {\n $post_data = wp_unslash( $_POST ); // phpcs:ignore\n $resources = array();\n\n if ( isset( $post_data['resource_id'] ) && isset( $post_data['_wc_booking_has_resources'] ) ) {\n $resource_ids = $post_data['resource_id'];\n $resource_menu_order = $post_data['resource_menu_order'];\n $resource_base_cost = $post_data['resource_cost'];\n $resource_block_cost = $post_data['resource_block_cost'];\n $max_loop = max( array_keys( $post_data['resource_id'] ) );\n $resource_base_costs = array();\n $resource_block_costs = array();\n\n foreach ( $resource_menu_order as $key => $value ) {\n $resources[ absint( $resource_ids[ $key ] ) ] = array(\n 'base_cost' => wc_clean( $resource_base_cost[ $key ] ),\n 'block_cost' => wc_clean( $resource_block_cost[ $key ] ),\n );\n }\n }\n\n return $resources;\n }",
"public function toArray()\r\n {\r\n return $this->data;\r\n }",
"public function toArray($request)\n {\n return [\n 'id'=> (int)$this->id,\n 'read'=> ($this->read == 'true') ? true : false,\n 'note'=> $this->note,\n 'published_from'=> $this->published_from()\n ];\n }"
] | [
"0.6997886",
"0.6973491",
"0.68454516",
"0.6773124",
"0.6758096",
"0.6758096",
"0.65154237",
"0.6448192",
"0.64429927",
"0.6379018",
"0.6351611",
"0.63337225",
"0.6281879",
"0.6266711",
"0.624787",
"0.62457824",
"0.62418526",
"0.6219744",
"0.6206007",
"0.6205567",
"0.61802965",
"0.61730444",
"0.6170308",
"0.6166633",
"0.61521983",
"0.61520433",
"0.61520433",
"0.61520433",
"0.6149023",
"0.6148484",
"0.613994",
"0.6138736",
"0.61290324",
"0.6127245",
"0.6127245",
"0.61198115",
"0.610971",
"0.61068267",
"0.6106002",
"0.6104109",
"0.61030346",
"0.610047",
"0.6094258",
"0.6084476",
"0.6084286",
"0.607958",
"0.60690516",
"0.6068654",
"0.6053014",
"0.6052498",
"0.60365677",
"0.603605",
"0.601381",
"0.6012392",
"0.60120255",
"0.6005923",
"0.6004741",
"0.6002552",
"0.59950274",
"0.5993878",
"0.59906304",
"0.59906304",
"0.5989704",
"0.5989704",
"0.5989704",
"0.5989704",
"0.5989442",
"0.5989442",
"0.5989442",
"0.5989442",
"0.5989442",
"0.5989442",
"0.5989442",
"0.5989442",
"0.5989442",
"0.5989442",
"0.59891665",
"0.5987525",
"0.5976781",
"0.59754825",
"0.5974674",
"0.5973129",
"0.59717405",
"0.5961227",
"0.5950452",
"0.59435725",
"0.5943543",
"0.59427345",
"0.5942032",
"0.5931945",
"0.5930298",
"0.591412",
"0.591412",
"0.59132814",
"0.59102404",
"0.59068877",
"0.5902073",
"0.590191",
"0.58988607",
"0.5897859"
] | 0.5984859 | 78 |
Cleanup the input and remove unnecessary characters | public function clean(string $input): string
{
$input = trim($input);
$input = str_replace('-', '', $input);
return preg_replace('/[^A-Za-z0-9\-]/', '', $input);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function strip_bad_chars( $input ) {\n $output = preg_replace( \"/[^a-zA-Z0-9_-]/\", \"\", $input );\n return $output;\n }",
"public function filterInput(string $input) : string {\n return trim(preg_replace('/[^a-zA-Z0-9\\s]/', '',$input));\t\n }",
"function StringInputCleaner($data) {\n\t//remove space bfore and after\n\t$data = trim($data);\n\t//remove slashes\n\t$data = stripslashes($data);\n\t$data = (filter_var($data, FILTER_SANITIZE_STRING));\n\t$data = utf8_encode($data);\n\treturn $data;\n}",
"function StringInputCleaner($data) {\n\t//remove space bfore and after\n\t$data = trim($data);\n\t//remove slashes\n\t$data = stripslashes($data);\n\t$data = (filter_var($data, FILTER_SANITIZE_STRING));\n\t$data = utf8_encode($data);\n\treturn $data;\n}",
"function sanitizeOpr( $input ) {\n\t\t$input = trim($input);\n\t\t\n\t\t// Remove all invalid characters\n\t\t// TODO: complete this\n\t\t//$input = preg_replace( '|[^\\w\\s\\[\\]]+|', '', $input );\n\t\t\n\t\t// Truncate to 64 characters\n\t\t$input = substr( $input, 0, 64 );\n\t\t\n\t\treturn $input;\n\t}",
"private function cleanInput($input) {\n $input = stripslashes(htmlentities(trim($input)));\n return $input;\n }",
"public static function sanitize($input){\n\t\t\t\t\n \t\t return $s = preg_replace(\"/[^A-Z0-9a-z\\w ]/u\",\"\", $input);\n\n\t\t}",
"function cleanInput ($input) {\n\t \n\t\t$search = array(\n\t\t\t'@<script[^>]*?>.*?</script>@si', // Strip out javascript\n\t\t\t'@<[\\/\\!]*?[^<>]*?>@si', // Strip out HTML tags\n\t\t\t'@<style[^>]*?>.*?</style>@siU', // Strip style tags properly\n\t\t\t'@<![\\s\\S]*?--[ \\t\\n\\r]*>@' // Strip multi-line comments\n\t\t);\n\n\t\treturn preg_replace($search, '', $input);\n\t}",
"function Strip_Bad_chars($input)\n{\n //$output = preg_replace(\"/[^a-zA-Z0-9_-]/\", \"\", $input);\n $output = preg_replace(\"/[^0-9]/\", \"\", $input);\n return $output;\n}",
"function clean_input($data) {\n $data = trim($data); // strips whitespace from beginning/end\n $data = stripslashes($data); // remove backslashes\n $data = htmlspecialchars($data); // replace special characters with HTML entities\n return $data;\n}",
"function make_clean($value) {\n\t\t$legal_chars = \"%[^0-9a-zA-Z������� ]%\"; //allow letters, numbers & space\n\t\t$new_value = preg_replace($legal_chars,\"\",$value); //replace with \"\"\n\t\treturn $new_value;\n\t}",
"function clean_unwanted_characters($oneStr){\n\t$cleaned_str = $oneStr;\r\n// \t$cleaned_str = str_ireplace(\"\\\"\", \"/\", $oneStr);\r\n// \t$cleaned_str = str_ireplace(\"\\\\\", \"/\", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\b\", \" \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\f\", \" / \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\r\", \" / \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\t\", \" \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"\\\\u\", \" \", $cleaned_str);\r\n// \t$cleaned_str = str_ireplace(\"</\", \"<\\/\", $cleaned_str);\r\n\treturn $cleaned_str;\n\r\n}",
"function clean_input($str)\n\t{\n\t\t$str = strip_tags($str);\n\t\t$str = (get_magic_quotes_gpc()) ? stripslashes($str) : $str;\n\t\t$str = trim($str);\n\t\t$str = preg_replace('/[\\\\\"\\'[{;&}|<>\\/]/i', '', $str);\n\t\treturn $str;\n\t}",
"public static function clean_input($input)\n {\n $input = trim(stripslashes($input));\n\n # strip the slashes if magic quotes is on\n if(get_magic_quotes_gpc()) {\n $input = trim(stripslashes($input));\n }\n else {\n $input = trim($input);\n }\n\treturn ($input);\n\n }",
"function scrubInput($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}",
"public function sanitize($input) {\n return trim(filter_var($input, FILTER_SANITIZE_STRING));\n }",
"function preclean($dirtyString){\n\t\t//1. removes any bad characters\n\t\t//2. trims whitespace\n\n\t\treturn ereg_replace(\"[^A-Za-z0-9-]\", \"\", trim($dirtyString));\n\t}",
"private static function clean_input($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n }",
"function cleanInput($data) {\n\t\t$data = trim($data);\n\t\t$data = stripslashes($data);\n\t\t$data = htmlspecialchars($data);\n\t\treturn $data;\n\t}",
"private function _clean($data){\n $data = preg_replace(\"/\\r|\\n/\",\"\",$data);\n $data = preg_replace(\"/\\s+/\",\" \",$data);\n return $data;\n }",
"function cleanInput($data)\n\t{\n\t\t$data = trim($data);\n\t\t$data = stripslashes($data);\n\t\t$data = htmlspecialchars($data);\n\t\treturn $data;\n\t}",
"function clean_input($data){\r\n\t\t\t\t\t$data = trim($data);\r\n\t\t\t\t\t$data = stripslashes($data);\r\n\t\t\t\t\t$data = htmlspecialchars($data);\r\n\t\t\t\t\treturn $data;\r\n\t\t\t\t}",
"function htmlRemoveSpecialCharacters($input){\n\t\tfor($i=0; $i<strlen($input); $i++){\n\n\t\t\t$value = ord($input[$i]);\n\t\t\tif($value >= 48 && $value <= 57);\n\t\t\telseif ($value >= 65 && $value <= 90) ;\n\t\t\telseif ($value >= 97 && $value <= 122) ;\n\t\t\telseif ($value == 32) ;\n\t\t\telse{\n\t\t\t\t$input = substr($input, 0, $i) . '\\\\' . substr($input, $i);\n\t\t\t}\n\t\t}\n\t\techo $input;\n\t\treturn $input;\n\t}",
"function removeUnnecessaryCharas($string)\n{\n return preg_replace('~\\s+~s', '', $string);\n}",
"function cleanInput($data) {\r\n\t\t\t$data = trim($data);\r\n\t\t\t$data = stripslashes($data);\r\n\t\t\t$data = htmlspecialchars($data);\r\n\t\t\treturn $data;\r\n\t\t}",
"function clean_input($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}",
"private function clean_input($inputData): string\n {\n $inputData = trim($inputData);\n $inputData = stripslashes($inputData);\n $inputData = htmlspecialchars($inputData);\n return $inputData;\n }",
"public function CleanData($data){\n\t\t\t$data = trim($data);\n\t\t\t$data=htmlentities($data,ENT_QUOTES, 'UTF-8');\n\t\t\t$data = filter_var($data,FILTER_SANITIZE_SPECIAL_CHARS);\n\t\t\treturn $data;\n\t\t\t}",
"public function CleanData($data){\n\t\t\t$data = trim($data);\n\t\t\t$data=htmlentities($data,ENT_QUOTES, 'UTF-8');\n\t\t\t$data = filter_var($data,FILTER_SANITIZE_SPECIAL_CHARS);\n\t\t\treturn $data;\n\t\t\t}",
"public function CleanData($data){\n\t\t\t$data = trim($data);\n\t\t\t$data=htmlentities($data,ENT_QUOTES, 'UTF-8');\n\t\t\t$data = filter_var($data,FILTER_SANITIZE_SPECIAL_CHARS);\n\t\t\treturn $data;\n\t\t\t}",
"function search_strip_badchars($line) {\n// \n $line = str_replace(\".\", \" \", $line);\n $line = str_replace(\"\\\"\", \" \", $line);\n $line = str_replace(\"'\", \"\", $line);\n $line = str_replace(\"+\", \" \", $line);\n $line = str_replace(\"-\", \" \", $line);\n $line = str_replace(\"*\", \" \", $line);\n $line = str_replace(\"/\", \" \", $line);\n $line = str_replace(\"!\", \" \", $line);\n $line = str_replace(\"%\", \" \", $line);\n $line = str_replace(\">\", \" \", $line);\n $line = str_replace(\"<\", \" \", $line);\n $line = str_replace(\"^\", \" \", $line);\n $line = str_replace(\"(\", \" \", $line);\n $line = str_replace(\")\", \" \", $line);\n $line = str_replace(\"[\", \" \", $line);\n $line = str_replace(\"]\", \" \", $line);\n $line = str_replace(\"{\", \" \", $line);\n $line = str_replace(\"}\", \" \", $line);\n $line = str_replace(\"\\\\\", \" \", $line);\n $line = str_replace(\"=\", \" \", $line);\n $line = str_replace(\"$\", \" \", $line);\n $line = str_replace(\"#\", \" \", $line);\n $line = str_replace(\"?\", \" \", $line);\n $line = str_replace(\"~\", \" \", $line);\n $line = str_replace(\":\", \" \", $line);\n $line = str_replace(\"_\", \" \", $line);\n $line = str_replace(\" \", \" \", $line);\n $line = str_replace(\"&\", \" \", $line);\n $line = str_replace(\"©\", \" \", $line);\n $line = str_replace(\" \", \" \", $line);\n $line = str_replace(\""\", \" \", $line);\n $line = str_replace(\"&\", \" \", $line);\n $line = str_replace(\";\", \" \", $line);\n $line = str_replace(\"\\n\", \" \", $line);\n return $line;\n}",
"function sanitizeType( $input ) {\n\t\t$input = preg_replace( '|[^\\w\\s\\(\\)]+|', '', $input );\n\t\t\n\t\t// Remove excess white-spaces\n\t\t$input = preg_replace( '|[\\s]+|', ' ', $input );\n\t\t\n\t\treturn trim( $input );\n\t}",
"public static function cleanData(&$input) {\n\t\t$input = stripslashes($input);\n\t\t$input = str_replace(\"\\xA0\", ' ', $input );\n\n\t\treturn $input;\n\t}",
"private static function stripIllegalChars()\n {\n $input_arr = array();\n foreach ($_POST as $key => $input_arr)\n {\n $_POST[$key] = preg_replace(\"/[^a-zA-Z0-9\\s!@#$%&*()_\\-=+?.,:\\/]/\", \"\", $input_arr);\n }\n }",
"function cleanInput($input) \n{\n $search = array(\n '@<script[^>]*?>.*?</script>@si', // Strip out javascript\n '@<[\\/\\!]*?[^<>]*?>@si', // Strip out HTML tags\n '@<style[^>]*?>.*?</style>@siU', // Strip style tags properly\n '@<![\\s\\S]*?--[ \\t\\n\\r]*>@' // Strip multi-line comments\n );\n $output = preg_replace($search, '', $input);\n return $output;\n}",
"function clean_input($data) \n{\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}",
"function sanitize($str){\n $str = strip_tags($str);//erasing tag or smthg\n $str = rtrim($str);//agadi re pachadi ko space hatauchha\n return $str;\n }",
"function santitise_input($data) {\n $data = trim($data);\n //Removing backslashes.\n $data = stripslashes($data);\n //Removing HTML special/control characters.\n $data = htmlspecialchars($data);\n return $data; \n }",
"function remove_strange_chars($txt){\n\t\treturn(str_replace(array('<','>',\"'\",\";\",\"&\",\"\\\\\"),'',$txt));\n\t}",
"function cleanseTheData($data) \n\t\t{\n \t\t\t$data = trim($data);\n\t\t\t$data = stripslashes($data);\n\t\t\t$data = htmlspecialchars($data);\n\t\t\treturn $data;\n\t\t}",
"function remove_allpuncutation($text)\n{\n\t$otext = $text;\n\t$text = preg_replace('/[^a-zA-Z0-9|+|-|\\*|Š|š|Ž|ž|À|Á|Â|Ã|Ä|Å|Æ|Ç|È|É|Ê|Ë|Ì|Í|Î|Ï|Ñ|Ò|Ó|Ô|Õ|Ö|Ø|Ù|Ú|Û|Ü|Ý|Þ|ß|à|á|â|ã|ä|å|æ|ç|è|é|ê|ë|ì|í|î|ï|ð|ñ|ò|ó|ô|õ|ö|ø|ù|ú|û|ý|þ|ÿ]/is', ' ', $text);\n\t\n\trunDebug( __FILE__, __FUNCTION__, __LINE__, \"In: $otext Out:$text\",3);\n\t\n\treturn $text;\n}",
"function cleanInput($data){ //sanitize data \n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n }",
"function cleanInput($data)\n{\n $data = trim($data);\n\n // gunakan stripslashes untuk elakkan double escape if magic_quotes_gpc is enabledif(get_magic_quotes_gpc()){\n $data = stripslashes($data);}",
"function sanitize($input){\n $input = strip_tags($input);\n $input = htmlspecialchars($input);\n $input = trim($input);\n return $input;\n}",
"function clean_input($data){\r\n\t$data = trim($data);\r\n\t$data = stripslashes($data);\r\n\t$data = htmlspecialchars($data);\r\n\treturn $data;\t\r\n}",
"function sanitise_input($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n }",
"function sanitize($input) {\n\t\t$cleaning = $input;\n\t\t\n\t\tswitch ($cleaning) {\n\t\t\tcase trim($cleaning) == \"\":\n\t\t\t\t$clean = false;\n\t\t\t\tbreak;\n\t\t\tcase is_array($cleaning):\n\t\t\t\tforeach($cleaning as $key => $value) {\n\t\t\t\t\t$cleaning[] = sanitize($value);\n\t\t\t\t}\n\t\t\t\t$clean = implode(\",\", $cleaning);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(get_magic_quotes_gpc()) {\n\t\t\t\t\t$cleaning = stripslashes($cleaning);\n\t\t\t\t}\n\t\t\t\t$cleaning = strip_tags($cleaning);\n\t\t\t\t$clean = trim($cleaning);\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\treturn $clean;\n\t}",
"function cleanInput($data) { \r\n return htmlspecialchars(stripslashes(trim($data)));\r\n }",
"function cleanInput ($input) { // meie e-mail jõuab siia ning salvestatakse inputi sisse\n\n //input = sisestatud e-mail\n\n $input = trim ($input);\n $input = stripslashes ($input); //võtab kaldkriipsud ära\n $input = htmlspecialchars ($input); //\n return $input;\n}",
"function sanitize_input($str) {\n\treturn preg_replace(\"/[?'&<>\\\"]/\", \"\", $str);\n}",
"function char_filter($ojb)\n {\n $badchars='Ý`~!@$%^()+-_=[]{}\\'\\\\:\"|,/<>? '; # Nhung ky tu khong cho phep duoc len danh sach tai day\n for ($i=0;$i<strlen($badchars);$i++){\n $ojb=str_replace($badchars[$i],\"\",$ojb);\n\n }\n\n return $ojb;\n }",
"private static function clean($in)\n {\n return htmlentities($in);\n }",
"function cleanInput($input) {\n\n $search = array(\n '@<script[^>]*?>.*?</script>@si', // Strip out javascript\n '@<[\\/\\!]*?[^<>]*?>@si', // Strip out HTML tags\n '@<style[^>]*?>.*?</style>@siU', // Strip style tags properly\n '@<![\\s\\S]*?--[ \\t\\n\\r]*>@' // Strip multi-line comments\n );\n\n $output = preg_replace($search, '', $input);\n return $output;\n}",
"function inputCleaner($value){\n\t $toBeTested\t\t= strip_tags($value);\n\t // Instead of using HTMLStripSpecialChars, I am using some Regex\n\t\t// to have a greater degree of control over the input.\n\t\t//\tThis regex checks the entire string for anything that\n\t\t//\tcould ruin our consistency.\n\t $regExp = (\"/[\\!\\\"\\£\\$\\%\\^\\&\\*\\(\\)\\;\\'\\,\\\"\\?]/ \");\n\t if(preg_match_all($regExp, $toBeTested,$matches)){\n\t \treturn false;\n\t\t}\n\t\telse{\n\t\t\treturn $toBeTested;\n\t\t}\n\t}",
"function cleanString($name) {\n\t\tif (isset($this->getvars[$name])){\n\t\t\t$val = $this->getvars[$name];\n\t\t} else {\n\t\t\t$val = @$this->postvars[$name];\n\t\t}\n\t\tif ($val == '') {\n\t\t\treturn '';\n\t\t}\n\t\tif (is_array($val)) {\n\t\t\tarray_walk_recursive($val, array('Cgn', 'removeCtrlChar'));\n\t\t} else {\n\t\t \tCgn::removeCtrlChar($val);\n\t\t\t$val = (string)$val;\n\t\t}\n\t\treturn $val;\n\n\t}",
"function cleanText($text)\n{\n\t$text = strtolower($text);\n\t//$text = iconv('utf-8', 'ascii//TRANSLIT', $text);\n\t$text = preg_replace(\"/&([a-z])[a-z]+;/i\", \"$1\", htmlentities($text));\n\t$text = preg_replace(\"#[[:punct:]]#\", \"\", $text);\n\treturn ($text);\n}",
"function scrub($str) {\n\t$str = preg_replace('/[^A-Za-z0-9]/','',$str);\n\treturn $str;\n}",
"public function just_clean($string)\n {\n $s = '!@#$%^&*()_+-={}[]:\";\\'?/.,<>`~';\n for($i=0;$i<mb_strlen($s,'utf-8');$i++)\n {\n $string = str_replace(mb_substr($s,$i,1,'utf-8'),'', $string);\n $string = str_replace(' ',' ', $string);\n }\n return trim($string);\n }",
"function sanitise_input($data)\n {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n }",
"function sanitise_input($data)\n {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n }",
"public function sanitize( $input ) {\n\n $input = preg_split( '/\\s+/', trim( $input ) );\n\n return $input;\n }",
"function mf_sanitize($input){\n\t\tif(get_magic_quotes_gpc() && !empty($input)){\n\t\t\t $input = is_array($input) ?\n\t array_map('mf_stripslashes_deep', $input) :\n\t stripslashes(trim($input));\n\t\t}\n\t\t\n\t\treturn $input;\n\t}",
"function remove_nonalphanum( $data ) {\n\t$text = trim( $data, ' ' );\n\t$text = str_replace( ' ', '-', $text );\n\t$text = preg_replace( '/[^A-Za-z0-9-]/', '', $text );\n\treturn strtolower( $text );\n}",
"protected function sanitize($input){ \n\t\tif ( get_magic_quotes_gpc() )\n\t\t{\n\t\t\t$input = stripslashes($input);\n\t\t}\n\n\t $search = array(\n\t\t '@<script[^>]*?>.*?</script>@si', // Strip out javascript\n\t\t '@<[\\/\\!]*?[^<>]*?>@si', // Strip out HTML tags\n\t\t '@<style[^>]*?>.*?</style>@siU', // Strip style tags properly\n\t\t '@<![\\s\\S]*?--[ \\t\\n\\r]*>@' // Strip multi-line comments\n\t \t);\n\n\t\t$output = preg_replace($search, '', $input);\n\t\treturn $output;\n }",
"function cleanInput($data) { \n return htmlspecialchars(stripslashes(trim($data)));\n}",
"public function removeSpecialChars()\n {\n $this->input = preg_replace(\"/[^A-Za-z0-9\\-]/\", \" \", $this->input);\n return $this;\n }",
"function remove_puncutation($text)\n{\t\n\t$otext = $text;\n\t$text = preg_replace('/[^a-zA-Z0-9|+|-|*|\\/|\\.|?|!|Š|š|Ž|ž|À|Á|Â|Ã|Ä|Å|Æ|Ç|È|É|Ê|Ë|Ì|Í|Î|Ï|Ñ|Ò|Ó|Ô|Õ|Ö|Ø|Ù|Ú|Û|Ü|Ý|Þ|ß|à|á|â|ã|ä|å|æ|ç|è|é|ê|ë|ì| í|î|ï|ð|ñ|ò|ó|ô|õ|ö|ø|ù|ú|û|ý|þ|ÿ]/i', ' ', $text);\n\t\n\trunDebug( __FILE__, __FUNCTION__, __LINE__, \"In: $otext Out:$text\",3);\n\t\n\treturn $text;\n}",
"function ATsanitize($input)\n{\n $user_input = trim($input);\n \n if (get_magic_quotesgpc())\n {\n $input = stripslashes($input);\n }\n}",
"function sanitize($data){\r\n\t\t\t$data=stripslashes($data); // Remove all slashses\r\n\t\t\t$data=strip_tags($data); //Remove all tags\r\n\t\t\treturn $data;\r\n\t\t}",
"function cleanInput($data) {\n\t\n\treturn htmlspecialchars(stripslashes(trim($data)));\n}",
"function cleanInputs($data) {\n\t$data = trim($data);\n\t$data = stripslashes($data);\n\t$data = htmlspecialchars($data);\n\treturn $data;\n}",
"function cleanInputs($data) {\n\t$data = trim($data);\n\t$data = stripslashes($data);\n\t$data = htmlspecialchars($data);\n\treturn $data;\n}",
"function filter_alphanum($input) {\n return preg_replace(\"/[^a-zA-Z0-9]+/\", \"\", $input);\n}",
"function sanitizeInput($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n $data = strip_tags($data);\n return $data;\n}",
"function cleanInput($data) { \n return htmlspecialchars(stripslashes(trim($data)));\n}",
"function filterUserInput($data) {\n\n // trim() function will remove whitespace from the beginning and end of string.\n $data = trim($data);\n\n // Strip HTML and PHP tags from a string\n $data = strip_tags($data);\n\n /* The stripslashes() function removes backslashes added by the addslashes() function.\n Tip: This function can be used to clean up data retrieved from a database or from an HTML form.*/\n $data = stripslashes($data);\n\n // htmlspecialchars() function converts special characters to HTML entities. Say '&' (ampersand) becomes '&'\n $data = htmlspecialchars($data);\n return $data;\n\n}",
"abstract public function sanitize();",
"function filteralpha($s){\n return preg_replace(\"/[^: ()_\\-a-zA-Z0-9+]/\",\"\", $s);\n}",
"public static function clean ($text) {\n\t\t$to_return = strtolower($text);\n\t\t$to_return = preg_replace(\"/(?![.=$'€%-])\\p{P}/u\", \"\", $to_return);\n\t\t$to_return = trim($to_return);\n\t\t// remove double spacing\n\t\twhile (strpos($to_return, ' ')) {\n\t\t\t$to_return = str_replace(' ', ' ', $to_return);\n\t\t}\n\t\treturn $to_return;\n\t}",
"public static function removeNonAlphanumericCharacters( $input ) {\n if ( is_array( $input ) ) {\n $output = array();\n foreach ( $input as $data ) {\n $output[] = preg_replace('/[^A-Za-z0-9]/', '', $data);\n }\n return $output;\n } else {\n return preg_replace('/[^A-Za-z0-9]/', '', $input);\n }\n\t}",
"function removeSpecialChars($oldText)\r\n{\r\n // Se corrige os acentos com iso, taca iso\r\n if ( strlen($oldText) > strlen(utf8_decode($oldText)) )\r\n {\r\n $oldText = utf8_decode($oldText);\r\n }\r\n\r\n /*\r\n * A função \"strtr\" substitui os caracteres acentuados pelos não acentuados.\r\n * A função \"ereg_replace\" utiliza uma expressão regular que remove todos os\r\n * caracteres que não são letras, números e são diferentes de \"_\" (underscore).\r\n */\r\n $newText = preg_replace('[^a-zA-Z0-9_-.]', '', strtr($oldText, 'áàãâéêíóôõúüçÁÀÃÂÉÊÍÓÔÕÚÜÇ ', 'aaaaeeiooouucAAAAEEIOOOUUC_'));\r\n\r\n if ( !(strlen($newText) > 0) )\r\n {\r\n $newText = 'nome_invalido-'.getRandomNumbers().getRandomNumbers();\r\n }\r\n\r\n return $newText;\r\n}",
"function simpleCleanInput($input){\n\t\tif(!is_null($input)){\n\t\t\t$value = $input;\n\t\t\t$value = @strip_tags($value);\t\n\t\t\t$value = @stripslashes($value);\n\t\t\t$value = trim($value);\n\t\t\tif(!empty($value)){\n\t\t\t\treturn $value;\n\t\t\t}\n\t\t\telse{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public function filter_input($var){\n $var = trim($var);\n return $var = filter_var($var,FILTER_SANITIZE_SPECIAL_CHARS);\n }",
"function sanitize($input) {\n return htmlspecialchars(strip_tags(trim($input)));\n }",
"function cleanData($data){\n\t\t$data = trim($data);\n\t\t$data = stripslashes($data);\n\t\t$data = htmlspecialchars($data);\n\t\treturn $data;\n\t}",
"function tidy_repair_string($data, $config = null, $encoding = null) {}",
"function sanitize(){\r\n\t\t $outar = Array();\r\n \t $arg_list = func_get_args();\r\n\t\t foreach($arg_list[0] as $key => $value){\r\n\t\t\t\t $data = $value;\r\n\t\t\t\t $data = PREG_REPLACE(\"/[^0-9a-zA-Z]/i\", '', $data);\r\n\t\t\t\t array_push($outar,$data);\r\n\t\t }\r\n\t\treturn $outar;\r\n\t }",
"protected function cleanStr($str) {\n\t\t$str = str_replace(array(\"\\r\\n\", \"\\r\", \"\\n\"), ' ', trim($str)); \n\t\tif(strlen($str) > $this->maxLineLength) $str = substr($str, 0, $this->maxLineLength); \n\t\tif(strpos($str, ' ^+') !== false) $str = str_replace(' ^=', ' ^ +', $str); // disallowed sequence\n\t\treturn $str; \t\n\t}",
"function cws_clean( $string ) {\n\t$string = str_replace( array( '[\\', \\']' ), '', $string);\n\t$string = preg_replace( '/\\[.*\\]/U', '', $string );\n\t$string = preg_replace( '/&(amp;)?#?[a-z0-9]+;/i', '-', $string );\n\t$string = htmlentities( $string, ENT_COMPAT, 'utf-8' );\n\t$string = preg_replace( '/&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);/i', '\\\\1', $string );\n\t$string = preg_replace( array('/[^a-z0-9]/i', '/[-]+/') , '-', $string );\n\n\treturn strtolower( trim( $string, '-' ) );\n}",
"function clearUserInputs($data){\r\n $data = trim($data);\r\n $data = stripslashes($data);\r\n $data = htmlspecialchars($data);\r\n return $data;\r\n}",
"function fsl_scrub($string){\n \n $xss = new xss_filter();\n $string = $xss->filter_it($string); \n return $string;\n}",
"public static function sanitize($input) {\n $s = $input;\n \n # Replace \" with \"\";\n $s = str_replace('\"', '\"\"', $s);\n \n return $s;\n }",
"function sanitize($name)\n {\n return preg_replace('/[^A-Za-z0-9\\-]/', '', $name);\n }",
"function my_filter($string, $regex_chars)\n{\n for ($i=0; $i<strlen($regex_chars); $i++)\n {\n $char = substr($regex_chars, $i, 1);\n $string = str_replace($char, '', $string);\n// echo $string . '<br>';\n }\n return $string;\n}",
"function sanitize_input($data)\n {\n $data = trim($data); //remove whitespaces \n $data = stripslashes($data); //such as '\n $data = htmlspecialchars($data); //such as >,<&\n return $data;\n }",
"function clean_form_input($form_data){\n\t$temp = str_ireplace(\",\",\"@\", $form_data);\n\t$temp = str_ireplace(\"\\\"\",\"|\", $temp); \n\t$temp = str_ireplace(\"<\", \"$\", $temp);\n\t$temp = str_ireplace(\">\", \"?\", $temp);\n return $temp;\n}",
"function filter($data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n return $data;\n}",
"function clean($data){\n\t\t$this->data = $data;\n\t\t$data = trim($data);\n\t\t$data = stripcslashes($data);\n\t\t$data = htmlspecialchars($data);\n\t\treturn $data;\n\t}",
"function Strip($value)\n{\n\t$value = StripGPC($value);\n\t$value = str_replace(\"\\\"\",\"'\",$value);\n\t$value = preg_replace('/[[:cntrl:][:space:]]+/',\" \",$value);\t// zap all control chars and multiple blanks\n\treturn ($value);\n}",
"function filter_any_data($data){\n\t\t\t$data = trim($data);\n\t\t\t$data = stripslashes($data);\n\t\t\t$data = htmlspecialchars($data);\n\t\t\treturn $data;\n\t\t}"
] | [
"0.74892014",
"0.7423281",
"0.740179",
"0.740179",
"0.7243291",
"0.7222329",
"0.7218614",
"0.71814764",
"0.71779615",
"0.71224767",
"0.7116631",
"0.71158797",
"0.70891815",
"0.7013357",
"0.69831806",
"0.69817287",
"0.6974286",
"0.69566685",
"0.69057447",
"0.6880208",
"0.68721724",
"0.68683636",
"0.6864025",
"0.6861782",
"0.6848873",
"0.6813411",
"0.6803677",
"0.68009585",
"0.68009585",
"0.68009585",
"0.6794225",
"0.67878515",
"0.677654",
"0.6775939",
"0.6767731",
"0.6763802",
"0.6752085",
"0.67496634",
"0.67423636",
"0.67391825",
"0.6737333",
"0.6729668",
"0.67280895",
"0.67277646",
"0.67119485",
"0.6706243",
"0.670375",
"0.66911596",
"0.6687801",
"0.66853344",
"0.6677008",
"0.66692597",
"0.6662137",
"0.66616124",
"0.6657357",
"0.6653213",
"0.6652103",
"0.66464275",
"0.6644439",
"0.6644439",
"0.662959",
"0.6628493",
"0.6624401",
"0.6618972",
"0.66157067",
"0.6615677",
"0.6611478",
"0.66046196",
"0.6599233",
"0.65934277",
"0.659312",
"0.659312",
"0.6592676",
"0.6588741",
"0.6581304",
"0.65778714",
"0.6574972",
"0.6566183",
"0.65429765",
"0.65399194",
"0.65396464",
"0.6537377",
"0.6534839",
"0.65215194",
"0.6517133",
"0.6513782",
"0.65026224",
"0.6502403",
"0.649789",
"0.6495783",
"0.64885706",
"0.6487548",
"0.6483365",
"0.647308",
"0.6472417",
"0.6472241",
"0.64697653",
"0.6464566",
"0.6460905",
"0.64544404"
] | 0.6688033 | 48 |
Get the cas general. | public function getCasGeneral() {
return $this->casGeneral;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function GetGeneral(){\r\r\n\t\treturn self::$general;\r\r\n\t}",
"public function setCasGeneral($casGeneral) {\n $this->casGeneral = $casGeneral;\n return $this;\n }",
"public function getCasKonec()\n {\n return $this->cas_konec;\n }",
"public function getProdGeneral()\n {\n return $this->prod_general;\n }",
"public function casos()\n\t{\n\t\treturn $this->hasOne('App\\Caso');\n\t}",
"public function getGiroComercial()\n {\n return $this->giroComercial;\n }",
"public function getGeneralInformation() {\n\t\tif (!$this->hasDetails) {\n\t\t\t$this->injectDetails();\n\t\t}\n\t\treturn $this->generalInformation;\n\t}",
"public function get_comercial(){\n\t\t\treturn $this->comercial;\n\t\t}",
"public static function getGeneralConfig(){\n\t\tif(CoreConfig::$config == null){\n\t\t\tCoreConfig::getConfig();\n\t\t\tCoreConfig::$config['Core']['url'] = CoreConfig::getUrl();\n\t\t\tCoreConfig::$config['Core']['localUrl'] = CoreConfig::getLocalUrl();\n\t\t}\n\t\tif(!empty(CoreConfig::$config['Core'])) {\n\n\t\t\treturn CoreConfig::$config['Core'];\n\t\t} else {\n\t\t\treturn array();\n\t\t}\n\t}",
"public function getEstadoCaso(){\r\n\t\t\treturn $this->estadoCaso;\r\n\t\t}",
"public function getCLSa() {\n\t\treturn $this->clsa;\n\t}",
"public function getCertificationSociale() {\n return $this->certificationSociale;\n }",
"public static function getUser() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::getUser();\t\t\n\t}",
"public function getCardanoSpecific()\n {\n return $this->cardano_specific;\n }",
"function getClinicalServices() {\n return array(self::MEDONC => self::MEDONC);\n }",
"private function cas_init()\n {\n session_name((isset($this->config[ 'session_name' ]) ? $this->config[ 'session_name' ] : 'CASAuth'));\n // initialize CAS client\n $this->configureCasClient();\n $this->configureSslValidation();\n $this->detect_authentication();\n\n // set service URL for authorization with CAS server\n //\\phpCAS::setFixedServiceURL();\n if ( ! empty($this->config[ 'cas_service' ])) {\n phpCAS::allowProxyChain(new \\CAS_ProxyChain_Any);\n }\n // set login and logout URLs of the CAS server\n phpCAS::setServerLoginURL($this->config[ 'cas_login_url' ]);\n phpCAS::setServerLogoutURL($this->config[ 'cas_logout_url' ]);\n }",
"function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('DataObjects_Estudiantegeneral',$k,$v); }",
"public function getMontantGeneral() {\n return $this->montantGeneral;\n }",
"public function getSectoreconomicoAccion()\n\t{\n\t\treturn $this->sectoreconomicoAccion;\n\t}",
"function getContact()\n\t{\n\t\treturn $this->Info['Contact'];\n\t}",
"public function getBasicDocumentInfo()\n {\n return $this->get(self::BASICDOCUMENTINFO);\n }",
"function get_rad_general($conn, $header_id) {\n\t$query_general = \"SELECT * FROM rad_general WHERE header_id = \" . $header_id;\n\t$gen = exec_query($conn, $query_general);\n\tif (count($gen) > 0) {\n\t\treturn $gen[0];\n\t} else {\n\t\treturn NULL;\n\t}\n}",
"public function getSac()\n {\n return $this->sac;\n }",
"public function getCategoriaPrincipal(){\n return $this->categoriaPrincipal;\n }",
"public function getCasMsg()\n {\n return $this->casErrorCode;\n }",
"public function getClient()\n {\n $options = array(\n 'hostname' => 'login.unl.edu',\n 'port' => 443,\n 'uri' => 'cas'\n );\n \n $protocol = new \\SimpleCAS_Protocol_Version2($options);\n\n /**\n * We need to customize the request to use CURL because \n * php5.4 and ubuntu systems can't verify ssl connections \n * without specifying a CApath. CURL does this automatically\n * based on the system, but openssl does not.\n * \n * It looks like this will be fixed in php 5.6\n * https://wiki.php.net/rfc/tls-peer-verification\n */\n $request = new \\HTTP_Request2();\n $request->setConfig('adapter', 'HTTP_Request2_Adapter_Curl');\n $protocol->setRequest($request);\n\n return \\SimpleCAS::client($protocol);\n }",
"function get_clase_vista()\n {\n switch ($this->accion) {\n case 'index': \n case 'mostrar_clases': \n case 'filtrar': return 'vista_materias';\n case 'planilla': return 'vista_planilla';\n case 'resumen': return 'vista_resumen';\n case 'generar_pdf': return 'vista_planilla';\n default: return 'vista_edicion_asistencias';\n }\n }",
"public function checkCitatbCasos()\n {\n $sql = \"SELECT cs.id_cita FROM citas c INNER JOIN casos cs ON c.id = cs.id_cita INNER JOIN detalle_solicitud d ON c.id_detalle = d.id_detalle WHERE d.id_detalle = ?\";\n $params = array($this->id_detalle);\n return Database::getRow($sql, $params);\n }",
"public function getSectoreconomicofecha()\n\t{\n\t\treturn $this->sectoreconomicofecha;\n\t}",
"public function GetGeneralType() {\n\t\tif (in_array($this->GetType(),array(PROFILE_COMPANY,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_SUMMERCAMP, \n\t\t\t\t\t\t\t\t\t\t\tPROFILE_VOLUNTEER_PROJECT, \n\t\t\t\t\t\t\t\t\t\t\tPROFILE_SEASONALJOBS, \n\t\t\t\t\t\t\t\t\t\t\tPROFILE_TEACHING))) {\n\t\t\treturn PROFILE_COMPANY;\n\t\t}\n\t\tif (in_array($this->GetType(),array(PROFILE_PLACEMENT,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_VOLUNTEER,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_TOUR,\n\t\t\t\t\t\t\t\t\t\t\tPROFILE_JOB))) {\r\n\t\t\treturn PROFILE_PLACEMENT;\r\n\t\t}\r\n\t\t\n\t}",
"public function getContractorStatics()\n {\n return $this->get(self::contractorstatics);\n }",
"public function getCasParticulier() {\n return $this->casParticulier;\n }",
"public function general()\n {\n if ( ! auth()->guard('admin')->user()->can('access general ' . $this->table)) {\n return redirect()->route('admin.setting.index')->with('alert-danger', __($this->noPermission));\n }\n $view = [\n 'back' => route('admin.setting.index'),\n 'title' => __('General Settings'),\n 'breadcrumbs' => [\n route('admin.setting.index') => __('Setting'),\n route('admin.setting.general.index') => __('General'),\n null => __('Edit')\n ],\n 'subtitle' => __('All About General Settings'),\n 'description' => __('You can adjust all general settings here'),\n 'navs' => $this->settings,\n 'setting' => $this->settings->where('slug', 'general')->first(),\n ];\n return view('admin.setting.general.index', $view);\n }",
"public function getCdCaixa()\n {\n return $this->cd_caixa;\n }",
"public function getCARGO()\r\n {\r\n return $this->CARGO;\r\n }",
"public function getCasStart()\n {\n return $this->cas_start;\n }",
"function getDocumentsGeneralParentCategories() {\n\n\t\t//solo se usan las categorias del modulo documentos\n\t\t//no se usan generales\n\t\tif (!DocumentPeer::usesGlobalCategories())\n\t\t\treturn array();\n\n\t\t$criteria = new Criteria();\n\n\t\t$criteria->addJoin(UserGroupPeer::GROUPID,GroupCategoryPeer::GROUPID,Criteria::INNER_JOIN);\n\t\t$criteria->addJoin(GroupCategoryPeer::CATEGORYID,CategoryPeer::ID,Criteria::INNER_JOIN);\n\t\t$criteria->add(UserGroupPeer::USERID,$this->getId());\n\t\t$criteria->add(CategoryPeer::ACTIVE,1);\n\t\t$criteria->add(CategoryPeer::PARENTID,0);\n\t\t$criteria->add(CategoryPeer::MODULE,'');\n\n\t\t$result = CategoryPeer::doSelect($criteria);\n\t\treturn $result;\n\n\t}",
"public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }",
"public function getCurrentPrimaryContact(){\n\t\t$author = Author::select()->where('is_principal_contact', 1)->first();\n\n\t\treturn $author;\n\t}",
"public function getCLAVE()\n {\n return $this->CLAVE;\n }",
"public function getRefNafSousClasse()\n {\n return $this->refnafsousclasse;\n }",
"public function getC() {}",
"public function curso()\r\r\n\t{\r\r\n\t\treturn $this->has_one('Curso');\r\r\n\t}",
"public function getCompte()\n {\n return $this->compte;\n }",
"public function get_authenty()\r\n {\r\n //right column defines how to treat each role for guessing the owner of the resource\r\n $roles=array(\r\n 'custodian' => 'owner',\r\n 'resourceProvider' => 'distributor',\r\n 'owner' => 'owner',\r\n 'user' => 'distributor',\r\n 'distributor' => 'distributor',\r\n 'originator' => 'owner',\r\n 'pointOfContact' => 'owner',\r\n 'principalInvestigator' => 'owner',\r\n 'processor' => 'owner',\r\n 'pubisher' => 'owner',\r\n 'author' => 'owner' \r\n );\r\n \r\n \r\n $countries=array();\r\n\r\n //check the ident_contact\r\n $contacts=$this->get_key_value('ident_contacts');\r\n \r\n if ($contacts)\r\n {\r\n foreach($contacts as $contact)\r\n {\r\n $role=NULL;\r\n if (array_key_exists($contact['role'],$roles)){\r\n $role=$roles[$contact['role']];\r\n }\r\n \r\n if ($role=='owner' && isset($contact['org_name'])) {\r\n return $contact['org_name'];\r\n }\r\n }\r\n }\r\n \r\n $meta_contacts=$this->get_key_value('metadata_contacts');\r\n \r\n if ($meta_contacts)\r\n {\r\n foreach($meta_contacts as $contact)\r\n {\r\n if (array_key_exists($contact['role'],$roles)){\r\n $role=$roles[$contact['role']];\r\n }\r\n \r\n if ($role=='owner' && isset($contact['org_name'])) {\r\n return $contact['org_name'];\r\n }\r\n }\r\n }\r\n \r\n return NULL;\r\n }",
"public function cercaReferti() {\r\n $fReferto = USingleton::getInstance(\"FReferto\");\r\n return $fReferto->cercaRefertiClinica($this->getPartitaIVAClinica());\r\n }",
"function getCostPersonalTagCompany(){\n\treturn campo('config_system','id','1','cost_company_personal_tag');\n}",
"function getCostPersonalTagCompany(){\n\treturn campo('config_system','id','1','cost_company_personal_tag');\n}",
"public function getRefComercial() : RefComercial{\n return $this->ref_comercial->toArray();\n }",
"public function getCsoi()\n {\n return $this->csoi;\n }",
"public function getAuth() {\r\n\t\treturn $this->_autenticacao->getIdentity();\r\n\t}",
"public function getCMSConfig() {\n\t\t$retObj = new \\stdClass();\n\t\t$retObj -> filesettings = $this -> getFileSettings();\n\t\t$retObj -> filesettings -> filepath = '';\n\t\t$retObj -> general = (object)array('sitename' => SITENAME,\n\t\t\t\t'siteurl' => BASEURL,\n\t\t\t\t'cmsfolder' => CMSFOLDER);\n\t\tif(defined('GOOGLEMAPSAPIKEY'))\n\t\t\t$retObj -> general -> googlemapsapikey = GOOGLEMAPSAPIKEY;\n\t\tif(defined('MAPTYPE'))\n\t\t\t$retObj -> general -> maptype = MAPTYPE;\n\t\tif(defined('HEADERBAR'))\n\t\t\t$retObj -> general -> headerbar = HEADERBAR;\n\t\tif(defined('ADDITIONALMODULES'))\n\t\t\t$retObj -> general -> additionalmodules = explode(',', ADDITIONALMODULES);\n\n\t\t$retObj -> general -> logo = LOGO;\n\t\t$retObj -> general -> useprefix = (USEPREFIX);\n\t\t$retObj -> general -> languages = explode(',', AVAILABLELANG);\n\n\t\t$retObj -> columns = (object) array('maps' => Config::$mapsColumns, 'page' => Config::$pageColumns, 'user' => Config::$userColumns, 'calendar' => Config::$calendarColumns, 'element' => Config::$elementColumns);\n\n\t\tif(defined('ADDITIONALOVERVIEWFIELDS') && ADDITIONALOVERVIEWFIELDS != null) {\n\t\t\t$retObj -> general -> overviewfields = explode(',', ADDITIONALOVERVIEWFIELDS);\n\t\t}\n\t\treturn $retObj;\n\t}",
"public function get_categories()\n {\n return ['general'];\n }",
"public function get_categories()\n {\n return ['general'];\n }",
"public static function getCompteur() {\n return self::$_compteur;\n }",
"public function getCnational()\n {\n return $this->cnational;\n }",
"function getCostAccountCompany(){\n\treturn campo('config_system','id','1','cost_account_company');\n}",
"function getCostAccountCompany(){\n\treturn campo('config_system','id','1','cost_account_company');\n}",
"public function getTipoCompra(){\n return $this->iTipoCompra;\n }",
"public function get_categories() {\n\t\treturn array( 'general' );\n\t}",
"public function getIsCa()\n {\n return $this->is_ca;\n }",
"public static function forceAuthentication() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::forceAuthentication();\t\t\n\t}",
"public function getSacadoDocumento();",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}",
"public function get_categories() {\n\t\treturn [ 'general' ];\n\t}",
"public function getCoCustodio()\n\t{\n\t\treturn $this->co_custodio;\n\t}",
"public function getPcasFactory()\n {\n if (null === $this->pCasFactory) {\n $this->pCasFactory = $this->container->get('pcas.pcas_factory');\n }\n\n return $this->pCasFactory;\n }",
"public function get_categories() {\n return array ( 'general' );\n }",
"public function getColegiosidColegios()\n\t{\n\t\treturn $this->colegiosidColegios;\n\t}",
"protected function get_authority()\n {\n }",
"protected function get_authority()\n {\n }",
"function getConsiglio() {\n\t\treturn $this->soc->getConsiglio();\n\t}",
"public function getCoPerfil()\n\t{\n\t\treturn $this->co_perfil;\n\t}",
"function getDefaultContact() {\n $defaultContact = NULL;\n $opt = $this->getProperty('DEFAULT_CONTACT', '');\n if ($opt != '') {\n $defaultContact = $opt;\n }\n return $defaultContact;\n }",
"public function getSocietetierce()\n {\n return $this->societetierce;\n }",
"public function casAction()\n {\n $auth = Zend_Auth::getInstance();\n $casAdapter = $this->_getCasAdapter();\n $casAdapter->setTicket($this->_getParam('ticket'));\n \n if ($this->_getParam('logoutRequest')) {\n $casAdapter->handleLogoutRequest($this->_getParam('logoutRequest'));\n }\n \n try {\n $result = $auth->authenticate(new Unl_Auth_Adapter_Cas($casAdapter));\n } catch (Exception $e) {\n //\n }\n \n if ($result && $result->isValid()) {\n $this->_setupUser(Zend_Auth::getInstance()->getIdentity());\n } else {\n Zend_Auth::getInstance()->clearIdentity();\n if (isset($_COOKIE['unl_sso'])) {\n setcookie('unl_sso', 'fake', time() - 60*60*24, '/', '.unl.edu');\n }\n }\n \n $session = new Zend_Session_Namespace(__CLASS__);\n $this->_redirect($session->referer);\n }",
"private function getCommonUtility()\n {\n if (!isset($this->commonUtility)) {\n $this->commonUtility = new CommonUtility($this->getFamilyGraph());\n }\n \n return $this->commonUtility;\n }",
"protected function get_calendar()\n\t{\n\t\treturn $this->calendars['gregorian'];\n\t}",
"public function getCouleur()\n {\n return $this->couleur;\n }",
"function general() {\n $data['categories'] = $this->data_model->getCategories();\n //Publicidad\n $data['banners'] = $this->data_model->getBanners();\n\n $data['bannersPosition'] = $this->data_model->Banners();\n\n $data['paises'] = $this->data_model->getPaises();\n $data['moneda'] = $this->session->userdata('moneda');\n\n return $data;\n }",
"public function get_categories()\n\t{\n\t\treturn array('general');\n\t}",
"public static function getAttributes() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::getAttributes();\t\t\n\t}",
"function getCcs() {\n\t\treturn $this->getData('ccs');\n\t}",
"public function getSectoreconomicouser()\n\t{\n\t\treturn $this->sectoreconomicouser;\n\t}",
"public function getSectoreconomicocodigo()\n\t{\n\t\treturn $this->sectoreconomicocodigo;\n\t}",
"public static function getVersion() \n\t{\n\t\tacPhpCas::setReporting();\n\t\treturn phpCAS::getVersion();\t\t\n\t}",
"public function getCarrera() {\n return $this->carrera;\n }",
"public function getSACCO($id=0){\r\n\t\t$q = mysql_query(\"SELECT * from company where companyId='\".intval($id).\"'\");\r\n\t\treturn mysql_num_rows($q) > 0 ? mysql_fetch_array($q) : 0;\r\n\t\t\t\r\n\t}",
"abstract protected function getGC(): CData;",
"function get_course()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_COURSE);\r\n }",
"public function getRights()\n\t{\n\t\tglobal $user;\n\n\t\treturn $user->rights->fournisseur->commande;\n\t}",
"public function getContact()\n {\n return isset($this->contact) ? $this->contact : null;\n }",
"public function getAgenciaConta();",
"public function getPrimary();",
"abstract public function getPrimary();",
"public function getCriacao()\n {\n return $this->criacao;\n }",
"public function getCgClass()\n {\n return $this->cg_class;\n }",
"public function getCgm() {\n\n if (!empty($this->iCodigoCGM)) {\n $this->oCgm = CgmFactory::getInstanceByCgm($this->iCodigoCGM);\n }\n return $this->oCgm;\n }",
"function contact_get_option( $key = '', $default = false ) {\n\tif ( function_exists( 'cmb2_get_option' ) ) {\n\t\t// Use cmb2_get_option as it passes through some key filters.\n\t\treturn cmb2_get_option( 'woody_contact_details', $key, $default );\n\t}\n\t// Fallback to get_option if CMB2 is not loaded yet.\n\t$opts = get_option( 'woody_contact_details', $default );\n\t$val = $default;\n\tif ( 'all' == $key ) {\n\t\t$val = $opts;\n\t} elseif ( is_array( $opts ) && array_key_exists( $key, $opts ) && false !== $opts[ $key ] ) {\n\t\t$val = $opts[ $key ];\n\t}\n\treturn $val;\n}"
] | [
"0.633392",
"0.6318595",
"0.5409211",
"0.52573943",
"0.5230733",
"0.5213706",
"0.5152318",
"0.50966704",
"0.503519",
"0.5013966",
"0.4983723",
"0.49139723",
"0.49107486",
"0.49010175",
"0.48332527",
"0.48034492",
"0.4790462",
"0.4786852",
"0.47512",
"0.4750631",
"0.473891",
"0.47030815",
"0.47005838",
"0.4692318",
"0.46861342",
"0.4682534",
"0.4664267",
"0.46488628",
"0.46447587",
"0.46417183",
"0.4634967",
"0.46254414",
"0.46225083",
"0.45977902",
"0.45942363",
"0.4593782",
"0.45856285",
"0.4581139",
"0.45763233",
"0.45762596",
"0.45750776",
"0.45720866",
"0.45670363",
"0.4565106",
"0.45498028",
"0.4548821",
"0.45447522",
"0.45447522",
"0.454454",
"0.4544511",
"0.45252743",
"0.4519268",
"0.45153132",
"0.45153132",
"0.4514516",
"0.4508335",
"0.4506595",
"0.4506595",
"0.44999203",
"0.4489291",
"0.4488482",
"0.44840837",
"0.44837493",
"0.44820097",
"0.44820097",
"0.44820097",
"0.4477593",
"0.4469675",
"0.4468441",
"0.44670382",
"0.44624174",
"0.44619784",
"0.44606727",
"0.44516766",
"0.44492763",
"0.44406316",
"0.44399107",
"0.44393596",
"0.44387835",
"0.44385836",
"0.44332346",
"0.44319504",
"0.44314712",
"0.44282335",
"0.4416823",
"0.43962726",
"0.43952847",
"0.43940106",
"0.43886873",
"0.43844074",
"0.43766892",
"0.43723845",
"0.43687826",
"0.4367884",
"0.43665785",
"0.43655363",
"0.43620008",
"0.4341961",
"0.43396607",
"0.43366942"
] | 0.8459706 | 0 |
Get the cas particulier. | public function getCasParticulier() {
return $this->casParticulier;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCasGeneral() {\n return $this->casGeneral;\n }",
"public function getCompte()\n {\n return $this->compte;\n }",
"public function getCouleur()\n {\n return $this->couleur;\n }",
"public function getCasKonec()\n {\n return $this->cas_konec;\n }",
"public function getRefNafSousClasse()\n {\n return $this->refnafsousclasse;\n }",
"public function casos()\n\t{\n\t\treturn $this->hasOne('App\\Caso');\n\t}",
"public function getCesta()\n {\n return $this->cesta;\n }",
"public function getCesta()\n {\n return $this->cesta;\n }",
"public function getCartouche()\n {\n return $this->hasOne(Cartouche::className(), ['diffuseur_id' => 'id']);\n }",
"public function cercaReferti() {\r\n $fReferto = USingleton::getInstance(\"FReferto\");\r\n return $fReferto->cercaRefertiClinica($this->getPartitaIVAClinica());\r\n }",
"public function getCadence(){\n return $this->cadence;\n }",
"public function getCareer();",
"public function getCorVeiculo()\n {\n return $this->corVeiculo;\n }",
"public function getCriado()\n {\n return $this->criado;\n }",
"public function getCriado()\n {\n return $this->criado;\n }",
"public function getCedente() {\n return $this->oCedente;\n }",
"public function getCarrito()\n {\n return $this->carrito;\n }",
"public function getCoForense()\n\t{\n\t\treturn $this->co_forense;\n\t}",
"public function getSocietetierce()\n {\n return $this->societetierce;\n }",
"public function get_comercial(){\n\t\t\treturn $this->comercial;\n\t\t}",
"public function getIdClase()\n {\n return $this->idClase;\n }",
"public function getCoParticipante()\n\t{\n\t\treturn $this->co_participante;\n\t}",
"public function getCoInformeForense()\n\t{\n\t\treturn $this->co_informe_forense;\n\t}",
"public function getCasStart()\n {\n return $this->cas_start;\n }",
"public function curso()\r\r\n\t{\r\r\n\t\treturn $this->has_one('Curso');\r\r\n\t}",
"public function getCalle()\n {\n return $this->calle;\n }",
"public function getSectoreconomicofecha()\n\t{\n\t\treturn $this->sectoreconomicofecha;\n\t}",
"public function get_course()\n {\n return $this->get_foreign_property(self::FOREIGN_PROPERTY_COURSE, Course::class_name());\n }",
"public static function getCompteur() {\n return self::$_compteur;\n }",
"public function getCarrera() {\n return $this->carrera;\n }",
"public function get_company() \n {\n return $this->company;\n }",
"public function getFabricante()\n\t{\n\t\treturn $this->fabricante;\n\t}",
"public function getCurrentPrimaryContact(){\n\t\t$author = Author::select()->where('is_principal_contact', 1)->first();\n\n\t\treturn $author;\n\t}",
"public function getCertificationSociale() {\n return $this->certificationSociale;\n }",
"public function getCompany()\n {\n return isset($this->company) ? $this->company : null;\n }",
"public function getCorreo()\n {\n return $this->Correo;\n }",
"public function getC()\n {\n return $this->C;\n }",
"public function getCelular()\n\t{\n\t\treturn $this->celular;\n\t}",
"public function getCALLE()\r\n {\r\n return $this->CALLE;\r\n }",
"public function getCorrelativo()\r\n\t\t{\r\n\t\t\treturn $this->_correlativo;\r\n\t\t}",
"public function getCoInformeIncidente()\n\t{\n\t\treturn $this->co_informe_incidente;\n\t}",
"function getRubrique() {\n\t\t$faux_array = array_values($this->getParents());\n\t\t$rubrique = $faux_array[0];\n\t\tif ($rubrique instanceof Rubrique) {\n\t\t\treturn $rubrique;\n\t\t} else {\n\t\t\tdie(\"Le parent de l'article n'est pas une Rubrique !\");\n\t\t}\n\t}",
"public function getClasse()\n {\n return $this->classe;\n }",
"public function getCorreo()\n {\n return $this->correo;\n }",
"public function getCorreo()\n {\n return $this->correo;\n }",
"public function getSac()\n {\n return $this->sac;\n }",
"public function getCategoriaPrincipal(){\n return $this->categoriaPrincipal;\n }",
"public function getContact()\n {\n return isset($this->contact) ? $this->contact : null;\n }",
"public function getCorreo()\n {\n return $this->Correo;\n }",
"public function getAccidentCause()\n {\n return $this->accidentCause;\n }",
"public function getCriacao()\n {\n return $this->criacao;\n }",
"function get_course()\r\n {\r\n return $this->get_default_property(self :: PROPERTY_COURSE);\r\n }",
"public function getCoEdificio()\n\t{\n\t\treturn $this->co_edificio;\n\t}",
"function getCC(){\n\t\t\treturn $this->cc;\n\t\t}",
"public function get_id_subclase(){ \n return (isset($this->_id_subclase)) ? $this->_id_subclase: null;\n}",
"public function getIdCompra()\r\n {\r\n return $this->idCompra;\r\n }",
"public static function getCurrentClinic() {\n $user = Auth::user();\n\n return $user->clinic;\n }",
"public function getCep()\n\t{\t\n\t\t/**\n\t\t * retorno Cep cliente\n\t\t * @return Cep\n\t\t */\n\t\treturn $this->cep;\n\t}",
"public function getChien()\n {\n return $this->chien;\n }",
"public function getContact()\n {\n return $this->contact;\n }",
"public function getCLSa() {\n\t\treturn $this->clsa;\n\t}",
"public function getNao_Circulante(){\n\t\t$this->setNao_Circulante();\n\t\t\n\t\treturn $this->Nao_Circulante;\t\n\t}",
"public function getCirculante_A(){\n\t\t$this->setCirculante_A();\n\t\t\n\t\treturn $this->Circulante_A;\t\n\t}",
"public function getCompany() {\n if(!$this->department || !$this->department->department || !$this->department->department->division || !$this->department->department->division->company)\n return false;\n\n return $this->department->department->division->company;\n }",
"public function getId_cuisinier() {\r\n\t\treturn $this->id_cuisinier;\r\n\t}",
"public function getCompany()\n {\n return $this->company;\n }",
"public function get_cidade()\n {\n // loads the associated object\n if (empty($this->cidade))\n $this->cidade = new Cidade($this->cidade_id);\n \n // returns the associated object\n return $this->cidade;\n }",
"public function getCible()\n {\n return $this->cible;\n }",
"function getCountry()\n {\n global $warn;\n\n if ($this->country)\n return $this->country;\n else\n if (array_key_exists('cc', $this->extras))\n {\n $cc = $this->extras['cc'];\n $country = new Country(array('cc' => $cc));\n if ($country->isExisting())\n {\n $this->country = $country; // save\n return $this->country;\n }\n else\n {\n unset($this->extras['cc']);\n }\n }\n return null;\n }",
"public function getSouscategorie()\n {\n $oSouscategorie = CSouscategorie::getById($this->souscategorie_id);\n return $oSouscategorie;\n }",
"public function getCep() {\n return $this->sCep;\n }",
"public function get_courier( $code, $as_array = false ) {\n\t\t$couriers = $this->get_couriers( 'all', 'all', $as_array );\n\n\t\tif ( isset( $couriers[ $code ] ) ) {\n\t\t\treturn $couriers[ $code ];\n\t\t}\n\n\t\treturn false;\n\t}",
"public function getChallenger()\n {\n return $this->get(self::_CHALLENGER);\n }",
"public function getCARGO()\r\n {\r\n return $this->CARGO;\r\n }",
"public function getChallenger()\n {\n return $this->get(self::_CHALLENGER);\n }",
"public function getChallenger()\n {\n return $this->get(self::_CHALLENGER);\n }",
"public function getCustref()\n {\n return $this->custref;\n }",
"public function getCANCER()\r\n {\r\n return $this->CANCER;\r\n }",
"public function getC() {}",
"function &getPrimaryInvestigator() {\n foreach ($this->investigators as $investigator) {\n if ($investigator->getPrimaryContact() == true) {\n return $investigator;\n }\n }\n\t\treturn null;\n\t}",
"public function getCoCustodio()\n\t{\n\t\treturn $this->co_custodio;\n\t}",
"public function getContact()\n {\n return $this->contact;\n }",
"public function getContact()\n {\n return $this->contact;\n }",
"public function getContact()\n {\n return $this->contact;\n }",
"function get_Category()\n {\n try {\n return $this->mCategory;\n }catch(Exception $e){\n $this->error->throwException('303', 'No s`ha pogut retornar la informació', $e);\n }\n }",
"public function getIntituleCompte() {\n return $this->intituleCompte;\n }",
"public function getCdCaixa()\n {\n return $this->cd_caixa;\n }",
"public function getCapitaleSocialeClinica() {\r\n return $this->_capitaleSociale;\r\n }",
"public function getCustpo()\n {\n return $this->custpo;\n }",
"public function getSor()\n {\n return $this->sor;\n }",
"public function getCreditActief() {\n\t\treturn $this->creditActief;\n\t}",
"public function getSectoreconomicouser()\n\t{\n\t\treturn $this->sectoreconomicouser;\n\t}",
"function getSite() {\n\t\t$faux_array = array_values($this->getParents());\n\t\t$site = $faux_array[0];\n\t\tif ($site instanceof Site) {\n\t\t\treturn $site;\n\t\t} else {\n\t\t\tdie(\"Le parent de la rubrique n'est pas un Site !\");\n\t\t}\n\t}",
"public function getcliente()\r\n {\r\n return $this->cliente;\r\n }",
"public function get_superficie(){ return $this->_superficie;}",
"function getAcademy(){\r\n return $this->academy;\r\n }",
"public function returnContact(){\n return $this->contact->getContact(); //Chama a função getContact do objeto contact\n }",
"public function getCreditCard()\n\t{\n\t\treturn $this->credit_card;\n\t}",
"public function checkCitatbCasos()\n {\n $sql = \"SELECT cs.id_cita FROM citas c INNER JOIN casos cs ON c.id = cs.id_cita INNER JOIN detalle_solicitud d ON c.id_detalle = d.id_detalle WHERE d.id_detalle = ?\";\n $params = array($this->id_detalle);\n return Database::getRow($sql, $params);\n }",
"public function getCsoi()\n {\n return $this->csoi;\n }"
] | [
"0.6405096",
"0.59782565",
"0.5962028",
"0.5926583",
"0.5914043",
"0.5906814",
"0.58201253",
"0.58201253",
"0.57620597",
"0.5753108",
"0.5727857",
"0.57263404",
"0.57148445",
"0.5708429",
"0.5708429",
"0.5687175",
"0.56838506",
"0.5646992",
"0.56384844",
"0.56322414",
"0.5566346",
"0.55652314",
"0.55516374",
"0.55510575",
"0.55479455",
"0.55475235",
"0.5536446",
"0.55323297",
"0.5530773",
"0.5528645",
"0.552516",
"0.55059266",
"0.54960763",
"0.54946977",
"0.548426",
"0.5481197",
"0.54731494",
"0.54718876",
"0.54687595",
"0.54671305",
"0.546528",
"0.5460354",
"0.5454558",
"0.5440334",
"0.5440334",
"0.5437184",
"0.54300153",
"0.5429732",
"0.541967",
"0.5408542",
"0.5389962",
"0.5382889",
"0.5378727",
"0.535329",
"0.5353143",
"0.53452474",
"0.5343542",
"0.5340716",
"0.5337921",
"0.5329318",
"0.5326101",
"0.53244424",
"0.5321682",
"0.53207165",
"0.5318276",
"0.5312292",
"0.53070354",
"0.5307033",
"0.53060335",
"0.53054345",
"0.5304044",
"0.53024256",
"0.52998525",
"0.5299714",
"0.52993995",
"0.52993995",
"0.52978057",
"0.5286439",
"0.52798533",
"0.5279123",
"0.52708757",
"0.5266489",
"0.5266489",
"0.5266489",
"0.52637976",
"0.525872",
"0.52525824",
"0.52463686",
"0.52459174",
"0.52412105",
"0.5237955",
"0.52379215",
"0.52369803",
"0.5232307",
"0.5228258",
"0.52241254",
"0.522326",
"0.52218205",
"0.52195996",
"0.5208573"
] | 0.7487219 | 0 |
Get the categorie sal. | public function getCategorieSal() {
return $this->categorieSal;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCategoria()\n {\n return $this->categoria;\n }",
"public function getCategoria()\n {\n return $this->categoria;\n }",
"public function getCategoria()\n {\n return $this->categoria;\n }",
"public function get_categorie(){\n\t\treturn $this->search_categorie;\n\t}",
"public function getCategorie()\n {\n return $this->categorie;\n }",
"function getCodigoCategoria()\n {\n return $this->CodigoCategoria;\n }",
"public function get_categoria() {\n $conectar=parent::conexion();\n parent::set_names();\n $sql=\"SELECT * FROM tm_categoria WHERE est=1\";\n $sql=$conectar->prepare($sql);\n $sql->execute();\n // IMPORTANTE AGREGARLE EL PDO::FETCH_ASSOC PARA QUE HAGA BIEN LA CONSULTA\n return $resultado=$sql->fetchAll(PDO::FETCH_ASSOC);\n\n }",
"public function getCategoria()\n {\n return \"Cliente com Risco\";\n }",
"public function getCategory() {}",
"function getCategorias(){\r\n $conector = new Conector();\r\n $banco = new BancoCategoria();\r\n return $banco->getCategorias($conector->getConexao());\r\n }",
"public function getCategoria()\n {\n return \"Cliente com alta credibilidade\";\n }",
"public function getCategoria() {\n $query = $this->db->get('tb_categoria');\n //Retorna em formato de array\n return $query->result();\n }",
"public function getCategory();",
"public function getCategory();",
"public function get_tipo_cat()\n { \n \n \n $this->db->select(\"distinct(cve_tipo_categoria), nom_tipo_cat\");\n\n $this->db->order_by('nom_tipo_cat','asc');\n $query = $this->db->get('ccategoria');\n \n $data_cat=0;\n $data_cat = array();\n foreach ($query->result_array() as $row)\n {\n \n $data_cat[$row['cve_tipo_categoria']] = $row['nom_tipo_cat']; \n }\n $query->free_result();\n\n return $data_cat; \n\n }",
"public function getCodeStatutCateg() {\n return $this->codeStatutCateg;\n }",
"public function getCategory(): string;",
"public function getCategory()\n {\n }",
"public function getIdCategoria()\n {\n return $this->id_categoria;\n }",
"public function getIdCategoria()\n {\n return $this->id_categoria;\n }",
"public function getCat()\n {\n $query = $this->db->get('categories');\n\n return $query->result();\n }",
"public function getIdcategoria()\n {\n return $this->idcategoria;\n }",
"public function cargarcategoria()\n {\n \treturn Cont_Categoria::whereRaw(\" jerarquia ~ '*{1}' \")\n \t\t\t\t\t\t\t->orderBy('jerarquia', 'asc')\n \t\t\t\t\t\t\t->get();\n \t;\t\n }",
"public function getCategorias(){\n\t\t$sql = \"SELECT * FROM tipo_producto ORDER BY nombre_tipo_prod\";\n\t\t$params = array(null);\n\t\treturn Database::getRows($sql, $params);\n\t}",
"public function getSouscategorie()\n {\n $oSouscategorie = CSouscategorie::getById($this->souscategorie_id);\n return $oSouscategorie;\n }",
"public function get_kategori()\n\t{\n\t\t$hasil = $this->db->get(\"kategori\")->result();\n\t\treturn $hasil;\n\t}",
"public function getCategoria_id()\n {\n return $this->categoria_id;\n }",
"public function getIdKategoria() {\n return $this->idKategoria;\n }",
"public function getCategoria()\n {\n return \"Cliente padrão\";\n }",
"public function getCategory(){\n\t\t$stmt = $this->bdd->prepare('SELECT * FROM categorie');\n\t\t$stmt->execute();\n\t\treturn $stmt->fetchAll();\n\t}",
"public function HM_CategoCuentas()\n {\n }",
"public function getId_categorie()\n {\n return $this->id_categorie;\n }",
"function getKategori() {\n return $this->db->get('kategori_kelas')->result();\n }",
"public function getCategorie()\n {\n $oCategorie = CCategorie::getById($this->categorie_id);\n return $oCategorie;\n }",
"function get_Category()\n {\n try {\n return $this->mCategory;\n }catch(Exception $e){\n $this->error->throwException('303', 'No s`ha pogut retornar la informació', $e);\n }\n }",
"public function get_category()\n {\n return 'Fun and Games';\n }",
"public function get_category()\n {\n return 'Fun and Games';\n }",
"public function get_category()\n {\n return 'Fun and Games';\n }",
"function categories(){\n return $this->db->get($this->categorie)->result();\n }",
"public function get_categorieId()\n {\n return $this->_categorieId;\n }",
"function afficherCategories2(){\n\t\t$sql=\"SElECT nom From categorie\";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}",
"public function get(){\n\n $tabla = \"categorias\";\n \n $respuesta = ModeloCategorias::get($tabla);\n \n return $respuesta; \n }",
"public function getCategoriaPrincipal(){\n return $this->categoriaPrincipal;\n }",
"public function getKategori()\n {\n $query = \"SELECT `tb_barang`.*, `tb_category`.`category`\n FROM `tb_barang` JOIN `tb_category`\n ON `tb_category`.`category` = `tb_barang`.`kategori`\n ORDER BY `tb_barang`.`kategori` ASC\";\n\n return $this->db->query($query)->result();\n }",
"public function getCodeStatutCategRetraite() {\n return $this->codeStatutCategRetraite;\n }",
"public function get_category() {\n $data['get_category'] = $this->Category_model->get_category();\n return $data['get_category'];\n }",
"public function totalCategoria()\n {\n return $this->totalCentral() + $this->totalSeccional();\n }",
"public function getTaxCategory();",
"public function getTaxCategory();",
"public function getTaxCategory();",
"function afficherCategoriess(){\n $sql=\"SElECT * From categorie\";\n $db = config2::getConnexion(); //config\n try{\n $liste=$db->query($sql);\n return $liste;\n }\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\n }",
"function obtenerCategoriaProg()\n {\n //crea el objetoFunSeguridad que contiene todos los metodos del sistema de seguridad\n $this->objFunSeguridad = $this->create('sis_seguridad/MODSubsistema');\n $objParam = new CTParametro($aPostData['p'], null, $aPostFiles);\n $objParam->addParametro('codigo', 'pre_verificar_categoria');\n $objFunc = new MODSubsistema($objParam);\n $this->res = $objFunc->obtenerVariableGlobal($this->objParam);\n\n return $this->res->getDatos();\n }",
"public function get_category(){\n\t\t$this->load->model('seller/product_model');\n\t\t$category = $this->product_model->get_category();\n\t\treturn $category;\n\t}",
"public function category() {\n\t\treturn $this->get_category();\n\t}",
"public function get_Categorias() {\n $this->db->order_by(\"orden\", \"ASC\");\n $query = $this->db->get( $this->table );\n \n $result = $query->result_array();\n \n return $result;\n }",
"public function getCategories(){\n\t\t$query = \"SELECT * FROM final_categoria\";\n\t\treturn $this->con->action($query);\n\t}",
"public function getCategory()\n {\n\t\treturn self::$categories[ $this->category ];\n }",
"public function categorie()\n {\n $data[\"categories\"]=$this->categories->list();\n $this->template_admin->displayad('categories' , $data);\n }",
"function afficherCategorie(){\n\t\t$sql=\"SElECT * From categorie \";\n\t\t$db = config::getConnexion();\n\t\ttry{\n\t\t$liste=$db->query($sql);\n\t\treturn $liste;\n\t\t}\n catch (Exception $e){\n die('Erreur: '.$e->getMessage());\n }\t\n\t}",
"public function getCategory(){\n return $this->category;\n }",
"public function getCategorias() {\n $categorias=$this->db->query('SELECT * FROM categorias ORDER BY id DESC;');\n return $categorias;\n }",
"public function get_reporte_Categoria_producto()\n {\n\t\tif($this->input->post('NombreCategoria_ajaxreporte'))\n\t\t{\n\t\t\t$this->db->like('NombreCategoria', $this->input->post('NombreCategoria_ajaxreporte', TRUE));\n\t\t}\n\t\t\n\t\t$this->db->from(\"categoriaproducto\");\n\t\t$query = $this->db->get();\n\t\treturn $query->result();\n }",
"public function getNom_cat()\n {\n return $this->nom_cat;\n }",
"public function srtCategoria($ArrCategorias){\n $cat = '';\n\n foreach ($ArrCategorias as $categoria => $id) {\n $cat .= Categoria::find($id)->categoria.' ';\n }\n\n return $cat;\n }",
"public function get_category(){\n\t\treturn $this->category;\n\t}",
"public function categoria()\r\n {\r\n return $this->belongsTo('App\\Categoria')->first();\r\n }",
"public function get_categories()\n {\n return ['general'];\n }",
"public function get_categories()\n {\n return ['general'];\n }",
"function getNombre(){\n\t\treturn $this->categoria->getNombre;\n\t}",
"public function getStrategys()\n {\n return [\n\n ];\n }",
"function getCategory() \n {\n return $this->instance->getCategory();\n }",
"public function getCategory()\n {\n return \"Injection Flaws\"; //See category.php for list of all the categories\n }",
"public function get_categories()\n {\n return ['super-cat'];\n }",
"public static function getCategoriaLista() {\n $dni=Yii::$app->user->identity->id;\n $droptions = Categoria::find()->where(['id_profesor_titular'=>$dni])->orWhere(['id_profesor_titular'=>$dni])->asArray()->all();\n return ArrayHelper::map($droptions, 'id_categoria', 'nombre_categoria');\n }",
"protected function fijarTabla(){\n \n return \"categorias\";\n \n }",
"public function getCodeCategSalPourcentAbat() {\n return $this->codeCategSalPourcentAbat;\n }",
"function get_categoria($id){\t\n\t\t$sql=\"SELECT nombre_cat FROM categoria WHERE id_cat='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_cat'];\n\t}",
"public function getIdCategorie(): int\n {\n return $this->id_categorie;\n }",
"private function getCategory() {\n return '';\n }",
"public static function getCategory()\n {\n return self::$category;\n }",
"public function getOne(){\n $categorias = $this ->db->query(\"SELECT * FROM categorias WHERE id={$this->getId()}\");\n return $categorias->fetch_object(); //devuelvo un objeto ya utilizable\n }",
"protected function fijarId(){\n return \"cod_categoria\";\n }",
"public function readCategoria(){\n $sql='SELECT idCategoria, nomCategoria, descripcion, foto from categoria WHERE estado = 1 AND estadoEliminacion = 1';\n $params=array(null);\n return Database::getRows($sql, $params);\n }",
"public function getIdCat()\n {\n return $this->id_cat;\n }",
"public function getCategorias(){\n\t\t\t$this->db->query(\"SELECT *\n\t\t\t\t\t\t\t\tFROM categorias \");\n\t\t\tif( $this->db->numRows() > 0 ) return $this->db->fetchAll();\n\t\t\treturn null;\n\t}",
"function getCategory() {\n // Load categories.\n $categories = userpoints_get_categories();\n return isset($categories[$this->getTid()]) ? $categories[$this->getTid()] : $categories[userpoints_get_default_tid()];\n }",
"public function getId_cat()\n {\n return $this->id_cat;\n }",
"function affichercategories(){\r\n\t\t$sql=\"SElECT * From categorie\";\r\n\t\t$db = config::getConnexion();\r\n\t\ttry{\r\n\t\t$liste=$db->query($sql);\r\n\t\treturn $liste;\r\n\t\t}\r\n catch (Exception $e){\r\n die('Erreur: '.$e->getMessage());\r\n }\t\r\n\t}",
"public function getCategory()\n\t{\n\t\treturn $this->data['category'];\n\t}",
"function get_clase_vista()\n {\n switch ($this->accion) {\n case 'index': \n case 'mostrar_clases': \n case 'filtrar': return 'vista_materias';\n case 'planilla': return 'vista_planilla';\n case 'resumen': return 'vista_resumen';\n case 'generar_pdf': return 'vista_planilla';\n default: return 'vista_edicion_asistencias';\n }\n }",
"public function read_categorias(){\r\n $sql=\"select * from categoria_shop\";\r\n $resul=mysqli_query($this->con(),$sql);\r\n while($row=mysqli_fetch_assoc($resul)){\r\n $this->proveedores[]=$row;\r\n }\r\n return $this->proveedores;\r\n }",
"public function getCategory()\n {\n return $this->category;\n }",
"public function getCategory()\n {\n return $this->category;\n }",
"public function getIdCategoriaProducto()\n {\n return $this->id_categoria_producto;\n }",
"function get_cat() {\r\n \r\n $query = $this->db->get('categories');\r\n return $query->result_array();\r\n }",
"public function get_categories() {\n return [ 'Alita-elements' ];\n }",
"public function get_categories() {\n return [ 'Alita-elements' ];\n }",
"public function getMenCategory()\n {\n $sql = \"SELECT * FROM category INNER JOIN product ON category.category_id = product.category_id WHERE category_status = 'men'\";\n $result = $this->conn->query($sql) or die(\"Conection error: \" . $this->conn->connect_error);\n $rows = array();\n while ($row = $result->fetch_assoc()) {\n $rows[] = $row;\n }\n return $rows;\n }",
"public function categorie()\n {\n return $this->belongsTo(Categorie::class);\n }",
"public function get_categories()\n {\n return ['careerfy'];\n }"
] | [
"0.7529514",
"0.75197506",
"0.75197506",
"0.7384365",
"0.73526245",
"0.7218605",
"0.7062545",
"0.7048052",
"0.701572",
"0.69436413",
"0.69364935",
"0.6917824",
"0.6910216",
"0.6910216",
"0.6868139",
"0.6855592",
"0.6791043",
"0.67451745",
"0.6710636",
"0.6710636",
"0.67004937",
"0.67003727",
"0.66978",
"0.66734296",
"0.66601014",
"0.66388243",
"0.6637561",
"0.6611961",
"0.66104746",
"0.657907",
"0.655359",
"0.6545864",
"0.6537795",
"0.6529885",
"0.652735",
"0.65103257",
"0.65103257",
"0.65103257",
"0.650938",
"0.65092576",
"0.65054536",
"0.6498143",
"0.64965856",
"0.6486011",
"0.6477121",
"0.6477009",
"0.6469057",
"0.6437778",
"0.6437778",
"0.6437778",
"0.64250106",
"0.6423249",
"0.64064294",
"0.6399365",
"0.63954544",
"0.6379567",
"0.6363314",
"0.636041",
"0.63522077",
"0.63465476",
"0.6344998",
"0.6342658",
"0.6321052",
"0.6318086",
"0.63065606",
"0.62958884",
"0.6295854",
"0.6295854",
"0.62841153",
"0.62773174",
"0.62659544",
"0.62619674",
"0.6252118",
"0.62488633",
"0.6248413",
"0.6240153",
"0.6239685",
"0.6237024",
"0.6226608",
"0.6224438",
"0.6222017",
"0.6214824",
"0.6201361",
"0.6184029",
"0.61686844",
"0.61639893",
"0.6161467",
"0.61537546",
"0.61511046",
"0.6146358",
"0.61441106",
"0.61231685",
"0.61231685",
"0.6116734",
"0.61155903",
"0.61147964",
"0.61147964",
"0.6112897",
"0.6111418",
"0.6109804"
] | 0.83384925 | 0 |
Get the code etablissement. | public function getCodeEtablissement() {
return $this->codeEtablissement;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCode()\n {\n return $this->__get(\"code\");\n }",
"public function get_code() {\n\t\treturn $this->code;\n\t}",
"function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->getValueObject('code');\n }",
"public function getcode()\n {\n return $this->code;\n }",
"function getCode()\r\n {\r\n return $this->code;\r\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->code;\n }",
"public function getCode() {\n return $this->code;\n }",
"public function getCode() {\n return $this->code;\n }",
"public function getCode() {}",
"public function getCode() {\n\t\treturn $this->code;\n\t}",
"public function getCode() {\n\t\treturn $this->code;\n\t}",
"public function getCode() {\n\t\treturn $this->code;\n\t}",
"public function getCode(): string\n {\n return $this->code;\n }",
"public function getCode(): string\n {\n return $this->code;\n }",
"public function getCode(): string\n {\n return $this->code;\n }",
"public function getCode()\r\n {\r\n return $this->code;\r\n }",
"public function code()\n {\n return $this->code;\n }",
"public function code()\n {\n return $this->code;\n }",
"public function getCode()\n\t{\n\t\treturn $this->code;\n\t}",
"public function getCode()\n\t{\n\t\treturn $this->code;\n\t}",
"public function getCode()\n\t{\n\t\treturn $this->code;\n\t}",
"public function getCode() {\n return $this->code;\n }",
"public function getCode()\n {\n return $this->getData()->code;\n }",
"public function Code()\n {\n return $this->code;\n }",
"public function getCode() {return $this->code;}",
"public function getCode()\n {\n return $this->_code;\n }",
"public function getCode()\n {\n return $this->_code;\n }",
"public function getCode()\n {\n return $this->_code;\n }",
"public function getCode()\n {\n return $this->get(self::CODE);\n }",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode();",
"public function getCode() { return $this->code; }",
"public function getCode() {\n return $this->get(self::CODE);\n }",
"public function getCode() {\r\n return $this->__code;\r\n }",
"public function getCode()\n {\n }",
"public function getCodeEmploi() {\n return $this->codeEmploi;\n }",
"public function getCode()\n {\n return $this->values[\"code\"];\n }",
"public function getCode() : string\n {\n return $this->_code;\n }",
"final function getCode();",
"public function getCode() {\n return $this->parse()['code'];\n }",
"public function getCodeInspecteur() {\n return $this->codeInspecteur;\n }",
"public function GetCode () \r\n\t{\r\n\t\treturn ($Code);\r\n\t}",
"public function getCode(): string;",
"public function getCode(): string;",
"public function getCode(): string;",
"public function getCode() {\n return @$this->attributes['code'];\n }",
"public function getCode()\n {\n return $this->data[1];\n }",
"public function getCodeModele() {\n return $this->codeModele;\n }",
"public function getCode():string;",
"public function getCode()\n {\n return $this->get(self::ENTRY_CODE);\n }",
"public function getCode()\n {\n if ($this->iata != null)\n return $this->iata;\n return $this->icao;\n }",
"public function getCode(): ?string\n {\n return $this->code;\n }",
"public function getCode(): ?string\n {\n return $this->code;\n }",
"public function getCode()\n {\n if (is_null($this->code)) {\n /** @psalm-var ?string $data */\n $data = $this->raw(self::FIELD_CODE);\n if (is_null($data)) {\n return null;\n }\n $this->code = (string) $data;\n }\n\n return $this->code;\n }",
"public function getCodeEtablissement(): ?int {\n return $this->codeEtablissement;\n }",
"public function getCodeEtablissement(): ?int {\n return $this->codeEtablissement;\n }",
"public function getCode()\n\t{\n\t\treturn $this->_options['code'];\n\t}",
"public function getCode()\n {\n return static::CODE;\n }",
"public function getEventCode() \n {\n return $this->_fields['EventCode']['FieldValue'];\n }",
"public function getCodeRef()\n {\n return $this->codeRef;\n }",
"public function getCode(): int\n {\n return $this->code;\n }",
"public static function getCode()\n {\n return Currency::get('code', false);\n }",
"public function getCodeActivite(): ?string {\n return $this->codeActivite;\n }",
"public function getCode()\n {\n return ! empty($this->result) ? $this->result->getCode() : NULL;\n }",
"public function getContentCode()\n {\n return $this->contentCode;\n }",
"public function getCode()\n {\n $this->code = $_GET['code'];\n return $this->code;\n\n }",
"public function getCode(): string\n {\n return $this->language;\n }",
"public function getCode() {\n\t\treturn $this->languagCode;\n\t}",
"public function code(): int\n {\n return $this->code;\n }",
"public function code(): int\n {\n return $this->code;\n }"
] | [
"0.77920943",
"0.77684504",
"0.77357835",
"0.7726078",
"0.7698331",
"0.769732",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.7676686",
"0.76743567",
"0.76743567",
"0.76586807",
"0.76575416",
"0.76575416",
"0.76575416",
"0.7637475",
"0.7637475",
"0.7637475",
"0.7637271",
"0.7637007",
"0.7637007",
"0.76355195",
"0.76355195",
"0.76355195",
"0.7611806",
"0.7583893",
"0.7578196",
"0.7575463",
"0.7560926",
"0.7560926",
"0.7560926",
"0.7549978",
"0.7549054",
"0.7549054",
"0.7549054",
"0.7549054",
"0.7549054",
"0.7549054",
"0.75419563",
"0.7522229",
"0.7501344",
"0.7493143",
"0.7469743",
"0.74525267",
"0.7447952",
"0.7444532",
"0.7393322",
"0.7393274",
"0.7379013",
"0.7377037",
"0.7377037",
"0.7377037",
"0.7370801",
"0.7248285",
"0.7245244",
"0.7228277",
"0.71999335",
"0.70871437",
"0.70250803",
"0.70250803",
"0.70159596",
"0.6969027",
"0.6969027",
"0.69540274",
"0.69341147",
"0.69330424",
"0.691529",
"0.6907269",
"0.6884624",
"0.6874169",
"0.6853704",
"0.6852618",
"0.68409526",
"0.6834808",
"0.6829956",
"0.67942715",
"0.67942715"
] | 0.7969973 | 1 |
Get the date debut paternite. | public function getDateDebutPaternite() {
return $this->dateDebutPaternite;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDateDebut();",
"public function getDateDebut() {\n\t\t\t$d = DateTime::createFromFormat(\"Y-m-d\", $this->attributs['dateDebut']);\n\t\t\tif ($d == false)\n\t\t\t\tdie(\"date de début '\".$this->attributs['dateDebut'].\"' non valide pour être une date\");\n\t\t\treturn $d;\n\t\t}",
"function getDay()\r\n {\r\n return $this->dia;\r\n }",
"public function getDatePattern() {\r\n\t\treturn $this->datePattern;\r\n\t}",
"public function getDate($date=null){\n\t\treturn date_format($this->createDate($date),\"d\");\n\t}",
"public function getFechaModificacionPD( ){\n\t\t \treturn $this->fechaModificacionPD;\n\t\t }",
"function getdatepattern($date) {\n if (preg_match('/\\d{2}\\/\\d{2}\\/\\d{4}/',$date)){\n $dtpattern = \"'%m/%d/%Y \";\n }\n elseif (preg_match('/\\d{2}\\/\\d{1,2}\\/\\d{4}/',$date)) {\n $dtpattern = \"'%m/%e/%Y \";\n }\n elseif (preg_match('/\\d{1,2}\\/\\d{1,2}\\/\\d{4}/',$date)) {\n $dtpattern = \"'%c/%e/%Y \";\n }\n elseif (preg_match('/\\d{2}\\/\\d{2}\\/\\d{2}/',$date)){\n $dtpattern = \"'%m/%d/%y \";\n }\n elseif (preg_match('/\\d{2}\\/\\d{1,2}\\/\\d{2}/',$date)) {\n $dtpattern = \"'%m/%e/%y \";\n }\n elseif (preg_match('/\\d{1,2}\\/\\d{1,2}\\/\\d{2}/',$date)) {\n $dtpattern = \"'%c/%e/%y \";\n }\n \n return $dtpattern;\n }",
"public function getDoDate()\n {\n return $this->data['fields']['do_date'];\n }",
"public function get_date_permastruct()\n {\n }",
"public function getDate();",
"public function getDate();",
"function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }",
"public function getDATE_DEPOT()\n {\n return $this->DATE_DEPOT;\n }",
"function obtener_dia($fecha) {\r\nreturn(substr($fecha,8,2));\r\n}",
"public function get_taplicacion_procesos_fecha_desde(): string {\n return $this->taplicacion_procesos_fecha_desde;\n }",
"public function findSaneparDate(){\n $data = $this->sanepar->findSaneparDate();\n foreach($data as $dt){\n $data[$dt] = substr($dt,0,4) . '/' . substr($dt,4,5);\n }\n return $data;\n }",
"public static function getDateFormat()\n {\n return self::$settings[0];\n }",
"function dateFR($date){\n $date = explode(\"/\", $date);\n return $date[2].\"/\".$date[1].\"/\".$date[0];\n}",
"private function get_date_page() {\n\t\tif ( ! $this->is_template_supported( 'is_date' ) ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn add_query_arg( 'year', gmdate( 'Y' ), home_url( '/' ) );\n\t}",
"function helper_dateFormat($date)\n {\n $separator= strpos($date, \"/\");\n if($separator === false){\n $date=explode(\"-\", trim($date));\n $date= $date[2].\"/\".$date[1].\"/\".$date[0];\n }else{\n $date=explode(\"/\", trim($date));\n $date= $date[2].\"-\".$date[1].\"-\".$date[0];\n }\n return $date;\n \n }",
"public function getDay()\n {\n return $this->_getDateValue('d');\n }",
"public function getModDate();",
"public function getDay(): string\n {\n return $this->toLocalizedString('d');\n }",
"function ultimo_dia_periodo() { \n\n $sql=\"select fecha_fin from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql); \n return $resul[0]['fecha_fin'];\n }",
"public function getFechaCreacionPD( ){\n\t\t \treturn $this->fechaCreacionPD;\n\t\t }",
"private function dateDuJour(){\n return date(\"Y-m-d\");\n }",
"public function fecha();",
"public function getDateDebut(): ?DateTime {\n return $this->dateDebut;\n }",
"public function getDateDebut(): ?DateTime {\n return $this->dateDebut;\n }",
"public function get_search_date($date){\n\t\t$expl_date = explode('/', $date);\n\t\treturn $expl_date[2].'-'.$expl_date[1];\n\t}",
"public function getDate(): string;",
"public function get_day_permastruct()\n {\n }",
"public function getPaymentDate();",
"function getFecha(){\n\t\t$anio = date(\"Y\");\n\t\t$dia = date(\"j\");\n\t\t$mes = date(\"m\");\n\t\t$fechactual = $anio.\"-\".$mes.\"-\".$dia;\n\t\treturn $fechactual;\n\t}",
"function darFormatoFecha($fecha){\n\treturn substr($fecha,8,2).\"/\".substr($fecha,5,2).\"/\".substr($fecha,0,4);\n}",
"function darFormatoFecha($fecha){\n\treturn substr($fecha,8,2).\"/\".substr($fecha,5,2).\"/\".substr($fecha,0,4);\n}",
"public function getDtValiditeDebut() {\n return $this->dtValiditeDebut;\n }",
"function agenda_date_debut_liste($date, $affichage_debut = 'date_jour') {\n\tswitch ($affichage_debut) {\n\t\tcase 'date_jour':\n\t\t\tbreak;\n\t\tcase 'date_veille':\n\t\t\t$date = agenda_jourdecal($date, -1);\n\t\t\tbreak;\n\t\tcase 'debut_semaine':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_semaine_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('N', $t)-1+7));\n\t\t\tbreak;\n\t\tcase 'debut_mois':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1));\n\t\t\tbreak;\n\t\tcase 'debut_mois_prec':\n\t\t\t$t = strtotime($date);\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -1); // precedent\n\t\t\tbreak;\n\t\tcase 'debut_mois_1':\n\t\tcase 'debut_mois_2':\n\t\tcase 'debut_mois_3':\n\t\tcase 'debut_mois_4':\n\t\tcase 'debut_mois_5':\n\t\tcase 'debut_mois_6':\n\t\tcase 'debut_mois_7':\n\t\tcase 'debut_mois_8':\n\t\tcase 'debut_mois_9':\n\t\tcase 'debut_mois_10':\n\t\tcase 'debut_mois_11':\n\t\tcase 'debut_mois_12':\n\t\t\t$t = strtotime($date);\n\t\t\t$mdebut = intval(substr($affichage_debut, strlen('debut_mois_')));\n\t\t\t$mcourant = date('n', $t);\n\t\t\t$offset = ($mcourant-$mdebut+12)%12;\n\t\t\t$date = agenda_jourdecal($date, -(date('j', $t)-1)); // debut de mois\n\t\t\t$date = agenda_moisdecal($date, -$offset);\n\t\t\tbreak;\n\t}\n\treturn $date;\n}",
"function date_fr($date_saisie){\n @list ($jour , $mois , $an) = split(\"[-./]\",$date_saisie);\n //inverse la date\n return($an.\"-\".$mois.\"-\".$jour);\n \n}",
"public function getDateUtilisateur()\n{\nif (!strcmp($this->dateUtilisateur, \"00/00/0000\"))\n\t$date = \"\";\nelse $date = $this->dateUtilisateur;\nreturn $date;\n}",
"public function getrep_fecha()\r\n {\r\n return $this->rep_fecha;\r\n }",
"public function getPattern()\n {\n// if ($this->getOption('pattern')) {\n// return $this->getOption('pattern');\n// }\n\n $pattern = $this->formatter->getPattern();\n\n // set right order with respect to locale (e.g.: de_DE=dd.MM.yy; en_US=M/d/yy)\n // lookup various formats at http://userguide.icu-project.org/formatparse/datetime\n if (preg_match('/^([yMd]+).+([yMd]+).+([yMd]+)$/', $pattern)) {\n return preg_replace(array('/y+/', '/M+/', '/d+/'), array('{{ year }}', '{{ month }}', '{{ day }}'), $pattern);\n }\n\n // default fallback\n return '{{ year }}-{{ month }}-{{ day }}';\n }",
"function get_dy_nxt($cur_date){\n $date_split=split(\"-\",$cur_date);\n return date(\"d-m-Y\",mktime (0,0,0,$date_split[1],($date_split[0]+ 1),$date_split[2]));\n }",
"function fecha($cadena){\n\t\treturn date($cadena);\n\t}",
"function get_mnt_strt_day($cur_date,$type){\n $date_split=split(\"-\",$cur_date);\n if ($type=='1'){\n // Return format \"0\" (Sunday) to \"6\" (Saturday)\n return date(\"w\",mktime (0,0,0,$date_split[1],1,$date_split[2]));}\n elseif ($type=='2'){\n // Return Fri format \n return date(\"D\",mktime (0,0,0,$date_split[1],1,$date_split[2]));}\n elseif ($type=='3'){\n // Return Friday format\n return date(\"l\",mktime (0,0,0,$date_split[1],1,$date_split[2]));}\n }",
"public function getDate(){\n\t\treturn $this->laDate;\n\t}",
"function _groom_get_reference_date()\n{\n $date = new DateTime();\n $get_params = drupal_get_query_parameters();\n\n if (!empty($get_params['month-display']) && preg_match('/^[0-9]{4}-[0-9]{2}$/', $get_params['month-display'])) {\n $date = new DateTime($get_params['month-display']);\n }\n\n return $date;\n}",
"public function getDate() : ?string ;",
"public function getReceptionDate();",
"protected function getDateFormat()\n {\n return \\MUtil_Model_Bridge_FormBridge::getFixedOption('datetime', 'dateFormat');\n }",
"function _field_date_us($fval) \n {\n $f_date = \"\";\n if ($fval) {\n list($m,$d,$y) = split('/', $fval);\n $f_date = array($y, $m, $d);\n }\n return $this->_field_date($f_date);\n }",
"private function getDocDate(DOMElement $column) {\n\t\t$dateTag = $column->getElementsByTagName('nobr');\t\n\t\t$docDate = $dateTag->item(0)->nodeValue;\n\t\t$docDate = preg_replace(\"/\\./\", \"-\", $docDate);\t\n\t\t\n\t\tif (preg_match(\"/(\\d{2})-(\\d{2})-(\\d{4})/\", $docDate, $match)) {\n\t\t\t$docDate = $match[0];\n\t\t}\n\t\t\n\t\t\n\t\treturn $docDate;\n\t}",
"public function getDateFecha()\n {\n return $this->dateFecha;\n }",
"function datum($db_date) {\r\n return strftime('%d.%m.%Y', strtotime($db_date));\r\n }",
"public function getDateTimeFormat();",
"public function dateFormat();",
"function getFecha(){\n\t\treturn $this->fecha;\n\t}",
"public function date();",
"public function date();",
"public function getDate(){\n return $this->getParameter('date');\n }",
"public function getSmartDate()\r\n {\r\n $now = Date::now();\r\n\r\n //other year\r\n if ($this->year != $now->year)\r\n {\r\n return $this->getValue(self::MASK_DATE_USER);\r\n }\r\n //today\r\n else if ($this->isToday())\r\n {\r\n if ($this->getHour() == 0 && $this->getMinute() == 0 && $this->getSecond())\r\n {\r\n return 'Hoje'; //$this->getValue( self::MASK_DATE_USER );\r\n }\r\n\r\n return $this->getValue(self::MASK_HOUR);\r\n }\r\n //other day\r\n else\r\n {\r\n $date = $this->strftime('%d %b');\r\n $search = array('01', '02', '03', '04', '05', '06', '07', '08', '09');\r\n $replace = array('1', '2', '3', '4', '5', '6', '7', '8', '9');\r\n\r\n return self::correctMonthNames(str_replace($search, $replace, $date));\r\n }\r\n }",
"public function getStrDate()\n {\n return $this->getCurrentTranslation()->getStrDate();\n }",
"public function getDateEn() {\n return $this->date;\n }",
"public function getUsingFormatDefault(){\n\t\t$config = CoreConfig::readAppConfig();\n\t\t$format = strtolower($config->application->dbdate);\n\t\t$dateFormat = new DateFormat($format, $this);\n\t\treturn $dateFormat->getDate();\n\t}",
"public function getDay($date=null,$type=null){\n\t\tif(!empty($type)){\n\t\t\treturn $this->getDayLang(date('l', strtotime($date)));\n\t\t}else{\n\t\t\treturn $this->getDayLang(date('D', strtotime($date)));\n\t\t}\n\t}",
"public function getDepartureDate()\n {\n return $this->departureDate;\n }",
"function moisAnPasse()\n{\n\t$dateActuelle = date(\"d/m/Y\");\n\t@list($jour, $mois, $annee) = explode('/', $dateActuelle);\n\t$annee--;\n\t$moisActuel = $annee . $mois;\n\treturn $moisActuel;\n}",
"public static function getDateFormats()\n {\n return array( 'm/d/y' => 'mm/dd/yy', 'd/m/y' => 'dd/mm/yy' );\n }",
"function returnDay($date){\r\n\t\t$Newddate = explode(\" \",$date);\r\n $Newddate = substr($Newddate[0],0, 10);\r\n\t\t//$day = date('l', $Newdate);\r\n\t\t$day = date(\"l\", strtotime($Newddate));\r\n return($day);\r\n }",
"public function getDepartureDate()\n {\n return isset($this->DepartureDate) ? $this->DepartureDate : null;\n }",
"function date_diasemana($date,$type='') {\n\n if (!empty($date)) {\n\n #pega informações da data\n $date = en2timestamp($date);\n $wday = getdate($date);\n $wday = $wday['wday']; #usa apenas o dia da semana em números de 0 a 6\n\n switch($wday) {\n case 0: $s_min = 'dom'; $s_nor = 'domingo';\n break;\n case 1: $s_min = 'seg'; $s_nor = 'segunda';\n break;\n case 2: $s_min = 'ter'; $s_nor = 'terça';\n break;\n case 3: $s_min = 'qua'; $s_nor = 'quarta';\n break;\n case 4: $s_min = 'qui'; $s_nor = 'quinta';\n break;\n case 5: $s_min = 'sex'; $s_nor = 'sexta';\n break;\n case 6: $s_min = 'sab'; $s_nor = 'sábado';\n break;\n }\n\n $return = empty($type)?$s_nor:$s_min;\n\n return $return;\n\n }\n\n }",
"public function getDate()\n {\n return $this->getNodeText('/p:package/p:date');\n }",
"function getday($txt)\n {\n\t\n\t return substr($txt,8,2);\n }",
"function getDateJour()\n {\n return $this->formatDateDBversLocal(date('Y-m-d'));\n }",
"public function display_date(){\n\t\t$display = date('d/m/Y');\n\t\treturn $display;\n\t}",
"public function getfecha()\r\n {\r\n return $this->fecha;\r\n }",
"function get_date() {\n\t\treturn $this->get_data( 'comment_date' );\n\t}",
"function uwwtd_get_DD_MM_YYYY_from_YYYY_MM_DD_XXX($date) {\n $return = '';\n if (!empty($date)) {\n if (strlen($date) > 10) {\n $date = substr($date, 0, 10);\n }\n $dateObj = new DateTime($date);\n $return = $dateObj->format('d/m/Y');\n }\n return $return;\n}",
"function getDate( )\r\n\t{\r\n\t\treturn $this->date;\r\n\t}",
"public function getDATE_VALIDITE()\n {\n return $this->DATE_VALIDITE;\n }",
"public function getFormationDate()\n {\n $value = $this->get(self::FORMATIONDATE);\n return $value === null ? (string)$value : $value;\n }",
"protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}",
"public function getViewDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->viewDate;\r\n\t}",
"static function getJustDate($date){\n\t\t$midway = explode(' ',$date);\n\t\t$dString = explode('-',$midway[0]);\n\t\treturn $dString[1] . '/' . $dString[2] . '/' . substr($dString[0],-2);\n\t}",
"public function getStartDate();",
"public function getStartDate();",
"public static function dateDB(){\n\t\t$day = date('d');\n\t\t$month = date('m');\n\t\t$year = date('Y');\n\n\t\t$date = $year.\"-\".$month.\"-\".$day;\n\n\t\treturn ($date);\n\t}",
"function edad($fecha,$char){\n\tlist($Y,$m,$d)=explode($char,$fecha);\n\treturn(date('md')<$m.$d?date('Y')-$Y-1:date('Y')-$Y);\n}",
"function edad($fecha,$char){\n\tlist($Y,$m,$d)=explode($char,$fecha);\n\treturn(date('md')<$m.$d?date('Y')-$Y-1:date('Y')-$Y);\n}",
"function faireDate($pDate)\n\t\t\t{\n\t\t\t\t$jour = substr($pDate,8);\n\t\t\t\t$mois = substr($pDate,5);\n\t\t\t\t$annee = substr($pDate,0,4);\n\t\t\t\t$tabMois = array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');\n\t\t\t\t$nvlDate = $jour.\" \".$tabMois[$mois-1].\" \".$annee;\n\t\t\t\treturn $nvlDate;\n\t\t\t}",
"public function dias_del_mes(){\n \n $fecha= date('Y-m-d');\n return; date('t',strtotime($fecha));\n \n}",
"public function getDateFormat($type = null);",
"function getDeliveryDate($DiasEntrega, $PeriodoEntrega){\n\t$PeriodoEntrega = strtolower($PeriodoEntrega);\n\tif(!in_array($PeriodoEntrega, array('lun-dom', 'lun-sab', 'lun-vie'))) {\n\t\tlogAddNotice('El rango enviado ('.$PeriodoEntrega.') no es permitido');\n\t\treturn false;\n\t}\n\t\n\t$result = $GLOBALS['ISC_CLASS_DB']->Query('SELECT Fecha FROM [|PREFIX|]intelisis_festivedays WHERE EsLaborable = \"0\"');\n\t$diasfestivos = array();\n\twhile($row = $GLOBALS['ISC_CLASS_DB']->Fetch($result)){\n\t\t$diasfestivos[] = $row['Fecha'];\n\t}\n\t\n\t$i = 0;\n\t$manana=time();\n\t$dia=date('D', $manana);\n\twhile($i < $DiasEntrega){\n\t\t$manana = $manana + 86400;\n\t\t$mananaDia = date('D', $manana);\n\t\t$mananaFecha = date('Y-m-d 00:00:00', $manana);\n\n\t\tif(in_array($mananaFecha, $diasfestivos)) continue;\n\t\t\n\t\tif($PeriodoEntrega == 'lun-vie'){\n\t\t\tif($mananaDia != 'Sat' && $mananaDia != 'Sun'){\n\t\t\t\t$i++;\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t}\n\t\tif($PeriodoEntrega == 'lun-sab'){\n\t\t\tif($mananaDia != 'Sun'){\n\t\t\t\t$i++;\n\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t}\n\t\tif($PeriodoEntrega == 'lun-dom'){\n\t\t\t//if($mananaDia != 'Sun'){\n\t\t\t\t$i++;\n\t\t\t\tcontinue;\n\t\t\t//\t}\n\t\t}\n\t}\n\treturn $manana;\n}",
"function getDebutMois($dateDuJour){\n global $dbHandler;\n $db = $dbHandler->openConnection();\n\n $sql = \"SELECT * FROM getdebutmois(date('$dateDuJour'));\";\n $result = $db->query($sql);\n\n if (DB::isError($result)) {\n $dbHandler->closeConnection(false);\n Signalerreur(__FILE__,__LINE__,__FUNCTION__,_(\"DB\").\": \".$result->getMessage());\n }\n\n $date_row = $result->fetchrow(DB_FETCHMODE_ASSOC);\n\n $dbHandler->closeConnection(true);\n return $date_row['getdebutmois'];\n}",
"function explose_date_fr($date)\n\t{\n\t\t$dh = explode(\" \", $date);\n\n\t\t$d = explode(\"-\", $dh[0]);\n\t\t$da['jour'] \t= $d[0];\n\t\t$da['mois'] \t\t= $d[1];\n\t\t$da['annee']\t= $d[2];\n\n\t\tif(isset($dh[1]))\n\t\t{\n\t\t\t$time = explode(\":\", $dh[1]);\n\t\t\t$da['h'] = $time[0];\n\t\t\t$da['m'] = $time[1];\n\t\t\t$da['s'] = $time[2];\n\t\t}\n\t\t\n\t\treturn $da;\n\t}",
"public function day() {\n return $this->day;\n }",
"function getFecha() {\r\n return $this->fecha;\r\n }",
"function uwwtd_get_MM_DD_YYYY_from_YYYY_MM_DD_XXX($date) {\n $return = '';\n if (!empty($date)) {\n if (strlen($date) > 10) {\n $date = substr($date, 0, 10);\n }\n $dateObj = new DateTime($date);\n $return = $dateObj->format('m/d/Y');\n }\n return $return;\n}",
"public function getDay(){\n\t\treturn $this->_day;\n\t}",
"public function getDate(){\n\t\treturn $this->_date;\n\t}"
] | [
"0.7539114",
"0.7094053",
"0.66743064",
"0.65799296",
"0.65707743",
"0.6541628",
"0.6504244",
"0.64483064",
"0.63986385",
"0.63628274",
"0.63628274",
"0.6350492",
"0.63423914",
"0.6299575",
"0.62929595",
"0.62209624",
"0.61026835",
"0.6098385",
"0.6092148",
"0.6084089",
"0.60789144",
"0.60723335",
"0.6059239",
"0.60386586",
"0.60360575",
"0.6028314",
"0.601206",
"0.6006414",
"0.6006414",
"0.600122",
"0.597813",
"0.5975934",
"0.59758264",
"0.59663844",
"0.59560734",
"0.59560734",
"0.59560114",
"0.5950101",
"0.5949528",
"0.5944071",
"0.59306395",
"0.5922749",
"0.59136176",
"0.59036005",
"0.5894378",
"0.58734906",
"0.5872465",
"0.5870055",
"0.58690983",
"0.5867259",
"0.585803",
"0.5855868",
"0.58510476",
"0.58497083",
"0.5849488",
"0.5843808",
"0.58421695",
"0.5842151",
"0.5842151",
"0.58359885",
"0.58310217",
"0.58295715",
"0.5823066",
"0.58000606",
"0.5794945",
"0.5784179",
"0.5782114",
"0.57746094",
"0.57743585",
"0.57711816",
"0.5760511",
"0.5757788",
"0.57545537",
"0.57542276",
"0.5753518",
"0.57520497",
"0.57434285",
"0.57426894",
"0.57305706",
"0.57275355",
"0.5725387",
"0.57250136",
"0.5716301",
"0.57150054",
"0.57137626",
"0.57137626",
"0.5702658",
"0.5700396",
"0.5700396",
"0.5692564",
"0.568819",
"0.5688064",
"0.5684431",
"0.5681339",
"0.5668852",
"0.56687725",
"0.56645626",
"0.56618804",
"0.56558514",
"0.56557256"
] | 0.7957948 | 0 |
Get the date dern j mens. | public function getDateDernJMens() {
return $this->dateDernJMens;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private function dateDuJour(){\n return date(\"Y-m-d\");\n }",
"private function date()\n {\n $pubDate = $this->article->Journal->JournalIssue->PubDate;\n \n if (isset($pubDate->MedlineDate)) {\n $date = (string)$pubDate->MedlineDate;\n } else {\n $date = implode(' ', (array)$pubDate);\n }\n \n return $date;\n }",
"function getFecha(){\n\t\t$anio = date(\"Y\");\n\t\t$dia = date(\"j\");\n\t\t$mes = date(\"m\");\n\t\t$fechactual = $anio.\"-\".$mes.\"-\".$dia;\n\t\treturn $fechactual;\n\t}",
"function getDateJhjjmmtt() {\n\t\n\t$date \t= getdate();\n\t$year \t= $date['year'];\n\t$mon \t= $date['mon'];\n $day\t\t= $date['mday'];\n \n\tif( $mon < \"10\" ) \t\t$mon = \"0\".$mon;\n\tif( $day < \"10\" )\t\t$day = \"0\".$day;\n\t\n\t$moddate \t= $year.$mon.$day;\n\n\treturn $moddate;\n}",
"protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}",
"function getDateJour()\n {\n return $this->formatDateDBversLocal(date('Y-m-d'));\n }",
"function getFecha(){\n\t\t\treturn date(\"Y-m-d H:i:s\");\n\t}",
"function get_date() {\n\t\treturn $this->get_data( 'comment_date' );\n\t}",
"function wpseed_get_the_date_german() {\n $months_de = ['Januar','Februar','März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'];\n return get_the_date('d.').' '.$months_de[intval(get_the_date('m'))-1].' '.get_the_date('Y');\n }",
"public function getDateDebut() {\n\t\t\t$d = DateTime::createFromFormat(\"Y-m-d\", $this->attributs['dateDebut']);\n\t\t\tif ($d == false)\n\t\t\t\tdie(\"date de début '\".$this->attributs['dateDebut'].\"' non valide pour être une date\");\n\t\t\treturn $d;\n\t\t}",
"function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}",
"function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}",
"function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}",
"public function getDateEn() {\n return $this->date;\n }",
"public function getDate() : string\r\n {\r\n return $this->format('Y-m-d');\r\n }",
"public function getStrDate()\n {\n return $this->getCurrentTranslation()->getStrDate();\n }",
"function getJulianDate()\r\n {\r\n return Data_Calc::dataJuliana($this->dia, $this->mes, $this->ano);\r\n }",
"public function getSmartDate()\r\n {\r\n $now = Date::now();\r\n\r\n //other year\r\n if ($this->year != $now->year)\r\n {\r\n return $this->getValue(self::MASK_DATE_USER);\r\n }\r\n //today\r\n else if ($this->isToday())\r\n {\r\n if ($this->getHour() == 0 && $this->getMinute() == 0 && $this->getSecond())\r\n {\r\n return 'Hoje'; //$this->getValue( self::MASK_DATE_USER );\r\n }\r\n\r\n return $this->getValue(self::MASK_HOUR);\r\n }\r\n //other day\r\n else\r\n {\r\n $date = $this->strftime('%d %b');\r\n $search = array('01', '02', '03', '04', '05', '06', '07', '08', '09');\r\n $replace = array('1', '2', '3', '4', '5', '6', '7', '8', '9');\r\n\r\n return self::correctMonthNames(str_replace($search, $replace, $date));\r\n }\r\n }",
"public static function dateSgbd()\n {\n return date('Y-m-d');\n }",
"public function date();",
"public function date();",
"function fecha($cadena){\n\t\treturn date($cadena);\n\t}",
"public function getDateDebut();",
"function getDate( )\r\n\t{\r\n\t\treturn $this->date;\r\n\t}",
"function getDay(){\r\n return date('l',$this->timestamp);\r\n }",
"function getCurrentDayInMonthNumber ()\n\t{\n\t\treturn date ('j');\n\t}",
"public function getMessageDate()\n {\n return $this->messageDate;\n }",
"function datum_nu2() {\n //\n\t\t\t$datestring \t\t\t\t= \"%Y-%m-%d\" ; \n\t\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\treturn mdate($datestring, $time);\n\t}",
"function genDate() {\n\n\t\t$month = strftime(\"%m\");\n\n\t\t$day = strftime(\"%d\");\n\t\t\t\n\t\t$year = strftime(\"%Y\");\n\n\t\t$currentDate = $year . $month . $day;\n\t\t$currentDate = (integer) $currentDate;\n\n\t\treturn $currentDate;\n\t}",
"function get_sql_date()\n {\n $year=$this->get_year();\n $month=$this->get_month();\n if (strlen($month)<2)\n {\n $month=\"0\".$month;\n }\n\n $day=$this->get_day();\n\n if (strlen($day)<2)\n {\n $day=\"0\".$day;\n }\n return $year.\"-\".$month.\"-\".$day.\" 00:00:00\";\n }",
"public static function dateDB(){\n\t\t$day = date('d');\n\t\t$month = date('m');\n\t\t$year = date('Y');\n\n\t\t$date = $year.\"-\".$month.\"-\".$day;\n\n\t\treturn ($date);\n\t}",
"private function getDatum($datum_tijd) {\n date_default_timezone_set('Europe/London');\n setlocale(LC_ALL, 'nl_NL');\n $datum = strftime('%e %B %Y', strtotime($datum_tijd));\n return $datum;\n }",
"public function date($date=null)\n {\n if(is_null($date)) { \t\n\t\t\t$date = $this->publication; \n }\n\n return $date;\n //date_format($date, 'g:ia \\o\\n l jS F Y');;\n }",
"public function getDate()\n\t\t{\n\t\t\t$date = new \\DateTime($this->created_at);\n\t\t\treturn $date->format('jS M Y');\n\t\t}",
"function datum_nu() {\n\t\t//\n\t\t$datestring \t\t\t\t= \"%d-%m-%Y\" ; \n\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\n\t\treturn date($datestring, $time);\n\t\t//-----/\n\t}",
"public function getDoDate()\n {\n return $this->data['fields']['do_date'];\n }",
"function getDate( $date='' ) {\r\n\t\t\t$date = $this->_getDateOrTime( $date, $this->_fmtDate );\r\n\t\t\tif ( $date == 'null' ) {\r\n\t\t\t\treturn $date;\r\n\t\t\t} else {\r\n\t\t\t\treturn 'TO_DATE ( \\'' . $date . '\\', \\'YYYY-MM-DD\\' )';\r\n\t\t\t}\r\n\t\t}",
"function getCurrentDate() \n {\n return date( 'd M Y');\n }",
"public function getDate();",
"public function getDate();",
"public function getDate($date=null){\n\t\treturn date_format($this->createDate($date),\"d\");\n\t}",
"public function getFecha_inicio_joven() {\n return $this->fecha_inicio_joven;\n }",
"function datum($db_date) {\r\n return strftime('%d.%m.%Y', strtotime($db_date));\r\n }",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"function faireDate($pDate)\n\t\t\t{\n\t\t\t\t$jour = substr($pDate,8);\n\t\t\t\t$mois = substr($pDate,5);\n\t\t\t\t$annee = substr($pDate,0,4);\n\t\t\t\t$tabMois = array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');\n\t\t\t\t$nvlDate = $jour.\" \".$tabMois[$mois-1].\" \".$annee;\n\t\t\t\treturn $nvlDate;\n\t\t\t}",
"function convertDate_jmA_Amj($date)\r\n{\r\n\tsetlocale (LC_TIME, 'en_EN','en');\r\n\treturn strftime(\"%Y-%m-%d\", strtotime($date));\r\n}",
"function vads_trans_date() {\n $date = date('YmdHis');\n return $date;\n }",
"public function get_today_name(){\n return $today = date('D');\n }",
"function date_ajourdhui()\n{\n $date = localtime(time());\n\n $mois = $date[4]+1;\n $annee = $date[5] + 1900;\n\n $aujourdhui = mktime(0,0,0,$mois,$date[3],$annee,-1);\n \n return date('Y-m-d', $aujourdhui); \n}",
"public function getDate(){\n\t\treturn $this->laDate;\n\t}",
"private function customDate() {\n\t\tsetlocale(LC_ALL, 'swedish');\n\t\t// setlocale(LC_ALL, 'sv_SE.UTF-8');\n\n\t\treturn utf8_encode(ucfirst(strftime('%A, den %d %B %Y. '))) . strftime('Klockan är [%H:%M:%S].');\n\t\t// return ucfirst(strftime('%A, den %d %B %Y. ')) . strftime('Klockan är [%H:%M:%S].');\n\t}",
"public function getDate()\r\n {\r\n return $this->date;\r\n }",
"public function getDate()\n {\n $yearconst = $this->getValue(self::XPATH_YEAR);\n $monthconst = $this->getValue(self::XPATH_MONTH);\n $dayconst = $this->getValue(self::XPATH_DAY);\n\n return $this->formateDate($yearconst, $monthconst, $dayconst);\n }",
"public function mes(){\n\n\t\t$date = $this->dia;\n $date = DateTime::createFromFormat('Y-m-d', $date);\n \t \n\t\treturn $date->format('m') - 1;\n\t}",
"function get_date($day, $year) {\n\t\t\t\t\n\t\t\t\t$number_date = date('D d F, Y', mktime(0, 0, 0, 0+1, $day, $year));\n\t\t\t\t\n\t\t\t\treturn $number_date;\n\t\t\t\n\t\t\t}",
"public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate($date){\n\t\t$date = explode('-', $date);\n\t\t$year = intval($date[0]);\n\t\t$month = $this->getMonthName(intval($date[1]));\n\t\t$day = intval($date[2]);\n\t\t\t\n\t\treturn $month . ' ' . $day . ', ' . $year;\n\t}",
"public function getDate()\n {\n return $this->date;\n }",
"public static function getDate() {\r\n\t\treturn date('Y-m-d H:i:s');\r\n\t}",
"public function getDay(): string\n {\n return $this->toLocalizedString('d');\n }",
"public function date()\n {\n\n $date = date(\"Y-m-d\");\n\n $date = strtotime($date . \"-30 days\");\n\n $date = date('Y-m-d', $date);\n\n return $date;\n }",
"public function getDate()\n {\n if ( $this->value != null ) {\n $date = strtotime( $this->value );\n return date( 'd m Y', $date );\n }\n return null;\n }",
"function getMonth(){\r\n return date('F',$this->timestamp);\r\n }",
"public function getDate()\n {\n return $this->getNodeText('/p:package/p:date');\n }",
"public function getDate(){\n\t\treturn $this->_date;\n\t}",
"public function getDateFecha()\n {\n return $this->dateFecha;\n }",
"function getDay()\r\n {\r\n return $this->dia;\r\n }",
"public function getFecha()\n {\n return $this->c_fecha;\n }",
"public function get_date($s) {\r\n\t\treturn date($s,strtotime($this->date));\r\n\t}"
] | [
"0.71765035",
"0.70300925",
"0.69429415",
"0.6863526",
"0.6855328",
"0.68510115",
"0.67375946",
"0.67157745",
"0.6676103",
"0.6643525",
"0.6634751",
"0.6634751",
"0.6634751",
"0.6620606",
"0.6607247",
"0.6591757",
"0.65773994",
"0.6558014",
"0.65494514",
"0.6533421",
"0.6533421",
"0.65076804",
"0.6487098",
"0.6485956",
"0.64534765",
"0.6444345",
"0.644266",
"0.6432914",
"0.6419421",
"0.6417604",
"0.64050394",
"0.63983554",
"0.63564116",
"0.63490427",
"0.6342241",
"0.6333259",
"0.63312626",
"0.63146544",
"0.63138056",
"0.63138056",
"0.62998146",
"0.6290349",
"0.62712514",
"0.6265615",
"0.6265615",
"0.6265615",
"0.62633103",
"0.6261846",
"0.62617344",
"0.62550646",
"0.62460726",
"0.62369514",
"0.62344235",
"0.6208013",
"0.6196498",
"0.6186584",
"0.61853665",
"0.61618465",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6159193",
"0.6150187",
"0.61440057",
"0.61361283",
"0.61308986",
"0.613082",
"0.6126201",
"0.6120567",
"0.61157066",
"0.61121815",
"0.6109502",
"0.61024207",
"0.610216",
"0.61017966"
] | 0.66895247 | 8 |
Get the date naissance employe. | public function getDateNaissanceEmploye() {
return $this->dateNaissanceEmploye;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDateNaissanceEnfant() {\n return $this->dateNaissanceEnfant;\n }",
"public function getDateNaissance()\n {\n return $this->date_naissance;\n }",
"public function getDateEmprunt()\n {\n return $this->dateEmprunt;\n }",
"public function getDateNaissance() \n {\n return $this->dateNaissance;\n }",
"public function getDatenaissance()\n {\n return $this->date_naissance;\n }",
"public function getDateNaiss()\n {\n return $this->dateNaiss;\n }",
"public function getDateNaiss() {\n return $this->dateNaiss;\n }",
"public function getDate_naissance_user()\r\n {\r\n return $this->date_naissance_user;\r\n }",
"public function getDateEn() {\n return $this->date;\n }",
"public function getDateEcheance(): ?string {\n return $this->dateEcheance;\n }",
"public function getDateSeance() {\r\n return $this->dateSeance;\r\n }",
"public function getDateDebut();",
"public function getDataEmissao()\n {\n if ($this->data_emissao) {\n return $this->data_emissao->format('d/m/Y');\n }\n return null;\n }",
"public function getDateEcriture(): DateTime\n {\n return $this->date_ecriture;\n }",
"public function getEdad()\n {\n $dateOfBirth = $this->getFechaNac();\n $today = date(\"Y-m-d\");\n $diff = date_diff(date_create($dateOfBirth), date_create($today));\n return (int)$diff->format('%y');\n\n }",
"function getDay()\r\n {\r\n return $this->dia;\r\n }",
"public function getDATE_DEPOT()\n {\n return $this->DATE_DEPOT;\n }",
"public function getReportedDate();",
"public function getDateEntree() {\n return $this->dateEntree;\n }",
"function datum_nu() {\n\t\t//\n\t\t$datestring \t\t\t\t= \"%d-%m-%Y\" ; \n\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\n\t\treturn date($datestring, $time);\n\t\t//-----/\n\t}",
"public function getQuestionnaireDate() {\r\n\t\t\treturn $this->_arrQuestionnaireDate;\r\n\t\t}",
"public function setDateNaissanceEmploye(DateTime $dateNaissanceEmploye = null) {\n $this->dateNaissanceEmploye = $dateNaissanceEmploye;\n return $this;\n }",
"public function getFechaNacimiento() {\n\t\treturn $this->fechaNacimiento;\n\t}",
"public function getDate() {\n return ($this->date1_reduced === $this->date2_reduced) ? $this->date1_reduced: $this->date1_reduced . \"- \" . $this->date2_reduced;\n }",
"public function getDateFinContrat() {\n return $this->dateFinContrat;\n }",
"public function getFechaVencimientoEstudianteDocumento( ){\n\t\t\treturn $this->fechaVencimientoEstudianteDocumento;\n\t\t}",
"public function getDate_en_ligne()\n {\n return $this->date_en_ligne;\n }",
"public function getNacAttribute()\n {\n return date(\"d/m/Y\", strtotime($this->fecha_nacimiento));\n }",
"public function getExpdate()\n {\n return $this->expdate;\n }",
"public function getFechaNacimiento()\n {\n return $this->fecha_nacimiento;\n }",
"public function getNom_employeur()\n {\n return $this->nom_employeur;\n }",
"public function getFechaComentario()\n {\n return $this->fecha_comentario;\n }",
"public function getDureeAnnuelle() {\n return $this->dureeAnnuelle;\n }",
"function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }",
"function getDateDue() {\n\t\treturn $this->getData('dateDue');\n\t}",
"public function getReceptionDate();",
"public function getFechaEmision() {\n return $this->fecha_emision;\n }",
"public function getInvdate()\n {\n return $this->invdate;\n }",
"public function getrep_fecha()\r\n {\r\n return $this->rep_fecha;\r\n }",
"public function calculateDay()\r\n {\r\n return date('N', strtotime($this->getDate())) - 1;\r\n }",
"public function getfechaentrega()\r\n {\r\n return $this->fechaentrega;\r\n }",
"public function fechaVigencia() // funcion que suma fecha usada para años biciestos\n\t{\n\n\t\t$fecha = $_GET['fecha'];\n\t\t$nuevafecha = strtotime('+365 day', strtotime($fecha));\n\t\t$nuevafecha = date('Y-m-d', $nuevafecha);\n\t\treturn $nuevafecha;\n\t}",
"public function getDateDebut() {\n\t\t\t$d = DateTime::createFromFormat(\"Y-m-d\", $this->attributs['dateDebut']);\n\t\t\tif ($d == false)\n\t\t\t\tdie(\"date de début '\".$this->attributs['dateDebut'].\"' non valide pour être une date\");\n\t\t\treturn $d;\n\t\t}",
"public function getExercice()\n {\n return $this->ligne->getSousCategorie()->getCategorie()->getBudget()->getExercice();\n }",
"function getFecha(){\n\t\t$anio = date(\"Y\");\n\t\t$dia = date(\"j\");\n\t\t$mes = date(\"m\");\n\t\t$fechactual = $anio.\"-\".$mes.\"-\".$dia;\n\t\treturn $fechactual;\n\t}",
"protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}",
"public function getIngAttribute()\n {\n return date(\"d/m/Y\", strtotime($this->fecha_ingreso));\n }",
"public function getDate(){\n\t\treturn $this->laDate;\n\t}",
"public function getDateEmbauche() \n {\n return $this->dateEmbauche;\n }",
"public function get_date_permastruct()\n {\n }",
"public function getDate();",
"public function getDate();",
"public function getDateFin();",
"public function getExpDate()\n {\n return $this->ExpDate;\n }",
"function getDateNotified() {\n\t\treturn $this->getData('dateNotified');\n\t}",
"function wv_get_commission_date($oid,$pid){\n \n $displayDate = get_post_meta($oid,'woo_commision_date_'.$pid,TRUE);\n $displayDate = ($displayDate ==\"\")?\"Commission is due.\":date(\"dM, Y, g:i a\",strtotime($displayDate));;\n return $displayDate;\n }",
"function getDate( )\r\n\t{\r\n\t\treturn $this->date;\r\n\t}",
"function ultimo_dia_periodo() { \n\n $sql=\"select fecha_fin from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql); \n return $resul[0]['fecha_fin'];\n }",
"public function getUseDate() \n \t{\n \t\treturn $this->use_date;\n \t}",
"public function getDate($date=null){\n\t\treturn date_format($this->createDate($date),\"d\");\n\t}",
"public function getDateEmbauche() {\n return $this->dateEmbauche;\n }",
"public function getInvoiceDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->invoiceDate;\r\n\t}",
"public function getDataNascimentoConjuge() {\n\n if (!empty($this->oDataNascimentoConjuge)) {\n return $this->oDataNascimentoConjuge->getDate(DBDate::DATA_PTBR);\n }\n }",
"private function dateDuJour(){\n return date(\"Y-m-d\");\n }",
"public function get_due_day( $context = 'view' ) {\n\t\treturn $this->get_prop( 'due_day', $context ) ;\n\t}",
"private function date()\n {\n $pubDate = $this->article->Journal->JournalIssue->PubDate;\n \n if (isset($pubDate->MedlineDate)) {\n $date = (string)$pubDate->MedlineDate;\n } else {\n $date = implode(' ', (array)$pubDate);\n }\n \n return $date;\n }",
"function getDateJour()\n {\n return $this->formatDateDBversLocal(date('Y-m-d'));\n }",
"function getJulianDate()\r\n {\r\n return Data_Calc::dataJuliana($this->dia, $this->mes, $this->ano);\r\n }",
"public function getDate()\r\n {\r\n return $this->date;\r\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getNiceDate($date = null){\n\n\treturn ($date != null) ? date(\"Y,m,d\", strtotime($this->StartDate)) : null ; \n\n\t}",
"public function getDate()\n {\n return $this->date;\n }",
"private function _getDueDate()\n {\n $iDueDate = trim($this->getNovalnetConfigValue('iDueDate' . $this->sCurrentPayment));\n if ($this->sCurrentPayment == 'novalnetinvoice') {\n $iDueDate = (!empty($iDueDate) && is_numeric($iDueDate)) ? $iDueDate : '';\n } elseif($this->sCurrentPayment == 'novalnetsepa') {\n $iDueDate = (empty($iDueDate) || $iDueDate <= 6) ? 7 : $iDueDate;\n } else {\n $iDueDate = (!empty($iDueDate) && is_numeric($iDueDate)) ? $iDueDate : '';\n }\n\n return ($iDueDate) ? date('Y-m-d', strtotime('+' . $iDueDate . ' days')) : false;\n }",
"public function getDataAtual()\n {\n $this->hoje = date(\"Y-m-d H:i:s\");\n return $this->hoje;\n }",
"public function getDate() { return $this->date; }",
"public function getedadPaciente(){\n\n\t if ($this->_edadPaciente === null && $this->paciente !== null){\n\n\t $anyoN = date(\"Y\", strtotime($this->paciente->fecha_nacimiento));\n\t $mesN = date(\"m\", strtotime($this->paciente->fecha_nacimiento)); \n\t $diaN = date(\"d\", strtotime($this->paciente->fecha_nacimiento)); \n\n\t $anyoA = date(\"Y\");\n\t $mesA = date(\"m\");\n\t $diaA = date(\"d\");\n\n\t $this->_edadPaciente = $anyoA - $anyoN;\n\n\t if($mesA < $mesN || ( ($mesA==$mesN) && ($diaN >= $diaA) ) )\n\t {\n\t \t$this->_edadPaciente -= 1;\n\t }\n\t \n\t }\n\n\t return $this->_edadPaciente;\n\t}",
"public function getEstudiante( ){\n\t\treturn $this->estudiante;\n\t}",
"public function getDoDate()\n {\n return $this->data['fields']['do_date'];\n }",
"public function getCumpleAttribute()\n {\n return strftime(\"%d de %B de %Y\", strtotime(date_format(date_create($this->fecha_nacimiento), 'd-m-Y')));\n }",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"function getDateAssigned() {\n\t\treturn $this->getData('dateAssigned');\n\t}",
"public function getFechaConversionEnergetica(){\n return $this->fechaConversionEnergetica;\n }",
"public function getDate(){\n\t\treturn $this->_date;\n\t}",
"function getDateResponseDue() {\n\t\treturn $this->getData('dateResponseDue');\n\t}",
"function buscar_menor_fecha () {\n global $DB;\n $fecha = $DB->get_record('report_user_statistics', array('id' => '1'), 'date');\n return $fecha;\n}",
"public function getDueDate(){\n return $this->getParameter('due_date');\n }",
"public function getDateI(){\n return $this->dateI;\n }",
"function getDate() {\n return $this->date;\n }",
"public static function calcular_edad($fecha_nacimiento){\r \r list($Y,$m,$d) = explode(\"-\",$fecha_nacimiento);\r return( date(\"md\") < $m.$d ? date(\"Y\")-$Y-1 : date(\"Y\")-$Y ); \r }",
"public function getDueDate()\n {\n if (array_key_exists(\"dueDate\", $this->_propDict)) {\n return $this->_propDict[\"dueDate\"];\n } else {\n return null;\n }\n }",
"public function date()\n {\n\n $date = date(\"Y-m-d\");\n\n $date = strtotime($date . \"-30 days\");\n\n $date = date('Y-m-d', $date);\n\n return $date;\n }",
"public function getProrationDate(): ?int\n {\n return $this->prorationDate;\n }",
"public function getDateDebutPaternite() {\n return $this->dateDebutPaternite;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }"
] | [
"0.7243417",
"0.7177636",
"0.7153885",
"0.71016335",
"0.70923674",
"0.6991168",
"0.68874466",
"0.66628057",
"0.6595865",
"0.64287716",
"0.6417571",
"0.6311442",
"0.62785",
"0.62435293",
"0.62262625",
"0.6182001",
"0.61490434",
"0.61438185",
"0.6134532",
"0.61174935",
"0.61091214",
"0.61038446",
"0.6102607",
"0.60927474",
"0.60864854",
"0.60788065",
"0.6074673",
"0.60661846",
"0.60298336",
"0.60293394",
"0.6009933",
"0.6005075",
"0.60011584",
"0.59966666",
"0.5988422",
"0.59734327",
"0.597206",
"0.59702367",
"0.5969964",
"0.5962969",
"0.5942401",
"0.5935148",
"0.59325844",
"0.5927789",
"0.59251565",
"0.5921094",
"0.5920782",
"0.5913513",
"0.5905973",
"0.5884617",
"0.5882125",
"0.5882125",
"0.58806556",
"0.58718175",
"0.5870071",
"0.58667964",
"0.5860052",
"0.5856431",
"0.5846265",
"0.58424956",
"0.5838837",
"0.5837441",
"0.58233213",
"0.5821895",
"0.58169866",
"0.5813334",
"0.5809909",
"0.57993865",
"0.5797388",
"0.57938534",
"0.57938534",
"0.57926464",
"0.5790829",
"0.578704",
"0.57832664",
"0.57806915",
"0.5779501",
"0.5779453",
"0.57734513",
"0.577087",
"0.57675636",
"0.57675636",
"0.57675636",
"0.57659173",
"0.576429",
"0.5764207",
"0.57628435",
"0.5761675",
"0.57615185",
"0.5758691",
"0.57565874",
"0.575026",
"0.5749605",
"0.57490665",
"0.574663",
"0.57457453",
"0.57435983",
"0.57435983",
"0.57435983",
"0.57435983"
] | 0.853909 | 0 |
Get the date naissance enfant. | public function getDateNaissanceEnfant() {
return $this->dateNaissanceEnfant;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDateNaiss()\n {\n return $this->dateNaiss;\n }",
"public function getDateNaissance()\n {\n return $this->date_naissance;\n }",
"public function getDateNaissanceEmploye() {\n return $this->dateNaissanceEmploye;\n }",
"public function getDatenaissance()\n {\n return $this->date_naissance;\n }",
"public function getDateNaiss() {\n return $this->dateNaiss;\n }",
"public function getDateNaissance() \n {\n return $this->dateNaissance;\n }",
"public function getDateEn() {\n return $this->date;\n }",
"public function getDate_en_ligne()\n {\n return $this->date_en_ligne;\n }",
"public function getDateDebut();",
"function datum_nu() {\n\t\t//\n\t\t$datestring \t\t\t\t= \"%d-%m-%Y\" ; \n\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\n\t\treturn date($datestring, $time);\n\t\t//-----/\n\t}",
"public function getDate_naissance_user()\r\n {\r\n return $this->date_naissance_user;\r\n }",
"public function getfechaentrega()\r\n {\r\n return $this->fechaentrega;\r\n }",
"public function getDateEmbauche() \n {\n return $this->dateEmbauche;\n }",
"public function getDateEmbauche() {\n return $this->dateEmbauche;\n }",
"public function getDateDebut() {\n\t\t\t$d = DateTime::createFromFormat(\"Y-m-d\", $this->attributs['dateDebut']);\n\t\t\tif ($d == false)\n\t\t\t\tdie(\"date de début '\".$this->attributs['dateDebut'].\"' non valide pour être une date\");\n\t\t\treturn $d;\n\t\t}",
"public function getFechaNacimiento() {\n\t\treturn $this->fechaNacimiento;\n\t}",
"private function dateDuJour(){\n return date(\"Y-m-d\");\n }",
"private function date()\n {\n $pubDate = $this->article->Journal->JournalIssue->PubDate;\n \n if (isset($pubDate->MedlineDate)) {\n $date = (string)$pubDate->MedlineDate;\n } else {\n $date = implode(' ', (array)$pubDate);\n }\n \n return $date;\n }",
"public function getNacAttribute()\n {\n return date(\"d/m/Y\", strtotime($this->fecha_nacimiento));\n }",
"public function fechaVigencia() // funcion que suma fecha usada para años biciestos\n\t{\n\n\t\t$fecha = $_GET['fecha'];\n\t\t$nuevafecha = strtotime('+365 day', strtotime($fecha));\n\t\t$nuevafecha = date('Y-m-d', $nuevafecha);\n\t\treturn $nuevafecha;\n\t}",
"function getFecha(){\n\t\t$anio = date(\"Y\");\n\t\t$dia = date(\"j\");\n\t\t$mes = date(\"m\");\n\t\t$fechactual = $anio.\"-\".$mes.\"-\".$dia;\n\t\treturn $fechactual;\n\t}",
"function datum_nu2() {\n //\n\t\t\t$datestring \t\t\t\t= \"%Y-%m-%d\" ; \n\t\t\t$time \t\t\t\t\t\t= time();\t\t\t\n\t\t\treturn mdate($datestring, $time);\n\t}",
"protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}",
"public function getDateEcheance(): ?string {\n return $this->dateEcheance;\n }",
"public function getDateEmprunt()\n {\n return $this->dateEmprunt;\n }",
"public function getIngAttribute()\n {\n return date(\"d/m/Y\", strtotime($this->fecha_ingreso));\n }",
"function fecha($cadena){\n\t\treturn date($cadena);\n\t}",
"public function getFechaNacimiento()\n {\n return $this->fecha_nacimiento;\n }",
"function getDateJour()\n {\n return $this->formatDateDBversLocal(date('Y-m-d'));\n }",
"public function getFechaConversionEnergetica(){\n return $this->fechaConversionEnergetica;\n }",
"public function getDate();",
"public function getDate();",
"public function getfecha()\r\n {\r\n return $this->fecha;\r\n }",
"function getDay()\r\n {\r\n return $this->dia;\r\n }",
"public function getIngresaAttribute()\n {\n return strftime(\"%d de %B de %Y\", strtotime(date_format(date_create($this->fecha_ingreso), 'd-m-Y')));\n }",
"public function getDateDebutPaternite() {\n return $this->dateDebutPaternite;\n }",
"public function getDateSeance() {\r\n return $this->dateSeance;\r\n }",
"public function getDateFecha()\n {\n return $this->dateFecha;\n }",
"function faireDate($pDate)\n\t\t\t{\n\t\t\t\t$jour = substr($pDate,8);\n\t\t\t\t$mois = substr($pDate,5);\n\t\t\t\t$annee = substr($pDate,0,4);\n\t\t\t\t$tabMois = array('Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre');\n\t\t\t\t$nvlDate = $jour.\" \".$tabMois[$mois-1].\" \".$annee;\n\t\t\t\treturn $nvlDate;\n\t\t\t}",
"function Fecha_estandar($IngresoFecha){\t\n$date = date_create($IngresoFecha);\nreturn date_format($date, 'd-m-Y');\n}",
"public function setDateNaissanceEnfant(DateTime $dateNaissanceEnfant = null) {\n $this->dateNaissanceEnfant = $dateNaissanceEnfant;\n return $this;\n }",
"function getFecha(){\n\t\treturn $this->fecha;\n\t}",
"public function getrep_fecha()\r\n {\r\n return $this->rep_fecha;\r\n }",
"function shwThaiDate($dte) { //where $dte is a Date format\r\n\t\treturn date(\"d-m-Y\",strtotime($dte));//formulate date format for displaying\r\n\t}",
"public function getDateEntree() {\n return $this->dateEntree;\n }",
"public function fecha();",
"function trenutnimjesec() {\n //DATE_RFC3339\n //return date(DATE_RFC3339);\n return date(\"F\");\n}",
"public function getDureeAnnuelle() {\n return $this->dureeAnnuelle;\n }",
"public function getDateEcriture(): DateTime\n {\n return $this->date_ecriture;\n }",
"public function getDateDernJMens() {\n return $this->dateDernJMens;\n }",
"function getFecha(){\n\t\t\treturn date(\"Y-m-d H:i:s\");\n\t}",
"public function dias_del_mes(){\n \n $fecha= date('Y-m-d');\n return; date('t',strtotime($fecha));\n \n}",
"public function date();",
"public function date();",
"function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}",
"function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}",
"function dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}",
"function date_fr($date_saisie){\n @list ($jour , $mois , $an) = split(\"[-./]\",$date_saisie);\n //inverse la date\n return($an.\"-\".$mois.\"-\".$jour);\n \n}",
"public function getDate(){\n\t\treturn $this->laDate;\n\t}",
"public function getStrDate()\n {\n return $this->getCurrentTranslation()->getStrDate();\n }",
"function getFecha() {\r\n return $this->fecha;\r\n }",
"public function getFecha()\n {\n return $this->c_fecha;\n }",
"function wpseed_get_the_date_german() {\n $months_de = ['Januar','Februar','März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'];\n return get_the_date('d.').' '.$months_de[intval(get_the_date('m'))-1].' '.get_the_date('Y');\n }",
"public function getManufDate()\n {\n return $this->ManufDate;\n }",
"function ultimo_dia_periodo() { \n\n $sql=\"select fecha_fin from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql); \n return $resul[0]['fecha_fin'];\n }",
"public function getDate(): string;",
"public function getDate() : string\r\n {\r\n return $this->format('Y-m-d');\r\n }",
"function setFechaNoSQL($FE_FechaNac)\n\t{\n\t\t$partes = explode(\"-\", $FE_FechaNac);\n\t\t$FE_FechaNac = $partes[2].'/'.$partes[1].'/'.$partes[0];\n\t\treturn $FE_FechaNac;\n\t}",
"public function getIngresoAttribute()\n {\n return strftime(\"%d/%b/%Y\", strtotime(date_format(date_create($this->fecha_ingreso), 'd-m-Y')));\n }",
"public function getFecha_inicio_joven() {\n return $this->fecha_inicio_joven;\n }",
"function date_diasemana($date,$type='') {\n\n if (!empty($date)) {\n\n #pega informações da data\n $date = en2timestamp($date);\n $wday = getdate($date);\n $wday = $wday['wday']; #usa apenas o dia da semana em números de 0 a 6\n\n switch($wday) {\n case 0: $s_min = 'dom'; $s_nor = 'domingo';\n break;\n case 1: $s_min = 'seg'; $s_nor = 'segunda';\n break;\n case 2: $s_min = 'ter'; $s_nor = 'terça';\n break;\n case 3: $s_min = 'qua'; $s_nor = 'quarta';\n break;\n case 4: $s_min = 'qui'; $s_nor = 'quinta';\n break;\n case 5: $s_min = 'sex'; $s_nor = 'sexta';\n break;\n case 6: $s_min = 'sab'; $s_nor = 'sábado';\n break;\n }\n\n $return = empty($type)?$s_nor:$s_min;\n\n return $return;\n\n }\n\n }",
"public function getFecha()\n {\n return $this->fecha;\n }",
"public function getFecha()\n {\n return $this->fecha;\n }",
"public function getReceptionDate();",
"function primer_dia_periodo() {\n\n $sql=\"select fecha_inicio from mocovi_periodo_presupuestario where actual=true\";\n $resul=toba::db('designa')->consultar($sql);\n return $resul[0]['fecha_inicio'];\n \n }",
"public function getNiceDate($date = null){\n\n\treturn ($date != null) ? date(\"Y,m,d\", strtotime($this->StartDate)) : null ; \n\n\t}",
"public static function dateSgbd()\n {\n return date('Y-m-d');\n }",
"public function display_date(){\n\t\t$display = date('d-m-Y');\n\t\treturn $display;\n\t}",
"public function getDate() {\n return @$this->attributes['date'];\n }",
"function datum($db_date) {\r\n return strftime('%d.%m.%Y', strtotime($db_date));\r\n }",
"function buscar_menor_fecha () {\n global $DB;\n $fecha = $DB->get_record('report_user_statistics', array('id' => '1'), 'date');\n return $fecha;\n}",
"function moisAnPasse()\n{\n\t$dateActuelle = date(\"d/m/Y\");\n\t@list($jour, $mois, $annee) = explode('/', $dateActuelle);\n\t$annee--;\n\t$moisActuel = $annee . $mois;\n\treturn $moisActuel;\n}",
"function getDateNotified() {\n\t\treturn $this->getData('dateNotified');\n\t}",
"public function getDATE_DEPOT()\n {\n return $this->DATE_DEPOT;\n }",
"public function getDate() { return $this->date; }",
"public function getFecha() {\n return $this->fecha;\n }",
"public function getFecha() {\n return $this->fecha;\n }",
"public function getReportedDate();",
"public function getFactuurdatum() {\n\t\treturn $this->factuurdatum;\n\t}",
"public function getCumpleAttribute()\n {\n return strftime(\"%d de %B de %Y\", strtotime(date_format(date_create($this->fecha_nacimiento), 'd-m-Y')));\n }",
"public function getDateF(){\n return $this->dateF;\n }",
"public function GetTodaysDate()\n\t\t{\n\t\t\t$TodaysSpecialDate = date('Y\\-F\\-d');\n\t\t\treturn $TodaysSpecialDate;\n\t\t}",
"static function show_dateFr($date) {\r\n echo Functions::convert_dateFr($date);\r\n }",
"public function getDateFinContrat() {\n return $this->dateFinContrat;\n }",
"public function getDateVisite() {\n return $this->dateVisite;\n }",
"function getDate( )\r\n\t{\r\n\t\treturn $this->date;\r\n\t}",
"public function nutriments() {\n\t\tfunction dateenlettre($date) {\n\t\t\t$split = explode(\"-\",$date);\n\t\t\t$jour = $split[2];\n\t\t\t$mois = $split[1];\n\t\t\t$annee = $split[0];\n\t\t\t$newTimestamp = mktime(12,0,0,$mois,$jour,$annee);\n\t\t\t \n\t\t\t$Jour = array(\"Dimanche\",\"Lundi\",\"Mardi\",\"Mercredi\",\"Jeudi\",\"Vendredi\",\"Samedi\");\n\t\t\t$Mois = array(\"\",\"Janvier\",\"Février\",\"Mars\",\"Avril\",\"Mai\",\"Juin\",\"Juillet\",\"Août\",\"Septembre\",\"Octobre\",\"Novembre\",\"Décembre\");\n\t\t\t \n\t\t\treturn $Jour[date(\"w\", $newTimestamp)] . ' ' . $jour . ' ' . $Mois[date(\"n\", $newTimestamp)] . ' ' . $annee;\n\t\t}\n\t\t\n\t\t// Fonction qui renvoi le nombre de jours entre deux dates\n\t\tfunction jours($date1, $date2){\n\t\t\t$diff = abs($date1 - $date2); \n\t\t\t$retour = array();\n\t\t \n\t\t\t$tmp = $diff;\n\t\t\t$retour['second'] = $tmp % 60;\n\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['second']) /60 );\n\t\t\t$retour['minute'] = $tmp % 60;\n\t\t\t\n\t\t\t$tmp = floor( ($tmp - $retour['minute'])/60 );\n\t\t\t$retour['hour'] = $tmp % 24;\n\t\t\t\t \n\t\t\t$tmp = floor( ($tmp - $retour['hour']) /24 );\n\t\t\t$retour['day'] = $tmp;\n\t\t\t\t \n\t\t\treturn $retour['day'];\n\t\t}\n\t\t\n\t\t\n\t\t$id = AuthComponent::user('id');\n\t\tsetlocale (LC_TIME, 'fr_FR.utf8','fra');\n\t\t$date = date('Y-m-d');\n\t\t\n\t\t$this->set('debut',null);\n\t\t$this->set('fin',null);\n\t\tif ($this->request->is('post')) {\n\t\t\t/* Vérification des informations envoyées */\n\t\t\t$message;\n\t\t\t$stop = false;\n\t\t\t$deb = $_POST['debut'];\n\t\t\t$fin = $_POST['fin'];\n\t\t\t\n\t\t\tif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$deb))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de début est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} elseif (!(preg_match(\"/^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$/\",$fin))) {\n\t\t\t\t$stop = true;\n\t\t\t\t$message = \"Erreur, la date de fin est invalide, elle doit être sous format 'YYYY-MM-DD'\";\n\t\t\t} else {\n\t\t\t\tif ($deb > $date ) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t} elseif ($fin > $date) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date d'aujourd'hui\";\n\t\t\t\t}\n\t\t\t\tif ($deb == $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être égale à la date de fin\";\n\t\t\t\t} elseif ($deb > $fin) {\n\t\t\t\t\t$stop = true;\n\t\t\t\t\t$message = \"Erreur, la date de debut ne peut être supérieure à la date de fin\";\n\t\t\t\t}\n\t\t\t\t$this->set('debut',$deb);\n\t\t\t\t$this->set('fin',$fin);\n\t\t\t}\n\t\t\t/* fin vérif */\n\t\t\tif ($stop) {\n\t\t\t\t$this->Session->setFlash(__($message));\n\t\t\t} else {\n\t\t\t\t$fin = $fin . ' 23:59:59';\n\t\t\t\t$repas = $this->Suivialimentaire->find('all',array('conditions' => array('AND' => array(\n\t\t\t\t\t\t\t\tarray('id_user' => $id),\n\t\t\t\t\t\t\t\tarray('Suivialimentaire.created BETWEEN ? AND ?' => array($deb, $fin))\n\t\t\t\t)),'order' => array('Suivialimentaire.created DESC') ));\n\t\t\t\t$temp = $repas;\n\t\t\t\t$i = 0;\n\t\t\t\tforeach ($repas as $r) {\n\t\t\t\t\t$temp[$i]['Aliment']= $this->Aliment->find('first', array('conditions' => array('Aliment.id' => $r['Suivialimentaire']['id_aliment'])));\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$repas = $temp;\n\t\t\t\t$nutriments = array();\n\t\t\t\t$descri = $this->Constituantaliment->query(\"select name from constituantaliments join donneescompilees on constituantaliments_id = constituantaliments.id where aliments_id = 1000\");\n\t\t\t\tforeach ($descri as $desc) {\n\t\t\t\t\t$nutriments[]['nom'] = $desc['constituantaliments']['name'];\n\t\t\t\t}\n\t\t\t\tfor ($i = 0; $i < 57; $i++) $nutriments[$i]['valeur'] = 0;\n\t\t\t\tforeach ($repas as $rep) {\n\t\t\t\t\tfor ($i = 0; $i < 57; $i++) {\n\t\t\t\t\t\tif (!empty($rep['Aliment'])) {\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($rep['Aliment']['Donneesaliment'][$i]['valmoy'] * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t$valsplit = explode(\"@\", $rep['Alimhorsclassification']['nutri']);\n\t\t\t\t\t\t\t$valresul = $valsplit[$i];\n\t\t\t\t\t\t\t$nutriments[$i]['valeur'] = $nutriments[$i]['valeur'] + ($valresul * $rep['Suivialimentaire']['quantite'] * $rep['Suivialimentaire']['portion']/100) * count(explode(\"@\",$rep['Suivialimentaire']['nomSA']));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$this->set('repas',$repas);\n\t\t\t\t$this->set('nutriments',$nutriments);\n\t\t\t\t$time1 = strtotime($deb);\n\t\t\t\t$time2 = strtotime($fin);\n\t\t\t\t$e=jours($time1, $time2);\n\t\t\t\t$this->set('joursDiff',$e);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"function getEyes_showDate() {\n # === Deutsche Wochentage \n $a_days[0] = 'Sonntag';\n $a_days[1] = 'Montag';\n $a_days[2] = 'Dienstag';\n $a_days[3] = 'Mittwoch';\n $a_days[4] = 'Donnerstag';\n $a_days[5] = 'Freitag';\n $a_days[6] = 'Samstag';\n $s_day = $a_days[date('w')];\n \n # === Aktueller Zeitstempel \n $s_date = date('j.n.Y');\n $s_time = date('G:i');\n \n # === Ausgabe des Datums \n echo \"Heute ist $s_day, der $s_date, es ist $s_time Uhr.\";\n}",
"function convert_date( $uglydate ){\n\t$date = new DateTime( $uglydate );\n\treturn $nicedate = $date->format('F j, Y');\n}",
"function getDate() {\n return $this->date;\n }"
] | [
"0.7512473",
"0.75080717",
"0.7395183",
"0.73594064",
"0.7337562",
"0.7324058",
"0.72760427",
"0.7159078",
"0.7054945",
"0.7036829",
"0.68552494",
"0.68008226",
"0.67763877",
"0.6747776",
"0.6722611",
"0.6709568",
"0.6709434",
"0.66936415",
"0.6635982",
"0.66233915",
"0.6611846",
"0.66107994",
"0.6606663",
"0.65976995",
"0.65703166",
"0.6553753",
"0.65381247",
"0.65177333",
"0.6496446",
"0.64838743",
"0.64812315",
"0.64812315",
"0.6481136",
"0.6471153",
"0.64674044",
"0.64257556",
"0.6417239",
"0.6408435",
"0.63955057",
"0.6392335",
"0.6376395",
"0.6370254",
"0.63685066",
"0.6315747",
"0.6313619",
"0.6292702",
"0.6288695",
"0.6288601",
"0.6287598",
"0.6285931",
"0.6285894",
"0.62762797",
"0.6271012",
"0.6271012",
"0.626361",
"0.626361",
"0.626361",
"0.6263573",
"0.6253949",
"0.6244741",
"0.6243878",
"0.6232712",
"0.6228926",
"0.6221695",
"0.6221246",
"0.62084645",
"0.62059414",
"0.62005275",
"0.6200337",
"0.61996436",
"0.6193225",
"0.6191148",
"0.6191148",
"0.61883336",
"0.6181069",
"0.6180201",
"0.617604",
"0.6175363",
"0.6164157",
"0.61554575",
"0.6155007",
"0.61371124",
"0.61368054",
"0.612915",
"0.6123498",
"0.61194533",
"0.61194533",
"0.61175954",
"0.6115415",
"0.61075366",
"0.60951483",
"0.60902834",
"0.60901564",
"0.6088217",
"0.60853094",
"0.6083807",
"0.607821",
"0.60766184",
"0.6075014",
"0.6067183"
] | 0.8442179 | 0 |
Get the dern j. | public function getDernJ() {
return $this->dernJ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected function getJour()\n{\nreturn substr($this->getDateSysteme(), 8, 2);\t\n}",
"public function getJadwalDdtk()\n {\n return $this->jadwal_ddtk;\n }",
"public function getDateDernJMens() {\n return $this->dateDernJMens;\n }",
"function JD($year, $month, $day)\n {\n // ref: J. Meeus, Astronomical Algorithms\n $y = $year; $m = $month; $d = $day;\n if ($m <= 2) {\n $y = $y - 1;\n $m = $m + 12;\n }\n $a = floor($y/100);\n $b = 2 - $a + floor($a/4);\n $JD = floor(365.25*($y+4716)) + floor(30.6001*($m+1)) + $d + $b - 1524.5;\n return $JD;\n }",
"function getJulianDate()\r\n {\r\n return Data_Calc::dataJuliana($this->dia, $this->mes, $this->ano);\r\n }",
"function get_jt($j){\n\t\t$type = \"Private Job\";\n\t\tswitch($j){\n\t\t\tcase \"BJ\": $type = \"Bus Jobs\"; break;\n\t\t\tcase \"VM\": $type = \"Vehicle Maintain\"; break;\n\t\t\tcase \"M\": $type = \"Institute Maintainance\"; break;\n\t\t\tcase \"TRG\": $type = \"Training (Full Time)\"; break;\n\t\t\tcase \"PRG\": $type = \"Training (Part Time)\"; break;\n\t\t\tcase \"PR\": $type = \"Production\"; break;\n\t\t\tcase \"STC\": $type = \"Special Training Course\"; break;\n\t\t\tcase \"VTI\": $type = \"Borella Institute\"; break;\n\t\t\tcase \"DP\": $type = \"Director Bunglow\"; break;\n\t\t}\n\t\treturn $type;\n\t}",
"function getDateJour()\n {\n return $this->formatDateDBversLocal(date('Y-m-d'));\n }",
"public function getFrmCode($j)\n {\n // elseif ($j == 2) $kode_frm = 'FRM-09b' ;\n // elseif ($j == 3) $kode_frm = 'FRM-10' ;\n // elseif ($j == 4) $kode_frm = 'FRM-11' ;\n // elseif ($j == 5) $kode_frm = 'FRM-12' ;\n // elseif ($j == 6) $kode_frm = 'FRM-13' ;\n // elseif ($j == 7) $kode_frm = 'FRM-14' ;\n // elseif ($j == 8) $kode_frm = 'FRM-15' ;\n // elseif ($j == 9) $kode_frm = 'FRM-16' ;\n // elseif ($j == 10) $kode_frm = 'FRM-17' ;\n // return $kode_frm;\n echo \"2\";\n }",
"public function getJambanDifabel()\n {\n return $this->jamban_difabel;\n }",
"function getJname()\n {\n return 'phpbb31';\n }",
"public function getD()\n {\n return $this->D;\n }",
"public function getNummer() {\n\t\treturn $this->nummer;\n\t}",
"public function getJadwalKesehatan()\n {\n return $this->jadwal_kesehatan;\n }",
"private function j() {\n }",
"function getDateJhjjmmtt() {\n\t\n\t$date \t= getdate();\n\t$year \t= $date['year'];\n\t$mon \t= $date['mon'];\n $day\t\t= $date['mday'];\n \n\tif( $mon < \"10\" ) \t\t$mon = \"0\".$mon;\n\tif( $day < \"10\" )\t\t$day = \"0\".$day;\n\t\n\t$moddate \t= $year.$mon.$day;\n\n\treturn $moddate;\n}",
"public function getD() {}",
"public function getLede(): string\n {\n return $this->lede;\n }",
"public function getACerminJambanP()\n {\n return $this->a_cermin_jamban_p;\n }",
"public function getActualJadwal()\n {\n return $this->actualJadwal;\n }",
"private function getTijd($datum_tijd) {\n date_default_timezone_set('Europe/London');\n $tijd = date('H:i', strtotime($datum_tijd));\n return $tijd;\n }",
"function islamic_to_jd($mo,$da,$yr) {\n\t\treturn ( $da + ceil(29.5*($mo-1)) + ($yr-1)*354 +\n\t\t\tfloor((3+(11*$yr))/30)+ ISLAMIC_EPOCH - 1);\n\t}",
"public function getTipeJamban()\n {\n return $this->tipe_jamban;\n }",
"public function getThnDibangun()\n {\n return $this->thn_dibangun;\n }",
"function getDay()\r\n {\r\n return $this->dia;\r\n }",
"public function keliling()\n {\n return 2*($this->panjang + $this->lebar);\n }",
"static function hijriToJulian($month, $day, $year) {\n return ($day + ceil(29.5 * ($month - 1)) + ($year - 1) * 354 + floor((3 + (11 * $year)) / 30) + HIJRI_EPOCH) - 1;\n }",
"public function getPanjRengM()\n {\n return $this->panj_reng_m;\n }",
"public function getMerk() \t\t\t{\treturn $this->merk;\t}",
"private function getDatum($datum_tijd) {\n date_default_timezone_set('Europe/London');\n setlocale(LC_ALL, 'nl_NL');\n $datum = strftime('%e %B %Y', strtotime($datum_tijd));\n return $datum;\n }",
"public function getPanjang()\n {\n return $this->panjang;\n }",
"public function getnom() {\n\t\treturn $this->nom;\n\t}",
"function dCost($i,$j){\n\t\t\t\treturn $GLOBALS[\"diagCostsTable\"][$i][$j];\n\t\t\t}",
"public function jalan() {\n return \"Hewan ini berjalan<br/>\";\n }",
"public function getJmlJambanLTg()\n {\n return $this->jml_jamban_l_tg;\n }",
"public function getRujukanDdtk()\n {\n return $this->rujukan_ddtk;\n }",
"public function getJmlJambanLpTg()\n {\n return $this->jml_jamban_lp_tg;\n }",
"public function getJind()\n {\n return $this->hasOne(JerarquiaIndicador::className(), ['jind_id' => 'jind_id']);\n }",
"public function get_nom()\n {\n return $this->_nom;\n }",
"public function get_nom()\n {\n return $this->_nom;\n }",
"function getCurrentDayInMonthNumber ()\n\t{\n\t\treturn date ('j');\n\t}",
"function m_get_jawaban($id_sk, $nipg, $id_kuesioner){\n\t\treturn $this->db->query('Select jawaban from tb_respon_kuesioner where id_sk = '.$id_sk.' AND nipg='.$nipg.' AND id_kuesioner = '.$id_kuesioner.'');\n\t}",
"public function getD(int $i):Number{\n\t\t$number = $this->getY($i)->copy();\n\t\treturn $number->add($this->getH($i)->mul($this->getH($i))->mul(new RationalNumber(1, 6))->mul($this->getM($i))->negate());\n\t}",
"public function getLieu(): string\r\n {\r\n return $this->Lieu;\r\n }",
"function EdtDuJour($tab_data, $jour, $flags) \r\n{\r\n\t$result = \"\";\r\n\tif ($flags & HORIZONTAL) {\r\n\t\t$result = EdtDuJourHorizontal($tab_data, $jour, $flags);\r\n\t}\r\n\telse {\r\n\t\t$result = EdtDuJourVertical($tab_data, $jour, $flags);\r\n\t}\r\n\treturn $result;\r\n}",
"public function bersuara()\n {\n return \"DARAWET ANJING DAWET\";\n }",
"function mc_gregorian_to_jalali($gy,$gm,$gd,$mod=''){\n $g_d_m=array(0,31,59,90,120,151,181,212,243,273,304,334);\n if($gy>1600){\n $jy=979;\n $gy-=1600;\n }else{\n $jy=0;\n $gy-=621;\n }\n $gy2=($gm>2)?($gy+1):$gy;\n $days=(365*$gy) +((int)(($gy2+3)/4)) -((int)(($gy2+99)/100)) +((int)(($gy2+399)/400)) -80 +$gd +$g_d_m[$gm-1];\n $jy+=33*((int)($days/12053)); \n $days%=12053;\n $jy+=4*((int)($days/1461));\n $days%=1461;\n if($days > 365){\n $jy+=(int)(($days-1)/365);\n $days=($days-1)%365;\n }\n $jm=($days < 186)?1+(int)($days/31):7+(int)(($days-186)/30);\n $jd=1+(($days < 186)?($days%31):(($days-186)%30));\n return($mod=='')?array($jy,$jm,$jd):$jy.$mod.$jm.$mod.$jd;\n}",
"public function getJmlJambanLpG()\n {\n return $this->jml_jamban_lp_g;\n }",
"function hebrew_to_jd($mo, $da, $yr) {\n\n\t\t$mos = hebrew_year_months($yr);\n\n\t\t$jd = HEBREW_EPOCH + hebrew_delay_1($yr) + hebrew_delay_2($yr) + $da + 1;\n\n\t\tif ($mo < 7 ) {\n\t\t\tfor ($m = 7; $m <= $mos; $m++) $jd += hebrew_month_days($m, $yr);\n\t\t\tfor ($m = 1; $m < $mo; $m++) $jd += hebrew_month_days($m, $yr);\n\t\t} else {\n\t\t\tfor ($m = 7; $m < $mo; $m++ ) $jd += hebrew_month_days($m, $yr);\n\t\t}\n\n\t\treturn ($jd);\n\t}",
"public function getJmlJambanPTg()\n {\n return $this->jml_jamban_p_tg;\n }",
"public function getNom()\n { \n \n return $this->_nom;\n }",
"public function getJmlJambanLG()\n {\n return $this->jml_jamban_l_g;\n }",
"public function getDni()\n {\n return $this->_dni;\n }",
"function getDec() {\n return $this->star->dec;\n }",
"function gregorian_to_jd($mo, $da, $yr) {\n\n\t\treturn (\tGREGORIAN_EPOCH - 1 +\n\t\t\t\t\t365 * ($yr-1) +\n\t\t\t\t\tfloor(($yr-1)/4) -\n\t\t\t\t\tfloor(($yr-1)/100) +\n\t\t\t\t\tfloor(($yr-1)/400) +\n\t\t\t\t\tfloor((367 * $mo - 362) / 12 ) +\n\t\t\t\t\t(($mo <= 2) ? 0 : (leap_gregorian($yr) ? -1 : -2 )) +\n\t\t\t\t\t$da );\n\n\t}",
"public function getIdJoueur() {\n\t\treturn $this->idJoueur;\n\t}",
"public function getJewelerSeasonHardcore()\n {\n return $this->getData(__FUNCTION__, 0);\n }",
"function j_jj($h1) {\r\n if ($h1 === 'o') {\r\n $duplo1 = 'j';\r\n return $duplo1;\r\n }\r\n }",
"public function getDni() {\r\n return $this->dni;\r\n }",
"public function getnomdomaine() {\r\n\t\treturn $this->nomdomaine;\r\n\t}",
"public function getJmlJambanPG()\n {\n return $this->jml_jamban_p_g;\n }",
"public function getAutNom(){\n\t\t\treturn $this->autnom;\n\t\t}",
"public function getJadwalDimulai();",
"function getNom() {\r\n\t\treturn $this->_nom;\r\n\t}",
"function getCanHour0($jdn) {\n\treturn CAN[($jdn-1)*2 % 10];\n}",
"public function getBelKe09()\n {\n return $this->bel_ke_09;\n }",
"public function kreverHendelse()\n {\n return $this->krever_hendelse;\n }",
"public static function getGregorian($j_y, $j_m, $j_d) {\n $jy = $j_y - 979;\n $jm = $j_m - 1;\n $j_day_no = (365 * $jy + static::div($jy, 33) * 8 + static::div($jy % 33 + 3, 4));\n for ($i = 0; $i < $jm; ++$i) {\n $j_day_no += static::$daysMonthJalali[$i];\n }\n $j_day_no += $j_d - 1;\n $g_day_no = $j_day_no + 79;\n $gy = (1600 + 400 * static::div($g_day_no, 146097)); # 146097 = (365 * 400 + 400 / 4 - 400 / 100 + 400 / 400)\n $g_day_no = $g_day_no % 146097;\n $leap = 1;\n if ($g_day_no >= 36525) { # 36525 = (365 * 100 + 100 / 4)\n $g_day_no --;\n $gy += (100 * static::div($g_day_no, 36524)); # 36524 = (365 * 100 + 100 / 4 - 100 / 100)\n $g_day_no = $g_day_no % 36524;\n if ($g_day_no >= 365) {\n $g_day_no ++;\n } else {\n $leap = 0;\n }\n }\n $gy += (4 * static::div($g_day_no, 1461)); # 1461 = (365 * 4 + 4 / 4)\n $g_day_no %= 1461;\n if ($g_day_no >= 366) {\n $leap = 0;\n $g_day_no --;\n $gy += static::div($g_day_no, 365);\n $g_day_no = ($g_day_no % 365);\n }\n for ($i = 0; $g_day_no >= (static::$daysMonthGregorian[$i] + ($i == 1 && $leap)); $i ++) {\n $g_day_no -= (static::$daysMonthGregorian[$i] + ($i == 1 && $leap));\n }\n return array($gy, $i + 1, $g_day_no + 1);\n }",
"public function getErn()\n {\n return $this->ern;\n }",
"public static function getJalali($g_y, $g_m, $g_d) {\n $gy = $g_y - 1600;\n $gm = $g_m - 1;\n $g_day_no = (365 * $gy + static::div($gy + 3, 4) - static::div($gy + 99, 100) + static::div($gy + 399, 400));\n for ($i = 0; $i < $gm; ++$i) {\n $g_day_no += static::$daysMonthGregorian[$i];\n }\n if ($gm > 1 && (($gy % 4 == 0 && $gy % 100 != 0) || ($gy % 400 == 0)))\n # leap and after Feb\n $g_day_no ++;\n $g_day_no += $g_d - 1;\n $j_day_no = $g_day_no - 79;\n $j_np = static::div($j_day_no, 12053); # 12053 = (365 * 33 + 32 / 4)\n $j_day_no = $j_day_no % 12053;\n $jy = (979 + 33 * $j_np + 4 * static::div($j_day_no, 1461)); # 1461 = (365 * 4 + 4 / 4)\n $j_day_no %= 1461;\n if ($j_day_no >= 366) {\n $jy += static::div($j_day_no - 1, 365);\n $j_day_no = ($j_day_no - 1) % 365;\n }\n for ($i = 0; ($i < 11 && $j_day_no >= static::$daysMonthJalali[$i]); ++$i) {\n $j_day_no -= static::$daysMonthJalali[$i];\n }\n return array($jy, $i + 1, $j_day_no + 1);\n }",
"public function getDni()\n {\n return $this->dni;\n }",
"public function getNom() : string{\n return $this->nom;\n }",
"public function getDni()\n\t{\n\t\treturn $this->dni;\n\t}",
"public final function getNom()\n\t{\n\t\treturn $this->nom;\n\t}",
"public function jewelry()\n {\n return static::randomElement(static::$jewelry);\n }",
"public function getJohnDoe()\n {\n \tif (null === $this->johnDoe)\n \t{\n\t $path = __DIR__ . '/vcards/JohnDoe.vcf';\n \n $parser = new VCardParser();\n $vcards = $parser->importFromFile($path);\n \n $this->assertCount(1, $vcards);\n $this->johnDoe = $vcards[0];\n \t}\n\treturn $this->johnDoe;\n }",
"public function getFecha_inicio_joven() {\n return $this->fecha_inicio_joven;\n }",
"public function get_nom(){ return $this->_nom;}",
"public function get_nom(){ return $this->_nom;}",
"public function getJudgement(){\r\n \t$sql = ' select * from legal_judgment_main where id<=115278 and id>90000 ' ;\r\n \t$result = $this->_db->query($sql);\r\n \t$arr = $result->result_array();\r\n \treturn $arr;\r\n }",
"public function setDernJ(DateTime $dernJ = null) {\n $this->dernJ = $dernJ;\n return $this;\n }",
"public function generujKod() {\n\t\t$kod = Narzedzia::stworzWiersz(\n\t\t\t$this->getNazwa(), \n\t\t\t$this->getCenaJedn(),\n\t\t\t$this->getLiczba(),\n\n\t\t\t);\n\t\treturn $kod;\n\t}",
"public function getKieGuruCuciTangan()\n {\n return $this->kie_guru_cuci_tangan;\n }",
"public function getDddCell()\n {\n return $this->dddCell;\n }",
"public function getKommun()\n\t{\n\t\treturn $this->kommun;\n\t}",
"public function getNom_dep()\n {\n return $this->nom_dep;\n }",
"public function getNomLivre()\n {\n return $this->nomLivre;\n }",
"public function getEier()\n {\n return $this->delta_eier;\n }",
"public function getDoorNo() :string\n {\n return $this->doorNo;\n }",
"public function getDod();",
"public function kodebrgkeluar()\n {\n $query = $this->select('RIGHT(brgkeluar.id_brgkeluar,4) as id_brgkeluar', False)->find();\n\n if ($query != NULL) {\n // mengecek jk kode telah tersedia\n $data = max($query);\n $kode = $data['id_brgkeluar'] + 1;\n } else {\n $kode = 1;\n }\n\n $batas = str_pad($kode, 4, \"0\", STR_PAD_LEFT);\n $kodeTampil = \"BK\" . $batas;\n return $kodeTampil;\n }",
"public function getNom(): string\r\n {\r\n return $this->nom;\r\n }",
"public function getNom()\n\t{\n\t\treturn $this->nom;\n\t}",
"public function getDay()\n {\n return $this->_getDateValue('d');\n }",
"private function dateDuJour(){\n return date(\"Y-m-d\");\n }",
"public function getNom() { return $this->nom; }",
"public function getNom() \n {\n return $this->nom;\n }",
"public function getNom()\r\n {\r\n return $this->nom;\r\n }",
"public function getNom()\r\n {\r\n return $this->nom;\r\n }",
"public function getBelKe03()\n {\n return $this->bel_ke_03;\n }",
"function getName(){\r\n\t\t// Jesli nie zostaly pobrane dane o koalicji - pobiera je\r\n\t\tif(gettype($this->coalition) == 'boolean' && $this->coalition == false){\r\n\t\t\t$query = \"SELECT koalicja FROM \". TBL_KINGDOM\r\n\t\t\t.\" WHERE nazwa='{$this->kingdom}'\";\r\n\t\t\tif($result = mysql_query($query)){\r\n\t\t\t\t$row = mysql_fetch_array($result, MYSQL_ASSOC);\r\n\t\t\t\t$this->coalition = $row['koalicja'];\r\n\t\t\t\treturn $this->coalition;\r\n\t\t\t}else{\r\n\t\t\t\t$this->coalition = NULL;\r\n\t\t\t\treturn NULL;\r\n\t\t\t}\r\n\t\t\t// Zwraca pobrane wczesniej dane\r\n\t\t}else{\r\n\t\t\treturn $this->coalition;\r\n\t\t}\r\n\t}"
] | [
"0.69270754",
"0.62822056",
"0.6098791",
"0.60705477",
"0.60369456",
"0.5831282",
"0.5827111",
"0.5782242",
"0.5692093",
"0.5647546",
"0.5601024",
"0.55979085",
"0.5578962",
"0.55594116",
"0.5530348",
"0.55302525",
"0.54943615",
"0.54936814",
"0.5488831",
"0.5473183",
"0.545897",
"0.5455072",
"0.5429395",
"0.5420839",
"0.5414503",
"0.54127693",
"0.54025006",
"0.54023886",
"0.537946",
"0.5370689",
"0.5364718",
"0.5358795",
"0.53567886",
"0.535061",
"0.53067684",
"0.530635",
"0.53055197",
"0.53037703",
"0.53037703",
"0.52928525",
"0.52407813",
"0.5235064",
"0.5232552",
"0.5218549",
"0.5210173",
"0.5203034",
"0.51998836",
"0.51948655",
"0.5191622",
"0.5183665",
"0.5183656",
"0.5182518",
"0.51818496",
"0.51781297",
"0.5175578",
"0.5157845",
"0.5153992",
"0.5146744",
"0.5145376",
"0.5143382",
"0.513623",
"0.5120884",
"0.5120215",
"0.5112007",
"0.51023793",
"0.50980115",
"0.5097885",
"0.5090325",
"0.5088343",
"0.5085526",
"0.5080971",
"0.5080481",
"0.50791717",
"0.5073634",
"0.5073122",
"0.5070448",
"0.50641763",
"0.50641763",
"0.50601685",
"0.5054905",
"0.50523925",
"0.50513095",
"0.5050999",
"0.5050578",
"0.50471485",
"0.50471014",
"0.50470656",
"0.5038422",
"0.50365764",
"0.5036504",
"0.50285906",
"0.501754",
"0.5017069",
"0.50146276",
"0.5010926",
"0.5010485",
"0.50097257",
"0.50097257",
"0.50096864",
"0.5008071"
] | 0.8037811 | 0 |
Get the dispense travail. | public function getDispenseTravail() {
return $this->dispenseTravail;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTravailTemp() {\n return $this->travailTemp;\n }",
"public function setDispenseTravail($dispenseTravail) {\n $this->dispenseTravail = $dispenseTravail;\n return $this;\n }",
"public function getCodeMedecineTravail() {\n return $this->codeMedecineTravail;\n }",
"public function getEtabLieuTravail() {\n return $this->etabLieuTravail;\n }",
"public function getSiretLieuTrav() {\n return $this->siretLieuTrav;\n }",
"public function getIdLieuTravail() {\n return $this->idLieuTravail;\n }",
"public function showTrails()\n {\n return $this->load->model('Trail')->fetchTrails();\n }",
"public function getCodeUniteTempsTravail() {\n return $this->codeUniteTempsTravail;\n }",
"public function getTravelSector()\n {\n return $this->travelSector;\n }",
"public function getTravelSector()\n {\n return $this->travelSector;\n }",
"public function getCodeTravail(): ?string {\n return $this->codeTravail;\n }",
"public function getTelevision()\n {\n return $this->television;\n }",
"public function getOfficeT()\n {\n return $this->office_t;\n }",
"public function getTicket()\n {\n return $this->ticket;\n }",
"public function getTicket()\n {\n return $this->ticket;\n }",
"public function getTrip()\n {\n return isset($this->trip) ? $this->trip : null;\n }",
"public function getCustpo()\n {\n return $this->custpo;\n }",
"public function getCollisimoLaPoste()\n\t{\n\t\treturn $this->em->getRepository(\"VPMTransporteurBundle:Transporteur\")->findOneByNom(\"Colissimo La Poste\");\n\t}",
"public function getPriceTransport()\n {\n return isset($this->priceTransport) ? $this->priceTransport : null;\n }",
"public function getCofficeT()\n {\n return $this->coffice_t;\n }",
"public function getFreeTier()\n {\n return $this->free_tier;\n }",
"public function getTravailEffectif(): ?float {\n return $this->travailEffectif;\n }",
"public function getTreinen()\n {\n return $this->treinen;\n }",
"public function getExercice()\n {\n return $this->ligne->getSousCategorie()->getCategorie()->getBudget()->getExercice();\n }",
"public function getVenta()\r\n {\r\n return $this->_venta;\r\n }",
"public function getToiletCount()\n {\n return $this->toiletCount;\n }",
"public function getTitolareClinica() {\r\n return $this->_titolareClinica;\r\n }",
"public function getRaisonSocLieuTrav() {\n return $this->raisonSocLieuTrav;\n }",
"public function getTierItem()\n {\n return $this->getItem()->getTierItem();\n }",
"public function getBureauDistributeurLieuTrav() {\n return $this->bureauDistributeurLieuTrav;\n }",
"public function getEtat()\n {\n return $this->etat;\n }",
"public function getCurrentInvestmentLegalEntity()\n {\n $currentLegalEntity = $this->getCurrentLegalEntity();\n\n return null !== $currentLegalEntity && $currentLegalEntity->isInvestmentVehicule() ? $currentLegalEntity : null;\n }",
"public function getReceipt()\n {\n return $this->basket->receipt()->firstOrFail();\n }",
"public function getTonicDiscount()\n {\n }",
"function get_teaser() \t{\n \t\treturn $this->teaser;\n \t}",
"public function getCurrentTillDetail(Request $request) {\n try {\n $restaurant_token = getRestaurantToken();\n $url = Config::get('pos.base_path').'tills/current?restaurant_token='.$restaurant_token.'&provider_token='.Config::get('pos.provider_token');\n $response = Curl::to($url)->get();\n return customResponse(Config::get(\"http_status.OK\"), true, \"current till detail\",json_decode($response));\n } catch (\\Exception $e) {\n return customResponse(Config::get(\"http_status.ISE\"), false, \"ISE\", new stdClass());\n }\n }",
"public function getTicket()\n {\n //Query untuk mengambil data semua ticket\n return $this->db->get('ticket');\n }",
"public function getTitolo()\n {\n return $this->titolo;\n }",
"public function getTees() {\n\t\treturn $this->registration ? $this->registration->tees : $this->practice->tees;\n\t}",
"public function getCedente() {\n return $this->oCedente;\n }",
"public function getMontant_vente()\n {\n return $this->montant_vente;\n }",
"public function getFreight()\n {\n return $this->freight;\n }",
"public function getTransportation()\n {\n return $this->_transportation;\n }",
"public function getInvoiceeTradeParty()\n {\n return $this->invoiceeTradeParty;\n }",
"public function getSocietetierce()\n {\n return $this->societetierce;\n }",
"public function lireTout()\r\n {\r\n return $this->executerLecture(\r\n 'select * from T_BILLET order by BIL_ID desc');\r\n }",
"public function index()\n {\n $telefone = Telefone::with(['perfils','operadoras'])->latest()->get();\n return $telefone;\n }",
"public function holdingTank(){ return $this->APICall( 'holdingTank', \"Could note retrieve the web holding tank rows\" ); }",
"public function getCLIENTE()\r\n {\r\n return $this->CLIENTE;\r\n }",
"public function get_etat(){ return $this->_etat;}",
"public function getTicketPrice() {\n return $this->get(self::TICKETPRICE);\n }",
"public function getTipRtbus() {\n return $this->get(self::TIP_RTBUS);\n }",
"public function getEstudiante( ){\n\t\treturn $this->estudiante;\n\t}",
"public function getTitolo() {\n return $this->titolo;\n }",
"public function getDetalle()\n {\n return $this->detalle;\n }",
"public function getDpto()\n {\n return $this->dpto;\n }",
"public function getTelefone()\n {\n return $this->telefone;\n }",
"public function getCible()\n {\n return $this->cible;\n }",
"public function getTicket_price()\n {\n return $this->ticket_price;\n }",
"public function getDeparture(): string;",
"public function getParticularite()\n {\n return $this->particularite;\n }",
"public function getTelefone()\n {\n return $this->telefone;\n }",
"public function tonnage() {\r\n\t\tif ($this->isStarship()) {\r\n\t\t\treturn $this->techData['tonnage'];\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}",
"public function getTopTier($clinic_id) {\n $Toptier = $this->find('first', array(\n 'conditions' => array(\n 'TierSetting.clinic_id' => $clinic_id),\n 'order' => array('TierSetting.points desc'),\n 'fields' => array('TierSetting.*')\n ));\n return $Toptier;\n }",
"public function getPosteRent(): ?string {\n return $this->posteRent;\n }",
"public function getPosteRent(): ?string {\n return $this->posteRent;\n }",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"public function getMontantTva() {\n return $this->montantTva;\n }",
"public function getTailles(){\n return $this->db->get($this->taille)->result();\n }",
"public function show(accidentsTravail $accidentsTravail)\n {\n //\n }",
"public function getDetalle(){\n\t\treturn $this->detalle;\n\t}",
"public function getTicketingDetails()\n {\n return isset($this->TicketingDetails) ? $this->TicketingDetails : null;\n }",
"public function getCouleur()\n {\n return $this->couleur;\n }",
"public function getComplementLieuTrav() {\n return $this->complementLieuTrav;\n }",
"public function getCurrentLegalEntity()\n {\n if ($this->session->has(self::SESSION_KEY_CURRENT_LEGAL_ENTITY)) {\n $legalEntityId = $this->session->get(self::SESSION_KEY_CURRENT_LEGAL_ENTITY);\n if (is_int($legalEntityId)) {\n return $this->em->getRepository('legal_entity')->find($legalEntityId);\n }\n }\n\n return null;\n }",
"public function getTicketid()\n {\n return $this->ticketid;\n }",
"public function getTripTeam()\n {\n return $this->trip_team;\n }",
"public function getCommune()\n {\n return $this->commune;\n }",
"public function getNutrition()\n\t{\n\t\t$this->loadManyToOne('nutrition');\n\t\treturn $this->nutrition;\n\t}",
"public function getMontantTtc() {\n return $this->montantTtc;\n }",
"public function getEtatVisite() {\n return $this->etatVisite;\n }",
"public function getDureeVisite() {\n return $this->dureeVisite;\n }",
"public function getTelefone()\n\t{\n\t\treturn $this->telefone;\n\t}",
"public function getMontantTtc()\n {\n $montant_ttc = $this->montant;\n\n foreach ($this->tvas as $tva) {\n $montant_ttc += $tva->getMontantTva();\n }\n\n return $montant_ttc;\n }",
"public function getDeparture()\n {\n return isset($this->Departure) ? $this->Departure : null;\n }",
"public function getDeparture()\n {\n return isset($this->Departure) ? $this->Departure : null;\n }",
"public function entregaActual()\n {\n return $this->hasOne('App\\Entrega', 'codigo', 'codigo')->whereNull('fecha_retiro')->latest();\n }",
"public function getTarget()\n {\n return $this->target instanceof CartDiscountTargetBuilder ? $this->target->build() : $this->target;\n }",
"public function getTarget()\n {\n return $this->target instanceof CartDiscountTargetBuilder ? $this->target->build() : $this->target;\n }",
"public function getTarget()\n {\n return $this->target instanceof CartDiscountTargetBuilder ? $this->target->build() : $this->target;\n }",
"public function getENTETE()\n {\n return $this->ENTETE;\n }",
"public function getTELEFONOC()\r\n {\r\n return $this->TELEFONOC;\r\n }",
"public function getWorkflowTicket()\n {\n return $this->getValue('workflowTicket');\n }",
"public function getWorkflowTicket()\n {\n return $this->getValue('workflowTicket');\n }",
"public function getCosto()\n {\n return $this->costo;\n }",
"public function getCilindrada()\n {\n return $this->cilindrada;\n }",
"function getEstanteria(){\r\n return $this->estanteria;\r\n }",
"function getDesc_teleco()\n {\n if (!isset($this->sdesc_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->sdesc_teleco;\n }",
"public function getSecurityDeposit()\n {\n return $this->unit->securityDeposit;\n }",
"public function getCostPerTraveledHour()\n {\n return $this->cost_per_traveled_hour;\n }"
] | [
"0.6525956",
"0.6442547",
"0.62703556",
"0.6174497",
"0.58505577",
"0.58198637",
"0.5750352",
"0.5749795",
"0.5731538",
"0.5731538",
"0.56425065",
"0.5496034",
"0.5486302",
"0.54676",
"0.54676",
"0.54338205",
"0.5422359",
"0.54079294",
"0.53944284",
"0.5391913",
"0.5383659",
"0.53506935",
"0.5347605",
"0.5308743",
"0.52864057",
"0.5255359",
"0.5254164",
"0.52524084",
"0.5247088",
"0.5240371",
"0.52318704",
"0.5224152",
"0.5209648",
"0.5199136",
"0.51932836",
"0.5192232",
"0.51880485",
"0.51588297",
"0.51500094",
"0.5143985",
"0.5141073",
"0.51225233",
"0.51207924",
"0.51197255",
"0.5097911",
"0.5085199",
"0.50730145",
"0.5072646",
"0.506626",
"0.5062159",
"0.50560945",
"0.50548697",
"0.50547945",
"0.50449926",
"0.5040642",
"0.5035349",
"0.5027237",
"0.5024084",
"0.50120294",
"0.5007705",
"0.4999445",
"0.49948606",
"0.49936295",
"0.49918133",
"0.49889684",
"0.49889684",
"0.49857032",
"0.4977102",
"0.4968833",
"0.49636316",
"0.4956956",
"0.49550468",
"0.49517348",
"0.49392197",
"0.49382085",
"0.4935301",
"0.49321505",
"0.49256295",
"0.4924486",
"0.49237913",
"0.4919935",
"0.49197647",
"0.49160293",
"0.4912814",
"0.49026072",
"0.49026072",
"0.49018258",
"0.49001172",
"0.49001172",
"0.49001172",
"0.48962247",
"0.48934075",
"0.48927993",
"0.48927993",
"0.4889185",
"0.48844212",
"0.4875058",
"0.48711783",
"0.48695794",
"0.48671108"
] | 0.8750044 | 0 |
Get the etbl adresse1. | public function getEtblAdresse1() {
return $this->etblAdresse1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }",
"public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }",
"public function getAddress1()\n {\n return $this->fv_address1;\n }",
"public function getEmpAdresse1() {\n return $this->empAdresse1;\n }",
"public function getAddress1()\r\n {\r\n return $this->_address1;\r\n }",
"public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }",
"public function getAddress1()\n {\n return $this->address1;\n }",
"public function getAddress1()\n {\n return $this->address1;\n }",
"public function getAddress1()\n {\n return parent::getValue('address1');\n }",
"public function getAddressLine1(): ?string;",
"public function get_address_1( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_1', $context );\n\t}",
"public function getStreetAddress1()\n {\n return $this->street_address_1;\n }",
"public function setEtblAdresse1($etblAdresse1) {\n $this->etblAdresse1 = $etblAdresse1;\n return $this;\n }",
"public function setEtblAdresse1($etblAdresse1) {\n $this->etblAdresse1 = $etblAdresse1;\n return $this;\n }",
"public function getAddress1()\n {\n return $this->getValue('nb_icontact_prospect_address_1');\n }",
"public function getAddressLine2(): ?string;",
"public function getEmpAdresse2() {\n return $this->empAdresse2;\n }",
"public function getAddr()\n {\n return $this->get(self::_ADDR);\n }",
"public function getaddress(){\n $address = $this->_run('getaddress');\n return $address;\n }",
"public function get_adresse();",
"public function getReqAddress1()\n\t{\n\t\treturn $this->req_address1;\n\t}",
"public function getAddr()\n {\n return $this->addr->getAddr();\n }",
"public function getAddress2()\n {\n return parent::getValue('address2');\n }",
"public function getOrganizationAddress1() :string {\n\t\treturn($this->organizationAddress1);\n\t}",
"private function get_address()\n\t{\n\t\treturn $this->m_address;\n\t}",
"public function getAddress2()\n {\n\n return $this->fv_address2;\n }",
"public function getAddress();",
"public function getAddress();",
"public function getAddressLine3(): ?string;",
"public function getAddr() : string\n {\n return $this->addr;\n }",
"public function getAddress2()\n\t{\n\t\treturn $this->address2;\n\t}",
"function &street1( )\n {\n return $this->Street1;\n }",
"public function getAddress()\n {\n $res = $this->getEntity()->getAddress();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->getAddress();\n\t\t}\n return $res;\n }",
"public function getAddress1()\n {\n return $this->getParameter('billingAddress1');\n }",
"public function getAddress() {\n\t\t$address = current($this->getAddresses()->toArray());\n\t\treturn $address;\n\t}",
"public function getAddress() {}",
"public function get_adresse()\n {\n return $this->_adresse;\n }",
"public function getAddress2()\r\n {\r\n return $this->_address2;\r\n }",
"public function getAddr()\n {\n return $this->addr;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getPayerAddressStreet1() {\n\t\treturn $this->_getField(self::$PAYER_ADDRESS_STREET_1);\n\t}",
"public function getAdresse()\n {\n return $this->Adresse;\n }",
"public function getAdresse()\n {\n return $this->adresse;\n }",
"public function getAdresse()\n {\n return $this->adresse;\n }",
"function address() { return ($this->address); }",
"public function getAddress(){\n\t\treturn $this->sourceAddress;\n\t}",
"public function get_address_2( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_2', $context );\n\t}",
"public function getOldAddress(): string\n {\n return $this->old_address;\n }",
"public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }",
"public function getAddress()\n\t{\n\t\treturn $this->data['address'];\n\t}",
"public function getAdress()\n {\n return $this->adress;\n }",
"public function getAdress()\n {\n return $this->adress;\n }",
"public function getStreet1(): ?string\n {\n return $this->_street1;\n }",
"public function getAddress()\n {\n \treturn $this->address;\n }",
"public function getShippingAddress1()\n {\n return $this->getParameter('shippingAddress1');\n }",
"function getAddress($single){\n\t\t\t$list = $this -> makeRequest('GET', '/list', array(\n\t\t\t\t'password'=>$_SESSION['walletpass'],\n\t\t\t\t'confirmations'=>4\n\t\t\t\t));\n\n\t\t\tif($single){\n\t\t\t\treturn $list['addresses'][0]['address'];\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn $list['addresses'];\n\t\t\t}\n\t\t}",
"public function getAddress() {\n //return the value address\n return $this->Address;\n }",
"public function getAddress(): string\n {\n return $this->address;\n }",
"public function getStreetAddress2()\n {\n return $this->street_address_2;\n }",
"public function getAddress(){\r\n\t\treturn $this->address;\r\n\t}",
"public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}",
"public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}",
"public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }",
"public function getEventAddress() \n {\n return $this->_fields['EventAddress']['FieldValue'];\n }",
"public function getAddress()\n {\n return $this->get('address')->value;\n }",
"public function getAddress() {\n\t\treturn $this->address;\n\t}",
"public function getAddress() {\n\t\treturn $this->address;\n\t}",
"public function getAddress() {\n\t\t//return $this->findParentRow(new Model_DbTable_Address());\n\t\tif ($this->_address) { } else {\n\t\t\tforeach ($this->_rowset->getLoadRows(new Model_DbTable_Address(), 'address') as $row) {\n\t\t\t\tif ($row->id == $this->idAddress) {\n\t\t\t\t\t$this->_address = $row;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t }\n\t return $this->_address;\n\t}",
"public function getEtblTel() {\n return $this->etblTel;\n }",
"public function getEtblTel() {\n return $this->etblTel;\n }",
"public function getRef1() {\n return $this->_ref1;\n }",
"function &street2( )\n {\n return $this->Street2;\n }",
"public function getLocalAddress()\n {\n return $this->getKey('LocalAddress');\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n if (array_key_exists(\"address\", $this->_propDict)) {\n return $this->_propDict[\"address\"];\n } else {\n return null;\n }\n }",
"public function getNetworkAddress()\n\t{\n\t\treturn $this->first_ip;\n\t}",
"public function getAddress()\r\n {\r\n return $this->address;\r\n }",
"public function getTelefone1()\n {\n return $this->telefone1;\n }",
"public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }",
"public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }"
] | [
"0.73686236",
"0.73686236",
"0.71714777",
"0.7094793",
"0.7007656",
"0.6930471",
"0.6909322",
"0.6909322",
"0.6900906",
"0.67263323",
"0.66795975",
"0.6645541",
"0.66182274",
"0.66182274",
"0.65734017",
"0.6533087",
"0.6385606",
"0.63059896",
"0.62818587",
"0.6278872",
"0.6270116",
"0.6261021",
"0.6236516",
"0.6213414",
"0.61958396",
"0.6194757",
"0.61917305",
"0.61917305",
"0.6191272",
"0.6190516",
"0.61864656",
"0.6180716",
"0.6172728",
"0.61564714",
"0.61460334",
"0.6144758",
"0.61363345",
"0.61116827",
"0.6081703",
"0.60341513",
"0.60341513",
"0.60341513",
"0.60335475",
"0.60136056",
"0.59899735",
"0.59899735",
"0.5983114",
"0.5970724",
"0.5954987",
"0.5950472",
"0.5949397",
"0.5946295",
"0.5918224",
"0.5918224",
"0.59028876",
"0.5897696",
"0.58932245",
"0.5859411",
"0.5845639",
"0.5842025",
"0.5836203",
"0.5808834",
"0.5807584",
"0.5807584",
"0.57763773",
"0.5734326",
"0.57321095",
"0.57245946",
"0.57245946",
"0.5718128",
"0.57098025",
"0.57098025",
"0.57052785",
"0.5702984",
"0.5701736",
"0.5700614",
"0.5696566",
"0.568604",
"0.5685101",
"0.5660695",
"0.56594217",
"0.56594217",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919",
"0.5650919"
] | 0.80821997 | 1 |
Get the etbl adresse2. | public function getEtblAdresse2() {
return $this->etblAdresse2;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAddress2()\n {\n\n return $this->fv_address2;\n }",
"public function getAddress2()\n\t{\n\t\treturn $this->address2;\n\t}",
"public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }",
"public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }",
"public function getAddress2()\r\n {\r\n return $this->_address2;\r\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getEmpAdresse2() {\n return $this->empAdresse2;\n }",
"public function getAddress2()\n {\n return parent::getValue('address2');\n }",
"public function get_address_2( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_2', $context );\n\t}",
"public function getStreetAddress2()\n {\n return $this->street_address_2;\n }",
"public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }",
"public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }",
"public function getAddressLine2(): ?string;",
"public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }",
"public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }",
"public function getAddress2()\n {\n return $this->getParameter('billingAddress2');\n }",
"public function getPayerAddressStreet2() {\n\t\treturn $this->_getField(self::$PAYER_ADDRESS_STREET_2);\n\t}",
"public function getShippingAddress2()\n {\n return $this->getParameter('shippingAddress2');\n }",
"function &street2( )\n {\n return $this->Street2;\n }",
"public function getShipaddress2()\n {\n return $this->shipaddress2;\n }",
"public function getReqAddress2()\n\t{\n\t\treturn $this->req_address2;\n\t}",
"public function getEmpAdresse1() {\n return $this->empAdresse1;\n }",
"public function getBillingAddress2()\n {\n return $this->getParameter('billingAddress2');\n }",
"public function getStreet2(): ?string\n {\n return $this->_street2;\n }",
"public function getOrganizationAddress2() :?string {\n\t\treturn($this->organizationAddress2);\n\t}",
"public function getAddressLine1(): ?string;",
"public function getApplicantAddressTwo()\n {\n return $this->getProperty('applicant_address_two');\n }",
"public function getBilladdress2()\n {\n return $this->billaddress2;\n }",
"public function getAddress1()\n {\n return $this->fv_address1;\n }",
"public function getAddress1()\r\n {\r\n return $this->_address1;\r\n }",
"public function get_adresse();",
"public function getAddressLine3(): ?string;",
"public function getaddress(){\n $address = $this->_run('getaddress');\n return $address;\n }",
"public function getOldAddress(): string\n {\n return $this->old_address;\n }",
"public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }",
"public function getAddress1()\n {\n return parent::getValue('address1');\n }",
"public function getAddress();",
"public function getAddress();",
"public function getRef2() {\n return $this->_ref2;\n }",
"public function getAddr()\n {\n return $this->get(self::_ADDR);\n }",
"public function streetName2(): string\n {\n return $this->getData('Streetname2');\n }",
"public function getAddr()\n {\n return $this->addr->getAddr();\n }",
"public function getAddress()\n {\n $res = $this->getEntity()->getAddress();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->getAddress();\n\t\t}\n return $res;\n }",
"public function getAddress1()\n {\n return $this->address1;\n }",
"public function getAddress1()\n {\n return $this->address1;\n }",
"public function getAddress() {}",
"public function get_address_1( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_1', $context );\n\t}",
"public function getAdresse()\n {\n return $this->Adresse;\n }",
"private function get_address()\n\t{\n\t\treturn $this->m_address;\n\t}",
"public function getAddr() : string\n {\n return $this->addr;\n }",
"public function get_adresse()\n {\n return $this->_adresse;\n }",
"public function getAdresse()\n {\n return $this->adresse;\n }",
"public function getAdresse()\n {\n return $this->adresse;\n }",
"public function getAddress() {\n\t\t$address = current($this->getAddresses()->toArray());\n\t\treturn $address;\n\t}",
"public function setAddress2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->address2 !== $v) {\n $this->address2 = $v;\n $this->modifiedColumns[] = EventPeer::ADDRESS2;\n }\n\n\n return $this;\n }",
"public function getAddr()\n {\n return $this->addr;\n }",
"public function getAddress(){\n\t\treturn $this->sourceAddress;\n\t}",
"function address() { return ($this->address); }",
"public function getTelefone2()\n {\n return $this->telefone2;\n }",
"public function getAddress(): string\n {\n return $this->address;\n }",
"public function setEtblAdresse1($etblAdresse1) {\n $this->etblAdresse1 = $etblAdresse1;\n return $this;\n }",
"public function setEtblAdresse1($etblAdresse1) {\n $this->etblAdresse1 = $etblAdresse1;\n return $this;\n }",
"public function getLine2()\n {\n return (string) $this->json()->line2;\n }",
"public function getAdress()\n {\n return $this->adress;\n }",
"public function getAdress()\n {\n return $this->adress;\n }",
"public function getAddress()\n {\n \treturn $this->address;\n }",
"public function getExpr2()\n {\n return $this->expr2;\n }",
"public function getAddress()\n\t{\n\t\treturn $this->data['address'];\n\t}",
"public function getAttr2(){\r\n\t\treturn $this->attr2;\r\n\t}",
"public function getLine2(): ?string\n {\n return $this->line2;\n }",
"public function getLine2(): ?string\n {\n return $this->line2;\n }",
"public function getOrganizationAddress1() :string {\n\t\treturn($this->organizationAddress1);\n\t}",
"public function getMsgRef2() : string\n {\n return $this->msgRef2;\n }",
"public function setAddress2($fv_address2)\n {\n \tif(!empty($fv_address2))\n \t{\n \treturn $this->fv_address2 = $fv_address2;\n \t}\n \t$this->fv_error_message = $this->fv_error_message .'<br> - Direccion 2 '.ERROR_NULL;\n return $this->fv_address2=null;\n }",
"public function getAddress1()\n {\n return $this->getValue('nb_icontact_prospect_address_1');\n }",
"public function getAddress(){\r\n\t\treturn $this->address;\r\n\t}",
"public function get_list_address()\n\t{\n\t\treturn $this->list_address;\n\t}",
"public function getEtblTel() {\n return $this->etblTel;\n }",
"public function getEtblTel() {\n return $this->etblTel;\n }",
"public function getCodeRef2() {\n return $this->codeRef2;\n }",
"public function getAddress()\n {\n return $this->get('address')->value;\n }",
"public function getStreetAddress1()\n {\n return $this->street_address_1;\n }",
"public function getAddress() {\n //return the value address\n return $this->Address;\n }",
"public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}",
"public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}",
"function &street1( )\n {\n return $this->Street1;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"function getFieldPortalAddressStreet($value1 = null, $value2 = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_street');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_street');\n\t\t$tooltip = setToolTipNotification(\"street\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('street') === 'street' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><input type='text' name='streetNo' value='\".$value1.\"' id='streetNo' size='4' style='width:28%;'>\";\n\t\t\t$form_ret .= \"<input type='text' name='streetName' value='\".$value2.\"' id='streetName' size='12' class='srms-field \".(get_axl_req_fields('street') === 'street' ? 'input-text-required' : '').\"' style='width:70%;'></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}",
"public function getAddress()\n {\n if (array_key_exists(\"address\", $this->_propDict)) {\n return $this->_propDict[\"address\"];\n } else {\n return null;\n }\n }",
"public function getAddress()\r\n {\r\n return $this->address;\r\n }",
"public function getEventAddress() \n {\n return $this->_fields['EventAddress']['FieldValue'];\n }",
"public function getID2()\n\t{\n\t\treturn $this->id2;\n\t}",
"public function address(): string\n {\n return $this->address;\n }",
"public function getEtblCodePostal() {\n return $this->etblCodePostal;\n }",
"public function getShipmentReference2()\n {\n return isset($this->shipmentReference2) ? $this->shipmentReference2 : null;\n }",
"public function getAddress() {\n\t\treturn $this->address;\n\t}",
"public function getAddress() {\n\t\treturn $this->address;\n\t}"
] | [
"0.7431549",
"0.73629504",
"0.7295891",
"0.7295891",
"0.723625",
"0.71854764",
"0.71854764",
"0.71854764",
"0.71709996",
"0.7154719",
"0.71006495",
"0.70446587",
"0.69195265",
"0.68635994",
"0.68282074",
"0.6732893",
"0.6732893",
"0.6698613",
"0.655096",
"0.6514884",
"0.6429976",
"0.64118576",
"0.63699687",
"0.63074523",
"0.6231387",
"0.62224895",
"0.6202252",
"0.6186835",
"0.6181583",
"0.6131031",
"0.60854834",
"0.6073051",
"0.6069682",
"0.60651106",
"0.60422677",
"0.60286796",
"0.60174274",
"0.6010364",
"0.5971898",
"0.5971898",
"0.5968782",
"0.59592676",
"0.59484357",
"0.5948118",
"0.59338176",
"0.59330946",
"0.59330946",
"0.5930984",
"0.5906109",
"0.590152",
"0.5889411",
"0.58806074",
"0.5858168",
"0.5828042",
"0.5828042",
"0.57280874",
"0.5720473",
"0.5702231",
"0.56837595",
"0.5654918",
"0.5646787",
"0.56418353",
"0.5636331",
"0.5636331",
"0.5625803",
"0.5599458",
"0.5599458",
"0.5589967",
"0.5589319",
"0.5577718",
"0.5544054",
"0.55428195",
"0.55428195",
"0.5540932",
"0.55255705",
"0.5509407",
"0.5503053",
"0.5479915",
"0.54734445",
"0.5468359",
"0.5468359",
"0.54682934",
"0.5467008",
"0.54604816",
"0.5415364",
"0.5405777",
"0.5405777",
"0.5392556",
"0.5387811",
"0.538529",
"0.53773767",
"0.5367799",
"0.53673035",
"0.53591394",
"0.5353728",
"0.5350804",
"0.5348163",
"0.53422093",
"0.53422093"
] | 0.82021344 | 1 |
Get the etbl adresse3. | public function getEtblAdresse3() {
return $this->etblAdresse3;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAddressLine3(): ?string;",
"public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }",
"public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }",
"public function setEtblAdresse3($etblAdresse3) {\n $this->etblAdresse3 = $etblAdresse3;\n return $this;\n }",
"public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }",
"public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }",
"public function getAddr()\n {\n return $this->get(self::_ADDR);\n }",
"public function getaddress(){\n $address = $this->_run('getaddress');\n return $address;\n }",
"public function getAddressLine2(): ?string;",
"public function getBilladdress3()\n {\n return $this->billaddress3;\n }",
"private function get_address()\n\t{\n\t\treturn $this->m_address;\n\t}",
"public function getAddr()\n {\n return $this->addr->getAddr();\n }",
"public function getAddress();",
"public function getAddress();",
"public function getAddressLine1(): ?string;",
"public function get_adresse();",
"public function getOldAddress(): string\n {\n return $this->old_address;\n }",
"public function getAddr() : string\n {\n return $this->addr;\n }",
"public function getAddress() {}",
"public function getCodeRef3() {\n return $this->codeRef3;\n }",
"public function getAddress2()\n {\n\n return $this->fv_address2;\n }",
"public function getAddr()\n {\n return $this->addr;\n }",
"public function x_AVM_DE_GetExternalIPv6Address()\n {\n $result = $this->client->X_AVM_DE_GetExternalIPv6Address();\n if ($this->errorHandling($result, 'Could not ... from/to FRITZ!Box')) {\n return;\n }\n\n return $result;\n }",
"public function getTelefone3()\n {\n return $this->telefone3;\n }",
"public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }",
"public function getAddress()\n\t{\n\t\treturn $this->data['address'];\n\t}",
"public function getAddress2()\n {\n return parent::getValue('address2');\n }",
"public function getAddress2()\n\t{\n\t\treturn $this->address2;\n\t}",
"public function getAddress()\n {\n $res = $this->getEntity()->getAddress();\n\t\tif($res === null)\n\t\t{\n\t\t\tSDIS62_Model_DAO_Abstract::getInstance($this::$type_objet)->create($this);\n\t\t\treturn $this->getEntity()->getAddress();\n\t\t}\n return $res;\n }",
"public function getAddress() {\n\t\t$address = current($this->getAddresses()->toArray());\n\t\treturn $address;\n\t}",
"public function getEtblTel() {\n return $this->etblTel;\n }",
"public function getEtblTel() {\n return $this->etblTel;\n }",
"public function getAddress1()\n {\n return $this->fv_address1;\n }",
"public function get_adresse()\n {\n return $this->_adresse;\n }",
"public function getAddress(){\n\t\treturn $this->sourceAddress;\n\t}",
"public function getAddress()\n {\n \treturn $this->address;\n }",
"public function getEmpAdresse2() {\n return $this->empAdresse2;\n }",
"public function getEmpAdresse1() {\n return $this->empAdresse1;\n }",
"public function getExpr3()\n {\n return $this->expr3;\n }",
"public function getAddress() {\n //return the value address\n return $this->Address;\n }",
"function address() { return ($this->address); }",
"public function getLine3()\n {\n return (string) $this->json()->line3;\n }",
"public function getAddress2()\r\n {\r\n return $this->_address2;\r\n }",
"public function getAddress()\n {\n if (array_key_exists(\"address\", $this->_propDict)) {\n return $this->_propDict[\"address\"];\n } else {\n return null;\n }\n }",
"public function get_address_2( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_2', $context );\n\t}",
"public function getAddress(){\r\n\t\treturn $this->address;\r\n\t}",
"public function _getLotNo3() {\n\t\treturn $this->_lotNo3;\n\t}",
"public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}",
"public function getAddress()\n\t{\n\t\treturn $this->address;\n\t}",
"public function getAdresse()\n {\n return $this->Adresse;\n }",
"public function getAddress(): string\n {\n return $this->address;\n }",
"public function getCodeArticle3() {\n return $this->codeArticle3;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getAddress2()\n {\n return $this->address2;\n }",
"public function getAddress1()\n {\n return parent::getValue('address1');\n }",
"public function getAdresse()\n {\n return $this->adresse;\n }",
"public function getAdresse()\n {\n return $this->adresse;\n }",
"public function getAddress() {\n\t\treturn $this->address;\n\t}",
"public function getAddress() {\n\t\treturn $this->address;\n\t}",
"public function getProdAlt3()\n {\n return $this->prod_alt3;\n }",
"public function getItemAddress()\n {\n return $this->item_address;\n }",
"public function getEventAddress() \n {\n return $this->_fields['EventAddress']['FieldValue'];\n }",
"public function getEtblCodePostal() {\n return $this->etblCodePostal;\n }",
"public function get_list_address()\n\t{\n\t\treturn $this->list_address;\n\t}",
"public function getAdress()\n {\n return $this->adress;\n }",
"public function getAdress()\n {\n return $this->adress;\n }",
"public function getCodeRef3(): ?string {\n return $this->codeRef3;\n }",
"public function getAttr3(){\r\n\t\treturn $this->attr3;\r\n\t}",
"public function getAddress() {\n if($this->isCash) {\n return $this->getPdfUrl(Dotpay::getInstance()->getSettings()->getPaymentUrl());\n } else {\n return $this->getBankPage(Dotpay::getInstance()->getSettings()->getPaymentUrl());\n }\n }",
"public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }",
"public function getStreetAddress2()\n {\n return $this->street_address_2;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\r\n {\r\n return $this->address;\r\n }",
"public function getAddress()\n {\n return $this->get('address')->value;\n }",
"public function get_adresse_ip()\n {\n return $this->adresse_ip;\n }",
"public function get_address_1( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_1', $context );\n\t}",
"public function getNetworkAddress()\n\t{\n\t\treturn $this->first_ip;\n\t}",
"public function getAddress1()\r\n {\r\n return $this->_address1;\r\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }",
"public function getAddress()\n {\n return $this->address;\n }"
] | [
"0.6737898",
"0.6538779",
"0.6538779",
"0.6535877",
"0.651964",
"0.651964",
"0.5945514",
"0.588931",
"0.5858207",
"0.5842814",
"0.57581216",
"0.5730754",
"0.5711425",
"0.5711425",
"0.5709995",
"0.5687225",
"0.56675434",
"0.5667391",
"0.56423074",
"0.5632281",
"0.5622185",
"0.5603617",
"0.5596224",
"0.55899256",
"0.55574316",
"0.5550826",
"0.5510637",
"0.54982555",
"0.54931474",
"0.5481421",
"0.5443514",
"0.5443514",
"0.5435389",
"0.54323375",
"0.54192144",
"0.5417505",
"0.5411214",
"0.5408543",
"0.54058903",
"0.54011565",
"0.5380763",
"0.53740615",
"0.53706104",
"0.5359323",
"0.5355331",
"0.5340662",
"0.5337096",
"0.5330486",
"0.5330486",
"0.53143686",
"0.5311309",
"0.52982306",
"0.52942306",
"0.52942306",
"0.52942306",
"0.52858883",
"0.5278138",
"0.5278138",
"0.52668726",
"0.52668726",
"0.52458817",
"0.524534",
"0.52441585",
"0.5234639",
"0.5230555",
"0.5228929",
"0.5228929",
"0.5226256",
"0.51965684",
"0.51964116",
"0.5190311",
"0.5188233",
"0.5181969",
"0.5176847",
"0.51653093",
"0.51631707",
"0.516062",
"0.51594245",
"0.51572394",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448",
"0.5156448"
] | 0.8108999 | 0 |
Get the etbl raison sociale. | public function getEtblRaisonSociale() {
return $this->etblRaisonSociale;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getRaisonSociale(): ?string {\n return $this->raisonSociale;\n }",
"public function getRELIGION()\r\n {\r\n return $this->RELIGION;\r\n }",
"public function getRoe()\n {\n return $this->roe;\n }",
"public function getLibelleEcr() {\n return $this->libelleEcr;\n }",
"public function getLr() {}",
"public function getLogradouro() {\n\n return $this->sLogradouro;\n }",
"public function getRia()\n {\n /*if (!$this->hasRole('ROLE_CLIENT')) {\n throw new \\Exception(\"User has not role: ROLE_CLIENT\");\n }*/\n\n return $this->getProfile() ? $this->getProfile()->getRia() : null;\n }",
"public function getRaisonSocLieuTrav() {\n return $this->raisonSocLieuTrav;\n }",
"public function getReel()\n {\n return $reel;\n }",
"public function getLogradouro()\n\t{\t\n\t\t/**\n\t\t * retorna logradouro\n\t\t * @return logradouro\n\t\t */\n\t\treturn $this->logradouro;\n\t}",
"public function getSocietetierce()\n {\n return $this->societetierce;\n }",
"public function getRaisonSocial()\n {\n return $this->raisonSocial;\n }",
"public function getRutEmisor()\n {\n return $this->rutEmisor;\n }",
"public function getRii()\n {\n return Mage::registry('current_rii');\n }",
"public function getUr() {}",
"public function getSiretLieuTrav() {\n return $this->siretLieuTrav;\n }",
"public function getLrc()\n\t{\n\t\treturn self::fetchData(null,null,'lrclink');\n\t}",
"public function getRDN()\n\t{\n\t\treturn $this->rdn;\n\t}",
"public function getSlr()\n {\n return $this->slr;\n }",
"public function getCRRAInstitution()\n {\n return $this->fields['institution'][0];\n\n }",
"public function getOrganismeRetraite() {\n return $this->organismeRetraite;\n }",
"public function getUnCompteRendu($id){\n\t\t$req = \"select * from praticien P,rapport_visite R, visiteur V where R.RAP_NUM='$id' and P.PRA_NUM=R.PRA_NUM and r.vis_matricule = v.vis_matricule\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetch();\n\t\treturn $ligne;\n\t}",
"public function getR() {}",
"function getRSO($rso_id, $db){\n\n\t$temp = $db->query(\"SELECT rso.name AS name, rso.description as description, rso_type.type as type, rso.joinable as joinable\n\t\tFROM rso, rso_type\n\t\tWHERE (rso.rid) = '\" . $rso_id . \"' \n\t\t\t&& (rso_type.rtid) = (rso.rtid)\");\n\t//echo '<pre>', var_dump($temp), '</pre>';\n\t$rso = $temp->fetch_assoc();\n\treturn $rso;\n}",
"public function getLandid()\n {\n return $this->landId;\n }",
"public function getResidence()\n {\n return $this->residence;\n }",
"public function getRuolo() {\n return $this->ruolo;\n }",
"public function get_persR()\n {\n return $this->_persR;\n }",
"public function getRaithSeinar()\n {\n \tif (null === $this->raithSeinar)\n \t{\n \t $path = __DIR__ . '/vcards/RaithSeinar.vcf';\n \n $parser = new VCardParser();\n $vcards = $parser->importFromFile($path);\n \n $this->assertCount(1, $vcards);\n\t $this->raithSeinar = $vcards[0];\n \t}\n\treturn $this->raithSeinar;\n }",
"public function getRaithSeinar()\n {\n \tif (null === $this->raithSeinar)\n \t{\n \t $path = __DIR__ . '/vcards/RaithSeinar.vcf';\n \n $parser = new VCardParser();\n $vcards = $parser->importFromFile($path);\n \n $this->assertCount(1, $vcards);\n\t $this->raithSeinar = $vcards[0];\n \t}\n\treturn $this->raithSeinar;\n }",
"public function get_leitor()\n {\n return $this->_leitor;\n }",
"public function rois()\n\t{\n\t\t\n\t\treturn $this->hasMany(ROI::class, \"investment_id\", \"id\");\n\t\t\n\t}",
"function getByHeenRit($id) {\n $this->db->where('ritIdHeenrit', $id);\n $query = $this->db->get('rit');\n $rit = $query->row();\n return $rit;\n }",
"public function rne(){return $this->_rne;}",
"public function getProviseur()\n {\n return $this->proviseur;\n }",
"public function getAuthenticatedLegajo(){\n $usuario_creacion =$this->getAuthenticatedUser()['usuario'];\n $personal = new PersonalModel();\n $datos_usuario = $personal -> get_personal((object) array(\"usuario\" => $usuario_creacion));\n $legajo= $datos_usuario['result'][0]->legajo;\n\n return $legajo;\n }",
"abstract public function getCruser();",
"public function getRentalReimbursement()\n {\n return $this->_fields['RentalReimbursement']['FieldValue'];\n }",
"public function Residence()\n\t{\n\t\treturn Residence::Load($this->ResidenceID);\n\t}",
"public function getRbi()\n {\n return $this->rbi;\n }",
"public function getIdarl(){\n return $this->idarl;\n }",
"function getLibellEcriture($id_libel_ecriture) { //Renvoie le libellé dun ecriture/op divers\n\tglobal $dbHandler,$global_id_agence;\n\t$db = $dbHandler->openConnection();\n\n\t$sql=\"SELECT traduction from ad_traductions where id_str = $id_libel_ecriture ;\";\n\t\n\t$result = $db->query($sql);\n\tif (DB :: isError($result)) {\n\t\t$dbHandler->closeConnection(false);\n\t\tsignalErreur(__FILE__, __LINE__, __FUNCTION__, $result->getMessage());\n\t}\n\t$dbHandler->closeConnection(true);\n\t$retour = $result->fetchrow();\n\treturn $retour[0];\n}",
"public function getEntreprise()\n {\n $stmt = $this->conn->prepare(\"SELECT *\n FROM Entreprise\");\n //Exécution de la requete\n $stmt->execute();\n //Récupération du résultat dans la variable resultat\n $resultat = $stmt->get_result();\n //Fermeture de la connection avec la base de données MySql\n $stmt->close();\n //Retour de la variable resultat\n return $resultat;\n }",
"public function getRaza()\n {\n return $this->raza;\n }",
"public function getRaza()\n {\n return $this->raza;\n }",
"public function getId_recette()\n {\n return $this->_id_recette;\n }",
"public function getRseed()\n {\n return $this->get(self::_RSEED);\n }",
"public function getRseed()\n {\n return $this->get(self::_RSEED);\n }",
"public function getRseed()\n {\n return $this->get(self::_RSEED);\n }",
"public function getRseed()\n {\n return $this->get(self::_RSEED);\n }",
"public function getRseed()\n {\n return $this->get(self::_RSEED);\n }",
"public function getRseed()\n {\n return $this->get(self::_RSEED);\n }",
"function get_entretien($ent_id)\n {\n return $this->db->get_where('tb_bm_entretiens',array('ent_id'=>$ent_id))->row_array();\n }",
"public function getRdn()\n {\n return $this->rdn;\n }",
"public function getLitreEssence()\n\t{\n\t\treturn $this->litreEssence;\n\t}",
"public function getRecenzenti(){\n $sth = $this->db->prepare(\"SELECT * FROM UCTY\n WHERE prava LIKE 'recenzent'\");\n $sth->execute();\n $data = $sth->fetchAll();\n return $data;\n }",
"public function getLigne_equipe_personne($id){\n\t\t\t\t\t$sql = \"SELECT * FROM ligne_equipe_personne WHERE ligne_equipe_personne.id = \".$id.\" \";\n\t\t\t\t\t if($this->db != null)\n\t\t\t\t\t {\n\t\t\t\t\t return $this->db->query($sql)->fetch();\n\t\t\t\t\t }else{\n\t\t\t\t\t return null;\n\t\t\t\t\t }\n\t\t\t\t\t }",
"function getSorpresa(){\r\n return $this->sorpresa;\r\n }",
"public function getRise() {}",
"public function getRealestateType()\n {\n return $this->hasOne(RealEstateType::className(), ['id' => 'realestate_type_id']);\n }",
"public function getAdrPersonne()\n {\n return $this->adrPersonne;\n }",
"public function getCarRental()\r\n {\r\n return $this->_carRental;\r\n }",
"public function getCandidat()\n {\n return $this->candidat;\n }",
"public function getLoueur()\n {\n return $this->loueur;\n }",
"public function getEtabLieuTravail() {\n return $this->etabLieuTravail;\n }",
"function get_race_team($idTeam)\n{\n $team_race = get_race_team_db($idTeam);\n return $team_race;\n}",
"public function getDispenseTravail() {\n return $this->dispenseTravail;\n }",
"public function getRepriseRaisonPers() {\n return $this->repriseRaisonPers;\n }",
"function getRA() {\n return $this->star->ra;\n }",
"public function getCurriculum()\n {\n return Mage::registry('current_curriculum');\n }",
"public function getOgrenci()\n {\n return $this->hasOne(Ogrenci::className(), ['id' => 'ogrenci_id']);\n }",
"public function getResidenceAddress()\n {\n return $this->residenceAddress;\n }",
"public function getRecordSvrid()\n {\n return $this->get(self::_RECORD_SVRID);\n }",
"public function getRgstUserId()\n {\n return $this->rgst_user_id;\n }",
"public function getRicevimento() {\n return $this->ricevimento;\n }",
"public function getIdOrden()\n {\n return $this->idOrden;\n }",
"function getRegion_stgr()\n {\n if (!isset($this->sregion_stgr) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->sregion_stgr;\n }",
"public function religion()\n {\n return $this->hasOne(Religion::class , 'id' , 'religions_id');\n }",
"public function getIrt()\n {\n return $this->_irt;\n }",
"function getEstanteria(){\r\n return $this->estanteria;\r\n }",
"function get_tb_redacteur($redacteur_id)\n {\n return $this->db->get_where('tb_redacteurs',array('redacteur_id'=>$redacteur_id))->row_array();\n }",
"public function getIdRedesSociales(){\n return $this->idRedesSociales;\n }",
"function obtenerGastromapa($edicion){\n\t\t$concurso = new Concurso();\n\t\t$res = $concurso->recuperar($edicion);\n\t\treturn $res['gastromapa'];\n\t}",
"public function setEtblRaisonSociale($etblRaisonSociale) {\n $this->etblRaisonSociale = $etblRaisonSociale;\n return $this;\n }",
"public function setEtblRaisonSociale($etblRaisonSociale) {\n $this->etblRaisonSociale = $etblRaisonSociale;\n return $this;\n }",
"public function getRdate() {\n return $this->rdate;\n }",
"public function getLr()\n {\n return $this->lr;\n }",
"public function getEnemySvrid()\n {\n return $this->get(self::_ENEMY_SVRID);\n }",
"public function getRecepti()\n {\n return $this->hasOne(Recepti::className(), ['nomer_recepta' => 'nomer_recepta']);\n }",
"public function getRace()\n {\n return $this->race;\n }",
"public function getRace()\n {\n return $this->race;\n }",
"public function get_rdn($username) \n\t{\t\n\t\t$accountForm = $this->config['accountCanonicalForm'];\n\t\t$rdn = $this->conn->getCanonicalAccountName($username, $accountForm);\n\t\treturn $rdn;\n\t}",
"public function getReseller(): string {\n return $this->context->reseller;\n }",
"public function getOrden()\n {\n $obj_orden = Orden::where('nombre', $this->nombre)->first();\n\n if($obj_orden == null){\n $this->existe = false;\n return new Orden(['nombre' => $this->nombre, 'creador_id' => $this->creador_id, 'subclase_id'=> $this->subclase_id, 'clase_id'=> $this->clase_id]);\n }\n\n //El Orden ya existe\n $this->error = true;\n $this->log = \"El Orden ya existe\";\n\n\n return $obj_orden;\n }",
"static public function ctrMostrarRecorrido(){\n\n\t\t$tabla = \"recorrido\";\n\n\t\t$respuesta = ModeloRecorrido::mdlMostrarRecorrido($tabla); /* sera cargada de la resupuesta del clase modelo recorrido con un objeto sacado de la tabla recorrsido */\n\n\t\treturn $respuesta;\n\n\t}",
"function getOrden()\n {\n if (!isset($this->iorden) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iorden;\n }",
"public function getRazonSocial()\n {\n return $this->razonSocial;\n }",
"public function race_alien()\r\n{\r\n return $this->_race_alien;\r\n}",
"public function getSor()\n {\n return $this->sor;\n }"
] | [
"0.63757163",
"0.62943554",
"0.6279772",
"0.61899835",
"0.6187282",
"0.61674",
"0.6153965",
"0.6150915",
"0.6102437",
"0.6083804",
"0.6019967",
"0.5985366",
"0.5972386",
"0.5893089",
"0.58350533",
"0.581507",
"0.58088726",
"0.5792924",
"0.57837355",
"0.57773775",
"0.5755186",
"0.5744202",
"0.5742615",
"0.5713526",
"0.56925714",
"0.569101",
"0.56860954",
"0.5682242",
"0.5676197",
"0.5676197",
"0.5670527",
"0.56592333",
"0.5651988",
"0.5648086",
"0.56476724",
"0.5622545",
"0.5618546",
"0.56074315",
"0.55949974",
"0.5594784",
"0.5593563",
"0.55585945",
"0.55582327",
"0.55580133",
"0.55580133",
"0.55566645",
"0.55404836",
"0.55404633",
"0.55404633",
"0.55404633",
"0.55404633",
"0.55404633",
"0.5537828",
"0.5536242",
"0.5505872",
"0.55045533",
"0.54924077",
"0.5474094",
"0.54517215",
"0.54465324",
"0.5439135",
"0.5429568",
"0.54086685",
"0.54073215",
"0.5401454",
"0.5401211",
"0.5394457",
"0.5392978",
"0.5391758",
"0.5387205",
"0.5375605",
"0.53666466",
"0.53619957",
"0.5359495",
"0.53548855",
"0.5351442",
"0.53443664",
"0.5342151",
"0.53373694",
"0.5329988",
"0.5325043",
"0.53223974",
"0.53184557",
"0.5316073",
"0.5316073",
"0.53074235",
"0.53061956",
"0.5296585",
"0.528839",
"0.52843034",
"0.52843034",
"0.52809304",
"0.5277777",
"0.5276291",
"0.5274293",
"0.5270612",
"0.5270277",
"0.5263439",
"0.52576554"
] | 0.7177869 | 1 |
Get the etbl tel. | public function getEtblTel() {
return $this->etblTel;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getTel()\n {\n return $this->tel;\n }",
"public function getTel()\n {\n return $this->tel;\n }",
"public function getTel()\n {\n return $this->tel;\n }",
"public function getTel()\n {\n return $this->tel;\n }",
"public function getTel()\n {\n return $this->Tel;\n }",
"public function get_tel()\n {\n return $this->_tel;\n }",
"public function getEmpTel() {\n return $this->empTel;\n }",
"public function getTelEnseignantRef()\n {\n return $this->telEnseignantRef;\n }",
"public function getTelContact() {\n return $this->telContact;\n }",
"public function setEtblTel($etblTel) {\n $this->etblTel = $etblTel;\n return $this;\n }",
"public function setEtblTel($etblTel) {\n $this->etblTel = $etblTel;\n return $this;\n }",
"public function getTel_user()\r\n {\r\n return $this->tel_user;\r\n }",
"function tel( \n\t $name, $title = null, $value = null, \n\t $required = false, \n\t $attributes = null\n\t){\n return $this->input(\n\t $name, \n\t Form::TYPE_TEL,\n\t $title, \n\t $value, \n\t $required, \n\t $attributes,\n\t null,\n\t Form::DATA_STRING\n );\n\t}",
"public function getTel_partner()\n {\n return $this->tel_partner;\n }",
"public function getTelephone() : string {\n return $this->telephone;\n }",
"public function get_telephone();",
"public function getTelephone() {}",
"public function getTelefono()\n\t\t{\n\t\treturn $this->telefono;\n\t\t}",
"public static function tel(string $tel, $text = null, array $attr = []): string\n {\n $number = preg_replace('![^0-9\\+]+!', '', $tel);\n\n if (empty($text) === true) {\n $text = $tel;\n }\n\n return static::link('tel:' . $number, $text, $attr);\n }",
"public function getTelephone() {\n\t\treturn $this->telephone;\n\t}",
"public function getTelefono() {\n\t\treturn $this->telefono;\n\t}",
"public function getTelephone()\n {\n return $this->telephone;\n }",
"public function getTelephone()\n {\n return $this->telephone;\n }",
"public function getTelephone()\n {\n return $this->telephone;\n }",
"public function getTelephone()\n {\n return $this->telephone;\n }",
"public function getTelephone()\n {\n return $this->telephone;\n }",
"public function getTelephone()\n {\n return $this->telephone;\n }",
"public function getTipRtbus() {\n return $this->get(self::TIP_RTBUS);\n }",
"public function setTel($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->tel !== $v) {\n $this->tel = $v;\n $this->modifiedColumns[] = EventPeer::TEL;\n }\n\n\n return $this;\n }",
"public function getTelefono()\n {\n return $this->telefono;\n }",
"public function getTelefono()\n {\n return $this->telefono;\n }",
"public function getTelefone()\n\t{\n\t\treturn $this->telefone;\n\t}",
"public function getTelephone()\n {\n return $this->telephone;\n }",
"public static function phone()\n {\n return new TextNode('phone');\n }",
"public function getTelefone()\n {\n return $this->telefone;\n }",
"public function getTelevision()\n {\n return $this->television;\n }",
"public function getEtabLieuTravail() {\n return $this->etabLieuTravail;\n }",
"public function getTelephoneNumber() :string\n {\n return $this->telephoneNumber;\n }",
"public function getTelefone()\n {\n return $this->telefone;\n }",
"public function getTelefono()\n {\n return $this->_telefono;\n }",
"protected function getPhone()\n {\n return $this->checkoutSession->getLastRealOrder()->getBillingAddress()->getTelephone();\n }",
"public function getPhadteleext()\n {\n return $this->phadteleext;\n }",
"public function getEtblFax() {\n return $this->etblFax;\n }",
"public function getEtblMail() {\n return $this->etblMail;\n }",
"function tel_cyf($telstr)\r\n{\r\n $tel = 0; \r\n $i = 0; \r\n $len = strlen($telstr);\r\n while($i < $len)\r\n {\r\n $kr = substr($telstr, $i, 1); \r\n if(is_numeric($kr)) \r\n { \r\n $tel ++; \r\n } \r\n $i ++;\r\n }\r\n return $tel;\r\n}",
"public function getTelephoneNumber()\n {\n return $this->telephoneNumber;\n }",
"public function getEtat()\n {\n return $this->etat;\n }",
"function getNum_teleco()\n {\n if (!isset($this->snum_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->snum_teleco;\n }",
"public function getOffice_phone()\n {\n return $this->office_phone;\n }",
"protected function getEgn()\n\t{\n\t\treturn $this->egn;\n\t}",
"public function telephoneNumber(): TelephoneNumber\n {\n return $this->telephoneNumber;\n }",
"public function getNUMEROEXT()\r\n {\r\n return $this->NUMERO_EXT;\r\n }",
"public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }",
"public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }",
"public function setTel($tel)\n {\n $this->tel = $tel;\n\n return $this;\n }",
"function telto($phone) {\n\treturn str_replace(['+', '(', ')', '-', ' '], '', $phone);\n}",
"public function setEmpTel($empTel) {\n $this->empTel = $empTel;\n return $this;\n }",
"public function getErn()\n {\n return $this->ern;\n }",
"public function getNuTelefone()\n\t{\n\t\treturn $this->nu_telefone;\n\t}",
"public function getEtblCodePostal() {\n return $this->etblCodePostal;\n }",
"public function getTelephone(): ?string;",
"public function getNUMERO_EXT()\r\n {\r\n return $this->NUMERO_EXT;\r\n }",
"public function getPhone(): string\n {\n return $this->phone;\n }",
"public function setTel($Tel)\n {\n $this->Tel = $Tel;\n\n return $this;\n }",
"public function getTelefone()\n {\n return $this->telefone;\n }",
"function getDesc_teleco()\n {\n if (!isset($this->sdesc_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->sdesc_teleco;\n }",
"public static function RetornaTelefone() : ?string\n {\n if (self::$obj_entidade instanceof OBJ_Entidade) {\n $fone = self::$obj_entidade->get_usuario()->get_fone();\n \n if (strlen($fone) === 11) {\n return preg_replace(\"/([0-9]{2})([0-9]{5})([0-9]{4})/\", \"($1) $2-$3\", $fone);\n } else {\n return preg_replace(\"/([0-9]{2})([0-9]{4})([0-9]{4})/\", \"($1) $2-$3\", $fone);\n }\n } else {\n return null;\n }\n }",
"public function render()\n {\n return view('laravel-tel-input::components.laravel-tel-input');\n }",
"public function getAddr()\n {\n return $this->get(self::_ADDR);\n }",
"public function getLede(): string\n {\n return $this->lede;\n }",
"public function getPhone():string\n {\n return $this->phone;\n }",
"public function getPhone()\n {\n return $this->get(self::PHONE);\n }",
"public function getPresentationTelephone()\n {\n return $this->presentationTelephone;\n }",
"public function getAddr() : string\n {\n return $this->addr;\n }",
"public function getPhoneNo() : string\n {\n return $this->phoneNo;\n }",
"public function getPhadtelenbr()\n {\n return $this->phadtelenbr;\n }",
"public function getLibelleEcr() {\n return $this->libelleEcr;\n }",
"private static function getEndPoint() : string\n {\n return self::$endpoints[self::$selectedEndpoint];\n }",
"function getTipo_teleco()\n {\n if (!isset($this->stipo_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->stipo_teleco;\n }",
"public function getTelefone3()\n {\n return $this->telefone3;\n }",
"public function get_phone() {\r\n return $this->phone;\r\n }",
"public function getPhone()\n {\n $value = $this->get(self::PHONE);\n return $value === null ? (string)$value : $value;\n }",
"public function getENTETE()\n {\n return $this->ENTETE;\n }",
"public function getOtp() : string\n {\n return $this->otp;\n }",
"public function getPhoneNumber(): string\n {\n return $this->_phoneNumber;\n }",
"public function getEtunimi(){\n return $this->etunimi;\n }",
"public function getTelefonoClinica() {\r\n return $this->_telefono;\r\n }",
"public function getPhoneNumber()\n {\n return $this->scopeConfig->getValue(\n self::CONFIG_PHONE_NUMBER,\n \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE\n );\n }",
"public function getTelefone1()\n {\n return $this->telefone1;\n }",
"private static function _getText()\n {\n return geoAddon::getText('geo_addons', 'tokens');\n }",
"public function getPhone()\n {\n return $this->getValue('nb_icontact_prospect_phone');\n }",
"public function getTelephone()\n {\n $stmt = $this->conn->prepare(\"SELECT *\n FROM Telephone\");\n //Exécution de la requete\n $stmt->execute();\n //Récupération du résultat dans la variable resultat\n $resultat = $stmt->get_result();\n //Fermeture de la connection avec la base de données MySql\n $stmt->close();\n //Retour de la variable resultat\n return $resultat;\n }",
"function getPhoneNumber()\n {\n \t$sh_args = 'getcellpnumber'; //admin client command for getting phone number\n \t$sh_out = atsexec(escapeshellcmd($sh_args));\t//socket call\n \tdebug('(cell_controller.inc|getPhoneNumber()) admin client api command \"getcellpnumber\" output: $sh_out', $sh_out); \t//DEBUG\n \t \n \tif($sh_out != 'phpcmd: fail' && $sh_out != 'phpcmd: invalid command')\n \t{\n \t\tdebug('(cell_controller.inc|getPhoneNumber()) getcellpnumber command completed.'); \t//DEBUG\n \t\treturn $sh_out;\n \t}\n \telse\n \t{\n \t\tdebug('(cell_controller.inc|getPhoneNumber()) getcellpnumber command failed.'); \t//DEBUG\n \t\treturn false;\n \t\t//return 'Failed to detect phone number';\n \t}\n }",
"public function getReqOfficePhone()\n\t{\n\t\treturn $this->req_office_phone;\n\t}",
"public function getPhone(){\r\n\t\t\treturn $this->phone;\r\n\t\t}",
"public function set_tel($_tel)\n {\n $this->_tel = $_tel;\n\n return $this;\n }",
"public function getPhone()\n\t{\n\t\treturn $this->phone;\n\t}",
"public function getPhone() {\n\t\treturn $this->phone;\n\t}",
"public function getOfficeT()\n {\n return $this->office_t;\n }"
] | [
"0.7857775",
"0.7857775",
"0.7857775",
"0.7857775",
"0.7819503",
"0.7751758",
"0.7387757",
"0.6645414",
"0.6611341",
"0.6595298",
"0.6595298",
"0.6390126",
"0.6331194",
"0.62941515",
"0.61949635",
"0.6172509",
"0.61381674",
"0.608239",
"0.608111",
"0.60134804",
"0.600996",
"0.60001993",
"0.60001993",
"0.60001993",
"0.60001993",
"0.60001993",
"0.60001993",
"0.5979302",
"0.5935323",
"0.58942926",
"0.58942926",
"0.5886599",
"0.5883293",
"0.58702433",
"0.5868104",
"0.5854234",
"0.5820305",
"0.58177865",
"0.58106464",
"0.58093095",
"0.574983",
"0.5695616",
"0.56919587",
"0.5679383",
"0.5624063",
"0.56067705",
"0.55907315",
"0.5483333",
"0.54728246",
"0.5454434",
"0.5445862",
"0.5415001",
"0.5394533",
"0.5394533",
"0.5394533",
"0.5384657",
"0.5384331",
"0.5381854",
"0.53522706",
"0.53305906",
"0.53225803",
"0.5318868",
"0.5309562",
"0.5300572",
"0.52986413",
"0.52905035",
"0.52548784",
"0.5253184",
"0.52515966",
"0.5249453",
"0.5245491",
"0.52128565",
"0.5209071",
"0.5207259",
"0.5201437",
"0.5189882",
"0.5180272",
"0.51642966",
"0.5145668",
"0.51449335",
"0.513204",
"0.51293427",
"0.512236",
"0.5121746",
"0.5114871",
"0.5097575",
"0.50942963",
"0.5092564",
"0.50848323",
"0.5075287",
"0.50731754",
"0.5064582",
"0.50545293",
"0.5053788",
"0.5052639",
"0.5045387",
"0.5038421",
"0.50373524",
"0.50355077"
] | 0.8216661 | 1 |
Get the intitule compte. | public function getIntituleCompte() {
return $this->intituleCompte;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getCompte()\n {\n return $this->compte;\n }",
"public static function getCompteur() {\n return self::$_compteur;\n }",
"public function getComplemento() {\n return $this->sComplemento;\n }",
"public function getComplemento() {\n return $this->sComplemento;\n }",
"public function getIdCompra()\r\n {\r\n return $this->idCompra;\r\n }",
"public function getComptes()\n {\n return $this->comptes;\n }",
"public function getTipoCompra(){\n return $this->iTipoCompra;\n }",
"public function get_component() : string\n {\n return $this->component;\n }",
"public function getComContenu()\n {\n return $this->Com_contenu;\n }",
"public function getIdOrdenCompra() {\n return $this->id_orden_compra;\n }",
"public function component()\n {\n return $this->component;\n }",
"public function getCelular()\n\t{\n\t\treturn $this->celular;\n\t}",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getCompteVentilation(): ?string {\n return $this->compteVentilation;\n }",
"public function getIntituleChoix()\n {\n return $this->intituleChoix;\n }",
"public function getComponent()\n\t{\n\t\treturn $this->component;\n\t}",
"public function get_compte(){retrun($id_local_compte); }",
"function getComps()\n {\n return $this->comps;\n }",
"public function get_comercial(){\n\t\t\treturn $this->comercial;\n\t\t}",
"public function getCoInformeIncidente()\n\t{\n\t\treturn $this->co_informe_incidente;\n\t}",
"public function getC()\n {\n return $this->C;\n }",
"public function getConta() {\n return $this->conta;\n }",
"public function getComplaints()\n {\n return $this->hasOne(Complaint::className(), ['id_complaint' => 'id_complaints']);\n }",
"public function getCodeCollaborateurClot() {\n return $this->codeCollaborateurClot;\n }",
"public function getComposition()\n {\n return $this->composition;\n }",
"public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }",
"public function get_compartment(){\n $this->compartment = array_shift(Compartment::find_all(\" WHERE dead_no = '{$this->id}' LIMIT 1\"));\n if ($this->compartment) {\n return $this->compartment->description;\n } else {\n return \"Not specified\";\n }\n }",
"public function getCoInformeDepuracion()\n\t{\n\t\treturn $this->co_informe_depuracion;\n\t}",
"public function getControlador()\n\t\t{\n\t\t\treturn $this->controlador;\n\t\t}",
"function getConsiglio() {\n\t\treturn $this->soc->getConsiglio();\n\t}",
"public function getCouleur()\n {\n return $this->couleur;\n }",
"public function getControlador()\n {\n return $this->controlador;\n }",
"public function obtenerControlador()\n\t\t{\n\t\t\treturn $this->_controlador;\n\t\t}",
"protected function getComprobante(): Comprobante\n {\n if ($this->comprobante instanceof Comprobante) {\n return $this->comprobante;\n }\n throw new \\RuntimeException('The current comprobante node is not a ' . Comprobante::class);\n }",
"public function getContratEnCours() {\n return $this->contratEnCours;\n }",
"public function getComunaOrigen()\n {\n return $this->comunaOrigen;\n }",
"public function getCodcontroller()\r\n {\r\n return $this->codcontroller;\r\n }",
"public function getContenu()\n {\n return $this->contenu;\n }",
"public function getContenu()\n {\n return $this->contenu;\n }",
"public function getContenu()\n {\n return $this->contenu;\n }",
"public function getCoNumInventario()\n\t{\n\t\treturn $this->co_num_inventario;\n\t}",
"public function getCarrera() {\n return $this->carrera;\n }",
"public function getComponent()\n {\n }",
"public function getCARGO()\r\n {\r\n return $this->CARGO;\r\n }",
"public function getDIRECCIONC()\r\n {\r\n return $this->DIRECCIONC;\r\n }",
"private function findOutComponent($context)\r\n\t{\r\n\t\t$component = null;\r\n\r\n\t\tswitch ($context)\r\n\t\t{\r\n\t\t\tcase 'com_content.article':\r\n\t\t\t\t$component = 'article';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'com_content.featured':\r\n\t\t\t\t$component = 'featured';\r\n\t\t\t\tbreak;\r\n\t\t\tcase 'com_content.category':\r\n\t\t\t\t$component = 'category';\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\treturn $component;\r\n\t}",
"public function getC() {}",
"public function getCoEquipo()\n\t{\n\t\treturn $this->co_equipo;\n\t}",
"public function getStartCollegamentiArea() {\n return $this->_startCollegamenti; \n }",
"public function getCLIENTE()\r\n {\r\n return $this->CLIENTE;\r\n }",
"public function getCoEdificio()\n\t{\n\t\treturn $this->co_edificio;\n\t}",
"private function getThemeComponets()\n { \n $variables = \"\";\n\n foreach($this->componets as $com => $c){\n $variables.=(\"theme.\".$com.\"='\".URL::to($c).\"';\");\n }\n\n return $variables;\n }",
"public function getCodeguichet()\n {\n return $this->codeguichet;\n }",
"public function GetActif()\r\n {\r\n return AppHelper::GetActif($this->Core);\r\n }",
"public function getActiveComponent(): string\n {\n return $this->rule->getComponent($this->dotIndex);\n }",
"public function getCicloCotable(){\n\t\t\t// creamos el array $retorna con los datos de la tabla lcompras\n\t\t\t$result = $this->_db->query(\"SELECT * FROM ciclocontable WHERE show_by = '1' ORDER BY idCicloContable DESC\");\n\t\t\t$retorna = $result->fetch_all(MYSQL_ASSOC);\n\n\t\t\treturn $retorna;\n\t\t}",
"public function getCicloCotable(){\n\t\t\t// creamos el array $retorna con los datos de la tabla lcompras\n\t\t\t$result = $this->_db->query(\"SELECT * FROM ciclocontable WHERE show_by = '1' ORDER BY idCicloContable DESC\");\n\t\t\t$retorna = $result->fetch_all(MYSQL_ASSOC);\n\n\t\t\treturn $retorna;\n\t\t}",
"public function getChapeau();",
"public function getCasParticulier() {\n return $this->casParticulier;\n }",
"public function getIssueOfComponent() {\n return $this->issueOfComponent;\n }",
"public function getCommune()\n {\n return $this->commune;\n }",
"public function getId_cuisinier() {\r\n\t\treturn $this->id_cuisinier;\r\n\t}",
"public function getCssCustomProduct()\n {\n return Mage::getStoreConfig('splitprice/split_price_presentation/css_product');\n }",
"public function model()\n {\n return Compra::class;\n }",
"public function getCssCustomProduct()\n {\n return $this->_scopeConfig->getValue('splitprice/split_price_presentation/css_product', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }",
"function getIdelemento(){\n\t\treturn $this->idelemento;\n\t}",
"public function getPrecioCompra()\n\t{\n\t\treturn $this->precio_compra;\n\t}",
"public function getCalle()\n {\n return $this->calle;\n }",
"public function getBaseCalculoPis()\n {\n return $this->baseCalculoPis;\n }",
"public function setIntituleCompte($intituleCompte) {\n $this->intituleCompte = $intituleCompte;\n return $this;\n }",
"public function getCodcaj(){\n\t\treturn $this->codcaj;\n\t}",
"public function getObjet()\n {\n return $this->objet;\n }",
"public function getCompetenciaInicial()\n {\n return $this->competencia_inicial;\n }",
"public function getCodeCollaborateurEntrant() {\n return $this->codeCollaborateurEntrant;\n }",
"public function getCriado()\n {\n return $this->criado;\n }",
"public function getCriado()\n {\n return $this->criado;\n }",
"public function component()\n {\n return 'resource-header-card';\n }",
"function getComponent()\n {\n }",
"private function getRenderingIntent()\r\n\t{\r\n\t\tif ($this->icc_size >= 68)\r\n\t\t{\r\n\t\t\t$arr = unpack('Nint', substr($this->icc_profile, 64, 4));\r\n\t\t\treturn $arr['int'];\r\n\t\t}\r\n\r\n\t\treturn null;\r\n\t}",
"public function getCompileId() {\n\t\treturn parent::getCompileId();\n\t}",
"public function getComentario()\n {\n return $this->comentario;\n }",
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getLibelle()\n {\n return $this->libelle;\n }",
"public function getPrcifecha()\n {\n return $this->prcifecha;\n }",
"public function get_Code_produit()\n\t\t{\n\t\t\treturn $this->Code_produit;\n\t\t}",
"public function getComponentInterface()\n {\n return 'Nerrad\\\\WPCLI\\\\EE\\\\interfaces\\\\ComponentHas' . $this->type . 'Interface';\n }",
"public function getCALLE()\r\n {\r\n return $this->CALLE;\r\n }",
"function getContract() {\n $etp = $this->entity_table;\n $eid = $this->entity_id;\n switch ($etp) {\n case 'civicrm_contribution_recur' :\n $recur = new CRM_Contribute_BAO_ContributionRecur();\n $recur->get('id', $eid);\n return $recur;\n break;\n case 'civicrm_contribution' :\n $contr = new CRM_Contribute_BAO_Contribution();\n $contr->get('id', $eid);\n return $contr;\n break;\n default:\n echo 'Huh ? ' . $etp;\n }\n return null;\n }",
"public function getCognome()\n {\n return $this->cognome;\n }",
"public function getC1()\r\n {\r\n return $this->C1;\r\n }",
"public function getCoCustodio()\n\t{\n\t\treturn $this->co_custodio;\n\t}",
"public function getContenu(): string\n {\n return $this->contenu;\n }",
"public function getID_C()\n {\n return $this->ID_C;\n }",
"public function getComentario()\n {\n return $this->comentario;\n }",
"public function getComponent()\n {\n return $this->hasOne(Component::className(), ['id' => 'component_id']);\n }",
"public function getCognome() {\n return $this->cognome;\n }",
"public function getMontacargasComprador()\n {\n\n return $this->montacargas_comprador;\n }",
"public function getCssCustomCalculateCep()\n {\n return $this->_scopeConfig->getValue('estimatecep/cep_load_values/css_cep', \\Magento\\Store\\Model\\ScopeInterface::SCOPE_STORE);\n }"
] | [
"0.7726448",
"0.7607681",
"0.6796081",
"0.67921114",
"0.67636853",
"0.65694416",
"0.6445466",
"0.638061",
"0.6252318",
"0.6220353",
"0.6214302",
"0.6205332",
"0.61990476",
"0.61990476",
"0.6189939",
"0.6110333",
"0.6097744",
"0.6069794",
"0.6063932",
"0.60314196",
"0.60282296",
"0.60251766",
"0.6015045",
"0.6003281",
"0.5951909",
"0.5939822",
"0.5927621",
"0.59207666",
"0.5918617",
"0.5893823",
"0.58631456",
"0.5858263",
"0.585498",
"0.5846369",
"0.58075356",
"0.5775203",
"0.5752144",
"0.5747607",
"0.5733246",
"0.5733246",
"0.5733246",
"0.5698588",
"0.5696735",
"0.5696694",
"0.56915",
"0.56847996",
"0.5676978",
"0.56552154",
"0.56541127",
"0.5649174",
"0.5646566",
"0.564314",
"0.5639756",
"0.56373787",
"0.5616194",
"0.561284",
"0.5607541",
"0.5607541",
"0.55995774",
"0.55944663",
"0.5585158",
"0.5584789",
"0.5582742",
"0.55786633",
"0.5574491",
"0.5572711",
"0.5567114",
"0.5562962",
"0.5549427",
"0.5547805",
"0.55471534",
"0.5544951",
"0.5542877",
"0.554033",
"0.5537783",
"0.5519246",
"0.5519246",
"0.55173844",
"0.55160815",
"0.5512901",
"0.5512634",
"0.5510057",
"0.5503812",
"0.5503812",
"0.5503812",
"0.54917705",
"0.5489637",
"0.5488841",
"0.54885983",
"0.5488181",
"0.5485472",
"0.5484343",
"0.54816794",
"0.54752237",
"0.54707295",
"0.54693717",
"0.54644597",
"0.5461689",
"0.5461506",
"0.54612046"
] | 0.8354833 | 0 |
Get the lien document. | public function getLienDocument() {
return $this->lienDocument;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDocument();",
"public function getLsDoc(): LsDoc\n {\n return $this->lsDoc;\n }",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getDocument() {}",
"public function getLienDocument(): ?string {\n return $this->lienDocument;\n }",
"abstract public static function getDoc();",
"public function get_document()\n {\n return $this->document;\n }",
"public function get_document() {\n\t\treturn $this->doc;\n\t}",
"public function getDoc()\n {\n return $this->doc;\n }",
"public function getDocument() {\n\t\treturn phpQuery::getDocument($this->getDocumentID());\n\t}",
"public function getDocument() {\n\t\treturn phpQuery::getDocument($this->getDocumentID());\n\t}",
"public function document()\n\t{\n\t\treturn $this->Obj_Doc;\n\t}",
"public static function getDocument()\n {\n return self::$_document;\n }",
"public function getDocument()\n\t{\n\t\treturn $this->_doc;\n\t}",
"public function getDocument()\n {\n return $this->document;\n }",
"public function getDocument()\n {\n return $this->document;\n }",
"public function getDocument()\n\t{\n\t\treturn $this->document;\n\t}",
"public function getDocument() {\n return $this->document;\n }",
"public static function doc() { return \"\\n\" . file_get_contents(__CLASS__ . '.doc.txt'); }",
"public function getDocument()\n {\n return $this->context->getOutput();\n }",
"public function getDocument(): Document\n {\n return $this->document;\n }",
"public function getDocContent()\n {\n return $this->doc_content;\n }",
"public function get_document(){\n\t\t\t$query = $this->db->get_where(\"tipodocum\");\n\t\t\treturn $query->result();\n\t\t}",
"public function getDocument($filename = '')\r\n\t{\r\n\t try{\r\n\t\t//if file name not supplied set it to the last file that was created\r\n\t\t$filename = $filename == '' ? $this->tmp_file : $this->tmp_path . '\\\\' . $filename . '.tmp';\r\n\t\t\r\n\t\t//test to see if still exists\r\n\t\tif(! file_exists($filename))\r\n\t\t{\r\n\t\t\tthrow new FileNotFoundException($filename);\r\n\t\t}\r\n\t\t\r\n\t\t//get the xml from the file\r\n\t\t$xml = simplexml_load_file($filename .'.out') or die(\"Error: Cannot create object\");\r\n\t\t\r\n\t\t//create the StanfordNLPDocument\r\n\t\t$this->document = new Document($xml->document);\r\n\t\t\r\n\t\treturn $this->document;\r\n\t }\r\n\t catch(Exception $e)\r\n\t {\r\n\t\t$this->preview($e);\r\n\t }\r\n\t}",
"public function getDocument() {\n return (new \\Treto\\PortalBundle\\Model\\DocumentSerializer($this,[]))->toArray();\n }",
"private static function getDoc()\r\n {\r\n if (self::$docXML == null) {\r\n self::$docXML = new \\DOMDocument();\r\n self::$docXML->load(XML_SLIDER);\r\n }\r\n \r\n return self::$docXML;\r\n }",
"public function get_document(){retrun($id_local_document); }",
"public function openDocument();",
"public function getDocumento( ){\n\t\t\treturn $this->documento;\n\t\t}",
"public function getCurrentDocument()\n {\n return $this->current_document;\n }",
"public function getDocuments();",
"function getIdDoc() {\r\n return $this->IdDoc;\r\n }",
"public function getCurrentObjectDocument() {}",
"public function document(): DocumentInterface\n {\n return $this->document;\n }",
"public function getDocument()\n {\n return $this->_pdfDocument;\n }",
"public function getDocument(){\n $this->endElement();\n $this->endDocument();\n return $this->outputMemory();\n }",
"public function getDocumentation(): string;",
"protected function getDocumentTemplate() {}",
"protected function getDocumentTemplate() {}",
"protected function getDocumentTemplate() {}",
"protected function getDocumentTemplate() {}",
"public function getDocument() {\n $document = new Document();\n $document->registerNamespace('json', self::XMLNS_JSONX);\n $this->addNode($document, $this->_document->documentElement);\n return $document;\n }",
"protected function getDocumentTemplate() {}",
"protected function getDocumentTemplate() {}",
"protected function getDocumentTemplate() {}",
"protected function getDocumentTemplate() {}",
"protected function getDocumentTemplate() {}",
"public function getDocumento(){\n\t\treturn $this->documento;\n\t}",
"public function getStatusDoc()\n {\n return $this->status_doc;\n }",
"public function doc()\n {\n }",
"abstract public function getDocuments();",
"public function getDocumento()\n {\n return $this->documento;\n }",
"function getDoc(){\n\t\t$sql = \"SELECT tl.TenTL, tl.TenKhongDauTL, gd.TenGD, gd.TomtatGD FROM theloai tl INNER JOIN giaidoan gd ON tl.MaTL = gd.MaTL\";\n\t\t$this->setQuery($sql);\n\t\treturn $this->loadAllRows(); \n\t}",
"public function getOfficialDocuments() {}",
"public function getDocBlock()\n {\n return $this->docBlock;\n }",
"public function getDocument(): Document {\n $document = new Document($this->_document->xmlVersion, $this->_document->xmlEncoding);\n foreach ($this->_document->childNodes as $node) {\n $this->addNode($document, $node);\n }\n return $document;\n }",
"public function getDocument($id);",
"public function getDocumentationLanguage() {}",
"public function createDocument()\r\n {\r\n return new Document($this);\r\n }",
"public function getDocCode()\n {\n return $this->doc_code;\n }",
"function referentiel_get_liens_documents($activite_id, $userid, $context){\r\n// Cadre d'affichage des liens vers les documents\r\n $links_documents='';\r\n $s='';\r\n\t// Recuperer les documents associes à l'activite\r\n\t$records_document = referentiel_get_documents($activite_id);\r\n\tif ($records_document){\r\n // afficher\r\n\t\t// DEBUG\r\n\t\t// echo \"<br/>DEBUG<br />\\n\";\r\n\t\t// print_r($records_document);\r\n $nbressource=count($records_document);\r\n $s='<p><span class=\"bold\">'.\"\\n\";\r\n\t\tif ($nbressource>1){\r\n $s.=get_string('ressources_associees','referentiel',$nbressource);\r\n }\r\n else{\r\n $s.=get_string('ressource_associee','referentiel',$nbressource);\r\n }\r\n\r\n\r\n\t\t$compteur_document=0;\r\n\t\tforeach ($records_document as $record_d){\r\n if ($compteur_document%2==0)\r\n $bgcolor=\"#afefee\";\r\n else\r\n $bgcolor=\"#faefee\";\r\n\t\t\t$compteur_document++;\r\n \t$document_id=$record_d->id;\r\n\t\t\t$type_document = stripslashes($record_d->type_document);\r\n\t\t\t$description_document = stripslashes($record_d->description_document);\r\n\t\t\t$url_document = stripslashes($record_d->url_document);\r\n\t\t\t$ref_activite = $record_d->ref_activite;\r\n\t\t\t$cible_document = $record_d->cible_document; // fenêtre cible\r\n\t\t\t$etiquette_document = $record_d->etiquette_document; // etiquette\r\n\t\t\t// affichage de l'url\r\n\t\t\tif (preg_match('/moddata\\/referentiel/',$url_document)){\r\n\t\t\t // l'URL doit être transformée\r\n $data_r=new Object();\r\n\t\t\t\t$data_r->id = $document_id;\r\n\t\t\t\t$data_r->userid = $userid;\r\n\t\t\t\t$data_r->author = referentiel_get_user_info($userid);\r\n\t\t\t\t$data_r->url = $url_document;\r\n\t\t\t\t$data_r->filearea = 'document';\r\n \t\t$url_document = referentiel_m19_to_m2_file($data_r, $context, false, true);\r\n\t\t\t}\r\n\r\n\t\t\t$link=referentiel_affiche_url($url_document, $etiquette_document, $cible_document);\r\n\t\t\t$links_documents.='<li>'.$link.'</li>'.\"\\n\";\r\n }\r\n if ($links_documents){\r\n $s.= '<ul>'.$links_documents.'</ul>'.\"\\n\";\r\n }\r\n }\r\n $s.= '</p>'.\"\\n\";\r\n return $s;\r\n}",
"public function getDocComment();",
"public function document($filename = null) {\n if(is_null($filename)) return $this->documents()->first();\n return $this->documents()->find($filename);\n }",
"public function getGeneralDocumentation();",
"public function document(): DocumentNode\n {\n return ASTHelper::cloneNode($this->documentNode);\n }",
"public function read_doc_file()\n {\n $path = getcwd();\n $f = $path . \"/\" . $this->file;\n if (file_exists($f)) {\n if (($fh = fopen($f, 'r')) !== false) {\n $headers = fread($fh, 0xA00);\n\n // 1 = (ord(n)*1) ; Document has from 0 to 255 characters\n $n1 = (ord($headers[0x21C]) - 1);\n\n // 1 = ((ord(n)-8)*256) ; Document has from 256 to 63743 characters\n $n2 = ((ord($headers[0x21D]) - 8) * 256);\n\n // 1 = ((ord(n)*256)*256) ; Document has from 63744 to 16775423 characters\n $n3 = ((ord($headers[0x21E]) * 256) * 256);\n\n // 1 = (((ord(n)*256)*256)*256) ; Document has from 16775424 to 4294965504 characters\n $n4 = (((ord($headers[0x21F]) * 256) * 256) * 256);\n\n // Total length of text in the document\n $textLength = ($n1 + $n2 + $n3 + $n4);\n\n $extracted_plaintext = fread($fh, $textLength);\n $extracted_plaintext = mb_convert_encoding($extracted_plaintext, 'UTF-8');\n // simple print character stream without new lines\n //echo $extracted_plaintext;\n\n // if you want to see your paragraphs in a new line, do this\n return nl2br($extracted_plaintext);\n // need more spacing after each paragraph use another nl2br\n }\n }\n }",
"public function index()\n {\n return view('admin.document.index');\n }",
"public function getDomDocument() {}",
"public function data(): DocumentData;",
"public function getDocument(): ?Document\n {\n return $this->document;\n }",
"public function getDocument(): ?Document\n {\n return $this->document;\n }",
"static function load(){\n $pdf = new LK_PDF('L');\n return $pdf;\n }",
"public function getDocId()\n {\n return $this->doc_id;\n }",
"public function getWordFile()\n {\n $word = new Word(\n $this->getNavn() . ' oppdatert ' . date('d-m-Y') . ' kl '. date('Hi') . ' - ' . $this->getArrangement()->getNavn(),\n $this->getRenderData(),\n $this->getConfig(),\n $this->getWordFormatter()\n );\n return $word->writeToFile();\n }",
"public function getDocs()\n {\n\n\t\t$rootPath = 'modules/Mediasharex/docs';\n $docs = FileUtil::getFiles($rootPath, true, true, false, false);\n\t\treturn $docs;\n\t}",
"abstract public function getDocument($id);",
"public function read_doc()\n {\n $path = getcwd();\n $f = $path . \"/\" . $this->file;\n $fileHandle = fopen($f, \"r\");\n $line = @fread($fileHandle, filesize($this->file));\n $lines = explode(chr(0x0D), $line);\n $outtext = \"\";\n foreach ($lines as $thisline) {\n $pos = strpos($thisline, chr(0x00));\n if (($pos !== false) || (strlen($thisline) == 0)) {\n } else {\n $outtext .= $thisline . \" \";\n }\n }\n $outtext = preg_replace(\"/[^a-zA-Z0-9\\s\\,\\.\\-\\n\\r\\t@\\/\\_\\(\\)]/\", \"\", $outtext);\n\n return $outtext;\n }",
"public function getCommercialDocument()\n {\n return $this->commercialDocument;\n }",
"public function get_documents() \n {\n $endpoint_name = \"/documents/\";\n $request_arguments = [];\n $documents = $this->request(\"GET\", $endpoint_name, $request_arguments);\n if (array_key_exists(\"documents\", $documents)) {\n return $documents[\"documents\"];\n }\n return $documents;\n }",
"public function document() {\n return $this->hasOne('App\\Documents', 'id', 'document_id');\n }",
"public function getDocs()\n {\n $location = base_path(\"public/docs/swagger.json\");\n\n return response(\n file_get_contents(base_path(\"public/docs/swagger.json\"))\n );\n }",
"public function getIndex()\n {\n return $this->cache->remember('docs.index', $this->cache_for, function () {\n $path = base_path($this->path.'index.md');\n\n if ($this->files->exists($path)) {\n return markdown($this->files->get($path));\n }\n\n return null;\n });\n }",
"function getDocumentID() {\n\t\treturn $this->iDocumentID;\n\t}",
"public function getSource()\n {\n return 'document';\n }",
"public function getDocumento()\r\n {\r\n return $this->Documento;\r\n }"
] | [
"0.75110435",
"0.75063765",
"0.7443984",
"0.7443984",
"0.7443984",
"0.7443984",
"0.7443984",
"0.7443984",
"0.7443984",
"0.7443984",
"0.7443984",
"0.7443984",
"0.74431276",
"0.74431276",
"0.74431276",
"0.74431276",
"0.71706945",
"0.7078364",
"0.6923381",
"0.6898293",
"0.6885457",
"0.6790517",
"0.6790517",
"0.67665",
"0.6686168",
"0.66411483",
"0.6626227",
"0.6626227",
"0.6601027",
"0.6563461",
"0.6559396",
"0.6509361",
"0.6418536",
"0.63701504",
"0.6264167",
"0.6214037",
"0.6208904",
"0.61855125",
"0.61823165",
"0.6179774",
"0.6137019",
"0.61186785",
"0.6107314",
"0.6095906",
"0.6084845",
"0.6080904",
"0.6022495",
"0.60121036",
"0.5949413",
"0.59486914",
"0.59486914",
"0.59483373",
"0.59483373",
"0.59475124",
"0.59473425",
"0.5945937",
"0.5945937",
"0.5945937",
"0.5945937",
"0.59419864",
"0.59168005",
"0.58898777",
"0.58522636",
"0.5844004",
"0.58375573",
"0.582059",
"0.5814376",
"0.5806051",
"0.5792904",
"0.57822907",
"0.5718708",
"0.5712796",
"0.5711321",
"0.570556",
"0.5692783",
"0.56918395",
"0.5691635",
"0.5688733",
"0.5671683",
"0.56704485",
"0.5663324",
"0.5654195",
"0.5654195",
"0.5651515",
"0.5650955",
"0.5650769",
"0.56489056",
"0.5638679",
"0.5634186",
"0.56072843",
"0.5583858",
"0.5583266",
"0.5577583",
"0.55496496",
"0.5547413",
"0.5543115",
"0.5527106"
] | 0.7998953 | 3 |
Get the montant general. | public function getMontantGeneral() {
return $this->montantGeneral;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant() {\n return $this->montant;\n }",
"public function getMontantTva() {\n return $this->montantTva;\n }",
"public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }",
"public function setMontantGeneral($montantGeneral) {\n $this->montantGeneral = $montantGeneral;\n return $this;\n }",
"public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }",
"public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }",
"public function getMontantTes() {\n return $this->montantTes;\n }",
"public function getMontantTtc() {\n return $this->montantTtc;\n }",
"public function getMontant_vente()\n {\n return $this->montant_vente;\n }",
"public function getMontantHt() {\n return $this->montantHt;\n }",
"public function getMontant_ht()\n {\n return $this->montant_ht;\n }",
"public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }",
"public function GetGeneral(){\r\r\n\t\treturn self::$general;\r\r\n\t}",
"public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC) TOTALS \";\r\n return $this->row($query);\r\n }",
"public function getMontantTtc()\n {\n $montant_ttc = $this->montant;\n\n foreach ($this->tvas as $tva) {\n $montant_ttc += $tva->getMontantTva();\n }\n\n return $montant_ttc;\n }",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"public function getMaitre()\n {\n return $this->maitre;\n }",
"public function getMontacargasT()\n {\n\n return $this->montacargas_t;\n }",
"public function getMontacargasP()\n {\n\n return $this->montacargas_p;\n }",
"public function getMateria(){\n\t\treturn $this->materia;\n }",
"public function getmnem()\n {\n return $this->mnem;\n }",
"public function getCoMantenimiento()\n\t{\n\t\treturn $this->co_mantenimiento;\n\t}",
"public function getMataPelajaran();",
"public function getMvat()\n {\n return $this->mvat;\n }",
"public function getMatricule(){\n return $this->$Matricule;\n }",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getMetageneration()\n {\n return $this->metageneration;\n }",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getMontantBudget() {\n return $this->montantBudget;\n }",
"public function getPazientiMedico() {\n return $this->_pazienti;\n }",
"function getMontantArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantHT']));\n else return 0;\n }",
"public function getDeterminarMetodologiaCalculo()\r\n\t\t{\r\n\t\t\t// Se refiere al parametro \"base-calculo\" de la entidad \"tipos-propagandas\".\r\n\t\t\t$idMetodo = 0;\r\n\r\n\t\t\t$tipo = self::getDatosPropaganda()->tipoPropaganda;\r\n\t\t\tif ( isset($tipo->base_calculo) ) {\r\n\t\t\t\t$idMetodo = (int)$tipo->base_calculo;\r\n\t\t\t}\r\n\t\t\treturn $idMetodo;\r\n\t\t}",
"public function getMaterno()\n {\n return $this->materno;\n }",
"public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }",
"public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }",
"public function getProdGeneral()\n {\n return $this->prod_general;\n }",
"public function get_motdepasse()\n {\n return $this->_motdepasse;\n }",
"public function getMeternumber()\n {\n return $this->meternumber;\n }",
"public function getMontantParticulier() {\n return $this->montantParticulier;\n }",
"public function getMontantAnnuel1(): ?float {\n return $this->montantAnnuel1;\n }",
"public function getMatricula()\n {\n return $this->matricula;\n }",
"public function getExamen_medico(){\n return $this->examen_medico;\n }",
"public function promotional();",
"public function getMatricula()\n\t{\n\t\treturn $this->matricula;\n\t}",
"public function getMotif()\n {\n return $this->motif;\n }",
"public function getMilage()\n {\n }",
"public function getMotCle()\n {\n return $this->motCle;\n }",
"function getMontantTTCArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantTTC']));\n else return 0;\n }",
"public function getMontacargasComprador()\n {\n\n return $this->montacargas_comprador;\n }",
"public function getMontacargasE()\n {\n\n return $this->montacargas_e;\n }",
"public function getAPELLIDO_MATERNO()\r\n {\r\n return $this->APELLIDO_MATERNO;\r\n }",
"public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}",
"public function getMedicaments(){\n\t\t$req = \"select * from medicament order by MED_NOMCOMMERCIAL\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}",
"public function getAmount()\r\n\t{\r\n\t\treturn $this->root->getAttribute('montant');\r\n\t}",
"public function getMedida() {\n return $this->iMedida;\n }",
"public function getMaand() {\n\t\treturn $this->maand;\n\t}",
"public function getMontacargasMarca()\n {\n\n return $this->montacargas_marca;\n }",
"public function obtenerMetodo()\n\t\t{\n\t\t\treturn $this->_metodo;\n\t\t}",
"public function getLibelleMatiere()\n {\n return $this->libelleMatiere;\n }",
"function getMontantTVAArticle($numserie) {\n // if ($this->calculmontant) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantTTC'] - $this->article[$numserie]['montantHT'])));\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantHT'] * ($this->TVA / 100))));\n else return 0;\n }",
"public function getUnidadMedida() {\n $o_DMantenimientoGeneral = new DMantenimientoGeneral();\n $resultado = $o_DMantenimientoGeneral->getUnidadMedida();\n foreach ($resultado as $key => $value) {\n array_push($resultado[$key], \"../../../../fastmedical_front/imagen/icono/editar.png ^ Editar\");\n array_push($resultado[$key], \"../../../../fastmedical_front/imagen/icono/i_nomailappt.png ^ Eliminar\");\n }\n return $resultado;\n }",
"public function getMtype1()\n {\n return $this->mtype1;\n }",
"public function getMUNICIPIO()\r\n {\r\n return $this->MUNICIPIO;\r\n }",
"public function getMu() : GMP\n {\n return $this->mu;\n }",
"public function getIdmontacargas()\n {\n\n return $this->idmontacargas;\n }",
"public function getMonto()\n {\n return $this->monto;\n }",
"public function getMonto()\n {\n return $this->monto;\n }",
"public function getMonto()\n {\n return $this->monto;\n }",
"public function getIdMatiere()\n {\n return $this->idMatiere;\n }",
"public function setMontantTva($montantTva) {\n $this->montantTva = $montantTva;\n return $this;\n }",
"public function getRegimeMatricula() {\n\n if (empty($this->oRegimeMatricula) && !empty($this->iCodigoRegime)) {\n $this->oRegimeMatricula = new RegimeMatricula($this->iCodigoRegime);\n }\n return $this->oRegimeMatricula;\n }",
"public function getPromotion(){\n return $this->promotion;\n }",
"public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }",
"public function setMontant($montant)\n {\n $this->montant = $montant;\n\n return $this;\n }",
"public function get_medico()\n {\n \n // loads the associated object\n if (empty($this->medico))\n $this->medico = new Medicos($this->medico_id);\n \n // returns the associated object\n return $this->medico;\n }",
"public function getAPELLIDOMATERNO()\r\n {\r\n return $this->APELLIDO_MATERNO;\r\n }",
"public function getTmet()\n {\n return $this->hasOne(TipoMeta::className(), ['tmet_id' => 'tmet_id']);\n }",
"public function getMontantAnnuel5(): ?float {\n return $this->montantAnnuel5;\n }",
"public function getMutualiteit() {\n\t\treturn $this->mutualiteit;\n\t}",
"public function getPrenotazioniMedico() {\n return $this->_prenotazioni;\n }",
"public function getMontantAnnuel4(): ?float {\n return $this->montantAnnuel4;\n }",
"public function getMontacargasNumserie()\n {\n\n return $this->montacargas_numserie;\n }",
"public function getMolino()\n {\n return $this->getModule()->getExtension('molino')->getMolino();\n }",
"public function getMisccost()\n {\n return $this->misccost;\n }",
"public function getUnidadMedida()\n {\n return $this->unidadMedida;\n }",
"public function getDetalle();",
"public function getMontantAnnuel3(): ?float {\n return $this->montantAnnuel3;\n }",
"public function getCasGeneral() {\n return $this->casGeneral;\n }",
"function getArticleMngt(){\n if ($this->articleMngtClass == NULL)\n return NULL;\n $c = $this->articleMngtClass;\n return new $c($this);\n }",
"public function getAntagonist()\n {\n return $this->antagonist;\n }",
"private function _getMCMontaggioOLD()\n {\n $mc = 0;\n foreach ($this->lista_arredi as $arredo)\n {\n if ($arredo->getServizioMontaggio())\n {\n $tmp = $arredo->getMC();\n if ($arredo->getParametroB() == Arredo::MONTATO_PIENO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_PIENO);\n $mc+= $tmp;\n\n }\n\n if ($arredo->getParametroB() == Arredo::MONTATO_VUOTO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_VUOTO);\n $mc+= $tmp;\n\n }\n }\n\n }\n\n return $mc;\n }",
"function get_tarifKilometrique() {\n return $this->tarifKilometrique;\n }",
"public function getUnidadeMedida()\n {\n return $this->unidadeMedida;\n }",
"public function getMonto(){\n\n $var_sum = CarritoProductosWeb::model()->findBySql('select ROUND(sum(`precio_total`), 2) as `precio_total` from carrito_productos_web \n WHERE id_pedido ='.$this->id_pedido, array());\n\n return $var_sum->precio_total;\n }",
"function getOptimum() { return $this->readOptimum(); }",
"public function getMtype()\n {\n return $this->mtype;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getMarca()\n {\n return $this->marca;\n }"
] | [
"0.7356934",
"0.7356934",
"0.733964",
"0.69096184",
"0.661266",
"0.6604905",
"0.655474",
"0.63536555",
"0.6299388",
"0.6198498",
"0.6168159",
"0.6161563",
"0.61235964",
"0.6098129",
"0.6092286",
"0.60855985",
"0.60425824",
"0.6024673",
"0.5994141",
"0.5930417",
"0.58527297",
"0.58108354",
"0.5777393",
"0.5766591",
"0.5753937",
"0.5729346",
"0.5714953",
"0.5714172",
"0.57139164",
"0.57119125",
"0.5706549",
"0.5678083",
"0.565358",
"0.56308985",
"0.561988",
"0.56036085",
"0.55980814",
"0.5588472",
"0.555266",
"0.5538545",
"0.5523251",
"0.5488119",
"0.5484213",
"0.54770875",
"0.54764396",
"0.54743403",
"0.543736",
"0.54344314",
"0.54262215",
"0.54118365",
"0.5402286",
"0.5383785",
"0.5372796",
"0.536015",
"0.53574157",
"0.5350206",
"0.53468806",
"0.5334061",
"0.5316068",
"0.53038704",
"0.5276817",
"0.52459",
"0.52383626",
"0.52334654",
"0.5229056",
"0.5217198",
"0.52170026",
"0.5213112",
"0.5213112",
"0.5213112",
"0.52110106",
"0.51944095",
"0.5161333",
"0.5136295",
"0.5107221",
"0.5107221",
"0.51036614",
"0.5102702",
"0.50929546",
"0.50825596",
"0.50758463",
"0.50746477",
"0.50726044",
"0.50721616",
"0.5066724",
"0.50543016",
"0.50541914",
"0.50416434",
"0.5007606",
"0.50045663",
"0.49898157",
"0.49858308",
"0.49766597",
"0.49742594",
"0.4971564",
"0.49663785",
"0.4956917",
"0.49553213",
"0.4942626",
"0.4942626"
] | 0.8537222 | 0 |
Get the montant particulier. | public function getMontantParticulier() {
return $this->montantParticulier;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant() {\n return $this->montant;\n }",
"public function getMontant_vente()\n {\n return $this->montant_vente;\n }",
"public function getMontantTva() {\n return $this->montantTva;\n }",
"public function getMontantGeneral() {\n return $this->montantGeneral;\n }",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }",
"public function getMontantTes() {\n return $this->montantTes;\n }",
"public function getMontantHt() {\n return $this->montantHt;\n }",
"public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }",
"public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }",
"public function getMontantAnnuel1(): ?float {\n return $this->montantAnnuel1;\n }",
"public function getMontantTtc() {\n return $this->montantTtc;\n }",
"public function getMontantBudget() {\n return $this->montantBudget;\n }",
"function getMontantArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantHT']));\n else return 0;\n }",
"public function getMontant_ht()\n {\n return $this->montant_ht;\n }",
"public function getCasParticulier() {\n return $this->casParticulier;\n }",
"public function getMontantFixe(): ?bool {\n return $this->montantFixe;\n }",
"public function getMontantAnnuel5(): ?float {\n return $this->montantAnnuel5;\n }",
"public function getMontacargasE()\n {\n\n return $this->montacargas_e;\n }",
"public function getMontacargasP()\n {\n\n return $this->montacargas_p;\n }",
"public function getMontantTtc()\n {\n $montant_ttc = $this->montant;\n\n foreach ($this->tvas as $tva) {\n $montant_ttc += $tva->getMontantTva();\n }\n\n return $montant_ttc;\n }",
"public function getMontantAnnuel2(): ?float {\n return $this->montantAnnuel2;\n }",
"public function min()\n {\n $minimum = round($this->centre - $this->centre * $this->deviation);\n\n return $this->unsigned ? max($minimum, 0) : $minimum;\n }",
"public function getMontantAnnuel4(): ?float {\n return $this->montantAnnuel4;\n }",
"public function setMontantParticulier($montantParticulier) {\n $this->montantParticulier = $montantParticulier;\n return $this;\n }",
"public function getMontantAnnuel3(): ?float {\n return $this->montantAnnuel3;\n }",
"public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getMontacargasComprador()\n {\n\n return $this->montacargas_comprador;\n }",
"public function getAmount()\r\n\t{\r\n\t\treturn $this->root->getAttribute('montant');\r\n\t}",
"function getMontantTTCArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantTTC']));\n else return 0;\n }",
"public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC) TOTALS \";\r\n return $this->row($query);\r\n }",
"public function getMetermaintenancecharge()\n {\n return $this->metermaintenancecharge;\n }",
"private function _getMCMontaggioOLD()\n {\n $mc = 0;\n foreach ($this->lista_arredi as $arredo)\n {\n if ($arredo->getServizioMontaggio())\n {\n $tmp = $arredo->getMC();\n if ($arredo->getParametroB() == Arredo::MONTATO_PIENO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_PIENO);\n $mc+= $tmp;\n\n }\n\n if ($arredo->getParametroB() == Arredo::MONTATO_VUOTO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_VUOTO);\n $mc+= $tmp;\n\n }\n }\n\n }\n\n return $mc;\n }",
"public function getPrenotazioniMedico() {\n return $this->_prenotazioni;\n }",
"public function getMin();",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getMother()\n {\n return $this->mother;\n }",
"public function getMontacargasT()\n {\n\n return $this->montacargas_t;\n }",
"public function getMin(): float;",
"public function getMaitre()\n {\n return $this->maitre;\n }",
"public function findPersonWithMinChild()\n { \n $frere = $this->simblings()->filter(function ($item) {\n return $item->nombre_enfant_dirrect < 5;\n });\n $x = $frere->sortBy('nombre_enfant_dirrect');\n return $x->first();\n\n // return $frere->min('nombre_enfant_dirrect');\n }",
"function getMontantTVAArticle($numserie) {\n // if ($this->calculmontant) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantTTC'] - $this->article[$numserie]['montantHT'])));\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantHT'] * ($this->TVA / 100))));\n else return 0;\n }",
"public function getMileage() {\n return $this->get(self::MILEAGE);\n }",
"public function getMontacargasK()\n {\n\n return $this->montacargas_k;\n }",
"public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }",
"public function getIndemnitePrecarite(): ?float {\n return $this->indemnitePrecarite;\n }",
"public function getIdMatiere()\n {\n return $this->idMatiere;\n }",
"function min() { return $this->min; }",
"public function getMeternumber()\n {\n return $this->meternumber;\n }",
"public function getmnem()\n {\n return $this->mnem;\n }",
"public function getMin()\n {\n return $this->_fMin;\n }",
"public function get_energymeters() {\n\t\t//Returns true or false. Values are set in $thermometers.\n\t\treturn $this->_get_energymeters();\n\t}",
"public function getFirst(){\n return ($this->page > 1) ? ($this->page * $this->amountArticle) - $this->amountArticle : 0;\n }",
"public function get_motdepasse()\n {\n return $this->_motdepasse;\n }",
"public function getFEmi()\n {\n return $this->f_emi;\n }",
"public function getMin() {\n return $this->min;\n }",
"public function getCierre_menor_inversion()\n {\n return $this->cierre_menor_inversion;\n }",
"public function getXMin() {}",
"public function getXMin() {}",
"public function getMontacargasNumserie()\n {\n\n return $this->montacargas_numserie;\n }",
"public function determinant()\n {\n $this->validateDimensions($this, self::SQUARE);\n\n if (!array_key_exists(__METHOD__, $this->cache)) {\n switch ($this->y) {\n case 1:\n $this->cache[__METHOD__] = $this->get(0, 0);\n break;\n case 2:\n $this->cache[__METHOD__] = $this->get(0, 0) * $this->get(1, 1) - $this->get(0, 1) * $this->get(1, 0);\n break;\n default:\n $determinant = 0;\n foreach ($this->getRow(0) as $x => $cell) {\n $minor_determinant = $cell * $this->getMinors($x)->determinant();\n if (($x % 2) === 0) {\n $determinant += $minor_determinant;\n } else {\n $determinant -= $minor_determinant;\n }\n }\n $this->cache[__METHOD__] = $determinant;\n break;\n }\n }\n\n return $this->cache[__METHOD__];\n }",
"public function getMateria(){\n\t\treturn $this->materia;\n }",
"public function getSuplier()\n {\n return $this->suplier;\n }",
"public function getMilage()\n {\n }",
"public function prime()\n {\n return $this->primeSalaire() + $this->primeAnciennete(); // on retourne le montant de la prime annuelle\n }",
"public function getFlexiTare()\n {\n return isset($this->flexiTare) ? $this->flexiTare : null;\n }",
"function getMiles()\n {\n return $this->miles;\n }",
"public function getLitreEssence()\n\t{\n\t\treturn $this->litreEssence;\n\t}",
"public function getMaterno()\n {\n return $this->materno;\n }",
"public function setMontant_vente(float $montant_vente)\n {\n $this->montant_vente = $montant_vente;\n\n return $this;\n }",
"public function point()\n {\n \treturn $this->club ? $this->club->point : null;\n }",
"public function getDisciplina()\r\n {\r\n return $this->disciplina;\r\n }",
"public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}",
"public function getMontacargasCiclosiniciales()\n {\n\n return $this->montacargas_ciclosiniciales;\n }",
"public function getEier()\n {\n return $this->delta_eier;\n }",
"public function getMinimum()\n {\n return $this->minimum;\n }",
"public function getLibelleMatiere()\n {\n return $this->libelleMatiere;\n }",
"public function getRemiseLigne1(): ?float {\n return $this->remiseLigne1;\n }",
"public function getMontacargasMarca()\n {\n\n return $this->montacargas_marca;\n }",
"public function getLocalMiniature() \n {\n return $this->localMiniature;\n }",
"public function getIndemniteCp(): ?float {\n return $this->indemniteCp;\n }",
"public function getPazientiMedico() {\n return $this->_pazienti;\n }",
"public function getMin()\n {\n return $this->_minValue;\n }",
"public function getFactuurdatum() {\n\t\treturn $this->factuurdatum;\n\t}",
"public function getMin(): int;",
"function meterTomile($e){\n$getTotal = $e*0.000621371;\nreturn $getTotal;\n}",
"public function getMvat()\n {\n return $this->mvat;\n }",
"public function getMontacargasAmperaje()\n {\n\n return $this->montacargas_amperaje;\n }",
"public function getDisciplina() {\n return $this->iDisciplina;\n }",
"function montantTot () {\n\t $montant = 0;\n\t for ($i = 0; $i < count ($_SESSION['panier']['numE']);$i ++) {\n\t\t $montant += $_SESSION['panier']['nbr'][$i] * $_SESSION['panier']['prix'][$i]; \n\t }\n\t return $montant;\n }",
"public function getPedidoMinimo()\n {\n return $this->pedido_minimo;\n }",
"public function getFirstDepartPoint()\n {\n return $this->firstDepartPoint;\n }",
"public function getMontantValide($mois, $visiteur){\n $qb = $this->_em->createQueryBuilder()\n ->select('f.montantvalide')\n ->from($this->_entityName, 'f')\n ->where('f.idvisiteur = :visiteur')\n ->setParameter('visiteur', $visiteur)\n ->andWhere('f.mois = :mois')\n ->setParameter('mois', $mois);\n return $qb->getQuery()->getSingleResult();\n }",
"public function getCoMantenimiento()\n\t{\n\t\treturn $this->co_mantenimiento;\n\t}",
"public function getMtPrev(): ?float {\n return $this->mtPrev;\n }",
"public function getMatricule(){\n return $this->$Matricule;\n }",
"public function getCirculante_P(){\n\t\t$this->setCirculante_P();\n\t\t\n\t\treturn $this->Circulante_P;\t\n\t}"
] | [
"0.7361016",
"0.7361016",
"0.7310926",
"0.6805924",
"0.6554442",
"0.64709204",
"0.6429309",
"0.64190423",
"0.63975674",
"0.62538606",
"0.6220548",
"0.61932486",
"0.6186035",
"0.6182788",
"0.60515356",
"0.6046053",
"0.60227406",
"0.5927286",
"0.5813694",
"0.58095413",
"0.5787928",
"0.5762036",
"0.5735608",
"0.57305527",
"0.56982785",
"0.5663997",
"0.5657905",
"0.5621486",
"0.56126386",
"0.5577121",
"0.5565869",
"0.5556166",
"0.55342525",
"0.5531642",
"0.55306375",
"0.5530139",
"0.552936",
"0.55069536",
"0.54970634",
"0.54902667",
"0.54880387",
"0.5481591",
"0.5475339",
"0.5430248",
"0.5428083",
"0.5411044",
"0.54015064",
"0.53941536",
"0.53700566",
"0.53656334",
"0.53551483",
"0.535344",
"0.534576",
"0.53371376",
"0.5333479",
"0.53207844",
"0.53131634",
"0.52910465",
"0.5290017",
"0.52899927",
"0.52869034",
"0.52869034",
"0.52864265",
"0.527549",
"0.5273309",
"0.52709395",
"0.5259023",
"0.52409023",
"0.52297056",
"0.5222795",
"0.52156794",
"0.52130455",
"0.5206009",
"0.5199835",
"0.518066",
"0.5169474",
"0.51534",
"0.51499724",
"0.5139758",
"0.51388556",
"0.51207596",
"0.5119135",
"0.5114833",
"0.5113991",
"0.5107349",
"0.51009315",
"0.5100383",
"0.509278",
"0.50834805",
"0.50741005",
"0.5073756",
"0.5071463",
"0.50672406",
"0.5061136",
"0.5052805",
"0.50499994",
"0.5042824",
"0.5042384",
"0.50366735",
"0.50334036"
] | 0.8145472 | 0 |
Get the mt cg euro ou franc. | public function getMtCgEuroOuFranc() {
return $this->mtCgEuroOuFranc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMtCpEuroOuFranc() {\n return $this->mtCpEuroOuFranc;\n }",
"function getUTM()\r\n\t{\r\n\t\t// get UTM letter\r\n\t\tif ( $this->nLat <= 84.0 && $this->nLat >= 72.0 )\r\n\t\t\t$utmLetter = 'X';\r\n\t\telse if ( $this->nLat < 72.0 && $this->nLat >= 64.0 )\r\n\t\t\t$utmLetter = 'W';\r\n\t\telse if ( $this->nLat < 64.0 && $this->nLat >= 56.0 )\r\n\t\t\t$utmLetter = 'V';\r\n\t\telse if ( $this->nLat < 56.0 && $this->nLat >= 48.0 )\r\n\t\t\t$utmLetter = 'U';\r\n\t\telse if ( $this->nLat < 48.0 && $this->nLat >= 40.0 )\r\n\t\t\t$utmLetter = 'T';\r\n\t\telse if ( $this->nLat < 40.0 && $this->nLat >= 32.0 )\r\n\t\t\t$utmLetter = 'S';\r\n\t\telse if ( $this->nLat < 32.0 && $this->nLat >= 24.0 )\r\n\t\t\t$utmLetter = 'R';\r\n\t\telse if ( $this->nLat < 24.0 && $this->nLat >= 16.0 )\r\n\t\t\t$utmLetter = 'Q';\r\n\t\telse if ( $this->nLat < 16.0 && $this->nLat >= 8.0 )\r\n\t\t\t$utmLetter = 'P';\r\n\t\telse if ( $this->nLat < 8.0 && $this->nLat >= 0.0 )\r\n\t\t\t$utmLetter = 'N';\r\n\t\telse if ( $this->nLat < 0.0 && $this->nLat >= -8.0 )\r\n\t\t\t$utmLetter = 'M';\r\n\t\telse if ( $this->nLat < -8.0 && $this->nLat >= -16.0 )\r\n\t\t\t$utmLetter = 'L';\r\n\t\telse if ( $this->nLat < -16.0 && $this->nLat >= -24.0 )\r\n\t\t\t$utmLetter = 'K';\r\n\t\telse if ( $this->nLat < -24.0 && $this->nLat >= -32.0 )\r\n\t\t\t$utmLetter = 'J';\r\n\t\telse if ( $this->nLat < -32.0 && $this->nLat >= -40.0 )\r\n\t\t\t$utmLetter = 'H';\r\n\t\telse if ( $this->nLat < -40.0 && $this->nLat >= -48.0 )\r\n\t\t\t$utmLetter = 'G';\r\n\t\telse if ( $this->nLat < -48.0 && $this->nLat >= -56.0 )\r\n\t\t\t$utmLetter = 'F';\r\n\t\telse if ( $this->nLat < -56.0 && $this->nLat >= -64.0 )\r\n\t\t\t$utmLetter = 'E';\r\n\t\telse if ( $this->nLat < -64.0 && $this->nLat >= -72.0 )\r\n\t\t\t$utmLetter = 'D';\r\n\t\telse if ( $this->nLat < -72.0 && $this->nLat >= -80.0 )\r\n\t\t\t$utmLetter = 'C';\r\n\t\telse\r\n\t\t\t$utmLetter = 'Z'; //returns 'Z' if the lat is outside the UTM limits of 84N to 80S\r\n\r\n\t\t$zone = (int) ( ( $this->nLon + 180 ) / 6 ) + 1;\r\n\r\n\t\tif ( $this->nLat >= 56.0 && $this->nLat < 64.0 && $this->nLon >= 3.0 && $this->nLon < 12.0 ) $zone = 32;\r\n\r\n\t\t// Special zones for Svalbard.\r\n\t\tif ($this->nLat >= 72.0 && $this->nLat < 84.0 )\r\n\t\t{\r\n\t\t\tif ( $this->nLon >= 0.0 && $this->nLon < 9.0 )\r\n\t\t\t\t$zone = 31;\r\n\t\t\telse if ( $this->nLon >= 9.0 && $this->nLon < 21.0 )\r\n\t\t\t\t$zone = 33;\r\n\t\t\telse if ( $this->nLon >= 21.0 && $this->nLon < 33.0 )\r\n\t\t\t\t$zone = 35;\r\n\t\t\telse if ( $this->nLon >= 33.0 && $this->nLon < 42.0 )\r\n\t\t\t\t$zone = 37;\r\n\t\t}\r\n\r\n\t\t$cs2csresult = $this->getCore(\"+proj=utm +datum=WGS84 +zone=$zone\");\r\n\r\n\t\treturn Array('zone' => $zone, 'letter' => $utmLetter, 'north' => 'N ' . floor($cs2csresult[1]), 'east' => 'E ' . floor($cs2csresult[0]));\r\n\t}",
"public function getNumeroCgm() {\n return $this->iNumeroCgm;\n }",
"public function getFornecedor() {\n\n if (empty($this->oCgm) && !empty($this->iCodigoCgm)) {\n $this->setFornecedor(CgmFactory::getInstanceByCgm($this->iCodigoCgm));\n }\n return $this->oCgm;\n }",
"public function getGRUPO_ETNICO()\r\n {\r\n return $this->GRUPO_ETNICO;\r\n }",
"public function getGRUPOETNICO()\r\n {\r\n return $this->GRUPO_ETNICO;\r\n }",
"public function getageEu()\n {\n return $this->age_eu;\n }",
"public function getGlobalCurrencyCode();",
"public function getGender(){ // fungsi get untuk mengambil nilai dari gender\n printNumC();//\n return $this->gender;\n }",
"public function setMtCgEuroOuFranc($mtCgEuroOuFranc) {\n $this->mtCgEuroOuFranc = $mtCgEuroOuFranc;\n return $this;\n }",
"public function getCgm() {\n\n if (!empty($this->iCodigoCGM)) {\n $this->oCgm = CgmFactory::getInstanceByCgm($this->iCodigoCGM);\n }\n return $this->oCgm;\n }",
"public function getCpf() {\n return $this->oCgm->getCpf();\n }",
"public function getCGU()\n\t{\n\t\t$this->db->where('titre = \"Terme-condition-utilisation\"');\n\t\t$Query = $this->db->get(\"mention\");\n\t\tif($Query->num_rows() > 0 ){\n\t\t\tforeach ($Query->result() as $mentionsCGU)\n\t\t\t{\n\t\t\t\t$data[] = $mentionsCGU;\n\t\t\t}\n\t\n\t\t\treturn $data;\n\t\t}\n\t}",
"public function getWholeGender()\n\t{\n\t\tif($this->gender == \"m\"){\n\t\t\treturn \"muž\";\n\t\t}elseif($this->gender == \"f\"){\n\t\t\treturn \"žena\";\n\t\t}\n\t\treturn;\n\t}",
"function getLocale();",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"public function getCelular()\n\t{\n\t\treturn $this->celular;\n\t}",
"public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }",
"public function getUm()\n {\n return isset($this->um) ? $this->um : null;\n }",
"function utilgsmnumber($number){\n return $number;\n }",
"function ucapan($g,$u){\n\tif($g == \"Wanita\" && $u > 24 ){\n\t\t$ucapan = \"Ibu\";\n\t}elseif($g == \"Pria\" && $u > 24 ){\n\t\t$ucapan = \"Bapak\";\n\t}elseif($g == \"Pria\"){\n\t\t$ucapan = \"Saudara\";\n\t}else{\n\t\t$ucapan = \"Saudari\";\n\t}\n\treturn $ucapan;\n}",
"abstract public function getLocaleCode();",
"public function getBachilleratofecha()\n\t{\n\t\treturn $this->bachilleratofecha;\n\t}",
"public function getCodeMetier(): ?string {\n return $this->codeMetier;\n }",
"public static function getMileageString(){\n $mileagePref = sfContext::getInstance()->getUser()->getAttribute('mileage',null,'subscriber');\n $mileString = \"miles\";\n if($mileagePref==0){\n $mileString=\"km\";\n }\n return $mileString;\n }",
"public function getCurrency(): string;",
"public function getCurrency(): string;",
"public function get_ctc_type($type){\n\t\tswitch($type){\n\t\t\tcase 'T':\n\t\t\t$value = 'Thousands';\n\t\t\tbreak;\n\t\t\tcase 'L':\n\t\t\t$value = 'Lacs';\n\t\t\tbreak;\n\t\t\tcase 'C':\n\t\t\t$value = 'Crore';\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn $value;\n }",
"public function getGenderCode($quote)\n {\n $gender = $quote->getCustomerGender();\n if ($gender) {\n $attribute = Mage::getModel('eav/entity_attribute')->loadByCode('customer', 'gender');\n $option = $attribute->getFrontend()->getOption($gender);\n\n switch (strtolower($option)) {\n case 'male':\n return 'M';\n case 'female':\n return 'F';\n }\n }\n\n $gender = $quote->getCustomerPrefix();\n if ($gender) {\n switch (strtolower($gender)) {\n case 'herr':\n case 'mr':\n return 'M';\n case 'frau':\n case 'mrs':\n return 'F';\n }\n }\n return 'U';\n }",
"public function getGenderCode($quote)\n {\n $gender = $quote->getCustomerGender();\n if ($gender) {\n $attribute = Mage::getModel('eav/entity_attribute')->loadByCode('customer', 'gender');\n $option = $attribute->getFrontend()->getOption($gender);\n\n switch (strtolower($option)) {\n case 'male':\n return 'M';\n case 'female':\n return 'F';\n }\n }\n\n $gender = $quote->getCustomerPrefix();\n if ($gender) {\n switch (strtolower($gender)) {\n case 'herr':\n case 'mr':\n return 'M';\n case 'frau':\n case 'mrs':\n return 'F';\n }\n }\n return 'U';\n }",
"public function getUf(){\n return $this->uf;\n }",
"public function getLocale(): string;",
"public function getLocale(): string;",
"public function getLocale(): string;",
"public function um() {\n return $this->_um;\n }",
"public function getCustomerGender()\n {\n $user = Shopware()->Modules()->Admin()->sGetUserData();\n\n if (version_compare(Shopware()->Config()->get( 'Version' ), '5.2.0', '<')) {\n $customerGender = $user[\"billingaddress\"][\"salutation\"];\n } elseif (version_compare(Shopware()->Config()->get( 'Version' ), '5.2.0', '>=')) {\n $customerGender = $user[\"additional\"][\"user\"][\"salutation\"];\n }\n\n return $customerGender;\n }",
"public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }",
"public function getMtNetPayeTheo(): ?float {\n return $this->mtNetPayeTheo;\n }",
"public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}",
"public function inMaltese()\n {\n return $this->getTranslationIn('mt');\n }",
"public function getKieGuruCuciTangan()\n {\n return $this->kie_guru_cuci_tangan;\n }",
"public function getMotCle()\n {\n return $this->motCle;\n }",
"public static function currency() {\n\t\treturn self::$currency;\n\t}",
"public function getCmobile()\n {\n return $this->cmobile;\n }",
"public function getMontoCuota()\n {\n return $this->monto_cuota;\n }",
"public function getMontantGeneral() {\n return $this->montantGeneral;\n }",
"public function getMaitre()\n {\n return $this->maitre;\n }",
"public function getLocale();",
"public function getLocale();",
"public function getCorrelativoCuot()\n {\n return $this->correlativo_cuot;\n }",
"public function getMtAutreDeduction(): ?float {\n return $this->mtAutreDeduction;\n }",
"public function getLocale() {}",
"public function getCompatibleLanguageQuaderno() {\n $country = $this->getCountry();\n $spanishSpeaking = pais::getCountriesSpanishSpeaking();\n if (array_key_exists($country->getUID(), $spanishSpeaking)) {\n return 'ES';\n } else {\n switch ($country->getUID()) {\n case pais::PORTUGAL_CODE:\n return 'PT';\n break;\n case pais::FRANCE_CODE:\n return 'FR';\n break;\n default:\n return 'EN';\n }\n }\n\n return 'EN';\n }",
"function csosn($tptribicms, $estabelecimento){\r\n\t$csosn = NULL;\r\n\tif($estabelecimento->getregimetributario() == \"1\"){\r\n\t\t$permitecredicms = ($estabelecimento->getpermitecredicms() === \"S\");\r\n\t\tif($tptribicms != \"F\"){\r\n\t\t\tif($permitecredicms == \"S\"){\r\n\t\t\t\t$csosn = \"101\";\r\n\t\t\t}else{\r\n\t\t\t\t$csosn = \"102\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif($permitecredicms == \"S\"){\r\n\t\t\t\t$csosn = \"201\";\r\n\t\t\t}else{\r\n\t\t\t\t$csosn = \"202\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $csosn;\r\n}",
"public function getTempUnitSign() {\n\t\tif( $this->getTempUnit() == 'celsius' ) {\n\t\t\treturn 'C';\n\t\t} else {\n\t\t\treturn 'F';\n\t\t}\n\t}",
"public function getCulture()\n {\n return $this->locale.($this->region ? '-'.$this->region : '');\n }",
"public static function locale() : string\n {\n // Compute the locale just one time\n if (self::$locale) {\n return self::$locale;\n }\n\n // Lang in cookies\n $locale = self::langToLocale($_COOKIE['NameYourGoat_User_Locale'] ?? '');\n\n // Lang in User repository\n if (! $locale && self::isAuth()) {\n $locale = self::langToLocale(self::$fullUser->lang);\n }\n\n // Lang in the request headers\n if (! $locale) {\n $acceptLang = explode(',', getallheaders()['Accept-Language'] ?? '');\n\n foreach ($acceptLang as $lang) {\n if ($locale = self::langToLocale(trim(strtok($lang, '-;')))) {\n break;\n }\n }\n }\n\n return self::$locale = $locale ?: self::$defaultLocale;\n }",
"public function getGender(){\n $name = '';\n if ($this->gender =='N') {\n $name = 'Preferred not to tell';\n }elseif ($this->gender =='M') {\n $name = 'Male';\n }else{\n $name = 'Female';\n }\n return $name;\n }",
"function acadp_get_currency() {\n\n\t$currency_settings = get_option( 'acadp_currency_settings' );\n\t$currency = ! empty( $currency_settings[ 'currency' ] ) ? $currency_settings[ 'currency' ] : 'USD';\n\n\treturn strtoupper( $currency );\n\n}",
"private function get_currency_code() : string {\n\t\tpreg_match( '/runParams\\.baseCurrencyCode=\"(.*?)\";/s', $this->request, $matches );\n\t\tif ( empty( $matches[1] ) ) {\n\t\t\treturn 'USD';\n\t\t}\n\t\treturn sanitize_text_field( $matches[1] );\n\t}",
"public function getCurrency() : string\n {\n return $this->currency;\n }",
"public function getCurrency() : string\n {\n return $this->currency;\n }",
"public static function getSiteCurrency(){\n return 'SAR';\n }",
"public function getOfficialCode ()\n {\n return ltrim ( (string) $this->xmlRecord->matriculeFgs, '0' );\n }",
"public function getPreferredCMM() {}",
"public function getFornecedor(){\n\n if (!empty($this->iCodigoFornecedor) && empty($this->oFornecedor)) {\n $this->oFornecedor = CgmFactory::getInstanceByCgm($this->iCodigoFornecedor);\n }\n return $this->oFornecedor;\n }",
"public function getPorcentagemChef() {\n return $this->getChaveValor('PORCENTAGEM_CHEF');\n }",
"public function getMu() : GMP\n {\n return $this->mu;\n }",
"public function get_mobileCountryCode(): int\n {\n return $this->_mcc;\n }",
"public function get_mobileCountryCode(): int\n {\n return $this->_mcc;\n }",
"public function getC6()\r\n {\r\n return $this->C6;\r\n }",
"public function getCurrency();",
"public function getCurrency();",
"public function getCouleur()\n {\n return $this->couleur;\n }",
"public function getCurrencyCode();",
"public function getCurrencyCode();",
"public function getCurrencyCode();",
"public function getFabricante():string{\n return $this->fabricante;\n }",
"protected function get_currency() {\n\t\treturn $this->currency;\n\t}",
"function getGreet($gen){\n switch($gen){\n case 'male': return \"Sir\"; break;\n case 'female': return \"Ma'am\"; break;\n }\n }",
"public static function locale(): string\n {\n // in the end to handle that case\n return Arr::get(config('currencies'), strtolower(static::currency()).'.locale', 'en_US') ?? 'en_US';\n }",
"function getfield(){\r\n // Талбаруудын утгыг авах\r\n }",
"public function getCountry() : string {\n\t\t\treturn substr($this->value, 4, 2);\n\t\t}",
"public function getCapacidad()\r\n {\r\n return \"4.7GB\";\r\n }",
"public function getUf()\n {\n return $this->uf;\n }",
"public function getCodeMetierBtp() {\n return $this->codeMetierBtp;\n }",
"static function fetchLocaleCurrencyCode()\n {\n $locale = eZLocale::instance();\n $currencyCode = $locale->currencyShortName();\n return $currencyCode;\n }",
"function getChambrehospi(){\n return $this->chambre;\n }",
"public function getMtDeductionAcompte(): ?float {\n return $this->mtDeductionAcompte;\n }",
"function Tn_eco_mar($level,$MBn) // CT dung\n{\n\treturn round((1800+450*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"public function getChapeau();",
"function qualificationServ(): string\n{\n $FtPqr = getFtPqr();\n $FtPqrCalificacion = $FtPqr->getLastCalificacion();\n\n return $FtPqrCalificacion ? $FtPqrCalificacion->getFieldValue('experiencia_servicio') : '-';\n}",
"public static function getUserUnit()\n {\n $user = static::get();\n if (isset($user->sqUnidadeOrg)) {\n return $user->sqUnidadeOrg;\n }\n }",
"public function getCompteurSurEx(): ?int {\n return $this->compteurSurEx;\n }",
"public function getCsex()\n {\n return $this->csex;\n }",
"public function getCountryCode(): string;",
"public function getUr() {}",
"public function getCifra_moeda()\n {\n return $this->cifra_moeda;\n }",
"public function getCountryCode(): string\n {\n return 'SK';\n }",
"public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}"
] | [
"0.7239235",
"0.6447964",
"0.6013873",
"0.5902233",
"0.58915937",
"0.58721757",
"0.58065593",
"0.5778419",
"0.5713487",
"0.57025003",
"0.5689995",
"0.5686294",
"0.56852114",
"0.56698525",
"0.5660657",
"0.56601804",
"0.5616415",
"0.56086683",
"0.55599755",
"0.55382174",
"0.5530086",
"0.55126804",
"0.5509516",
"0.54997563",
"0.54910094",
"0.5488949",
"0.5488949",
"0.5486486",
"0.5480326",
"0.5480326",
"0.54691577",
"0.5464303",
"0.5464303",
"0.5464303",
"0.5460583",
"0.5453208",
"0.544863",
"0.54442257",
"0.5438535",
"0.54377246",
"0.5437635",
"0.5434792",
"0.54226416",
"0.54144883",
"0.54120153",
"0.5406667",
"0.54050785",
"0.5404962",
"0.5404962",
"0.5404623",
"0.5401856",
"0.5399042",
"0.53940165",
"0.53921103",
"0.53908646",
"0.53817725",
"0.5372327",
"0.53687376",
"0.53685594",
"0.5367545",
"0.5361123",
"0.5361123",
"0.5360058",
"0.5352604",
"0.53486097",
"0.5346299",
"0.53403336",
"0.5337434",
"0.5333253",
"0.5333253",
"0.5333103",
"0.53246504",
"0.53246504",
"0.53202313",
"0.5318863",
"0.5318863",
"0.5318863",
"0.5305117",
"0.5300815",
"0.5299828",
"0.52930135",
"0.5290717",
"0.52866566",
"0.52837706",
"0.5273524",
"0.5272257",
"0.5271007",
"0.52674997",
"0.52596116",
"0.5254406",
"0.52518415",
"0.5250442",
"0.52383196",
"0.52219576",
"0.5214926",
"0.5214452",
"0.5203179",
"0.5201773",
"0.5199547",
"0.5197315"
] | 0.7987385 | 0 |
Get the mt cp euro ou franc. | public function getMtCpEuroOuFranc() {
return $this->mtCpEuroOuFranc;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMtCgEuroOuFranc() {\n return $this->mtCgEuroOuFranc;\n }",
"function getUTM()\r\n\t{\r\n\t\t// get UTM letter\r\n\t\tif ( $this->nLat <= 84.0 && $this->nLat >= 72.0 )\r\n\t\t\t$utmLetter = 'X';\r\n\t\telse if ( $this->nLat < 72.0 && $this->nLat >= 64.0 )\r\n\t\t\t$utmLetter = 'W';\r\n\t\telse if ( $this->nLat < 64.0 && $this->nLat >= 56.0 )\r\n\t\t\t$utmLetter = 'V';\r\n\t\telse if ( $this->nLat < 56.0 && $this->nLat >= 48.0 )\r\n\t\t\t$utmLetter = 'U';\r\n\t\telse if ( $this->nLat < 48.0 && $this->nLat >= 40.0 )\r\n\t\t\t$utmLetter = 'T';\r\n\t\telse if ( $this->nLat < 40.0 && $this->nLat >= 32.0 )\r\n\t\t\t$utmLetter = 'S';\r\n\t\telse if ( $this->nLat < 32.0 && $this->nLat >= 24.0 )\r\n\t\t\t$utmLetter = 'R';\r\n\t\telse if ( $this->nLat < 24.0 && $this->nLat >= 16.0 )\r\n\t\t\t$utmLetter = 'Q';\r\n\t\telse if ( $this->nLat < 16.0 && $this->nLat >= 8.0 )\r\n\t\t\t$utmLetter = 'P';\r\n\t\telse if ( $this->nLat < 8.0 && $this->nLat >= 0.0 )\r\n\t\t\t$utmLetter = 'N';\r\n\t\telse if ( $this->nLat < 0.0 && $this->nLat >= -8.0 )\r\n\t\t\t$utmLetter = 'M';\r\n\t\telse if ( $this->nLat < -8.0 && $this->nLat >= -16.0 )\r\n\t\t\t$utmLetter = 'L';\r\n\t\telse if ( $this->nLat < -16.0 && $this->nLat >= -24.0 )\r\n\t\t\t$utmLetter = 'K';\r\n\t\telse if ( $this->nLat < -24.0 && $this->nLat >= -32.0 )\r\n\t\t\t$utmLetter = 'J';\r\n\t\telse if ( $this->nLat < -32.0 && $this->nLat >= -40.0 )\r\n\t\t\t$utmLetter = 'H';\r\n\t\telse if ( $this->nLat < -40.0 && $this->nLat >= -48.0 )\r\n\t\t\t$utmLetter = 'G';\r\n\t\telse if ( $this->nLat < -48.0 && $this->nLat >= -56.0 )\r\n\t\t\t$utmLetter = 'F';\r\n\t\telse if ( $this->nLat < -56.0 && $this->nLat >= -64.0 )\r\n\t\t\t$utmLetter = 'E';\r\n\t\telse if ( $this->nLat < -64.0 && $this->nLat >= -72.0 )\r\n\t\t\t$utmLetter = 'D';\r\n\t\telse if ( $this->nLat < -72.0 && $this->nLat >= -80.0 )\r\n\t\t\t$utmLetter = 'C';\r\n\t\telse\r\n\t\t\t$utmLetter = 'Z'; //returns 'Z' if the lat is outside the UTM limits of 84N to 80S\r\n\r\n\t\t$zone = (int) ( ( $this->nLon + 180 ) / 6 ) + 1;\r\n\r\n\t\tif ( $this->nLat >= 56.0 && $this->nLat < 64.0 && $this->nLon >= 3.0 && $this->nLon < 12.0 ) $zone = 32;\r\n\r\n\t\t// Special zones for Svalbard.\r\n\t\tif ($this->nLat >= 72.0 && $this->nLat < 84.0 )\r\n\t\t{\r\n\t\t\tif ( $this->nLon >= 0.0 && $this->nLon < 9.0 )\r\n\t\t\t\t$zone = 31;\r\n\t\t\telse if ( $this->nLon >= 9.0 && $this->nLon < 21.0 )\r\n\t\t\t\t$zone = 33;\r\n\t\t\telse if ( $this->nLon >= 21.0 && $this->nLon < 33.0 )\r\n\t\t\t\t$zone = 35;\r\n\t\t\telse if ( $this->nLon >= 33.0 && $this->nLon < 42.0 )\r\n\t\t\t\t$zone = 37;\r\n\t\t}\r\n\r\n\t\t$cs2csresult = $this->getCore(\"+proj=utm +datum=WGS84 +zone=$zone\");\r\n\r\n\t\treturn Array('zone' => $zone, 'letter' => $utmLetter, 'north' => 'N ' . floor($cs2csresult[1]), 'east' => 'E ' . floor($cs2csresult[0]));\r\n\t}",
"public function getCpf()\n {\n return $this->cpf;\n }",
"public function getCpf()\n {\n return $this->cpf;\n }",
"public function getCpf() {\n return $this->oCgm->getCpf();\n }",
"public function getCp()\n {\n return $this->cp;\n }",
"public function getIndemniteCp(): ?float {\n return $this->indemniteCp;\n }",
"public function getCP() {\n\t\treturn $this->cp;\n\t}",
"public function getNuCpf()\n\t{\n\t\treturn $this->nu_cpf;\n\t}",
"protected function getCertificacionEnergetica() {\n\t\tif (!empty($this->item['ec'])) {\n\t\t\treturn strtolower($this->item['ec']);\n\t\t}\n\t\treturn 'no disponible';\n\t}",
"public function getCodeCaisseCp() {\n return $this->codeCaisseCp;\n }",
"public function getCelular()\n\t{\n\t\treturn $this->celular;\n\t}",
"public function getCodeOfficielCommuneLieuTrav() {\n return $this->codeOfficielCommuneLieuTrav;\n }",
"public function getPrecioCompra()\n\t{\n\t\treturn $this->precio_compra;\n\t}",
"public function getPvC()\n {\n return $this->pv_c;\n }",
"public function getCouleur()\n {\n return $this->couleur;\n }",
"public function getCep()\n\t{\t\n\t\t/**\n\t\t * retorno Cep cliente\n\t\t * @return Cep\n\t\t */\n\t\treturn $this->cep;\n\t}",
"public function getPerPersonEquivFareCurrency()\n {\n return $this->PerPersonEquivFareCurrency;\n }",
"public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }",
"public function getMontoCuota()\n {\n return $this->monto_cuota;\n }",
"public function getCofficeT()\n {\n return $this->coffice_t;\n }",
"public function getProvisionCp(): ?float {\n return $this->provisionCp;\n }",
"public function getRacineCpt(): ?string {\n return $this->racineCpt;\n }",
"public function getMUNICIPIO()\r\n {\r\n return $this->MUNICIPIO;\r\n }",
"public function getPaiementEnEuro() {\n return $this->paiementEnEuro;\n }",
"public function getPreferredCMM() {}",
"function getLocale();",
"public function getCorrelativoCuot()\n {\n return $this->correlativo_cuot;\n }",
"public function getCustpo()\n {\n return $this->custpo;\n }",
"public function getPeriodeAu() {\n return $this->periodeAu;\n }",
"function acadp_get_currency() {\n\n\t$currency_settings = get_option( 'acadp_currency_settings' );\n\t$currency = ! empty( $currency_settings[ 'currency' ] ) ? $currency_settings[ 'currency' ] : 'USD';\n\n\treturn strtoupper( $currency );\n\n}",
"function csosn($tptribicms, $estabelecimento){\r\n\t$csosn = NULL;\r\n\tif($estabelecimento->getregimetributario() == \"1\"){\r\n\t\t$permitecredicms = ($estabelecimento->getpermitecredicms() === \"S\");\r\n\t\tif($tptribicms != \"F\"){\r\n\t\t\tif($permitecredicms == \"S\"){\r\n\t\t\t\t$csosn = \"101\";\r\n\t\t\t}else{\r\n\t\t\t\t$csosn = \"102\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tif($permitecredicms == \"S\"){\r\n\t\t\t\t$csosn = \"201\";\r\n\t\t\t}else{\r\n\t\t\t\t$csosn = \"202\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\treturn $csosn;\r\n}",
"function get_cms_cpf($cpf, $member = null)\n{\n if (is_null($member)) {\n $member = get_member();\n }\n\n $values = $GLOBALS['FORUM_DRIVER']->get_custom_fields($member);\n if (is_null($values)) {\n return '';\n }\n\n if (array_key_exists($cpf, $values)) {\n $ret = $values[$cpf];\n if (is_object($ret)) {\n $ret = $ret->evaluate();\n }\n return $ret;\n }\n\n if (get_forum_type() == 'cns') {\n $values = cns_get_all_custom_fields_match_member($member);\n if (array_key_exists($cpf, $values)) {\n return $values[$cpf]['RAW'];\n }\n }\n\n return '';\n}",
"public function get_ctc_type($type){\n\t\tswitch($type){\n\t\t\tcase 'T':\n\t\t\t$value = 'Thousands';\n\t\t\tbreak;\n\t\t\tcase 'L':\n\t\t\t$value = 'Lacs';\n\t\t\tbreak;\n\t\t\tcase 'C':\n\t\t\t$value = 'Crore';\n\t\t\tbreak;\n\t\t\t\n\t\t}\n\t\treturn $value;\n }",
"public function getPorcentagemChef() {\n return $this->getChaveValor('PORCENTAGEM_CHEF');\n }",
"public function getCemail()\n {\n return $this->cemail;\n }",
"public function getCep() {\n return $this->sCep;\n }",
"public function getCnameE()\n {\n return $this->cname_e;\n }",
"public function getUm()\n {\n return isset($this->um) ? $this->um : null;\n }",
"abstract public function getLocaleCode();",
"public function getPrcifecha()\n {\n return $this->prcifecha;\n }",
"function getCC2(){\n\t\t\treturn $this->cc;\t\t\n\t\t}",
"public function getCodeMetier(): ?string {\n return $this->codeMetier;\n }",
"public function setMtCpEuroOuFranc($mtCpEuroOuFranc) {\n $this->mtCpEuroOuFranc = $mtCpEuroOuFranc;\n return $this;\n }",
"static function fetchLocaleCurrencyCode()\n {\n $locale = eZLocale::instance();\n $currencyCode = $locale->currencyShortName();\n return $currencyCode;\n }",
"function getfield(){\r\n // Талбаруудын утгыг авах\r\n }",
"public function getCriadoEm()\n {\n return $this->criadoEm;\n }",
"public static function getSiteCurrency(){\n return 'SAR';\n }",
"public function getChapeau();",
"public function getCODIGO_POSTAL()\r\n {\r\n return $this->CODIGO_POSTAL;\r\n }",
"public function getCollisimoLaPoste()\n\t{\n\t\treturn $this->em->getRepository(\"VPMTransporteurBundle:Transporteur\")->findOneByNom(\"Colissimo La Poste\");\n\t}",
"public function getCulture()\n {\n return $this->locale.($this->region ? '-'.$this->region : '');\n }",
"public function getFornecedor() {\n\n if (empty($this->oCgm) && !empty($this->iCodigoCgm)) {\n $this->setFornecedor(CgmFactory::getInstanceByCgm($this->iCodigoCgm));\n }\n return $this->oCgm;\n }",
"public static function getCompteur() {\n return self::$_compteur;\n }",
"public function getLocale();",
"public function getLocale();",
"public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}",
"public function getCivilite()\n {\n return $this->civilite;\n }",
"public function getLocale() {}",
"public function cm() {\n return $this->_cm;\n }",
"public function getCountry() : string {\n\t\t\treturn substr($this->value, 4, 2);\n\t\t}",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"protected function get_currency() {\n\t\treturn $this->currency;\n\t}",
"public function getCmobile()\n {\n return $this->cmobile;\n }",
"public function getMotCle()\n {\n return $this->motCle;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getCodePostalLieuTrav() {\n return $this->codePostalLieuTrav;\n }",
"public function getUr() {}",
"public function getTercerarazonbecafecha()\n\t{\n\t\treturn $this->tercerarazonbecafecha;\n\t}",
"public function getNumeroCgm() {\n return $this->iNumeroCgm;\n }",
"public function getCompatibleLanguageQuaderno() {\n $country = $this->getCountry();\n $spanishSpeaking = pais::getCountriesSpanishSpeaking();\n if (array_key_exists($country->getUID(), $spanishSpeaking)) {\n return 'ES';\n } else {\n switch ($country->getUID()) {\n case pais::PORTUGAL_CODE:\n return 'PT';\n break;\n case pais::FRANCE_CODE:\n return 'FR';\n break;\n default:\n return 'EN';\n }\n }\n\n return 'EN';\n }",
"public function getCex()\n {\n return $this->cex;\n }",
"public static function currency() {\n\t\treturn self::$currency;\n\t}",
"public function getMarca() {\n return $this->iMarca;\n }",
"public function getCNPJ()\n {\n return $this->CNPJ;\n }",
"public function getCesta()\n {\n return $this->cesta;\n }",
"public function getCesta()\n {\n return $this->cesta;\n }",
"public function getLocale(): string;",
"public function getLocale(): string;",
"public function getLocale(): string;",
"public function getCfax()\n {\n return $this->cfax;\n }",
"public function getCedenteCidadeUF();",
"protected function getThreeDSpecificCountries()\n {\n if ($this->isThreeDSpecificCountries()) {\n return Mage::getStoreConfig('payment/gene_braintree_creditcard/threedsecure_specificcountry');\n }\n\n return '';\n }",
"public function getCpeUri()\n {\n return $this->cpe_uri;\n }",
"public function getCpeUri()\n {\n return $this->cpe_uri;\n }",
"public function getCurrency(): ?string\n {\n return $this->currency;\n }",
"public function getCurrency(): ?string\n {\n return $this->currency;\n }",
"public function getCurrency(): ?string\n {\n return $this->currency;\n }",
"public function getProdEra()\n {\n return $this->prod_era;\n }",
"public function getFabricante():string{\n return $this->fabricante;\n }",
"public function getCity()\n {\n return $this->getNodeValue('./vcard:locality', $this->data);\n }",
"public function getCompteurSurEx(): ?int {\n return $this->compteurSurEx;\n }",
"public function getCurrency(): string;",
"public function getCurrency(): string;",
"function getCC(){\n\t\t\treturn $this->cc;\n\t\t}",
"public function getNiche_code () {\n\t$preValue = $this->preGetValue(\"niche_code\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->niche_code;\n\treturn $data;\n}",
"public function getCedente() {\n return $this->oCedente;\n }",
"public static function locale(): string\n {\n // in the end to handle that case\n return Arr::get(config('currencies'), strtolower(static::currency()).'.locale', 'en_US') ?? 'en_US';\n }",
"function getChambrehospi(){\n return $this->chambre;\n }"
] | [
"0.7303341",
"0.6151648",
"0.59112823",
"0.59112823",
"0.58921427",
"0.5857651",
"0.57863796",
"0.57562053",
"0.5701888",
"0.57016164",
"0.56658584",
"0.56259066",
"0.5622929",
"0.5614875",
"0.5596929",
"0.55920243",
"0.5576041",
"0.55584407",
"0.5552015",
"0.55389225",
"0.5533599",
"0.5532417",
"0.5526961",
"0.55265296",
"0.5512059",
"0.5506586",
"0.55022854",
"0.5493343",
"0.5480916",
"0.54782325",
"0.54624367",
"0.545334",
"0.54531515",
"0.5445231",
"0.54171693",
"0.539995",
"0.5380261",
"0.53740853",
"0.5356127",
"0.5351301",
"0.5347868",
"0.53465974",
"0.5342379",
"0.53350335",
"0.53350097",
"0.53296494",
"0.5325546",
"0.53158975",
"0.53153497",
"0.53143895",
"0.5314097",
"0.5312742",
"0.53085196",
"0.5305627",
"0.53048307",
"0.53048307",
"0.5304674",
"0.52984685",
"0.5284273",
"0.52735645",
"0.5272716",
"0.5265783",
"0.5258925",
"0.5251214",
"0.524945",
"0.5244771",
"0.5244771",
"0.5242038",
"0.5239885",
"0.5238222",
"0.5236573",
"0.52360123",
"0.52314717",
"0.52305794",
"0.52302957",
"0.52281",
"0.52218163",
"0.52218163",
"0.52202386",
"0.52202386",
"0.52202386",
"0.52177",
"0.5205216",
"0.5203856",
"0.5202902",
"0.5202902",
"0.5202719",
"0.5202719",
"0.5202719",
"0.5187361",
"0.51865613",
"0.5186255",
"0.5185799",
"0.51805556",
"0.51805556",
"0.51789904",
"0.5178487",
"0.51781064",
"0.51750875",
"0.5172059"
] | 0.77591896 | 0 |
Get the mt sal brut moins150 h. | public function getMtSalBrutMoins150H() {
return $this->mtSalBrutMoins150H;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMtSalBrutMoins600H() {\n return $this->mtSalBrutMoins600H;\n }",
"public function setMtSalBrutMoins150H($mtSalBrutMoins150H) {\n $this->mtSalBrutMoins150H = $mtSalBrutMoins150H;\n return $this;\n }",
"public function setMtSalBrutMoins600H($mtSalBrutMoins600H) {\n $this->mtSalBrutMoins600H = $mtSalBrutMoins600H;\n return $this;\n }",
"public function getMontantHt() {\n return $this->montantHt;\n }",
"public function getMontant_ht()\n {\n return $this->montant_ht;\n }",
"function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }",
"function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}",
"public function getHival() {}",
"function tiemposHMS($min){\n $min=(int)$min;\n $heure=(int)($min/60);\n $minute=(($min/60)-$heure)*60; \n return $heure .':' . $minute; \n \n \n \n }",
"function hms($duree = 0) \n\t{\n\t\t$heures = round($duree / 3600);\n\t\t$minutes = round(($duree - $heures * 3600) / 60);\n\t\t$secondes = round(($duree - $heures * 3600 - $minutes * 60) / 60);\n\n\t\treturn str_pad($heures, 2, \"0\", STR_PAD_LEFT).':'.str_pad($minutes, 2, \"0\", STR_PAD_LEFT).':'.str_pad($secondes, 2, \"0\", STR_PAD_LEFT);\n\t}",
"function getTotalFinalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT+$this->port)));\n else return 0;\n }",
"public function get_bodymass() {\n return \"Gewicht = \" . $this->bodymass . \"kg\";\n }",
"function Tn_tro_her($level,$MBn) // Ct dung\n{\n\treturn round((2300+450*($level-1)+pow(1.6*($level-1),3))*$MBn);\n}",
"function Tn_eco_mar($level,$MBn) // CT dung\n{\n\treturn round((1800+450*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"public function getBMI()\n {\n if ($this->height && $this->height > 0){\n return (($this->weight / ($this->height * $this->height)) * 703);\n }\n else{\n return 0;\n }\n \n }",
"public function getWhse()\n {\n return $this->whse;\n }",
"public function calculate_bmi() {\n return $this->bodymass / ($this->bodylength * $this->bodylength); \n }",
"function Tn_eco_oth($level,$MBn) // CT dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"public function HienThiDmsp(){\n\n\t\treturn $this -> db -> get('b_dmsp');\n\t}",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"public function getBMI(){\r\n\r\n return ($this->weight)/(($this->height*$this->height));\r\n}",
"public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }",
"function Tn_tro($level,$MBn) // Ct dung\n{\n\treturn\tround((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"protected function _getUnitsPerEm() {}",
"function tinhchuvihinhtron($r) {\n $bk = 3.14 * $r * 2;\n return $bk;\n}",
"public function getStemH() {}",
"public function getMileage() {\n return $this->get(self::MILEAGE);\n }",
"public function getHumidity();",
"function tinhchuvihinhtron($r){\n $bk = 3.14 * 2 * $r;\n return $bk;\n}",
"function calculateBMI(){\n $BMI = (705 * $this->weight / ($this->height * $this->height));\n return $BMI;\n }",
"public function getUnitsPerEm() {}",
"function meterTomile($e){\n$getTotal = $e*0.000621371;\nreturn $getTotal;\n}",
"function parseSMSBatteryMT90($text) {\n $matches = array();\n preg_match(\"/BAT=[0-9]+%/\", $text, $matches);\n if (!empty($matches)) {\n return substr($matches[0], 4);\n } else {\n return \"NA\";\n }\n}",
"function height() {\n if (empty($this->bodyheight)) {\n if ($this->page[\"Bio\"] == \"\") $this->openpage (\"Bio\",\"person\");\n if (preg_match(\"/Height<\\/h5>\\s*\\n(.*?)\\s*\\((.*?)\\)/m\",$this->page[\"Bio\"],$match)) {\n $this->bodyheight[\"imperial\"] = trim($match[1]);\n $this->bodyheight[\"metric\"] = trim($match[2]);\n }\n }\n return $this->bodyheight;\n }",
"public function getHeure(): string\r\n {\r\n return $this->heure;\r\n }",
"public function getThur()\n {\n return $this->thur;\n }",
"public function gethashespersec() {\n return $this->bitcoin->gethashespersec();\n }",
"function getTotalMiles(){\n $steps_per_mile = $GLOBALS['STEPS_PER_MILE'];\n return round(getTotalSetps() / $steps_per_mile, 2);\n}",
"function get_bmi($height, $weight) {\n return $weight / pow($height/100, 2);\n}",
"public function getCarnot($T_c, $T_h) \n {\n $carnot = ((1 - $T_c / $T_h) * 100);\n return $carnot;\n }",
"function Tn_tro_sta($level,$MBn) // CT dung\n{\n\treturn round((2000+500*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"public function getMicroFromData($hr = 0, $min = 0, $sc = 0, $mil = 0)\n {\n // test Millisecond\n if ((int)$mil > 999 || (int)$mil < 0) {\n (int)$mil = 999;\n }\n // test Seconde\n if ((int)$sc > 59 || (int)$sc < 0) {\n (int)$sc = 59;\n }\n // test Minute\n if ((int)$min > 59 || (int)$min < 0) {\n\n (int)$min = 59;\n }\n // test Hours\n if ((int)$hr > 24 || (int)$hr < 0) {\n (int)$hr = 24;\n }\n $result = (int)$mil // convert on milli and Add\n + (int)$sc * 1000\n + (int)$min * 60000;\n + (int)$hr * 3600000;\n return $result;\n }",
"function jumlah_ps2h($clock){\n\t\t$query1 = \"SELECT AVG(power) AS jumlah2 FROM sensor_2r3 WHERE t=$clock\";\n\t\treturn $this->db->query($query1)->result();\n\t}",
"public function getCodeMetierBtp() {\n return $this->codeMetierBtp;\n }",
"public function getBelKe15()\n {\n return $this->bel_ke_15;\n }",
"function Otgt($gwhvh){ \n return log10($gwhvh);\n }",
"function jumlah_ps5h($clock){\n\t\t$query1 = \"SELECT AVG(power) AS jumlah5 FROM sensor_5r3 WHERE t=$clock\";\n\t\treturn $this->db->query($query1)->result();\n\t}",
"public static function getMileageString(){\n $mileagePref = sfContext::getInstance()->getUser()->getAttribute('mileage',null,'subscriber');\n $mileString = \"miles\";\n if($mileagePref==0){\n $mileString=\"km\";\n }\n return $mileString;\n }",
"public function getSpeed() {\n $speed = $GLOBALS['max_speed_mph']*(1-$this->getCarSize()/(2000*$this->distance));\n return $speed;\n if($this->getCarSize() == 0)\n return $GLOBALS['max_speed_mph'];\n $v = $this->getCarsPerHour();\n $d = $this->getCarSize() / $this->distance;\n $s = $v / $d;\n return $s > $GLOBALS['max_speed_mph'] ? $GLOBALS['max_speed_mph'] : $s;\n }",
"function calculate_bmi() {\n if (!$this->height || !$this->weight) { // check weight and height are set and height is not zero\n return 0;\n }\n\n return round((self::BMI_CONSTANT * $this->weight) / pow($this->height, 2), 2);\n }",
"function Tn_eco_bri($level,$MBn) // -> CT sai neu test level >=7\n{\n\treturn round(2000*pow(2-($level-1)/10,$level-1)*$MBn);\n}",
"public function info_hp($merk){\n return \"Merk Handphone : $merk\";\n }",
"public function getKieToiletHaid()\n {\n return $this->kie_toilet_haid;\n }",
"protected function getBhp()\n {\n preg_match(\"/\\d+.ps|\\d+.PS/i\", $this->excelRow->model_description, $bhpArr);\n if(!empty($bhpArr))\n {\n return (int) filter_var($bhpArr[0],FILTER_SANITIZE_NUMBER_INT);\n }\n }",
"public function getHeightM()\n {\n if (! isset($this->heightM)) {\n $this->heightM = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightMQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightM;\n }",
"function get_serving( $ml, $gallons, $method ) {\n\n if( $method == 'teaspoon(s)' )\n $method_amt = 4.92892; // teaspoon\n else\n $method_amt = .2; // 5 drops\n\n return round( ( $ml / ( $gallons * 3800 ) ) * $method_amt, 3);\n}",
"public function getIntbwhse()\n {\n return $this->intbwhse;\n }",
"function Tn_eco_iro($level,$MBn) // -> CT sai neu test level >=7\n{\n\treturn round(6000*pow(2-($level-1)/10,$level-1)*$MBn);\n}",
"public function getUnit();",
"function meteo($saison, $temperature) {\n $debut = 'Nous sommes en ' . $saison;\n\n $suite = ' et il fait ' . $temperature . ' degré(s)';\n\n return $debut . $suite . '<hr>';\n }",
"public function getHr()\n {\n return $this->hr;\n }",
"function PI($h) \n\t{\n\t//Femme = Taille(cm) - 100 - [Taille(cm) - 150] / 2 \n\t//Homme = Taille(cm) - 100 - [Taille(cm) - 150] / 4\n\t//âge de supérieur à 18 ans ;taille entre 140 et 220 cm (55 à 87 inch)\n\t//Poids idéal = 50 + [Taille(cm) - 150]/4 + [Age(an) - 20]/4\n\t$PI =$h-100-($h-150)/4 .\"kg\" ;\n\treturn $PI;\n\t}",
"public function tempHumScore();",
"function Tn_eco_cra($level,$MBn) // CT dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn/2);\n}",
"private function GetTimeHHMM() : string {\n\t\t\t$dt = new DateTime();\n\t\t\t$dtz = new DateTimeZone(\"EUROPE/Berlin\");\n\t\t\t$dt->setTimezone($dtz);\n\t\t\treturn $dt->format(\"H:i\");\n\t\t}",
"function getMkTradeMediaCost($game_id, $trademedia_number, $region_number, $intensity){\r\n\t\t\t$mkTradeMediaCosts=new Model_DbTable_Games_Param_Mk_TradeMediaCosts();\r\n\t\t\t$result=$mkTradeMediaCosts->fetchRow('game_id = '.$game_id.' AND trademedia_number = '.$trademedia_number.' AND region_number = '.$region_number);\r\n\t\t\t$costs=explode(\";\",$result['costs']);\r\n\t\t\treturn $costs[$intensity-1];\r\n\t\t}",
"function data_mhs(){\r\n\t\t\techo \"KodeMataKuliah : \".$this->KodeMataKuliah.\"<br />\";\r\n\t\t\techo \"SKS : \".$this->SKS.\"<br />\";\r\n\t\t\techo \"Daftar matakuliah yang diambil:<br />\";\r\n\t\t\t\r\n\t\t\t$i = 0; // nomor urut daftar SKS matakuliah yang diambil\r\n\t\t\tforeach($this->NamaMataKuliah as $mk){\r\n\t\t\t\techo ++$i.\". \".$mk.\"<br />\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Cuma buat ganti baris aja kok :-)\r\n\t\t\techo \"<br />\";\r\n\t\t}",
"function getWorkAtmosphere($game_id, $round_number, $company_id){\r\n\t\t\t$atmosphere=new Model_DbTable_Outcomes_Rd_HrData();\r\n\t\t\t$results=$atmosphere->getHrDataCompanyAtmosphere($game_id, $round_number, $company_id);\r\n\t\t\tif($results['value']<0.87){\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\treturn (1+(3*exp($results['value'])-3*exp(1)))*100;\r\n\t\t\t}\r\n\t\t}",
"public function get_game_two_heading () {\n\t\treturn get_field('field_5b4770572c388', $this->get_id());\n\t}",
"function jumlah_ps6h($clock){\n\t\t$query1 = \"SELECT AVG(power) AS jumlah6 FROM sensor_6r3 WHERE t=$clock\";\n\t\treturn $this->db->query($query1)->result();\n\t}",
"public function vr_hora()\n {\n\n $valor=$this->vr_hora;\n\n if ($this->id_tipotitulo == 3)\n {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 4) {\n $valor='15122';\n } elseif ($this->id_tipotitulo == 5) {\n $valor='19096';\n } elseif ($this->id_tipotitulo == 7) {\n $valor='23252';\n } elseif ($this->id_tipotitulo == 10) {\n $valor='27014';\n } elseif ($this->id_tipotitulo == 9) {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 11) {\n $valor='10208'; }\n elseif ($this->id_tipotitulo == 12) {\n $valor='0';\n }\n\n\n return $valor;\n\n }",
"function dienTichHinhTron($banKinh)\n {\n $s = pi() * pow($banKinh, 2);\n return $s;\n }",
"function get_hora_meridiano($hora){\n\t$hora = explode(\":\",$hora);\n\t$h = $hora[0];\n\t$m = $hora[1];\n\tif($h > 12){\n\t\t$h = $h - 12;\n\t\tif($h < 10){\n\t\t\t$h = '0'.$h;\n\t\t}\n\t\t$h = $h.':'.$m.' pm';\t\t\n\t}else{\n\t\tif($h == 12){\n\t\t\t$h = $h.':'.$m.' m';\n\t\t}else{\n\t\t\t$h = $h.':'.$m.' am';\n\t\t}\t\t\n\t}\n\treturn $h;\n}",
"function Tn_tec($level,$MBn) // ->tang dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"function getMkMediaCost($game_id, $media_number, $region_number, $intensity){\r\n\t\t\t$mkMediaCosts=new Model_DbTable_Games_Param_Mk_MediaCosts();\r\n\t\t\t$result=$mkMediaCosts->fetchRow('game_id = '.$game_id.' AND media_number = '.$media_number.' AND region_number = '.$region_number);\r\n\t\t\t$costs=explode(\";\",$result['costs']);\r\n\t\t\treturn $costs[$intensity-1];\r\n\t\t}",
"protected function getMois()\n{\nreturn substr($this->getDateSysteme(), 5, 2);\n}",
"public function getNumerTaryfyHs()\n {\n return $this->numerTaryfyHs;\n }",
"function bmi($bb, $tb){\n\t$bmi = $bb / (($tb * 0.01) * ($tb * 0.01));\n\treturn $bmi;\n}",
"public function getHeure()\n {\n return $this->heure;\n }",
"function getTotalFinalTVA() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", (($this->totalHT+$this->port) * ($this->TVA / 100))));\n else return 0;\n }",
"public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }",
"public function getDias60()\n {\n return $this->dias60;\n }",
"public function getMontantTtc() {\n return $this->montantTtc;\n }",
"public function getMileage()\n {\n $value = $this->get(self::MILEAGE);\n return $value === null ? (integer)$value : $value;\n }",
"public function getNbreH(): ?float {\n return $this->nbreH;\n }",
"function getMiles()\n {\n return $this->miles;\n }",
"public function getCostPerTraveledHour()\n {\n return $this->cost_per_traveled_hour;\n }",
"function getHhName(){\n\t\treturn $this->householdName;\n\t}",
"public function getRegularThin()\n\t{\n\t\tif(!Storage::has('json/wristband/colors/regularThin.json')) {\n\t\t\t// generate and save .json file.\n\t\t\tStorage::put('json/wristband/colors/regularThin.json', json_encode($this->regularThin()));\n\t\t}\n\t\t// return data from .json file.\n\t\treturn json_decode(Storage::get('json/wristband/colors/regularThin.json'), true);\n\t}",
"public function getUnitPrice() {\n $prices = $this->getPricetable();\n $key = 'ns';\n if ( $this->is_hs ) {\n $key = 'hs';\n }\n\n return $prices->get( $key );\n }",
"public function getRainUnit() {\n return $this->cRainUnit;\n }",
"function hr2bin($hr){\n //eg: $hr = 14.68M\n //result: 15392074\n preg_match(\"/(\\d*\\.?\\d)(K|M|G|T)?/\",$hr,$matches);\n if (count($matches)< 1) return 0;\n if (count($matches)< 2) return $matches[1];\n $base = $matches[1];\n switch($matches[2]){\n case \"T\":\n return $base * 1099511627776;\n break;\n case \"G\":\n return $base * 1073741824;\n break;\n case \"M\":\n return $base * 1048576;\n break;\n case \"K\":\n return $base * 1024;\n break;\n }\n return $base;\n}",
"function jumlah_ps3h($clock){\n\t\t$query1 = \"SELECT AVG(power) AS jumlah3 FROM sensor_3r3 WHERE t=$clock\";\n\t\treturn $this->db->query($query1)->result();\n\t}",
"public function getKieKantinHaid()\n {\n return $this->kie_kantin_haid;\n }",
"function rawpheno_function_unit($xls_header_cell) {\n // Remove all formatting.\n $temp_value = rawpheno_function_delformat($xls_header_cell);\n\n // If this is a scale then return that.\n if (preg_match('/\\(scale/',$temp_value)) {\n return 'scale';\n }\n\n // Remove the following characters.\n $cell_value = str_replace(array(';', '1st', '2nd', 'r1', 'r3', 'r5', 'r7', ': 1-5'), '', $temp_value);\n\n // Extract text information inside the parenthesis.\n preg_match(\"/.*\\(([^)]*)\\)/\", $cell_value, $match);\n\n // Return unit found, or default to text if no unit.\n return (isset($match[1])) ? trim($match[1]) : 'text';\n}",
"function calculateIBW() {\n global $height;\n global $x;\n\n $ft_dif = 0;\n // How far over 5ft\n if ($height > 152.4) {\n $cm_dif = $height - 152.4;\n $inchsum = $cm_dif * 0.39370;\n\n $ft_dif = 60 - $inchsum; // Find difference from 5ft (60 inches)\n }\n\n // Find ideal body weight\n return $x + (2.3 * $ft_dif);\n}",
"public function getStopHour(){\n\t\treturn $this->stop_hour;\n\t}",
"function getTotalTVA() {\n // if ($this->calculmontant) return (sprintf(\"%.2f\", ($this->totalTTC - $this->totalHT)));\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT * ($this->TVA / 100))));\n else return 0;\n }",
"public function get_magneticHeading(): float\n {\n // $res is a double;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::MAGNETICHEADING_INVALID;\n }\n }\n $res = $this->_magneticHeading;\n return $res;\n }",
"public function getMashTemperatures()\n {\n return $this->mashTemperatures;\n }"
] | [
"0.81284815",
"0.6787421",
"0.6590257",
"0.6509527",
"0.63265646",
"0.6245734",
"0.61465055",
"0.5902071",
"0.5826885",
"0.5670488",
"0.5658322",
"0.56055933",
"0.5595796",
"0.5577867",
"0.5561614",
"0.5556528",
"0.55257803",
"0.550007",
"0.54830927",
"0.5477087",
"0.5459695",
"0.5441425",
"0.5428789",
"0.53615767",
"0.53520215",
"0.53517103",
"0.53464943",
"0.5342375",
"0.5330955",
"0.5324899",
"0.5319419",
"0.5318907",
"0.5318498",
"0.5304465",
"0.5296033",
"0.528734",
"0.5268052",
"0.52451414",
"0.52347046",
"0.52268803",
"0.5224105",
"0.52156883",
"0.5214058",
"0.5206685",
"0.5205482",
"0.51906747",
"0.5184759",
"0.5181746",
"0.5176945",
"0.51680976",
"0.51659024",
"0.51656574",
"0.5162946",
"0.5157154",
"0.51459396",
"0.5140996",
"0.51382864",
"0.5114645",
"0.5110773",
"0.51098096",
"0.51081413",
"0.5106641",
"0.5095763",
"0.50935435",
"0.50922585",
"0.50878054",
"0.5082932",
"0.5081118",
"0.5079242",
"0.5076739",
"0.50671697",
"0.5066737",
"0.50504273",
"0.5049656",
"0.50462365",
"0.5043388",
"0.5039697",
"0.5023869",
"0.50222653",
"0.5021705",
"0.5001366",
"0.49994114",
"0.49965692",
"0.49915043",
"0.4983703",
"0.4983116",
"0.49828973",
"0.49810785",
"0.4978472",
"0.49719182",
"0.4965164",
"0.49620444",
"0.49570006",
"0.49560595",
"0.49510542",
"0.49424526",
"0.4938501",
"0.4937949",
"0.4937621",
"0.49369746"
] | 0.85886776 | 0 |
Get the mt sal brut moins600 h. | public function getMtSalBrutMoins600H() {
return $this->mtSalBrutMoins600H;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMtSalBrutMoins150H() {\n return $this->mtSalBrutMoins150H;\n }",
"public function setMtSalBrutMoins600H($mtSalBrutMoins600H) {\n $this->mtSalBrutMoins600H = $mtSalBrutMoins600H;\n return $this;\n }",
"public function getMontantHt() {\n return $this->montantHt;\n }",
"function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }",
"public function getMontant_ht()\n {\n return $this->montant_ht;\n }",
"function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}",
"function tiemposHMS($min){\n $min=(int)$min;\n $heure=(int)($min/60);\n $minute=(($min/60)-$heure)*60; \n return $heure .':' . $minute; \n \n \n \n }",
"function hms($duree = 0) \n\t{\n\t\t$heures = round($duree / 3600);\n\t\t$minutes = round(($duree - $heures * 3600) / 60);\n\t\t$secondes = round(($duree - $heures * 3600 - $minutes * 60) / 60);\n\n\t\treturn str_pad($heures, 2, \"0\", STR_PAD_LEFT).':'.str_pad($minutes, 2, \"0\", STR_PAD_LEFT).':'.str_pad($secondes, 2, \"0\", STR_PAD_LEFT);\n\t}",
"function getTotalFinalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT+$this->port)));\n else return 0;\n }",
"public function getBMI()\n {\n if ($this->height && $this->height > 0){\n return (($this->weight / ($this->height * $this->height)) * 703);\n }\n else{\n return 0;\n }\n \n }",
"public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }",
"public function setMtSalBrutMoins150H($mtSalBrutMoins150H) {\n $this->mtSalBrutMoins150H = $mtSalBrutMoins150H;\n return $this;\n }",
"private function GetTimeHHMM() : string {\n\t\t\t$dt = new DateTime();\n\t\t\t$dtz = new DateTimeZone(\"EUROPE/Berlin\");\n\t\t\t$dt->setTimezone($dtz);\n\t\t\treturn $dt->format(\"H:i\");\n\t\t}",
"public function getUnitsPerEm() {}",
"protected function _getUnitsPerEm() {}",
"public function get_bodymass() {\n return \"Gewicht = \" . $this->bodymass . \"kg\";\n }",
"function hr2bin($hr){\n //eg: $hr = 14.68M\n //result: 15392074\n preg_match(\"/(\\d*\\.?\\d)(K|M|G|T)?/\",$hr,$matches);\n if (count($matches)< 1) return 0;\n if (count($matches)< 2) return $matches[1];\n $base = $matches[1];\n switch($matches[2]){\n case \"T\":\n return $base * 1099511627776;\n break;\n case \"G\":\n return $base * 1073741824;\n break;\n case \"M\":\n return $base * 1048576;\n break;\n case \"K\":\n return $base * 1024;\n break;\n }\n return $base;\n}",
"public function calculate_bmi() {\n return $this->bodymass / ($this->bodylength * $this->bodylength); \n }",
"public function getHival() {}",
"public function getBMI(){\r\n\r\n return ($this->weight)/(($this->height*$this->height));\r\n}",
"function Tn_tro_her($level,$MBn) // Ct dung\n{\n\treturn round((2300+450*($level-1)+pow(1.6*($level-1),3))*$MBn);\n}",
"public function getCodeMetierBtp() {\n return $this->codeMetierBtp;\n }",
"public function getHumidity();",
"function get_bmi($height, $weight) {\n return $weight / pow($height/100, 2);\n}",
"function get_hora_meridiano($hora){\n\t$hora = explode(\":\",$hora);\n\t$h = $hora[0];\n\t$m = $hora[1];\n\tif($h > 12){\n\t\t$h = $h - 12;\n\t\tif($h < 10){\n\t\t\t$h = '0'.$h;\n\t\t}\n\t\t$h = $h.':'.$m.' pm';\t\t\n\t}else{\n\t\tif($h == 12){\n\t\t\t$h = $h.':'.$m.' m';\n\t\t}else{\n\t\t\t$h = $h.':'.$m.' am';\n\t\t}\t\t\n\t}\n\treturn $h;\n}",
"function parseSMSBatteryMT90($text) {\n $matches = array();\n preg_match(\"/BAT=[0-9]+%/\", $text, $matches);\n if (!empty($matches)) {\n return substr($matches[0], 4);\n } else {\n return \"NA\";\n }\n}",
"function get_hora_bd($hora){\n\t$h = substr($hora,0,2);\n\t$m = substr($hora,3,2);\n\t$meridiano = substr($hora,-2,2);\n\tif($meridiano == 'pm'){\n\t\t$h = $h + 12;\n\t\t$h = $h.':'.$m.':00';\n\t}else{\n\t\t$h = $h.':'.$m.':00';\n\t}\n\treturn $h;\n}",
"function meterTomile($e){\n$getTotal = $e*0.000621371;\nreturn $getTotal;\n}",
"function Tn_eco_mar($level,$MBn) // CT dung\n{\n\treturn round((1800+450*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"function calculate_bmi() {\n if (!$this->height || !$this->weight) { // check weight and height are set and height is not zero\n return 0;\n }\n\n return round((self::BMI_CONSTANT * $this->weight) / pow($this->height, 2), 2);\n }",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"public function getMicroFromData($hr = 0, $min = 0, $sc = 0, $mil = 0)\n {\n // test Millisecond\n if ((int)$mil > 999 || (int)$mil < 0) {\n (int)$mil = 999;\n }\n // test Seconde\n if ((int)$sc > 59 || (int)$sc < 0) {\n (int)$sc = 59;\n }\n // test Minute\n if ((int)$min > 59 || (int)$min < 0) {\n\n (int)$min = 59;\n }\n // test Hours\n if ((int)$hr > 24 || (int)$hr < 0) {\n (int)$hr = 24;\n }\n $result = (int)$mil // convert on milli and Add\n + (int)$sc * 1000\n + (int)$min * 60000;\n + (int)$hr * 3600000;\n return $result;\n }",
"public function HienThiDmsp(){\n\n\t\treturn $this -> db -> get('b_dmsp');\n\t}",
"public function getHr()\n {\n return $this->hr;\n }",
"function toM($s) { \n $t = explode(\":\", $s); \n $h = settype($t[0], integer);\n $m = settype($t[1], integer);\n $mm = ($h * 60) + $m;\n return $mm;\n\t\t}",
"function dienTichHinhTron($banKinh)\n {\n $s = pi() * pow($banKinh, 2);\n return $s;\n }",
"function getTotalMiles(){\n $steps_per_mile = $GLOBALS['STEPS_PER_MILE'];\n return round(getTotalSetps() / $steps_per_mile, 2);\n}",
"function tinhchuvihinhtron($r) {\n $bk = 3.14 * $r * 2;\n return $bk;\n}",
"function calculateBMI(){\n $BMI = (705 * $this->weight / ($this->height * $this->height));\n return $BMI;\n }",
"function tinhchuvihinhtron($r){\n $bk = 3.14 * 2 * $r;\n return $bk;\n}",
"public function getWhse()\n {\n return $this->whse;\n }",
"public function gethashespersec() {\n return $this->bitcoin->gethashespersec();\n }",
"public function getHeightM()\n {\n if (! isset($this->heightM)) {\n $this->heightM = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightMQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightM;\n }",
"public function getMileage() {\n return $this->get(self::MILEAGE);\n }",
"public function getStopHour(){\n\t\treturn $this->stop_hour;\n\t}",
"function Tn_tro($level,$MBn) // Ct dung\n{\n\treturn\tround((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"function Tn_eco_oth($level,$MBn) // CT dung\n{\n\treturn round((2000+350*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"public function getMashTemperatures()\n {\n return $this->mashTemperatures;\n }",
"public static function getMileageString(){\n $mileagePref = sfContext::getInstance()->getUser()->getAttribute('mileage',null,'subscriber');\n $mileString = \"miles\";\n if($mileagePref==0){\n $mileString=\"km\";\n }\n return $mileString;\n }",
"function computeBMI($mass, $height) {\n\t\t$factor = 100.0; // strict input to output conversion constant: 100 centimeters in 1 meter\n\t\t$scale = 2.5; // tunable parameter according to MacKay, N.J. (2010), scale should be 2.3 <= x <= 2.7\n\t\t$bmi = $mass / pow(($height/$factor), $scale);\n\t\treturn $bmi;\n\t}",
"public function getHeure(): string\r\n {\r\n return $this->heure;\r\n }",
"public function getBelKe12()\n {\n return $this->bel_ke_12;\n }",
"function bmi($bb, $tb){\n\t$bmi = $bb / (($tb * 0.01) * ($tb * 0.01));\n\treturn $bmi;\n}",
"public function getSpeed() {\n $speed = $GLOBALS['max_speed_mph']*(1-$this->getCarSize()/(2000*$this->distance));\n return $speed;\n if($this->getCarSize() == 0)\n return $GLOBALS['max_speed_mph'];\n $v = $this->getCarsPerHour();\n $d = $this->getCarSize() / $this->distance;\n $s = $v / $d;\n return $s > $GLOBALS['max_speed_mph'] ? $GLOBALS['max_speed_mph'] : $s;\n }",
"public function sleepHour()\n {\n return $this->type->sleep_hour;\n }",
"function imc($masse,$taille)\n\t{\n\t\tif ($taille > 0)\n\t\t{\n\t\t\t$res = $masse / pow($taille,2);\n\t\t\treturn $res;\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}",
"function getTotalFinalTVA() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", (($this->totalHT+$this->port) * ($this->TVA / 100))));\n else return 0;\n }",
"protected function getBMI($weight, $height){\n return round($weight / pow($height, 2), 2);\n }",
"function IMC($name, $weightKg, $heightCm){\n $heightM = $heightCm/100;\n $heightCarre = $heightM * $heightM;\n $IMC = $weightKg/$heightCarre;\n $message = \"Bonjour $name , votre IMC est $IMC\";\n return $message;\n\n}",
"public function getUnitPrice() {\n $prices = $this->getPricetable();\n $key = 'ns';\n if ( $this->is_hs ) {\n $key = 'hs';\n }\n\n return $prices->get( $key );\n }",
"public function get()\n {\n $iInch = round($this->iUnit * 0.393700787);\n $iFoot = floor($iInch / 12);\n $iInch = ($iInch % 12);\n\n return [\n 'cm' => $this->iUnit,\n 'ft' => $iFoot,\n 'in' => $iInch\n ];\n }",
"function jumlah_ps2h($clock){\n\t\t$query1 = \"SELECT AVG(power) AS jumlah2 FROM sensor_2r3 WHERE t=$clock\";\n\t\treturn $this->db->query($query1)->result();\n\t}",
"function m2h($mins) {\n if ($mins < 0)\n $min = abs($mins); \n else\n $min = $mins; \n \n // Arredonda a hora\n $h = floor($min / 60); \n $m = ($min - ($h * 60)) / 100; \n $horas = $h + $m; \n \n // Matemática da quinta série\n // Detalhe: Aqui também pode se usar o abs()\n if ($mins < 0)\n $horas *= -1; \n \n // Separa a hora dos minutos\n $sep = explode('.', $horas); \n $h = $sep[0]; \n if (empty($sep[1]))\n $sep[1] = 0; \n \n $m = $sep[1]; \n \n // Aqui um pequeno artifício pra colocar um zero no final\n if (strlen($m) < 2)\n $m = $m . 0; \n if($h > 0){\n\t\t\treturn sprintf('%2dh e %2dm', $h, $m);\n }else{\n\t\t\treturn sprintf('%2dm', $m);\n\t\t}\t\n}",
"function Tn_tro_sta($level,$MBn) // CT dung\n{\n\treturn round((2000+500*($level-1)+pow(2*($level-1),3))*$MBn);\n}",
"public function getMontantTtc() {\n return $this->montantTtc;\n }",
"public function getUnit();",
"function hr_mjesec($month)\n{\n $mj_array[1] = 'Sijecanj';\n $mj_array[2] = 'Veljaca';\n $mj_array[3] = 'Ozujak';\n $mj_array[4] = 'Travanj';\n $mj_array[5] = 'Svibanj';\n $mj_array[6] = 'Lipanj';\n $mj_array[7] = 'Srpanj';\n $mj_array[8] = 'Kolovoz';\n $mj_array[9] = 'Rujan';\n $mj_array[10] = 'Listopad';\n $mj_array[11] = 'Studeni';\n $mj_array[12] = 'Prosinac';\n\n return $mj_array[$month];\n}",
"function height() {\n if (empty($this->bodyheight)) {\n if ($this->page[\"Bio\"] == \"\") $this->openpage (\"Bio\",\"person\");\n if (preg_match(\"/Height<\\/h5>\\s*\\n(.*?)\\s*\\((.*?)\\)/m\",$this->page[\"Bio\"],$match)) {\n $this->bodyheight[\"imperial\"] = trim($match[1]);\n $this->bodyheight[\"metric\"] = trim($match[2]);\n }\n }\n return $this->bodyheight;\n }",
"function amap_ma_get_unit_of_measurement() {\n $unitmeas = trim(elgg_get_plugin_setting('unitmeas', AMAP_MA_PLUGIN_ID));\n if ($unitmeas === 'meters') {\n return 1;\n } else if ($unitmeas === 'km') {\n return 1000;\n } else if ($unitmeas === 'miles') {\n return 1609.344;\n }\n\n return 1; // default value is for meters\n}",
"public function get_time_hour() {\n return sprintf( '%02d', (int) edd_get_option( 'edd_commissions_payout_schedule_time_hr', '' ) );\n }",
"function calculateIBW() {\n global $height;\n global $x;\n\n $ft_dif = 0;\n // How far over 5ft\n if ($height > 152.4) {\n $cm_dif = $height - 152.4;\n $inchsum = $cm_dif * 0.39370;\n\n $ft_dif = 60 - $inchsum; // Find difference from 5ft (60 inches)\n }\n\n // Find ideal body weight\n return $x + (2.3 * $ft_dif);\n}",
"public function getStemH() {}",
"function get_now_hour(){\n if($this->nowHour == \"nc\");\n $this->nowHour = $this->_getNowValues( \"1 hours\");\n return round($this->nowHour * 0.001,3);\n }",
"function Tn_eco_bri($level,$MBn) // -> CT sai neu test level >=7\n{\n\treturn round(2000*pow(2-($level-1)/10,$level-1)*$MBn);\n}",
"function meteo($saison, $temperature) {\n $debut = 'Nous sommes en ' . $saison;\n\n $suite = ' et il fait ' . $temperature . ' degré(s)';\n\n return $debut . $suite . '<hr>';\n }",
"protected function getBhp()\n {\n preg_match(\"/\\d+.ps|\\d+.PS/i\", $this->excelRow->model_description, $bhpArr);\n if(!empty($bhpArr))\n {\n return (int) filter_var($bhpArr[0],FILTER_SANITIZE_NUMBER_INT);\n }\n }",
"function PI($h) \n\t{\n\t//Femme = Taille(cm) - 100 - [Taille(cm) - 150] / 2 \n\t//Homme = Taille(cm) - 100 - [Taille(cm) - 150] / 4\n\t//âge de supérieur à 18 ans ;taille entre 140 et 220 cm (55 à 87 inch)\n\t//Poids idéal = 50 + [Taille(cm) - 150]/4 + [Age(an) - 20]/4\n\t$PI =$h-100-($h-150)/4 .\"kg\" ;\n\treturn $PI;\n\t}",
"public function getMileage()\n {\n $value = $this->get(self::MILEAGE);\n return $value === null ? (integer)$value : $value;\n }",
"function transformBrewTemp(int $brewnumber): float {\n // 173 = 93 deg C\n\n $k = ((93 - 24) / (754 - 173))*-1;\n $m = (($k * 754) - 24)*-1;\n\n return $k*$brewnumber+$m;\n}",
"public function get_hour_step()\r\n {\r\n return $this->hour_step;\r\n }",
"public function tempHumScore();",
"public function getCostPerTraveledHour()\n {\n return $this->cost_per_traveled_hour;\n }",
"function twelveHour( $hour )\r\n {\r\n if ( $hour == 0 )\r\n return 12;\r\n else if ( $hour > 12 )\r\n return $hour % 12;\r\n else\r\n return $hour;\r\n }",
"public function vr_hora()\n {\n\n $valor=$this->vr_hora;\n\n if ($this->id_tipotitulo == 3)\n {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 4) {\n $valor='15122';\n } elseif ($this->id_tipotitulo == 5) {\n $valor='19096';\n } elseif ($this->id_tipotitulo == 7) {\n $valor='23252';\n } elseif ($this->id_tipotitulo == 10) {\n $valor='27014';\n } elseif ($this->id_tipotitulo == 9) {\n $valor='10208';\n } elseif ($this->id_tipotitulo == 11) {\n $valor='10208'; }\n elseif ($this->id_tipotitulo == 12) {\n $valor='0';\n }\n\n\n return $valor;\n\n }",
"function jumlah_ps6h($clock){\n\t\t$query1 = \"SELECT AVG(power) AS jumlah6 FROM sensor_6r3 WHERE t=$clock\";\n\t\treturn $this->db->query($query1)->result();\n\t}",
"private function calculateTime()\n {\n $slowest = 1000000;\n for($i=1; $i<=12; $i++){\n if($_GET['Tr'.$i] > 0 && $slowest > $this->troopCostsProperties['Tr'.$i][5] ){\n $slowest = $this->troopCostsProperties['Tr'.$i][5];\n }\n }\n $time = $this->distance/($slowest*SERVER_SPEED_RATE);\n return $time;\n }",
"function getTotalTVA() {\n // if ($this->calculmontant) return (sprintf(\"%.2f\", ($this->totalTTC - $this->totalHT)));\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT * ($this->TVA / 100))));\n else return 0;\n }",
"public function getProductWeightUnit()\n {\n return (string) $this->getConfig(\n 'packages/global_settings_default_weight_unit');\n }",
"public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }",
"public function getRainUnit() {\n return $this->cRainUnit;\n }",
"function Tn_eco_iro($level,$MBn) // -> CT sai neu test level >=7\n{\n\treturn round(6000*pow(2-($level-1)/10,$level-1)*$MBn);\n}",
"function jumlah_ps5h($clock){\n\t\t$query1 = \"SELECT AVG(power) AS jumlah5 FROM sensor_5r3 WHERE t=$clock\";\n\t\treturn $this->db->query($query1)->result();\n\t}",
"public function getCostPerHour()\n {\n return $this->cost_per_hour;\n }",
"function bin2hr($size){\n //eg: $size = 15392074\n //result: 14.68M\n $sizes = array(1024=>\"K\",1048576=>\"M\",1073741824=>\"G\");\n krsort($sizes);\n foreach($sizes as $lvl=>$lvlName){\n if($size>=$lvl){\n return round($size / $lvl,2).$lvlName;\n }\n }\n return $size;\n}",
"function data_mhs(){\r\n\t\t\techo \"KodeMataKuliah : \".$this->KodeMataKuliah.\"<br />\";\r\n\t\t\techo \"SKS : \".$this->SKS.\"<br />\";\r\n\t\t\techo \"Daftar matakuliah yang diambil:<br />\";\r\n\t\t\t\r\n\t\t\t$i = 0; // nomor urut daftar SKS matakuliah yang diambil\r\n\t\t\tforeach($this->NamaMataKuliah as $mk){\r\n\t\t\t\techo ++$i.\". \".$mk.\"<br />\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Cuma buat ganti baris aja kok :-)\r\n\t\t\techo \"<br />\";\r\n\t\t}",
"function dienTichHT(int $a, int $b, float $h) : void\n\t{\n\t\t// ham bat buoc phai co return\n\t\t//$t = (($a+$b)*$h)/2;\n\t\t//$t = (string)$t;\n\t\t//return 100;\n\t\techo 100;\n\t}",
"public function getCarnot($T_c, $T_h) \n {\n $carnot = ((1 - $T_c / $T_h) * 100);\n return $carnot;\n }",
"function second()\r\n {\r\n $value = $this->SecondsElapsed;\r\n\r\n $second = $value % 60;\r\n\r\n return $second;\r\n }",
"protected function getMois()\n{\nreturn substr($this->getDateSysteme(), 5, 2);\n}",
"public function getDias60()\n {\n return $this->dias60;\n }"
] | [
"0.7991754",
"0.69580823",
"0.6549752",
"0.6384018",
"0.63254356",
"0.6122387",
"0.6062434",
"0.5997521",
"0.5906559",
"0.5862553",
"0.58303183",
"0.5773106",
"0.574874",
"0.57377714",
"0.5713431",
"0.56413746",
"0.5610561",
"0.5608987",
"0.5590756",
"0.5586268",
"0.55499065",
"0.5519601",
"0.55057156",
"0.5462938",
"0.54517424",
"0.5450462",
"0.54476416",
"0.54441446",
"0.5434353",
"0.5433199",
"0.5421227",
"0.5409168",
"0.53944445",
"0.53826475",
"0.5367992",
"0.53646046",
"0.53587705",
"0.5349904",
"0.53386664",
"0.5337072",
"0.5310978",
"0.53040504",
"0.5266461",
"0.5261354",
"0.5230635",
"0.52182794",
"0.52151316",
"0.52091557",
"0.5208691",
"0.52066505",
"0.5201223",
"0.51818156",
"0.51810986",
"0.517592",
"0.5172119",
"0.515087",
"0.51503736",
"0.51467943",
"0.5146136",
"0.5145393",
"0.5145138",
"0.5137822",
"0.5135536",
"0.51338464",
"0.5133689",
"0.51303744",
"0.5116159",
"0.5104886",
"0.5104292",
"0.51032573",
"0.5099542",
"0.50986004",
"0.5097843",
"0.5096853",
"0.5077156",
"0.50688165",
"0.5064037",
"0.5063555",
"0.50552857",
"0.5055278",
"0.5052371",
"0.5040775",
"0.50372964",
"0.50306946",
"0.50168234",
"0.50157744",
"0.5012242",
"0.50103104",
"0.500587",
"0.5000744",
"0.49997017",
"0.4998931",
"0.4995895",
"0.49922127",
"0.4973631",
"0.4970661",
"0.49686217",
"0.4967006",
"0.4966348",
"0.49652484"
] | 0.8594104 | 0 |
Get the nb enfants a charge. | public function getNbEnfantsACharge() {
return $this->nbEnfantsACharge;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function get_nbre_conso(){\n\t\tglobal $bd;\n\t\t$req = $bd->query(\"SELECT SUM(nbre) as nbre FROM consommateur WHERE etat = 'present' \");\n\t\t$data = $req->fetch();\n\t\treturn $data['nbre'];\n\t}",
"public function getNumagence()\n {\n return $this->numagence;\n }",
"public function countAnnonce() {\n $db = $this->getPDO();\n $limite = 2;\n //requete qui compte le nbr d'entree\n $resultFoundRows = $db->query('SELECT COUNT (id_annonce) FROM annonces');\n $nbrElementsTotal = $resultFoundRows->fetchColumn();\n /* Si on est sur la première page, on n'a pas besoin d'afficher de lien\n * vers la précédente. On va donc ne l'afficher que si on est sur une autre\n * page que la première */\n $nbrPages = ceil($nbrElementsTotal / $limite);\n return $nbrPages;\n }",
"public function nbEmprunt()\n\t\t{\n\t\treturn $this->lesEmprunts->count();\n\t\t}",
"public function getCentresCount()\n {\n return $this->manager->createQuery('SELECT COUNT(c) FROM App\\Entity\\CentreEtatCivil c')\n ->getSingleScalarResult();\n }",
"private function getTotalCharge() {\n $result = 0;\n\n foreach ($this->rentals as $rental) {\n $result += $rental->getCharge();\n }\n return $result;\n\n }",
"function getNumeroDeBeneficiarios(){\n\t\t\t$benefs = 0;\n\t\t\t$sqlcreel = \"SELECT COUNT(idsocios_relaciones) AS 'beneficiarios'\n\t\t\t\t\t\t\tFROM socios_relaciones\n\t\t\t\t\t\t\tWHERE socio_relacionado=\" . $this->mCodigo . \" AND tipo_relacion=11\";\n\t\t\t$benefs = mifila($sqlcreel, \"beneficiarios\");\n\t\t\treturn $benefs;\n\t}",
"public function getNumEnregistrement(): int\n {\n return $this->numEnregistrement;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNbAddresses()\n\t{\n\t\tif ( $this->nb_addresses === null ) {\n\t\t\t$this->nb_addresses = gmp_strval(gmp_pow(2, $this->getMaxPrefix() - $this->prefix));\n\t\t}\n\t\treturn $this->nb_addresses;\n\t}",
"public function getNbrNoticeExtension()\n {\n $nbrNotice = $this->doctrine\n ->getRepository('NajdahAppBundle:Declaration')\n ->getNomberNoticeNomber();\n \n return $nbrNotice;\n }",
"public function getnbadults()\n {\n\n $rqt='select count(*) as nb from adult ';\n\n $rep= $this->executerRequete($rqt);\n $ligne= $rep->fetch();\n return $ligne['nb'];\n }",
"function getNombreArticle() {\n return ($this->nbarticle);\n }",
"public function nbArticles(){\n\t$nbArticles = 0;\n\tforeach($this->listeProduits as $value){\n\t\t$nbArticles += $value[1];\n\t}\n\treturn $nbArticles;\n }",
"public function size()\n {\n return 100 - $this->eaten;\n }",
"function nb_demande(){\n\t\tglobal $bdd;\n\n\t\t$req = $bdd->query(\"SELECT COUNT(id_utilisateur) AS nb_demande FROM utilisateur WHERE devenir_star = TRUE\");\n\t\t\n\t\t$result = $req->fetch();\n\t\t\n\t\t$req->closeCursor();\n\t\treturn $result['nb_demande'];\n\t}",
"function obtenirNbEtab ($connexion) {\r\n\r\n $req = \"SELECT COUNT(*) FROM Etablissement\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> execute ();\r\n return $stmt -> fetchColumn ();\r\n\r\n }",
"public function getTotalNettedChargeAmount()\n {\n return $this->totalNettedChargeAmount;\n }",
"public function incomming ()\n {\n $stock = 0;\n\n foreach ($this->batches as $batch) {\n $edge = $batch->article()->edge($this);\n\n $stock = $stock + $edge->count;\n }\n\n return $stock;\n }",
"function getAllNumClases(){\n\t\t$clase=$this->nmclass;\n\t\t$u=$this->cant_clases;\n\t\treturn $u;\n\t}",
"public function getNumLigne() {\n return $this->numLigne;\n }",
"public function getIngredientsNum():int\n {\n return $this->ingredients_num;\n }",
"public function getInvoice_counter()\n {\n return $this->fv_invoice_counter;\n }",
"public function getAliquotaReaisCofins()\n {\n return $this->aliquotaReaisCofins;\n }",
"public function getNbDuree()\n {\n return $this->nbDuree;\n }",
"public function getNprcifecha()\n {\n return $this->nprcifecha;\n }",
"public function getEntriesNum() {\n\t\t$db = Denkmal_Db::get();\n\t\treturn $db->fetchOne('SELECT COUNT(1)\n\t\t\t\t\t\t\t\tFROM promotion_entry e\n\t\t\t\t\t\t\t\tWHERE e.promotionId=?'\n\t\t\t, array($this->getId()));\n\t}",
"public function getDeletedIncidents(): int;",
"public function getNbHCasPart() {\n return $this->nbHCasPart;\n }",
"public function getKbs(): int;",
"public function obtenerCant() {\n return ($this->cantcartas + 1);\n }",
"private function get_nbr_order()\r\n\t\t{\r\n\t\t\t$qtt = 0;\r\n\t\t\tforeach ($this->c_columns as $value)\r\n\t\t\t{\r\n\t\t\t\tif($value['order_by'] != false)\r\n\t\t\t\t{\r\n\t\t\t\t\t$qtt = $qtt + 1;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn $qtt;\r\n\t\t}",
"public function countEm()\n {\n $qb = $this->createQueryBuilder('g');\n $qb->select('count(g.id) AS counter');\n $query = $qb->getQuery();\n return $query->getSingleScalarResult();\n }",
"function getCantidad()\n {\n if (!isset($this->icantidad) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->icantidad;\n }",
"function getCantidad()\n {\n if (!isset($this->icantidad) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->icantidad;\n }",
"public function getNumber()\n {\n return $this->model->count();\n }",
"public function numTotalDeRegistros(){\r\n return $this->numTotalDeRegistros;\r\n }",
"function size()\n\t{\n\t\treturn $this->nb;\n\t}",
"function get_entradas_boni_list_count($ubicacion)\n\t{\n\t\t$u = new Entrada();\n\t\t$sql=\"select count(distinct(e.pr_facturas_id)) as total from entradas as e left join cproveedores as pr on pr.id=e.cproveedores_id left join pr_facturas as prf on prf.id=e.pr_facturas_id left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id left join estatus_general as eg on eg.id=e.estatus_general_id where e.espacios_fisicos_id=$ubicacion and e.estatus_general_id=1 and ctipo_entrada=9\";\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows == 1){\n\t\t\treturn $u->total;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}",
"public function getInsurace(): int\n {\n return $this->insurace;\n }",
"public function getAliquotaCofins()\n {\n return $this->aliquotaCofins;\n }",
"public function getInstallmentAmountWithInsurance()\r\n\t{\r\n\t\treturn $this->root->getAttribute('montantmensualiteavecass');\r\n\t}",
"public function getCantidadPendienteDeFacturacion()\n {\n // 1) a items factura ( proceso pedido - factura - entrada )\n // 2) a items entrada ( proceso pedido - entrada - factura )\n // \n // Si está ligado a items entrada ...\n if ( $this->getReferenciasItemEntradaMercancias()->count() ){\n \n $cantidadFacturada = 0;\n\n /* @var $itemEntradaMercancias \\Pronit\\ComprasBundle\\Entity\\Documentos\\EntradasMercancias\\ItemEntradaMercancias */\n foreach( $this->getReferenciasItemEntradaMercancias() as $itemEntradaMercancias )\n {\n $cantidadFacturada = $cantidadFacturada + $itemEntradaMercancias->getCantidadFacturada();\n }\n\n return $this->getCantidad() - $cantidadFacturada;\n } \n }",
"public function getageEu()\n {\n return $this->age_eu;\n }",
"public function getNumerocarte()\n {\n return $this->numerocarte;\n }",
"public function n() : int\n {\n return $this->n;\n }",
"public function n() : int\n {\n return $this->n;\n }",
"public function getFinanceCharge()\n\t{\n\t\treturn $this->finance_charge;\n\t}",
"function total_itineraries()\n\t{\n\t\treturn $this->_tour_voucher_contents['total_itineraries'];\n\t}",
"public function getInstallmentCount()\r\n\t{\r\n\t\treturn $this->root->getAttribute('nbmensualites');\r\n\t}",
"public function getMemberCnt()\n {\n return $this->get(self::_MEMBER_CNT);\n }",
"public function getNumeroCarteAgence()\n {\n $query_rq_numero = \"SELECT agence.idcard FROM agence WHERE agence.rowid = :agence\";\n $numero = $this->getConnexion()->prepare($query_rq_numero);\n $numero ->bindParam(\"agence\",$this->idagence);\n $numero->execute();\n $row_rq_numero= $numero->fetchObject();\n //return $this->idagence;\n return $row_rq_numero->idcard;\n }",
"public function getageEc()\n {\n return $this->age_ec;\n }",
"public function getChargeTotalAmount()\n {\n return $this->chargeTotalAmount;\n }",
"public function getCharge()\n {\n return $this->_fields['Charge']['FieldValue'];\n }",
"public function getCharge(){\n return $this->Charge;\n }",
"function getNbArticles(){\n $requete = $this->_bdd->query('SELECT COUNT(*) FROM article');\n $somme = $requete->fetch(PDO::FETCH_NUM);\n $requete->closeCursor();\n return (int) $somme[0];\n }",
"public function getNumIdccEmployeur() {\n return $this->numIdccEmployeur;\n }",
"public function getOpenIncidents(): int;",
"public function getRechargeLimitCount()\n {\n return $this->count(self::_RECHARGE_LIMIT);\n }",
"public function getNbEleves()\n {\n return $this->nbEleves;\n }",
"public function getCharges()\n {\n return $this->charges;\n }",
"public function getAmount()\r\n\t{\r\n\t\treturn $this->root->getAttribute('montant');\r\n\t}",
"public function nombreTotalTableau(){\n $req = $this->db->query(\"SELECT COUNT(*) AS nb FROM tableau\");\n $sortie = $req->fetch(PDO::FETCH_OBJ);\n return $sortie->nb;\n }",
"public function getTotalHT(){\n\t\t$HT=0;\n\t\tforeach ($this->_leslignes->getAll() as $uneligne){\n\t\t\t$HT+=$uneligne->getTotal();\n\t\t}\n\t\treturn $HT;\n\t}",
"public function getCardCount()\n {\n return $this->count(self::CARD);\n }",
"public function getGoodsNum()\n {\n return $this->goods_num;\n }",
"public function getNum()\n {\n return $this->get(self::_NUM);\n }",
"public function getNumberOfEntries()\n {\n return $this->numberOfEntries;\n }",
"public function getNbProd()\n {\n return $this->CollProduit->taille();\n }",
"public function getEnseigne()\n {\n return $this->_enseigne;\n }",
"function getNiveau() {\r\n\t\treturn $this->_niveau;\r\n\t}",
"function get_entradas_boni_gral_list_count($ubicacion)\n\t{\n\t\t$u = new Entrada();\n\t\t$sql=\"select count(distinct(e.pr_facturas_id)) as total from entradas as e left join cproveedores as pr on pr.id=e.cproveedores_id left join pr_facturas as prf on prf.id=e.pr_facturas_id left join espacios_fisicos as ef on ef.id=e.espacios_fisicos_id left join estatus_general as eg on eg.id=e.estatus_general_id where e.estatus_general_id=1 and ctipo_entrada=9\";\n\t\t//Buscar en la base de datos\n\t\t$u->query($sql);\n\t\tif($u->c_rows == 1){\n\t\t\treturn $u->total;\n\t\t} else {\n\t\t\treturn FALSE;\n\t\t}\n\t}",
"function get_all_entretiens_count()\n {\n $this->db->from('tb_bm_entretiens');\n return $this->db->count_all_results();\n }",
"public function getTotal(){\n\t\t\t$sql = \"SELECT COUNT(*) as c FROM clientes\";\n\t\t\t$sql = $this->db->query($sql);\n\t\t\t$sql = $sql->fetch();\n\t\n\t\t\treturn $sql['c'];\n\t\t}",
"private function getCount()\n {\n $bd = Core::getBdd()->getDb();\n $u_insc_c = \"SELECT DISTINCT COUNT(u.id) as c FROM c_user u\";\n $insc = 0 + $bd->query($u_insc_c)->fetchObject()->c;\n return ($insc);\n }",
"public function getServiceCharge()\n {\n return $this->service_charge;\n }",
"public function getSumNbConvertedCarts()\n {\n $nbFlaged = Mage::getModel('abandonment/orderflag')->getResource()\n ->getSumNbConvertedCarts($this->_getFilterStartingPeriod(), $this->_getFilterEndingPeriod());\n return $nbFlaged;\n }",
"public function getIteneraryEquivFareAmount()\n {\n return $this->IteneraryEquivFareAmount;\n }",
"function getNapetiKlima():int {\n return $this->napetiKlima;\n }",
"function getQuotationCount()\n {\n $result = $this->query(\"SELECT COUNT(*) as count FROM `\".$this->tblPrefix.$this->table.\"` WHERE client_id='\".$this->logUser.\"'\");\n return $result['0']['count'];\n }",
"public function getABACount()\n\t\t{\n\t\t\treturn $this->data->getABACount($this->model->bank_aba, $this->getCompanyId());\n\t\t}",
"static function amount_of_articles($parent) {\n\t\treturn $parent->config['portal_mode_portfolio_grid_amount'];\n\t}",
"public function totalEntries()\n\t{\n\t\t$count = craft()->formBuilder2_entry->getTotalEntries();\n\t\treturn $count;\n\t}",
"public function getNumCaisseSpectacle() {\n return $this->numCaisseSpectacle;\n }",
"function getNumberItem()\n{\n\t$numberItems = \\Cart::instance('shopping')->count(false);\n\n return $numberItems;\n}",
"function amount() {\n\t\treturn sizeof($this->data);\n\t}",
"protected function getDiskAmount()\n\t{\n\t\treturn(count($this->getDiskDevs()));\n\t}",
"public function getNbrDecimals() {\r\n\t\treturn($this->_nbDecimal);\r\n\t}",
"public function getNerve()\n {\n return $this->nerve;\n }",
"function obtenirNbEtabOffrantChambres ($connexion) {\r\n\r\n $req = \"SELECT COUNT(DISTINCT idEtab) FROM Offre\";\r\n $stmt = $connexion -> prepare ($req);\r\n $stmt -> execute ();\r\n return $stmt -> fetchColumn ();\r\n\r\n }",
"public function getAmountArticle(){\n return $this->amountArticle;\n }",
"public function getRechargeLimitCount()\n {\n return $this->count(self::RECHARGE_LIMIT);\n }",
"public function getDocumentExchageTotal()\r\n {\r\n return $this->documentExchageTotal;\r\n }",
"public function getItemCnt () {\n $items = CerticanItemDao::getListByCertican($this);\n\n return count($items);\n }",
"function getAllNumNodes(){\n\t\t$clase=$this->nmclass;\n\t\t$u=$this->cant_nodos;\n\t\treturn $u;\n\t}",
"public function getCantidad()\n {\n return $this->cantidad;\n }",
"public function getCantidad()\n {\n return $this->cantidad;\n }",
"public function getCantidad()\n {\n return $this->cantidad;\n }"
] | [
"0.6371368",
"0.62964106",
"0.6052738",
"0.6006173",
"0.5980947",
"0.596976",
"0.5922395",
"0.59219927",
"0.58677036",
"0.58677036",
"0.58534396",
"0.5843825",
"0.58417386",
"0.5831666",
"0.5829031",
"0.5828441",
"0.5828289",
"0.57886446",
"0.5773589",
"0.57651365",
"0.573983",
"0.5710156",
"0.57090896",
"0.57053727",
"0.5703422",
"0.5696525",
"0.5690277",
"0.5686312",
"0.5664716",
"0.5646681",
"0.56429327",
"0.5639491",
"0.56359506",
"0.5635912",
"0.56179756",
"0.56179756",
"0.5605654",
"0.55945075",
"0.5574356",
"0.5574315",
"0.5571982",
"0.5568529",
"0.55647314",
"0.5563818",
"0.55548626",
"0.5554766",
"0.55478144",
"0.55478144",
"0.55394036",
"0.55368733",
"0.5530624",
"0.5526395",
"0.55261344",
"0.5514797",
"0.54971826",
"0.5493704",
"0.5490176",
"0.5489887",
"0.5486652",
"0.54844916",
"0.5481224",
"0.5479033",
"0.5479002",
"0.5473695",
"0.5469742",
"0.54631716",
"0.5457922",
"0.54521716",
"0.54461545",
"0.54434246",
"0.5440333",
"0.54390985",
"0.54363346",
"0.5432083",
"0.54289514",
"0.542201",
"0.541902",
"0.541294",
"0.5403428",
"0.5403063",
"0.5401591",
"0.539559",
"0.53935647",
"0.5388479",
"0.5386315",
"0.53849894",
"0.5384836",
"0.53848124",
"0.538286",
"0.53719604",
"0.53696173",
"0.5367907",
"0.5367457",
"0.5355454",
"0.53539085",
"0.5353528",
"0.53517735",
"0.5343764",
"0.5343764",
"0.5343764"
] | 0.7999184 | 0 |
Get the nb h cas part. | public function getNbHCasPart() {
return $this->nbHCasPart;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNbHComp(): ?float {\n return $this->nbHComp;\n }",
"public function setNbHCasPart($nbHCasPart) {\n $this->nbHCasPart = $nbHCasPart;\n return $this;\n }",
"public function getCasParticulier() {\n return $this->casParticulier;\n }",
"public function getNbHn(): ?float {\n return $this->nbHn;\n }",
"public function getNbHGeneral() {\n return $this->nbHGeneral;\n }",
"public function getOehhnbr()\n {\n return $this->oehhnbr;\n }",
"public function getNbreH(): ?float {\n return $this->nbreH;\n }",
"public function getHsn(){\n return $this->db->get_where('hsn',array('chapter'=>1))->result();\n }",
"public function getHsnChapter(){\n return $this->db->get('hsn_chapter')->result();\n }",
"public static function getNbpiece(){return self::$nbPiece;}",
"public function getNbHRc(): ?float {\n return $this->nbHRc;\n }",
"public function getHival() {}",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"protected function getContentPartNumber(): string\n {\n $partNumber = $this->getPartNumber();\n if (0 === \\count($this->getParts())) {\n $partNumber .= '.1';\n }\n\n return $partNumber;\n }",
"public function getKieKelasHaid()\n {\n return $this->kie_kelas_haid;\n }",
"public function getIntituleCompte() {\n return $this->intituleCompte;\n }",
"public function getPhadhomenbr()\n {\n return $this->phadhomenbr;\n }",
"public function getPhadicellnbr()\n {\n return $this->phadicellnbr;\n }",
"function getHead($coment){\r\n\t\tif(isset($this->Head[$coment])) return $this->Head[$coment];\r\n\t\treturn '';\r\n\t}",
"public function pages_with_bhl()\n {\n if(isset($this->pages_with_bhl)) return $this->pages_with_bhl;\n $this->pages_with_bhl = 0;\n \n $result = $this->mysqli_slave->query(\"SELECT COUNT(DISTINCT(tc.id)) count FROM taxon_concepts tc JOIN taxon_concept_names tcn ON (tc.id=tcn.taxon_concept_id) JOIN page_names pn ON (tcn.name_id=pn.name_id) WHERE tc.published=1 AND tc.supercedure_id=0\");\n if($result && $row=$result->fetch_assoc()) $this->pages_with_bhl = $row['count'];\n return $this->pages_with_bhl;\n }",
"public function getCittaPartenza() {\n if (isset($_REQUEST['citta_partenza'])) {\n return $_REQUEST['citta_partenza'];\n } else\n return 0;\n }",
"public function getNbHBase(): ?float {\n return $this->nbHBase;\n }",
"public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\n }",
"public function getMontant_ht()\n {\n return $this->montant_ht;\n }",
"public function getHpvC()\n {\n return $this->hpv_c;\n }",
"public function getChien()\n {\n return $this->chien;\n }",
"public function getCompte()\n {\n return $this->compte;\n }",
"public function getNbHAbs(): ?float {\n return $this->nbHAbs;\n }",
"public function getNbHt(): ?float {\n return $this->nbHt;\n }",
"public function getNbreHMardi(): ?float {\n return $this->nbreHMardi;\n }",
"public function getPhadcont()\n {\n return $this->phadcont;\n }",
"public function getCasStart()\n {\n return $this->cas_start;\n }",
"public function getPhadcellnbr()\n {\n return $this->phadcellnbr;\n }",
"public static function get_hcol()\n\t{\n\t\tif ( bbn\\str::check_name(self::$hcol) ){\n\t\t\treturn self::$hcol;\n\t\t}\n\t}",
"public function get_game_two_heading () {\n\t\treturn get_field('field_5b4770572c388', $this->get_id());\n\t}",
"public function getIntbwhse()\n {\n return $this->intbwhse;\n }",
"public function getIdChien()\n {\n return $this->idChien;\n }",
"public function getShntinvoice()\n {\n return $this->shntinvoice;\n }",
"public function getKieKantinHaid()\n {\n return $this->kie_kantin_haid;\n }",
"public function getPhadihomenbr()\n {\n return $this->phadihomenbr;\n }",
"public function getCasKonec()\n {\n return $this->cas_konec;\n }",
"public function getH() {\n return $this->x;\n }",
"protected function getBhp()\n {\n preg_match(\"/\\d+.ps|\\d+.PS/i\", $this->excelRow->model_description, $bhpArr);\n if(!empty($bhpArr))\n {\n return (int) filter_var($bhpArr[0],FILTER_SANITIZE_NUMBER_INT);\n }\n }",
"public function getNbHNuit(): ?float {\n return $this->nbHNuit;\n }",
"protected function getHeaderPart()\n {\n //$logo_url = ot_get_option('header_logo', 'img/logo.jpg');\n ?>\n <?= $this->version151101() ?>\n <?= $this->getBannerPart() ?>\n <?php\n }",
"function get_nbre_conso(){\n\t\tglobal $bd;\n\t\t$req = $bd->query(\"SELECT SUM(nbre) as nbre FROM consommateur WHERE etat = 'present' \");\n\t\t$data = $req->fetch();\n\t\treturn $data['nbre'];\n\t}",
"public function getNbrHeures(): ?float {\n return $this->nbrHeures;\n }",
"public function getHeadId(): ?int;",
"public function get_game_one_heading () {\n\t\treturn get_field('field_5b476ff519749', $this->get_id());\n\t}",
"public function get_game_three_heading () {\n\t\treturn get_field('field_5b4770942c38b', $this->get_id());\n\t}",
"public function getStemH() {}",
"public function getPothinvcnbr()\n {\n return $this->pothinvcnbr;\n }",
"public function getHouseNumber();",
"public function getNprcifecha()\n {\n return $this->nprcifecha;\n }",
"public function getFcpoIbannumber() \n {\n return $this->getResponseParameter('clearing_bankiban');\n }",
"public function getNbreHSamedi(): ?float {\n return $this->nbreHSamedi;\n }",
"public function getPothnbr()\n {\n return $this->pothnbr;\n }",
"public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}",
"public function getPO106(){\n\t\treturn $this->getPO1IndexOf(6);\n\t}",
"public function setNbHComp(?float $nbHComp): PrepaPaie {\n $this->nbHComp = $nbHComp;\n return $this;\n }",
"public function getTitleSection()\n {\n return $this->getFirstFieldValue('245', ['n', 'p']);\n }",
"public function getNbreHMercredi(): ?float {\n return $this->nbreHMercredi;\n }",
"public function getNbrNoticeExtension()\n {\n $nbrNotice = $this->doctrine\n ->getRepository('NajdahAppBundle:Declaration')\n ->getNomberNoticeNomber();\n \n return $nbrNotice;\n }",
"public function getHeader() \r\n {\r\n return $this->_bagHeader; \r\n }",
"public function getCoDivision()\n\t{\n\t\treturn $this->co_division;\n\t}",
"public function getThnDibangun()\n {\n return $this->thn_dibangun;\n }",
"public function getNombreHeures() {\n return $this->nombreHeures;\n }",
"public function getHeading()\n {\n return $this->heading;\n }",
"public function getPO104(){\n\t\treturn $this->getPO1IndexOf(4);\n\t}",
"public function getIdCompra()\r\n {\r\n return $this->idCompra;\r\n }",
"public function getCIF(){\n $info = $this->getInfo();\n return $info[\"cif\"];\n }",
"public function gethabitacion(){\n\t\t\t$sql = \"select h.IdUsuario, h.NumeroHab from huespedusuario h, pedidohabitacion pe, cuentatotal c WHERE pe.IdCuenta = c.IdCuenta and h.IdHuesped = c.IdEnte GROUP by h.NumeroHab\";\n\t\t\t$params = array(null);\n\t\t\treturn Database::getRows($sql, $params);\n\t\t\t}",
"public function getNumber_branch()\n {\n return $this->fv_number_branch;\n }",
"public function getEncuestaHabilitado()\r\n {\r\n return $this->encuesta_habilitado;\r\n }",
"public function getNbSujet()\n {\n return $this->nbSujet;\n }",
"function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}",
"public function getChaine_id()\n {\n return $this->chaine_id;\n }",
"public function get_aviation_bsp_head() {\r\n\t\treturn ($this->aviation_bsp_head);\r\n\t}",
"public function get_rack_hu($p_nObjectID)\n {\n $l_nHU = null;\n\n $l_strSQL = \"SELECT isys_catg_formfactor_list__rackunits FROM isys_catg_formfactor_list\n\t\t\tWHERE isys_catg_formfactor_list__isys_obj__id = \" . $this->convert_sql_id($p_nObjectID) . \";\";\n\n $l_ret = $this->retrieve($l_strSQL);\n\n if ($l_ret->num_rows() > 0)\n {\n $l_nHU = $l_ret->get_row_value('isys_catg_formfactor_list__rackunits');\n } // if\n\n return $l_nHU;\n }",
"function rawpheno_get_trait_id($header) {\n // New lines.\n $header = str_replace(array(\"\\n\", \"\\r\"), ' ', $header);\n // Extra spaces.\n $header = preg_replace('!\\s+!', ' ', $header);\n\n // Query trait. Module stores unit in lowercase but user can use any case\n // in the spreadsheet. eg Planting Date (date) and Planting Date (Date).\n // @note cvterm.name + cv.name + not obsolete combination is unique (constraints).\n $sql = \"SELECT t2.cvterm_id\n FROM {cv} AS t1 INNER JOIN {cvterm} AS t2 USING(cv_id)\n WHERE lower(t2.name) = :cvterm_name AND t1.name = :cv_name AND is_obsolete = 0\";\n\n $args = array(':cvterm_name' => trim(strtolower($header)), ':cv_name' => 'phenotype_measurement_types');\n $type = chado_query($sql, $args)\n ->fetchObject();\n\n if ($type->cvterm_id) {\n return $type->cvterm_id;\n }\n\n return FALSE;\n}",
"public function getPart($what = null) {\n if (!$what) {\n return $this->_parts;\n } else {\n return isset($this->_parts[$what]) ? $this->_parts[$what] : null;\n }\n }",
"public function getNbreHMini(): ?float {\n return $this->nbreHMini;\n }",
"public function getKieToiletHaid()\n {\n return $this->kie_toilet_haid;\n }",
"public function getChapo()\n {\n return $this->chapo;\n }",
"public function getHeading(): string;",
"function getNombreArticle() {\n return ($this->nbarticle);\n }",
"public function getBreadCrump() {\n\t\tzc_log( \"WILL PRINT '\". $this->current_breadcrump. \"'\" );\n\t\treturn $this->current_breadcrump;\n\t}",
"function get_chebi($substance)\r\n {\r\n // TODO\r\n return FALSE;\r\n }",
"public function getHbp()\n {\n return $this->hbp;\n }",
"public function getHeure()\n {\n return $this->heure;\n }",
"public function f_get_hr_comp(){\n\n $sql = $this->db->query(\"select count(*) lv_comp_count \n from td_comp_apply \n where recommendation_status = 1\n and rejection_status = 0\n and approval_status = 0\");\n return $sql->row();\n }",
"public function get_compartment(){\n $this->compartment = array_shift(Compartment::find_all(\" WHERE dead_no = '{$this->id}' LIMIT 1\"));\n if ($this->compartment) {\n return $this->compartment->description;\n } else {\n return \"Not specified\";\n }\n }",
"public function getPorcentagemChef() {\n return $this->getChaveValor('PORCENTAGEM_CHEF');\n }",
"public function getBasis();",
"public function getFcpoBiccode() \n {\n return $this->getResponseParameter('clearing_bankbic');\n }",
"public function getNbreHDimanche(): ?float {\n return $this->nbreHDimanche;\n }",
"public function getCdHistorico()\n {\n return $this->cd_historico;\n }",
"public function getCompteurHorsEx(): ?int {\n return $this->compteurHorsEx;\n }",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }"
] | [
"0.61633533",
"0.60141784",
"0.5965054",
"0.5647783",
"0.56361014",
"0.55697083",
"0.5543079",
"0.5521292",
"0.55143315",
"0.55112565",
"0.54933125",
"0.548911",
"0.54520077",
"0.54520077",
"0.5404517",
"0.53921574",
"0.53872436",
"0.537597",
"0.5368918",
"0.5359181",
"0.5353565",
"0.5320052",
"0.52920055",
"0.52871454",
"0.5259028",
"0.5240034",
"0.5201315",
"0.5178343",
"0.5174566",
"0.51616377",
"0.51484364",
"0.5138571",
"0.512658",
"0.5120178",
"0.5119472",
"0.51129454",
"0.50980824",
"0.5088372",
"0.50746834",
"0.50743324",
"0.50704455",
"0.5062891",
"0.5058801",
"0.50513464",
"0.5035965",
"0.5031311",
"0.5020993",
"0.5005296",
"0.4998549",
"0.4994164",
"0.49908897",
"0.49834794",
"0.49799898",
"0.49740967",
"0.4967328",
"0.496253",
"0.49474022",
"0.49383366",
"0.49166328",
"0.49059552",
"0.4897179",
"0.4895372",
"0.48947418",
"0.48935774",
"0.4877611",
"0.4872508",
"0.4872346",
"0.48698455",
"0.4857152",
"0.48553914",
"0.4854766",
"0.4853673",
"0.485047",
"0.48482803",
"0.48451582",
"0.48451158",
"0.4831416",
"0.48283345",
"0.48248857",
"0.48179218",
"0.48146912",
"0.4811099",
"0.48075882",
"0.48061344",
"0.4800559",
"0.4794177",
"0.47735384",
"0.47573555",
"0.47559968",
"0.47557738",
"0.4733695",
"0.472862",
"0.47230172",
"0.4720763",
"0.47183174",
"0.47131574",
"0.47068593",
"0.47028878",
"0.47011",
"0.47007063"
] | 0.7604777 | 0 |
Get the nb h general. | public function getNbHGeneral() {
return $this->nbHGeneral;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNbreH(): ?float {\n return $this->nbreH;\n }",
"public function getNbHn(): ?float {\n return $this->nbHn;\n }",
"public function getNbHCasPart() {\n return $this->nbHCasPart;\n }",
"public function getNbHComp(): ?float {\n return $this->nbHComp;\n }",
"public function setNbHGeneral($nbHGeneral) {\n $this->nbHGeneral = $nbHGeneral;\n return $this;\n }",
"public function getNbHNuit(): ?float {\n return $this->nbHNuit;\n }",
"public function getNbHt(): ?float {\n return $this->nbHt;\n }",
"public function getNumberOfHMetrics() {}",
"public function getHeight()\n {\n // Support for 'n%', relative to parent\n return $this->parseGlobalValue_v($this->h);\n }",
"public function getNbreHMini(): ?float {\n return $this->nbreHMini;\n }",
"public function getNbreHMardi(): ?float {\n return $this->nbreHMardi;\n }",
"public function getNbreHMax(): ?float {\n return $this->nbreHMax;\n }",
"public function getNbHBase(): ?float {\n return $this->nbHBase;\n }",
"public function getTotalHT(){\n\t\t$HT=0;\n\t\tforeach ($this->_leslignes->getAll() as $uneligne){\n\t\t\t$HT+=$uneligne->getTotal();\n\t\t}\n\t\treturn $HT;\n\t}",
"public function getNbreHSamedi(): ?float {\n return $this->nbreHSamedi;\n }",
"public function getNbHAbs(): ?float {\n return $this->nbHAbs;\n }",
"public function getNumerTaryfyHs()\n {\n return $this->numerTaryfyHs;\n }",
"public function getHival() {}",
"public function getHeightN()\n {\n if (! isset($this->heightN)) {\n $this->heightN = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightNQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightN;\n }",
"public function getNbreHMaxiSamedi(): ?float {\n return $this->nbreHMaxiSamedi;\n }",
"public function getH() {\n return $this->x;\n }",
"public function getNbreHMiniSamedi(): ?float {\n return $this->nbreHMiniSamedi;\n }",
"public function pages_with_bhl()\n {\n if(isset($this->pages_with_bhl)) return $this->pages_with_bhl;\n $this->pages_with_bhl = 0;\n \n $result = $this->mysqli_slave->query(\"SELECT COUNT(DISTINCT(tc.id)) count FROM taxon_concepts tc JOIN taxon_concept_names tcn ON (tc.id=tcn.taxon_concept_id) JOIN page_names pn ON (tcn.name_id=pn.name_id) WHERE tc.published=1 AND tc.supercedure_id=0\");\n if($result && $row=$result->fetch_assoc()) $this->pages_with_bhl = $row['count'];\n return $this->pages_with_bhl;\n }",
"public function getThnDibangun()\n {\n return $this->thn_dibangun;\n }",
"public function getMontant_ht()\n {\n return $this->montant_ht;\n }",
"function size()\n\t{\n\t\treturn $this->nb;\n\t}",
"protected function getHeightNQuery()\n {\n return $this->heightNQuery;\n }",
"public function getSizeGib()\n {\n return $this->size_gib;\n }",
"public function getNbrHeures(): ?float {\n return $this->nbrHeures;\n }",
"public function getNbrNoticeExtension()\n {\n $nbrNotice = $this->doctrine\n ->getRepository('NajdahAppBundle:Declaration')\n ->getNomberNoticeNomber();\n \n return $nbrNotice;\n }",
"protected function getBhp()\n {\n preg_match(\"/\\d+.ps|\\d+.PS/i\", $this->excelRow->model_description, $bhpArr);\n if(!empty($bhpArr))\n {\n return (int) filter_var($bhpArr[0],FILTER_SANITIZE_NUMBER_INT);\n }\n }",
"public function getNbreHDimanche(): ?float {\n return $this->nbreHDimanche;\n }",
"public function getOehhnbr()\n {\n return $this->oehhnbr;\n }",
"public function getNbHRc(): ?float {\n return $this->nbHRc;\n }",
"public function getNbreHMiniDimanche(): ?float {\n return $this->nbreHMiniDimanche;\n }",
"public function getNbreHMercredi(): ?float {\n return $this->nbreHMercredi;\n }",
"public function getIntbwhse()\n {\n return $this->intbwhse;\n }",
"function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }",
"public function getNbreHMaxiDimanche(): ?float {\n return $this->nbreHMaxiDimanche;\n }",
"public function getHerosCount()\n {\n return $this->count(self::_HEROS);\n }",
"public function getHerosCount()\n {\n return $this->count(self::_HEROS);\n }",
"public function getHbp()\n {\n return $this->hbp;\n }",
"public function getNbreHVendredi(): ?float {\n return $this->nbreHVendredi;\n }",
"public function getHeight() {\n return $this->h;\n }",
"public function getProd_niche () {\n\t$preValue = $this->preGetValue(\"prod_niche\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->getClass()->getFieldDefinition(\"prod_niche\")->preGetData($this);\n\treturn $data;\n}",
"public function getNbreHMiniMardi(): ?float {\n return $this->nbreHMiniMardi;\n }",
"public function getH() {\n return $this->y;\n }",
"public function getNbreHMaxiMardi(): ?float {\n return $this->nbreHMaxiMardi;\n }",
"public function getHouseNumber();",
"public function getNbreHMaxiMercredi(): ?float {\n return $this->nbreHMaxiMercredi;\n }",
"public function getNbreHMaxiJeudi(): ?float {\n return $this->nbreHMaxiJeudi;\n }",
"public function getNgaySinh(){\n return $this->NgaySinh;\n }",
"public function getNbreHLundi(): ?float {\n return $this->nbreHLundi;\n }",
"function getNum()\n {\n return $this->num;\n }",
"public function get_nim()\n\t{\n\t\treturn $this->nim;\n\t}",
"public function getNbreHMiniJeudi(): ?float {\n return $this->nbreHMiniJeudi;\n }",
"public function getNupBrgTanah()\n {\n return $this->nup_brg_tanah;\n }",
"public function getNum()\n {\n return $this->get(self::_NUM);\n }",
"public function getGoodsNum()\n {\n return $this->goods_num;\n }",
"function height() {\n if (empty($this->bodyheight)) {\n if ($this->page[\"Bio\"] == \"\") $this->openpage (\"Bio\",\"person\");\n if (preg_match(\"/Height<\\/h5>\\s*\\n(.*?)\\s*\\((.*?)\\)/m\",$this->page[\"Bio\"],$match)) {\n $this->bodyheight[\"imperial\"] = trim($match[1]);\n $this->bodyheight[\"metric\"] = trim($match[2]);\n }\n }\n return $this->bodyheight;\n }",
"public function getPhadicellnbr()\n {\n return $this->phadicellnbr;\n }",
"public function getWidth()\n {\n // Support for 'n%', relative to parent\n return $this->parseGlobalValue_h($this->w);\n }",
"public function getNbHSup1(): ?float {\n return $this->nbHSup1;\n }",
"public function getPhadhomenbr()\n {\n return $this->phadhomenbr;\n }",
"public function getNum()\n {\n return $this->num;\n }",
"public function getNum()\n {\n return $this->num;\n }",
"public function n() : int\n {\n return $this->n;\n }",
"public function n() : int\n {\n return $this->n;\n }",
"public function getKbs(): int;",
"public function getPhadcellnbr()\n {\n return $this->phadcellnbr;\n }",
"public function getNbreHJeudi(): ?float {\n return $this->nbreHJeudi;\n }",
"public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}",
"public function getHeight() {\n\t\tif (!$this->isBound()) {\n\t\t\treturn -1;\n\t\t}\n\t\treturn $this->h;\n\t}",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"public function getNumeroLabel() {\n return $this->numeroLabel;\n }",
"public function getNbreHMaxiVendredi(): ?float {\n return $this->nbreHMaxiVendredi;\n }",
"public function getNbreHMiniMercredi(): ?float {\n return $this->nbreHMiniMercredi;\n }",
"function get_nbre_conso(){\n\t\tglobal $bd;\n\t\t$req = $bd->query(\"SELECT SUM(nbre) as nbre FROM consommateur WHERE etat = 'present' \");\n\t\t$data = $req->fetch();\n\t\treturn $data['nbre'];\n\t}",
"public function getHeightO()\n {\n if (! isset($this->heightO)) {\n $this->heightO = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getHeightOQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->heightO;\n }",
"function getAllNumNodes(){\n\t\t$clase=$this->nmclass;\n\t\t$u=$this->cant_nodos;\n\t\treturn $u;\n\t}",
"public function getNbHSup2(): ?float {\n return $this->nbHSup2;\n }",
"public function num() {\n return $this->num;\n }",
"protected function getHeadingNumber(DomNode $node)\n {\n $this->setCounts($node);\n $string = '';\n foreach ($this->counts as $count) {\n if (! $count) {\n break;\n }\n $string .= \"{$count}.\";\n }\n return $this->page->getNumber() . $string;\n }",
"public static function getNbpiece(){return self::$nbPiece;}",
"function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}",
"public function height() : int;",
"public function getN() : GMP\n {\n return $this->n;\n }",
"public function getPothnbr()\n {\n return $this->pothnbr;\n }",
"public function getheight(){\n $height = $this->_run('getheight');\n return $height;\n }",
"public function getNbreHMiniVendredi(): ?float {\n return $this->nbreHMiniVendredi;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNbPion()\n {\n return $this->nbPion;\n }",
"public function getTxHn(): ?float {\n return $this->txHn;\n }",
"public function getMontantHt() {\n return $this->montantHt;\n }",
"public function getMaxHops()\n {\n return $this->max_hops;\n }",
"public function getHSupBonif(): ?float {\n return $this->hSupBonif;\n }",
"public function getHpv()\n {\n return $this->hpv;\n }",
"public function setNumberOfHMetrics($value) {}"
] | [
"0.691194",
"0.6910423",
"0.652079",
"0.64660776",
"0.64192164",
"0.6399246",
"0.63817656",
"0.62446564",
"0.61819834",
"0.6166987",
"0.6156636",
"0.613332",
"0.60868144",
"0.60518736",
"0.60190845",
"0.5983249",
"0.5969165",
"0.5916694",
"0.5889797",
"0.5873208",
"0.5845351",
"0.58277464",
"0.58261675",
"0.5815319",
"0.57839006",
"0.5777561",
"0.5774737",
"0.57526505",
"0.57422435",
"0.57340413",
"0.57271975",
"0.5723649",
"0.5646049",
"0.56080174",
"0.5605455",
"0.5591344",
"0.5581113",
"0.5553529",
"0.5518632",
"0.5487426",
"0.5487426",
"0.54823744",
"0.54693365",
"0.5466603",
"0.5434794",
"0.5418105",
"0.5406298",
"0.5403159",
"0.53864115",
"0.53841424",
"0.53785026",
"0.53753346",
"0.53753096",
"0.53573805",
"0.53537244",
"0.53482014",
"0.5347374",
"0.5347099",
"0.5346742",
"0.53437346",
"0.5334534",
"0.5330801",
"0.53305906",
"0.53282684",
"0.5325273",
"0.5325273",
"0.5316359",
"0.5316359",
"0.5307638",
"0.5297183",
"0.529362",
"0.52812916",
"0.52698696",
"0.5268637",
"0.5268637",
"0.5268013",
"0.52664524",
"0.5260083",
"0.52573293",
"0.5251801",
"0.5237887",
"0.5234245",
"0.5227189",
"0.5217841",
"0.52178097",
"0.52087164",
"0.51992184",
"0.5196244",
"0.5189859",
"0.51890206",
"0.5184642",
"0.51739395",
"0.51739395",
"0.51671106",
"0.5165795",
"0.5157304",
"0.5150836",
"0.5140795",
"0.51402926",
"0.5124746"
] | 0.8188359 | 0 |
Get the nom employe. | public function getNomEmploye() {
return $this->nomEmploye;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNom_employeur()\n {\n return $this->nom_employeur;\n }",
"public function getNomOpe()\n {\n return $this->nomOpe;\n }",
"public function getPrenomEmploye() {\n return $this->prenomEmploye;\n }",
"public function getnom() {\n\t\treturn $this->nom;\n\t}",
"public function getnomdomaine() {\r\n\t\treturn $this->nomdomaine;\r\n\t}",
"public final function getNom()\n\t{\n\t\treturn $this->nom;\n\t}",
"public function get_nom()\n {\n return $this->_nom;\n }",
"public function get_nom()\n {\n return $this->_nom;\n }",
"public function getNombreEmpresa(){\n $empresa=DatosEmpresa::datosGenerales($this->idempresa);\n if($empresa==null)\n return '';\n else\n return $empresa->razonsocial;\n }",
"public function get_nomPersonnage()\n {\n $this->_nomPersonnage;\n }",
"public function getNom () {\n if (key_exists(self::UTILISATEUR_REF, $_SESSION)) {\n return $_SESSION[self::UTILISATEUR_REF][self::NOM_REF];\n }\n return \"\";\n }",
"public function getNom()\n\t{\n\t\treturn $this->nom;\n\t}",
"public function getNom()\n {\n return $this->Nom;\n }",
"public function getEmpCommune() {\n return $this->empCommune;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom() \n {\n return $this->nom;\n }",
"public function getNit_empresa(){\n return $this->nit_empresa;\n }",
"public function getNom()\n {\n return $this->_nom;\n }",
"public function getNom()\r\n {\r\n return $this->nom;\r\n }",
"public function getNom()\r\n {\r\n return $this->nom;\r\n }",
"public function getNom()\n { \n \n return $this->_nom;\n }",
"public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }",
"public function getNom_partner()\n {\n return $this->nom_partner;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom(): string\r\n {\r\n return $this->nom;\r\n }",
"public function getNom() : string{\n return $this->nom;\n }",
"public function getNomNaissance() {\n return $this->nomNaissance;\n }",
"public function getNom();",
"function getNom()\n {\n return $this->_Nom;\n }",
"public function getNom() {\n return strval($this->nom);\n }",
"function getNom() {\r\n\t\treturn $this->_nom;\r\n\t}",
"public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }",
"public function getAutNom(){\n\t\t\treturn $this->autnom;\n\t\t}",
"public function getNameE()\n {\n return $this->name_e;\n }",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNombreEmpresa()\n {\n return $this->nombreEmpresa;\n }",
"public function getNom_user()\r\n {\r\n return $this->nom_user;\r\n }",
"public function getNom() { return $this->nom; }",
"public function getmnem()\n {\n return $this->mnem;\n }",
"public function getNomLivre()\n {\n return $this->nomLivre;\n }",
"public function getNombre_empresa(){\n return $this->nombre_empresa;\n }",
"public function getEmpleado() {\r\n return $this->empleado;\r\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }",
"function getId_nom()\n {\n if (!isset($this->iid_nom) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iid_nom;\n }",
"public function getNomAdmin() {\n\t\treturn $this->nom_admin;\n\t}",
"public function getNomUsuario() {\n return $this->nomUsuario;\n }",
"public function getNom():string{\r\n\r\n\r\n\r\n return $this->nom;\r\n\r\n\r\n\r\n\r\n \t\t\t}",
"public function getNomtierce()\n {\n return $this->nomtierce;\n }",
"public function getNom(): ?string\n {\n return $this->nom;\n }",
"public function getAdresse_employeur()\n {\n return $this->adresse_employeur;\n }",
"public function getNome_moeda()\n {\n return $this->nome_moeda;\n }",
"protected function getEgn()\n\t{\n\t\treturn $this->egn;\n\t}",
"public function getNome(){\n\t\t\treturn $this->nome;\n\t\t}",
"public function getNombati()\n {\n return $this->nombati;\n }",
"public function getLieu(): string\r\n {\r\n return $this->Lieu;\r\n }",
"public function getEmpName($eid,$f=\"LFM\",$abM=true){\n\t\tif($Personal=$this->MySQLi->GetArray(\"SELECT CONCAT_WS(', ',`tblemppersonalinfo`.`EmpLName`, CONCAT_WS(' ',`tblemppersonalinfo`.`EmpFName`, CONCAT_WS('.', SUBSTRING(`tblemppersonalinfo`.`EmpMName`, 1, 1), ''))) AS EmpName FROM `tblemppersonalinfo` WHERE `tblemppersonalinfo`.`EmpID`='\".$eid.\"';\")){\n\t\treturn $Personal['EmpName'];}else{return \"$eid NOT EXIST.\";}\n\t}",
"public function getEmployeeName()\r\n {\r\n return $this->deleted ? $this->old_username : $this->username;\r\n }",
"public function getNom(){\n\n }",
"public function getEps_nombre(){\n return $this->eps_nombre;\n }",
"public function getNamaPelajaran();",
"public function getNomFamilleproduit()\n {\n return $this->Nom_familleproduit;\n }",
"public function get_nomR()\n {\n return $this->_nomR;\n }",
"public function getCnameE()\n {\n return $this->cname_e;\n }",
"public function getNom_produit()\n {\n return $this->nom_produit;\n }",
"public function getNome() {\n return $this->oCgm->getNome();\n }",
"public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }",
"public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }",
"public function getNome()\n\t\t{\n\t\t\t\treturn $this->nome;\n\t\t}",
"public function setNomEmploye($nomEmploye) {\n $this->nomEmploye = $nomEmploye;\n return $this;\n }",
"public function setNomEmploye($nomEmploye) {\n $this->nomEmploye = $nomEmploye;\n return $this;\n }",
"public function getPersonne()\n {\n return $this->id_personne;\n }",
"public function getDateNaissanceEmploye() {\n return $this->dateNaissanceEmploye;\n }",
"public function getNome()\n\t{\n\t\treturn $this->nome;\n\t}",
"public function getNome()\n\t{\n\t\treturn $this->nome;\n\t}",
"public function getNOMBRE()\r\n {\r\n return $this->NOMBRE;\r\n }",
"public static function getUserName()\n {\n $user = static::get();\n if (isset($user->noPessoa)) {\n return $user->noPessoa;\n }\n }"
] | [
"0.82444847",
"0.7580508",
"0.753554",
"0.73317784",
"0.7204508",
"0.7172069",
"0.71650386",
"0.71650386",
"0.71539384",
"0.7128785",
"0.7113142",
"0.7097169",
"0.70726496",
"0.7034418",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7034211",
"0.7013937",
"0.70088536",
"0.70043546",
"0.699487",
"0.699487",
"0.69832265",
"0.6979685",
"0.6979685",
"0.6979685",
"0.6972566",
"0.6962645",
"0.6962645",
"0.6938627",
"0.6931185",
"0.6922972",
"0.69109696",
"0.6902009",
"0.6896336",
"0.6865638",
"0.6862614",
"0.6847177",
"0.6845454",
"0.6821852",
"0.6821852",
"0.6821089",
"0.6821089",
"0.6821089",
"0.67956984",
"0.67563516",
"0.67553043",
"0.67529386",
"0.6726638",
"0.67259747",
"0.66989774",
"0.66918105",
"0.6647168",
"0.6647168",
"0.6585464",
"0.6501399",
"0.6435909",
"0.6425291",
"0.64216155",
"0.6392077",
"0.6387827",
"0.63861954",
"0.6371589",
"0.6367876",
"0.63572305",
"0.6335848",
"0.6333911",
"0.6327653",
"0.631892",
"0.63018954",
"0.6299832",
"0.62979114",
"0.6294357",
"0.62930447",
"0.6286909",
"0.6277037",
"0.6277037",
"0.6276704",
"0.62752753",
"0.62752753",
"0.6274354",
"0.62478584",
"0.62418675",
"0.62418675",
"0.62407553",
"0.6240586"
] | 0.8242671 | 2 |
Get the nom marital. | public function getNomMarital() {
return $this->nomMarital;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMarName()\n {\n return $this->mar_name;\n }",
"public function getnom() {\n\t\treturn $this->nom;\n\t}",
"public function get_nom()\n {\n return $this->_nom;\n }",
"public function get_nom()\n {\n return $this->_nom;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getNomNaissance() {\n return $this->nomNaissance;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getMarcaNombre()\n {\n return $this->marcaNombre;\n }",
"public function getMarca() {\n return $this->iMarca;\n }",
"public final function getNom()\n\t{\n\t\treturn $this->nom;\n\t}",
"public function getMaterno()\n {\n return $this->materno;\n }",
"public function getNom();",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function get_nomPersonnage()\n {\n $this->_nomPersonnage;\n }",
"public function getNom()\n { \n \n return $this->_nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getNom()\n {\n return $this->_nom;\n }",
"public function getNom()\n\t{\n\t\treturn $this->nom;\n\t}",
"public function getNom() \n {\n return $this->nom;\n }",
"public function getNom()\r\n {\r\n return $this->nom;\r\n }",
"public function getNom()\r\n {\r\n return $this->nom;\r\n }",
"public function getNomeMedico() {\n return ucwords($this->_nome); // imposta la lettera maiuscola a tutte le parole\n }",
"public function getNom()\n {\n return $this->Nom;\n }",
"public function getNom() : string{\n return $this->nom;\n }",
"public function getNom(): string\r\n {\r\n return $this->nom;\r\n }",
"public function get_nomR()\n {\n return $this->_nomR;\n }",
"public function getnomdomaine() {\r\n\t\treturn $this->nomdomaine;\r\n\t}",
"public function getNome_moeda()\n {\n return $this->nome_moeda;\n }",
"public function getNom() { return $this->nom; }",
"private function getMonthName() {\n\t\treturn ucwords($this->monthNames[$this->month-1]);\n\t}",
"function getNom() {\r\n\t\treturn $this->_nom;\r\n\t}",
"public function getNom() {\n return strval($this->nom);\n }",
"public function getMname()\n {\n return $this->mname;\n }",
"public function getmnem()\n {\n return $this->mnem;\n }",
"public function getMaritalStatus()\n {\n return $this->maritalStatus;\n }",
"function getNom()\n {\n return $this->_Nom;\n }",
"public function getNombati()\n {\n return $this->nombati;\n }",
"public function getNom()\n {\n return $this->nom;\n }",
"public function getKommun()\n\t{\n\t\treturn $this->kommun;\n\t}",
"Public Function getMentorName()\n\t{\n\t\t$Mentor = $this->_db->fetchRow('SELECT * FROM ' . $this->_mentor_to_user_table_name . ' WHERE user__id = ' . $this->id);\n\t\tif(!sizeOf($Mentor) || !$Mentor)\n\t\t\treturn false;\n\t\t$Mentor = new Mentor($Mentor->mentor__id);\n\t\treturn $Mentor->name;\n\t}",
"public function getMonth(): string\n {\n return $this->toLocalizedString('M');\n }",
"public function getNomMembre()\n {\n return $this->nom_membre;\n }",
"public function getNombreMunicipio() {\n return $this->municipio->nombre_municipio;\n }",
"public function getAPELLIDO_MATERNO()\r\n {\r\n return $this->APELLIDO_MATERNO;\r\n }",
"public function getMersisNo() :string\n {\n return $this->mersisNo;\n }",
"public function getMonthName(){\n\t\tif($this->_year>1970&&$this->_year<2038){\n\t\t\t$timestamp = $this->_timestamp;\n\t\t} else {\n\t\t\t$timestamp = mktime(0, 0, 0, $this->_month, 1, date('Y'));\n\t\t}\n\t\t$locale = $this->getLocale();\n\t\t$months = $locale->getMonthList();\n\t\treturn ucfirst($months[$this->_month-1]);\n\t}",
"public function setNomMarital($nomMarital) {\n $this->nomMarital = $nomMarital;\n return $this;\n }",
"public function getMontant() {\n return $this->montant;\n }",
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getNom () {\n if (key_exists(self::UTILISATEUR_REF, $_SESSION)) {\n return $_SESSION[self::UTILISATEUR_REF][self::NOM_REF];\n }\n return \"\";\n }",
"public function getMUNICIPIO()\r\n {\r\n return $this->MUNICIPIO;\r\n }",
"public function getMaitre()\n {\n return $this->maitre;\n }",
"public function getMarAge()\n {\n return $this->mar_age;\n }",
"public function getNomLivre()\n {\n return $this->nomLivre;\n }",
"public function getMateria(){\n\t\treturn $this->materia;\n }",
"public function get_nom(){ return $this->_nom;}",
"public function get_nom(){ return $this->_nom;}",
"public function getNomOpe()\n {\n return $this->nomOpe;\n }",
"public function getNom(): ?string\n {\n return $this->nom;\n }",
"public function getAutNom(){\n\t\t\treturn $this->autnom;\n\t\t}",
"public function getMonthName()\n {\n return $this->currentMonth[\"month\"];\n }",
"public function getIdMarca()\n {\n return $this->idMarca;\n }",
"function getMonthName($abbr = false)\r\n {\r\n if($abbr) {\r\n return Data_Calc::getMesNomeAbrev($this->mes);\r\n } else {\r\n return Data_Calc::getMesNomeCompl($this->mes);\r\n }\r\n }",
"public function getNom(){\n\n }",
"public function getNom():string{\r\n\r\n\r\n\r\n return $this->nom;\r\n\r\n\r\n\r\n\r\n \t\t\t}",
"public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}",
"public function getMarca(){ return $this->marca;}",
"public function GetMonthName() {\n return $this->IntToMonthName($this->GetMonth());\n }",
"public function getNomtierce()\n {\n return $this->nomtierce;\n }",
"function married() \n { \n $this->marsta_id=\"C\";\n $this->marsta_name=\"Married\";\n return($this->marsta_id);\n }",
"public function getNomType() {\n\t\treturn $this->nom_type;\n\t}",
"public function getNom_partner()\n {\n return $this->nom_partner;\n }",
"function getMonth()\r\n {\r\n return $this->mes;\r\n }",
"function getMonthName()\n {\n return $this->currentMonthName;\n }",
"public function getCognomeMedico() {\n return ucwords($this->_cognome);\n }",
"public function getPrenom() : string{\n return $this->prenom;\n }",
"public function getMiddleName() {}",
"public function getNOMBRE()\r\n {\r\n return $this->NOMBRE;\r\n }",
"public function getNomFamilleproduit()\n {\n return $this->Nom_familleproduit;\n }",
"public function getAPELLIDOMATERNO()\r\n {\r\n return $this->APELLIDO_MATERNO;\r\n }"
] | [
"0.75451976",
"0.6856713",
"0.676108",
"0.676108",
"0.6754215",
"0.6754215",
"0.6745942",
"0.6705544",
"0.6705544",
"0.6705544",
"0.66755956",
"0.665765",
"0.6611304",
"0.65778106",
"0.6573724",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65630895",
"0.65607965",
"0.65509677",
"0.6536856",
"0.6536856",
"0.65366167",
"0.6535649",
"0.65293974",
"0.65271276",
"0.65271276",
"0.6516959",
"0.6496022",
"0.64433223",
"0.643377",
"0.6423301",
"0.6416064",
"0.641551",
"0.6412289",
"0.6403028",
"0.6382892",
"0.6374639",
"0.6374626",
"0.63629246",
"0.6347268",
"0.6305601",
"0.63051397",
"0.62971896",
"0.62753975",
"0.6255899",
"0.6250178",
"0.6244466",
"0.6209735",
"0.6193325",
"0.61924887",
"0.61816555",
"0.6162875",
"0.6134328",
"0.6127419",
"0.6127419",
"0.6123222",
"0.61230373",
"0.6112218",
"0.608209",
"0.6072356",
"0.6046572",
"0.60404426",
"0.60404426",
"0.60333276",
"0.60227716",
"0.6017994",
"0.6016747",
"0.60124934",
"0.6005549",
"0.5994638",
"0.59893376",
"0.5979922",
"0.5970191",
"0.5968575",
"0.595455",
"0.59505224",
"0.5938319",
"0.5929176",
"0.5922308",
"0.5921735",
"0.5907762",
"0.5889104",
"0.5881259",
"0.588037",
"0.5876425",
"0.5870947"
] | 0.85869616 | 0 |
Get the non repris. | public function getNonRepris() {
return $this->nonRepris;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getIsNot()\n {\n return $this->is_not;\n }",
"public function get_nonces()\n {\n }",
"public function getNegocio();",
"public function isNot()\n {\n return $this->not;\n }",
"public function isNot()\n {\n return $this->not;\n }",
"public function getNonOptions()\n {\n return $this->nonOptions;\n }",
"public function getInvisible()\n\t{\n\t\treturn $this->invisible;\n\t}",
"public function noes()\n {\n return $this->dummy->noes();\n }",
"public function getNota(){\n\t\treturn $this->nota;\n\t}",
"public function getNoInterrumpir( ) {\n return $this->noInterrumpir;\n }",
"private function get_not() {\n\t\t$prefix = $this->not ? '!' : '';\n\t\tunset( $this->not );\n\t\treturn $prefix;\n\t}",
"public function getNonStrings()\n {\n return array(\n array(11),\n array(-3),\n array(3.14),\n array(true),\n array(false),\n array(null),\n array(array()),\n array(new \\stdClass())\n );\n }",
"public function getNonStrings()\n {\n return array(\n array(11),\n array(-3),\n array(3.14),\n array(true),\n array(false),\n array(null),\n array(array()),\n array(new \\stdClass())\n );\n }",
"public function getNilm()\n {\n return $this->nilm;\n }",
"public function getNOTASGENERALES()\r\n {\r\n return $this->NOTAS_GENERALES;\r\n }",
"public function setNonRepris($nonRepris) {\n $this->nonRepris = $nonRepris;\n return $this;\n }",
"public function not() {\n\t\t$this->not = '!';\n\t\treturn $this;\n\t}",
"public function getNilk()\n {\n return $this->nilk;\n }",
"public function getNoticias()\n {\n return $this->noticias;\n }",
"public function getCdUnidadeNegocio()\n {\n return $this->cd_unidade_negocio;\n }",
"public function getCodigosItensNotas() {\n return $this->aCodigosNotas;\n }",
"public function getNota(){\n return $this->nota;\n }",
"public function getIteneraryNonRefundableIndicator()\n {\n return $this->IteneraryNonRefundableIndicator;\n }",
"public function getInvisibleFlag() {}",
"public function getTextoNot() {\n\t\treturn $this->TextoNot;\n\t}",
"public function getNotReplacedChars()\n {\n return $this->_notReplacedChars;\n }",
"public function getXpNecesaria()\n {\n return $this->xpNecesaria;\n }",
"public function getUnidadeNegocioCdUnidade()\n {\n return $this->unidade_negocio_cd_unidade;\n }",
"public function getNeverRender()\n {\n return $this->_neverRender;\n }",
"public function get_security_nonces() {\r\n\t\treturn $this->security_nonces;\r\n\t}",
"public function getNoPenetapanPnf()\n {\n return $this->no_penetapan_pnf;\n }",
"public function getMustNotList() {\n return $this->_get(2);\n }",
"public function noes()\n {\n return $this->people->getName().'做了一个鼻子';\n }",
"public function getNoPropertiesFoundText()\n {\n return $this->noPropertiesFoundText;\n }",
"public function getNonGere(): ?bool {\n return $this->nonGere;\n }",
"public function getNoValue()\n\t{\n\t\treturn $this->getBehavior()->labelNoValue;\n\t}",
"public function getNoDiscount() {\n return $this->item->getNoDiscount();\n }",
"public function toString()\n {\n return 'Review is absent in grid on product reviews tab.';\n }",
"public function get_noConstructeur() {\n return $this->_noConstructeur;\n }",
"public function getNapetiPospisil() {\n return $this->napetiPospisil;\n }",
"public function getUnparseables()\n {\n return $this->unparseables;\n }",
"public function isFalse() {\n return $this->is(new Identical(false));\n }",
"public function getFormatNonEtendu(): ?bool {\n return $this->formatNonEtendu;\n }",
"public function getNonHiddenPoints() {\n return $this->non_hidden_non_extra_credit + $this->non_hidden_extra_credit;\n }",
"public function dry() {\n\t\treturn $this->empty;\n\t}",
"public function getNoRender()\n {\n return $this->_noRender;\n }",
"public function getAllUnidadNegocio()\r\n {\r\n $sql = \"SELECT id_unidad_negocio, nombre, url_logo, url_imagen, descripcion FROM tbl_unidad_negocio\";\r\n $query = $this->db->prepare($sql);\r\n\r\n $query->execute();\r\n\r\n return $query->fetchAll();\r\n }",
"public function rne(){return $this->_rne;}",
"public function getCoNegocio()\n\t{\n\t\treturn $this->co_negocio;\n\t}",
"public function getPrntfmtdisp()\n {\n return $this->prntfmtdisp;\n }",
"public function getnonavailabledatesraw() {\n\n if ( self::isEmptyResult() ) {\n return array();\n }\n\n $non_available = $this->data[self::resultinnernode];\n\n $non_available = $this->normalize($non_available);\n\n return $non_available;\n }",
"public function getAsuntoNot() {\n\t\treturn $this->AsuntoNot;\n\t}",
"function getNoWin() {\n return $this->records[1];\n }",
"public function getImpermissible()\n {\n return 'x0x0x1' !== $this->impermissible ? $this->impermissible : $this->default;\n }",
"public function getPricedisp()\n {\n return $this->pricedisp;\n }",
"public function GetNoValidate () {\n\t\treturn $this->noValidate;\n\t}",
"public function negate()\n {\n $this->_not = true;\n return $this;\n }",
"public function getNonComplianceReason()\n {\n return $this->non_compliance_reason;\n }",
"public function getIgnored() : bool\n {\n return $this->ignored;\n }",
"public function getHidden()\n\t{\n\t\treturn $this->hidden;\n\t}",
"public function getNotPoked()\n {\n return $this->select('status_id', 'status_author')\n ->where('author_poked', '=', '0')\n ->get();\n }",
"public function getNOMBRE()\r\n {\r\n return $this->NOMBRE;\r\n }",
"public function get_noPublishedRecipes() {\n\n $query = $this->db\n ->from('recipes')\n ->where('published', 0)\n ->order_by('created_at', 'DESC')\n ->get();\n\n return $result = $query->result();\n }",
"private static function getNonSpecialPageTypes() {\n \t\treturn tx_newspaper::selectRows(\n \t\t\t'DISTINCT get_var', tx_newspaper::getTable('tx_newspaper_PageType'),\n \t\t\t'get_var != \\'' . tx_newspaper::GET_pagetype() .'\\' AND ' .\n \t\t\t'get_var != \\'' . tx_newspaper::GET_article() .'\\' AND ' .\n \t\t\t'get_var != \\'\\''\n \t\t);\n\t\t\n\t}",
"public abstract function getNoOutput();",
"public function getNewsNotCheck()\n {\n $news = $this->_model->where('news_is_check', '=', '0')->get();\n\n return $news;\n }",
"protected function getUnconsidered()\n {\n $tempStr = $this->excelRow->model_description;\n\n foreach($this->capRangeWordmapping as $pattern => $replacement)\n {\n $tempStr = preg_replace(\"/{$pattern}/i\", $replacement, $tempStr);\n }\n\n $words = explode(' ', $tempStr);\n\n if(isset($words[2]) && in_array($words[2], $this->secoundWordOfCapRange))\n {\n $words[0] = $words[1] = $words[2] = null;\n }\n else\n {\n $words[0] = $words[1] = null;\n }\n\n $tempStr = implode(' ', $words);\n\n $tempStr = preg_replace(\"/\".(join('|', $this->cmodNameWords)). \"/i\", '', $tempStr );\n $tempStr = preg_replace(\"/\".(join('|', $this->considerEngineSizeWords)). \"/i\", '', $tempStr );\n $tempStr = preg_replace(\"/\\d+.ps|\\d+.PS/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/[0-9]*\\.[0-9]+/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/\\d-speed/i\", '' ,$tempStr );\n $tempStr = preg_replace(\"/cylinder on demand/i\", '' ,$tempStr );\n\n foreach($this->manualWordCheckingList as $word)\n {\n $tempStr = preg_replace(\"/{$word}/i\", '' ,$tempStr );\n }\n\n return preg_replace(\"/ * /\", \" \", trim($tempStr));\n }",
"public function isMeaningless()\n {\n return $this->meaningless;\n }",
"public function createNot()\n {\n $o = new NotSelector();\n $this->appendSelector($o);\n\n return $o;\n }",
"public function negate()\n {\n return $this->copy(null, null, !$this->isNegative());\n }",
"public function getMissing() {\n\t\t\treturn $this->missing;\n\t\t}",
"public function getUndefinedContent()\n {\n return $this->undefinedContent;\n }",
"public function getIgnoreQuestionValidation()\n {\n return $this->ignoreQuestionValidation;\n }",
"public function getRaw()\r\n {\r\n if ( isset( $this->_raw ) )\r\n {\r\n return $this->_raw;\r\n }\r\n \r\n return false;\r\n }",
"public function nonPossessiveNouns()\n {\n return [\n ['Item'],\n ['1st Item'],\n ];\n }",
"public function getGiorniNonLavorativi() {\r\n $giorniNonLavorativi = Array();\r\n foreach ($this->getArrayWorkingPlanClinica()as $key => $value) {\r\n if ($value === NULL) {\r\n $giorniNonLavorativi[] = $key;\r\n }\r\n }\r\n return $giorniNonLavorativi;\r\n }",
"function dry() {\n\t\treturn !$this->item;\n\t}",
"public function getInverted() {\r\n return $this->inverted;\r\n }",
"public function Filter_Not() {\r\n\t\treturn array(\r\n\t\t\t'where' => '0'\r\n\t\t);\r\n\t}",
"public function getHidden() {\n\t\treturn $this->hidden;\n\t}",
"public function getHidden() {\n\t\treturn $this->hidden;\n\t}",
"public function renderUnrepresentable()\r\n\t{\r\n\t\treturn $this->renderError(new XenForo_Phrase('requested_page_is_unrepresentable_in_html'));\r\n\t}",
"public function getNonPartneredLtlData()\n {\n return $this->_fields['NonPartneredLtlData']['FieldValue'];\n }",
"protected function getHidden()\n {\n return $this->hidden;\n }",
"public function getHidden()\n {\n return $this->hidden;\n }",
"public function getHidden()\n {\n return $this->hidden;\n }",
"public function getHidden()\n {\n return $this->hidden;\n }",
"public function getHidden()\n {\n return $this->hidden;\n }",
"public function getIgnore()\n {\n return $this->ignore;\n }",
"public function getVotosNegativos()\n {\n return $this->getVotos()->where(['positivo' => false]);\n }",
"public function getHiddenFlag() {}",
"public function getNoBlock()\n {\n return $this->noBlock;\n }",
"public function notable()\n {\n return $this->morphTo();\n }",
"public function inNorwegian() : string\n {\n return $this->getTranslationIn('no');\n }",
"public function get_nomPersonnage()\n {\n $this->_nomPersonnage;\n }",
"public function getNoRm()\n {\n return $this->hasOne(TbPasien::className(), ['no_rm' => 'no_rm']);\n }",
"public function getNoCotisant(): ?string {\n return $this->noCotisant;\n }",
"function getSorry()\n {\n $sorry = $this->row['sorry'];\n if (substr($sorry,0,3) != '<p>')\n $sorry = '<p>' . $sorry . \"</p>\\n\";\n return $sorry;\n }",
"public function getUncle();",
"public function isNotNumbered(){\n return $this->type === self::UP || $this->getFreeSeating();\n }"
] | [
"0.713593",
"0.70154023",
"0.69284344",
"0.68762016",
"0.68762016",
"0.67585933",
"0.6708682",
"0.6583878",
"0.65719026",
"0.6499312",
"0.6472972",
"0.6399451",
"0.6399451",
"0.6398196",
"0.63316065",
"0.632114",
"0.6303458",
"0.6248654",
"0.6243233",
"0.62087834",
"0.62012136",
"0.61004514",
"0.60806036",
"0.6046688",
"0.6012032",
"0.60006654",
"0.59490216",
"0.5941964",
"0.5886443",
"0.5878965",
"0.58617985",
"0.5765625",
"0.57558167",
"0.5754272",
"0.5746157",
"0.5743773",
"0.57433885",
"0.573846",
"0.5732655",
"0.5723625",
"0.5711862",
"0.5701797",
"0.5695839",
"0.56925774",
"0.5691141",
"0.5690029",
"0.5672839",
"0.5642481",
"0.56358427",
"0.56136066",
"0.55888796",
"0.5572834",
"0.5564095",
"0.55431104",
"0.5530755",
"0.55214167",
"0.55039865",
"0.5499963",
"0.5483905",
"0.5483706",
"0.5482043",
"0.54664594",
"0.546477",
"0.54582006",
"0.5449796",
"0.5448709",
"0.54474354",
"0.5440314",
"0.54342145",
"0.54340154",
"0.5418805",
"0.54164755",
"0.5415232",
"0.5413919",
"0.5405479",
"0.5399034",
"0.5394476",
"0.53855485",
"0.53843737",
"0.5383603",
"0.5383603",
"0.5383261",
"0.5377367",
"0.5376195",
"0.53726333",
"0.53726333",
"0.53726333",
"0.53726333",
"0.5371356",
"0.5361033",
"0.53560144",
"0.5355446",
"0.5355157",
"0.5353332",
"0.5343167",
"0.5341827",
"0.5341309",
"0.5335546",
"0.5332877",
"0.5325983"
] | 0.8560331 | 0 |
Get the numero attestation. | public function getNumeroAttestation() {
return $this->numeroAttestation;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"public function getAno():int{\n\t\treturn $this->ano;\n\t}",
"public function getNUMEROINT()\r\n {\r\n return $this->NUMERO_INT;\r\n }",
"public function getAnum()\r\n {\r\n return $this->anum;\r\n }",
"public function getNUMERO_INT()\r\n {\r\n return $this->NUMERO_INT;\r\n }",
"public function getIdAttestation()\n {\n return $this->idAttestation;\n }",
"public function getPeriodeAttest() {\n return $this->periodeAttest;\n }",
"public function getAno() {\n return $this->iAno;\n }",
"public function getAno() {\n return $this->iAno;\n }",
"public function getAno()\n {\n return $this->ano;\n }",
"public function getNumber() {}",
"public function getNumerocarte()\n {\n return $this->numerocarte;\n }",
"public function number()\n {\n return $this->number;\n }",
"public function getNumber() : int\n {\n return $this->number;\n }",
"function getNumero() {\n return $this->numero;\n }",
"public function get_number()\n\t{\n\t\treturn $this->number;\n\t}",
"public function getNumagence()\n {\n return $this->numagence;\n }",
"public function num() {\n return $this->num;\n }",
"function getNum()\n {\n return $this->num;\n }",
"public function getNum()\n {\n return $this->num;\n }",
"public function getNum()\n {\n return $this->num;\n }",
"public function getNumero() {\n return $this->numero;\n }",
"public function getNumber();",
"public function getNumero()\n {\n return $this->numero;\n }",
"public function getActif():int\n {\n return $this->actif;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNossoNumero();",
"function getNapetiKlima():int {\n return $this->napetiKlima;\n }",
"public function getNumber() {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->getData(self::NUMBER);\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumIdentification()\n {\n return $this->numIdentification;\n }",
"public function getNotation(): int\n {\n return 5;\n }",
"public function getNum()\n {\n return $this->get(self::_NUM);\n }",
"public function getNumber()\n {\n return $this->_number;\n }",
"public function getNumber()\n {\n return $this->_number;\n }",
"public function getNiveauNoeud(): ?int {\n return $this->niveauNoeud;\n }",
"public function getIndicePeriode(): ?int {\n return $this->indicePeriode;\n }",
"public function getAPELLIDOMATERNO()\r\n {\r\n return $this->APELLIDO_MATERNO;\r\n }",
"public function number(): string\n {\n return $this->getData('Number');\n }",
"public function getInsurace(): int\n {\n return $this->insurace;\n }",
"public function getNumeroAemInitiale() {\n return $this->numeroAemInitiale;\n }",
"public function getAnoInicioIntegracao() {\n return $this->iAnoInicioIntegracao;\n }",
"public function getIndiceAem() {\n return $this->indiceAem;\n }",
"function getIntestat()\n {\n return $this->intestat;\n }",
"public function n() : int\n {\n return $this->n;\n }",
"public function n() : int\n {\n return $this->n;\n }",
"function getNiveau() {\r\n\t\treturn $this->_niveau;\r\n\t}",
"public function getNumero() {\n return $this->sNumero;\n }",
"public function getNumber():?int\n {\n return $this->number;\n }",
"public function getNumber(): int\n {\n return self::ROULETTE[$this->getPosition()];\n }",
"public function getTauxInterets(): int\n {\n return $this->tauxInterets;\n }",
"public function tonnage() {\r\n\t\tif ($this->isStarship()) {\r\n\t\t\treturn $this->techData['tonnage'];\r\n\t\t}\r\n\r\n\t\treturn 0;\r\n\t}",
"public function getNumber() /*: int*/ {\n if ($this->number === null) {\n throw new \\Exception(\"Number is not initialized\");\n }\n return $this->number;\n }",
"public function setNumeroAttestation($numeroAttestation) {\n $this->numeroAttestation = $numeroAttestation;\n return $this;\n }",
"public function setNumeroAttestation($numeroAttestation) {\n $this->numeroAttestation = $numeroAttestation;\n return $this;\n }",
"function getNum_teleco()\n {\n if (!isset($this->snum_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->snum_teleco;\n }",
"public function getNit_empresa(){\n return $this->nit_empresa;\n }",
"public function getAccNo()\n {\n return $this->acc_no;\n }",
"public function getNprcifecha()\n {\n return $this->nprcifecha;\n }",
"public function getBeidouSateliteNum()\n {\n $value = $this->get(self::BEIDOUSATELITENUM);\n return $value === null ? (integer)$value : $value;\n }",
"public function getIndExeDR()\n {\n return $this->valorDRExento > 0 ? 1 : 0;\n }",
"public function get_nim()\n\t{\n\t\treturn $this->nim;\n\t}",
"public function getAccNumber()\n {\n return $this->accNumber;\n }",
"public function getNumeroLigneAnal(): ?int {\n return $this->numeroLigneAnal;\n }",
"public function getAnhoNacimiento() {\n\t\treturn $this->anhoNacimiento;\n\t}",
"public function getTestResultNumber(){\n\t\t$instance = $this->getInstance();\n\t\t$test_result_repository = tx_caretaker_TestResultRepository::getInstance();\n\t\t$resultNumber = $test_result_repository->getResultNumberByNode( $this );\n\t\treturn $resultNumber;\n\t}",
"function getDatosNota_num()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nota_num'));\n $oDatosCampo->setEtiqueta(_(\"nota num\"));\n return $oDatosCampo;\n }",
"function getDatosNota_num()\n {\n $nom_tabla = $this->getNomTabla();\n $oDatosCampo = new core\\DatosCampo(array('nom_tabla' => $nom_tabla, 'nom_camp' => 'nota_num'));\n $oDatosCampo->setEtiqueta(_(\"nota num\"));\n return $oDatosCampo;\n }",
"public function getMitoSequenceNumberAttribute()\n {\n $mitoseqnum = null;\n foreach ($this->dnas as $dna) {\n $mitoseqnum = $dna->mito_sequence_number;\n\n // We will find the first dna record that has a mito sequence number associated with it.\n // Note if there are multiple dna records that have mito sequence numbers, they must all be the same mito seq number.\n // Otherwise it is a data integrity issue.\n // ToDo: Possible Data integrity issue, Probably should throw an exception or prevent that scenario for happening\n if (isset($mitoseqnum)) {\n break;\n }\n }\n return $mitoseqnum;\n }",
"public function getTarif(): int\n {\n return $this->tarif;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNumcompte()\n {\n return $this->numcompte;\n }",
"public function getNUMEROEXT()\r\n {\r\n return $this->NUMERO_EXT;\r\n }",
"public function testSetNumeroAttestation() {\n\n $obj = new AttestationCacm();\n\n $obj->setNumeroAttestation(\"numeroAttestation\");\n $this->assertEquals(\"numeroAttestation\", $obj->getNumeroAttestation());\n }",
"public function get() {\n return $this->number;\n }",
"public function getCoNumInventario()\n\t{\n\t\treturn $this->co_num_inventario;\n\t}",
"public function getArticleNumber()\n {\n return $this->_articleNumber;\n }",
"public function getNumeroNoeud(): ?int {\n return $this->numeroNoeud;\n }",
"public function getTransactionNumber();",
"public function getAtendido() {\n return $this->atendido;\n }",
"public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}",
"public function getOrderNumber();",
"public function getOrderNumber();",
"public function getNumOpe()\n {\n return $this->numOpe;\n }",
"public function getNcomanda()\n {\n return $this->ncomanda;\n }"
] | [
"0.70694256",
"0.70694256",
"0.70440537",
"0.68899566",
"0.67479926",
"0.6712988",
"0.6705838",
"0.66824067",
"0.66637766",
"0.66637766",
"0.65711737",
"0.65208066",
"0.65086573",
"0.64637375",
"0.6457996",
"0.64385617",
"0.64360076",
"0.64172006",
"0.64063877",
"0.6383278",
"0.6379097",
"0.6379097",
"0.6375587",
"0.63671684",
"0.6356614",
"0.6349216",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6331842",
"0.6318757",
"0.6304534",
"0.6292862",
"0.6289508",
"0.6282619",
"0.62270314",
"0.61983347",
"0.6160774",
"0.61601686",
"0.61551446",
"0.61551446",
"0.61129147",
"0.6109381",
"0.6075595",
"0.60730463",
"0.60383606",
"0.60375005",
"0.6028301",
"0.60213596",
"0.6018818",
"0.599429",
"0.599429",
"0.59719473",
"0.5956367",
"0.5948647",
"0.59399694",
"0.5929044",
"0.59016955",
"0.589794",
"0.589334",
"0.589334",
"0.5893278",
"0.588512",
"0.58724517",
"0.58686364",
"0.5865323",
"0.58645976",
"0.5858358",
"0.58402956",
"0.583501",
"0.58323646",
"0.5804083",
"0.5795698",
"0.5795698",
"0.57950634",
"0.5791464",
"0.57858056",
"0.57858056",
"0.57830995",
"0.57730365",
"0.5770054",
"0.57681036",
"0.57613945",
"0.5753785",
"0.57447666",
"0.5742059",
"0.5740302",
"0.57391137",
"0.57391137",
"0.5729395",
"0.5729188"
] | 0.8290196 | 1 |
Get the numero employe. | public function getNumeroEmploye() {
return $this->numeroEmploye;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNumIdccEmployeur() {\n return $this->numIdccEmployeur;\n }",
"public function getNomEmploye() {\n return $this->nomEmploye;\n }",
"public function getNomEmploye() {\n return $this->nomEmploye;\n }",
"public function getPrenomEmploye() {\n return $this->prenomEmploye;\n }",
"public function getNom_employeur()\n {\n return $this->nom_employeur;\n }",
"public function getNumero()\n {\n return $this->numero;\n }",
"public function getNumero() {\n return $this->numero;\n }",
"function getNumero() {\n return $this->numero;\n }",
"public function getNit_empresa(){\n return $this->nit_empresa;\n }",
"public function getNossoNumero();",
"public function getCodeEmploi() {\n return $this->codeEmploi;\n }",
"public function getNumero() {\n return $this->sNumero;\n }",
"public function getNUMEROINT()\r\n {\r\n return $this->NUMERO_INT;\r\n }",
"public function getEmployeeID()\n {\n return $this->employeeID;\n }",
"public function getCodigoEmpresa()\n {\n return $this->codigoEmpresa;\n }",
"public function getExpedienteId() {\n return $this->expedienteId;\n }",
"public function getCodEmpresa()\n {\n return $this->codEmpresa;\n }",
"public function getCodEmpresa()\n {\n return $this->codEmpresa;\n }",
"public function getFkEstudiantesNumeroIdentificacion()\n\t{\n\t\treturn $this->fkEstudiantesNumeroIdentificacion;\n\t}",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getNumberOfEmployees(): ?int;",
"public function getEmpleado() {\r\n return $this->empleado;\r\n }",
"public function getEmployeeId()\n {\n return $this->employee_id;\n }",
"public function getNumerocarte()\n {\n return $this->numerocarte;\n }",
"public static function Numero_Orden()\n {\n // Consulta de la meta\n $consulta = \"SELECT num_orden FROM ordenes ORDER BY id_orden DESC LIMIT 1\";\n\n try {\n // Preparar sentencia\n $comando = Database::getInstance()->getDb()->prepare($consulta);\n // Ejecutar sentencia preparada\n $comando->execute(); \n // Capturar primera fila del resultado\n $row = $comando->fetch(PDO::FETCH_ASSOC);\n return $row; \n\n } catch (PDOException $e) {\n // Aquí puedes clasificar el error dependiendo de la excepción\n // para presentarlo en la respuesta Json\n return -1;\n }\n }",
"public function getOpPrimeNumero()\n {\n\n return $this->op_prime_numero;\n }",
"public function getOehhnbr()\n {\n return $this->oehhnbr;\n }",
"public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }",
"public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"function getNota_num()\n {\n if (!isset($this->inota_num) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->inota_num;\n }",
"public function getIdEspece()\n {\n return $this->idEspece;\n }",
"public function getIdEspece()\n {\n return $this->idEspece;\n }",
"public function getNUMERO_INT()\r\n {\r\n return $this->NUMERO_INT;\r\n }",
"public function getDateNaissanceEmploye() {\n return $this->dateNaissanceEmploye;\n }",
"public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }",
"public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }",
"public function setNumeroEmploye($numeroEmploye) {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }",
"public function getNumeroAemInitiale() {\n return $this->numeroAemInitiale;\n }",
"public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }",
"public function nbEmprunt()\n\t\t{\n\t\treturn $this->lesEmprunts->count();\n\t\t}",
"public function getNumeroLigne() {\n return $this->numeroLigne;\n }",
"public function getNumeroProcesso() {\n return $this->iNumeroProcesso;\n }",
"public function getNumber() : int\n {\n return $this->number;\n }",
"function getNum_teleco()\n {\n if (!isset($this->snum_teleco) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->snum_teleco;\n }",
"public function getIdEmpleado($cedulaEmpl = '') {\n $this->consulta = \"SELECT idEmpleado \n FROM empleado \n WHERE cedula = '$cedulaEmpl'\";\n if ($this->consultarBD() > 0) {\n return $this->registros[0]['idEmpleado'];\n } else {\n return -1;\n }\n }",
"public function getNiveauNoeud(): ?int {\n return $this->niveauNoeud;\n }",
"public function getEmployCompanyId() {\n\t\treturn ($this->employCompanyId);\n\t}",
"public function getNumeroNoeud(): ?int {\n return $this->numeroNoeud;\n }",
"public function getEmpCommune() {\n return $this->empCommune;\n }",
"public function get_number()\n\t{\n\t\treturn $this->number;\n\t}",
"public function getEid() {\n return $this->eid;\n }",
"public function getPersonalNo(): ?int {\n return $this->personalNo;\n }",
"public function getNumLigne() {\n return $this->numLigne;\n }",
"public function getNumEnregistrement(): int\n {\n return $this->numEnregistrement;\n }",
"public function ultimoNumeroFactura(){\n $pdo = Database::connect();\n $sql = \"select max(idfactura) numero from facturas\";\n $consulta = $pdo->prepare($sql);\n $consulta->execute();\n //obtenemos el registro especifico:\n $res=$consulta->fetch(PDO::FETCH_ASSOC);\n $numero=$res['numero'];\n Database::disconnect();\n //retornamos el numero encontrado:\n if(!isset($numero))\n return 0;\n return $numero;\n }",
"public function getNum()\n {\n return $this->num;\n }",
"public function getNum()\n {\n return $this->num;\n }",
"protected function getEgn()\n\t{\n\t\treturn $this->egn;\n\t}",
"public function employees() \r\n\t{\r\n\t\t$query = \"SELECT count(id_radnik) as Zaposlenih FROM \" . $this->table;\r\n\r\n\t\t$stmt = $this->conn->prepare($query);\r\n\t\t$stmt->execute();\r\n\r\n\t\t$row = $stmt->fetch(PDO::FETCH_ASSOC);\r\n\t\t$zaposlenih = $row['Zaposlenih'];\r\n\t\treturn $zaposlenih;\r\n\t}",
"function getNum()\n {\n return $this->num;\n }",
"public function getEIN()\n {\n return $this->eIN;\n }",
"private function obtenerNuevoID()\n\t{\n\t\t$query = $this->db->select('MAX(CPRODUCTOFS) as id')\n\t\t\t->from('MPRODUCTOCLIENTE')\n\t\t\t->get();\n\t\tif (!$query) {\n\t\t\tthrow new Exception('Error al encontrar el Código de producto');\n\t\t}\n\t\treturn intval($query->row()->id) + 1;\n\t}",
"public function getEmployProfileId() {\n\t\treturn ($this->employProfileId);\n\t}",
"public function getNumOpe()\n {\n return $this->numOpe;\n }",
"public function setNumeroEmploye(?string $numeroEmploye): RetraitesEmp {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }",
"public function getCoNumInventario()\n\t{\n\t\treturn $this->co_num_inventario;\n\t}",
"public function getId_empresa()\n {\n return $this->id_empresa;\n }",
"public function getNumber() /*: int*/ {\n if ($this->number === null) {\n throw new \\Exception(\"Number is not initialized\");\n }\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNumber()\n {\n return $this->number;\n }",
"public function getNprcifecha()\n {\n return $this->nprcifecha;\n }",
"public function invoiceNumberGet(){\n\t\t$query = $this->db->get(__TBL_INVOICE_NUMBER);\n\t\tif(sizeof($query->row())>0) {\n\t\t\treturn (int)$query->row()->number;\n\t\t} else return false;\n\t}",
"public function getidEstudiante()\n {\n return $this->id_est;\n }",
"public function getNumber()\n {\n return $this->getData(self::NUMBER);\n }",
"public function getNum()\n {\n return $this->get(self::_NUM);\n }",
"public function getMaxNotaFiscalNumero() {\r\n\r\n $sql = \"SELECT MAX(nflno_numero) + 1 as nflno_numero FROM nota_fiscal WHERE nflserie = 'A'\";\r\n\r\n $result = $this->_fetchAssoc(pg_query($this->_adapter, $sql));\r\n\r\n return $result['nflno_numero']; \r\n }",
"public function getIdNiche()\n {\n return $this->idNiche;\n }",
"public function getArticleNumber()\n {\n return $this->_articleNumber;\n }",
"public function getNumber();",
"public function getEmploye()\n {\n return $this->hasOne(Employe::className(), ['id' => 'employe_id']);\n }",
"public function getNumber() {\n return $this->number;\n }"
] | [
"0.7985699",
"0.7985699",
"0.7985699",
"0.745405",
"0.7206008",
"0.7206008",
"0.7133617",
"0.6981954",
"0.6930623",
"0.6885497",
"0.68719757",
"0.6778244",
"0.67570204",
"0.6600428",
"0.6591863",
"0.6577397",
"0.65516317",
"0.6545947",
"0.6505533",
"0.6491053",
"0.6491053",
"0.6472324",
"0.64595085",
"0.64595085",
"0.6455233",
"0.6455051",
"0.6451338",
"0.6427233",
"0.6382129",
"0.63708645",
"0.6369283",
"0.6350613",
"0.6350613",
"0.63492876",
"0.63492876",
"0.63476163",
"0.63476163",
"0.63429904",
"0.6332571",
"0.63147056",
"0.63147056",
"0.63147056",
"0.62510264",
"0.6230862",
"0.6201835",
"0.6200146",
"0.61937463",
"0.6185927",
"0.61675215",
"0.6163098",
"0.6160775",
"0.6125305",
"0.6114778",
"0.6107619",
"0.6105534",
"0.61010045",
"0.608813",
"0.60866445",
"0.6084834",
"0.60765934",
"0.60700685",
"0.60700685",
"0.6069244",
"0.606617",
"0.6061826",
"0.6052927",
"0.60526085",
"0.604381",
"0.6039191",
"0.60262394",
"0.602151",
"0.6014721",
"0.6003751",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.5999607",
"0.59532726",
"0.5953069",
"0.5947592",
"0.59471565",
"0.5938862",
"0.59377927",
"0.5934181",
"0.5932685",
"0.59277374",
"0.59225",
"0.5917554",
"0.591309",
"0.59089625"
] | 0.8668928 | 2 |
Get the paiement en euro. | public function getPaiementEnEuro() {
return $this->paiementEnEuro;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPeriodeAu() {\n return $this->periodeAu;\n }",
"public function getageEu()\n {\n return $this->age_eu;\n }",
"public function getEstudiante( ){\n\t\treturn $this->estudiante;\n\t}",
"public function getEmenta()\n {\n return $this->ementa;\n }",
"function getEstanteria(){\r\n return $this->estanteria;\r\n }",
"public function getProdEra()\n {\n return $this->prod_era;\n }",
"public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }",
"public function getPesoArea() {\n return $this->_peso; \n }",
"public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }",
"public function getPeriodeDu() {\n return $this->periodeDu;\n }",
"public function getPerPersonEquivFareCurrency()\n {\n return $this->PerPersonEquivFareCurrency;\n }",
"public function getEtunimi(){\n return $this->etunimi;\n }",
"function european_format($amount)\n {\n //return $fmt->formatCurrency($amount, \"EUR\");\n return $amount;\n }",
"public function getDureeAnnuelle() {\n return $this->dureeAnnuelle;\n }",
"public function getPventa()\n {\n return $this->pventa;\n }",
"public function getEnseigne()\n {\n return $this->_enseigne;\n }",
"public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }",
"public function getProviseur()\n {\n return $this->proviseur;\n }",
"public function getASediaPembalut()\n {\n return $this->a_sedia_pembalut;\n }",
"public function getCep()\n\t{\t\n\t\t/**\n\t\t * retorno Cep cliente\n\t\t * @return Cep\n\t\t */\n\t\treturn $this->cep;\n\t}",
"public function getCurrency(): string;",
"public function getCurrency(): string;",
"public function getExpedition()\n {\n if ($this->amount > 50) {\n return 'Spedizione Gratuita';\n }\n return 'Costo di spedizione 5€';\n }",
"public function iva_articulos_formato(){\r\n\t\t\t$importe = $this->iva_articulos();\r\n\t\t\t$formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);\r\n\t\t\treturn $formatter->formatCurrency($importe, 'EUR');\r\n\t\t}",
"public function getEstimacionEntrega()\n {\n \tif ( $this->getIdEshop() ) {\n \t\treturn 'Envío en 96hs Hábiles';\n \t}\n\n $campana = campanaTable::getInstance()->getFirstByIdProducto( $this->getIdProducto() );\n \n\t\tif ( $campana )\n { \n\n \tif ( $campana->getIdCampana() == 2776 ) {\n\t \t\treturn 'FECHA ESTIMADA DE ENVÍO ENTRE EL 06 DE NOVIEMBRE Y EL 14 DE NOVIEMBRE.';\n\t \t}\n\n if ( $campana && $campana->getIdCampana() == 2798 ) {\n return 'FECHA ESTIMADA DE ENVÍO ENTRE EL 13 DE NOVIEMBRE Y EL 21 DE NOVIEMBRE.';\n }\n\n\n if ( $campana->getEstimacionEnvioFecha() )\n {\n return 'Fecha estimada de envío: ' . strftime('%e de %B', strtotime($campana->getEstimacionEnvioFecha()));\n }\n elseif ( $campana->getEstimacionEnvioHoras() )\n {\n return 'Envío en ' . $campana->getEstimacionEnvioHoras() . 'hs Hábiles';\n }\n else\n {\n $timestampFechaFinCampana = strtotime($campana->getFechaFin());\n \n $desde = pmDateHelper::getInstance()->sumarDiasHabiles( 5, 'Y-m-d', $timestampFechaFinCampana);\n $hasta = pmDateHelper::getInstance()->sumarDiasHabiles( 10, 'Y-m-d', $timestampFechaFinCampana );\n \n return 'Fecha estimada de envío entre el ' . strftime('%e de %B', strtotime($desde)) . ' y el ' . strftime('%e de %B', strtotime($hasta)) . '.';\n }\n }\n \n if ( $this->getEsOutlet() )\n {\n $outletData = configuracionTable::getInstance()->getOutlet();\n $outletData = json_decode($outletData->getValor(), true);\n \n if ( $outletData['estimacion_envio_fecha'] )\n {\n return 'Fecha estimada de envío: ' . strftime('%e de %B', strtotime( $outletData['estimacion_envio_fecha'] ));\n }\n elseif ( $outletData['estimacion_envio_horas'] )\n {\n return 'Envío en ' . $outletData['estimacion_envio_horas'] . 'hs Hábiles';\n }\n else\n {\n $timestampFechaFin = strtotime( $outletData['fecha_fin'] );\n \n $desde = pmDateHelper::getInstance()->sumarDiasHabiles( 5, 'Y-m-d', $timestampFechaFin);\n $hasta = pmDateHelper::getInstance()->sumarDiasHabiles( 10, 'Y-m-d', $timestampFechaFin );\n \n return 'Fecha estimada de envío entre el ' . strftime('%e de %B', strtotime($desde)) . ' y el ' . strftime('%e de %B', strtotime($hasta)) . '.';\n } \n }\n \n $timestampFecha = time();\n $desde = pmDateHelper::getInstance()->sumarDiasHabiles( 5, 'Y-m-d', $timestampFecha );\n $hasta = pmDateHelper::getInstance()->sumarDiasHabiles( 10, 'Y-m-d', $timestampFecha );\n \n return 'Fecha estimada de envío entre el ' . strftime('%e de %B', strtotime($desde)) . ' y el ' . strftime('%e de %B', strtotime($hasta)) . '.';\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPrecio()\r\n {\r\n return \"5.00$\";\r\n }",
"public function getUmPrice()\n {\n return isset($this->umPrice) ? $this->umPrice : null;\n }",
"public function getProducte()\n {\n return $this->producte;\n }",
"public function presentPrice(){\n \t\n \treturn money_format('$%i', $this->price / 100);\n }",
"public function getDocumentProductEan()\n {\n return (string) $this->document_product_ean;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function cesta_con_iva_formato(){\r\n\t\t\t$importe = $this->cesta_con_iva();\r\n\t\t\t$formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);\t\t\t\r\n\t\t\treturn $formatter->formatCurrency($importe, 'EUR');\r\n\t\t}",
"public function choMuonTien() {\n\t\treturn $this->getMoney();\n\t}",
"public function getGRUPO_ETNICO()\r\n {\r\n return $this->GRUPO_ETNICO;\r\n }",
"public function getExercice()\n {\n return $this->ligne->getSousCategorie()->getCategorie()->getBudget()->getExercice();\n }",
"public function getAtualizadoEm()\n {\n return $this->atualizadoEm;\n }",
"public function getPrice()\n {\n return '';\n }",
"public function getCurrency();",
"public function getCurrency();",
"public function getValue(bool $inEuro = false);",
"public function getPoliceValide()\n {\n return $this->policeValide;\n }",
"public function getPrice(){ return $this->price_rur; }",
"public function getEcom()\n {\n return $this->ecom;\n }",
"public function getPrice()\n {\n return $this->get(self::_PRICE);\n }",
"public function getPrice(): string;",
"function sale_price() {\n\t\treturn $this->_apptivo_sale_price;\n\t}",
"public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }",
"public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }",
"public function getProductEan(): ?string\n {\n return isset($this->ProductEan) ? $this->ProductEan : null;\n }",
"public function get_price(){\n\t\treturn $this->price;\n\t}",
"public function getKetersediaanAir()\n {\n return $this->ketersediaan_air;\n }",
"public function getAvecPrixVente() {\n return $this->avecPrixVente;\n }",
"protected function getGradeAproveitamento() {\n\n $_SESSION[\"DB_coddepto\"] = $this->oMatricula->getTurma()->getEscola()->getCodigo();\n db_inicio_transacao();\n $oGradeHorario = new GradeAproveitamentoAluno($this->oMatricula);\n $oGradeHorario->setUtfEncode(true);\n $oGradeRetorno = $oGradeHorario->getGradeAproveitamento();\n db_fim_transacao();\n return $oGradeRetorno;\n }",
"public function cesta_sin_iva_formato(){\r\n\t\t\t$importe = $this->cesta_sin_iva();\r\n\t\t\t$formatter = new NumberFormatter('de_DE', NumberFormatter::CURRENCY);\r\n\t\t\treturn $formatter->formatCurrency($importe, 'EUR');\r\n\t\t}",
"public function getIteneraryEquivFareCurrency()\n {\n return $this->IteneraryEquivFareCurrency;\n }",
"public function getPrix_unitaire()\n {\n return $this->prix_unitaire;\n }",
"public function getDeparture(): string;",
"public static function euro($value)\n {\n if (! is_numeric($value)) {\n throw new Exception('[fieldRendererHelper::euro] The inserted value is not numeric!');\n }\n\n return '€ '.number_format($value, 2, ',', '.');\n }",
"public function getAdresse_employeur()\n {\n return $this->adresse_employeur;\n }",
"public function getChapeau();",
"public function getProvincia()\n {\n return $this->provincia;\n }",
"public function getProvincia()\n {\n return $this->provincia;\n }",
"public function getValorInventario()\n {\n return $this->valorInventario;\n }",
"public function getAmountArticle(){\n return $this->amountArticle;\n }",
"public function getProvincia() {\n\t\treturn $this -> provincia;\n\t}",
"public function getPrecioVenta()\n\t{\n\t\treturn $this->precio_venta;\n\t}",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getPrecio()\n {\n return $this->precio;\n }",
"public function getCurrency(){\n return $this->currency;\n }",
"public function getPriceOverrideDeliveryReturn()\n {\n $value = $this->scopeConfig->getValue(self::XML_PATH_PRICE_OVERRIDE_DELIVERY_RETURN, ScopeInterface::SCOPE_WEBSITES);\n if (!strlen($value)) {\n return null;\n }\n\n return $this->localeFormat->getNumber($value);\n }",
"public function getPartitaIVAClinica() {\r\n return $this->_partitaIVA;\r\n }",
"public function getMtCpEuroOuFranc() {\n return $this->mtCpEuroOuFranc;\n }",
"public function getAnnee(){\r\n return $this->annee;\r\n }",
"public function getProvincia() {\n return $this->provincia;\n }",
"protected function getCertificacionEnergetica() {\n\t\tif (!empty($this->item['ec'])) {\n\t\t\treturn strtolower($this->item['ec']);\n\t\t}\n\t\treturn 'no disponible';\n\t}",
"public function getPa()\n {\n return $this->pa;\n }",
"public function getPa()\n {\n return $this->pa;\n }",
"public function getLieu(): string\r\n {\r\n return $this->Lieu;\r\n }",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getEps_nombre(){\n return $this->eps_nombre;\n }",
"public function getPrice()\n {\n return '£' . number_format($this->price, 2);\n }",
"static function getPrice($procent , $price){\n return $price - ( $price / 100 * $procent);\n }",
"public function getCedente() {\n return $this->oCedente;\n }",
"public function getMontacargasE()\n {\n\n return $this->montacargas_e;\n }",
"public function getOffer_price()\n {\n return $this->offer_price;\n }",
"public function info_niveau()\r\n\t{\r\n\t\tif ($this->niveau == \"LP\")\t\t\r\n\t\t\treturn $this->niveau . \":\" . $this->groupe;\r\n\t\t\r\n\t\telse\r\n\t\t\treturn $this->niveau;\r\n\t}",
"public function getCodigoEstudiante() {\n return $this->codigoEstudiante;\n }",
"public function getCep() {\n return $this->sCep;\n }",
"public function getValor(){\n return $this->_data['valor'];\n }",
"public function gerencial_valorInventario(){\n\t\t\n\t\t$resultado = 0;\n\t\t\n\t\t$query = \"SELECT cantidad, idProducto\n\t\t\t\t\t\tFROM\n\t\t\t\t\t\t tb_productos_sucursal\";\n\t\t\n\t\t\n\t\t$conexion = parent::conexionCliente();\n\t\t\n \tif($res = $conexion->query($query)){\n \n /* obtener un array asociativo */\n while ($filas = $res->fetch_assoc()) {\n \t\n\t\t\t\t$idproducto = $filas['idProducto'];\n\t\t\t\t$cantidad\t= $filas['cantidad']; \n\t\t\t\t\n\t\t\t\t$query2 = \"SELECT precio \n\t\t\t\t\t\t\tFROM tb_productos WHERE idProducto = '$idproducto'\";\n\t\t\t\t\t\t\t\n\t\t\t\t\t\tif($res2 = $conexion->query($query2)){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t while ($filas2 = $res2->fetch_assoc()) {\n\t\t\t\t\t\t\t\t \t\n\t\t\t\t\t\t\t\t\t$precio = str_replace('.', '',$filas2['precio']);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t$subtotal = $precio * $cantidad;\n\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t $resultado = $resultado + $subtotal;\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t }\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\n } \n \n }//fin if\n\t\t\n return $resultado;\t\n\t\t\n\t}"
] | [
"0.7227349",
"0.6815541",
"0.6741217",
"0.66662127",
"0.64591545",
"0.64284605",
"0.63840413",
"0.63298404",
"0.63055",
"0.6267195",
"0.625919",
"0.6250906",
"0.6235365",
"0.62303966",
"0.6224446",
"0.6203171",
"0.62030566",
"0.6171438",
"0.61695015",
"0.61690456",
"0.6160544",
"0.6160544",
"0.61573744",
"0.61354595",
"0.61214024",
"0.61140865",
"0.61140865",
"0.61140865",
"0.60815716",
"0.60798836",
"0.6061759",
"0.60387987",
"0.6038221",
"0.6029729",
"0.6029053",
"0.6015034",
"0.6001339",
"0.59978974",
"0.5991445",
"0.59781516",
"0.5969083",
"0.5969083",
"0.5960331",
"0.5958499",
"0.59546965",
"0.5954228",
"0.5942027",
"0.5930392",
"0.59274346",
"0.5911792",
"0.5911792",
"0.5911792",
"0.58963674",
"0.5892348",
"0.58876026",
"0.58868074",
"0.5886113",
"0.58851135",
"0.5884042",
"0.587052",
"0.5870136",
"0.5855229",
"0.5848867",
"0.5844795",
"0.5844795",
"0.5836836",
"0.58257574",
"0.58247954",
"0.58219546",
"0.58178216",
"0.58178216",
"0.58178216",
"0.58027864",
"0.58027864",
"0.58027864",
"0.58027864",
"0.58027864",
"0.5788906",
"0.57851505",
"0.57841504",
"0.57776445",
"0.5763563",
"0.57570446",
"0.5754084",
"0.57517713",
"0.57517713",
"0.57393986",
"0.5733434",
"0.5733434",
"0.5729122",
"0.57259023",
"0.57227045",
"0.5716146",
"0.57063866",
"0.5705286",
"0.57044256",
"0.5693718",
"0.56924146",
"0.56890255",
"0.5688793"
] | 0.82457185 | 0 |
Get the periode au. | public function getPeriodeAu() {
return $this->periodeAu;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }",
"public function getPeriodeAttest() {\n return $this->periodeAttest;\n }",
"public function getPeriodeDu() {\n return $this->periodeDu;\n }",
"public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }",
"public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }",
"public function getAPELLIDOPATERNO()\r\n {\r\n return $this->APELLIDO_PATERNO;\r\n }",
"public function getPorAtender() {\n return $this->por_atender;\n }",
"public function getApodo()\n {\n return $this->apodo;\n }",
"public function getAPELLIDO_PATERNO()\r\n {\r\n return $this->APELLIDO_PATERNO;\r\n }",
"public function getPventa()\n {\n return $this->pventa;\n }",
"public function getAPELLIDOPATERNOC()\r\n {\r\n return $this->APELLIDOPATERNOC;\r\n }",
"public function getAnoPortaria() {\n return $this->iAnoPortaria;\n }",
"public function get_pa(){ return $this->_pa;}",
"public function getAnulacao(){\n return $this->oAnulacao;\n }",
"function getPerfil() {\n return $this->perfil;\n }",
"public function getPanier(){\n\t\treturn $this->panier;\n\t}",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPa()\n {\n return $this->pa;\n }",
"public function getPa()\n {\n return $this->pa;\n }",
"public function getDireccionOrigen()\n {\n return $this->direccionOrigen;\n }",
"public function getDESCUENTO_PROVEEDOR(){\n return $this->DESCUENTO_PROVEEDOR;\n }",
"function getIdelemento(){\n\t\treturn $this->idelemento;\n\t}",
"public function getEmenta()\n {\n return $this->ementa;\n }",
"public function getIndicePeriode(): ?int {\n return $this->indicePeriode;\n }",
"public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }",
"public function getApprentiEtam() {\n return $this->apprentiEtam;\n }",
"public function getAtocom()\n {\n return $this->atocom;\n }",
"public function getIdempresa(){\n return $this->idempresa;\n }",
"function getNiveau() {\r\n\t\treturn $this->_niveau;\r\n\t}",
"function pa() {\n\t\t\t\t$edit_pid = (int)UTIL::get_post('edit_pid');\n\t\t\t\t//-- haben wir eine edit-id, koennen wir direkt zur auswahl gehen\n\t\t\t\tif ($edit_pid) return $this->pa_type();\n\t\t\t\t//-- seitenbaum auslesen\n\t\t\t\t$root_id = (int)$this->root_id;\n\t\t\t\t$set = new NestedSet();\n\t\t\t\t$set->set_table_name($this->mod_tbl);\n\t\t\t\t$nodes = $set->getNodes($root_id, '*', $this->DB->table_restriction($this->mod_tbl));\n\t\t\t\t$this->set_var('page_nodes', $nodes);\n\t\t\t\t$this->set_var('title', e::o('v_title_1'));\n\t\t\t\t$this->OPC->generate_view($this->tpl_dir . 'pa.php');\n\t\t\t\treturn;\n\t\t\t}",
"function getPagetop () {\n\t\t$this->_goTop();\n\t\t$this->_goFin();\n\t\treturn $this->_roof[\"dtd\"].implode(\"\\n\",$this->_roof[\"meta\"]).\"\\n\".implode(\"\\n\",$this->_roof[\"cuerpo\"]).$this->_roof[\"fin\"];\n\t}",
"public function getPlaca() {\n return $this->oPlaca;\n }",
"public function getComunaOrigen()\n {\n return $this->comunaOrigen;\n }",
"public function getPesoArea() {\n return $this->_peso; \n }",
"protected function getAsso()\r\n {\r\n return $this->get('asso_am.asso_selector')->getAsso();\r\n }",
"public function getIzinPaud()\n {\n return $this->izin_paud;\n }",
"public function getPoznamka()\n {\n return $this->poznamka;\n }",
"public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }",
"private function get_pmode()\n\t{\n\t\treturn ($this->is_user_order_doctor() ? 'edit' : 'calc');\n\t}",
"public function getAno()\n {\n return $this->ano;\n }",
"public function getAtivo()\n\t{\n\t\treturn $this->ativo;\n\t}",
"public function getFkOrcamentoPaoPpaAcao()\n {\n return $this->fkOrcamentoPaoPpaAcao;\n }",
"public function getAtivo()\n {\n return $this->ativo;\n }",
"public function getAtivo()\n {\n return $this->ativo;\n }",
"public function getAtivo()\n {\n return $this->ativo;\n }",
"public function getEstudiante( ){\n\t\treturn $this->estudiante;\n\t}",
"public function getPatente()\n {\n return $this->patente;\n }",
"public function getAttaque()\n {\n return $this->_degat;\n }",
"public function getAuteur()\n {\n return $this->auteur;\n }",
"public function getAuteur()\n {\n return $this->auteur;\n }",
"public function getAuteur()\n {\n return $this->auteur;\n }",
"function getMainNode(){\n\t\treturn $this->nodeppal;\n\t}",
"public function getDureeAnnuelle() {\n return $this->dureeAnnuelle;\n }",
"function getOrden()\n {\n if (!isset($this->iorden) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iorden;\n }",
"public function getPortada()\n {\n return $this->portada;\n }",
"function getEpoca()\n {\n if (!isset($this->iepoca) && !$this->bLoaded) {\n $this->DBCarregar();\n }\n return $this->iepoca;\n }",
"public function getInformacionOtro()\n {\n return $this->informacion_otro;\n }",
"public function getPanose() {}",
"public function getPico();",
"public function getAPrix()\n {\n return $this->prix;\n }",
"public function get_apelido()\n {\n // loads the associated object\n if (empty($this->apelido))\n $this->apelido = new Apelido($this->apelido_id);\n \n // returns the associated object\n return $this->apelido;\n }",
"function get_owner()\n {\n return $this->get_default_property(self :: PROPERTY_OWNER);\n }",
"public function getPontoReferencia() {\n return $this->sPontoReferencia;\n }",
"public function getPraticien()\n {\n return $this->praticien;\n }",
"public function getDiretorio()\n {\n return $this->diretorio;\n }",
"public static function ambiente(){\n return $_SESSION['baselogin'] == 'simec_desenvolvimento' ? self::desenvolvimento : self::producao;\n }",
"public function getADelai()\n {\n return $this->delai;\n }",
"public function getASediaPembalut()\n {\n return $this->a_sedia_pembalut;\n }",
"public function getPer()\n {\n return $this->hasOne(Permissions::className(), ['id' => 'per_id']);\n }",
"public function getAno() {\n return $this->iAno;\n }",
"public function getAno() {\n return $this->iAno;\n }",
"public function getOrden() {\n return $this->orden;\n }",
"public function getOrden() {\n return $this->orden;\n }",
"public function papier(){\n\t\treturn $this->dataInfos['XMLPM']['PAPIER']['TYPE'];\n\t}",
"public function get_PDI_ID() {\n return $this->pdi_id;\n }",
"function get_aut_idautor(){return $this->aut_idautor;}",
"protected function getGradeAproveitamento() {\n\n $_SESSION[\"DB_coddepto\"] = $this->oMatricula->getTurma()->getEscola()->getCodigo();\n db_inicio_transacao();\n $oGradeHorario = new GradeAproveitamentoAluno($this->oMatricula);\n $oGradeHorario->setUtfEncode(true);\n $oGradeRetorno = $oGradeHorario->getGradeAproveitamento();\n db_fim_transacao();\n return $oGradeRetorno;\n }",
"public function getAno():int{\n\t\treturn $this->ano;\n\t}",
"public function getPer()\n {\n return $this->get(self::_PER);\n }",
"public function getArabigo(){\n\t\treturn $this->arabigo;\n\t}",
"public function getAPELLIDOMATERNOC()\r\n {\r\n return $this->APELLIDOMATERNOC;\r\n }",
"public function getDpto()\n {\n return $this->dpto;\n }",
"public function getOwner()\n {\n return $this->get(self::_OWNER);\n }",
"public function getDireccion_empresa(){\n return $this->direccion_empresa;\n }",
"public function getPaiementEnEuro() {\n return $this->paiementEnEuro;\n }",
"public function getChapeau();",
"public function getAPELLIDOMATERNO()\r\n {\r\n return $this->APELLIDO_MATERNO;\r\n }",
"function getOGRole();",
"function getOGRole();",
"public function getParcela()\n {\n return $this->parcela;\n }",
"public function getProyectorActivo( ) {\n return $this->proyector_activo;\n\n }",
"public function getAtendido() {\n return $this->atendido;\n }",
"public function getCoPerfil()\n\t{\n\t\treturn $this->co_perfil;\n\t}",
"public function getProcedimento () {\n return $this->oProcedimento; \n }",
"public function getLargoChapaPiso()\r\n\t{\r\n\t\treturn $this->apoyoTapas;\r\n\t}",
"public function getPropietario()\n {\n return $this->hasOne(Usuarios::className(), ['id' => 'propietario_id'])->inverseOf('copias');\n }",
"public function get_tipo_pessoa()\n {\n // loads the associated object\n if (empty($this->tipo_pessoa))\n $this->tipo_pessoa = new TipoPessoa($this->tipo_pessoa_id);\n \n // returns the associated object\n return $this->tipo_pessoa;\n }",
"public function getPrenomAdmin() {\n\t\treturn $this->prenom_admin;\n\t}"
] | [
"0.66992366",
"0.6658607",
"0.66465604",
"0.6564719",
"0.6554739",
"0.6524196",
"0.64446896",
"0.62972003",
"0.6227593",
"0.61637557",
"0.6120171",
"0.6086346",
"0.6065454",
"0.6022141",
"0.59956634",
"0.5960413",
"0.5953593",
"0.5953593",
"0.5953593",
"0.59309405",
"0.59309405",
"0.5919752",
"0.5895455",
"0.58935326",
"0.5878989",
"0.5857063",
"0.58520794",
"0.58302003",
"0.5806309",
"0.58018476",
"0.57947755",
"0.57797587",
"0.57641584",
"0.5757",
"0.5754942",
"0.57499427",
"0.57478946",
"0.5745775",
"0.5743585",
"0.57142854",
"0.5710803",
"0.5695454",
"0.56877065",
"0.56682104",
"0.5656763",
"0.5656763",
"0.5656763",
"0.5645379",
"0.5640258",
"0.56284165",
"0.56122726",
"0.56122726",
"0.56122726",
"0.5611628",
"0.5594374",
"0.5584189",
"0.55839413",
"0.5560699",
"0.55599976",
"0.55579966",
"0.55528706",
"0.55514055",
"0.55486816",
"0.5545605",
"0.5544167",
"0.5534385",
"0.55297256",
"0.5529656",
"0.5527475",
"0.55219424",
"0.55204475",
"0.55148613",
"0.55148613",
"0.5513231",
"0.5513231",
"0.5509394",
"0.5505368",
"0.5501198",
"0.54835653",
"0.5478158",
"0.5475673",
"0.5468409",
"0.54635805",
"0.5454479",
"0.5453836",
"0.5450226",
"0.5449212",
"0.54485095",
"0.5438275",
"0.54375076",
"0.54375076",
"0.54351366",
"0.5434522",
"0.54260457",
"0.5423868",
"0.5420636",
"0.54186594",
"0.54142934",
"0.5413033",
"0.54103315"
] | 0.7658468 | 0 |
Get the periode du. | public function getPeriodeDu() {
return $this->periodeDu;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getDpto()\n {\n return $this->dpto;\n }",
"public function getPDif()\n {\n return $this->pDif;\n }",
"public function getPiD() {\n\t\treturn $this->piD;\n\t}",
"public function getDod();",
"public function getD()\n {\n return $this->D;\n }",
"public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }",
"public function getDipartimento() {\n return $this->dipartimento;\n }",
"public function getIdDeuda()\n {\n return $this->id_deuda;\n }",
"public function get_PDI_ID() {\n return $this->pdi_id;\n }",
"public function getDeId()\n {\n return $this->de_id;\n }",
"public function getProdutoCdProduto()\n {\n return $this->produto_cd_produto;\n }",
"public function getConsecutivoPadrePD( ){\n\t\t \treturn $this->consecutivoPadrePD;\n\t\t }",
"public function getDn();",
"public function getCdUnidade()\n {\n return $this->cd_unidade;\n }",
"public function getCdUnidade()\n {\n return $this->cd_unidade;\n }",
"public function getCdUnidade()\n {\n return $this->cd_unidade;\n }",
"public function getPeriodeAu() {\n return $this->periodeAu;\n }",
"public function getCdProduto()\n {\n return $this->Cd_produto;\n }",
"public function getDepartement()\n {\n return $this->departement;\n }",
"public function getPer()\n {\n return $this->get(self::_PER);\n }",
"public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }",
"public function getCdProduto()\n {\n return $this->cd_produto;\n }",
"public function getDDI()\n {\n return $this->ddi;\n }",
"public function getPerDecUlt() {\n return $this->perDecUlt;\n }",
"public function getD() {}",
"private function getDeptNum(){\r\n\t\treturn $this->DeptNum;\r\n\t}",
"public function getDobd() {\n\t\treturn $this->container['dobd'];\n\t}",
"public function getPeriodeAttest() {\n return $this->periodeAttest;\n }",
"public function getIndicePeriode(): ?int {\n return $this->indicePeriode;\n }",
"public function get_department() \n {\n return $this->department;\n }",
"public function getPanier(){\n\t\treturn $this->panier;\n\t}",
"public function getDps()\n {\n return $this->get(self::_DPS);\n }",
"public function getDps()\n {\n return $this->get(self::_DPS);\n }",
"public function getDps()\n {\n return $this->get(self::_DPS);\n }",
"public function getDni()\n {\n return $this->_dni;\n }",
"public function getDetalle()\n {\n return $this->detalle;\n }",
"public function getDni()\n\t{\n\t\treturn $this->dni;\n\t}",
"public function getDn()\n {\n return $this->dn;\n }",
"public function getDepa()\n {\n return $this->hasOne(\\common\\models\\masters\\Departamentos::className(), ['id' => 'depa_id']);\n }",
"public function getDetalle(){\n\t\treturn $this->detalle;\n\t}",
"public function getDaemonСode()\n {\n return array_key_exists('daemonСode', $this->data) ? $this->data['daemonСode'] : null;\n }",
"public function get_peducator_id() {\n\t\treturn $this->peducator_id;\n\t}",
"private static function getPDOLB() {\n switch (PDOLB_CONFIG::$queryMode) {\n case self::MASTER_SLAVE:\n return self::getMasterSlave();\n case self::MASTER:\n return self::getMaster();\n case self::SLAVE:\n return self::getSlave();\n }\n }",
"public function getDni() {\r\n return $this->dni;\r\n }",
"public function getIdPanier()\n {\n return $this->idPanier;\n }",
"public function getDiaNacimiento() {\n\t\treturn $this->diaNacimiento;\n\t}",
"public function getDni()\n {\n return $this->dni;\n }",
"public function getIdDetalleOrden()\n {\n return $this->idDetalleOrden;\n }",
"public function getCdUnidadeNegocio()\n {\n return $this->cd_unidade_negocio;\n }",
"public function getDESCUENTO_PROVEEDOR(){\n return $this->DESCUENTO_PROVEEDOR;\n }",
"public function getPerDec() {\n return $this->perDec;\n }",
"public function getCdDesconto()\n {\n return $this->cd_desconto;\n }",
"public function getUnidadeNegocioCdUnidade()\n {\n return $this->unidade_negocio_cd_unidade;\n }",
"public function getDni() {\n\t\treturn $this->dni;\n\t}",
"public function get_dossier() \n\t{\n\t\treturn $this->_dossier;\n\t}",
"public function getDiretorio()\n {\n return $this->diretorio;\n }",
"public function getNbDuree()\n {\n return $this->nbDuree;\n }",
"public function getNom_dep()\n {\n return $this->nom_dep;\n }",
"public function getDepartment(){\r\n\t return $this->_department;\r\n\t}",
"function getPerfil() {\n return $this->perfil;\n }",
"public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }",
"public function getDIRECCIONC()\r\n {\r\n return $this->DIRECCIONC;\r\n }",
"public function getValorDiaria()\n {\n return $this->valorDiaria;\n }",
"public function getDePara() {\n return $this->dePara;\n }",
"public function getMain_depart_id()\n {\n return $this->main_depart_id;\n }",
"private function carrega_direita() {\n if ($this->distribuidor->di_direita > 0) {\n $pontos_direita = $this->ci->db->query(\"\n\t\t\t SELECT SUM(co_total_pontos) as pontos FROM `distribuidor_ligacao` \n\t\t\t\t JOIN distribuidores ON di_id = `li_id_distribuidor`\n\t\t\t\t JOIN compras ON di_id = `co_id_distribuidor`\n\t\t\t\t WHERE `li_no` = \" . $this->distribuidor->di_direita . \"\n\t\t\t\t AND co_pago = 1\n\t\t\t\")->row();\n\n $this->pontos_direita = (int) $pontos_direita->pontos;\n } else {\n $this->pontos_direita = 0;\n }\n }",
"public function getCargoDirectivo()\n\t{\n\t\treturn $this->cargoDirectivo;\n\t}",
"public function getDepa()\n {\n return $this->hasOne(Departamentos::className(), ['id' => 'depa_id']);\n }",
"public function getDoi()\n {\n return $this->doi;\n }",
"public function getDiretorio() {\n return $this->sDiretorio;\n }",
"public function getPorAtender() {\n return $this->por_atender;\n }",
"public function getDegree() {\n require_once(\"Degree.php\");\n return new Degree($this->fenixEdu, $this->fenixEdu->getDegree($this->data->degree->id));\n }",
"public function getTipoPlanDesarrollo( ){\n\t\t \treturn $this->tipoPlanDesarrollo;\n\t\t }",
"public function getDireccion() {\n\t\treturn $this->direccion;\n\t}",
"public function getDesconto() {\n return $this->lDesconto;\n }",
"public function getDepartment()\n {\n return $this->department;\n }",
"public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }",
"public function getTiD() {\n\t\treturn $this->tiD;\n\t}",
"public function getDireccionOrigen()\n {\n return $this->direccionOrigen;\n }",
"public function getDureeAnnuelle() {\n return $this->dureeAnnuelle;\n }",
"public function getDiretor() {\n\t return $this->Diretor;\n\t}",
"public function getPermanency(){\r\n\t\treturn $this->permanency;\r\n\t}",
"public function getIdTipoDonacion(){\n return $this->idTipoDonacion;\n }",
"public function getdireccion()\r\n {\r\n return $this->direccion;\r\n }",
"public function getTypeDomicilePetSitter()\n {\n return $this->typeDomicilePetSitter;\n }",
"public function getPuntajeIndicador( ){\n\t\t\treturn $this->puntajeIndicador;\n\t\t}",
"public function getTipoDonacion(){\n return $this->TipoDonacion;\n }",
"public function getDominio()\n {\n return $this->dominio;\n }",
"public function getTypeDdl(){\n return $this->_typeDdl;\n }",
"public function getDepartmentDirectorDiscountFactor()\n {\n return isset($this->DepartmentDirectorDiscountFactor) ? $this->DepartmentDirectorDiscountFactor : null;\n }",
"public function getDeterminarMetodologiaCalculo()\r\n\t\t{\r\n\t\t\t// Se refiere al parametro \"base-calculo\" de la entidad \"tipos-propagandas\".\r\n\t\t\t$idMetodo = 0;\r\n\r\n\t\t\t$tipo = self::getDatosPropaganda()->tipoPropaganda;\r\n\t\t\tif ( isset($tipo->base_calculo) ) {\r\n\t\t\t\t$idMetodo = (int)$tipo->base_calculo;\r\n\t\t\t}\r\n\t\t\treturn $idMetodo;\r\n\t\t}",
"public function getId(){\n\t\t\treturn $this->idDenuncia;\n\t\t}",
"public function getDpr() : float\n\t{\n\t\treturn !is_numeric($this->dpr) || ($this->dpr < 0 || $this->dpr > 8) ? 1.0 : (float) $this->dpr;\n\t}",
"public function getDureeVisite() {\n return $this->dureeVisite;\n }",
"function getPagetop () {\n\t\t$this->_goTop();\n\t\t$this->_goFin();\n\t\treturn $this->_roof[\"dtd\"].implode(\"\\n\",$this->_roof[\"meta\"]).\"\\n\".implode(\"\\n\",$this->_roof[\"cuerpo\"]).$this->_roof[\"fin\"];\n\t}",
"public function getPencatatanDdtk()\n {\n return $this->pencatatan_ddtk;\n }",
"public function getDegAttribute(): int\n {\n return $this->attributes['deg'];\n }",
"public function getDepartamento()\n {\n return $this->departamento;\n }",
"public function getDepartamento()\n {\n return $this->departamento;\n }",
"public function getDernierNumeroDemandeur()\r\n\t{\r\n\t\t$req = \"select max(num_recu) from demandeurs\";\r\n\t\t$res = PdoFredi::$monPdo->query($req);\r\n\t\tif($res->rowCount() != 0)\r\n\t\t\t$num = $res->fetchColumn();\r\n\t\telse\r\n\t\t\t$num = 0;\r\n\t\treturn $num;\r\n\t}"
] | [
"0.7177669",
"0.6663902",
"0.6643879",
"0.6570871",
"0.65694225",
"0.6430316",
"0.6358724",
"0.63214666",
"0.62310416",
"0.62294626",
"0.6164113",
"0.61403644",
"0.60642564",
"0.6056466",
"0.6056466",
"0.6056466",
"0.60547435",
"0.6024933",
"0.60013753",
"0.5990319",
"0.5954246",
"0.59498006",
"0.5941425",
"0.5929686",
"0.5920207",
"0.58987296",
"0.58900607",
"0.58475137",
"0.582858",
"0.58089715",
"0.5762611",
"0.57572806",
"0.57571316",
"0.57571316",
"0.57551265",
"0.5722824",
"0.57158345",
"0.570541",
"0.5703323",
"0.56991243",
"0.56933475",
"0.56864315",
"0.5685417",
"0.56733507",
"0.5653867",
"0.56498027",
"0.5646507",
"0.5643416",
"0.56319666",
"0.56097543",
"0.5609007",
"0.56089795",
"0.5587436",
"0.5587191",
"0.55838317",
"0.55684394",
"0.55615264",
"0.55542755",
"0.5539852",
"0.55254704",
"0.55226976",
"0.5520428",
"0.55160403",
"0.5502469",
"0.54998565",
"0.5493227",
"0.5474998",
"0.54740703",
"0.546283",
"0.5459689",
"0.5448045",
"0.54464126",
"0.5444423",
"0.5434508",
"0.5422612",
"0.5419919",
"0.5409332",
"0.54033995",
"0.53977424",
"0.5397349",
"0.5393017",
"0.53911924",
"0.53868765",
"0.53866494",
"0.5386068",
"0.53849256",
"0.53791916",
"0.53711367",
"0.53619015",
"0.5357619",
"0.5351951",
"0.5339768",
"0.533661",
"0.5335566",
"0.5334148",
"0.5333843",
"0.53330594",
"0.53217095",
"0.53217095",
"0.53086054"
] | 0.8072781 | 0 |
Get the periode subr au. | public function getPeriodeSubrAu() {
return $this->periodeSubrAu;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }",
"public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }",
"public function getPeriodeAu() {\n return $this->periodeAu;\n }",
"public function getSub()\n {\n return $this->sub;\n }",
"public function getPorAtender() {\n return $this->por_atender;\n }",
"public function getPeriodeDu() {\n return $this->periodeDu;\n }",
"function getMainNode(){\n\t\treturn $this->nodeppal;\n\t}",
"public function getPhadsubid()\n {\n return $this->phadsubid;\n }",
"public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }",
"public function getDeptsub()\n\t\t{\n\t\t\treturn $this->hasOne(Deptsub::className(), ['DEP_SUB_ID' => 'DEP_SUB_ID']);\n\t\t}",
"public function get_superficie(){ return $this->_superficie;}",
"function getRubrique() {\n\t\t$faux_array = array_values($this->getParents());\n\t\t$rubrique = $faux_array[0];\n\t\tif ($rubrique instanceof Rubrique) {\n\t\t\treturn $rubrique;\n\t\t} else {\n\t\t\tdie(\"Le parent de l'article n'est pas une Rubrique !\");\n\t\t}\n\t}",
"public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }",
"public function getSubserial()\n\t{\n\n\t\treturn $this->subserial;\n\t}",
"public function getPhadsubidseq()\n {\n return $this->phadsubidseq;\n }",
"public function getDESCUENTO_PROVEEDOR(){\n return $this->DESCUENTO_PROVEEDOR;\n }",
"public function get_subpage() {\n\n\t\tif ( null === $this->subpage ) {\n\t\t\t$this->subpage = isset( $_GET['sub'] ) ? esc_attr( $_GET['sub'] ) : $this->get_initial_page();\n\t\t}\n\n\t\treturn $this->subpage;\n\t}",
"public function getPraticien()\n {\n return $this->praticien;\n }",
"public function getPanier(){\n\t\treturn $this->panier;\n\t}",
"public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }",
"public function getPChild()\n {\n return $this->p_child;\n }",
"public function get_sublink($id){\t\n\t\t$sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['etiqueta_sub'];\n\t}",
"public function get_sublink($id){\n $sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['etiqueta_sub'];\n }",
"public function getOrganismeRetraite() {\n return $this->organismeRetraite;\n }",
"function pa() {\n\t\t\t\t$edit_pid = (int)UTIL::get_post('edit_pid');\n\t\t\t\t//-- haben wir eine edit-id, koennen wir direkt zur auswahl gehen\n\t\t\t\tif ($edit_pid) return $this->pa_type();\n\t\t\t\t//-- seitenbaum auslesen\n\t\t\t\t$root_id = (int)$this->root_id;\n\t\t\t\t$set = new NestedSet();\n\t\t\t\t$set->set_table_name($this->mod_tbl);\n\t\t\t\t$nodes = $set->getNodes($root_id, '*', $this->DB->table_restriction($this->mod_tbl));\n\t\t\t\t$this->set_var('page_nodes', $nodes);\n\t\t\t\t$this->set_var('title', e::o('v_title_1'));\n\t\t\t\t$this->OPC->generate_view($this->tpl_dir . 'pa.php');\n\t\t\t\treturn;\n\t\t\t}",
"public function getSubType()\n {\n return $this->subType;\n }",
"public function getRoe()\n {\n return $this->roe;\n }",
"public function getSubMenu(){\n return $this->subMenu;\n }",
"public function getRischioArea() {\n return $this->_rischio; \n }",
"public function getPventa()\n {\n return $this->pventa;\n }",
"public function get_pa(){ return $this->_pa;}",
"public function getPeriodeAttest() {\n return $this->periodeAttest;\n }",
"function getIdelemento(){\n\t\treturn $this->idelemento;\n\t}",
"public function getSubAccountId() \n {\n $oConfig = $this->_oFcpoHelper->fcpoGetConfig();\n $sReturn = $oConfig->getConfigParam('sFCPOSubAccountID');\n return $sReturn;\n }",
"public function getReel()\n {\n return $reel;\n }",
"public function getRaza()\n {\n return $this->raza;\n }",
"public function getRaza()\n {\n return $this->raza;\n }",
"public function getSubstep()\n\t{\n\t\treturn $this->activeSubstep;\n\t}",
"public function getConsecutivoPadrePD( ){\n\t\t \treturn $this->consecutivoPadrePD;\n\t\t }",
"public function getCirculante_P(){\n\t\t$this->setCirculante_P();\n\t\t\n\t\treturn $this->Circulante_P;\t\n\t}",
"public function getPatente()\n {\n return $this->patente;\n }",
"public function getDireccionOrigen()\n {\n return $this->direccionOrigen;\n }",
"public function get_parent();",
"public function getPR() {}",
"public function getAPELLIDO_PATERNO()\r\n {\r\n return $this->APELLIDO_PATERNO;\r\n }",
"function getOGRole();",
"function getOGRole();",
"public function getKodeSubSatker()\n {\n return $this->kode_sub_satker;\n }",
"function getOutro() \n\t{\n\t\treturn (strlen($this->outro)) ? $this->outro : NULL;\n\t}",
"public function get_id_subclase(){ \n return (isset($this->_id_subclase)) ? $this->_id_subclase: null;\n}",
"public function getShow_subhead () {\n\t$preValue = $this->preGetValue(\"show_subhead\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->show_subhead;\n\treturn $data;\n}",
"public function getAPELLIDOPATERNO()\r\n {\r\n return $this->APELLIDO_PATERNO;\r\n }",
"public function getPa()\n {\n return $this->pa;\n }",
"public function getPa()\n {\n return $this->pa;\n }",
"public static function getSuperior()\n {\n SWS_API::find();\n\n #si es de nivel 3 devuleve la subdireccion a la que pertenece\n #si es de nivel 2, el mismo\n #si es de nivel 1, el jefe de planeacion\n \n if($GLOBALS['SWS_UserObj'][5] == 3)\n {\n return SWS_API::getSubdireccion();\n }\n else if($GLOBALS['SWS_UserObj'][5] == 2)\n {\n return $GLOBALS['SWS_UserObj'];\n }\n else if($GLOBALS['SWS_UserObj'][5] == 1)\n {\n return SWS_API::getJefePlaneacion();\n }\n }",
"function get_parent()\r\n {\r\n return $this->parent;\r\n }",
"function get_parent()\r\n {\r\n return $this->parent;\r\n }",
"function getNiveau() {\r\n\t\treturn $this->_niveau;\r\n\t}",
"public function getRequerente()\n {\n return $this->requerente;\n }",
"public function getSubEvent()\n {\n return $this->subEvent;\n }",
"public function getProdEra()\n {\n return $this->prod_era;\n }",
"public function getEleve()\n {\n return $this->eleve;\n }",
"public function getChapeau();",
"public function getPrciOculto()\n {\n return $this->prciOculto;\n }",
"public function getComunaOrigen()\n {\n return $this->comunaOrigen;\n }",
"public function getOrden() {\n return $this->orden;\n }",
"public function getOrden() {\n return $this->orden;\n }",
"public function get_parent() {\n\t\treturn $this->parent();\n\t}",
"public function getAnoPortaria() {\n return $this->iAnoPortaria;\n }",
"public function getPrcifecha()\n {\n return $this->prcifecha;\n }",
"public function getSubpasta()\r\n\t{\r\n\t\treturn $this->subpasta;\r\n\t}",
"public function get_sublink2($id){\n $sql=\"SELECT nombre_sub FROM sublink WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['nombre_sub'];\n }",
"public function getPrecoBase()\n {\n return $this->precoBase;\n }",
"public function getSubDir()\n\t{\n\t\treturn $this->sub_dir;\n\t}",
"public function getRutEmisor()\n {\n return $this->rutEmisor;\n }",
"public function getPoznamka()\n {\n return $this->poznamka;\n }",
"public function getFkPessoalSubDivisao()\n {\n return $this->fkPessoalSubDivisao;\n }",
"public function getObjet()\n {\n return $this->objet;\n }",
"public function getPhpcrNode();",
"public function getIdOrden()\n {\n return $this->idOrden;\n }",
"function getPagetop () {\n\t\t$this->_goTop();\n\t\t$this->_goFin();\n\t\treturn $this->_roof[\"dtd\"].implode(\"\\n\",$this->_roof[\"meta\"]).\"\\n\".implode(\"\\n\",$this->_roof[\"cuerpo\"]).$this->_roof[\"fin\"];\n\t}",
"public function getChild()\n {\n return $this->child;\n }",
"public function getSubtype() {\n\t\treturn $this->name;\n\t}",
"public function getIzinPaud()\n {\n return $this->izin_paud;\n }",
"public function getUr() {}",
"public function getSubMenu() : CliMenu\n {\n return $this->subMenu;\n }",
"public function getPelaksanaanParenting()\n {\n return $this->pelaksanaan_parenting;\n }",
"public function getOrden_prioridad()\n {\n return $this->orden_prioridad;\n }",
"public function getPesoArea() {\n return $this->_peso; \n }",
"public function subCommittee()\n {\n return $this->belongsTo('App\\SubCommittees', 'sub_committee_id');\n }",
"public function getPeriodo()\n {\n return $this->periodo;\n }",
"public function getApodo()\n {\n return $this->apodo;\n }",
"public function getPoleId()\n {\n return $this->pole_id;\n }",
"public function getDiretorio()\n {\n return $this->diretorio;\n }",
"function getActualNode(){\n\t\treturn $this->anode;\n\t}",
"public function getSubtaskId()\n {\n return $this->get(self::SUBTASK_ID);\n }",
"public function getSubtaskId()\n {\n return $this->get(self::SUBTASK_ID);\n }",
"public function getRuta() {\n return $this->ruta;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }"
] | [
"0.76389134",
"0.6540315",
"0.6364979",
"0.63171417",
"0.59253764",
"0.58969265",
"0.58959204",
"0.58488697",
"0.58325076",
"0.5803064",
"0.574627",
"0.5699839",
"0.5680714",
"0.5635693",
"0.5607816",
"0.5586675",
"0.5557904",
"0.55385256",
"0.5529796",
"0.55231565",
"0.55100465",
"0.5477485",
"0.54712063",
"0.5469308",
"0.54418427",
"0.54405236",
"0.5428172",
"0.5424179",
"0.5396205",
"0.5392444",
"0.53782576",
"0.5365263",
"0.53473914",
"0.5343077",
"0.5336217",
"0.53142554",
"0.53142554",
"0.5304732",
"0.5296243",
"0.52922",
"0.52810204",
"0.52646005",
"0.5261533",
"0.52559894",
"0.52518",
"0.5251283",
"0.5251283",
"0.5244281",
"0.5229958",
"0.52210116",
"0.52209544",
"0.5218502",
"0.5215313",
"0.5215313",
"0.5204345",
"0.5187668",
"0.5187668",
"0.5182493",
"0.5179287",
"0.51746607",
"0.5169715",
"0.51685154",
"0.51662284",
"0.51659226",
"0.51641184",
"0.51614106",
"0.51614106",
"0.5154024",
"0.5147121",
"0.51469517",
"0.5143711",
"0.5142944",
"0.513605",
"0.51326007",
"0.51242006",
"0.51127386",
"0.5112036",
"0.5108911",
"0.5108738",
"0.51049376",
"0.51034707",
"0.5101827",
"0.51004785",
"0.50997084",
"0.50937635",
"0.50910896",
"0.5090813",
"0.5090797",
"0.509042",
"0.50865626",
"0.50848234",
"0.50846374",
"0.5083906",
"0.5080211",
"0.5079731",
"0.5076678",
"0.5076678",
"0.506826",
"0.5064257",
"0.5064257"
] | 0.7990897 | 0 |
Get the periode subr du. | public function getPeriodeSubrDu() {
return $this->periodeSubrDu;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }",
"public function getPeriodeDu() {\n return $this->periodeDu;\n }",
"public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }",
"public function getDeptsub()\n\t\t{\n\t\t\treturn $this->hasOne(Deptsub::className(), ['DEP_SUB_ID' => 'DEP_SUB_ID']);\n\t\t}",
"public function getPhadsubid()\n {\n return $this->phadsubid;\n }",
"public function getSub()\n {\n return $this->sub;\n }",
"public function getConsecutivoPadrePD( ){\n\t\t \treturn $this->consecutivoPadrePD;\n\t\t }",
"public function getDpto()\n {\n return $this->dpto;\n }",
"public function getFkPessoalSubDivisao()\n {\n return $this->fkPessoalSubDivisao;\n }",
"public function getKodeSubSatker()\n {\n return $this->kode_sub_satker;\n }",
"public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }",
"public function getSubDir()\n\t{\n\t\treturn $this->sub_dir;\n\t}",
"public function getSubserial()\n\t{\n\n\t\treturn $this->subserial;\n\t}",
"public function setPeriodeSubrDu(DateTime $periodeSubrDu = null) {\n $this->periodeSubrDu = $periodeSubrDu;\n return $this;\n }",
"public function getCdUnidade()\n {\n return $this->cd_unidade;\n }",
"public function getCdUnidade()\n {\n return $this->cd_unidade;\n }",
"public function getCdUnidade()\n {\n return $this->cd_unidade;\n }",
"public function getPhadsubidseq()\n {\n return $this->phadsubidseq;\n }",
"public function getPChild()\n {\n return $this->p_child;\n }",
"public function getSubtaskId()\n {\n return $this->get(self::SUBTASK_ID);\n }",
"public function getSubtaskId()\n {\n return $this->get(self::SUBTASK_ID);\n }",
"public function getUnidadeNegocioCdUnidade()\n {\n return $this->unidade_negocio_cd_unidade;\n }",
"public function getMain_depart_id()\n {\n return $this->main_depart_id;\n }",
"public function getPerDecUlt() {\n return $this->perDecUlt;\n }",
"public function getPod()\n {\n return $this->pod;\n }",
"public function getPeriodeAu() {\n return $this->periodeAu;\n }",
"public function getPorAtender() {\n return $this->por_atender;\n }",
"public function getDod();",
"public function get_sublink($id){\t\n\t\t$sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['etiqueta_sub'];\n\t}",
"public function getCdUnidadeNegocio()\n {\n return $this->cd_unidade_negocio;\n }",
"public static function getSuperior()\n {\n SWS_API::find();\n\n #si es de nivel 3 devuleve la subdireccion a la que pertenece\n #si es de nivel 2, el mismo\n #si es de nivel 1, el jefe de planeacion\n \n if($GLOBALS['SWS_UserObj'][5] == 3)\n {\n return SWS_API::getSubdireccion();\n }\n else if($GLOBALS['SWS_UserObj'][5] == 2)\n {\n return $GLOBALS['SWS_UserObj'];\n }\n else if($GLOBALS['SWS_UserObj'][5] == 1)\n {\n return SWS_API::getJefePlaneacion();\n }\n }",
"public function getChild()\n {\n return $this->child;\n }",
"public function get_subpage() {\n\n\t\tif ( null === $this->subpage ) {\n\t\t\t$this->subpage = isset( $_GET['sub'] ) ? esc_attr( $_GET['sub'] ) : $this->get_initial_page();\n\t\t}\n\n\t\treturn $this->subpage;\n\t}",
"public function getCdOrdemServicoReparo()\n {\n return $this->cd_ordem_servico_reparo;\n }",
"public function get_sublink($id){\n $sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['etiqueta_sub'];\n }",
"public function getSubType()\n {\n return $this->subType;\n }",
"public function getDESCUENTO_PROVEEDOR(){\n return $this->DESCUENTO_PROVEEDOR;\n }",
"public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }",
"function getRubrique() {\n\t\t$faux_array = array_values($this->getParents());\n\t\t$rubrique = $faux_array[0];\n\t\tif ($rubrique instanceof Rubrique) {\n\t\t\treturn $rubrique;\n\t\t} else {\n\t\t\tdie(\"Le parent de l'article n'est pas une Rubrique !\");\n\t\t}\n\t}",
"public static function getPduSubstr($length)\n\t{\n\t\t$str = mb_substr(self::$_pduParse, 0, $length);\n\t\tPDU::debug(\"PDU::getPduSubstr: \" . $str);\n\t\tself::$_pduParse = mb_substr(self::$_pduParse, $length);\n\t\treturn $str;\n\t}",
"public function getPDif()\n {\n return $this->pDif;\n }",
"public function getDn();",
"public function get_superficie(){ return $this->_superficie;}",
"public function getDeId()\n {\n return $this->de_id;\n }",
"public function getPanier(){\n\t\treturn $this->panier;\n\t}",
"protected function getChildNodeData() {\n\t\treturn $this->nodeDataRepository->findByParentWithoutReduce($this->path, $this->workspace);\n\t}",
"public function getDipartimento() {\n return $this->dipartimento;\n }",
"public function getD()\n {\n return $this->D;\n }",
"public function getPer()\n {\n return $this->get(self::_PER);\n }",
"public function subdepartemen()\n {\n //Query untuk mengambil semua data sub departemen dan diurutkan berdasarkan nama_bagian_dept\n $query = $this->db->query(\"SELECT * FROM bagian_departemen A LEFT JOIN departemen B ON B.id_dept = A.id_dept ORDER BY nama_bagian_dept\");\n return $query;\n }",
"public function __toString(){\n // para ver el nombre de subdireccion en un select\n return $this->nombreSubd;\n }",
"public function getProdutoCdProduto()\n {\n return $this->produto_cd_produto;\n }",
"public function getCdProduto()\n {\n return $this->Cd_produto;\n }",
"public function getIdDetalleOrden()\n {\n return $this->idDetalleOrden;\n }",
"public function getDiretorio() {\n return $this->sDiretorio;\n }",
"public function getRequerente()\n {\n return $this->requerente;\n }",
"public function get_department() \n {\n return $this->department;\n }",
"public function getCdProduto()\n {\n return $this->cd_produto;\n }",
"public function getPiD() {\n\t\treturn $this->piD;\n\t}",
"public function getDiretorio()\n {\n return $this->diretorio;\n }",
"public function getDiretor() {\n\t return $this->Diretor;\n\t}",
"public function get_PDI_ID() {\n return $this->pdi_id;\n }",
"function getMainNode(){\n\t\treturn $this->nodeppal;\n\t}",
"public function getdireccion()\r\n {\r\n return $this->direccion;\r\n }",
"public function getDoingSubtask()\n {\n return $this->get(self::DOING_SUBTASK);\n }",
"public function get_sublink2($id){\n $sql=\"SELECT nombre_sub FROM sublink WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['nombre_sub'];\n }",
"public function director()\n {\n $s = $this->structDisp()->selfStruct()->first();\n\n // substr pada angka paling depan\n $oShort = substr($s->emp_hrp1000_o_short, 0, 1);\n $sShort = substr($s->emp_hrp1000_s_short, 0, 1);\n\n // mengembalikan StructDir untuk employee ini\n return StructDir::whereRaw('SUBSTR(emp_hrp1000_s_short, 1, 1) = ?', [$oShort])\n ->whereRaw('SUBSTR(emp_hrp1000_o_short, 1, 1) = ?', [$sShort])\n ->first();\n }",
"public function getSubstep()\n\t{\n\t\treturn $this->activeSubstep;\n\t}",
"private static function getPDOLB() {\n switch (PDOLB_CONFIG::$queryMode) {\n case self::MASTER_SLAVE:\n return self::getMasterSlave();\n case self::MASTER:\n return self::getMaster();\n case self::SLAVE:\n return self::getSlave();\n }\n }",
"public function getD() {}",
"public function getUrun()\n {\n return $this->hasOne(Urun::className(), ['id' => 'urun_id']);\n }",
"public function get_id_subclase(){ \n return (isset($this->_id_subclase)) ? $this->_id_subclase: null;\n}",
"static function getMembershipPlan($sub_id){\n $db = JFactory::getDbo();\n $query = $db->getQuery(true);\n $query->select('plan_id')->from('#__osmembership_subscribers')->where('id = \"'.$sub_id.'\"');\n $db->setQuery($query);\n return $db->loadResult();\n }",
"public function get_sublink2($id){\t\n\t\t$sql=\"SELECT nombre_sub FROM sublink WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_sub'];\n\t}",
"public function getDireccionOrigen()\n {\n return $this->direccionOrigen;\n }",
"private function getDeptNum(){\r\n\t\treturn $this->DeptNum;\r\n\t}",
"public function getChildId(): int {\n return $this->child_id;\n }",
"public function get_dossier() \n\t{\n\t\treturn $this->_dossier;\n\t}",
"public function getIdPanier()\n {\n return $this->idPanier;\n }",
"public function get_recurring_period(){\n\t\treturn $this->payment['recurring_period'];\n\t}",
"public function getPR() {}",
"public function getDireccion() {\n\t\treturn $this->direccion;\n\t}",
"public function getDetalle(){\n\t\treturn $this->detalle;\n\t}",
"public function getDureeAnnuelle() {\n return $this->dureeAnnuelle;\n }",
"public function getRecno()\n {\n return $this->recno;\n }",
"public function getDIRECCIONC()\r\n {\r\n return $this->DIRECCIONC;\r\n }",
"public function getrep_id()\r\n {\r\n return $this->rep_id;\r\n }",
"public static function getSpecificSubspectreForSensor($deveui, $date_request)\n {\n $db = static::getDB();\n\n $sql_query_get_spectre = \"SELECT r.sensor_id, st.id AS structure_id, r.date_time AS date_d,\n `subspectre`,`subspectre_number`,`min_freq`,`max_freq`,`resolution`\n FROM `spectre` AS sp\n JOIN record AS r ON (r.id=sp.record_id)\n JOIN sensor on sensor.id = r.sensor_id\n JOIN structure as st ON (st.id=r.structure_id)\n JOIN site as s ON (s.id=st.site_id)\n WHERE CAST(r.date_time as DATE) LIKE :date_request\n AND sensor.deveui = :deveui \";\n\n $stmt = $db->prepare($sql_query_get_spectre);\n\n $stmt->bindValue(':date_request', $date_request, PDO::PARAM_STR);\n $stmt->bindValue(':deveui', $deveui, PDO::PARAM_STR);\n\n if ($stmt->execute()) {\n\n $all_spectre_data = $stmt->fetchAll(PDO::FETCH_ASSOC);\n if (empty($all_spectre_data)) {\n return 0;\n }\n return $all_spectre_data[0];\n }\n }",
"public function sub( $sub_id = '' ) {\n // Bail if we don't get a sub id.\n if ( $sub_id == '' )\n return false;\n\n $sub_var = 'sub_' . $sub_id;\n // Check to see if an object for this sub already exists.\n // Create one if it doesn't exist.\n if ( ! isset( self::$instance->$sub_var ) )\n self::$instance->$sub_var = new NF_Sub( $sub_id );\n\n return self::$instance->$sub_var;\n }",
"public function getDetalle()\n {\n return $this->detalle;\n }",
"private function carrega_direita() {\n if ($this->distribuidor->di_direita > 0) {\n $pontos_direita = $this->ci->db->query(\"\n\t\t\t SELECT SUM(co_total_pontos) as pontos FROM `distribuidor_ligacao` \n\t\t\t\t JOIN distribuidores ON di_id = `li_id_distribuidor`\n\t\t\t\t JOIN compras ON di_id = `co_id_distribuidor`\n\t\t\t\t WHERE `li_no` = \" . $this->distribuidor->di_direita . \"\n\t\t\t\t AND co_pago = 1\n\t\t\t\")->row();\n\n $this->pontos_direita = (int) $pontos_direita->pontos;\n } else {\n $this->pontos_direita = 0;\n }\n }",
"public function getIdOrden()\n {\n return $this->idOrden;\n }",
"public function subirVolumen( ) {\n $vol = $this->getVolumen();\n if ($vol < 100) {\n $vol = $vol + 8;\n }\n else {\n $vol = 8;\n }\n $this->setVolumen($vol);\n }",
"public function getSubtype() {\n\t\treturn $this->name;\n\t}",
"public function getAUMENTOPERDIDA()\r\n {\r\n return $this->AUMENTO_PERDIDA;\r\n }",
"public function getTotalSubeixoRodovias(){\n\t\t$total = 0;\n\t\t$i=0;\n\t\twhile($i<count($this->result)){\n\t\t\tif($this->result[$i]->idn_digs == 1000)\n\t\t\t\t$total++;\n\t\t\t$i++;\n\t\t}\n\t\treturn $total;\n\t}",
"public function getReel()\n {\n return $reel;\n }",
"public function getFChild()\n {\n return $this->f_child;\n }",
"public function getDepartment(){\r\n\t return $this->_department;\r\n\t}",
"public function getPraticien()\n {\n return $this->praticien;\n }"
] | [
"0.73687637",
"0.66268235",
"0.62896854",
"0.61688894",
"0.5923749",
"0.5922495",
"0.5760629",
"0.57078546",
"0.5621825",
"0.558855",
"0.5555366",
"0.5522058",
"0.5481113",
"0.54485965",
"0.54478776",
"0.54478776",
"0.54478776",
"0.5385438",
"0.5347891",
"0.5306937",
"0.5306937",
"0.53028125",
"0.52922434",
"0.52691454",
"0.52676606",
"0.52579933",
"0.5239264",
"0.5227571",
"0.52145153",
"0.5212928",
"0.5201704",
"0.5180611",
"0.51759905",
"0.5170748",
"0.5162863",
"0.51620996",
"0.515654",
"0.51562154",
"0.5148997",
"0.5144522",
"0.51350945",
"0.51294184",
"0.5124548",
"0.51159036",
"0.5106288",
"0.5105466",
"0.5089848",
"0.50624424",
"0.505963",
"0.5047823",
"0.5043991",
"0.5043406",
"0.5031623",
"0.50292903",
"0.5026715",
"0.5016166",
"0.501068",
"0.49971476",
"0.4995934",
"0.49891064",
"0.49890676",
"0.4987571",
"0.4983471",
"0.49744046",
"0.49707592",
"0.49573052",
"0.4952514",
"0.49373347",
"0.49350622",
"0.49275807",
"0.49184307",
"0.4913538",
"0.49129367",
"0.4911416",
"0.4910686",
"0.4903779",
"0.48908734",
"0.48859817",
"0.4864863",
"0.4861279",
"0.4858442",
"0.4853901",
"0.4849865",
"0.4849601",
"0.48432183",
"0.4839107",
"0.4838476",
"0.48306504",
"0.48294318",
"0.48292407",
"0.4828814",
"0.48264116",
"0.48248625",
"0.4822745",
"0.48224849",
"0.48194402",
"0.48164257",
"0.48148316",
"0.4813816",
"0.4810657"
] | 0.81561846 | 0 |
Get the prenom employe. | public function getPrenomEmploye() {
return $this->prenomEmploye;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getEmploye()\n {\n return $this->hasOne(Employe::className(), ['id' => 'employe_id']);\n }",
"public function getNomEmploye() {\n return $this->nomEmploye;\n }",
"public function getNomEmploye() {\n return $this->nomEmploye;\n }",
"public function getEmployeRemplace(): ?string {\n return $this->employeRemplace;\n }",
"public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye() {\n return $this->numeroEmploye;\n }",
"public function getEmpleado_idemp(){\n return $this->empleado_idemp;\n }",
"public function getEmpleado() {\r\n return $this->empleado;\r\n }",
"public function getPraticien()\n {\n return $this->praticien;\n }",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getempleado()\r\n {\r\n return $this->empleado;\r\n }",
"public function getNom_employeur()\n {\n return $this->nom_employeur;\n }",
"public function getEmpCommune() {\n return $this->empCommune;\n }",
"public function getPrenom()\n\t{\n\t\treturn $this->prenom;\n\t}",
"public function setPrenomEmploye($prenomEmploye) {\n $this->prenomEmploye = $prenomEmploye;\n return $this;\n }",
"public function getPeriodeEcriture() {\n return $this->periodeEcriture;\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getNumeroEmploye(): ?string {\n return $this->numeroEmploye;\n }",
"public function getEmployer()\n {\n return $this->employer;\n }",
"public function getPrcifecha()\n {\n return $this->prcifecha;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPrenom()\n {\n return $this->prenom;\n }",
"public function getPersonne()\n {\n return $this->id_personne;\n }",
"public function getProposerEndowment()\n {\n return $this->getAttribute(self::$PROPOSER_ENDOWMENT_KEY);\n }",
"public function getPrenom() \n {\n return $this->prenom;\n }",
"public function getPessoa()\n { return $this->hasOne(PessoaFisica::className(), ['id' => 'pessoa'])->one(); }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPessoa(){\n return $this->pessoa;\n }",
"public function getPrenom () {\n if (key_exists(self::UTILISATEUR_REF, $_SESSION)) {\n return $_SESSION[self::UTILISATEUR_REF][self::PRENOM_REF];\n }\n return \"\";\n }",
"public function getNit_empresa(){\n return $this->nit_empresa;\n }",
"public function getRequerente()\n {\n return $this->requerente;\n }",
"public function getAdresse_employeur()\n {\n return $this->adresse_employeur;\n }",
"public function getOrganismeRetraite() {\n return $this->organismeRetraite;\n }",
"public function getPessoa()\n {\n return $this->hasOne(Pessoas::className(), \n [\n 'id' => 'pessoa_id'\n \n ]);\n }",
"public function getPropietario()\n {\n return $this->hasOne(Usuarios::className(), ['id' => 'propietario_id'])->inverseOf('copias');\n }",
"public function getPrenom()\r\n {\r\n return $this->prenom;\r\n }",
"public function getNombreEmpresa(){\n $empresa=DatosEmpresa::datosGenerales($this->idempresa);\n if($empresa==null)\n return '';\n else\n return $empresa->razonsocial;\n }",
"public function getCirculante_P(){\n\t\t$this->setCirculante_P();\n\t\t\n\t\treturn $this->Circulante_P;\t\n\t}",
"public function getIdProfessor()\r\n {\r\n return $this->idProfessor;\r\n }",
"public function getPrenomAdmin() {\n\t\treturn $this->prenom_admin;\n\t}",
"public function getPen()\n\t\t{\n\t\t\treturn $this->hasOne(Pendidikan::className(), ['EMP_ID' => 'EMP_ID']);\n\t\t\t//return $this->hasMany(Pendidikan::className(), ['EMP_ID' => 'EMP_ID']);\n\t\t}",
"public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }",
"public function getCodeEmploye(): ?string {\n return $this->codeEmploye;\n }",
"public function getPaisEmpresa()\n {\n return $this->paisEmpresa;\n }",
"public function getPrenom() : string{\n return $this->prenom;\n }",
"public function get_professor()\n {\n // loads the associated object\n if (empty($this->professor))\n $this->professor = new professor($this->professor_id);\n \n // returns the associated object\n return $this->professor;\n }",
"public function getPrenomtierce()\n {\n return $this->prenomtierce;\n }",
"public function get_pessoa()\n {\n // loads the associated object\n if (empty($this->pessoa))\n $this->pessoa = new Pessoa($this->ref_pessoa);\n \n // returns the associated object\n return $this->pessoa;\n }",
"function get_employee()\n\t\t{\n\t\t\treturn EmployeeFactory::createEmployee($this->empID);\n\t\t}",
"public function getNprciOculto()\n {\n return $this->nprciOculto;\n }",
"public function getIdPROVEEDORES(){\n return $this->idPROVEEDORES;\n }",
"function getEmperor(){\r\n\t\t$this->retriveDataRow();\r\n\r\n\t\tif(!is_null($this->data)){\r\n\t\t\treturn $this->data['czlonek_1'];\r\n\t\t}else{\r\n\t\t\treturn NULL;\r\n\t\t}\r\n\t}",
"public function getTrainingProgramme() {\n\t\trequire_once(\"./Modules/TrainingProgramme/classes/class.ilObjTrainingProgramme.php\");\n\t\t$refs = ilObject::_getAllReferences($this->assignment->getRootId());\n\t\tif (!count($refs)) {\n\t\t\tthrow new ilException(\"ilTrainingProgrammeUserAssignment::getTrainingProgramme: \"\n\t\t\t\t\t\t\t\t .\"could not find ref_id for program '\"\n\t\t\t\t\t\t\t\t .$this->assignment->getRootId().\"'.\");\n\t\t}\n\t\treturn ilObjTrainingProgramme::getInstanceByRefId(array_shift($refs));\n\t}",
"public function getEmployee()\n {\n return $this->hasOne(Employees::className(), ['ID' => 'EmployeeID']);\n }",
"public function get_pessoa()\n {\n // loads the associated object\n if (empty($this->pessoa))\n $this->pessoa = new Pessoa($this->pessoa_id);\n \n // returns the associated object\n return $this->pessoa;\n }",
"public function getExercice()\n {\n return $this->ligne->getSousCategorie()->getCategorie()->getBudget()->getExercice();\n }",
"public function getCoParticipante()\n\t{\n\t\treturn $this->co_participante;\n\t}",
"public function getNprcifecha()\n {\n return $this->nprcifecha;\n }",
"public function getProyecto( ){\n\t\t\treturn $this->proyecto;\n\t\t}",
"public function getRoe()\n {\n return $this->roe;\n }",
"function getByNameAndPosition($employee){\n //devolver Empleado\n }",
"public function getrep_problema()\r\n {\r\n return $this->rep_problema;\r\n }",
"public function getExercicio()\n {\n return $this->exercicio;\n }",
"public function getEmenta()\n {\n return $this->ementa;\n }",
"public function getEmphasize() {\n\t\treturn $this->emphasize;\n\t}",
"public function jefe()\r\n\t{\r\n\t return $this->hasOne(Jefe::class, 'cedula', 'cedula');\r\n\t}",
"public function getCriadoEm()\n {\n return $this->criadoEm;\n }",
"public function getEnterprise()\n {\n return $this->getValue('nb_icontact_prospect_enterprise');\n }",
"public function getPorAtender() {\n return $this->por_atender;\n }",
"public function getnombrePaciente(){\n\n\t if ($this->_nombrePaciente === null && $this->paciente !== null){\n\n\t $this->_nombrePaciente = $this->paciente->nombre_paciente.' '.$this->paciente->apellido_paciente;\n\t }\n\n\t return $this->_nombrePaciente;\n\t}",
"public function get_Ecriture_Exercice()\n {\n global $Connexion;\n\n if ((is_null($this->Ecriture_Exercice))&&(!is_null($this->ID_Exercice)))\n {\n $query=\"SELECT * FROM `ecriture` WHERE ID_Exercice = \".$this->ID_Exercice.\" ORDER BY ID_Ecriture\";\n $result=$Connexion->sql_query($query);\n while($row = $Connexion->sql_fetch_object($result,'MyORM\\ecriture'))\n {\n $this->add_Ecriture_Exercice($row);\n }\n }\n return ($this->Ecriture_Exercice);\n }",
"public function setNumeroEmploye(?string $numeroEmploye): PrepaPaie {\n $this->numeroEmploye = $numeroEmploye;\n return $this;\n }",
"public function empleado()\n {\n return \\App\\Models\\Empleado::where('user_id', $this->user_id)->first();\n }",
"public function getEmployProfileId() {\n\t\treturn ($this->employProfileId);\n\t}",
"public function getCodigoEmpresa()\n {\n return $this->codigoEmpresa;\n }",
"public function getPothrcptnbr()\n {\n return $this->pothrcptnbr;\n }",
"public function getEcom()\n {\n return $this->ecom;\n }",
"function getNitProveedor()\n {\n return $this->NitProveedor;\n }",
"public function getPreco()\n {\n return $this->preco;\n }",
"public function getPrenom_user()\r\n {\r\n return $this->prenom_user;\r\n }",
"public function getPrciOculto()\n {\n return $this->prciOculto;\n }",
"public function evaluation()\n {\n return $this->hasOne(\"App\\Services\\Evaluation\\Evaluation\", 'id_employee', 'id_assessor'); // one to many\n /*ถ้าตอน Query เอา table ไหนเป็นหลัก ตรง model ก็เอา pk ของ table นั้นขึ้นทีหลัง*/\n //return $this->hasMany(\"App\\Services\\Evaluation\\Evaluation\", 'id_assessor', 'id_employee'); // one to many\n }",
"public function getDateNaissanceEmploye() {\n return $this->dateNaissanceEmploye;\n }",
"public function getPoznamka()\n {\n return $this->poznamka;\n }",
"public function getPresident()\n {\n return $this->get(self::_PRESIDENT);\n }",
"public function getParticipant()\n\t{\n\t\treturn $this->getContext()->getParticipant();\n\t}",
"public function getDESCUENTO_PROVEEDOR(){\n return $this->DESCUENTO_PROVEEDOR;\n }",
"public function getOope()\n {\n return $this->hasOne(ObjetivoOperativo::className(), ['oope_id' => 'oope_id']);\n }",
"public function getcedulaPaciente(){\n\n\t if ($this->_cedulaPaciente === null && $this->paciente !== null){\n\n\t $this->_cedulaPaciente = $this->paciente->cedula_paciente;\n\t }\n\n\t return $this->_cedulaPaciente;\n\t}"
] | [
"0.6785702",
"0.6683946",
"0.6683946",
"0.667989",
"0.66549647",
"0.66549647",
"0.66549647",
"0.6480769",
"0.6435781",
"0.64179915",
"0.6378953",
"0.6378953",
"0.63715315",
"0.63622564",
"0.6318543",
"0.63136375",
"0.6305812",
"0.6284954",
"0.6284954",
"0.6284954",
"0.62703466",
"0.6238318",
"0.62027293",
"0.62027293",
"0.62027293",
"0.62027293",
"0.62027293",
"0.62027293",
"0.62027293",
"0.62027293",
"0.62027293",
"0.61635923",
"0.61560726",
"0.61371785",
"0.6132947",
"0.6132781",
"0.6115121",
"0.6115121",
"0.6115121",
"0.61020947",
"0.60977083",
"0.60883814",
"0.6087671",
"0.60873497",
"0.6079423",
"0.6076998",
"0.60679716",
"0.603951",
"0.6023844",
"0.600807",
"0.6000709",
"0.5995313",
"0.5969377",
"0.5969377",
"0.5965311",
"0.59556603",
"0.5955042",
"0.59375364",
"0.59342295",
"0.5933726",
"0.5911408",
"0.5909919",
"0.5891156",
"0.58848196",
"0.58751625",
"0.5858551",
"0.58547187",
"0.5831548",
"0.58308625",
"0.5828518",
"0.5825142",
"0.58187824",
"0.5814147",
"0.580906",
"0.5805333",
"0.5800128",
"0.5799719",
"0.5798485",
"0.5795659",
"0.57928455",
"0.57866323",
"0.5779975",
"0.5779368",
"0.57772464",
"0.5775898",
"0.57662416",
"0.5764497",
"0.5764093",
"0.5756332",
"0.5752629",
"0.5739272",
"0.57320446",
"0.57271415",
"0.5725314",
"0.57157373",
"0.5715598",
"0.5715541",
"0.5708639",
"0.57050055",
"0.57046205"
] | 0.78539026 | 0 |
Get the reprise motif med. | public function getRepriseMotifMed() {
return $this->repriseMotifMed;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMotifRupture() {\n return $this->motifRupture;\n }",
"public function getMedida() {\n return $this->iMedida;\n }",
"public function getMotif()\n {\n return $this->motif;\n }",
"public function getPrenotazioniMedico() {\n return $this->_prenotazioni;\n }",
"public function getPazientiMedico() {\n return $this->_pazienti;\n }",
"public function getUnidadeMedida()\n {\n return $this->unidadeMedida;\n }",
"public function get_motdepasse()\n {\n return $this->_motdepasse;\n }",
"public function setRepriseMotifMed($repriseMotifMed) {\n $this->repriseMotifMed = $repriseMotifMed;\n return $this;\n }",
"public function getRemediation()\n {\n return $this->remediation;\n }",
"public function getUnidadMedida()\n {\n return $this->unidadMedida;\n }",
"public function getMUNICIPIO()\r\n {\r\n return $this->MUNICIPIO;\r\n }",
"public function getUnidadMedida() {\n $o_DMantenimientoGeneral = new DMantenimientoGeneral();\n $resultado = $o_DMantenimientoGeneral->getUnidadMedida();\n foreach ($resultado as $key => $value) {\n array_push($resultado[$key], \"../../../../fastmedical_front/imagen/icono/editar.png ^ Editar\");\n array_push($resultado[$key], \"../../../../fastmedical_front/imagen/icono/i_nomailappt.png ^ Eliminar\");\n }\n return $resultado;\n }",
"public function get_medico()\n {\n \n // loads the associated object\n if (empty($this->medico))\n $this->medico = new Medicos($this->medico_id);\n \n // returns the associated object\n return $this->medico;\n }",
"public function getPromImg()\n {\n return $this->prom_img;\n }",
"public function getImagem()\n {\n return $this->imagem;\n }",
"public function getSuspensionMotif() {\n return $this->suspensionMotif;\n }",
"public function getMontant() {\n return $this->montant;\n }",
"public function getMedicaments(){\n\t\t$req = \"select * from medicament order by MED_NOMCOMMERCIAL\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}",
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant()\n {\n return $this->montant;\n }",
"public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}",
"public function getMotivoRejeicao()\n {\n return $this->motivoRejeicao;\n }",
"public function getMilage()\n {\n }",
"public function getMaitre()\n {\n return $this->maitre;\n }",
"public function readMedicoEspecial(){\n $objM=new medicoDAO();\n $resul=$objM->readMedicoEspecialidad();\n return $resul;\n }",
"public function getPhoto604()\n {\n return $this->photo_604;\n }",
"public function getMileage() {\n return $this->get(self::MILEAGE);\n }",
"public function getPanjRengM()\n {\n return $this->panj_reng_m;\n }",
"public function getNumIscrizioneMedico() {\n return $this->_numIscrizione;\n }",
"public function getPoster(){\n return $this->film['poster'];\n }",
"public function getInRespaldoAutomatizado()\n\t{\n\t\treturn $this->in_respaldo_automatizado;\n\t}",
"function getImagen(){\n\t\t\treturn $this->imagen;\n\t\t}",
"public function getRuta() {\n return $this->ruta;\n }",
"public function getImagemd() {\n return $this->imagemd;\n }",
"public function getUmed()\n {\n return $this->hasOne(UnidadMedida::className(), ['umed_id' => 'umed_id']);\n }",
"protected function getMois()\n{\nreturn substr($this->getDateSysteme(), 5, 2);\n}",
"public function getCodFiscaleMedico() {\n return $this->_codFiscale;\n }",
"public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }",
"public function get_persR()\n {\n return $this->_persR;\n }",
"public function getDetalle();",
"public function getMedicine($id)\n\t{\n\t\treturn $this->database->table(self::TABLE_NAME)\n\t\t\t->where(self::COLUMND_ID, $id)->fetch();\n\t}",
"public function getMvat()\n {\n return $this->mvat;\n }",
"public function getMedian()\n {\n return $this->median;\n }",
"public function getSpe()\n {\n return $this->spe;\n }",
"function rekamMedis($nomor_pasien)\n\t{\n\n\t}",
"public function getMontantGeneral() {\n return $this->montantGeneral;\n }",
"public function getMotCle()\n {\n return $this->motCle;\n }",
"public function getMolino()\n {\n return $this->getModule()->getExtension('molino')->getMolino();\n }",
"public static function motividelsegnalato($idev){\r\n $idev = self::$conn->real_escape_string($idev);\r\n $query = \"SELECT DISTINCT motivo FROM segnalazione WHERE idev = '$idev'\";\r\n\t\t$result = self::$conn->query($query);\r\n $mot = array();\r\n if($result){\r\n while($row = $result->fetch_assoc()){\r\n $mot[] = $row['motivo']; \r\n }\r\n }\r\n return $mot;\r\n }",
"public function showMedaille($id){\n return \\App\\Models\\Medaille::where(\"id\", \"=\", $id)->get()->first();\n }",
"public function getImagen()\n {\n return $this->imagen;\n }",
"public function getImagen()\n {\n return $this->imagen;\n }",
"public function get_nomR()\n {\n return $this->_nomR;\n }",
"function get_medidor($id_med)\n {\n return $this->db->get_where('medidor',array('id_med'=>$id_med))->row_array();\n }",
"function getMonograph() {\n\t\t$monographDao =& DAORegistry::getDAO('MonographDAO');\n\t\treturn $monographDao->getMonograph($this->_monographId);\n\t}",
"function get_tarifKilometrique() {\n return $this->tarifKilometrique;\n }",
"public function dernierMoisSaisi($idVisiteur){\r\n\t\t$req = \"select max(mois) as dernierMois from fichefrais where fichefrais.idvisiteur = '$idVisiteur'\";\r\n\t\t$res = PdoGsb::$monPdo->query($req);\r\n\t\t$laLigne = $res->fetch();\r\n\t\t$dernierMois = $laLigne['dernierMois'];\r\n\t\treturn $dernierMois;\r\n\t}",
"public function SpecificMedicine($mid){\n $sql = \"SELECT * FROM `medicine` WHERE `product_id`='$mid'\";\n $query = $this->db->query($sql);\n $result = $query->row();\n return $result;\n\t}",
"public function getMidasReply()\n {\n return $this->get(self::_MIDAS_REPLY);\n }",
"public function getRomano(){\n\t\treturn $this->romano;\n\t}",
"public function getMeasurement()\n {\n return $this->measurement;\n }",
"public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC) TOTALS \";\r\n return $this->row($query);\r\n }",
"public function getImagen()\n {\n return $this->imagen;\n }",
"public function getImagen()\n {\n return $this->imagen;\n }",
"public function getImagen()\n {\n return $this->imagen;\n }",
"public function getReel()\n {\n return $reel;\n }",
"public function getIdunidadmedida()\n {\n return $this->idunidadmedida;\n }",
"public function getRut()\n {\n return $this->rut;\n }",
"public function getIdMotCleRetrouver()\n {\n return $this->idMotCleRetrouver;\n }",
"public function getImagen()\r\n {\r\n return $this->imagen;\r\n }",
"public function getInformacionRespuesta()\n {\n return $this->informacion_respuesta;\n }",
"public function getPromotion(){\n return $this->promotion;\n }",
"public function getmnem()\n {\n return $this->mnem;\n }",
"public function getMataPelajaran();",
"public function getSlides(){\r\n\t\treturn $this->getModel()->getSlides();\r\n\t}",
"public function getMatricule(){\n return $this->$Matricule;\n }",
"public function getMateria(){\n\t\treturn $this->materia;\n }",
"public function getMontant_vente()\n {\n return $this->montant_vente;\n }",
"public function getPeriodeDu() {\n return $this->periodeDu;\n }",
"public function getMaterno()\n {\n return $this->materno;\n }",
"public function getMontantHt() {\n return $this->montantHt;\n }",
"public function getFilm(): Film\n {\n return $this->film;\n }",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getAdmRevisado() {\n return $this->adm_revisado;\n }",
"static public function ctrMostrarUnidadMedida($id_inventario){\n\n\t\t$tabla = \"inventario_x_unidad_medida_salida\";\n\n\t\t$respuesta = ModeloInventario::mdlMostrarUnidadMedida($tabla , $id_inventario);\n\n\t\treturn $respuesta;\n\n\n\n}",
"public function find_motif($id_motif) {\n $connexion = get_connexion();\n $sql = \"SELECT * FROM motif WHERE id_motif =:id_motif\";\n\n try {\n $sth = $connexion->prepare($sql);\n $sth->execute(array(\":id_motif\" => $id_motif));\n $row = $sth->fetch(PDO::FETCH_ASSOC);\n } \n catch (PDOException $e) {\n die( \"<p>Erreur lors de la requête SQL : \" . $e->getMessage() . \"</p>\");\n }\n\n $motif_object = new Motif($row);\n\n return $motif_object;\n\n }",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getRemediationType()\n {\n return $this->remediation_type;\n }",
"public function getTelevision()\n {\n return $this->television;\n }",
"public function getMuscle() {\n return $this->_muscle;\n }",
"public function getRecepti()\n {\n return $this->hasOne(Recepti::className(), ['nomer_recepta' => 'nomer_recepta']);\n }",
"public function getReplay()\n {\n return $this->get(self::_REPLAY);\n }",
"public function getPDif()\n {\n return $this->pDif;\n }",
"public function getMoviemeter()\r\n\t{\r\n\t\treturn $this->makeRequest('/chart/moviemeter');\r\n\t}",
"public function getImagemLogo() {\n\n return $this->sImagemLogo;\n }",
"public function getMedecin()\n {\n return $this->medecin;\n }",
"public function getMontantTva() {\n return $this->montantTva;\n }",
"public function getFil(): Fil\n {\n return $this->fil;\n }",
"public function getSlideItem()\n {\n if(!$this->safeUpdate())\n return 'errorUpdate';\n $this->objTable = new Model($this->getLangAndID['lang'].'_slide');\n $this->objTable->where($this->getLangAndID['field_id'],$this->id);\n $this->objTable->where('idw',$this->idw);\n $result = $this->objTable->getOne();\n //if($this->checkPostTime($result['post_time']))\n //$result['post_time']='';\n if ($result) {\n return $result;\n }\n }",
"public function getRise() {}"
] | [
"0.70896006",
"0.6872117",
"0.6640547",
"0.64759755",
"0.6407346",
"0.632862",
"0.6196713",
"0.6128715",
"0.6104083",
"0.6064797",
"0.5994016",
"0.58943385",
"0.5835735",
"0.58093053",
"0.5795964",
"0.5793903",
"0.5789754",
"0.57828826",
"0.5746337",
"0.5746337",
"0.5736725",
"0.5715695",
"0.5704925",
"0.57002336",
"0.56970716",
"0.5666126",
"0.56095845",
"0.5604025",
"0.5586796",
"0.5539377",
"0.55331975",
"0.5490794",
"0.54683536",
"0.54605275",
"0.5452492",
"0.5442759",
"0.54360384",
"0.54036236",
"0.539336",
"0.5375306",
"0.5371821",
"0.5367047",
"0.5323716",
"0.53232193",
"0.5299759",
"0.5296043",
"0.52929604",
"0.52857804",
"0.5273903",
"0.5268501",
"0.52680296",
"0.52680296",
"0.5266829",
"0.5265642",
"0.52634096",
"0.52521724",
"0.52515197",
"0.5251067",
"0.52499753",
"0.5244611",
"0.5241901",
"0.5237707",
"0.5230143",
"0.5230143",
"0.5230143",
"0.52289516",
"0.5224494",
"0.52189255",
"0.5215327",
"0.52122086",
"0.5199325",
"0.5193883",
"0.5189599",
"0.5187261",
"0.5184947",
"0.51799375",
"0.5175227",
"0.5173077",
"0.51726854",
"0.5171003",
"0.51665735",
"0.5163658",
"0.51589626",
"0.5157986",
"0.5157571",
"0.5144759",
"0.5141297",
"0.51339775",
"0.51330096",
"0.5131816",
"0.5127281",
"0.51263434",
"0.5122021",
"0.511916",
"0.5118511",
"0.5114287",
"0.51118726",
"0.5109534",
"0.51055837",
"0.5104341"
] | 0.8177568 | 0 |
Get the reprise raison pers. | public function getRepriseRaisonPers() {
return $this->repriseRaisonPers;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function get_persR()\n {\n return $this->_persR;\n }",
"public function setRepriseRaisonPers($repriseRaisonPers) {\n $this->repriseRaisonPers = $repriseRaisonPers;\n return $this;\n }",
"public function getRisks()\n {\n return isset($this->Risks) ? $this->Risks : null;\n }",
"public function set_persR($_persR)\n {\n $this->_persR = $_persR;\n\n return $this;\n }",
"public function getPlazasRestantes() {\r\n return $this->plazas;\r\n }",
"public static function getRotasPermitidas(){\n $usucpf = $_SESSION['usucpf'];\n $sisid = $_SESSION['sisid'];\n $perfis = $_SESSION['perfil'][$usucpf][$sisid];\n\n $arrTmp = array();\n if(!empty($perfis)){\n $rotas = Rota::select('ds_rota')\n ->join('seguranca.tb_rota_perfil','seguranca.tb_rota_perfil.co_rota','=','seguranca.tb_rota.co_rota')\n ->where('sisid',$sisid)\n ->where('seguranca.tb_rota_perfil.st_habilitado',true)\n ->whereIn('seguranca.tb_rota_perfil.pflcod',$perfis)->get();\n\n\n\n if(!empty($rotas)){\n foreach ($rotas as $rota)\n $arrTmp[] = $rota->ds_rota;\n }\n }\n return $arrTmp;\n }",
"public function getListRpr()\n {\n $db = $this->dblocal;\n try\n {\n $stmt = $db->prepare(\"SELECT @rownum := @rownum + 1 AS urutan,t.* FROM m_redeemed_receipt t, \n (SELECT @rownum := 0) r ORDER BY id_rpr ASC\");\n $stmt->execute();\n $stat[0] = true;\n $stat[1] = $stmt->fetchAll(PDO::FETCH_ASSOC);\n return $stat;\n }\n catch(PDOException $ex)\n {\n $stat[0] = false;\n $stat[1] = $ex->getMessage();\n return $stat;\n }\n }",
"public function getReplayResults()\n {\n return $this->replay_results;\n }",
"public function getRut(): array\n {\n return $this->rut;\n }",
"public function getPR() {}",
"public function getPersonaIdPers() {\n return $this->personaIdPers;\n }",
"public function getPalestras()\n {\n return $this->palestras;\n }",
"function getRuedas(){\r\n\t\t\treturn $this->ruedas;\r\n\t\t}",
"public function getSlides(){\r\n\t\treturn $this->getModel()->getSlides();\r\n\t}",
"public function getReel()\n {\n return $reel;\n }",
"public function getRentals(): array\n {\n return $this->rentals;\n }",
"public function ListarRepartidores()\n{\n\tself::SetNames();\n\t$sql = \" select * from usuarios WHERE nivel = 'REPARTIDOR'\";\n\tforeach ($this->dbh->query($sql) as $row)\n\t{\n\t\t$this->p[] = $row;\n\t}\n\treturn $this->p;\n\t$this->dbh=null;\n}",
"public function getRoues()\n\t\t{\n\t\t\treturn $this->_roues;\n\t\t}",
"public function getPraticiens() {\r\n $sql = $this->sqlPraticien . ' order by nom_praticien';\r\n $praticiens = $this->executerRequete($sql);\r\n return $praticiens;\r\n }",
"public function getRaza()\n {\n return $this->raza;\n }",
"public function getRaza()\n {\n return $this->raza;\n }",
"public function getPanjRengM()\n {\n return $this->panj_reng_m;\n }",
"function getRendimientoPonderado() {\n\t\tglobal $mdb2;\n\t\tglobal $log;\n\t\tglobal $current_usuario_id;\n\t\tglobal $usr;\n\n\t\t//DATO PARA LA CONSULTA SQL, LISTA LAS HORAS DEL DÍA\n\t\t//SI ES 0 TRAE LAS 24 HORAS\n\t\t$ponderacion = $usr->getPonderacion();\n\n\t\tif ($ponderacion == null) {\n\t\t\t$ponderacion_id = 0;\n\t\t}\n\t\telse {\n\t\t\t$ponderacion_id = $ponderacion->ponderacion_id;\n\t\t}\n\n\t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global_ponderado(\".\n\t\t\t\tpg_escape_string($current_usuario_id).\",\".\n\t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n\t\t\t\tpg_escape_string($ponderacion_id).\",' \".\n\t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n\t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\n\n\t\t$res =& $mdb2->query($sql);\n\t\tif (MDB2::isError($res)) {\n\t\t\t$log->setError($sql, $res->userinfo);\n\t\t\texit();\n\t\t}\n\n\t\tif($row = $res->fetchRow()){\n\t\t\t$dom = new DomDocument();\n\t\t\t$dom->preserveWhiteSpace = FALSE;\n\t\t\t$dom->loadXML($row['rendimiento_resumen_global_ponderado']);\n\t\t\t$xpath = new DOMXpath($dom);\n\t\t\tunset($row[\"rendimiento_resumen_global_ponderado\"]);\n\t\t}\n\n\t\t$conf_objetivo= $xpath->query(\"/atentus/resultados/propiedades/objetivos/objetivo\")->item(0);\n\t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n\t\t$conf_ponderaciones = $xpath->query(\"/atentus/resultados/propiedades/ponderaciones/item\");\n\n\t\t//SE MUESTRA TEMPLATE SIN DATOS\n\t\tif ($xpath->query(\"//detalles/detalle/detalles/detalle\")->length == 0) {\n\t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n\t\t\treturn;\n\t\t}\n\n\t\t//TEMPLATE DEL REPORTE\n\t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'rendimiento_ponderado.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_ITEMS', 'lista_items');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TITULOS', 'bloque_eventos_titulos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TOTAL', 'bloque_eventos_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\n\n\t\t$T->setVar('__paso_id_default', $conf_pasos->item(0)->getAttribute('paso_orden'));\n\t\t//$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t$orden = 1;\n\t\tforeach ($conf_pasos as $conf_paso) {\n\t\t\t$T->setVar('__paso_id', $conf_paso->getAttribute('paso_orden'));\n\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t$T->setVar('__paso_orden', $orden);\n\n\t\t\t$total_min_ponderado = 0;\n\t\t\t$total_max_ponderado = 0;\n\t\t\t$total_prom_ponderado = 0;\n\n\t\t\t$T->setVar('lista_items', '');\n\t\t\tforeach ($conf_ponderaciones as $conf_ponderacion) {\n\t\t\t\tif ($conf_ponderacion->getAttribute('valor') == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$tag_dato = $xpath->query(\"//detalles/detalle/detalles/detalle[@item_id=\".$conf_ponderacion->getAttribute(\"item_id\").\"]/detalles/detalle[@paso_orden=\".$conf_paso->getAttribute(\"paso_orden\").\"]/datos/dato\")->item(0);\n\n\t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n\t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\t\t\t\t$T->setVar('__item_inicio', $conf_ponderacion->getAttribute('inicio'));\n\t\t\t\t$T->setVar('__item_termino', $conf_ponderacion->getAttribute('termino'));\n\n\t\t\t\t$T->setVar('__paso_minimo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_min'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_maximo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_max'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_promedio', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_prom'), 2, ',', ''));\n\n\t\t\t\tif ($tag_dato == null) {\n\t\t\t\t\t$tiempo_minimo = 0;\n\t\t\t\t\t$tiempo_maximo = 0;\n\t\t\t\t\t$tiempo_promedio = 0;\n\t\t\t\t}else{\n\t\t\t\t\t$tiempo_minimo = $tag_dato->getAttribute('tiempo_min');\n\t\t\t\t\t$tiempo_maximo = $tag_dato->getAttribute('tiempo_max');\n\t\t\t\t\t$tiempo_promedio = $tag_dato->getAttribute('tiempo_prom');\n\t\t\t\t}\n\n\t\t\t\t//SE CALCULA EL PONDERADO\n\t\t\t\t$total_min_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_minimo) + $total_min_ponderado;\n\t\t\t\t$total_max_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_maximo) + $total_max_ponderado;\n\t\t\t\t$total_prom_ponderado = (($conf_ponderacion->getAttribute('valor')/100) * $tiempo_promedio) + $total_prom_ponderado;\n\n\t\t\t\t//SE ASIGNA VALOR DE LA PONDERACIÓN\n \t\t\t$T->setVar('__item_valor', number_format($conf_ponderacion->getAttribute('valor'), 2, '.', ''));\n\n\t\t\t\t$T->parse('lista_items', 'LISTA_ITEMS', true);\n\t\t\t\t$linea++;\n\t\t\t}\n\n\t\t\t$T->setVar('__min_total', number_format($total_min_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__max_total', number_format($total_max_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__prom_total', number_format($total_prom_ponderado, 2, ',', ''));\n\n\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n\t\t\t$orden++;\n\t\t}\n\n\t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n\t\t$this->resultado =$T->parse('out', 'tpl_tabla');\n\t}",
"public function getTargetRoas()\n {\n return $this->target_roas;\n }",
"public function getTargetRoas()\n {\n return $this->target_roas;\n }",
"public function getRuedas()\n {\n return $this->ruedas;\n }",
"public function getReplay()\n {\n return $this->get(self::_REPLAY);\n }",
"function AllReponces(){\n return $this->db->get($this->reponce)->result();\n }",
"public function getPaniers()\n {\n return $this->paniers;\n }",
"public function getRoms(){\n\t\tglobal $db;\n\t\t$sql = $db->prepare(\"SELECT * FROM project01_roms\");\n\t\t$sql->execute();\n\t\tif ($sql->rowCount()>0) {\n\t\t\t\t$sql = $sql->fetchAll();\n\t\t\t\t$this->roms = $sql;\n\t\t\t}\n\t\treturn $this->roms;\n\t}",
"public function getRomano(){\n\t\treturn $this->romano;\n\t}",
"public function getListePraticiens(){\n\t\t$req = \"select * from praticien order by PRA_NOM\";\n\t\t$rs = PdoGsb::$monPdo->query($req);\n\t\t$ligne = $rs->fetchAll();\n\t\treturn $ligne;\n\t}",
"public function actionGetRusados()\n {\n $connection=Yii::$app->db;\n $query='SELECT id_rep as id, fecreu as fecha, nomrep as nombre, canrep as cantidad, (prerep*canreu) as precio FROM `tblrepuestosu` JOIN `tblrepuesto` ON `id_rep`=`repreu` WHERE `id_rep`=`repreu`';\n $repuestos = $connection->createCommand($query)->queryAll();\n echo Json::encode($repuestos);\n }",
"public function getElevesRang() {\r\n $query = \"SELECT IDELEVE, NOMEL, PRENOMEL, SEXEEL, PHOTOEL, DATENAISSEL, MATRICULEEL, LIEUNAISSEL, AUTRENOMEL, \"\r\n . \"MOYGENERALE, POINTS, SUMCOEFF, \"\r\n . \"CASE WHEN @_last_moy = MOYGENERALE THEN @curRang ELSE @curRang := @_sequence END AS RANG, \"\r\n . \"@_last_moy := MOYGENERALE, @_sequence := @_sequence + 1 \"\r\n . \"FROM (\"\r\n . \"SELECT IDELEVE, NOMEL, PRENOMEL, SEXEEL, PHOTOEL, DATENAISSEL, MATRICULEEL, LIEUNAISSEL, AUTRENOMEL, \"\r\n . \"SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE, SUM(MOYENNE*COEFF) AS POINTS, \"\r\n . \"SUM(COEFF) AS SUMCOEFF \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC \"\r\n . \") TOTALS, (SELECT @curRang := 1, @_last_moy := 0, @_sequence := 1) r\";\r\n return $this->query($query);\r\n }",
"public function rain()\n {\n return $this->hasOne(Rain::class)->select(['precipitation']);\n }",
"public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }",
"public function prisoners()\n {\n return $this->hasMany('App\\Prisoner','prisoner_id');\n }",
"public function getRise() {}",
"public function getIdPROVEEDORES(){\n return $this->idPROVEEDORES;\n }",
"public function getMotivoRejeicao()\n {\n return $this->motivoRejeicao;\n }",
"public function plazo_restante_derivaciones(){\r\n //Tomamos los datos de la persona logueada\r\n $usuario_logueado = $this->datos_persona_logueada();\r\n foreach ($usuario_logueado as $usuario) {\r\n $id_cargo_logueado = $usuario->id_cargo;\r\n }\r\n\r\n //Tomamos las derivaciones recibidas del usuario logueado\r\n $derivaciones = $this->derivaciones_recibidas();\r\n\r\n //Tomamos la fecha actual\r\n $date = new Carbon();\r\n $hoy = Carbon::now();\r\n\r\n $array_plazo = array();\r\n\r\n //Obtenemos el plazo para obtener el tiempo restante de cada derivacion, armamos un array y lo mandamos\r\n foreach ($derivaciones as $derivacion) {\r\n $plazo = $derivacion->plazo;\r\n $fecha_creacion = $derivacion->fecha_creacion;\r\n\r\n //Ponemos en el formato correcto\r\n $fecha_creacion = Carbon::parse($fecha_creacion);\r\n\r\n //Restamos la fecha actual menos la de envio\r\n $dif_fechas = $fecha_creacion->diffInDays($hoy);\r\n\r\n //Verificamos el plazo restante\r\n $plazo_restante = $plazo - $dif_fechas;\r\n\r\n //Agregamos al array\r\n $array_plazo[] = $plazo_restante;\r\n }\r\n\r\n return $array_plazo;\r\n }",
"public function getR() {}",
"public function getPraticien()\n {\n return $this->praticien;\n }",
"public function getPersonales()\n {\n return $this->personales;\n }",
"public function getRepots()\n {\n return $this->hasMany(Repots::className(), ['id_hardware' => 'id']);\n }",
"public function obtenerTiposResiduos(){\n $this->tipoResiduoAccesoDatos->conectar();\n $resultado = $this->tipoResiduoAccesoDatos->obtenerTiposResiduos();\n $this->tipoResiduoAccesoDatos->cerrarConexion();\n return $resultado;\n }",
"public function getSlides()\n {\n return Slide::all();\n }",
"public function getPorAtender() {\n return $this->por_atender;\n }",
"public function getPresident()\n {\n return $this->get(self::_PRESIDENT);\n }",
"function get_puestos(){\r\n\r\n $salida=array();\r\n if($this->controlador()->dep('datos')->tabla('cargo')->esta_cargada()){\r\n $datos = $this->controlador()->dep('datos')->tabla('cargo')->get();\r\n //recupera el nodo al que pertenece el cargo\r\n $id_nodo=$this->controlador()->dep('datos')->tabla('cargo')->get_nodo($datos['id_cargo']); \r\n if($id_nodo<>0){\r\n $salida=$this->controlador()->dep('datos')->tabla('puesto')->get_puestos($id_nodo);\r\n }\r\n }\r\n return $salida;\r\n }",
"public function get_roster()\n\t\t{\n\t\t\t$retArr = null;\n\t\t\t// Scaffolding Code For Array:\n\t\t\t$objs = $this->obj->find_all();\n\t\t\t \n\t\t\tforeach($objs as $obj)\n\t\t\t{\n\t\t\t\t$basics = $obj->getBasics();\n\t\t\t\t$user = ORM::factory('User_Base',$basics['user']['id']);\n\n\n\t\t\t\t$extra = array(\n\t\t\t\t\t'position_name' => $this->obj->getPositionByUserteamslinkid($obj->id),\n\t\t\t\t\t'sport_name' => $basics['team']['org_sport_link']['sport']['sport_name']\n\t\t\t\t);\n\n\t\t\t\t$retArr[] = array_merge($user->getBasics(),$extra);\n\t\t\t}\n\n\t\t\treturn $retArr;\n\t\t}",
"public function getPrecios(){\n\t\t$precios = Precio::where('meses', '=', Input::get('meses'))\n\t\t->where('espacios', '=', Input::get('espacios'))\n\t\t->get()->toArray();\n\t\treturn Response::json($precios);\n\t}",
"public function getIdRedesSociales(){\n return $this->idRedesSociales;\n }",
"public function getRELIGION()\r\n {\r\n return $this->RELIGION;\r\n }",
"public function getCrops(){\n return $this->crops->crops(); \n }",
"public function representer() {\n return $this->belongsTo('Rockit\\Models\\Representer');\n }",
"public function getRuta() {\n return $this->ruta;\n }",
"public function getKmRecorridos()\n {\n return $this->kmRecorridos;\n }",
"public function rulersAction() {\n\t$rulers = new Rulers();\n\t$rulerList = $rulers->getRulerList($this->_getAllParams());\n\tif(in_array($this->_helper->contextSwitch()->getCurrentContext(),$this->_contexts)) {\n\t$data = array('pageNumber' => $rulerList->getCurrentPageNumber(),\n\t\t\t\t 'total' => number_format($rulerList->getTotalItemCount(),0),\n\t\t\t\t 'itemsReturned' => $rulerList->getCurrentItemCount(),\n\t\t\t\t 'totalPages' => number_format($rulerList->getTotalItemCount()/\n\t\t\t\t$rulerList->getCurrentItemCount(),0));\n\t$this->view->data = $data;\n\t$rulers = NULL;\n\n\tforeach($rulerList as $k){\n\n\t$action = $k['term'];\n\tswitch ($action) {\n\t\tcase $action == strtoupper('Roman'):\n\t\t\t$actionset = 'emperor';\n\t\t\t$module = 'romancoins';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Byzantine'):\n\t\t\t$module = 'byzantinecoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Greek and Roman Provincial');\n\t\t\t$module = 'greekromancoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Post Medieval'):\n\t\t\t$module = 'postmedievalcoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Early Medieval'):\n\t\t\t$module = 'earlymedievalcoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('Iron Age'):\n\t\t\t$module = 'ironagecoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\tcase $action == strtoupper('medieval');\n\t\t\t$module = 'medievalcoins';\n\t\t\t$actionset = 'ruler';\n\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t$actionset = 'ruler';\n\t\t\t$module = 'medievalcoins';\n\n\t}\n\t$rulers[] = array(\n\t'id' => $k['id'],\n\t'name' => $k['issuer'],\n\t'period' => $k['term'],\n\t'dateFrom' => $k['date1'],\n\t'dateTo' => $k['date2'],\n\t'url' => $this->view->serverUrl() . $this->view->url(array('module' => $module,\n\t'controller' => $actionset . 's' ,'action' => $actionset,'id' => $k['id']),null,true)\n\t);\n\t}\n\n\t$this->view->rulers = $rulers;\n\t} else {\n\t$this->view->rulers = $rulerList;\n\t}\n\t}",
"public function getnPaper()\n {\n $query = $this->db->get('paper');\n\n return $query->result();\n }",
"function getEspecialRendimientoPonderado(){\n \t\tglobal $mdb2;\n \t\tglobal $log;\n \t\tglobal $current_usuario_id;\n \t\tglobal $usr;\n\n\t\t//TRAE LAS PONDERACIONES DEL OBJETIVO ESPECIAL\n \t\t$ponderacion_hora = $this->extra['ponderaciones'];\n\n\t\t//DATO PARA LA CONSULTA SQL, LISTA LAS HORAS DEL DÍA\n\t\t//SI ES 0 TRAE LAS 24 HORAS\n\t\t$ponderacion = $usr->getPonderacion();\n\n\t\tif ($ponderacion == null) {\n\t\t\t$ponderacion_id = 0;\n\t\t}\n\t\telse {\n\t\t\t$ponderacion_id = $ponderacion->ponderacion_id;\n\t\t}\n\n \t\t$sql = \"SELECT * FROM reporte.rendimiento_resumen_global_ponderado(\".\n \t\t\t\tpg_escape_string($current_usuario_id).\", \".\n \t\t\t\tpg_escape_string($this->objetivo_id).\", \".\n \t\t\t\tpg_escape_string($ponderacion_id).\",' \".\n \t\t\t\tpg_escape_string($this->timestamp->getInicioPeriodo()).\"', '\".\n \t\t\t\tpg_escape_string($this->timestamp->getTerminoPeriodo()).\"')\";\n\n\t\t//echo '<1>'.$sql.'<br>';\n\n \t\t$res =& $mdb2->query($sql);\n \t\tif (MDB2::isError($res)) {\n \t\t\t$log->setError($sql, $res->userinfo);\n \t\t\texit();\n \t\t}\n\n \t\tif($row = $res->fetchRow()){\n \t\t\t$dom = new DomDocument();\n \t\t\t$dom->preserveWhiteSpace = FALSE;\n \t\t\t$dom->loadXML($row['rendimiento_resumen_global_ponderado']);\n \t\t\t$xpath = new DOMXpath($dom);\n \t\t\tunset($row[\"rendimiento_resumen_global_ponderado\"]);\n \t\t}\n\n \t\t$conf_objetivo= $xpath->query(\"/atentus/resultados/propiedades/objetivos/objetivo\")->item(0);\n \t\t$conf_pasos = $xpath->query(\"paso[@visible=1]\", $conf_objetivo);\n \t\t$conf_ponderaciones = $xpath->query(\"/atentus/resultados/propiedades/ponderaciones/item\");\n\t\t$conf_min_max = $xpath->query(\"/atentus/resultados/propiedades/eventos/evento\");\n\n\t\t//SE MUESTRA TEMPLATE SIN DATOS\n \t\tif ($xpath->query(\"//detalles/detalle/detalles/detalle\")->length == 0) {\n \t\t\t$this->resultado = $this->__generarContenedorSinDatos();\n \t\t\treturn;\n \t\t}\n\n\t\t//VALIDA QUE NO HAYA MAS DEL 100% DE PONDERACIONES\n\t\tforeach ($ponderacion_hora as $value) {\n\t\t\t$suma_pond += $value->valor_ponderacion;\n\t\t}\n\n\t\tif (number_format($suma_pond, 2) > 100) {\n\t\t\t$this->resultado = 'EL TOTAL DE LAS PONDERACIONES DEBE SER IGUAL A 100%.<br>ES SUPERIROR AL 100%.';\n\t\t\treturn;\n\t\t}elseif (number_format($suma_pond, 2) < 100) {\n\t\t\t$this->resultado = 'EL TOTAL DE LAS PONDERACIONES DEBE SER IGUAL A 100%.<br>ES MENOR AL 100%.';\n\t\t\treturn;\n \t\t}\n\n\t\t//TEMPLATE DEL REPORTE\n \t\t$T =& new Template_PHPLIB(($this->extra[\"imprimir\"])?REP_PATH_PRINTTEMPLATES:REP_PATH_TABLETEMPLATES);\n\t\t$T->setFile('tpl_tabla', 'especial_rendimiento_ponderado.tpl');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS_TITULO', 'lista_pasos_titulo');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_ITEMS', 'lista_items');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TITULOS', 'bloque_eventos_titulos');\n\t\t$T->setBlock('tpl_tabla', 'BLOQUE_EVENTOS_TOTAL', 'bloque_eventos_total');\n\t\t$T->setBlock('tpl_tabla', 'LISTA_PASOS', 'lista_pasos');\n\n\n\t\t$T->setVar('__paso_id_default', $conf_pasos->item(0)->getAttribute('paso_orden'));\n \t\t$T->setVar('__item_orden', $this->extra[\"item_orden\"]);\n\t\t$orden = 1;\n\t\tforeach ($conf_pasos as $conf_paso) {\n\t\t\t$T->setVar('__paso_id', $conf_paso->getAttribute('paso_orden'));\n\t\t\t$T->setVar('__paso_nombre', $conf_paso->getAttribute('nombre'));\n\t\t\t$T->setVar('__paso_orden', $orden);\n\n\t\t\t$total_min_ponderado = 0;\n\t\t\t$total_max_ponderado = 0;\n\t\t\t$total_prom_ponderado = 0;\n\n\t\t\t$T->setVar('lista_items', '');\n\t\t\tforeach ($conf_ponderaciones as $conf_ponderacion) {\n\t\t\t\t$valor=$ponderacion_hora[$conf_ponderacion->getAttribute('inicio')];\n\t\t\t\tif ($valor->valor_ponderacion == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$tag_dato = $xpath->query(\"//detalles/detalle/detalles/detalle[@item_id=\".$conf_ponderacion->getAttribute(\"item_id\").\"]/detalles/detalle[@paso_orden=\".$conf_paso->getAttribute(\"paso_orden\").\"]/datos/dato\")->item(0);\n\n \t\t\t\t$T->setVar('__print_class', ($linea % 2 == 0)?\"celdaIteracion2\":\"celdaIteracion1\");\n \t\t\t\t$T->setVar('__class', ($linea % 2 == 0)?\"celdanegra15\":\"celdanegra10\");\n\t\t\t\t$T->setVar('__item_inicio', $conf_ponderacion->getAttribute('inicio'));\n\t\t\t\t$T->setVar('__item_termino', $conf_ponderacion->getAttribute('termino'));\n\n\t\t\t\t$T->setVar('__paso_minimo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_min'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_maximo', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_max'), 2, ',', ''));\n\t\t\t\t$T->setVar('__paso_promedio', ($tag_dato == null)?'S/I':number_format($tag_dato->getAttribute('tiempo_prom'), 2, ',', ''));\n\n\t\t\t\tif ($tag_dato == null) {\n\t\t\t\t\t$tiempo_minimo = 0;\n\t\t\t\t\t$tiempo_maximo = 0;\n\t\t\t\t\t$tiempo_promedio = 0;\n\t\t\t\t}else{\n\t\t\t\t\t$tiempo_minimo = $tag_dato->getAttribute('tiempo_min');\n\t\t\t\t\t$tiempo_maximo = $tag_dato->getAttribute('tiempo_max');\n\t\t\t\t\t$tiempo_promedio = $tag_dato->getAttribute('tiempo_prom');\n\t\t\t\t}\n\n\t\t\t\t//SE CALCULA EL PONDERADO\n\t\t\t\t$total_min_ponderado = (($valor->valor_ponderacion/100) * $tiempo_minimo) + $total_min_ponderado;\n\t\t\t\t$total_max_ponderado = (($valor->valor_ponderacion/100) * $tiempo_maximo) + $total_max_ponderado;\n\t\t\t\t$total_prom_ponderado = (($valor->valor_ponderacion/100) * $tiempo_promedio) + $total_prom_ponderado;\n\n\t\t\t\t//SE ASIGNA VALOR DE LA PONDERACIÓN\n \t\t\t$T->setVar('__item_valor', number_format($valor->valor_ponderacion, 2, '.', ''));\n\n\t\t\t\t$T->parse('lista_items', 'LISTA_ITEMS', true);\n \t\t\t\t$linea++;\n \t\t\t}\n\n\t\t\t$T->setVar('__min_total', number_format($total_min_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__max_total', number_format($total_max_ponderado, 2, ',', ''));\n\t\t\t$T->setVar('__prom_total', number_format($total_prom_ponderado, 2, ',', ''));\n\n\t\t\t$T->parse('lista_pasos', 'LISTA_PASOS', true);\n \t\t\t$orden++;\n \t\t}\n\n \t\t$this->tiempo_expiracion = (strtotime($xpath->query(\"//fecha_expiracion\")->item(0)->nodeValue) - strtotime($xpath->query(\"//fecha\")->item(0)->nodeValue));\n \t\t$this->resultado =$T->parse('out', 'tpl_tabla');\n \t}",
"function getRA() {\n return $this->star->ra;\n }",
"public function getProvisioners()\n {\n return $this->provisioners;\n }",
"public function getAliquotaReaisPis()\n {\n return $this->aliquotaReaisPis;\n }",
"public function getPanose() {}",
"public function getRoe()\n {\n return $this->roe;\n }",
"public function getPoster(){\n return $this->film['poster'];\n }",
"public function recuperar(): array {\r\n \r\n $autorDao = new AutorDao();\r\n \r\n $livros = [];\r\n $query = \"SELECT livro.*, editora.nome \"\r\n . \"FROM livro \"\r\n . \"INNER JOIN editora ON \"\r\n . \"editora.id = livro.editora_id\";\r\n \r\n $statement = $this->pdo->prepare($query);\r\n $statement->execute();\r\n while($registro = $statement->fetch(\\PDO::FETCH_LAZY)){\r\n $livro = $this->hydrate((array) $registro);\r\n $livro->autores = $autorDao->recuperarPorLivro($livro->id);\r\n $livros[] = $livro;\r\n }\r\n return $livros;\r\n }",
"public function rutas()\n {\n return $this->hasMany('App\\Models\\Ruta', 'id_dificultad');\n }",
"private function getPermisos()\n {\n $user = Zend_Auth::getInstance()->getIdentity();\n $roles = $user->getRoles();\n $permisos = array();\n \n foreach ($roles as $rol) {\n $permisos = array_merge($permisos, $this->permisosPorUC[$rol]);\n }\n \n return $permisos;\n }",
"public function get()\n {\n $this->plasma = $this->load->database('plasma', TRUE);\n $this->plasma->order_by('descripcion', 'asc');\n $query = $this->plasma->get('rol');\n return $query->result_array();\n }",
"public function getOrganismeRetraite() {\n return $this->organismeRetraite;\n }",
"public function getPersData(){ \r\n\t\t$persArticleData = array(\r\n\t\t\t'firm' => $this->get_company(),\r\n\t\t\t'title' => $this->get_title(),\r\n\t\t\t'firstname' => $this->get_firstname(),\r\n\t\t\t'middlename' => $this->get_middlename(),\r\n\t\t\t'lastname' => $this->get_lastname(),\r\n\t\t\t'email' => $this->get_email(),\r\n\t\t\t'jobstatus' => $this->get_jobstatus(),\r\n\t\t\t//'vouchercode' => $this->get_vouchercode(),\r\n\t\t\t'info' => $this->getInfoValuesAsArray(),\r\n\t\t);\r\n\t\t\t\t\r\n\t\treturn $persArticleData;\r\n\t}",
"public function rois()\n\t{\n\t\t\n\t\treturn $this->hasMany(ROI::class, \"investment_id\", \"id\");\n\t\t\n\t}",
"public function getRaithSeinar()\n {\n \tif (null === $this->raithSeinar)\n \t{\n \t $path = __DIR__ . '/vcards/RaithSeinar.vcf';\n \n $parser = new VCardParser();\n $vcards = $parser->importFromFile($path);\n \n $this->assertCount(1, $vcards);\n\t $this->raithSeinar = $vcards[0];\n \t}\n\treturn $this->raithSeinar;\n }",
"public function getRaithSeinar()\n {\n \tif (null === $this->raithSeinar)\n \t{\n \t $path = __DIR__ . '/vcards/RaithSeinar.vcf';\n \n $parser = new VCardParser();\n $vcards = $parser->importFromFile($path);\n \n $this->assertCount(1, $vcards);\n\t $this->raithSeinar = $vcards[0];\n \t}\n\treturn $this->raithSeinar;\n }",
"private function generarPlanillaPresupuesto()\r\n\t\t{\r\n\t\t\t$generar = New GenerarPlanillaPresupuesto($this->_recibo);\r\n\t\t\t$distribucion = $generar->iniciarPlanillaPresupuesto();\r\n\t\t\tif ( count($generar->getError()) > 0 ) {\r\n\t\t\t\t$distribucion = [];\r\n\t\t\t}\r\n\t\t\treturn $distribucion;\r\n\t\t}",
"public function permisos() {\n\t\treturn $this->seguridad;\n\t}",
"public function getPermisos(){\n\t\t$sql = \"SELECT id_permiso, permiso FROM permisos WHERE id_permiso >1 ORDER BY id_permiso\";\n\t\t$params = array(null);\n\t\treturn Database::getRows($sql, $params);\n\t}",
"public function list_cites_mod_presupuestaria(){\n $sql = 'select *\n from modificacion_presupuestaria mp\n Inner Join _distritales as ds On ds.dist_id=mp.dist_id\n Inner Join _departamentos as d On d.dep_id=ds.dep_id\n where mp.g_id='.$this->gestion.'\n order by mp_id asc';\n\n $query = $this->db->query($sql);\n return $query->result_array();\n }",
"public function getSubstitutesGuest()\n {\n $players = $this->profileSrv->loadProfiles($this->match->getSubstitutesGuest());\n $ret = [];\n foreach ($players as $player) {\n $ret[] = $this->substPlayer($player);\n }\n\n return $ret;\n }",
"public function getReagents()\n {\n //Definimos un array para almacenar los datos que retornaremos\n $data = array();\n\n $idUser = Auth::user()->id;\n //Consultamos las materias registradas por el usuario\n $dataSubjects = Subject::where('user_id',$idUser)->where('state',true)->get();\n //Consultamos la cantidad de reactivos que tiene cada materia\n foreach ($dataSubjects as $dataSubject) {\n $countReagent = Reagent::where('subject_id','=',$dataSubject->id)->count();\n //Consultamos todas las preguntas que tengan una observacion de rectificación\n $data[] = [\n \"id\" => $dataSubject->id,\n \"subject\" => $dataSubject->subject,\n \"reagents\" => $countReagent,\n \"observations\" => 38\n ];\n }\n //Retornamos los datos a la vista en formato json\n return json_encode($data);\n }",
"public function getLivres()\r\n\t{\r\n\t\treturn $this->livres;\r\n\t}",
"public function permisos()\n {\n return $this->belongsToMany(Permiso::class,\n PermisoAttr::PERMISOS_ROLES, 'rol_id', 'permiso_id');\n }",
"public function getResidence()\n {\n return $this->residence;\n }",
"function get_repartidossres() //obtiene los repartidores\n {\n\n $repartidores = DB::table('repartidores')->get();\n return $repartidores;\n }",
"public function get_papers()\n\t{\n\t\treturn $this->papers;\n\t}",
"public function getReservaciones() {\n $pdo = Database::connect();\n $sql = \"select * from reservacion order by id_reservacion\";\n $resultado = $pdo->query($sql);\n //transformamos los registros en objetos:\n $listadoReserva = array();\n foreach ($resultado as $res) {\n $reservacion = new reservacion($res['nombre_paciente'], $res['id_medico'], $res['id_reservacion'], $res['descripcion'], $res['nota'], $res['fecha_cita'], $res['hora_cita'], $res['fecha_creacion']);\n array_push($listadoReserva, $reservacion);\n }\n Database::disconnect();\n //retornamos el listado resultante:\n return $listadoReserva;\n }",
"public static function getRFPs(){\n\n\t\t//Get all rfps from database\n\t\t$db = self::getDB();\n\t\t$rfp_collection = $db->rfps; \n\t\t$rfp_cursor = $rfp_collection->find(); //Change this to check dates\n\n\t\treturn $rfp_cursor;\n\n\t}",
"public function getEstatusRequerimientoRequerimientos()\n {\n return $this->hasMany(EstatusRequerimientoRequerimiento::className(), ['id_estatus_requerimiento' => 'id_estatus_requerimiento']);\n }",
"public function getReplies(): array\n\t{\n\n\t}",
"public static function get_all_sliders() {\n\t\treturn array_merge( self::get_layer_sliders(), self::get_rev_sliders() );\n\t}",
"public function getRPreimage()\n {\n return $this->r_preimage;\n }",
"public function getMyRepertoire()\n {\n $this->tasteTheCookie();\n\n $cinemaEmail = $_REQUEST[\"cinemaEmail\"];\n $day = $_REQUEST[\"day\"];\n $page = $_REQUEST[\"page\"];\n\n $aamdl = new AACinemaModel();\n $results = $aamdl->findMyMovieRepertoire($cinemaEmail, $day, $page);\n\n echo json_encode($results);\n }",
"public function get_personal(){\r\n\t\t$con = new Conectar();\r\n\t\t$micon = $con->conexion();\r\n\t\t$sql = \"select * from personal;\";\r\n\t\t$res = $micon->query($sql);\r\n\t\t\r\n\t\t while ($reg = $res->fetch_assoc())\r\n {\r\n\t\t\t\t $this->pers[] = $reg;\r\n\t\t\t\t } \r\n\t\t\r\n\t\treturn $this->pers;\r\n\t}",
"public function getDps()\n {\n return $this->get(self::_DPS);\n }",
"public function restaurents()\n {\n return $this->hasMany(Restaurent::class);\n }",
"public function getDps()\n {\n return $this->get(self::_DPS);\n }",
"public function getDps()\n {\n return $this->get(self::_DPS);\n }",
"public function getRealms()\n {\n return $this->realms;\n }"
] | [
"0.69906235",
"0.61914563",
"0.58452016",
"0.5788801",
"0.57243705",
"0.57128435",
"0.56435776",
"0.56159204",
"0.56151587",
"0.5611966",
"0.5605238",
"0.55988073",
"0.55771416",
"0.5500865",
"0.5499776",
"0.54973227",
"0.54723924",
"0.54644465",
"0.54556805",
"0.5436903",
"0.5436903",
"0.54320264",
"0.54286504",
"0.5417521",
"0.5417521",
"0.5388565",
"0.53833115",
"0.53826857",
"0.5376832",
"0.5370063",
"0.5360519",
"0.5301467",
"0.5272049",
"0.52510166",
"0.5227265",
"0.5226944",
"0.5225229",
"0.5215915",
"0.5213229",
"0.51735884",
"0.515669",
"0.5142413",
"0.5124596",
"0.5118275",
"0.5116727",
"0.5116181",
"0.5115026",
"0.5103971",
"0.50972646",
"0.50961727",
"0.5093325",
"0.5087072",
"0.5079647",
"0.5076197",
"0.50692576",
"0.50572234",
"0.5053714",
"0.5044062",
"0.50434756",
"0.5041236",
"0.5038201",
"0.50351095",
"0.5025837",
"0.50256526",
"0.50225425",
"0.50152224",
"0.5014794",
"0.5014338",
"0.50044733",
"0.50008166",
"0.49955484",
"0.49843702",
"0.49708116",
"0.4970211",
"0.49688068",
"0.49688068",
"0.4957087",
"0.49421307",
"0.49339515",
"0.49300227",
"0.49262613",
"0.49239138",
"0.49192664",
"0.49182358",
"0.49166313",
"0.4913785",
"0.49119014",
"0.49088672",
"0.4908811",
"0.49083647",
"0.490281",
"0.49024597",
"0.49018744",
"0.49012515",
"0.49012437",
"0.4896447",
"0.48960525",
"0.48953444",
"0.48953444",
"0.48928425"
] | 0.80090326 | 0 |
Get the signature date. | public function getSignatureDate() {
return $this->signatureDate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSignature();",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature() {\n\t\treturn $this->signature;\n\t}",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"function getSignature()\n {\n return $this->_signature;\n }",
"public function getSignature() : string\n {\n return $this->signature;\n }",
"public function getDateSignature1(): ?DateTime {\n return $this->dateSignature1;\n }",
"public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}",
"public function getSignatureHeader()\n {\n return $this->signature_header;\n }",
"public function getHeaderDate()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__DATE];\r\n\t}",
"public function getMaturityDate()\n {\n $maturityDates = $this->collectData();\n\n return $maturityDates[0];\n }",
"public function getDocumentUploadDate() {\n return $this->document['uploadDate'];\n }",
"public function getSignature()\n {\n $signString= sprintf(\"%s\\n%s\\n%s\\n%d\", $this->topic, $this->consumerId, $this->message->getMessageHandle(), $this->time);\n return base64_encode(hash_hmac('sha1', $signString, $this->getAuthorization()->getAccessSecret(), true));\n }",
"public function getDateSignature2(): ?DateTime {\n return $this->dateSignature2;\n }",
"public function getDateSignature4(): ?DateTime {\n return $this->dateSignature4;\n }",
"public function getHeaderSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__SIGNATURE];\r\n\t}",
"public function getDateSignature5(): ?DateTime {\n return $this->dateSignature5;\n }",
"public function getFormationDate()\n {\n $value = $this->get(self::FORMATIONDATE);\n return $value === null ? (string)$value : $value;\n }",
"public function getPaymentDate();",
"public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }",
"public function getSignature(): string\n {\n return $this->getName();\n }",
"public function getDate();",
"public function getDate();",
"function getAuthSignature()\n {\n return $this->_authSignature;\n }",
"public static function getPubDate()\n {\n return self::$pubDate;\n }",
"private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }",
"function vads_trans_date() {\n $date = date('YmdHis');\n return $date;\n }",
"public function setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }",
"public function setSignatureDate(DateTime $signatureDate = null) {\n $this->signatureDate = $signatureDate;\n return $this;\n }",
"public function getDateSignature3(): ?DateTime {\n return $this->dateSignature3;\n }",
"public function getUploadDate() {\n\t\treturn $this->uploadDate;\n\t}",
"public function animalRegistrationDate() {\n $registration = $this->animalRegistration();\n\n if (!isset($registration)) {\n return null;\n }\n\n return (new DateTime($registration->created_at))->format('d.m.Y');\n }",
"public function getPublicationDate()\n {\n return $this->publicationDate;\n }",
"public function date();",
"public function date();",
"function sign($date) {\n $key = base64_decode('MIIEowIBAAKCAQEA5NmI8GIsupuvOMXR4yfs8hK2RUmX/CKlHmLEr/b1mPr/gx+fenafOSKoXs7OUvUxF/CR0EW6iUJvJ9lmTACTZFsTfF+mSJZ76dpuh6J8BQj9lpnH+AEp05LqLr2zvlzkksrjYSW4hfaZqfUZDk8YvGsdBqDpWrEykD16R5Jv5Iw/Y13Jd99F5zYU+Z3M+XdBSrFSaDwU5GeiOQVyl8q/Bt9gY7O1HfqYY9udXmAzPfEaZdCqCj7B8V8Sj7Wc92TZ/fHabZFKzfhVwfHCAzK4mQZ1be8snJd1f9R2peqjzBEINGdOnAnm0rGItKZJY91LMYi5H6Wh/Qh21CYY4Ne2wwIDAQABAoIBAEKXQg+goZ9TOfNtLJvKvFncNAmJVp5Zfm6PEuiZFfID52HCS+eYqNA5U4Dy8HqXOkfbCrLt90+Fc07HJcsrx7fGAK+KLZqlnzz3AH6bOzdD3HZ8HQH/ZKpZ76bWMH1ODnzgaLWWAlGI5kHcPgQ549q/2FxbakunkC0ElpZI+CIqWEf0zNfTXOpExMWx+FENntk/qpHijE+zcbh1/cy8Bsmj0WcXZ3aTDElG3XCC21rPd7zgrFeL6Sy26Br0eqxqddatghZHB5PhZYE4BYM3AlZTZVfuDHogXn4BXILTyV+oQHNUzHKjStfVryJnslnWVAF5whaXGm1fyRY3WBAEmuECgYEA+AivBccqnKfgB7BTDTUMCdt7v+vVbR7CEZc5/jCRy+N0R6NN/L/+LdAAjsodjzVmkLOUzPbZhw72hHXA63RijAhSDeg8IdCUY1YVygyr5KZpHRnn96XJOucPCCFWFfiToJ2Qz+JfZMBUt9HhsSWGS2jF2hUGjixhRwFwTd5xtYsCgYEA7DMe0bJeF336UtgrY9MNVC1sc/A8sEeYtlr47rcLlRDboaO9PRsuIMssxiZ/9uRkYP1FDmS3S8pgwg4UuoVUYHg5Tt95iq3aK0BRQnpKuGIerbBCwFUBZMwpP1DW3fMKtOQ5pjoV74tqR+df7gD0hWlfMFV8WUP9vXLa+XBcWqkCgYEA85sbw3IEsQ3UY9jTCSKzqy7NUQcgfGb8NmiwBa7QU08XUpDatMYgsAAdvCBYfeH11WL7X3+G0DZq+lfo3ZhWfbBiXtRb0t5YD2RqTCK75PtoO7PI95r1lAuB4PtU4Ile/R4kL3jnNj4MNupFX0Y6qu/BetqxsIt4E1QfZ+t1BNcCgYBrDiCB2t5at3al5eSEsjvwU0Y8pj5bh5fnzwPU7pIJVkK12IkFETSvGGeKyBhnxszYSPLruyp455lDWy55+8RqlRMkdJWaDYI86EHsZ5FGUPKmtqUKl3yyOvbXA8TfhDDuHCMk/F7E2+OoA26vaS9q6H+EYLqjmvV+0Hf/ZrX1QQKBgGd8r9wi+fPG3IgGXHBQjmnVgaPNsvQzBKFmHrER0/iLZuA9A2R5x7DxZdHUSRWaPADIaHiU1O9jbNJCk7Jtnqn7M85Q0SRsqZhA2+28/1bmqrTkQmT7T9Q4+hUEN+qehZx83BkRYaP1QWuH11UcRxFr+O3HNXlC9mAG/zt6HhuV');\n $sig = hash_hmac('SHA1', $date, $key, true);\n $sig = base64_encode($sig);\n return $sig;\n }",
"private function getSignature()\n\t{\n\t\t$string_to_sign = mb_convert_encoding(\n\t\t\t$this->http_verb . $this->uri . $this->timestamp . $this->nonce,\n\t\t\t'UTF-8'\n\t\t);\n\t\treturn base64_encode(\n\t\t\thash_hmac(\n\t\t\t\t'sha1',\n\t\t\t\t$string_to_sign,\n\t\t\t\t$this->secret,\n\t\t\t\ttrue\n\t\t\t)\n\t\t);\n\t}",
"public static function getDate() {\r\n\t\treturn date('Y-m-d H:i:s');\r\n\t}",
"public function getDate()\n {\n $yearconst = $this->getValue(self::XPATH_YEAR);\n $monthconst = $this->getValue(self::XPATH_MONTH);\n $dayconst = $this->getValue(self::XPATH_DAY);\n\n return $this->formateDate($yearconst, $monthconst, $dayconst);\n }",
"private function date()\n {\n $pubDate = $this->article->Journal->JournalIssue->PubDate;\n \n if (isset($pubDate->MedlineDate)) {\n $date = (string)$pubDate->MedlineDate;\n } else {\n $date = implode(' ', (array)$pubDate);\n }\n \n return $date;\n }",
"public function date() {\n return $this->begin;\n }",
"public function getPubDate()\n {\n return $this->_pubDate;\n }",
"public function getSignature() {\n\t\treturn md5(get_class($this));\n\t}",
"public function getSignature()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-Hub-Signature']) ? $headers['X-Hub-Signature'] : null;\n }",
"private static function generateSignature() {\n $result = microtime(true);\n return substr($result, -7);\n }",
"public function getVerifiedDate()\n {\n return $this->getProperty()->verifiedDate;\n }",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"public function getDate()\n\t{\n\t\treturn $this->date;\n\t}",
"public function getTimestamp()\n {\n return $this->dateIssued->getTimestamp();\n }",
"public function getDate()\r\n {\r\n return $this->date;\r\n }",
"public function getDate() {\n\t\treturn $this->_date;\n\t}",
"public function getDate_creation()\n {\n return $this->date_creation;\n }",
"private function signature(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\t\t\t\n\t\t\t$first_name = $this->_request['first_name'];\t\t\n\t\t\t$last_name = $this->_request['last_name'];\t\n\t\t\t$data = $this->_request['data'];\n\t\t\t$current_datetime = new DateTime(); \n\t\t\t$sig_name = strtolower(preg_replace(\"/[\\W\\s+]/\",\"\", $first_name.'_'.$last_name.'_'.$current_datetime->format('Y-m-d_His')));\n\t\t\t$signature = base64_decode(str_replace(\"data:image/png;base64,\",\"\",$data));\n\t\t\t$result=file_put_contents(\"../signatures/\".$sig_name.\".png\",$signature);\t\n\t\t\tif($result){\n\t\t\t\t $this->response($sig_name.'.png', 200);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// If invalid inputs \"Bad Request\" status message and reason\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Signature Failed\");\n\t\t\t\t$this->response($this->json($error), 400);\t\t\t\t\t\t\n\t\t\t}\t\t\n\t\t}",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getInvoiceDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->invoiceDate;\r\n\t}",
"public function getDate() {\n return $this->date;\n }",
"public function getPublicationDate()\n\t\t{\n\t\t\tif(is_null($this->data))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\tif(!array_key_exists('publish_date', $this->data))\n\t\t\t\treturn null;\n\t\t\t\n\t\t\t//return DateTime::createFromFormat('M j, Y', $this->data['publish_date']);\n\t\t\treturn $this->data['publish_date'];\n\t\t}",
"public function getResumeDate()\n {\n return isset($this->transaction['resumeDate']) ? $this->transaction['resumeDate'] : '';\n }",
"public function getDate()\n {\n return $this->date;\n }",
"protected function getDate() {\n\t\treturn date('Y-m-d h:i:s');\n\t}",
"public function getTransactionSignature()\n {\n return $this->transactionSignature;\n }",
"public function getDate(): string;",
"public function getDate()\n {\n return $this->_date;\n }",
"function get_creation_date()\n\t{\n\t\treturn $this->creation_date;\n\t}",
"public function getExpiryDate(){\n\t\t$expiryDate = $this->config->getAppValue('owncollab_ganttchart', 'shareExpiryDate', 0);\n\t\treturn $expiryDate;\n\t}"
] | [
"0.6996184",
"0.6928079",
"0.6928079",
"0.6928079",
"0.6928079",
"0.6928079",
"0.6896828",
"0.68161833",
"0.68161833",
"0.6786824",
"0.67263967",
"0.6546772",
"0.6539167",
"0.64912343",
"0.64847696",
"0.6459992",
"0.6444085",
"0.6397334",
"0.63852197",
"0.6354066",
"0.63538194",
"0.6326469",
"0.6324099",
"0.6220645",
"0.6210527",
"0.6189656",
"0.6183096",
"0.6183096",
"0.6182183",
"0.617939",
"0.61482215",
"0.6138981",
"0.61353576",
"0.61353576",
"0.61180675",
"0.60810703",
"0.6072447",
"0.6064068",
"0.6061275",
"0.6061275",
"0.6048169",
"0.6036127",
"0.6021858",
"0.6017015",
"0.6011226",
"0.6000413",
"0.5995032",
"0.59665036",
"0.59594846",
"0.5943886",
"0.59373355",
"0.5932915",
"0.5932915",
"0.5932915",
"0.5922663",
"0.5911958",
"0.59084505",
"0.5905054",
"0.589726",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5897244",
"0.5895788",
"0.5894414",
"0.5892059",
"0.5891368",
"0.5888864",
"0.58878267",
"0.58784616",
"0.58769804",
"0.58689106",
"0.5864233",
"0.5862887"
] | 0.8690396 | 1 |
Get the signature nom. | public function getSignatureNom() {
return $this->signatureNom;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSignature();",
"public function getSignature(): string\n {\n return $this->getName();\n }",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"public function getSignature() : string\n {\n return $this->signature;\n }",
"public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}",
"public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }",
"public function getSignature() {\n\t\treturn $this->signature;\n\t}",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }",
"function getSignature()\n {\n return $this->_signature;\n }",
"public function getHeaderSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__SIGNATURE];\r\n\t}",
"public function getSignatureType(): string\n {\n return $this->type->getSignatureType();\n }",
"public static function getSignature()\n {\n return ':meta';\n }",
"public function getSig()\n {\n return $this->sig;\n }",
"private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }",
"private function getSignature()\n\t{\n\t\t$string_to_sign = mb_convert_encoding(\n\t\t\t$this->http_verb . $this->uri . $this->timestamp . $this->nonce,\n\t\t\t'UTF-8'\n\t\t);\n\t\treturn base64_encode(\n\t\t\thash_hmac(\n\t\t\t\t'sha1',\n\t\t\t\t$string_to_sign,\n\t\t\t\t$this->secret,\n\t\t\t\ttrue\n\t\t\t)\n\t\t);\n\t}",
"public function getSignatureHeader()\n {\n return $this->signature_header;\n }",
"public function getUserSignature(): ?string;",
"public function getSignature() {\n\t\treturn md5(get_class($this));\n\t}",
"public function getSignatureQualite() {\n return $this->signatureQualite;\n }",
"public function getSignatureQualite() {\n return $this->signatureQualite;\n }",
"public static function getSignature()\n {\n return ':originalData';\n }",
"public function getSignatureVille() {\n return $this->signatureVille;\n }",
"public function getSignatureVille() {\n return $this->signatureVille;\n }",
"public function getSignature()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-Hub-Signature']) ? $headers['X-Hub-Signature'] : null;\n }",
"public function getSignatureQualiteCode() {\n return $this->signatureQualiteCode;\n }",
"public function getSignature() : string\n {\n\n return $this->httpMethod . ':' . $this->uri;\n }",
"public function getSignatureKey(): ?string\n {\n return $this->signatureKey;\n }",
"public function getStringForResponseSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__TARGET_API]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__DATE]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__PLATFORM_GID]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__SOURCE_GID]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__RANDOM]\r\n\t\t\t\t. $this->body;\r\n\t}",
"public function getSigner()\n {\n if (array_key_exists(\"signer\", $this->_propDict)) {\n return $this->_propDict[\"signer\"];\n } else {\n return null;\n }\n }",
"protected function getSignatureFromRequest()\n\t{\n\t\t$signature = $this->request->header($this->config['signature_header'], null);\n\n\t\tif (is_null($signature) || $signature === '') {\n\t\t\tthrow new AlexaVerificationException('Request signature verification failed: no signature present in header.');\n\t\t}\n\n\t\treturn base64_decode($signature);\n\t}",
"public function getFirstDocumentSignatureFilename()\n {\n if ($this->getDocumentSignaturesCount() > 0) {\n /** @var DocumentSignature $signature */\n $signature = $this->documentSignatures->first();\n\n return $signature->getDocument()->getFilename();\n }\n\n return;\n }",
"public function getSignature()\n {\n $signString= sprintf(\"%s\\n%s\\n%s\\n%d\", $this->topic, $this->consumerId, $this->message->getMessageHandle(), $this->time);\n return base64_encode(hash_hmac('sha1', $signString, $this->getAuthorization()->getAccessSecret(), true));\n }",
"public function getSignatureKeyId()\n {\n return $this->signature_key_id;\n }",
"private static function generateSignature() {\n $result = microtime(true);\n return substr($result, -7);\n }",
"function signature()\r\n\t{\r\n\t\tglobal $ibforums, $std, $print;\r\n\r\n\t\t$t_sig = $this->parser->unconvert($this->member['signature'], $ibforums->vars['sig_allow_ibc'], $ibforums->vars['sig_allow_html']);\r\n\r\n\t\t$ibforums->lang['the_max_length'] = $ibforums->vars['max_sig_length']\r\n\t\t\t? $ibforums->vars['max_sig_length']\r\n\t\t\t: 0;\r\n\r\n\t\t$data = array(\r\n\t\t\t'TEXT' => $this->member['signature'],\r\n\t\t\t'SMILIES' => 1,\r\n\t\t\t'CODE' => 1,\r\n\t\t\t'SIGNATURE' => 0,\r\n\t\t\t'HTML' => $ibforums->vars['sig_allow_html'],\r\n\t\t);\r\n\r\n\t\t$this->member['signature'] = $this->parser->prepare($data);\r\n\r\n\t\tif ($ibforums->vars['sig_allow_html'] == 1)\r\n\t\t{\r\n\t\t\t$this->member['signature'] = $this->parser->parse_html($this->member['signature'], 0);\r\n\t\t}\r\n\r\n\t\t$this->output .= View::make(\r\n\t\t\t\"ucp.signature\",\r\n\t\t\t[\r\n\t\t\t\t'sig' => $this->member['signature'],\r\n\t\t\t\t't_sig' => $t_sig,\r\n\t\t\t\t'key' => $std->return_md5_check(),\r\n\t\t\t\t'select_syntax' => $std->code_tag_button()\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->page_title = $ibforums->lang['t_welcome'];\r\n\t\t$this->nav = array(\"<a href='\" . $this->base_url . \"act=UserCP&CODE=00'>\" . $ibforums->lang['t_title'] . \"</a>\");\r\n\r\n\t}",
"public function getSigner()\n {\n return $this->get(self::SIGNER);\n }",
"public function signature() {\r\n\t\t$signature = \"\";\r\n\t\tif ($this->isFinal) {\r\n\t\t\t$signature .= \"final \";\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->isPublic) {\r\n\t\t\t$signature .= \"public \";\r\n\t\t}\r\n\t\telseif ($this->isPrivate) {\r\n\t\t\t$signature .= \"private \";\r\n\t\t}\r\n\t\telseif ($this->isProtected) {\r\n\t\t\t$signature .= \"protected \";\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->isStatic) {\r\n\t\t\t$signature .= \"static \";\r\n\t\t}\r\n\t\t$signature .= \"function \".$this->name.\" \";\r\n\t\t$signature .= \"(\";\r\n\t\t$params = array();\r\n\t\tforeach($this->parameters as $parameter) {\r\n\t\t\t$params[] = $parameter->signature();\r\n\t\t}\r\n\t\t$signature .= implode(\", \",$params);\r\n\t\t$signature .= \")\";\r\n\t\treturn $signature;\r\n\t}",
"public function getSignature($raw = false)\n {\n if ($raw) {\n return Hex::decode($this->signature);\n }\n return $this->signature;\n }",
"public function getDigestMethod() {\n $signer = $this->header->getSigner();\n if ($signer !== false) {\n return (string) $signer;\n }\n return false;\n }",
"function getAuthSignature()\n {\n return $this->_authSignature;\n }",
"public function getSignatureAlgorithm()\n {\n return $this->signature_algorithm;\n }",
"public function getSignatureDate() {\n return $this->signatureDate;\n }",
"public function getSignatureDate() {\n return $this->signatureDate;\n }",
"public function getSignature()\n {\n $input = $this->getArgs();\n\n $str = \"\";\n foreach ($input as $key => $val) {\n $str .= $key . \"=\" . $val . \"&\";\n }\n\n $str .= \"password=\" . $this->config->password;\n return $this->hashFunction($str);\n }",
"function sign()\r\n {\r\n return $this->Sign;\r\n }",
"public function getMpiSignature()\n {\n /** @var $oPmModule oxModule|OxpsPaymorrowModule */\n $oPmModule = oxRegistry::get( 'OxpsPaymorrowModule' );\n\n return sprintf(\n 'Oxid-%s_%s',\n $this->getConfig()->getVersion(), // Shop Version\n $oPmModule->getPaymorrowModuleVersion() // Paymorrow Module version\n );\n }",
"protected function signKeyName() {\n\t\t\treturn $this->signKeyName ?: 'default';\n\t\t}",
"function fiftyone_degrees_get_signature_string($signature, $headers) {\n $bytes = array();\n $length = fiftyone_degrees_get_signature_length($signature, $headers);\n for($i = 0; $i < $length; $i++) {\n $bytes[$i] = ord('_');\n }\n foreach ($signature['node_indexs'] as $node_index) {\n $node = fiftyone_degrees_read_node($node_index, $headers);\n $node_characters = fiftyone_degrees_get_node_characters($node, $headers);\n $node_char_count = count($node_characters);\n for ($i = 0; $i < $node_char_count; $i++) {\n $bytes[$node['position'] + $i + 1] = $node_characters[$i];\n }\n }\n $string = '';\n foreach($bytes as $byte) {\n $string .= chr($byte);\n }\n return $string;\n}",
"public function signature()\n {\n return 'Vero: ' . \\Vero\\Version::VERSION;\n }",
"function signature()\r\n\t{\r\n\t\t$feelings = array(\r\n\t\t\t'Happy', 'Excited', 'Tired', 'Annoyed',\r\n\t\t\t'Scarstic', 'Blessed', 'Confused', 'Angry',\r\n\t\t\t'Bored', 'Sick', 'Awesome', 'Sleepy',\r\n\t\t\t'Guilty', 'Amused', 'Exhausted', 'Hopeful',\r\n\t\t\t'Alone', 'Tough', 'Lost', 'Relaxed',\r\n\t\t\t'Depressed', 'Accomplished', 'Curious',\r\n\t\t\t'Lost', 'Ignorant', 'Proud', 'Crawly',\r\n\t\t\t'Drunk', 'Wasted', 'Fresh', 'Stupid',\r\n\t\t\t'Lovely', 'Busy', 'Disappointed', 'Hungry',\r\n\t\t\t'Fool', 'Poor', 'Wealthy', 'Bossy', 'Cold',\r\n\t\t);\r\n\r\n\t\treturn '— ' . $feelings[array_rand($feelings)] . ' Crawler Agent あ';\r\n\t}",
"public function get_signature_path($name) {\n return $this->get_file_path($name) . '.sign';\n }",
"public function getSigAlgo()\n {\n return $this->sig_algo;\n }",
"public function getSignature(): void\n {\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('Content object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('Content Object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content_object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content-object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('ContentObject')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('contentObject')\n );\n }",
"public function getTransactionSignature()\n {\n return $this->transactionSignature;\n }",
"public function setSignatureNom($signatureNom) {\n $this->signatureNom = $signatureNom;\n return $this;\n }",
"public function setSignatureNom($signatureNom) {\n $this->signatureNom = $signatureNom;\n return $this;\n }",
"public function getSignKeyName() : ?string {\n\t\t\treturn $this->signKeyName;\n\t\t}",
"public function getSigla()\n {\n return $this->sigla;\n }",
"public function getSigla()\n {\n return $this->sigla;\n }",
"private function signature(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\t\t\t\n\t\t\t$first_name = $this->_request['first_name'];\t\t\n\t\t\t$last_name = $this->_request['last_name'];\t\n\t\t\t$data = $this->_request['data'];\n\t\t\t$current_datetime = new DateTime(); \n\t\t\t$sig_name = strtolower(preg_replace(\"/[\\W\\s+]/\",\"\", $first_name.'_'.$last_name.'_'.$current_datetime->format('Y-m-d_His')));\n\t\t\t$signature = base64_decode(str_replace(\"data:image/png;base64,\",\"\",$data));\n\t\t\t$result=file_put_contents(\"../signatures/\".$sig_name.\".png\",$signature);\t\n\t\t\tif($result){\n\t\t\t\t $this->response($sig_name.'.png', 200);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// If invalid inputs \"Bad Request\" status message and reason\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Signature Failed\");\n\t\t\t\t$this->response($this->json($error), 400);\t\t\t\t\t\t\n\t\t\t}\t\t\n\t\t}",
"public function getSignature($key = null) {\n return hash('sha256', $this->getSignatureString($key)); \n }",
"public function getUfIdentidadeSigla() {\n return $this->sUfIdentidadeSigla;\n }",
"public function ident()\n {\n return $this->ident;\n }",
"public function ident()\n {\n return $this->ident;\n }",
"public function getReplacementSigil()\n {\n if (isset($this->raw->{'replacement-sigil'})) {\n return $this->raw->{'replacement-sigil'};\n }\n\n return '@';\n }",
"public function getSignKey(): ?string {\n\t\t\treturn $this->signKey;\n\t\t}",
"public function uidSignature($username = NULL)\n {\n\n $username = ($username) ?\n $username :\n Auth::user()->username;\n\n return PushpadPushpad::signature_for($username);\n }",
"function get_fingerprint()\n {\n return enigma_key::format_fingerprint($this->fingerprint);\n }",
"public function getInsuranceName()\n {\n return \"Sigma\";\n }",
"public function getNom () {\n if (key_exists(self::UTILISATEUR_REF, $_SESSION)) {\n return $_SESSION[self::UTILISATEUR_REF][self::NOM_REF];\n }\n return \"\";\n }",
"public function getIdentification(): string\n {\n return $this->identification;\n }",
"public function mefSignature() {\r\n\t$encoded_header = base64_encode('{\"alg\": \"HS512\",\"typ\": \"JWT\"}');\r\n\t$iss = 'CISCAR';\r\n\tif(isset($_GET['annuaire']) && $_GET['annuaire'] == 2 )\r\n\t{\r\n\t\t\t$iss = 'GCR';\r\n\t}\r\n\t// base64 encodes the payload json\r\n\t$encoded_payload = base64_encode('{\r\n\t\t\t\"iat\": \"'.time().'\",\r\n\t\t\t\"iss\": \"'.$iss.'\",\r\n\t\t\t\"aud\": \"https://boxstva-client.stva.com\",\r\n\t\t\t\"sub\": \"'.$this->getIndividuID().'\",\r\n\t\t\t\"family_name\": \"'.utf8_encode($this->getNom()).'\",\r\n\t\t\t\"given_name\": \"'.utf8_encode($this->getPrenom()).'\",\r\n\t\t\t\"ordering_party\": \"'.$this->getRolePrinc().'\",\r\n\t\t\t\"entities\": \"'.$this->getRattachements().'\"\r\n\t\t}');\r\n\t\r\n\t// base64 strings are concatenated to one that looks like this\r\n\t$header_payload = $encoded_header . '.' . $encoded_payload;\r\n\t\r\n\t//Setting the secret key environnement de Pre-PROD\r\n\t//\"aud\": \"http://box-gcr-pp.stva.com.s3-website-eu-west-1.amazonaws.com\",\r\n\t//$secret_key = '+XgiH7AFTCCUSbuFyMiqYThoStVW7etx32VRhSAKvCrqZPK2rZ4r1gtXoBlZHEismbALi8KKdmdRd3MnoH/19nfwIOV0+tX8blaUy/cQLxCQmfL8BlWuDutdegs72js2zvGpbS1YxXgjWhd4RjsVPn0HSL7q3EBJBORwAELOpI4GZuqSCn1n/R/veZiq7giAv7Gxi+J1A+EOTXtOzZSiQa/tYvcm6xaPTNPzP9HdgxAeKMN4FV44dG+Q66wD14WYOBAo1IPHKvAdWSS53uwRVAb7HDDfflVLcib851LG7fLC6JXaUmdK0iTEU3qJV32wzlF5phax9t16GdJfmCqAxJDMHx0iIVtZYajZPHnPYzXoHHCSilHmPoPZZkmKjlC12L1m87QKVySqP9K3J9fORW+Tn3QIkIcvl+GA4vqomk7/eVP8NT9MwIOvV9pjMJl+cGIoIYYQZmqQ3+Pa7d1NjV0bx6I9WlJNAKYxC5zFvVzqlx5j/H5Wq91WLOrZZNGaE/kygrLmyCYWQiCNzNbwvEsAgCPUgGy0o9o2itVEL4zwzRWPrNDp4fivhMA87QzbzFkDvX9B6PBb1R/3EFy1uSAk22ovyK/fMmN6GRTNeDQdGRi/U64Ys9mA+UjzBi22gy8ZIgFfcnCfJIinMO5PCh2BJ2AQq3kKxe4AMEQmeno=';\r\n\r\n\t//Setting the secret key environnement de PRODUCTION\r\n\t//\"aud\": \"https://boxstva-client.stva.com\",\r\n\t$secret_key = 'Rn2ZvoU+dTOtpE/BOUEuMaf65G2l7lA1nDJV56hmLcl17Y6F2EPCSIrKRCCVWc/Zda7m5Bp/g9BYUIRVTvgmtlcghGRBtswGFwMjq0Ye4QVtmpa8qZBI0sTHGjnbwTvmqZmf1v2TAcJWsAIJsRcoX0IchGvhaEKUMnLAXAUQT4mBhSdUY7H/ZckUthciFveKtxvmKMfjOLJNqciD8fVapuzQBqSRzFhTifVceLG1EmouRnoE5vg3RERwEhpVqFmt0fo+VCOinAR0nHG5Nq0XWXUTmGGsbOcDljLxz+oLAN28cffMc+6OfxkRX3L5ILId3pHMvV+MJns9FCZSA6+u87s3K31fLARCvVP6aVXXRn+M6CGBLxjQtbGopeQCHBRaliNxGr5LJIAkLFusBeG7jqIpGToxqy+D87tiYrg1zG2iRFTkKtvMJRZxdEkCnwJx4jOmuVboKCdtAqCQNX9e4I6jKp+Gs8edSbbV+17TY422DqV+sOXIxMA6udZ1vWm9eDE25dVVoRfiQXC7U/BLEGkV3ocs5du15nD1+NEODqlrVW+2WceQ1yQcSF4hRsU7Wk1pJ+aMRvFkx6PV028nSLExxTTPkxw07BmmDU5W9E6KbLB1/NFtseSyzgxTacGlFEVxmS+Zq846NLcNTrwQuM15Bub4zAy1N8Qv2NeQs4I=';\r\n\t\r\n\t// Creating the signature, a hash with the s512 algorithm and the secret key. The signature is also base64 encoded.\r\n\t$signature = base64_encode(hash_hmac('sha512', $header_payload, $secret_key, true));\r\n\t//$signature = hash_hmac('sha512', $header_payload, $secret_key, true);\r\n\t\r\n\t// Creating the JWT token by concatenating the signature with the header and payload, that looks like this:\r\n\t$jwt_token = $header_payload . '.' . $signature;\r\n\t\r\n\t//listing the resulted JWT\r\n\t//echo $jwt_token;\r\n\t//print $jwt_token;\r\n\treturn $jwt_token;\r\n\t\r\n\t//$decoded_jwt = explode(\".\",$jwt_token);\r\n\t//$decoded_header = base64_decode($decoded_jwt[0]);\r\n\t//$decoded_payload = base64_decode($decoded_jwt[1]);\r\n\t//$decoded_signature = base64_decode($decoded_jwt[2]);\r\n\t//echo $decoded_signature;\r\n\t\r\n\t//die();\r\n\r\n\r\n//\t\t$data = 'my data';\r\n\t\t\r\n//\t\t//Crée une nouvelle clé privée et publique\r\n//\t\t$new_key_pair = openssl_pkey_new(array(\r\n//\t\t\t\t\"private_key_bits\" => 1024,\r\n//\t\t\t\t\"private_key_type\" => OPENSSL_KEYTYPE_RSA,\r\n//\t\t));\r\n//\t\topenssl_pkey_export($new_key_pair, $private_key_pem);\r\n\t\t\r\n//\t\t$details = openssl_pkey_get_details($new_key_pair);\r\n//\t\t$public_key_pem = $details['key'];\r\n\t\t\r\n//\t\t//Création de la signature\r\n//\t\topenssl_sign($data, $signature, $private_key_pem, OPENSSL_ALGO_SHA1);\r\n\t\t\r\n//\t\t//Sauvegarde pour utilisation ultérieur\r\n//\t\tfile_put_contents('private_key.pem', $private_key_pem);\r\n//\t\tfile_put_contents('public_key.pem', $public_key_pem);\r\n//\t\tfile_put_contents('signature.dat', $signature);\r\n//\t\tprint $private_key_pem;\r\n//\t\t//Vérification de la signature\r\n//\t\t$r = openssl_verify($data, $signature, $public_key_pem, \"sha1WithRSAEncryption\");\r\n//\t\tvar_dump($r);\r\n\t}",
"public function getSignPublicKey() : string;",
"function fiftyone_degrees_get_signature_length($signature, $headers) {\n $last_node_index = $signature['node_indexs'][count($signature['node_indexs'])-1];\n $last_node = fiftyone_degrees_read_node($last_node_index, $headers);\n $last_node_length = fiftyone_degrees_get_node_length($last_node, $headers);\n return $last_node['position'] + $last_node_length + 1;\n}",
"public static function sdkAnalyticsSignature()\n {\n if (empty(static::$signature)) {\n // Lazily create $signature\n try {\n static::$signature = static::ALGO_VERSION . static::$product . static::$sdkCode .\n static::encodeVersion(static::$sdkVersion) .\n static::encodeVersion(static::$techVersion);\n } catch (OutOfRangeException $e) {\n static::$signature = 'E';\n }\n }\n\n return static::$signature;\n }",
"public function setSignature()\n {\n \t$options = array('user_id' => $this->user_id,\n \t 'profile_key' => 'sig'\n \t );\n $result = DatabaseObject_UserProfile::getUserProfileData($this->_db, $options);\n \t\n \tif (!$result) {\n \t return \"\";\n \t}\n \t \n \treturn $this->signature = html_entity_decode($result);\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }",
"public function getFilename()\n\t{\n\t\treturn $this->token->filename;\n\t}",
"public function getSignatureParameters()\n {\n return $this->signatureParameters;\n }",
"public function getIdentifier() {\n\n\t\t// String Prefix muss vorhanden sein -> reiner Zahlenwert wirft Exception nach dem Absenden\n\t\t// @see: https://wiki.typo3.org/Exception/CMS/1210858767\n\t\treturn md5($this->contentObject->data['uid']);\n\t}",
"public function getIdentifier()\n {\n return $this->getAttribute('metadata.name', null);\n }",
"private function get_signature_method(&$request) {\n $signature_method =\n @$request->get_parameter(\"oauth_signature_method\");\n\n if (!$signature_method) {\n // According to chapter 7 (\"Accessing Protected Ressources\") the signature-method\n // parameter is required, and we can't just fallback to PLAINTEXT\n throw new OAuthException('No signature method parameter. This parameter is required');\n }\n\n if (!in_array($signature_method,\n array_keys($this->signature_methods))) {\n throw new OAuthException(\n \"Signature method '$signature_method' not supported \" .\n \"try one of the following: \" .\n implode(\", \", array_keys($this->signature_methods))\n );\n }\n return $this->signature_methods[$signature_method];\n }",
"private function _get_dkim_header($body){\n\t\t\n\t\t$body = ($this -> options['dkim_body_canonicalization'] == 'simple') ? $this -> _dkim_canonicalize_body_simple($body) : $this -> _dkim_canonicalize_body_relaxed($body);\n\t\t\n\t\t// Base64 of packed binary SHA-1 hash of body\n\t\t$bh = rtrim(chunk_split(base64_encode(pack(\"H*\", sha1($body))), 64, \"\\r\\n\\t\"));\n\t\t$i_part = ($this -> options['identity'] == null) ? '' : ' i='.$this -> options['identity'].';'.\"\\r\\n\\t\";\n\t\t\n\t\t$dkim_header =\n\t\t\t'DKIM-Signature: '.\n\t\t\t\t'v=1;'.\"\\r\\n\\t\".\n\t\t\t\t'a=rsa-sha1;'.\"\\r\\n\\t\".\n\t\t\t\t'q=dns/txt;'.\"\\r\\n\\t\".\n\t\t\t\t's='.$this -> selector.';'.\"\\r\\n\\t\".\n\t\t\t\t't='.time().';'.\"\\r\\n\\t\".\n\t\t\t\t'c=relaxed/'.$this -> options['dkim_body_canonicalization'].';'.\"\\r\\n\\t\".\n\t\t\t\t'h='.implode(':', array_keys($this -> canonicalized_headers_relaxed)).';'.\"\\r\\n\\t\".\n\t\t\t\t'd='.$this -> domain.';'.\"\\r\\n\\t\".\n\t\t\t\t$i_part.\n\t\t\t\t'bh='.$bh.';'.\"\\r\\n\\t\".\n\t\t\t\t'b=';\n\t\t\n\t\t// now for the signature we need the canonicalized version of the $dkim_header we've just made\n\t\t$canonicalized_dkim_header = $this -> _dkim_canonicalize_headers_relaxed($dkim_header);\n\t\t\n\t\t// we sign the canonicalized signature headers\n\t\t$to_be_signed = implode(\"\\r\\n\", $this -> canonicalized_headers_relaxed).\"\\r\\n\".$canonicalized_dkim_header['dkim-signature'];\n\t\t\n\t\t// $signature is sent by reference in this function\n\t\t$signature = '';\n\t\tif(openssl_sign($to_be_signed, $signature, $this -> private_key)){\n\t\t\t$dkim_header .= rtrim(chunk_split(base64_encode($signature), 64, \"\\r\\n\\t\")).\"\\r\\n\";\n\t\t}\n\t\telse {\n\t\t\ttrigger_error(sprintf('Could not sign e-mail with DKIM : %s', $to_be_signed), E_USER_WARNING);\n\t\t\t$dkim_header = '';\n\t\t}\n\t\t\n\t\treturn $dkim_header;\n\t}",
"public function getSignatureHeader(): SimpleDataStore {\n\t\treturn $this->signatureHeader;\n\t}",
"public function getDocumentSignatureType()\n {\n return DocumentSignature::TYPE_AUTO_INVEST_CONTRIBUTION;\n }",
"public function getSignAlgorithm() : string\n {\n return $this->signAlgorithm;\n }",
"public function getHashSignedById(): string;",
"public function getRawSignedRequestFromGet()\r\r\n {\r\r\n if (isset($_GET['signed_request'])) {\r\r\n return $_GET['signed_request'];\r\r\n }\r\r\n\r\r\n return null;\r\r\n }",
"public function getNbrNoticeExtension()\n {\n $nbrNotice = $this->doctrine\n ->getRepository('NajdahAppBundle:Declaration')\n ->getNomberNoticeNomber();\n \n return $nbrNotice;\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature = $var;\n\n return $this;\n }",
"public function getTokenName();",
"public function getFingerprint() : string\n {\n return $this->fingerprint;\n }",
"public function getFingerprint() : string\n {\n return $this->fingerprint;\n }"
] | [
"0.77426827",
"0.7658116",
"0.75099325",
"0.75099325",
"0.74627465",
"0.7374278",
"0.7279629",
"0.7189189",
"0.71850806",
"0.71850806",
"0.71850806",
"0.71850806",
"0.71850806",
"0.7058632",
"0.7034025",
"0.69950694",
"0.69841653",
"0.6978668",
"0.6821341",
"0.67729783",
"0.675652",
"0.6727545",
"0.66987175",
"0.66522974",
"0.66414857",
"0.66414857",
"0.6605708",
"0.6579729",
"0.6579729",
"0.6522577",
"0.6504191",
"0.6484778",
"0.64631796",
"0.64606434",
"0.6419496",
"0.6397982",
"0.63706076",
"0.6296807",
"0.6258377",
"0.62430584",
"0.6211936",
"0.6164088",
"0.61155075",
"0.60781187",
"0.60706204",
"0.60393834",
"0.60277957",
"0.5985854",
"0.5985854",
"0.5983038",
"0.5980169",
"0.5970458",
"0.5928797",
"0.5905899",
"0.5886179",
"0.58824724",
"0.58653057",
"0.58483446",
"0.5841103",
"0.5827516",
"0.5808071",
"0.5808071",
"0.580643",
"0.5763498",
"0.5763498",
"0.57619697",
"0.5755261",
"0.57176423",
"0.5699746",
"0.5699746",
"0.569448",
"0.56886667",
"0.5663305",
"0.5655315",
"0.5647694",
"0.56437045",
"0.56181",
"0.56066436",
"0.557088",
"0.55294025",
"0.5525324",
"0.55231005",
"0.55111605",
"0.5498753",
"0.5492483",
"0.54800767",
"0.5477761",
"0.5471704",
"0.54713964",
"0.5468374",
"0.54525936",
"0.54346573",
"0.54247046",
"0.5414871",
"0.54129624",
"0.54044783",
"0.5398271",
"0.5392262",
"0.5392262"
] | 0.8725653 | 1 |
Get the signature qualite. | public function getSignatureQualite() {
return $this->signatureQualite;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSignatureQualiteCode() {\n return $this->signatureQualiteCode;\n }",
"public function getSignature();",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"function getSignature()\n {\n return $this->_signature;\n }",
"public function getSignature() {\n\t\treturn $this->signature;\n\t}",
"public function getSignature() : string\n {\n return $this->signature;\n }",
"public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }",
"public function setSignatureQualite($signatureQualite) {\n $this->signatureQualite = $signatureQualite;\n return $this;\n }",
"public function setSignatureQualite($signatureQualite) {\n $this->signatureQualite = $signatureQualite;\n return $this;\n }",
"public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }",
"public function getSignature(): string\n {\n return $this->getName();\n }",
"public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}",
"public function getUserSignature(): ?string;",
"public function getSignatureHeader()\n {\n return $this->signature_header;\n }",
"private function getSignature()\n\t{\n\t\t$string_to_sign = mb_convert_encoding(\n\t\t\t$this->http_verb . $this->uri . $this->timestamp . $this->nonce,\n\t\t\t'UTF-8'\n\t\t);\n\t\treturn base64_encode(\n\t\t\thash_hmac(\n\t\t\t\t'sha1',\n\t\t\t\t$string_to_sign,\n\t\t\t\t$this->secret,\n\t\t\t\ttrue\n\t\t\t)\n\t\t);\n\t}",
"private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }",
"public function getSignatureKey(): ?string\n {\n return $this->signatureKey;\n }",
"public function getSignature()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-Hub-Signature']) ? $headers['X-Hub-Signature'] : null;\n }",
"public function getEnforceSignatureCheck()\n {\n if (array_key_exists(\"enforceSignatureCheck\", $this->_propDict)) {\n return $this->_propDict[\"enforceSignatureCheck\"];\n } else {\n return null;\n }\n }",
"public function getEnforceSignatureCheck()\n {\n if (array_key_exists(\"enforceSignatureCheck\", $this->_propDict)) {\n return $this->_propDict[\"enforceSignatureCheck\"];\n } else {\n return null;\n }\n }",
"function getAuthSignature()\n {\n return $this->_authSignature;\n }",
"public function getSigner()\n {\n if (array_key_exists(\"signer\", $this->_propDict)) {\n return $this->_propDict[\"signer\"];\n } else {\n return null;\n }\n }",
"public function getSignatureType(): string\n {\n return $this->type->getSignatureType();\n }",
"public function getSigner()\n {\n return $this->get(self::SIGNER);\n }",
"public function getSig()\n {\n return $this->sig;\n }",
"public function getSignature()\n {\n $signString= sprintf(\"%s\\n%s\\n%s\\n%d\", $this->topic, $this->consumerId, $this->message->getMessageHandle(), $this->time);\n return base64_encode(hash_hmac('sha1', $signString, $this->getAuthorization()->getAccessSecret(), true));\n }",
"public static function getSignature()\n {\n return ':meta';\n }",
"public function getSignatureAlgorithm()\n {\n return $this->signature_algorithm;\n }",
"public function getCodeQualif() {\n return $this->codeQualif;\n }",
"protected function getSignatureFromRequest()\n\t{\n\t\t$signature = $this->request->header($this->config['signature_header'], null);\n\n\t\tif (is_null($signature) || $signature === '') {\n\t\t\tthrow new AlexaVerificationException('Request signature verification failed: no signature present in header.');\n\t\t}\n\n\t\treturn base64_decode($signature);\n\t}",
"public function getQualify()\n\t\t{\n\t\t\tif($this->qualify == NULL)\n\t\t\t{\n\t\t\t\t$business_rules = new ECash_BusinessRules($this->db);\n\t\t\t\t$qualify_class = ECash::getFactory()->getClassString('Qualify');\n\t\t\t\t$this->qualify = new $qualify_class(ECash::getFactory()->getDateNormalizer(), $business_rules, $this->Model->loan_type_id);\n\t\t\t}\n\t\t\t\n\t\t\treturn $this->qualify;\n\t\t}",
"public function getSignature() : string\n {\n\n return $this->httpMethod . ':' . $this->uri;\n }",
"public function getSigAlgo()\n {\n return $this->sig_algo;\n }",
"public function setSignatureQualiteCode($signatureQualiteCode) {\n $this->signatureQualiteCode = $signatureQualiteCode;\n return $this;\n }",
"public function getAwsSignature()\n {\n return $this->awsSignature;\n }",
"public function getSignatureNom() {\n return $this->signatureNom;\n }",
"public function getSignatureNom() {\n return $this->signatureNom;\n }",
"public function getSignature() {\n\t\treturn md5(get_class($this));\n\t}",
"public function getSignature($raw = false)\n {\n if ($raw) {\n return Hex::decode($this->signature);\n }\n return $this->signature;\n }",
"public function getSignature(): void\n {\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('Content object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('Content Object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content_object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content-object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('ContentObject')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('contentObject')\n );\n }",
"public function getHeaderSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__SIGNATURE];\r\n\t}",
"public function getSignatureParameters()\n {\n return $this->signatureParameters;\n }",
"function getSrcQualifier() {\n return $this->srcQualifier;\n }",
"public function getRawSignedRequestFromGet()\r\r\n {\r\r\n if (isset($_GET['signed_request'])) {\r\r\n return $_GET['signed_request'];\r\r\n }\r\r\n\r\r\n return null;\r\r\n }",
"public function getStringForResponseSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__TARGET_API]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__DATE]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__PLATFORM_GID]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__SOURCE_GID]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__RANDOM]\r\n\t\t\t\t. $this->body;\r\n\t}",
"public function mefSignature() {\r\n\t$encoded_header = base64_encode('{\"alg\": \"HS512\",\"typ\": \"JWT\"}');\r\n\t$iss = 'CISCAR';\r\n\tif(isset($_GET['annuaire']) && $_GET['annuaire'] == 2 )\r\n\t{\r\n\t\t\t$iss = 'GCR';\r\n\t}\r\n\t// base64 encodes the payload json\r\n\t$encoded_payload = base64_encode('{\r\n\t\t\t\"iat\": \"'.time().'\",\r\n\t\t\t\"iss\": \"'.$iss.'\",\r\n\t\t\t\"aud\": \"https://boxstva-client.stva.com\",\r\n\t\t\t\"sub\": \"'.$this->getIndividuID().'\",\r\n\t\t\t\"family_name\": \"'.utf8_encode($this->getNom()).'\",\r\n\t\t\t\"given_name\": \"'.utf8_encode($this->getPrenom()).'\",\r\n\t\t\t\"ordering_party\": \"'.$this->getRolePrinc().'\",\r\n\t\t\t\"entities\": \"'.$this->getRattachements().'\"\r\n\t\t}');\r\n\t\r\n\t// base64 strings are concatenated to one that looks like this\r\n\t$header_payload = $encoded_header . '.' . $encoded_payload;\r\n\t\r\n\t//Setting the secret key environnement de Pre-PROD\r\n\t//\"aud\": \"http://box-gcr-pp.stva.com.s3-website-eu-west-1.amazonaws.com\",\r\n\t//$secret_key = '+XgiH7AFTCCUSbuFyMiqYThoStVW7etx32VRhSAKvCrqZPK2rZ4r1gtXoBlZHEismbALi8KKdmdRd3MnoH/19nfwIOV0+tX8blaUy/cQLxCQmfL8BlWuDutdegs72js2zvGpbS1YxXgjWhd4RjsVPn0HSL7q3EBJBORwAELOpI4GZuqSCn1n/R/veZiq7giAv7Gxi+J1A+EOTXtOzZSiQa/tYvcm6xaPTNPzP9HdgxAeKMN4FV44dG+Q66wD14WYOBAo1IPHKvAdWSS53uwRVAb7HDDfflVLcib851LG7fLC6JXaUmdK0iTEU3qJV32wzlF5phax9t16GdJfmCqAxJDMHx0iIVtZYajZPHnPYzXoHHCSilHmPoPZZkmKjlC12L1m87QKVySqP9K3J9fORW+Tn3QIkIcvl+GA4vqomk7/eVP8NT9MwIOvV9pjMJl+cGIoIYYQZmqQ3+Pa7d1NjV0bx6I9WlJNAKYxC5zFvVzqlx5j/H5Wq91WLOrZZNGaE/kygrLmyCYWQiCNzNbwvEsAgCPUgGy0o9o2itVEL4zwzRWPrNDp4fivhMA87QzbzFkDvX9B6PBb1R/3EFy1uSAk22ovyK/fMmN6GRTNeDQdGRi/U64Ys9mA+UjzBi22gy8ZIgFfcnCfJIinMO5PCh2BJ2AQq3kKxe4AMEQmeno=';\r\n\r\n\t//Setting the secret key environnement de PRODUCTION\r\n\t//\"aud\": \"https://boxstva-client.stva.com\",\r\n\t$secret_key = 'Rn2ZvoU+dTOtpE/BOUEuMaf65G2l7lA1nDJV56hmLcl17Y6F2EPCSIrKRCCVWc/Zda7m5Bp/g9BYUIRVTvgmtlcghGRBtswGFwMjq0Ye4QVtmpa8qZBI0sTHGjnbwTvmqZmf1v2TAcJWsAIJsRcoX0IchGvhaEKUMnLAXAUQT4mBhSdUY7H/ZckUthciFveKtxvmKMfjOLJNqciD8fVapuzQBqSRzFhTifVceLG1EmouRnoE5vg3RERwEhpVqFmt0fo+VCOinAR0nHG5Nq0XWXUTmGGsbOcDljLxz+oLAN28cffMc+6OfxkRX3L5ILId3pHMvV+MJns9FCZSA6+u87s3K31fLARCvVP6aVXXRn+M6CGBLxjQtbGopeQCHBRaliNxGr5LJIAkLFusBeG7jqIpGToxqy+D87tiYrg1zG2iRFTkKtvMJRZxdEkCnwJx4jOmuVboKCdtAqCQNX9e4I6jKp+Gs8edSbbV+17TY422DqV+sOXIxMA6udZ1vWm9eDE25dVVoRfiQXC7U/BLEGkV3ocs5du15nD1+NEODqlrVW+2WceQ1yQcSF4hRsU7Wk1pJ+aMRvFkx6PV028nSLExxTTPkxw07BmmDU5W9E6KbLB1/NFtseSyzgxTacGlFEVxmS+Zq846NLcNTrwQuM15Bub4zAy1N8Qv2NeQs4I=';\r\n\t\r\n\t// Creating the signature, a hash with the s512 algorithm and the secret key. The signature is also base64 encoded.\r\n\t$signature = base64_encode(hash_hmac('sha512', $header_payload, $secret_key, true));\r\n\t//$signature = hash_hmac('sha512', $header_payload, $secret_key, true);\r\n\t\r\n\t// Creating the JWT token by concatenating the signature with the header and payload, that looks like this:\r\n\t$jwt_token = $header_payload . '.' . $signature;\r\n\t\r\n\t//listing the resulted JWT\r\n\t//echo $jwt_token;\r\n\t//print $jwt_token;\r\n\treturn $jwt_token;\r\n\t\r\n\t//$decoded_jwt = explode(\".\",$jwt_token);\r\n\t//$decoded_header = base64_decode($decoded_jwt[0]);\r\n\t//$decoded_payload = base64_decode($decoded_jwt[1]);\r\n\t//$decoded_signature = base64_decode($decoded_jwt[2]);\r\n\t//echo $decoded_signature;\r\n\t\r\n\t//die();\r\n\r\n\r\n//\t\t$data = 'my data';\r\n\t\t\r\n//\t\t//Crée une nouvelle clé privée et publique\r\n//\t\t$new_key_pair = openssl_pkey_new(array(\r\n//\t\t\t\t\"private_key_bits\" => 1024,\r\n//\t\t\t\t\"private_key_type\" => OPENSSL_KEYTYPE_RSA,\r\n//\t\t));\r\n//\t\topenssl_pkey_export($new_key_pair, $private_key_pem);\r\n\t\t\r\n//\t\t$details = openssl_pkey_get_details($new_key_pair);\r\n//\t\t$public_key_pem = $details['key'];\r\n\t\t\r\n//\t\t//Création de la signature\r\n//\t\topenssl_sign($data, $signature, $private_key_pem, OPENSSL_ALGO_SHA1);\r\n\t\t\r\n//\t\t//Sauvegarde pour utilisation ultérieur\r\n//\t\tfile_put_contents('private_key.pem', $private_key_pem);\r\n//\t\tfile_put_contents('public_key.pem', $public_key_pem);\r\n//\t\tfile_put_contents('signature.dat', $signature);\r\n//\t\tprint $private_key_pem;\r\n//\t\t//Vérification de la signature\r\n//\t\t$r = openssl_verify($data, $signature, $public_key_pem, \"sha1WithRSAEncryption\");\r\n//\t\tvar_dump($r);\r\n\t}",
"public function getSignatureKeyId()\n {\n return $this->signature_key_id;\n }",
"public function getRawSignedRequestFromCookie()\r\r\n {\r\r\n $strCookieKey = 'fbsr_' . $this->appId;\r\r\n if (isset($_COOKIE[$strCookieKey])) {\r\r\n return $_COOKIE[$strCookieKey];\r\r\n }\r\r\n return null;\r\r\n }",
"public function getTransactionSignature()\n {\n return $this->transactionSignature;\n }",
"function sign()\r\n {\r\n return $this->Sign;\r\n }",
"public function getDocumentSignatureType()\n {\n return DocumentSignature::TYPE_AUTO_INVEST_CONTRIBUTION;\n }",
"public function getSignedRequest()\r\r\n {\r\r\n return $this->signedRequest;\r\r\n }",
"public static function sdkAnalyticsSignature()\n {\n if (empty(static::$signature)) {\n // Lazily create $signature\n try {\n static::$signature = static::ALGO_VERSION . static::$product . static::$sdkCode .\n static::encodeVersion(static::$sdkVersion) .\n static::encodeVersion(static::$techVersion);\n } catch (OutOfRangeException $e) {\n static::$signature = 'E';\n }\n }\n\n return static::$signature;\n }",
"function qualificationServ(): string\n{\n $FtPqr = getFtPqr();\n $FtPqrCalificacion = $FtPqr->getLastCalificacion();\n\n return $FtPqrCalificacion ? $FtPqrCalificacion->getFieldValue('experiencia_servicio') : '-';\n}",
"public function getSignedRequest()\n {\n return $this->signedRequest;\n }",
"public function getSignature()\n {\n $input = $this->getArgs();\n\n $str = \"\";\n foreach ($input as $key => $val) {\n $str .= $key . \"=\" . $val . \"&\";\n }\n\n $str .= \"password=\" . $this->config->password;\n return $this->hashFunction($str);\n }",
"public function getSignatureDate() {\n return $this->signatureDate;\n }",
"public function getSignatureDate() {\n return $this->signatureDate;\n }",
"public function get_signature_base_string() {\n\t\t$parts = \\OAuthSignature::urlencode_rfc3986( array(\n\t\t\t$this->get_normalized_http_method(),\n\t\t\t$this->get_normalized_http_url(),\n\t\t\t$this->get_signable_parameters(),\n\t\t) );\n\n\t\treturn implode( '&', $parts );\n\t}",
"abstract public function getRawSignedRequest();",
"public function getRateQualifier()\n {\n return $this->rateQualifier;\n }",
"public function get_signature_path($name) {\n return $this->get_file_path($name) . '.sign';\n }",
"public function getSignatureHeader(): SimpleDataStore {\n\t\treturn $this->signatureHeader;\n\t}",
"public function getSigla()\n {\n return $this->sigla;\n }",
"public function getSigla()\n {\n return $this->sigla;\n }",
"public function get_signature_base_string() {\n $parts = array(\n $this->get_normalized_http_method(),\n $this->get_normalized_http_url(),\n $this->get_signable_parameters()\n );\n\n $parts = OAuthUtil::urlencode_rfc3986($parts);\n\n return implode('&', $parts);\n }",
"public function get_signature_base_string()\n {\n $parts = array(\n $this->get_normalized_http_method(),\n $this->get_normalized_http_url(),\n $this->get_signable_parameters()\n );\n\n $parts = OAuthUtil::urlencode_rfc3986($parts);\n\n return implode('&', $parts);\n }",
"public static function getSignature($path)\n {\n return Signature::create($path)->get();\n }",
"public function getFirstDocumentSignatureFilename()\n {\n if ($this->getDocumentSignaturesCount() > 0) {\n /** @var DocumentSignature $signature */\n $signature = $this->documentSignatures->first();\n\n return $signature->getDocument()->getFilename();\n }\n\n return;\n }",
"public function signature() {\r\n\t\t$signature = \"\";\r\n\t\tif ($this->isFinal) {\r\n\t\t\t$signature .= \"final \";\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->isPublic) {\r\n\t\t\t$signature .= \"public \";\r\n\t\t}\r\n\t\telseif ($this->isPrivate) {\r\n\t\t\t$signature .= \"private \";\r\n\t\t}\r\n\t\telseif ($this->isProtected) {\r\n\t\t\t$signature .= \"protected \";\r\n\t\t}\r\n\t\t\r\n\t\tif ($this->isStatic) {\r\n\t\t\t$signature .= \"static \";\r\n\t\t}\r\n\t\t$signature .= \"function \".$this->name.\" \";\r\n\t\t$signature .= \"(\";\r\n\t\t$params = array();\r\n\t\tforeach($this->parameters as $parameter) {\r\n\t\t\t$params[] = $parameter->signature();\r\n\t\t}\r\n\t\t$signature .= implode(\", \",$params);\r\n\t\t$signature .= \")\";\r\n\t\treturn $signature;\r\n\t}",
"public function getSignature($params = array())\n {\n return $this->getClient()->getSignature($params);\n }",
"public function getAudience();",
"function qualificationGest(): string\n{\n $FtPqr = getFtPqr();\n $FtPqrCalificacion = $FtPqr->getLastCalificacion();\n\n return $FtPqrCalificacion ? $FtPqrCalificacion->getFieldValue('experiencia_gestion') : '-';\n}",
"public function getSignKey(): ?string {\n\t\t\treturn $this->signKey;\n\t\t}",
"public static function getSignature()\n {\n return ':originalData';\n }",
"function signature()\r\n\t{\r\n\t\t$feelings = array(\r\n\t\t\t'Happy', 'Excited', 'Tired', 'Annoyed',\r\n\t\t\t'Scarstic', 'Blessed', 'Confused', 'Angry',\r\n\t\t\t'Bored', 'Sick', 'Awesome', 'Sleepy',\r\n\t\t\t'Guilty', 'Amused', 'Exhausted', 'Hopeful',\r\n\t\t\t'Alone', 'Tough', 'Lost', 'Relaxed',\r\n\t\t\t'Depressed', 'Accomplished', 'Curious',\r\n\t\t\t'Lost', 'Ignorant', 'Proud', 'Crawly',\r\n\t\t\t'Drunk', 'Wasted', 'Fresh', 'Stupid',\r\n\t\t\t'Lovely', 'Busy', 'Disappointed', 'Hungry',\r\n\t\t\t'Fool', 'Poor', 'Wealthy', 'Bossy', 'Cold',\r\n\t\t);\r\n\r\n\t\treturn '— ' . $feelings[array_rand($feelings)] . ' Crawler Agent あ';\r\n\t}",
"public function Get_Teacher_Signature($teacher_id)\n {\n global $SIGNATURE_PATH;\n $this->DB->Change_DB($this->PERSON_DB);\n $sql = \"SELECT `files_sig` FROM `staff` WHERE `code` = '\".$teacher_id.\"'\";\n $result = $this->DB->Query($sql);\n $this->DB->Change_DB($this->DEFAULT_DB);\n if($result)\n {\n $filename = $result[0]['files_sig'];\n if($filename != '')\n {\n if(file_exists($SIGNATURE_PATH.\"/\".$filename))\n {\n $file_path = $SIGNATURE_PATH.\"/\".$filename;\n return $file_path;\n }\n else\n {\n return null;\n }\n }\n else\n {\n return null;\n }\n\n }\n else\n {\n return null;\n }\n\n }",
"public function get_family()\n {\n return CGHBVRQQualification::NAME;\n }",
"public static function get_ar_quality() {\t\t\t\n\t\treturn unserialize(DEDALO_PDF_AR_QUALITY);\t\t\n\t}",
"public function get_signable_parameters() {\n\t\t// Grab all parameters\n\t\t$params = $this->params;\n\n\t\t// Remove oauth_signature if present\n\t\t// Ref: Spec: 9.1.1 (\"The oauth_signature parameter MUST be excluded.\")\n\t\tif ( isset( $params[ static::prefix . 'signature' ] ) ) {\n\t\t\tunset( $params[ static::prefix . 'signature' ] );\n\t\t}\n\n\t\treturn \\OAuthSignature::build_http_query( $params );\n\t}",
"public function get_work_info_signature($id = null) {\n $this->db->select('work_info.work_info_signature');\n $this->db->from('work_info');\n if ($id != null) {\n $this->db->where('work_info.work_info_id_pri', $id);\n }\n return $this->db->get()->row();\n }",
"public function getDigestMethod() {\n $signer = $this->header->getSigner();\n if ($signer !== false) {\n return (string) $signer;\n }\n return false;\n }",
"public function get_type()\n {\n return CGHBVRQQualification::NAME;\n }",
"public function getSignature($key = null) {\n return hash('sha256', $this->getSignatureString($key)); \n }",
"public function getSignatureBaseString()\n {\n $parts = array(\n $this->getNormalizedHttpMethod(),\n $this->getNormalizedHttpUrl(),\n $this->getSignableParameters()\n );\n\n $parts = Utils::urlencodeRfc3986($parts);\n\n return implode('&', $parts);\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature = $var;\n\n return $this;\n }",
"private static function generateSignature() {\n $result = microtime(true);\n return substr($result, -7);\n }",
"public function getSignInAudience()\n {\n if (array_key_exists(\"signInAudience\", $this->_propDict)) {\n return $this->_propDict[\"signInAudience\"];\n } else {\n return null;\n }\n }",
"public function getSignatureVille() {\n return $this->signatureVille;\n }",
"public function getSignatureVille() {\n return $this->signatureVille;\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }",
"function get_fingerprint()\n {\n return enigma_key::format_fingerprint($this->fingerprint);\n }"
] | [
"0.83037734",
"0.69842154",
"0.67814934",
"0.67814934",
"0.67814934",
"0.67814934",
"0.67814934",
"0.6767807",
"0.6767807",
"0.6749297",
"0.67445767",
"0.67262936",
"0.6700249",
"0.6656768",
"0.6656768",
"0.6415006",
"0.63963634",
"0.6290969",
"0.62479544",
"0.6242171",
"0.62341005",
"0.61881256",
"0.61694235",
"0.6128566",
"0.6108822",
"0.6108822",
"0.6084737",
"0.60475165",
"0.6039244",
"0.5997879",
"0.59778315",
"0.59604394",
"0.59559405",
"0.5946341",
"0.5940565",
"0.5892884",
"0.5872609",
"0.5870147",
"0.5855651",
"0.5824812",
"0.58085597",
"0.57972676",
"0.57972676",
"0.57952714",
"0.5773133",
"0.5763978",
"0.57229143",
"0.5707843",
"0.5700067",
"0.5697787",
"0.5688148",
"0.56605613",
"0.5633367",
"0.56250435",
"0.56078213",
"0.5590284",
"0.556646",
"0.55453575",
"0.5540094",
"0.5522547",
"0.5515839",
"0.5514301",
"0.5483173",
"0.5483173",
"0.5470925",
"0.5465726",
"0.54563403",
"0.5449406",
"0.5446186",
"0.543881",
"0.543881",
"0.54372185",
"0.54365206",
"0.54195654",
"0.5407538",
"0.53851336",
"0.53797734",
"0.5378881",
"0.5372183",
"0.5371614",
"0.535039",
"0.53382546",
"0.533638",
"0.53335905",
"0.533252",
"0.5328745",
"0.53030676",
"0.525173",
"0.52376825",
"0.5236024",
"0.5233728",
"0.5226251",
"0.5216509",
"0.5208149",
"0.52031595",
"0.52031595",
"0.5199945",
"0.5199945",
"0.5196967"
] | 0.8800238 | 1 |
Get the signature ville. | public function getSignatureVille() {
return $this->signatureVille;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSignature();",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature()\n {\n return $this->signature;\n }",
"public function getSignature() {\n\t\treturn $this->signature;\n\t}",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"public function getSignature(): string\n {\n return $this->signature;\n }",
"public function getSignature() : string\n {\n return $this->signature;\n }",
"function getSignature()\n {\n return $this->_signature;\n }",
"public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }",
"public function getSignature() {\n $headers = $this->getHeaders();\n foreach ($headers as $key => $value) {\n if (strtolower($key) === 'x-hub-signature') {\n return $value;\n }\n }\n return '';\n }",
"public function getSignatureNom() {\n return $this->signatureNom;\n }",
"public function getSignatureNom() {\n return $this->signatureNom;\n }",
"public function getSignatureHeader()\n {\n return $this->signature_header;\n }",
"public function getSig()\n {\n return $this->sig;\n }",
"public static function getSignature()\n\t{\n\t\treturn MHTTPD::$info['signature'];\n\t}",
"public function getHeaderSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__SIGNATURE];\r\n\t}",
"public function getSignatureQualite() {\n return $this->signatureQualite;\n }",
"public function getSignatureQualite() {\n return $this->signatureQualite;\n }",
"public function getSignature()\n {\n $headers = $this->getHeaders();\n return isset($headers['X-Hub-Signature']) ? $headers['X-Hub-Signature'] : null;\n }",
"public function getSignatureQualiteCode() {\n return $this->signatureQualiteCode;\n }",
"function getAuthSignature()\n {\n return $this->_authSignature;\n }",
"public function getSignature(): string\n {\n return $this->getName();\n }",
"public function getSignatureKeyId()\n {\n return $this->signature_key_id;\n }",
"public function getUserSignature(): ?string;",
"function signature()\r\n\t{\r\n\t\tglobal $ibforums, $std, $print;\r\n\r\n\t\t$t_sig = $this->parser->unconvert($this->member['signature'], $ibforums->vars['sig_allow_ibc'], $ibforums->vars['sig_allow_html']);\r\n\r\n\t\t$ibforums->lang['the_max_length'] = $ibforums->vars['max_sig_length']\r\n\t\t\t? $ibforums->vars['max_sig_length']\r\n\t\t\t: 0;\r\n\r\n\t\t$data = array(\r\n\t\t\t'TEXT' => $this->member['signature'],\r\n\t\t\t'SMILIES' => 1,\r\n\t\t\t'CODE' => 1,\r\n\t\t\t'SIGNATURE' => 0,\r\n\t\t\t'HTML' => $ibforums->vars['sig_allow_html'],\r\n\t\t);\r\n\r\n\t\t$this->member['signature'] = $this->parser->prepare($data);\r\n\r\n\t\tif ($ibforums->vars['sig_allow_html'] == 1)\r\n\t\t{\r\n\t\t\t$this->member['signature'] = $this->parser->parse_html($this->member['signature'], 0);\r\n\t\t}\r\n\r\n\t\t$this->output .= View::make(\r\n\t\t\t\"ucp.signature\",\r\n\t\t\t[\r\n\t\t\t\t'sig' => $this->member['signature'],\r\n\t\t\t\t't_sig' => $t_sig,\r\n\t\t\t\t'key' => $std->return_md5_check(),\r\n\t\t\t\t'select_syntax' => $std->code_tag_button()\r\n\t\t\t]\r\n\t\t);\r\n\r\n\t\t$this->page_title = $ibforums->lang['t_welcome'];\r\n\t\t$this->nav = array(\"<a href='\" . $this->base_url . \"act=UserCP&CODE=00'>\" . $ibforums->lang['t_title'] . \"</a>\");\r\n\r\n\t}",
"function sign()\r\n {\r\n return $this->Sign;\r\n }",
"public function getSignatureKey(): ?string\n {\n return $this->signatureKey;\n }",
"private function getValue($signature)\n {\n $items = explode(\",\", $signature);\n\n foreach ($items as $item) {\n $itemParts = explode(\"=\", $item, 2);\n if ($itemParts[0] == 'v') {\n return $itemParts[1];\n }\n }\n\n throw new SignatureVerificationException(\n \"Unable to extract value from signature\"\n );\n }",
"public function getSigner()\n {\n if (array_key_exists(\"signer\", $this->_propDict)) {\n return $this->_propDict[\"signer\"];\n } else {\n return null;\n }\n }",
"public function getSigner()\n {\n return $this->get(self::SIGNER);\n }",
"public function setSignatureVille($signatureVille) {\n $this->signatureVille = $signatureVille;\n return $this;\n }",
"public function setSignatureVille($signatureVille) {\n $this->signatureVille = $signatureVille;\n return $this;\n }",
"private function getSignature(): string {\r\n return base64_encode(hash_hmac(\"sha1\", $this->buildSigningBase(), $this->buildSigningKey(), true));\r\n }",
"public function getSignatureDate() {\n return $this->signatureDate;\n }",
"public function getSignatureDate() {\n return $this->signatureDate;\n }",
"public function getSigla()\n {\n return $this->sigla;\n }",
"public function getSigla()\n {\n return $this->sigla;\n }",
"public function getSignatureType(): string\n {\n return $this->type->getSignatureType();\n }",
"public function signature()\n {\n return 'Vero: ' . \\Vero\\Version::VERSION;\n }",
"public function setSignature()\n {\n \t$options = array('user_id' => $this->user_id,\n \t 'profile_key' => 'sig'\n \t );\n $result = DatabaseObject_UserProfile::getUserProfileData($this->_db, $options);\n \t\n \tif (!$result) {\n \t return \"\";\n \t}\n \t \n \treturn $this->signature = html_entity_decode($result);\n }",
"public function getSigAlgo()\n {\n return $this->sig_algo;\n }",
"public function getSignatureParameters()\n {\n return $this->signatureParameters;\n }",
"public static function getSignature()\n {\n return ':meta';\n }",
"public static function getSignature()\n {\n return ':originalData';\n }",
"private function getSignature()\n\t{\n\t\t$string_to_sign = mb_convert_encoding(\n\t\t\t$this->http_verb . $this->uri . $this->timestamp . $this->nonce,\n\t\t\t'UTF-8'\n\t\t);\n\t\treturn base64_encode(\n\t\t\thash_hmac(\n\t\t\t\t'sha1',\n\t\t\t\t$string_to_sign,\n\t\t\t\t$this->secret,\n\t\t\t\ttrue\n\t\t\t)\n\t\t);\n\t}",
"protected function getSignatureFromRequest()\n\t{\n\t\t$signature = $this->request->header($this->config['signature_header'], null);\n\n\t\tif (is_null($signature) || $signature === '') {\n\t\t\tthrow new AlexaVerificationException('Request signature verification failed: no signature present in header.');\n\t\t}\n\n\t\treturn base64_decode($signature);\n\t}",
"public function getUfIdentidadeSigla() {\n return $this->sUfIdentidadeSigla;\n }",
"public function getStrPaginaSiguiente()\r\n\t\t\t\t{\r\n\t\t\t\t\treturn $this->strPaginaSiguiente;\r\n\t\t\t\t}",
"public function getTransactionSignature()\n {\n return $this->transactionSignature;\n }",
"public function getSiglaunidad()\n {\n return $this->siglaunidad;\n }",
"public function getSignature($raw = false)\n {\n if ($raw) {\n return Hex::decode($this->signature);\n }\n return $this->signature;\n }",
"public function getSignature($key = null) {\n return hash('sha256', $this->getSignatureString($key)); \n }",
"public function getSignature() {\n\t\treturn md5(get_class($this));\n\t}",
"public function mefSignature() {\r\n\t$encoded_header = base64_encode('{\"alg\": \"HS512\",\"typ\": \"JWT\"}');\r\n\t$iss = 'CISCAR';\r\n\tif(isset($_GET['annuaire']) && $_GET['annuaire'] == 2 )\r\n\t{\r\n\t\t\t$iss = 'GCR';\r\n\t}\r\n\t// base64 encodes the payload json\r\n\t$encoded_payload = base64_encode('{\r\n\t\t\t\"iat\": \"'.time().'\",\r\n\t\t\t\"iss\": \"'.$iss.'\",\r\n\t\t\t\"aud\": \"https://boxstva-client.stva.com\",\r\n\t\t\t\"sub\": \"'.$this->getIndividuID().'\",\r\n\t\t\t\"family_name\": \"'.utf8_encode($this->getNom()).'\",\r\n\t\t\t\"given_name\": \"'.utf8_encode($this->getPrenom()).'\",\r\n\t\t\t\"ordering_party\": \"'.$this->getRolePrinc().'\",\r\n\t\t\t\"entities\": \"'.$this->getRattachements().'\"\r\n\t\t}');\r\n\t\r\n\t// base64 strings are concatenated to one that looks like this\r\n\t$header_payload = $encoded_header . '.' . $encoded_payload;\r\n\t\r\n\t//Setting the secret key environnement de Pre-PROD\r\n\t//\"aud\": \"http://box-gcr-pp.stva.com.s3-website-eu-west-1.amazonaws.com\",\r\n\t//$secret_key = '+XgiH7AFTCCUSbuFyMiqYThoStVW7etx32VRhSAKvCrqZPK2rZ4r1gtXoBlZHEismbALi8KKdmdRd3MnoH/19nfwIOV0+tX8blaUy/cQLxCQmfL8BlWuDutdegs72js2zvGpbS1YxXgjWhd4RjsVPn0HSL7q3EBJBORwAELOpI4GZuqSCn1n/R/veZiq7giAv7Gxi+J1A+EOTXtOzZSiQa/tYvcm6xaPTNPzP9HdgxAeKMN4FV44dG+Q66wD14WYOBAo1IPHKvAdWSS53uwRVAb7HDDfflVLcib851LG7fLC6JXaUmdK0iTEU3qJV32wzlF5phax9t16GdJfmCqAxJDMHx0iIVtZYajZPHnPYzXoHHCSilHmPoPZZkmKjlC12L1m87QKVySqP9K3J9fORW+Tn3QIkIcvl+GA4vqomk7/eVP8NT9MwIOvV9pjMJl+cGIoIYYQZmqQ3+Pa7d1NjV0bx6I9WlJNAKYxC5zFvVzqlx5j/H5Wq91WLOrZZNGaE/kygrLmyCYWQiCNzNbwvEsAgCPUgGy0o9o2itVEL4zwzRWPrNDp4fivhMA87QzbzFkDvX9B6PBb1R/3EFy1uSAk22ovyK/fMmN6GRTNeDQdGRi/U64Ys9mA+UjzBi22gy8ZIgFfcnCfJIinMO5PCh2BJ2AQq3kKxe4AMEQmeno=';\r\n\r\n\t//Setting the secret key environnement de PRODUCTION\r\n\t//\"aud\": \"https://boxstva-client.stva.com\",\r\n\t$secret_key = 'Rn2ZvoU+dTOtpE/BOUEuMaf65G2l7lA1nDJV56hmLcl17Y6F2EPCSIrKRCCVWc/Zda7m5Bp/g9BYUIRVTvgmtlcghGRBtswGFwMjq0Ye4QVtmpa8qZBI0sTHGjnbwTvmqZmf1v2TAcJWsAIJsRcoX0IchGvhaEKUMnLAXAUQT4mBhSdUY7H/ZckUthciFveKtxvmKMfjOLJNqciD8fVapuzQBqSRzFhTifVceLG1EmouRnoE5vg3RERwEhpVqFmt0fo+VCOinAR0nHG5Nq0XWXUTmGGsbOcDljLxz+oLAN28cffMc+6OfxkRX3L5ILId3pHMvV+MJns9FCZSA6+u87s3K31fLARCvVP6aVXXRn+M6CGBLxjQtbGopeQCHBRaliNxGr5LJIAkLFusBeG7jqIpGToxqy+D87tiYrg1zG2iRFTkKtvMJRZxdEkCnwJx4jOmuVboKCdtAqCQNX9e4I6jKp+Gs8edSbbV+17TY422DqV+sOXIxMA6udZ1vWm9eDE25dVVoRfiQXC7U/BLEGkV3ocs5du15nD1+NEODqlrVW+2WceQ1yQcSF4hRsU7Wk1pJ+aMRvFkx6PV028nSLExxTTPkxw07BmmDU5W9E6KbLB1/NFtseSyzgxTacGlFEVxmS+Zq846NLcNTrwQuM15Bub4zAy1N8Qv2NeQs4I=';\r\n\t\r\n\t// Creating the signature, a hash with the s512 algorithm and the secret key. The signature is also base64 encoded.\r\n\t$signature = base64_encode(hash_hmac('sha512', $header_payload, $secret_key, true));\r\n\t//$signature = hash_hmac('sha512', $header_payload, $secret_key, true);\r\n\t\r\n\t// Creating the JWT token by concatenating the signature with the header and payload, that looks like this:\r\n\t$jwt_token = $header_payload . '.' . $signature;\r\n\t\r\n\t//listing the resulted JWT\r\n\t//echo $jwt_token;\r\n\t//print $jwt_token;\r\n\treturn $jwt_token;\r\n\t\r\n\t//$decoded_jwt = explode(\".\",$jwt_token);\r\n\t//$decoded_header = base64_decode($decoded_jwt[0]);\r\n\t//$decoded_payload = base64_decode($decoded_jwt[1]);\r\n\t//$decoded_signature = base64_decode($decoded_jwt[2]);\r\n\t//echo $decoded_signature;\r\n\t\r\n\t//die();\r\n\r\n\r\n//\t\t$data = 'my data';\r\n\t\t\r\n//\t\t//Crée une nouvelle clé privée et publique\r\n//\t\t$new_key_pair = openssl_pkey_new(array(\r\n//\t\t\t\t\"private_key_bits\" => 1024,\r\n//\t\t\t\t\"private_key_type\" => OPENSSL_KEYTYPE_RSA,\r\n//\t\t));\r\n//\t\topenssl_pkey_export($new_key_pair, $private_key_pem);\r\n\t\t\r\n//\t\t$details = openssl_pkey_get_details($new_key_pair);\r\n//\t\t$public_key_pem = $details['key'];\r\n\t\t\r\n//\t\t//Création de la signature\r\n//\t\topenssl_sign($data, $signature, $private_key_pem, OPENSSL_ALGO_SHA1);\r\n\t\t\r\n//\t\t//Sauvegarde pour utilisation ultérieur\r\n//\t\tfile_put_contents('private_key.pem', $private_key_pem);\r\n//\t\tfile_put_contents('public_key.pem', $public_key_pem);\r\n//\t\tfile_put_contents('signature.dat', $signature);\r\n//\t\tprint $private_key_pem;\r\n//\t\t//Vérification de la signature\r\n//\t\t$r = openssl_verify($data, $signature, $public_key_pem, \"sha1WithRSAEncryption\");\r\n//\t\tvar_dump($r);\r\n\t}",
"public function getStringForResponseSignature()\r\n\t{\r\n\t\treturn $this->headers[SONIC_HEADER__TARGET_API]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__DATE]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__PLATFORM_GID]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__SOURCE_GID]\r\n\t\t\t\t. $this->headers[SONIC_HEADER__RANDOM]\r\n\t\t\t\t. $this->body;\r\n\t}",
"public function getSignature()\n {\n $input = $this->getArgs();\n\n $str = \"\";\n foreach ($input as $key => $val) {\n $str .= $key . \"=\" . $val . \"&\";\n }\n\n $str .= \"password=\" . $this->config->password;\n return $this->hashFunction($str);\n }",
"public function getSignatureAlgorithm()\n {\n return $this->signature_algorithm;\n }",
"public function getFileVignette(): string\n {\n return (string) $this->fileVignette;\n }",
"public function getVoto() {\n if (isset($_REQUEST['voto'])) {\n return $_REQUEST['voto'];\n } else\n return false;\n }",
"public function getSignature()\n {\n $signString= sprintf(\"%s\\n%s\\n%s\\n%d\", $this->topic, $this->consumerId, $this->message->getMessageHandle(), $this->time);\n return base64_encode(hash_hmac('sha1', $signString, $this->getAuthorization()->getAccessSecret(), true));\n }",
"private function get_signature_image_height() {\n\t\t$height = FrmField::get_option( $this->field, 'max' );\n\t\treturn $this->get_signature_image_dimension( $height, 'max' );\n\t}",
"public function getSignKey(): ?string {\n\t\t\treturn $this->signKey;\n\t\t}",
"public function getLedgerInfoWithSigs()\n {\n return $this->ledger_info_with_sigs;\n }",
"public function getProviseur()\n {\n return $this->proviseur;\n }",
"public function getHashSignedById(): string;",
"public function getSignature(): void\n {\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('Content object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('Content Object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content_object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('content-object')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('ContentObject')\n );\n\n self::assertEquals(\n 'ContentObject',\n ContentObjectUtility::getSignature('contentObject')\n );\n }",
"public static function sdkAnalyticsSignature()\n {\n if (empty(static::$signature)) {\n // Lazily create $signature\n try {\n static::$signature = static::ALGO_VERSION . static::$product . static::$sdkCode .\n static::encodeVersion(static::$sdkVersion) .\n static::encodeVersion(static::$techVersion);\n } catch (OutOfRangeException $e) {\n static::$signature = 'E';\n }\n }\n\n return static::$signature;\n }",
"public function getMpiSignature()\n {\n /** @var $oPmModule oxModule|OxpsPaymorrowModule */\n $oPmModule = oxRegistry::get( 'OxpsPaymorrowModule' );\n\n return sprintf(\n 'Oxid-%s_%s',\n $this->getConfig()->getVersion(), // Shop Version\n $oPmModule->getPaymorrowModuleVersion() // Paymorrow Module version\n );\n }",
"public function getRawSignedRequestFromGet()\r\r\n {\r\r\n if (isset($_GET['signed_request'])) {\r\r\n return $_GET['signed_request'];\r\r\n }\r\r\n\r\r\n return null;\r\r\n }",
"public function getVerificacion()\n {\n return $this->verificacion;\n }",
"public function getSignPublicKey() : string;",
"public function getSignature() : string\n {\n\n return $this->httpMethod . ':' . $this->uri;\n }",
"public function get_work_info_signature($id = null) {\n $this->db->select('work_info.work_info_signature');\n $this->db->from('work_info');\n if ($id != null) {\n $this->db->where('work_info.work_info_id_pri', $id);\n }\n return $this->db->get()->row();\n }",
"public function get_signature_path($name) {\n return $this->get_file_path($name) . '.sign';\n }",
"public static function getSignature($path)\n {\n return Signature::create($path)->get();\n }",
"public function getSignatureContentLength(): int\n {\n return $this->signatureConentLength;\n }",
"public function getSignatureContentLength(): int\n {\n return $this->signatureConentLength;\n }",
"private function get_signature_image_width() {\n\t\t$width = FrmField::get_option( $this->field, 'size' );\n\t\treturn $this->get_signature_image_dimension( $width, 'size' );\n\t}",
"public function getSignatures()\n {\n return $this->signatures;\n }",
"public function getSignatures()\n {\n return $this->signatures;\n }",
"public function getSignature($params = array())\n {\n return $this->getClient()->getSignature($params);\n }",
"public function getVilletierce()\n {\n return $this->villetierce;\n }",
"function cache_signature(&$page) {\n\tif (!isset($GLOBALS['meta']['cache_signature'])){\n\t\tinclude_spip('inc/acces');\n\t\tinclude_spip('auth/sha256.inc');\n\t\t$sigfunc = function_exists('_nano_sha256') ? '_nano_sha256' : 'md5';\n\t\tecrire_meta('cache_signature', $sigfunc($_SERVER[\"DOCUMENT_ROOT\"] . $_SERVER[\"SERVER_SIGNATURE\"] . creer_uniqid()), 'non');\n\t}\n\treturn crc32($GLOBALS['meta']['cache_signature'].$page['texte']);\n}",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }",
"public function getSignatures(){\n return $this->signatures ? : [];\n }",
"public function getSignature(GetSignature $signature)\n {\n $signature->setCustomer($this->getCustomer());\n if (!$signature->getMessage()) {\n $signature->setMessage(new Message());\n }\n\n return $this->getShippingStatusService()->getSignature($signature);\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature = $var;\n\n return $this;\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }",
"public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n\n return $this;\n }",
"public function getAwsSignature()\n {\n return $this->awsSignature;\n }",
"function siguiente() {\n\t\treturn $this->aObjeto();\n\t}",
"public function getVervangt() {\n\t\treturn $this->vervangt;\n\t}",
"private function signature(){\n\t\t\tif($this->get_request_method() != \"POST\"){\n\t\t\t\t$this->response('',406);\n\t\t\t}\t\t\t\n\t\t\t$first_name = $this->_request['first_name'];\t\t\n\t\t\t$last_name = $this->_request['last_name'];\t\n\t\t\t$data = $this->_request['data'];\n\t\t\t$current_datetime = new DateTime(); \n\t\t\t$sig_name = strtolower(preg_replace(\"/[\\W\\s+]/\",\"\", $first_name.'_'.$last_name.'_'.$current_datetime->format('Y-m-d_His')));\n\t\t\t$signature = base64_decode(str_replace(\"data:image/png;base64,\",\"\",$data));\n\t\t\t$result=file_put_contents(\"../signatures/\".$sig_name.\".png\",$signature);\t\n\t\t\tif($result){\n\t\t\t\t $this->response($sig_name.'.png', 200);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// If invalid inputs \"Bad Request\" status message and reason\n\t\t\t\t$error = array('status' => \"Failed\", \"msg\" => \"Signature Failed\");\n\t\t\t\t$this->response($this->json($error), 400);\t\t\t\t\t\t\n\t\t\t}\t\t\n\t\t}",
"private static function generateSignature() {\n $result = microtime(true);\n return substr($result, -7);\n }",
"public function getVatID(): ?string;",
"public function getReplacementSigil()\n {\n if (isset($this->raw->{'replacement-sigil'})) {\n return $this->raw->{'replacement-sigil'};\n }\n\n return '@';\n }"
] | [
"0.72362614",
"0.70100397",
"0.70100397",
"0.70100397",
"0.70100397",
"0.70100397",
"0.698202",
"0.69795424",
"0.69795424",
"0.69611627",
"0.69387734",
"0.691812",
"0.67894834",
"0.67245334",
"0.67245334",
"0.6636831",
"0.6607573",
"0.65785134",
"0.6539263",
"0.6518947",
"0.6518947",
"0.64560777",
"0.64329445",
"0.6428297",
"0.63237685",
"0.6313137",
"0.63115436",
"0.63034046",
"0.6269821",
"0.6158171",
"0.6118738",
"0.6038638",
"0.60291725",
"0.60155004",
"0.60155004",
"0.60082406",
"0.59965295",
"0.59965295",
"0.59931934",
"0.59931934",
"0.59841484",
"0.5949353",
"0.5884377",
"0.5863381",
"0.58597934",
"0.58524346",
"0.5850229",
"0.5847979",
"0.5824065",
"0.58179116",
"0.5802637",
"0.5779591",
"0.5778989",
"0.5763648",
"0.5760103",
"0.573939",
"0.57164794",
"0.5695479",
"0.5661391",
"0.5621733",
"0.55987036",
"0.5590141",
"0.55839026",
"0.5583186",
"0.5565317",
"0.55635315",
"0.5532841",
"0.5477393",
"0.54735863",
"0.5440643",
"0.54350585",
"0.5433943",
"0.5426701",
"0.5416702",
"0.541312",
"0.5409592",
"0.5401682",
"0.53973025",
"0.53966445",
"0.53966445",
"0.5372859",
"0.5360183",
"0.5360183",
"0.5342939",
"0.534099",
"0.5332431",
"0.53182787",
"0.5304176",
"0.5302322",
"0.528852",
"0.52856374",
"0.52856374",
"0.52749616",
"0.5270796",
"0.5265541",
"0.52581954",
"0.52530026",
"0.52523637",
"0.52516216"
] | 0.8623605 | 1 |
Get the subrogation constantes. | public function getSubrogationConstantes() {
return $this->subrogationConstantes;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getConstants()\n\t{\n\t\treturn $this->constants;\n\t}",
"public function getConstants()\n {\n return $this->constants;\n }",
"public function getConstants()\n {\n return $this->constants;\n }",
"static function getConstants()\n {\n $oClass = new ReflectionClass(__CLASS__);\n return $oClass->getConstants();\n }",
"public function getConstants(): Collection\n {\n return $this->constants;\n }",
"public function getConstList(){\n\t\treturn $this->getConstantsList();\n\t}",
"public function getConstants()\n {\n return array();\n }",
"public function getConsts() {\n $const = $this->get('const');\n return null !== $const ? $const : array();\n }",
"public static function getConstants()\n {\n $self = new ReflectionClass(static::class);\n\n return $self->getConstants();\n }",
"final static private function getConstants()\n\t{\n $class = get_called_class();\n\t\tif(!isset(self::$_consts[$class])) {\n\t\t\tif($class == __CLASS__) {\n\t\t\t\tthrow new \\BadMethodCallException('You can\\'t access constants from Enum class');\n\t\t\t}\n\t\t\t$reflection = new \\ReflectionClass($class);\n\t\t\tself::$_consts[$class] = $reflection->getConstants();\n\t\t}\n\t\treturn self::$_consts[$class];\n\t}",
"public function setSubrogationConstantes($subrogationConstantes) {\n $this->subrogationConstantes = $subrogationConstantes;\n return $this;\n }",
"public static function getConstList()\n\t{\n\t\t$reflect = new ReflectionClass(get_called_class());\n\t\treturn $reflect->getConstants();\n\t}",
"private static function getConstants() {\n if (self::$constCacheArray == NULL) {\n self::$constCacheArray = [];\n }\n\n $calledClass = get_called_class();\n \n if (!array_key_exists($calledClass, self::$constCacheArray)) {\n $reflect = new ReflectionClass($calledClass);\n self::$constCacheArray[$calledClass] = $reflect->getConstants();\n }\n\n return self::$constCacheArray[$calledClass];\n }",
"public static function getValues()\n\t\t{\n\n\t\t\t$reflectionClass = new ReflectionClass(static::class);\n\t\t\treturn array_values($reflectionClass->getConstants());\n\n\t\t}",
"public static function getConstants()\n {\n if (empty(self::$_constantsCache)) {\n $reflectionClass = new \\ReflectionClass(get_called_class());\n self::$_constantsCache = $reflectionClass->getConstants();\n }\n return self::$_constantsCache;\n }",
"public function getConstants(): Collection\n {\n return collection($this->reflectionObject->getImmediateReflectionConstants())->map(function (ReflectionClassConstant $constant) {\n return new ConstantEntity($constant);\n });\n }",
"static public function getEnumConstants()\n {\n if ( !self::$constants )\n {\n // array of enums constants\n self::$constants = array(\n new PropertyContentType (self::REGULAR),\n new PropertyContentType (self::ID),\n new PropertyContentType (self::RELATION_TO_PARENT),\n new PropertyContentType (self::ROLLUP_OPERATOR),\n new PropertyContentType (self::ORG_TITLE),\n new PropertyContentType (self::CAPTION),\n new PropertyContentType (self::CAPTION_SHORT),\n new PropertyContentType (self::CAPTION_DESCRIPTION),\n new PropertyContentType (self::CAPTION_ABREVIATION),\n new PropertyContentType (self::WEB_URL),\n new PropertyContentType (self::WEB_HTML),\n new PropertyContentType (self::WEB_XML_OR_XSL),\n new PropertyContentType (self::WEB_MAIL_ALIAS),\n new PropertyContentType (self::ADDRESS),\n new PropertyContentType (self::ADDRESS_STREET),\n new PropertyContentType (self::ADDRESS_HOUSE),\n new PropertyContentType (self::ADDRESS_CITY),\n new PropertyContentType (self::ADDRESS_STATE_OR_PROVINCE),\n new PropertyContentType (self::ADDRESS_ZIP),\n new PropertyContentType (self::ADDRESS_QUARTER),\n new PropertyContentType (self::ADDRESS_COUNTRY),\n new PropertyContentType (self::ADDRESS_BUILDING),\n new PropertyContentType (self::ADDRESS_ROOM),\n new PropertyContentType (self::ADDRESS_FLOOR),\n new PropertyContentType (self::ADDRESS_FAX),\n new PropertyContentType (self::ADDRESS_PHONE),\n new PropertyContentType (self::GEO_CENTROID_X),\n new PropertyContentType (self::GEO_CENTROID_Y),\n new PropertyContentType (self::GEO_CENTROID_Z),\n new PropertyContentType (self::GEO_BOUNDARY_TOP),\n new PropertyContentType (self::GEO_BOUNDARY_LEFT),\n new PropertyContentType (self::GEO_BOUNDARY_BOTTOM),\n new PropertyContentType (self::GEO_BOUNDARY_RIGHT),\n new PropertyContentType (self::GEO_BOUNDARY_FRONT),\n new PropertyContentType (self::GEO_BOUNDARY_REAR),\n new PropertyContentType (self::GEO_BOUNDARY_POLYGON),\n new PropertyContentType (self::PHYSICAL_SIZE),\n new PropertyContentType (self::PHYSICAL_COLOR),\n new PropertyContentType (self::PHYSICAL_WEIGHT),\n new PropertyContentType (self::PHYSICAL_HEIGHT),\n new PropertyContentType (self::PHYSICAL_WIDTH),\n new PropertyContentType (self::PHYSICAL_DEPTH),\n new PropertyContentType (self::PHYSICAL_VOLUME),\n new PropertyContentType (self::PHYSICAL_DENSITY),\n new PropertyContentType (self::PERSON_FULL_NAME),\n new PropertyContentType (self::PERSON_FIRST_NAME),\n new PropertyContentType (self::PERSON_LAST_NAME),\n new PropertyContentType (self::PERSON_MIDDLE_NAME),\n new PropertyContentType (self::PERSON_DEMOGRAPHIC),\n new PropertyContentType (self::PERSON_CONTACT),\n new PropertyContentType (self::QTY_RANGE_LOW),\n new PropertyContentType (self::QTY_RANGE_HIGH),\n new PropertyContentType (self::FORMATTING_COLOR),\n new PropertyContentType (self::FORMATTING_ORDER),\n new PropertyContentType (self::FORMATTING_FONT),\n new PropertyContentType (self::FORMATTING_FONT_EFFECTS),\n new PropertyContentType (self::FORMATTING_FONT_SIZE),\n new PropertyContentType (self::FORMATTING_SUB_TOTAL),\n new PropertyContentType (self::DATE),\n new PropertyContentType (self::DATE_START),\n new PropertyContentType (self::DATE_ENDED),\n new PropertyContentType (self::DATE_CANCELED),\n new PropertyContentType (self::DATE_MODIFIED),\n new PropertyContentType (self::DATE_DURATION),\n new PropertyContentType (self::VERSION)\n );\n }\n\n return self::$constants;\n }",
"final static public function toArray()\n {\n return self::getConstants();\n }",
"public static function getConstants(): array\n {\n $oClass = new ReflectionClass(__CLASS__);\n return $oClass->getConstants();\n }",
"public static function toArray()\n\t{\n\t\treturn array_flip((new \\ReflectionClass(new self))->getConstants());\n\t}",
"public static function toArray()\n\t{\n\t\treturn array_flip((new \\ReflectionClass(new self))->getConstants());\n\t}",
"public static function getValues()\n {\n return Hash::extract(self::getConstants(), '{s}.value');\n }",
"static function getCollection(){\n $class = new ReflectionClass(get_called_class());\n return collect($class->getConstants());\n }",
"private static function getConstants(): array\n {\n $calledClass = get_called_class();\n\n if (!array_key_exists($calledClass, self::$constCacheArray)) {\n $reflect = new ReflectionClass($calledClass);\n self::$constCacheArray[$calledClass] = $reflect->getConstants();\n }\n\n return self::$constCacheArray[$calledClass];\n }",
"public static function getMap()\n\t\t{\n\n\t\t\t$reflectionClass = new ReflectionClass(static::class);\n\t\t\treturn array_flip($reflectionClass->getConstants());\n\n\t\t}",
"public function getConstants($extension = null, $version = null);",
"public static function getValues(): array\n {\n $reflectionClass = new ReflectionClass(static::class);\n\n return array_values($reflectionClass->getConstants());\n }",
"private function define_constants()\n {\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_NEW', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_PENDING', 1100);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_ACKNOWLEDGED', 1200);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_RESOLVED', 1400);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_STATUS_CLOSED', 2000);\n\n define('FI_KILONKIPINAT_TODOS_TODOITEM_RELATED_LINKTYPE_PENDING', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_RELATED_LINKTYPE_DUPLICATE', 1100);\n \n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_ULTRALIGHT', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_LIGHT', 1100);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_MEDIUM', 1200);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_HEAVY', 1300);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_WEIGHT_SUPERHEAVY', 1400);\n \n define('FI_KILONKIPINAT_TODOS_TODOITEM_VISIBILITY_PUBLIC', 1000);\n define('FI_KILONKIPINAT_TODOS_TODOITEM_VISIBILITY_SECURE', 1100);\n }",
"public static function values()\n {\n $class = get_called_class();\n\n if (!isset(self::$cache[$class])) {\n $reflected = new \\ReflectionClass($class);\n self::$cache[$class] = $reflected->getConstants();\n }\n\n return self::$cache[$class];\n }",
"public function testgetConstantsFromExtension()\n {\n if (is_null($this->ref)) {\n return;\n }\n\n $const = get_defined_constants(true);\n\n foreach ($this->ref['extensions'] as $extname => $opt) {\n if (isset($const[$extname])) {\n // Test if each constants are in reference\n foreach ($const[$extname] as $constname => $value) {\n if (!in_array($constname, $this->ignoredconstants)) {\n $this->assertArrayHasKey(\n $constname,\n $this->ref['constants'],\n \"Defined constant '$constname' not known in Reference.\"\n );\n }\n }\n }\n }\n }",
"public static function toArray(): array\n {\n return self::getConstants();\n }",
"function renderConstants() {\n\n $this->constants[\"public\"] = $this->accessor->getConstantsByAccess(\"public\");\n $this->constants[\"private\"] = $this->accessor->getConstantsByAccess(\"private\");\n\n if (0 == count($this->constants[\"public\"]) && 0 == count($this->constants[\"private\"]))\n return;\n\n $this->renderConstantSummary();\n $this->renderConstantDetail();\n $this->constants = array();\n\n }",
"public static function getValues()\n {\n return array_values(self::getConstants());\n }",
"public function getWithAdditionalConstants(): array\n {\n return array_merge(\n $this->getConstants(),\n ['user' => ['user', 'stubbles.user.path']]\n );\n }",
"private function extractConstants(): array\n {\n $tokens = $this->tokens->findFirstCurlyParenthesizedBlock();\n $tokens = $tokens->withoutBlocks();\n\n preg_match_all('/(?<docblock>T_DOC_COMMENT )?(?<qualifiers>(T_PUBLIC |T_PROTECTED |T_PRIVATE )*)T_CONST (?<name>T_STRING )(= (?<value>(?:(?!; ).)+))?; /',\n $tokens->asString(),\n $matches,\n PREG_OFFSET_CAPTURE | PREG_SET_ORDER);\n\n $constants = [];\n foreach ($matches as $match)\n {\n $constantTokens = TokenMatchHelper::codeBlock($match, $tokens, $this->tokens);\n $lines = $constantTokens->lines();\n\n $constants[] = ['docblock' => TokenMatchHelper::docblockDetails($match, $tokens),\n 'visibility' => TokenMatchHelper::visibility($match),\n 'name' => TokenMatchHelper::code('name', $match, $tokens),\n 'value' => TokenMatchHelper::code('value', $match, $tokens),\n 'start' => $lines['start'],\n 'end' => $lines['end'],\n 'tokens' => $constantTokens];\n }\n\n return $constants;\n }",
"public function getConstitution()\n {\n return $this->Constitution;\n }",
"public static function getSubcatValues()\n\t{\n\t}",
"public static function listLevels(): array\n {\n static $list = [];\n if (empty($list)) {\n $list = (new \\ReflectionClass(__CLASS__))->getConstants();\n }\n return $list;\n }",
"public function getAllConstituents(){\n $stmt = $this->con->prepare(\"SELECT * FROM constituency ORDER BY constituency ASC\");\n $stmt->execute();\n $constituents = $stmt->get_result();\n $stmt->close();\n return $constituents;\n }",
"protected static function defineBaseConstants() {}",
"function constants() {\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant name for the post type name.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_NAME', 'rv-portfolio' );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set the slug of the plugin.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_SLUG', basename( dirname( __FILE__ ) ) );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set the name for the 'meta_key' value in the 'wp_postmeta' table.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_POSTMETA', 'rv_portfolio' );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant path to the plugin directory.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant path to the plugin URI.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );\r\n\r\n\t\t\t/**\r\n\t\t\t * Set constant DB option field.\r\n\t\t\t *\r\n\t\t\t * @since 1.0.0\r\n\t\t\t */\r\n\t\t\tdefine( 'RV_PORTFOLIO_OPTIONS_NAME', 'rv_portfolio_options' );\r\n\r\n\t\t}",
"public static function getConfigConstants($selfEdit) {\r\n\r\n\t\t$url = MoufReflectionProxy::getLocalUrlToProject().\"src/direct/get_defined_constants.php?selfedit=\".(($selfEdit)?\"true\":\"false\");\r\n\t\t\r\n\t\t$response = self::performRequest($url);\r\n\r\n\t\t$obj = @unserialize($response);\r\n\t\t\r\n\t\tif ($obj === false) {\r\n\t\t\tthrow new Exception(\"Unable to unserialize message:\\n\".$response.\"\\n<br/>URL in error: <a href='\".plainstring_to_htmlprotected($url).\"'>\".plainstring_to_htmlprotected($url).\"</a>\");\r\n\t\t}\r\n\t\t\r\n\t\treturn $obj;\r\n\t}",
"public function getConstants($extension = null, $version = null)\n {\n $constants = array();\n\n if ((null == $version ) || ('4' == $version)) {\n $version4 = array(\n 'XML_ELEMENT_NODE' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_NODE' => array('5.0.0', ''),\n 'XML_TEXT_NODE' => array('5.0.0', ''),\n 'XML_CDATA_SECTION_NODE' => array('5.0.0', ''),\n 'XML_ENTITY_REF_NODE' => array('5.0.0', ''),\n 'XML_ENTITY_NODE' => array('5.0.0', ''),\n 'XML_PI_NODE' => array('5.0.0', ''),\n 'XML_COMMENT_NODE' => array('5.0.0', ''),\n 'XML_DOCUMENT_NODE' => array('5.0.0', ''),\n 'XML_DOCUMENT_TYPE_NODE' => array('5.0.0', ''),\n 'XML_DOCUMENT_FRAG_NODE' => array('5.0.0', ''),\n 'XML_NOTATION_NODE' => array('5.0.0', ''),\n 'XML_HTML_DOCUMENT_NODE' => array('5.0.0', ''),\n 'XML_DTD_NODE' => array('5.0.0', ''),\n 'XML_ELEMENT_DECL_NODE' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_DECL_NODE' => array('5.0.0', ''),\n 'XML_ENTITY_DECL_NODE' => array('5.0.0', ''),\n 'XML_NAMESPACE_DECL_NODE' => array('5.0.0', ''),\n 'XML_LOCAL_NAMESPACE' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_CDATA' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_ID' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_IDREF' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_IDREFS' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_ENTITY' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_NMTOKEN' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_NMTOKENS' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_ENUMERATION' => array('5.0.0', ''),\n 'XML_ATTRIBUTE_NOTATION' => array('5.0.0', ''),\n 'DOM_PHP_ERR' => array('5.0.0', ''),\n 'DOM_INDEX_SIZE_ERR' => array('5.0.0', ''),\n 'DOMSTRING_SIZE_ERR' => array('5.0.0', ''),\n 'DOM_HIERARCHY_REQUEST_ERR' => array('5.0.0', ''),\n 'DOM_WRONG_DOCUMENT_ERR' => array('5.0.0', ''),\n 'DOM_INVALID_CHARACTER_ERR' => array('5.0.0', ''),\n 'DOM_NO_DATA_ALLOWED_ERR' => array('5.0.0', ''),\n 'DOM_NO_MODIFICATION_ALLOWED_ERR'\n => array('5.0.0', ''),\n 'DOM_NOT_FOUND_ERR' => array('5.0.0', ''),\n 'DOM_NOT_SUPPORTED_ERR' => array('5.0.0', ''),\n 'DOM_INUSE_ATTRIBUTE_ERR' => array('5.0.0', ''),\n 'DOM_INVALID_STATE_ERR' => array('5.0.0', ''),\n 'DOM_SYNTAX_ERR' => array('5.0.0', ''),\n 'DOM_INVALID_MODIFICATION_ERR' => array('5.0.0', ''),\n 'DOM_NAMESPACE_ERR' => array('5.0.0', ''),\n 'DOM_INVALID_ACCESS_ERR' => array('5.0.0', ''),\n 'DOM_VALIDATION_ERR' => array('5.0.0', ''),\n );\n $constants = array_merge(\n $constants,\n $version4\n );\n }\n if ((null == $version ) || ('5' == $version)) {\n $version5 = array(\n );\n $constants = array_merge(\n $constants,\n $version5\n );\n }\n\n return $constants;\n }",
"public static function getNames()\n\t\t{\n\n\t\t\t$reflectionClass = new ReflectionClass(static::class);\n\t\t\treturn array_keys($reflectionClass->getConstants());\n\n\t\t}",
"public function defineConstants ()\n {\n foreach ($this->data as $key => $value) {\n define(strtoupper($key), $value);\n }\n }",
"public static function getAspectRatioNames()\n {\n return self::getConstants();\n }",
"public static function getAspectRatioNames()\n {\n return self::getConstants();\n }",
"private static function get_dependencies() {\r\n\t\tif (self::is_version_1_8_or_higher()) {\r\n\t\t\t$ret = array(\r\n\t\t\t\tself::EFFECTS_CORE => array(),\r\n\t\t\t\tself::EFFECTS_BLIND => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_BOUNCE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_CLIP => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_DROP => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_EXPLODE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_FADE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_FOLD => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_HIGHLIGHT => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_PULSATE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_SCALE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_SHAKE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_SLIDE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_TRANSFER => array(self::EFFECTS_CORE),\r\n\t\t\t\t\r\n\t\t\t\t/* Widgets constants */\r\n\t\t\t\tself::WIDGET_ACCORDION => array(self::CORE, self::CORE_WIDGET),\r\n\t\t\t\tself::WIDGET_BUTTON => array(self::CORE, self::CORE_WIDGET),\r\n\t\t\t\tself::WIDGET_DATEPICKER => array(self::CORE, self::CORE_WIDGET),\r\n\t\t\t\tself::WIDGET_DIALOG => array(self::WIDGET_BUTTON, self::FEATURE_MOUSE, self::FEATURE_POSITION, self::FEATURE_DRAGGABLE, self::FEATURE_RESIZABLE),\r\n\t\t\t\tself::WIDGET_PROGRESSBAR => array(self::CORE, self::CORE_WIDGET),\r\n\t\t\t\tself::WIDGET_SLIDER => array(self::CORE, self::CORE_WIDGET, self::FEATURE_MOUSE),\r\n\t\t\t\tself::WIDGET_TABS => array(self::CORE, self::CORE_WIDGET),\r\n\t\t\t\tself::WIDGET_AUTOCOMPLETE => array(self::CORE, self::CORE_WIDGET, self::FEATURE_POSITION),\r\n\t\t\t\t\r\n\t\t\t\t/* Feature constants */\r\n\t\t\t\tself::FEATURE_DRAGGABLE => array(self::CORE, self::CORE_WIDGET, self::FEATURE_MOUSE),\r\n\t\t\t\tself::FEATURE_DROPPABLE => array(self::FEATURE_DRAGGABLE),\r\n\t\t\t\tself::FEATURE_RESIZABLE => array(self::CORE, self::CORE_WIDGET, self::FEATURE_MOUSE),\r\n\t\t\t\tself::FEATURE_SELECTABLE => array(self::CORE, self::CORE_WIDGET, self::FEATURE_MOUSE),\r\n\t\t\t\tself::FEATURE_SORTABLE => array(self::CORE, self::CORE_WIDGET, self::FEATURE_MOUSE),\r\n\t\t\t\t// 1.8 stuff\r\n\t\t\t\tself::FEATURE_MOUSE => array(self::CORE_WIDGET),\r\n\t\t\t\tself::FEATURE_POSITION => array(),\r\n\t\t\t\t\r\n\t\t\t\tself::CORE_WIDGET => array(),\r\n\t\t\t\tself::CORE => array(),\t\t\t\r\n\t\t\t);\r\n\t\t\tif (self::is_version_1_10_or_higher()) {\r\n\t\t\t\t$ret[self::WIDGET_AUTOCOMPLETE][] = self::WIDGET_MENU;\r\n\t\t\t}\r\n\t\t}\t\r\n\t\telse {\r\n\t\t\t// Version 1.7\r\n\t\t\t$ret = array(\r\n\t\t\t\tself::EFFECTS_CORE => array(),\r\n\t\t\t\tself::EFFECTS_BLIND => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_BOUNCE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_CLIP => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_DROP => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_EXPLODE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_FADE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_FOLD => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_HIGHLIGHT => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_PULSATE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_SCALE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_SHAKE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_SLIDE => array(self::EFFECTS_CORE),\r\n\t\t\t\tself::EFFECTS_TRANSFER => array(self::EFFECTS_CORE),\r\n\t\t\t\t\r\n\t\t\t\t/* Widgets constants */\r\n\t\t\t\tself::WIDGET_ACCORDION => array(self::CORE),\r\n\t\t\t\tself::WIDGET_DATEPICKER => array(self::CORE),\r\n\t\t\t\tself::WIDGET_DIALOG => array(self::CORE, self::FEATURE_DRAGGABLE, self::FEATURE_RESIZABLE),\r\n\t\t\t\tself::WIDGET_PROGRESSBAR => array(self::CORE),\r\n\t\t\t\tself::WIDGET_SLIDER => array(self::CORE),\r\n\t\t\t\tself::WIDGET_TABS => array(self::CORE),\r\n\t\t\t\tself::WIDGET_AUTOCOMPLETE => array(),\r\n\t\t\t\t\r\n\t\t\t\t/* Feature constants */\r\n\t\t\t\tself::FEATURE_DRAGGABLE => array(self::CORE),\r\n\t\t\t\tself::FEATURE_DROPPABLE => array(self::FEATURE_DRAGGABLE),\r\n\t\t\t\tself::FEATURE_RESIZABLE => array(self::CORE),\r\n\t\t\t\tself::FEATURE_SELECTABLE => array(self::CORE),\r\n\t\t\t\tself::FEATURE_SORTABLE => array(self::CORE),\r\n\t\t\t\t\r\n\t\t\t\tself::CORE => array(),\t\t\t\r\n\t\t\t);\r\n\t\t}\r\n\t\treturn $ret;\r\n\t}",
"public function constants() {\n\n\t\t\t/**\n\t\t\t * Set the version number of the plugin.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tdefine( 'CHERRY_SITE_SHORTCODES_VERSION', '1.0.0' );\n\n\t\t\t/**\n\t\t\t * Set constant path to the plugin directory.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tdefine( 'CHERRY_SITE_SHORTCODES_DIR', trailingslashit( plugin_dir_path( __FILE__ ) ) );\n\n\t\t\t/**\n\t\t\t * Set constant path to the plugin URI.\n\t\t\t *\n\t\t\t * @since 1.0.0\n\t\t\t */\n\t\t\tdefine( 'CHERRY_SITE_SHORTCODES_URI', trailingslashit( plugin_dir_url( __FILE__ ) ) );\n\t\t}",
"static function getCodes() {\n $oClass = new ReflectionClass(__CLASS__);\n return $oClass->getConstants();\n }",
"public function getLovCivilite()\n\t{\n\t\tfor ($i=OACCOUNT_MADAME; $i<=OACCOUNT_MONSIEUR; $i++)\n\t\t{\n\t\t\t$civilites[$i] = constant('LABEL_' . $i);\n\t\t}\n\t\treturn $civilites;\n\t}",
"public static function getCategories(): array\n\t{\n\t\t$class = new \\ReflectionClass(__CLASS__);\n\t\t$constants = $class->getConstants();\n\n\t\treturn array_flip($constants);\n\t}",
"public static function getAllWorlds()\n {\n $oClass = new ReflectionClass(__CLASS__);\n return $oClass->getConstants();\n }",
"public static function getValues(): array\n {\n return array_values(self::getConstants());\n }",
"protected static function getEnumConstants(): array\n {\n static $enumConstants = [];\n if (!isset($enumConstants[static::class])) {\n try {\n $reflectionClass = new \\ReflectionClass(static::class);\n $enumConstants[static::class] = $reflectionClass->getConstants();\n } catch (\\ReflectionException $e) {\n throw new \\RuntimeException($e->getMessage(), $e->getCode(), $e);\n }\n }\n return $enumConstants[static::class];\n }",
"static function listado() {\n $class = new ReflectionClass(\"Monedas\");\n $mons = array();\n foreach ($class->getConstants() as $index => $value) {\n if (strlen($index) == 3) {\n $mons[$index] = $value;\n }\n }\n return $mons;\n }",
"public function getConstExpr()\n {\n return $this->readOneof(3);\n }",
"public function getConstants($extension = null, $version = null, $condition = null)\n {\n $this->setFilter(func_get_args());\n\n $constants = array();\n\n $release = false;\n $items = array(\n 'CAL_GREGORIAN' => array('4.0.0', ''),\n 'CAL_JULIAN' => array('4.0.0', ''),\n 'CAL_JEWISH' => array('4.0.0', ''),\n 'CAL_FRENCH' => array('4.0.0', ''),\n 'CAL_NUM_CALS' => array('4.0.0', ''),\n 'CAL_DOW_DAYNO' => array('4.0.0', ''),\n 'CAL_DOW_SHORT' => array('4.0.0', ''),\n 'CAL_DOW_LONG' => array('4.0.0', ''),\n 'CAL_MONTH_GREGORIAN_SHORT' => array('4.0.0', ''),\n 'CAL_MONTH_GREGORIAN_LONG' => array('4.0.0', ''),\n 'CAL_MONTH_JULIAN_SHORT' => array('4.0.0', ''),\n 'CAL_MONTH_JULIAN_LONG' => array('4.0.0', ''),\n 'CAL_MONTH_JEWISH' => array('4.0.0', ''),\n 'CAL_MONTH_FRENCH' => array('4.0.0', ''),\n 'CAL_EASTER_DEFAULT' => array('4.3.0', ''),\n 'CAL_EASTER_ROMAN' => array('4.3.0', ''),\n 'CAL_EASTER_ALWAYS_GREGORIAN' => array('4.3.0', ''),\n 'CAL_EASTER_ALWAYS_JULIAN' => array('4.3.0', ''),\n 'CAL_JEWISH_ADD_ALAFIM_GERESH' => array('5.0.0', ''),\n 'CAL_JEWISH_ADD_ALAFIM' => array('5.0.0', ''),\n 'CAL_JEWISH_ADD_GERESHAYIM' => array('5.0.0', ''),\n );\n $this->applyFilter($release, $items, $constants);\n\n return $constants;\n }",
"static function values()\n {\n return array(\n ScaleValue::SCALE_Y_N,\n ScaleValue::SCALE_1_5\n );\n }",
"public static function variants()\n {\n return [\n self::PRIMARY,\n self::SECONDARY,\n self::SUCCESS,\n self::WARNING,\n self::DANGER,\n self::INFO,\n self::LIGHT,\n self::DARK,\n ];\n }",
"public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }",
"protected function readIncludeSubStyle() { return $this->_incsubstyle; }",
"public static function getImageObjectSizesNamesAndValues()\n {\n return self::getConstants();\n }",
"function ms_subdomain_constants()\n {\n }",
"private function setConstants()\n {\n $this->FIELDTAG = '(?<tag>(?:[a-z0-9\\.]{3,3}|[A-Z0-9\\.]{3,3}|[0-9\\.]{3,3}))';\n $this->POSITIONORRANGE = '(?:(?:(?:[0-9]+|#)\\-(?:[0-9]+|#))|(?:[0-9]+|#))';\n $this->INDEX = '(?:\\[(?<index>'.$this->POSITIONORRANGE.')\\])?';\n $this->CHARPOS = '(?:\\/(?<charpos>'.$this->POSITIONORRANGE.'))?';\n $this->INDICATORPOS = '(?:\\^(?<indicatorpos>[12]))';\n $this->SUBSPECS = '(?<subspecs>(?:\\{.+?(?<!(?<!(\\$|\\\\\\))(\\$|\\\\\\))\\})+)?';\n $this->SUBFIELDS = '(?<subfields>\\$.+)';\n $this->FIELD = '(?<field>'.$this->FIELDTAG.$this->INDEX.')';\n $this->MARCSPEC = '^'.$this->FIELD.'(?:'.$this->SUBFIELDS.'|(?:'.$this->INDICATORPOS.'|'.$this->CHARPOS.')'.$this->SUBSPECS.')$';\n $this->SUBFIELDTAGRANGE = '(?<subfieldtagrange>(?:[0-9a-z]\\-[0-9a-z]))';\n $this->SUBFIELDTAG = '(?<subfieldtag>[\\!-\\?\\[-\\{\\}-~])';\n $this->SUBFIELD = '(?<subfield>\\$(?:'.$this->SUBFIELDTAGRANGE.'|'.$this->SUBFIELDTAG.')'.$this->INDEX.$this->CHARPOS.$this->SUBSPECS.')';\n $this->LEFTSUBTERM = '^(?<leftsubterm>(?:\\\\\\(?:(?<=\\\\\\)[\\!\\=\\~\\?]|[^\\!\\=\\~\\?])+)|(?:(?<=\\$)[\\!\\=\\~\\?]|[^\\!\\=\\~\\?])+)?';\n $this->OPERATOR = '(?<operator>\\!\\=|\\!\\~|\\=|\\~|\\!|\\?)';\n $this->SUBTERMS = '(?:'.$this->LEFTSUBTERM.$this->OPERATOR.')?(?<rightsubterm>.+)$';\n $this->SUBSPEC = '(?:\\{(.+)\\})';\n }",
"public static function values()\n {\n return array (\n self::HOLIDAY => \"Отгул\",\n self::SICK => \"Болел\",\n self::TRIP => \"Командировка\",\n self::HOME => \"Из дома\",\n self::OTHER_OFFICE => \"В другом офисе\",\n self::VACATION => \"Отпуск\",\n );\n }",
"protected function buildCommonValues(): array\n {\n $values = [];\n $reflectionClass = new ReflectionClass(HttpStatusInterface::class);\n foreach ($reflectionClass->getConstants() as $name => $value) {\n $code = constant('Altair\\Http\\Contracts\\HttpStatusCodeInterface::' . $name);\n $values[$code] = $value;\n }\n\n return $values;\n }",
"public static function loadConstants(): void\n {\n AppConstant::defineConstant('USER_UNIQUE_ENTITY_ERROR', self::UNIQUE_ENTITY_ERROR);\n AppConstant::defineConstant('USER_USERNAME_EMPTY_ERROR', self::USERNAME_EMPTY_ERROR);\n AppConstant::defineConstant('USER_USERNAME_MIN_LENGTH_ERROR', self::USERNAME_MIN_LENGTH_ERROR);\n AppConstant::defineConstant('USER_USERNAME_MAX_LENGTH_ERROR', self::USERNAME_MAX_LENGTH_ERROR);\n AppConstant::defineConstant('USER_PASSWORD_EMPTY_ERROR', self::PASSWORD_EMPTY_ERROR);\n AppConstant::defineConstant('USER_PASSWORD_MIN_LENGTH_ERROR', self::PASSWORD_MIN_LENGTH_ERROR);\n AppConstant::defineConstant('USER_PASSWORD_MAX_LENGTH_ERROR', self::PASSWORD_MAX_LENGTH_ERROR);\n AppConstant::defineConstant('USER_CREATED_BY_EMPTY_ERROR', self::CREATED_BY_EMPTY_ERROR);\n\n //Constants for Annotations in App\\Controller\\Api\\Admin\\RoleController\n AppConstant::defineConstant('USER_GET_USERS_SECURITY_ERROR', self::GET_USERS_SECURITY_ERROR);\n AppConstant::defineConstant('USER_GET_USER_SECURITY_ERROR', self::GET_USER_SECURITY_ERROR);\n AppConstant::defineConstant('USER_CREATE_USER_SECURITY_ERROR', self::CREATE_USER_SECURITY_ERROR);\n AppConstant::defineConstant('USER_UPDATE_USER_SECURITY_ERROR', self::UPDATE_USER_SECURITY_ERROR);\n AppConstant::defineConstant('USER_DELETE_USER_SECURITY_ERROR', self::DELETE_USER_SECURITY_ERROR);\n }",
"public function getOptions() : array\n {\n $reflection = new \\ReflectionClass(get_class($this));\n return array_values($reflection->getConstants());\n }",
"public function getEnumValues()\n {\n return array(\n 'single_br_tavern' => self::single_br_tavern,\n 'combo_br_tavern' => self::combo_br_tavern,\n 'single_gd_tavern' => self::single_gd_tavern,\n 'combo_gd_tavern' => self::combo_gd_tavern,\n 'magic_soul_tavern' => self::magic_soul_tavern,\n 'rmb_recharge' => self::rmb_recharge,\n 'diamond_consume' => self::diamond_consume,\n );\n }",
"public static function constant()\n {\n $args = func_get_args();\n $output = array_pop( $args );\n\n foreach( $args as $name )\n {\n if( defined( $name ) )\n {\n return constant( $name );\n }\n }\n return $output;\n }",
"public function getCIRUGIAS()\r\n {\r\n return $this->CIRUGIAS;\r\n }",
"public function getConsts($prefix)\n {\n if (isset(self::$consts[$prefix])) {\n return self::$consts[$prefix];\n }\n\n // 1. Get all class constants\n $class = new \\ReflectionClass($this);\n $consts = $class->getConstants();\n\n // 2. Use exiting constant configs\n $property = lcfirst(str_replace('_', '', ucwords($prefix, '_'))) . 'Names';\n if (isset($this->{$property})) {\n $names = $this->{$property};\n } else {\n $names = [];\n }\n\n // 3. Generate id and name\n $prefix .= '_';\n $data = [];\n $length = strlen($prefix);\n foreach ($consts as $name => $id) {\n if (0 !== stripos($name, $prefix)) {\n continue;\n }\n if (in_array($name, $this->constExcludes, true)) {\n continue;\n }\n $data[$id]['id'] = $id;\n $data[$id]['key'] = strtolower(strtr(substr($name, $length), ['_' => '-']));\n if (isset($names[$id])) {\n $data[$id]['name'] = $names[$id];\n }\n }\n\n self::$consts[$prefix] = $data;\n\n return $data;\n }",
"public function subs() {\n return self::$instance->subs;\n }",
"public static function values() {\n return parent::membersOf(__CLASS__);\n }",
"public static function values() {\n return parent::membersOf(__CLASS__);\n }",
"public static function values() {\n return parent::membersOf(__CLASS__);\n }",
"public static function getConstList($include_default = false)\n {\n $reflected = new \\ReflectionClass(new static(null));\n\n $constants = $reflected->getConstants();\n\n if (!$include_default) {\n unset($constants['__default']);\n return $constants;\n }\n\n return $constants;\n }",
"public function get_global_component_rules() {\n\t\treturn $this->get_attr_by_name( 'Global Component Rules' )['val'];\n\t}",
"public function getConstants($extension = null, $version = null)\n {\n $constants = array();\n\n if ((null == $version ) || ('4' == $version)) {\n $version4 = array(\n );\n $constants = array_merge(\n $constants,\n $version4\n );\n }\n if ((null == $version ) || ('5' == $version)) {\n $version5 = array(\n // Use in APCIterator\n 'APC_LIST_ACTIVE' => array('5.0.0', ''),\n 'APC_LIST_DELETED' => array('5.0.0', ''),\n 'APC_ITER_TYPE' => array('5.0.0', ''),\n 'APC_ITER_KEY' => array('5.0.0', ''),\n 'APC_ITER_FILENAME' => array('5.0.0', ''),\n 'APC_ITER_DEVICE' => array('5.0.0', ''),\n 'APC_ITER_INODE' => array('5.0.0', ''),\n 'APC_ITER_VALUE' => array('5.0.0', ''),\n 'APC_ITER_MD5' => array('5.0.0', ''),\n 'APC_ITER_NUM_HITS' => array('5.0.0', ''),\n 'APC_ITER_MTIME' => array('5.0.0', ''),\n 'APC_ITER_CTIME' => array('5.0.0', ''),\n 'APC_ITER_DTIME' => array('5.0.0', ''),\n 'APC_ITER_ATIME' => array('5.0.0', ''),\n 'APC_ITER_REFCOUNT' => array('5.0.0', ''),\n 'APC_ITER_MEM_SIZE' => array('5.0.0', ''),\n 'APC_ITER_TTL' => array('5.0.0', ''),\n 'APC_ITER_NONE' => array('5.0.0', ''),\n 'APC_ITER_ALL' => array('5.0.0', ''),\n // use in apc_bin_load*\n 'APC_BIN_VERIFY_MD5' => array('5.0.0', ''),\n 'APC_BIN_VERIFY_CRC32' => array('5.0.0', ''),\n );\n $constants = array_merge(\n $constants,\n $version5\n );\n }\n\n return $constants;\n }",
"function getConstName() \n {\n $name = $this->getName();\n \n return strtoupper( $name );\n }",
"public function getContractorStatics()\n {\n return $this->get(self::contractorstatics);\n }",
"function get_class_constants_value($className)\n {\n $constants_array = get_class_constants($className);\n\n if (empty($constants_array)) {\n return false;\n }\n\n $array = array();\n foreach ($constants_array as $constant) {\n $array[] = constant(\"{$className}::\".$constant);\n }\n\n return $array;\n }",
"public function getEnumValues()\n {\n return array(\n 'rmb' => self::rmb,\n 'money' => self::money,\n 'item' => self::item,\n 'hero' => self::hero,\n 'rand_soul' => self::rand_soul,\n );\n }",
"private function consts()\n\t{\n\t\tif (!defined('WP_PARSI_ROOT'))\n\t\t\tdefine('WP_PARSI_ROOT', __FILE__);\n\n\t\tif (!defined('WP_PARSI_DIR'))\n\t\t\tdefine('WP_PARSI_DIR', plugin_dir_path(WP_PARSI_ROOT));\n\n\t\tif (!defined('WP_PARSI_URL'))\n\t\t\tdefine('WP_PARSI_URL', plugin_dir_url(WP_PARSI_ROOT));\n\n\t\tif (!defined('WP_PARSI_VER'))\n\t\t\tdefine('WP_PARSI_VER', '2.2');\n\t}",
"public static function getAllNames(): array\n {\n $reflection = new \\ReflectionClass(__CLASS__);\n\n return \\array_values($reflection->getConstants());\n }",
"public static function getAllNames(): array\n {\n $reflection = new \\ReflectionClass(__CLASS__);\n\n return \\array_values($reflection->getConstants());\n }",
"public function constants() {\n\n /* Sets the framework version number. */\n define( 'DF_VERSION', '2.2.0' );\n\n /* Sets the path to the parent theme directory. */\n define( 'THEME_DIR', get_template_directory() );\n\n /* Sets the path to the parent theme directory URI. */\n define( 'THEME_URI', get_template_directory_uri() );\n\n /* Sets the path to the child theme directory. */\n define( 'CHILD_THEME_DIR', get_stylesheet_directory());\n\n /* Sets the path to the child theme directory URI. */\n define( 'CHILD_THEME_URI', get_stylesheet_directory_uri() );\n\n /* Sets the path to the core framework directory. */\n define( 'DF_CORE_DIR', trailingslashit( trailingslashit( get_template_directory() ) . 'dahz' ) );\n\n /* Sets the path to the core framework directory URI. */\n define( 'DF_CORE_URI', trailingslashit( trailingslashit( get_template_directory_uri() ) . 'dahz' ) );\n\n define( 'DF_CUSTOMIZER_CONTROL_DIR', trailingslashit( trailingslashit( DF_CORE_DIR ) . 'customizer' ));\n\n /* Sets the path to the core framework extensions directory. */\n define( 'DF_EXTENSION_DIR', trailingslashit( trailingslashit( DF_CORE_DIR ) . 'extensions' ));\n\n /* Sets the path to the core framework functions directory. */\n define( 'DF_FUNCTION_DIR', trailingslashit( trailingslashit( DF_CORE_DIR ) . 'functions' ));\n\n /* Sets the path to the core framework CSS directory URI. */\n define( 'DF_CORE_CSS_DIR', trailingslashit( trailingslashit( DF_CORE_URI ) . 'css' ));\n\n /* Sets the path to the core framework JavaScript directory URI. */\n define( 'DF_CORE_JS_DIR', trailingslashit( trailingslashit( DF_CORE_URI ) . 'js' ));\n\n /* Sets the path to the core framework images directory URI. */\n define( 'DF_CORE_IMG_DIR', trailingslashit( trailingslashit( DF_CORE_URI ) . 'images' ));\n\n }",
"public function getEnumValues()\n {\n return array(\n 'PE_GET_Resource' => self::PE_GET_Resource,\n );\n }",
"public function getSubTypes()\n {\n return $this->subTypes;\n }",
"public function getBasis();",
"public function getConstants($extension = null, $version = null)\n {\n $constants = array();\n\n if ((null == $version ) || ('4' == $version)) {\n $version4 = array(\n );\n $constants = array_merge(\n $constants,\n $version4\n );\n }\n if ((null == $version ) || ('5' == $version)) {\n $version5 = array(\n 'INPUT_POST' => array('5.2.0', ''),\n 'INPUT_GET' => array('5.2.0', ''),\n 'INPUT_COOKIE' => array('5.2.0', ''),\n 'INPUT_ENV' => array('5.2.0', ''),\n 'INPUT_SERVER' => array('5.2.0', ''),\n 'INPUT_SESSION' => array('5.2.0', ''),\n 'INPUT_REQUEST' => array('5.2.0', ''),\n 'FILTER_FLAG_NONE' => array('5.2.0', ''),\n 'FILTER_REQUIRE_SCALAR' => array('5.2.0', ''),\n 'FILTER_REQUIRE_ARRAY' => array('5.2.0', ''),\n 'FILTER_FORCE_ARRAY' => array('5.2.0', ''),\n 'FILTER_NULL_ON_FAILURE' => array('5.2.0', ''),\n 'FILTER_VALIDATE_INT' => array('5.2.0', ''),\n 'FILTER_VALIDATE_BOOLEAN' => array('5.2.0', ''),\n 'FILTER_VALIDATE_FLOAT' => array('5.2.0', ''),\n 'FILTER_VALIDATE_REGEXP' => array('5.2.0', ''),\n 'FILTER_VALIDATE_URL' => array('5.2.0', ''),\n 'FILTER_VALIDATE_EMAIL' => array('5.2.0', ''),\n 'FILTER_VALIDATE_IP' => array('5.2.0', ''),\n 'FILTER_DEFAULT' => array('5.2.0', ''),\n 'FILTER_UNSAFE_RAW' => array('5.2.0', ''),\n 'FILTER_SANITIZE_STRING' => array('5.2.0', ''),\n 'FILTER_SANITIZE_STRIPPED' => array('5.2.0', ''),\n 'FILTER_SANITIZE_ENCODED' => array('5.2.0', ''),\n 'FILTER_SANITIZE_SPECIAL_CHARS' => array('5.2.0', ''),\n 'FILTER_SANITIZE_EMAIL' => array('5.2.0', ''),\n 'FILTER_SANITIZE_URL' => array('5.2.0', ''),\n 'FILTER_SANITIZE_NUMBER_INT' => array('5.2.0', ''),\n 'FILTER_SANITIZE_NUMBER_FLOAT' => array('5.2.0', ''),\n 'FILTER_SANITIZE_MAGIC_QUOTES' => array('5.2.0', ''),\n 'FILTER_CALLBACK' => array('5.2.0', ''),\n 'FILTER_FLAG_ALLOW_OCTAL' => array('5.2.0', ''),\n 'FILTER_FLAG_ALLOW_HEX' => array('5.2.0', ''),\n 'FILTER_FLAG_STRIP_LOW' => array('5.2.0', ''),\n 'FILTER_FLAG_STRIP_HIGH' => array('5.2.0', ''),\n 'FILTER_FLAG_STRIP_BACKTICK' => array('5.3.2', ''),\n 'FILTER_FLAG_ENCODE_LOW' => array('5.2.0', ''),\n 'FILTER_FLAG_ENCODE_HIGH' => array('5.2.0', ''),\n 'FILTER_FLAG_ENCODE_AMP' => array('5.2.0', ''),\n 'FILTER_FLAG_NO_ENCODE_QUOTES' => array('5.2.0', ''),\n 'FILTER_FLAG_EMPTY_STRING_NULL' => array('5.2.0', ''),\n 'FILTER_FLAG_ALLOW_FRACTION' => array('5.2.0', ''),\n 'FILTER_FLAG_ALLOW_THOUSAND' => array('5.2.0', ''),\n 'FILTER_FLAG_ALLOW_SCIENTIFIC' => array('5.2.0', ''),\n 'FILTER_FLAG_SCHEME_REQUIRED' => array('5.2.0', ''),\n 'FILTER_FLAG_HOST_REQUIRED' => array('5.2.0', ''),\n 'FILTER_FLAG_PATH_REQUIRED' => array('5.2.0', ''),\n 'FILTER_FLAG_QUERY_REQUIRED' => array('5.2.0', ''),\n 'FILTER_FLAG_IPV4' => array('5.2.0', ''),\n 'FILTER_FLAG_IPV6' => array('5.2.0', ''),\n 'FILTER_FLAG_NO_RES_RANGE' => array('5.2.0', ''),\n 'FILTER_FLAG_NO_PRIV_RANGE' => array('5.2.0', ''),\n 'FILTER_SANITIZE_FULL_SPECIAL_CHARS'\n => array('5.3.3', ''),\n );\n $constants = array_merge(\n $constants,\n $version5\n );\n }\n\n return $constants;\n }",
"public static function getSubMenus()\n\t{\n\t\treturn self::$submenu;\n\t}",
"public function getEnumValues()\n {\n return array(\n 'green' => self::green,\n 'blue' => self::blue,\n 'purple' => self::purple,\n 'magicsoul' => self::magicsoul,\n );\n }",
"public function getCLINICA()\r\n {\r\n return $this->CLINICA;\r\n }",
"function defineConstants() {\n define('Terminus', true);\n $default_constants = Yaml::parse(\n file_get_contents(TERMINUS_ROOT . '/config/constants.yml')\n );\n foreach ($default_constants as $var_name => $default) {\n if (isset($_SERVER[$var_name]) && ($_SERVER[$var_name] != '')) {\n define($var_name, $_SERVER[$var_name]);\n } else if (!defined($var_name)) {\n define($var_name, $default);\n }\n }\n date_default_timezone_set(TERMINUS_TIME_ZONE);\n\n if (!defined('TERMINUS_SCRIPT')) {\n define('TERMINUS_SCRIPT', 'php/Terminus.php');\n }\n}",
"public function getEnumValues()\n {\n return array(\n 'guild' => self::guild,\n 'tbc' => self::tbc,\n 'stage' => self::stage,\n 'excav' => self::excav,\n );\n }",
"public static function defines()\n {\n define('STRUCTURE_DATA' , self::data());\n define('CURRENT_COPEN_PAGE' , STRUCTURE_DATA['openFunction']);\n define('CURRENT_CFPARAMETERS', STRUCTURE_DATA['parameters']);\n define('CURRENT_CFILE' , STRUCTURE_DATA['file']);\n define('CURRENT_CFUNCTION' , STRUCTURE_DATA['function']);\n define('CURRENT_CPAGE' , ($page = STRUCTURE_DATA['page']) . '.php');\n define('CURRENT_CONTROLLER' , $page);\n define('CURRENT_CNAMESPACE' , $namespace = STRUCTURE_DATA['namespace'] );\n define('CURRENT_CCLASS' , $namespace . CURRENT_CONTROLLER);\n define('CURRENT_CFPATH' , str_replace\n (\n CONTROLLERS_DIR, '', CURRENT_CONTROLLER) . '/' . CURRENT_CFUNCTION\n );\n define('CURRENT_CFURI' , strtolower(CURRENT_CFPATH));\n define('CURRENT_CFURL' , Request::getSiteURL() . CURRENT_CFPATH);\n }",
"public function getEnumValues()\n {\n return array(\n 'SUBTASK_INIT' => self::SUBTASK_INIT,\n 'SUBTASK_DOING' => self::SUBTASK_DOING,\n 'SUBTASK_FINISHED' => self::SUBTASK_FINISHED,\n 'SUBTASK_FAILED' => self::SUBTASK_FAILED,\n );\n }",
"public function constants() {\n\n\t\t// Theme version\n\t\tdefine( 'WPEX_THEME_VERSION', '2.0.2' );\n\n\t\t// Paths to the parent theme directory\n\t\tdefine( 'WPEX_THEME_DIR', get_template_directory() );\n\t\tdefine( 'WPEX_THEME_URI', get_template_directory_uri() );\n\n\t\t// Javascript and CSS Paths\n\t\tdefine( 'WPEX_JS_DIR_URI', WPEX_THEME_URI .'/js/' );\n\t\tdefine( 'WPEX_CSS_DIR_URI', WPEX_THEME_URI .'/css/' );\n\n\t\t// Skins Paths\n\t\tdefine( 'WPEX_SKIN_DIR', WPEX_THEME_DIR .'/skins/' );\n\t\tdefine( 'WPEX_SKIN_DIR_URI', WPEX_THEME_URI .'/skins/' );\n\n\t\t// Framework Paths\n\t\tdefine( 'WPEX_FRAMEWORK_DIR', WPEX_THEME_DIR .'/framework/' );\n\t\tdefine( 'WPEX_FRAMEWORK_DIR_URI', WPEX_THEME_URI .'/framework/' );\n\t\tdefine( 'WPEX_ClASSES', WPEX_FRAMEWORK_DIR .'/classes/' );\n\n\t\t// Classes directory\n\t\tdefine( 'WPEX_ClASSES_DIR', WPEX_FRAMEWORK_DIR .'/classes/' );\n\n\t\t// Admin Panel Hook\n\t\tdefine( 'WPEX_ADMIN_PANEL_HOOK_PREFIX', 'theme-panel_page_' );\n\n\t\t// Check if plugins are active\n\t\tdefine( 'WPEX_VC_ACTIVE', class_exists( 'Vc_Manager' ) );\n\t\tdefine( 'WPEX_BBPRESS_ACTIVE', class_exists( 'bbPress' ) );\n\t\tdefine( 'WPEX_WOOCOMMERCE_ACTIVE', class_exists( 'WooCommerce' ) );\n\t\tdefine( 'WPEX_REV_SLIDER_ACTIVE', class_exists( 'RevSlider' ) );\n\t\tdefine( 'WPEX_LAYERSLIDER_ACTIVE', function_exists( 'lsSliders' ) );\n\t\tdefine( 'WPEX_WPML_ACTIVE', class_exists( 'SitePress' ) );\n\t\tdefine( 'WPEX_TRIBE_EVENTS_CALENDAR_ACTIVE', class_exists( 'TribeEvents' ) );\n\n\t\t// Active post types\n\t\tdefine( 'WPEX_PORTFOLIO_IS_ACTIVE', get_theme_mod( 'portfolio_enable', true ) );\n\t\tdefine( 'WPEX_STAFF_IS_ACTIVE', get_theme_mod( 'staff_enable', true ) );\n\t\tdefine( 'WPEX_TESTIMONIALS_IS_ACTIVE', get_theme_mod( 'testimonials_enable', true ) );\n\n\t\t// Define branding constant based on theme options\n\t\tdefine( 'WPEX_THEME_BRANDING', get_theme_mod( 'theme_branding', 'Total' ) );\n\n\t\t// Visual Composer\n\t\tdefine( 'WPEX_VCEX_DIR', WPEX_FRAMEWORK_DIR .'visual-composer/extend/' );\n\t\tdefine( 'WPEX_VCEX_DIR_URI', WPEX_FRAMEWORK_DIR_URI .'visual-composer/extend/' );\n\n\t}"
] | [
"0.7020336",
"0.6997876",
"0.6997876",
"0.6848647",
"0.67737705",
"0.67576444",
"0.67530584",
"0.66969633",
"0.6580753",
"0.6437854",
"0.64359224",
"0.6272819",
"0.62182057",
"0.62166536",
"0.6192849",
"0.6086983",
"0.6040359",
"0.6025755",
"0.5961874",
"0.59302354",
"0.59302354",
"0.5915794",
"0.590958",
"0.5896054",
"0.58729196",
"0.5872771",
"0.585381",
"0.5792829",
"0.5765497",
"0.57348025",
"0.56902635",
"0.5689756",
"0.5688245",
"0.5686156",
"0.56839055",
"0.56633645",
"0.56200093",
"0.56199783",
"0.560461",
"0.5565272",
"0.54974055",
"0.5472306",
"0.5444389",
"0.54112643",
"0.5404522",
"0.5390722",
"0.5390722",
"0.5374882",
"0.5358268",
"0.53531045",
"0.53437006",
"0.533186",
"0.53138095",
"0.5303217",
"0.52997416",
"0.5294658",
"0.5283095",
"0.5278123",
"0.52565247",
"0.5252426",
"0.5237413",
"0.5228171",
"0.5226069",
"0.5220959",
"0.52192926",
"0.5215033",
"0.5205606",
"0.51984096",
"0.5181022",
"0.5156216",
"0.51498914",
"0.514807",
"0.51172364",
"0.5101993",
"0.508011",
"0.508011",
"0.508011",
"0.50795585",
"0.50789803",
"0.50660235",
"0.50648135",
"0.5047721",
"0.5040196",
"0.50315356",
"0.5014354",
"0.5008628",
"0.5008628",
"0.50032365",
"0.5000323",
"0.49968424",
"0.49916887",
"0.49859166",
"0.49672973",
"0.49474844",
"0.49454057",
"0.49452055",
"0.4916879",
"0.4904667",
"0.48994026",
"0.48966372"
] | 0.8816917 | 0 |
Get the subrogation montant. | public function getSubrogationMontant() {
return $this->subrogationMontant;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant()\n {\n return $this->montant;\n }",
"public function getMontant() {\n return $this->montant;\n }",
"public function getMontantGeneral() {\n return $this->montantGeneral;\n }",
"public function getSubrogationPartielle() {\n return $this->subrogationPartielle;\n }",
"public function setSubrogationMontant($subrogationMontant) {\n $this->subrogationMontant = $subrogationMontant;\n return $this;\n }",
"public function getMontantTva() {\n return $this->montantTva;\n }",
"public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }",
"public function getMontantTtc()\n {\n $montant_ttc = $this->montant;\n\n foreach ($this->tvas as $tva) {\n $montant_ttc += $tva->getMontantTva();\n }\n\n return $montant_ttc;\n }",
"public function getMontant_vente()\n {\n return $this->montant_vente;\n }",
"public function getMontantParticulier() {\n return $this->montantParticulier;\n }",
"public function getMontantBudget() {\n return $this->montantBudget;\n }",
"public function getMontantHtCde() {\n return $this->montantHtCde;\n }",
"public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }",
"public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }",
"public function getMontantTtc() {\n return $this->montantTtc;\n }",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getMontantHt() {\n return $this->montantHt;\n }",
"public function getMontantTes() {\n return $this->montantTes;\n }",
"public function getMatricule()\n {\n return $this->matricule;\n }",
"public function getMontant_ht()\n {\n return $this->montant_ht;\n }",
"public function getMvat()\n {\n return $this->mvat;\n }",
"public function determinant()\n {\n $this->validateDimensions($this, self::SQUARE);\n\n if (!array_key_exists(__METHOD__, $this->cache)) {\n switch ($this->y) {\n case 1:\n $this->cache[__METHOD__] = $this->get(0, 0);\n break;\n case 2:\n $this->cache[__METHOD__] = $this->get(0, 0) * $this->get(1, 1) - $this->get(0, 1) * $this->get(1, 0);\n break;\n default:\n $determinant = 0;\n foreach ($this->getRow(0) as $x => $cell) {\n $minor_determinant = $cell * $this->getMinors($x)->determinant();\n if (($x % 2) === 0) {\n $determinant += $minor_determinant;\n } else {\n $determinant -= $minor_determinant;\n }\n }\n $this->cache[__METHOD__] = $determinant;\n break;\n }\n }\n\n return $this->cache[__METHOD__];\n }",
"public function getGlobalMoyenne() {\r\n $query = \"SELECT AVG(MOYGENERALE) AS MOYCLASSE, MIN(MOYGENERALE) AS MOYMIN, \"\r\n . \"MAX(MOYGENERALE) AS MOYMAX \"\r\n . \"FROM (SELECT SUM(MOYENNE*COEFF)/SUM(COEFF) AS MOYGENERALE \"\r\n . \"FROM tmp_notes GROUP BY IDELEVE ORDER BY MOYGENERALE DESC) TOTALS \";\r\n return $this->row($query);\r\n }",
"public function getMontacargasC()\n {\n\n return $this->montacargas_c;\n }",
"public function imc(){\n\t\t\treturn $this-> peso / ($this->altura * $this->altura);\n\t\t}",
"public function getCoMantenimiento()\n\t{\n\t\treturn $this->co_mantenimiento;\n\t}",
"public function getMatricule(){\n return $this->$Matricule;\n }",
"public function getMontacargasP()\n {\n\n return $this->montacargas_p;\n }",
"public function getCierre_menor_inversion()\n {\n return $this->cierre_menor_inversion;\n }",
"public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }",
"public function getMaitre()\n {\n return $this->maitre;\n }",
"public function getMataPelajaran();",
"public function getMontacargasT()\n {\n\n return $this->montacargas_t;\n }",
"public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }",
"public function get_motdepasse()\n {\n return $this->_motdepasse;\n }",
"public function getMontacargasE()\n {\n\n return $this->montacargas_e;\n }",
"public function get_superficie(){ return $this->_superficie;}",
"public function getMontacargasComprador()\n {\n\n return $this->montacargas_comprador;\n }",
"private function _getMCScaricoSalita()\n {\n $mc = 0;\n foreach ($this->lista_arredi as $arredo)\n {\n $mc+=$arredo->getMCScaricoSalita();\n }\n //TODO arrotondamento\n return $mc;\n }",
"public function getMilage()\n {\n }",
"function imc($masse,$taille)\n\t{\n\t\tif ($taille > 0)\n\t\t{\n\t\t\t$res = $masse / pow($taille,2);\n\t\t\treturn $res;\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}",
"public function getSub()\n {\n return $this->sub;\n }",
"private function _getMCMontaggioOLD()\n {\n $mc = 0;\n foreach ($this->lista_arredi as $arredo)\n {\n if ($arredo->getServizioMontaggio())\n {\n $tmp = $arredo->getMC();\n if ($arredo->getParametroB() == Arredo::MONTATO_PIENO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_PIENO);\n $mc+= $tmp;\n\n }\n\n if ($arredo->getParametroB() == Arredo::MONTATO_VUOTO)\n {\n $tmp = $tmp * $arredo->getCampo(Arredo::MONTATO_VUOTO);\n $mc+= $tmp;\n\n }\n }\n\n }\n\n return $mc;\n }",
"public function getMatricula()\n\t{\n\t\treturn $this->matricula;\n\t}",
"public function getMutualiteit() {\n\t\treturn $this->mutualiteit;\n\t}",
"public function getMatricula()\n {\n return $this->matricula;\n }",
"public function luas()\n {\n return $this->panjang * $this->lebar;\n }",
"function getMontantArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantHT']));\n else return 0;\n }",
"public function getAmount()\r\n\t{\r\n\t\treturn $this->root->getAttribute('montant');\r\n\t}",
"function sub(Vector $sub)\n\t\t{\n\t\t\t$res = new Vector(array('dest' => new Vertex(array(\n\t\t\t\t'x' => $this->_x - $sub->getX(),\n\t\t\t\t'y' => $this->_y - $sub->getY(),\n\t\t\t\t'z' => $this->_z - $sub->getZ()\n\t\t\t))));\n\t\t\treturn ($res);\n\t\t}",
"public function getMolino()\n {\n return $this->getModule()->getExtension('molino')->getMolino();\n }",
"public function getMateria(){\n\t\treturn $this->materia;\n }",
"public function getMaterno()\n {\n return $this->materno;\n }",
"protected function getMois()\n{\nreturn substr($this->getDateSysteme(), 5, 2);\n}",
"public function getMother()\n {\n return $this->mother;\n }",
"public function getMotCle()\n {\n return $this->motCle;\n }",
"public function getMontacargasMarca()\n {\n\n return $this->montacargas_marca;\n }",
"function getMontantTVAArticle($numserie) {\n // if ($this->calculmontant) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantTTC'] - $this->article[$numserie]['montantHT'])));\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->article[$numserie]['montantHT'] * ($this->TVA / 100))));\n else return 0;\n }",
"public function smanjiCenu(){\n if($this->getGodiste() < 2010){\n $discount=$this->cenapolovnogauta*0.7;\n return $this->cenapolovnogauta=$discount;\n }\n return $this->cenapolovnogauta; \n }",
"public function subitDegats($degats){\n\n }",
"public function m() : int\n {\n return $this->m;\n }",
"public function getIdmontacargas()\n {\n\n return $this->idmontacargas;\n }",
"function getSecond()\r\n {\r\n return $this->segundo;\r\n }",
"public function getRegimeMatricula() {\n\n if (empty($this->oRegimeMatricula) && !empty($this->iCodigoRegime)) {\n $this->oRegimeMatricula = new RegimeMatricula($this->iCodigoRegime);\n }\n return $this->oRegimeMatricula;\n }",
"function montantTot () {\n\t $montant = 0;\n\t for ($i = 0; $i < count ($_SESSION['panier']['numE']);$i ++) {\n\t\t $montant += $_SESSION['panier']['nbr'][$i] * $_SESSION['panier']['prix'][$i]; \n\t }\n\t return $montant;\n }",
"function &getMonograph() {\n\t\treturn $this->_monograph;\n\t}",
"public function getSubtotal()\n {\n return $this->subtotal;\n }",
"public function getCinema()\n {\n return $this->cinema;\n }",
"public function getmnem()\n {\n return $this->mnem;\n }",
"public function getUncle();",
"public function getMontacargasK()\n {\n\n return $this->montacargas_k;\n }",
"function getMontantTTCArticle($numserie) {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->article[$numserie]['montantTTC']));\n else return 0;\n }",
"public function getMonthlyInstalment(): float\n {\n return $this->monthlyInstalment;\n }",
"static function getMembershipPlan($sub_id){\n $db = JFactory::getDbo();\n $query = $db->getQuery(true);\n $query->select('plan_id')->from('#__osmembership_subscribers')->where('id = \"'.$sub_id.'\"');\n $db->setQuery($query);\n return $db->loadResult();\n }",
"public function mag2()\n\t{\n\t\t$m2 = ( $this->x()*$this->x() ) + ( $this->y()*$this->y() );\n\t\treturn $m2;\n\t}",
"public function get_id_subclase(){ \n return (isset($this->_id_subclase)) ? $this->_id_subclase: null;\n}",
"public function unit()\n\t{\n\t\t$u_x = $this->x() / $this->mag();\n\t\t$u_y = $this->y() / $this->mag();\n\t\t$u = new Vector($u_x, $u_y);\n\t\treturn $u;\n\t}",
"public function getMontacargasNumserie()\n {\n\n return $this->montacargas_numserie;\n }",
"public function getMu() : GMP\n {\n return $this->mu;\n }",
"public function getSubTotalProperty()\n {\n $subtotal = Money::MXN(0);\n\n foreach ($this->shoppingCart as $product) {\n $quantity = $product->pivot->quantity;\n $subtotal = $subtotal->add($product->price->multiply($quantity));\n }\n\n return $subtotal;\n }",
"public function getMission()\n {\n return $this->mission;\n }",
"public function getMission()\n {\n return $this->mission;\n }",
"public function getDeterminarMetodologiaCalculo()\r\n\t\t{\r\n\t\t\t// Se refiere al parametro \"base-calculo\" de la entidad \"tipos-propagandas\".\r\n\t\t\t$idMetodo = 0;\r\n\r\n\t\t\t$tipo = self::getDatosPropaganda()->tipoPropaganda;\r\n\t\t\tif ( isset($tipo->base_calculo) ) {\r\n\t\t\t\t$idMetodo = (int)$tipo->base_calculo;\r\n\t\t\t}\r\n\t\t\treturn $idMetodo;\r\n\t\t}",
"function getCuentaDeCaptacionPrimaria($tipo, $subproducto = false){\n\t\t$withSubproducto\t= \"\";\n\t\tif ( $subproducto != false ){\n\t\t\t$withSubproducto\t= \" AND (`captacion_cuentas`.`tipo_subproducto` = $subproducto) \";\n\t\t}\n\t\t$clave\t\t\t\t\t= 0;\n\t\t$sql = \"SELECT \n\t\t\t\t\t`captacion_cuentas`.`numero_cuenta`\n\t\t\t\tFROM\n\t\t\t\t\t`captacion_cuentas` `captacion_cuentas`\n\t\t\t\tWHERE\n\t\t\t\t\t(`captacion_cuentas`.`numero_socio` =\" . $this->mCodigo . \" )\n\t\t\t\t\tAND\n\t\t\t\t\t(`captacion_cuentas`.`tipo_cuenta` =$tipo)\n\t\t\t\t\t$withSubproducto\n\t\t\t\tORDER BY\n\t\t\t\t\t`captacion_cuentas`.`saldo_cuenta` DESC,\n\t\t\t\t\t`captacion_cuentas`.`fecha_afectacion` DESC,\n\t\t\t\t\t`captacion_cuentas`.`fecha_apertura` DESC\n\t\t\t\tLIMIT 0,1\";\n\t\t$d\t\t= obten_filas($sql);\n\t\t//mifila($sql, \"numero_cuenta\");\n\t\tif(isset($d[\"numero_cuenta\"])){\n\t\t\t$clave\t\t= $d[\"numero_cuenta\"];\n\t\t}\n\t\treturn $clave; \n\t}",
"public function getKodeSubSatker()\n {\n return $this->kode_sub_satker;\n }",
"public function getMontoCuota()\n {\n return $this->monto_cuota;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getMarca()\n {\n return $this->marca;\n }",
"public function getDecscricionfisicaSuelo(){\n return $this->decscricionfisicaSuelo;\n }",
"public function getMontoPlanificado()\n {\n $montoPlanificado = 0;\n foreach ($this->objetivos as $objetivo)\n {\n foreach($objetivo->getActividades() as $actividad)\n {\n $moneda=$actividad->getMoneda();\n $montoPlanificado+=($actividad->getMonto()*$moneda->getPrecioBs());\n }\n }\n return $montoPlanificado;\n }",
"public function getUnidadMedida()\n {\n return $this->unidadMedida;\n }",
"public function getSub_category(){\n return $this->sub_category;\n }",
"public function protein()\n\t{\n\t\treturn $this->macronutrients()['protein'];\n\t}",
"public function getLibelleMatiere()\n {\n return $this->libelleMatiere;\n }",
"public function getCirculante_P(){\n\t\t$this->setCirculante_P();\n\t\t\n\t\treturn $this->Circulante_P;\t\n\t}",
"public function max()\n {\n $maximum = round($this->centre + $this->centre * $this->deviation);\n\n return $this->unsigned ? max($maximum, 0) : $maximum;\n }",
"public function getNamaSubSatker()\n {\n return $this->nama_sub_satker;\n }",
"public function getMontacargasBaja()\n {\n\n return $this->montacargas_baja;\n }",
"public function getPazientiMedico() {\n return $this->_pazienti;\n }"
] | [
"0.67870015",
"0.67870015",
"0.67590207",
"0.656417",
"0.6526523",
"0.63373774",
"0.62547094",
"0.6122955",
"0.58927613",
"0.589082",
"0.58795637",
"0.5839641",
"0.58034325",
"0.578789",
"0.57419914",
"0.5696554",
"0.5691468",
"0.5682332",
"0.5669514",
"0.563903",
"0.55670536",
"0.5557549",
"0.5552216",
"0.55492383",
"0.55287886",
"0.55010104",
"0.5492276",
"0.5468415",
"0.5445468",
"0.5444587",
"0.5437141",
"0.5436993",
"0.5399239",
"0.539753",
"0.5373044",
"0.537113",
"0.5321814",
"0.5321541",
"0.53104424",
"0.5298807",
"0.52838534",
"0.5272857",
"0.5253879",
"0.52518624",
"0.52423143",
"0.5241172",
"0.5238173",
"0.5233238",
"0.5180667",
"0.5167863",
"0.5149656",
"0.5106254",
"0.51010954",
"0.50951666",
"0.508933",
"0.5079083",
"0.5074985",
"0.5073402",
"0.50546503",
"0.5033387",
"0.5027827",
"0.5023574",
"0.50199944",
"0.5016564",
"0.50136626",
"0.5000671",
"0.49867335",
"0.49782133",
"0.4977617",
"0.49660975",
"0.49648148",
"0.4948147",
"0.49441645",
"0.4918874",
"0.49149263",
"0.49142778",
"0.4912228",
"0.49015898",
"0.49007303",
"0.4899306",
"0.48987725",
"0.48975095",
"0.48975095",
"0.48940012",
"0.4890152",
"0.48890027",
"0.48865068",
"0.4884586",
"0.4884586",
"0.4875464",
"0.4875136",
"0.48741394",
"0.48653936",
"0.4864614",
"0.48643094",
"0.48610964",
"0.48555848",
"0.48508233",
"0.48480788",
"0.4844037"
] | 0.8196023 | 0 |
Get the subrogation partielle. | public function getSubrogationPartielle() {
return $this->subrogationPartielle;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getSub()\n {\n return $this->sub;\n }",
"public function getPeriodeSubrDu() {\n return $this->periodeSubrDu;\n }",
"public function getSubrogationMontant() {\n return $this->subrogationMontant;\n }",
"public function get_superficie(){ return $this->_superficie;}",
"public function setSubrogationPartielle($subrogationPartielle) {\n $this->subrogationPartielle = $subrogationPartielle;\n return $this;\n }",
"public function getPeriodeSubrAu() {\n return $this->periodeSubrAu;\n }",
"public function getSubstep()\n\t{\n\t\treturn $this->activeSubstep;\n\t}",
"public function getSubTitle()\n {\n return $this->_sub_title;\n }",
"function getSuburb()\n\t{\n\t\t// Load the Suburb data\n\t\tif ($this->_loadSuburb())\n\n\t\treturn $this->_suburb;\n\t}",
"public function get_subpage() {\n\n\t\tif ( null === $this->subpage ) {\n\t\t\t$this->subpage = isset( $_GET['sub'] ) ? esc_attr( $_GET['sub'] ) : $this->get_initial_page();\n\t\t}\n\n\t\treturn $this->subpage;\n\t}",
"public function subSelect(){\n try {\n // Sparql11query.g:620:3: ( project whereClause solutionModifier ) \n // Sparql11query.g:621:3: project whereClause solutionModifier \n {\n $this->pushFollow(self::$FOLLOW_project_in_subSelect2248);\n $this->project();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_whereClause_in_subSelect2250);\n $this->whereClause();\n\n $this->state->_fsp--;\n\n $this->pushFollow(self::$FOLLOW_solutionModifier_in_subSelect2252);\n $this->solutionModifier();\n\n $this->state->_fsp--;\n\n\n }\n\n }\n catch (RecognitionException $re) {\n $this->reportError($re);\n $this->recover($this->input,$re);\n }\n catch(Exception $e) {\n throw $e;\n }\n \n return ;\n }",
"Function getSubpart($template, $subpart) {\n\t\tReturn t3lib_parsehtml::getSubpart($template, $subpart);\n\t}",
"public function get_sublink($id){\n $sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['etiqueta_sub'];\n }",
"public function get_sublink($id){\t\n\t\t$sql=\"SELECT etiqueta_sub FROM link WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['etiqueta_sub'];\n\t}",
"public function getSubserial()\n\t{\n\n\t\treturn $this->subserial;\n\t}",
"public function getNamaSubSatker()\n {\n return $this->nama_sub_satker;\n }",
"public function getPhadsubid()\n {\n return $this->phadsubid;\n }",
"public function getSubTitle(){\n\t\treturn $this->ol[\"ISBN:\".$this->isbn][\"subtitle\"];\t\n\t}",
"function getSubj(){\n\t\tglobal $_CON;\n\t\t$_SUBJ_ID = urldecode(base64_decode(subj_ID())); \n\t\t$sqlSearch = mysqli_query($_CON,\"SELECT subject_code, subject_name FROM subjects_table WHERE subject_id='$_SUBJ_ID' \");\n\t\t$count = mysqli_num_rows($sqlSearch);\n\t\tif($count > 0){\n\t\t\t$row = mysqli_fetch_array($sqlSearch);\n\t\t\t$subject_code = $row['subject_code'];\n\t\t\t$subject_name = $row['subject_name'];\n\t\t\treturn \"Subject: \" . $subject_code. \" - \" . $subject_name;\n\t\t}else{\n\t\t\theader(\"location: myclass.php?errno=404\");\n\t\t\tob_end_clean();\n\t\t}\n\t}",
"public function get_sublink2($id){\n $sql=\"SELECT nombre_sub FROM sublink WHERE id_sub='$id'\";\n $consulta=mysql_query($sql) or die(mysql_error());\n $resultado=mysql_fetch_array($consulta);\n\n return $resultado['nombre_sub'];\n }",
"public function getSubpartDataProvider() {}",
"public function getFkPessoalSubDivisao()\n {\n return $this->fkPessoalSubDivisao;\n }",
"public function getSub_category(){\n return $this->sub_category;\n }",
"public function getKodeSubSatker()\n {\n return $this->kode_sub_satker;\n }",
"public function getSubpasta()\r\n\t{\r\n\t\treturn $this->subpasta;\r\n\t}",
"public function getPhadsubidseq()\n {\n return $this->phadsubidseq;\n }",
"public static function getSuperior()\n {\n SWS_API::find();\n\n #si es de nivel 3 devuleve la subdireccion a la que pertenece\n #si es de nivel 2, el mismo\n #si es de nivel 1, el jefe de planeacion\n \n if($GLOBALS['SWS_UserObj'][5] == 3)\n {\n return SWS_API::getSubdireccion();\n }\n else if($GLOBALS['SWS_UserObj'][5] == 2)\n {\n return $GLOBALS['SWS_UserObj'];\n }\n else if($GLOBALS['SWS_UserObj'][5] == 1)\n {\n return SWS_API::getJefePlaneacion();\n }\n }",
"public function getQuestionSubtext()\n {\n return $this->questionSubtext;\n }",
"public function subir(){\n $respuesta = array();\n\n //obtengo la extension del archivo\n $info = new SplFileInfo($this->file[\"name\"]);\n $extencion = $info->getExtension();\n\n //concateno el nuevo nombre con la extension y tambien la ruta donde se guardara\n $nombre_imagen = $this->nombre . \".\" . $extencion;\n $ruta_archivo = $this->ruta . $nombre_imagen;\n \n //si no existe ningun archivo con ese nombre....\n if (!file_exists($ruta_archivo)) {\n //subiendo el archivo y guardando el resultado en una variable\n $subido = move_uploaded_file($this->file[\"tmp_name\"], $ruta_archivo);\n //devolviendo valores segun el resultado de la operacion\n if($subido){\n $respuesta[\"resultado\"] = true;\n $respuesta[\"mensaje\"] = $nombre_imagen;\n }else {\n $respuesta[\"resultado\"] = false;\n $respuesta[\"mensaje\"] = \"Ocurrió un error al subir el archivo\";\n }\n } else {\n $respuesta[\"resultado\"] = false;\n $respuesta[\"mensaje\"] = \"Ya existe un archivo con el mismo nombre\";\n }\n return $respuesta;\n }",
"public function get_sublink2($id){\t\n\t\t$sql=\"SELECT nombre_sub FROM sublink WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_sub'];\n\t}",
"public function get_id_subclase(){ \n return (isset($this->_id_subclase)) ? $this->_id_subclase: null;\n}",
"public function subdepartemen()\n {\n //Query untuk mengambil semua data sub departemen dan diurutkan berdasarkan nama_bagian_dept\n $query = $this->db->query(\"SELECT * FROM bagian_departemen A LEFT JOIN departemen B ON B.id_dept = A.id_dept ORDER BY nama_bagian_dept\");\n return $query;\n }",
"public function getSubType()\n {\n return $this->subType;\n }",
"public function part()\n {\n return $this->belongsTo('App\\Part', 'id_part')->first();\n }",
"public function getDocumentMainPart(): string\n {\n return $this->tempDocumentMainPart;\n }",
"public function get_parts() {\n return $this->parts;\n }",
"public function getPieceJointe() {\n return $this->pieceJointe;\n }",
"public function get_sub_fund()\n\t{\n\t\t$query=$this->db->get('tb_fin_head');\n\t\treturn $query->result();\n\t}",
"public function getSubMenu(){\n return $this->subMenu;\n }",
"function sub(Vector $sub)\n\t\t{\n\t\t\t$res = new Vector(array('dest' => new Vertex(array(\n\t\t\t\t'x' => $this->_x - $sub->getX(),\n\t\t\t\t'y' => $this->_y - $sub->getY(),\n\t\t\t\t'z' => $this->_z - $sub->getZ()\n\t\t\t))));\n\t\t\treturn ($res);\n\t\t}",
"function getRubrique() {\n\t\t$faux_array = array_values($this->getParents());\n\t\t$rubrique = $faux_array[0];\n\t\tif ($rubrique instanceof Rubrique) {\n\t\t\treturn $rubrique;\n\t\t} else {\n\t\t\tdie(\"Le parent de l'article n'est pas une Rubrique !\");\n\t\t}\n\t}",
"public function subirPlano()\n {\n $data = compobarSesion();\n // Notificaciones\n $data['notificaciones'] = $this->Notificaciones_model->listar_notificaciones($data['user_id']);\n $data['notificaciones_supervisor'] = $this->Notificaciones_model->listar_notificaciones_supervisor($data['rol']);\n $data['alertas'] = $this->Notificaciones_model->listar_alertas($data['user_id']);\n $data['alertas_supervisor'] = $this->Notificaciones_model->listar_alertas_supervisor($data['rol']);\n\n //Id de prospecto\n $data['segmento_p'] = $this->uri->segment(3);\n //Id ce Proceso\n $data['segmento_pr'] = $this->uri->segment(4);\n //si no hay segmento en la url\n if (!$data['segmento_p']) {\n redirect('prospectos/prospectosList', 'refresh');\n } else {\n $data['prospectos'] = $this->Prospecto_model->ListarProspecto($data['segmento_p']);\n $data['procesos'] = $this->Proceso_model->ListarProceso($data['segmento_pr']);\n }\n //titulo de pagina\n $data['title'] = 'Subir documento';\n echo $this->templates->render('subir_planos', $data);\n }",
"public function getSubclassId();",
"public function getSubtotal()\n {\n return $this->subtotal;\n }",
"public function getContextualPart()\n {\n return $this->getIsRestriction() ? self::CONTEXTUAL_PART_ENUMERATION : self::CONTEXTUAL_PART_STRUCT;\n }",
"public function getShow_subhead () {\n\t$preValue = $this->preGetValue(\"show_subhead\"); \n\tif($preValue !== null && !\\Pimcore::inAdmin()) { \n\t\treturn $preValue;\n\t}\n\t$data = $this->show_subhead;\n\treturn $data;\n}",
"public function getChapeau();",
"public function get_subsec()\n\t{\n\t\t$section_id = $this->input->post('section_id');\n\t\t$subsection['subsec'] = $this->reports->get_subsec($section_id);\n\t\techo json_encode($subsection);\n\t}",
"public static function getMainPart(){\n return (isset(self::$gets [self::KEY_MAIN]))?\n self::$gets [self::KEY_MAIN] : '';\n }",
"public function getPraticien()\n {\n return $this->praticien;\n }",
"public function getSubcategory_id()\n {\n return $this->subcategory_id;\n }",
"public function get_subsec()\n\t{\n\t\t$section_id = $this->input->post('section_id');\n\t\t$subsection['subsec'] = $this->file_maintenance_model->get_subsec($section_id);\n\t\techo json_encode($subsection);\n\t}",
"public function getSubtemaId($id){\n $this->db->where('idsubtemas', $id);\n return $this->db->get('subtemas')->row(0);\n }",
"private function get_current_sub_section() {\n\t\t\t// phpcs:ignore WordPress.Security.NonceVerification.Recommended\n\t\t\tif ( ( isset( $_GET[ self::$section_url_param ] ) ) && ( ! empty( $_GET[ self::$section_url_param ] ) ) ) {\n\t\t\t\t// phpcs:ignore WordPress.Security.NonceVerification.Recommended\n\t\t\t\t$this->current_sub_section = sanitize_text_field( wp_unslash( $_GET[ self::$section_url_param ] ) );\n\t\t\t\tif ( ! $this->is_valid_sub_section( $this->current_sub_section ) ) {\n\t\t\t\t\t$this->current_sub_section = '';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $this->current_sub_section;\n\t\t}",
"protected function subRelation(): RelationInterface\n {\n /** @var array{entity:class-string<L>} $infos */\n $infos = $this->map($this->discriminatorValue);\n\n $relation = $this->local->repository($infos['entity'])\n ->relation($this->attributeAim);\n\n // TODO doit on redescendre les options sur la relation ?\n\n return $relation;\n }",
"function getSecond()\r\n {\r\n return $this->segundo;\r\n }",
"final public function getStaticPart()\n {\n return $this->getField();\n }",
"public function getExercice()\n {\n return $this->ligne->getSousCategorie()->getCategorie()->getBudget()->getExercice();\n }",
"public function subtitle()\n {\n return $this->refid;\n }",
"public function __toString(){\n // para ver el nombre de subdireccion en un select\n return $this->nombreSubd;\n }",
"public function subcategory()\n\t{\n\t\t$this->db->select('*');\n\t\t$this->db->from($this->pro->prifix.$this->pro->category);\n\t\t$this->db->order_by($this->pro->category.'_id','desc');\n\t\t$this->db->order_by($this->pro->category.'_parent','desc');\n\t\t$this->db->where($this->pro->category.'_status','1');\n\t\t$this->db->where($this->pro->category.'_parent>',0);\n\t\t$rs = $this->db->get();\n\t\t//echo $this->db->last_query();\n\t\treturn $rs->result_array();\n\t\t\n\t}",
"public function substituteSubpartDataProvider() {}",
"public function getBasis();",
"function get_subcategoria($id){\t\n\t\t$sql=\"SELECT nombre_sub FROM subcategoria WHERE id_sub='$id'\";\n\t\t$consulta=mysql_query($sql) or die(mysql_error());\n\t\t$resultado=mysql_fetch_array($consulta);\n\n\t\treturn $resultado['nombre_sub'];\n\t}",
"public function getSubtype() {\n\t\treturn $this->name;\n\t}",
"public function getDeptsub()\n\t\t{\n\t\t\treturn $this->hasOne(Deptsub::className(), ['DEP_SUB_ID' => 'DEP_SUB_ID']);\n\t\t}",
"public function getSlicing() {\n return $this->slicing;\n }",
"public function getParts()\n {\n return $this->parts;\n }",
"public function getParts()\n {\n return $this->parts;\n }",
"function getMenuSubTitle();",
"function get_subtitle() \t{\n \t\treturn $this->subtitle;\t\n \t}",
"public function getSubrogationConstantes() {\n return $this->subrogationConstantes;\n }",
"public function getParts()\n\t{\n\t\treturn $this->parts;\n\t}",
"public function getDecscricionfisicaSuelo(){\n return $this->decscricionfisicaSuelo;\n }",
"public function getSubdomain()\n {\n return $this->subdomain;\n }",
"public function getSubtotal(){\n return $this->_getData(self::SUBTOTAL);\n }",
"public function getSubtitle()\n {\n return $this->getCurrentTranslation()->getSubtitle();\n }",
"public function getRealPart(): float\n {\n return $this->realPart;\n }",
"public function getSubEvent()\n {\n return $this->subEvent;\n }",
"public function subirVolumen( ) {\n $vol = $this->getVolumen();\n if ($vol < 100) {\n $vol = $vol + 8;\n }\n else {\n $vol = 8;\n }\n $this->setVolumen($vol);\n }",
"static function getMembershipPlan($sub_id){\n $db = JFactory::getDbo();\n $query = $db->getQuery(true);\n $query->select('plan_id')->from('#__osmembership_subscribers')->where('id = \"'.$sub_id.'\"');\n $db->setQuery($query);\n return $db->loadResult();\n }",
"public function getSubDir()\n\t{\n\t\treturn $this->sub_dir;\n\t}",
"public function getPurchaseSubTotal() {\n return $this->purchaseSubtotal; \n }",
"public function getNewsFeedSubHeading2()\n {\n return $this->newsFeedSubHeading2;\n }",
"public function getCittaPartenza() {\n if (isset($_REQUEST['citta_partenza'])) {\n return $_REQUEST['citta_partenza'];\n } else\n return 0;\n }",
"protected function readIncludeSubStyle() { return $this->_incsubstyle; }",
"public function getOtherSide() {\r\n return $this->otherSide;\r\n }",
"public function getToiletSiswaPerempuan()\n {\n return $this->toilet_siswa_perempuan;\n }",
"public function getObjet()\n {\n return $this->objet;\n }",
"public function getSubtype()\n {\n return $this->hasOne(SpaceSubtype::className(), ['id' => 'subtype_id']);\n }",
"function getPartieActiveJoueur ($joueurID) {\n\tglobal $bdd;\n\t$req = $bdd->prepare('\n\t\tSELECT partie\n\t\tFROM inscriptions\n\t\tWHERE joueur = :joueur\n\t\tORDER BY date_inscription DESC\n\t\tLIMIT 1');\n\t$req->execute(array(\n\t\t'joueur' => $joueurID\n\t));\n\tif ($row = $req->fetch()) {\n\t\treturn $row['partie'];\n\t} else {\n\t\treturn 0;\n\t}\n}",
"public function getPartieId()\n\t{\n\t\treturn $this->partie_id;\n\t}",
"public function getSubdivisionList();",
"public function SPSubDivision()\n {\n \t// belongsTo(RelatedModel, foreignKey = spsd_id, keyOnRelatedModel = spsd_id)\n \treturn $this->belongsTo('App\\SPSubDivision','spsd_id','spsd_id');\n }",
"public function getSubnetwork()\n {\n return $this->subnetwork;\n }",
"public function getParticularite()\n {\n return $this->particularite;\n }",
"function getBeneficiario2() {\r\n return $this->beneficiario2;\r\n }",
"public function sub( $sub_id = '' ) {\n // Bail if we don't get a sub id.\n if ( $sub_id == '' )\n return false;\n\n $sub_var = 'sub_' . $sub_id;\n // Check to see if an object for this sub already exists.\n // Create one if it doesn't exist.\n if ( ! isset( self::$instance->$sub_var ) )\n self::$instance->$sub_var = new NF_Sub( $sub_id );\n\n return self::$instance->$sub_var;\n }",
"public function getNewsFeedSubHeading1()\n {\n return $this->newsFeedSubHeading1;\n }",
"public function getSubAccountId() \n {\n $oConfig = $this->_oFcpoHelper->fcpoGetConfig();\n $sReturn = $oConfig->getConfigParam('sFCPOSubAccountID');\n return $sReturn;\n }"
] | [
"0.710265",
"0.68591785",
"0.68532294",
"0.6537732",
"0.6433126",
"0.64165735",
"0.62268865",
"0.608651",
"0.60478926",
"0.60454476",
"0.60081637",
"0.5997882",
"0.5987769",
"0.5961897",
"0.58940655",
"0.5872393",
"0.5860563",
"0.58438534",
"0.58394283",
"0.5834289",
"0.5831642",
"0.5804384",
"0.5777378",
"0.577297",
"0.57589674",
"0.57453",
"0.5732847",
"0.57286054",
"0.57144535",
"0.5710313",
"0.56728995",
"0.5664989",
"0.5663669",
"0.56602234",
"0.5654578",
"0.56453246",
"0.5635142",
"0.5616944",
"0.55939144",
"0.5581089",
"0.5567845",
"0.55657804",
"0.5555295",
"0.55443954",
"0.55229944",
"0.5522419",
"0.55215925",
"0.55201745",
"0.5504874",
"0.5494497",
"0.54926735",
"0.54893094",
"0.54855824",
"0.54826665",
"0.5478687",
"0.54762256",
"0.54748315",
"0.54745346",
"0.5466651",
"0.5462304",
"0.546201",
"0.5454394",
"0.5452236",
"0.54383016",
"0.5430291",
"0.5428743",
"0.5419952",
"0.540573",
"0.540573",
"0.54013413",
"0.5392873",
"0.5384418",
"0.5377926",
"0.5373569",
"0.5369416",
"0.5356974",
"0.53425485",
"0.53350854",
"0.5331006",
"0.5328096",
"0.53017575",
"0.5293899",
"0.5293666",
"0.52925426",
"0.5289356",
"0.52865165",
"0.5284919",
"0.52751464",
"0.5270872",
"0.524742",
"0.52428484",
"0.52417904",
"0.5236368",
"0.52177304",
"0.5212354",
"0.5208303",
"0.52080077",
"0.5199608",
"0.5195946",
"0.51916903"
] | 0.87371856 | 0 |
Get the suspension date. | public function getSuspensionDate() {
return $this->suspensionDate;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public function getResumeDate()\n {\n return isset($this->transaction['resumeDate']) ? $this->transaction['resumeDate'] : '';\n }",
"public function setSuspensionDate(DateTime $suspensionDate = null) {\n $this->suspensionDate = $suspensionDate;\n return $this;\n }",
"public function getWarrantyDate()\n {\n return $this->warrantyDate;\n }",
"public function getSuspendPeriodFrom(): ?DateTime {\n return $this->suspendPeriodFrom;\n }",
"public function getProducedAt()\r\n\t{\r\n\t\treturn $this->producedAt ?? new \\DateTime(\"now\");\r\n\t}",
"public function getSuspendPeriodUntil(): ?DateTime {\n return $this->suspendPeriodUntil;\n }",
"public function getPendingDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->pendingDate;\r\n\t}",
"public function getRejectionDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->rejectionDate;\r\n\t}",
"public function getReportedDate();",
"public function getRepeatPropertyBookerDate()\n {\n if ($this->repeatPropertyBookerDate) {\n return new \\DateTime($this->repeatPropertyBookerDate);\n } else {\n return;\n }\n }",
"public function getInvdate()\n {\n return $this->invdate;\n }",
"function getDateNotified() {\n\t\treturn $this->getData('dateNotified');\n\t}",
"public function getFilingDate() {\n\t\treturn self::$_filingDate;\n\t}",
"public function setSuspendDate($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->suspend_date !== null || $dt !== null) {\n if ($this->suspend_date === null || $dt === null || $dt->format(\"Y-m-d H:i:s.u\") !== $this->suspend_date->format(\"Y-m-d H:i:s.u\")) {\n $this->suspend_date = $dt === null ? null : clone $dt;\n $this->modifiedColumns[AliMemberTableMap::COL_SUSPEND_DATE] = true;\n }\n } // if either are not null\n\n return $this;\n }",
"public function getReceptionDate();",
"public function getReportDate()\n {\n return $this->reportDate;\n }",
"public function getSuspendDate($format = NULL)\n {\n if ($format === null) {\n return $this->suspend_date;\n } else {\n return $this->suspend_date instanceof \\DateTimeInterface ? $this->suspend_date->format($format) : null;\n }\n }",
"public function getdefaultPlannedEndDate()\n {\n return $this->defaultplannedenddate;\n }",
"function getDateReminded() {\n\t\treturn $this->getData('dateReminded');\n\t}",
"public function getDATE_DEPOT()\n {\n return $this->DATE_DEPOT;\n }",
"public function getExpirationDate()\n {\n return $this->expirationDate;\n }",
"public function getExpirationDate()\n {\n return $this->expirationDate;\n }",
"public function getExpirationDate();",
"public function getUseDate() \n \t{\n \t\treturn $this->use_date;\n \t}",
"public function getExpirationDate()\n {\n return $this->user_expiration;\n }",
"public function getPassportIssuedDate(): string {\n return $this->passport_issued_date;\n }",
"public function getPublish_date() {\n return $this->publish_date;\n }",
"public function get()\n {\n return $this->date;\n }",
"public function getExpiryDate(){\n\t\t$expiryDate = $this->config->getAppValue('owncollab_ganttchart', 'shareExpiryDate', 0);\n\t\treturn $expiryDate;\n\t}",
"public function getEntryDate()\n {\n return $this->entry_date;\n }",
"public function getRepeatEndDate()\n {\n return $this->repeatEndDate;\n }",
"public function getStartdate() : string\r\n\t{\r\n\t\treturn $this->startdate;\r\n\t}",
"public function getInactiveDate() {\n $row = $this->getInnerRow();\n return (string)$row['inactive_date'];\n }",
"public function getDeliveryDate() {\r\n\r\n\t\tself::errorReset();\r\n\t\t$this->reload();\r\n\t\treturn $this->deliveryDate;\r\n\t}",
"public function getDateEmprunt()\n {\n return $this->dateEmprunt;\n }",
"public function getSaleDate()\n {\n if (!$this->sale_date) return null;\n return Formatter::date($this->sale_date);\n }",
"public function currentDate()\n {\n return $this->dateTime->gmtDate();\n }",
"public function getStatusDate()\n {\n return $this->statusDate;\n }",
"public function date() {\n return $this->begin;\n }",
"public function get_date_pulled() \n\t{ \n\t\treturn date('Y-m-d H:i:s', $this->timestamp_pulled); \n\t}",
"public function getPaymentDate() {\n\t\t// return $this->created_at;\n\t\treturn $this->account ? $this->account->payment_date : $this->created_at;\n\t}",
"public function getExpdate()\n {\n return $this->expdate;\n }",
"public function getApplicantSubmissionDate()\n {\n return $this->getProperty('applicant_submission_date');\n }",
"public function getStartDate()\n {\n return $this->StartDate;\n }",
"public function getVerifiedDate()\n {\n return $this->getProperty()->verifiedDate;\n }",
"public function getExpirationDate(): \\DateTime\n {\n return $this->expiration_date;\n }",
"public function getUnsubscribeDate()\n {\n return $this->unsubscribeDate;\n }",
"public function getSettleDate()\n {\n return $this->settle_date;\n }",
"public function getStartDate();",
"public function getStartDate();",
"public function get_edit_date()\n {\n $query = 'SELECT MAX(date_and_time) FROM ' . get_table_prefix() . 'actionlogs WHERE ' . db_string_equal_to('the_type', 'NOTIFICATIONS_LOCKDOWN');\n return $GLOBALS['SITE_DB']->query_value_if_there($query);\n }",
"function getCurrentDate()\n\t\t{\n\t\t\t$date = date('y-m-d');\n\t\t\treturn $date;\n\t\t}",
"public function getPaymentDate();",
"public function get_date_permastruct()\n {\n }",
"public function getRecDate()\n {\n return $this->rec_date;\n }",
"public function getReportDate() : \\DateTime {\n\t\treturn($this->reportDate);\n\t}",
"function getDateAssigned() {\n\t\treturn $this->getData('dateAssigned');\n\t}",
"public function getDateExpiration()\n {\n return $this->DateExpiration;\n }",
"function getDateExpiration() {\n return $this->dateExpiration;\n }",
"public function getScheduleDate(){return $this->date;}",
"public function getStartDate()\n {\n return $this->startDate;\n }",
"public function getStartDate()\n {\n return $this->startDate;\n }",
"public function getStartDate()\n {\n return $this->startDate;\n }",
"public function getStartDate()\n {\n return $this->startDate;\n }",
"public function getStartDate()\n {\n return $this->startDate;\n }",
"public function getDepartureDate()\n {\n return isset($this->DepartureDate) ? $this->DepartureDate : null;\n }",
"public function getQuestionDate() {\n\t\treturn $this->questionDate;\n\t}",
"public function getDate()\n {\n return $this->date;\n }",
"public function getRelease_date()\n {\n return $this->release_date;\n }",
"public function getRelease_date()\n {\n return $this->release_date;\n }",
"public function getRunDate(): DateTime\n {\n return $this->runDate;\n }",
"public function getStartDate() {\n return $this->startDate;\n }",
"public function getDepartureDate()\n {\n return $this->departureDate;\n }",
"public function GetLoginDate()\n\t\t{\n\t\t\tif (isset($_SESSION[\"LoginDate\"])) return '+'.$_SESSION['LoginDate'];\n\t\t\telse return null;\n\t\t}",
"public function getReceiveDate()\n {\n return $this->receiveDate;\n }",
"public function getDate()\r\n {\r\n return $this->date;\r\n }",
"public function getLaunchDateTime()\n {\n if (array_key_exists(\"launchDateTime\", $this->_propDict)) {\n if (is_a($this->_propDict[\"launchDateTime\"], \"\\DateTime\") || is_null($this->_propDict[\"launchDateTime\"])) {\n return $this->_propDict[\"launchDateTime\"];\n } else {\n $this->_propDict[\"launchDateTime\"] = new \\DateTime($this->_propDict[\"launchDateTime\"]);\n return $this->_propDict[\"launchDateTime\"];\n }\n }\n return null;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }",
"public function getDate()\n {\n return $this->date;\n }"
] | [
"0.6634977",
"0.64603627",
"0.6417197",
"0.6376608",
"0.63691443",
"0.62666166",
"0.6255111",
"0.6137486",
"0.60963744",
"0.60859627",
"0.6065824",
"0.6056718",
"0.60465556",
"0.5945188",
"0.59336877",
"0.5909884",
"0.5894052",
"0.58927625",
"0.5881432",
"0.5875179",
"0.5863897",
"0.5863897",
"0.585388",
"0.58503705",
"0.5841255",
"0.58251333",
"0.57980084",
"0.5783459",
"0.57790613",
"0.5762837",
"0.57628286",
"0.57601684",
"0.575401",
"0.5752636",
"0.574447",
"0.5716304",
"0.5713391",
"0.5704966",
"0.56869507",
"0.5684978",
"0.5674519",
"0.56641334",
"0.5661947",
"0.56571424",
"0.5653588",
"0.56531143",
"0.56513894",
"0.56456673",
"0.56375945",
"0.56375945",
"0.56354153",
"0.56351656",
"0.5632874",
"0.56289023",
"0.5627192",
"0.5621874",
"0.56101614",
"0.56081754",
"0.5607859",
"0.56070006",
"0.5600872",
"0.5600872",
"0.5600872",
"0.5600872",
"0.5600872",
"0.56006587",
"0.5589659",
"0.5585508",
"0.558478",
"0.558478",
"0.5584688",
"0.5580841",
"0.55801064",
"0.5577847",
"0.5571453",
"0.5566855",
"0.5563197",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132",
"0.5554132"
] | 0.84831387 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.