query
stringlengths
11
3.13k
ru_query
stringlengths
9
3.91k
document
stringlengths
18
71k
metadata
dict
negatives
listlengths
0
100
negative_scores
listlengths
0
100
document_score
stringlengths
5
10
document_rank
stringclasses
2 values
Unregisters a postfilter function
Отменяет регистрацию функции постфильтра
function UnregisterPostfilter($function) { $this->_smarty->unregister_postfilter( $function ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPrefilter($function)\n {\n $this->_smarty->unregister_prefilter($function);\n }", "function UnregisterOutputfilter($function)\n {\n $this->_smarty->unregister_outputfilter($function);\n }", "function remove_filter($hook_name, $callback, $priority = 10)\n {\n }", "public function _post_filter()\n {\n }", "function RegisterPostfilter($function)\n {\n $this->_smarty->register_postfilter($function);\n }", "function after_filter($action, $args) {\n }", "public function removeFilters();", "public function afterFilter()\n\t{\n\n\t}", "function dacig_deregister_filters( $status ) {\n\tremove_filter( 'pre_get_posts', 'dacig_allow_filters' );\n\tremove_filter( 'the_posts', 'dacig_modify_the_posts' );\n\n\treturn $status;\n}", "function did_filter($hook_name)\n {\n }", "function remove_anonymous_object_filter( $tag, $class, $method ){\n\t$filters = isset($GLOBALS['wp_filter'][ $tag ])? $GLOBALS['wp_filter'][ $tag ] : false;\n\n\tif (empty($filters)){\n\t\treturn;\n\t}\n\n\tforeach ( $filters as $priority => $filter )\n\t{\n\t\tforeach ( $filter as $identifier => $function )\n\t\t{\n\t\t\tif ( is_array( $function)\n\t\t\t\tand is_a( $function['function'][0], $class )\n\t\t\t\tand $method === $function['function'][1]\n\t\t\t)\n\t\t\t{\n\t\t\t\tremove_filter(\n\t\t\t\t\t$tag,\n\t\t\t\t\tarray ( $function['function'][0], $method ),\n\t\t\t\t\t$priority\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}", "function remove_all_filters($hook_name, $priority = \\false)\n {\n }", "protected function postFilter($filterChain)\n {\n }", "function acf_disable_filters()\n{\n}", "public function test_remove_filter_funcname() {\n $hook = rand_str();\n $function = rand_str();\n\n $this->assertFalse( yourls_has_filter( $hook ) );\n yourls_add_filter( $hook, $function );\n $this->assertTrue( yourls_has_filter( $hook ) );\n\n $removed = yourls_remove_filter( $hook, $function );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "public function remove()\n {\n foreach ($this->filters as $filter) {\n $filterWithoutAcceptedArguments = array_slice($filter, 0, 3);\n call_user_func_array($this->removeCallback, $filterWithoutAcceptedArguments);\n }\n }", "function reset_filters()\r\n{\r\n\t//uitzoeken of het in js of php gedaan word\t\r\n}", "public function postProcessResetFilterModules()\n {\n }", "public function remove_filter($hook_name, $callback, $priority)\n {\n }", "function doing_filter($hook_name = \\null)\n {\n }", "public function removeAllFilters();", "function remove_filter ($filter,$remove) \n{\n unset($filter[$remove]);\n return $filter;\n}", "public function __destruct() {\n if (class_exists('\\Sleepy\\Hook')) {\n Hook::addAction($this->clean_class() . '_postprocess');\n }\n }", "function mgd_register_filter($name, $function)\n{\n $GLOBALS['midgard_filters'][\"x{$name}\"] = $function;\n}", "function RegisterOutputfilter($function)\n {\n $this->_smarty->register_outputfilter($function);\n }", "public function remove_hooks()\n {\n }", "public function remove_hooks()\n {\n }", "public function test_remove_filter_priority() {\n $hook = rand_str();\n $function = rand_str();\n // Random priority but not 10\n do {\n $priority = rand( 1,100 );\n } while ( $priority == 10 );\n\n $this->assertFalse( yourls_has_filter( $hook ) );\n yourls_add_filter( $hook, $function, $priority );\n $this->assertTrue( yourls_has_filter( $hook ) );\n\n $removed = yourls_remove_filter( $hook, $function );\n $this->assertFalse( $removed );\n\n $removed = yourls_remove_filter( $hook, $function, $priority );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "function acf_disable_filter($name = '')\n{\n}", "public function removeFilter(string $name): void;", "public function removeFilter(string $name);", "function unhook_hotlink_scanner() {\n\t\tremove_action( 'save_post', array( &$this, 'localize_hotlinked_files' ) );\n\t}", "protected function removeFilter($hook, $callback, $priority = 10)\n\t{\n\t\treturn remove_filter($hook,$callback,$priority);\n\t}", "function dacig_register_filters( $output ) {\n\tadd_filter( 'pre_get_posts', 'dacig_allow_filters' );\n\tadd_filter( 'the_posts', 'dacig_modify_the_posts' );\n\n\treturn $output;\n}", "public function removeFilter($key);", "private function restoreFilters()\n {\n if (count($this->wordpressFilters) > 0) {\n $filters = $this->wordpress->getFilters();\n\n foreach ($this->wordpressFilters as $filterKey => $filter) {\n $filters[$filterKey] = $filter;\n }\n\n $this->wordpress->setFilters($filters);\n $this->wordpressFilters = [];\n }\n }", "protected function remove_filter( $tag, $function_to_remove, $priority = 10 ) {\n\t\treturn \\remove_filter( $tag, [ $this, $function_to_remove ], $priority );\n\t}", "function unregister_plugin_hook($hook, $entity_type, $function) {\n\tglobal $CONFIG;\n\tforeach($CONFIG->hooks[$hook][$entity_type] as $key => $hook_function) {\n\t\tif ($hook_function == $function) {\n\t\t\tunset($CONFIG->hooks[$hook][$entity_type][$key]);\n\t\t}\n\t}\n}", "function clear_filters($filterName = null)\n{\n if ($pluginBroker = get_plugin_broker()) {\n $pluginBroker->clearFilters($filterName);\n }\n}", "static public function deregister_scripts() {\n wp_dequeue_script( 'filterable-portfolio' );\n wp_deregister_script( 'filterable-portfolio' );\n }", "function _applyPostfilters ($text) {\r\n foreach ($this->_postfilters as $filter) {\r\n if (is_callable ($filter)) {\r\n $ntext = call_user_func ($filter, $text);\r\n if (is_string ($ntext)) {\r\n $text = $ntext;\r\n }\r\n }\r\n }\r\n return $text;\r\n }", "public function test_remove_filter_within_class_instance( $hook ) {\n $this->assertTrue( yourls_has_filter( $hook ) );\n $removed = yourls_remove_filter( $hook, array( self::$instance, 'change_variable' ) );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\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}", "function ft_hook_destroy() {}", "public function afterFeature($filter, $callback)\n {\n $this->hooks['feature.after'][] = array($filter, $callback);\n }", "public function register_filters() {\n\n\t\t}", "public function resetFilters() {\n $this->filters = array();\n }", "function DRA_Disable_Via_Filters() {\n\n // Filters for WP-API version 1.x\n add_filter( 'json_enabled', '__return_false' );\n add_filter( 'json_jsonp_enabled', '__return_false' );\n\n // Filters for WP-API version 2.x\n add_filter( 'rest_enabled', '__return_false' );\n add_filter( 'rest_jsonp_enabled', '__return_false' );\n\n // Remove REST API info from head and headers\n remove_action( 'xmlrpc_rsd_apis', 'rest_output_rsd' );\n remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );\n remove_action( 'template_redirect', 'rest_output_link_header', 11 );\n\n}", "function RegisterPrefilter($function)\n {\n $this->_smarty->register_prefilter($function);\n }", "public static function clearOutput(): void\n {\n rex_extension::register('OUTPUT_FILTER', static function (rex_extension_point $ep) {\n $ep->setSubject(false);\n });\n }", "public function filterAfterAll($filter);", "function output_filter($value, array $params = null) {\n return trigger_hook('output', 'filter', $params, $value);\n}", "function add_filters()\n {\n }", "abstract public function filter(callable $func);", "public function remove()\n {\n\n foreach ( $this->actions as $action ) {\n extract( $action );\n\n /**\n * @var string $tag\n * @var string $function\n * @var int $priority\n * @var mixed $replacment\n */\n\n remove_action( $tag, $function, $priority );\n\n if ( $replacment ) {\n add_action( $tag, $replacment, $priority );\n }\n }\n\n foreach ( $this->filters as $filter ) {\n extract( $filter );\n\n /**\n * @var string $tag\n * @var string $function\n * @var int $priority\n * @var mixed $replacment\n */\n\n remove_filter( $tag, $function, $priority );\n\n if ( $replacment ) {\n add_filter( $tag, $replacment, $priority );\n }\n }\n\n }", "public function hooks() {\n\t\t\\add_filter( 'the_generator', '__return_false' );\n\t\t\\remove_action('wp_head', 'wp_generator');\n\t}", "function unregister_taxonomy(){\n register_taxonomy('post_tag', array());\n}", "function register_prefilter($smarty, $function)\n{\n $_name = (is_array($function)) ? $function[0] : $function;\n $smarty->registered_filters['pre'][$_name] = $function;\n}", "function cleanup() {\n\n\t\t// reset language\n\t\tif ( Language::is_multilingual() ) {\n\t\t\tLanguage::set_original();\n\t\t}\n\n\t\tremove_filter( 'woocommerce_get_tax_location', [ $this, 'filter_tax_location' ] );\n\n\t\t$this->is_setup = false;\n\t}", "public function test_remove_filter_within_class( $hook ) {\n $removed = yourls_remove_filter( $hook, 'Change_Variable::change_it' );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "public function unRegisterWriteCallback($type, $name) {}", "public function tear_down() {\n\t\tparent::tear_down();\n\n\t\tadd_filter( 'llms_rest_webhook_pre_ping', '__return_true' );\n\t\tremove_filter( 'pre_http_request', array( $this, 'mock_request' ), 10 );\n\n\t}", "public function removeFilter( string $tag, string $function, int $priority = 10, $replacement = false ): self\n {\n\n $this->filters[] = [\n 'tag' => $tag,\n 'function' => $function,\n 'priority' => $priority,\n 'replacment' => $replacement,\n ];\n\n return $this;\n\n }", "public function post_filter($filter, $field = TRUE)\n\t{\n\t\tif ($field === TRUE)\n\t\t{\n\t\t\t// Use wildcard\n\t\t\t$fields = array('*');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Add the filter to specific inputs\n\t\t\t$fields = func_get_args();\n\t\t\t$fields = array_slice($fields, 1);\n\t\t}\n\n\t\t// Convert to a proper callback\n\t\t$filter = $this->callback($filter);\n\n\t\tforeach ($fields as $field)\n\t\t{\n\t\t\t// Add the filter to specified field\n\t\t\t$this->post_filters[$field][] = $filter;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function plugin_deactivate(){\n\t\t//flush permalinks\n\t\tflush_rewrite_rules();\n\t}", "public function plugin_deactivate(){\n\t\t//flush permalinks\n\t\tflush_rewrite_rules();\n\t}", "function filter($callback = null);", "public function afterDispatch($callback)\r\n {\r\n $this->after_filter_callbacks->enqueue($callback);\r\n }", "function joe_uwpl_plugin_deactivation() {\n\tflush_rewrite_rules();\n}", "public function unregisterOperator($operator) {}", "function add_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1)\n {\n }", "public function get_name()\n {\n return 'post-filter';\n }", "public function destroy(Filter $filter)\n {\n //\n }", "function delete_post_type_event(){\n\tunregister_post_type( 'event' );\n}", "function wp_remove_targeted_link_rel_filters()\n {\n }", "public function reset() : void\n {\n\n // load the filters that has to be resetted\n $filters = $this->getFilters();\n\n // reset the filters\n foreach ($filters as $filter) {\n if ($filter instanceof PregMatchFilterInterface) {\n $filter->reset();\n }\n }\n }", "public function remove(FilterInterface ...$filters);", "final private function priorityHandlerCleanup() {\n foreach ($this->priorityHelpers as $p)\n $p->remove();\n\n remove_action($this->hookName,array($this,'priorityHandlerCleanup'),self::LATEST+1);\n $this->priorityHelpers = array();\n }", "public function afterFilter(){\n if ($this->request->is('api') ) {\n $this->Session->destroy();\n }\n }", "public function remove_all_hook() {\n\t\tremove_action( 'all', [ $this, 'wrap_hook_callbacks' ] );\n\t}", "function wp_deregister_script($handle)\n {\n }", "function deactivation_func() {\r\n\r\n delete_option( 'wpc_run_activated_functions' );\r\n }", "public function register_filters() {\n\t\tadd_filter( 'json_endpoints', array( $this, 'register_routes' ) );\n\t\tadd_filter( 'json_post_type_data', array( $this, 'type_archive_link' ), 10, 2 );\n\t}", "function teardown($fn) {\n Preview::$world->current()->add_after_each_hook($fn);\n}", "function filter_method_name()\r\n\t{\r\n\t\t// TODO:\tDefine your filter method here\r\n\t}", "public function remove_filter($filter)\n {\n \t$filters = session('reports_filter_domain');\n \tif(array_key_exists($filter, $filters))\n {\n unset($filters[$filter]);\n session()->put('reports_filter_domain', $filters);\n }\n\n \treturn $filters;\n }", "public function test_remove_filter_within_class_array( $hook ) {\n $removed = yourls_remove_filter( $hook, array( 'Change_Variable', 'change_it' ) );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "public function filterNot(callable $hof);", "function add_field_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1)\n {\n }", "function runkit_function_remove($funcname)\n{\n}", "public function unRegisterPdfStringCallback($name) {}", "function deactivation_hook() {\n\n\t}", "function remove_action($hook_name, $callback, $priority = 10)\n {\n }", "function wp_unregister_GLOBALS()\n {\n }", "protected function register_filters(){\n\t\tadd_filter(\"the_content\", array($this, \"filter_single_content_after\"), 0);\n\t}", "function wp_embed_unregister_handler($id, $priority = 10)\n {\n }", "public function _report_js_filterReportsActionRemove()\n\t{\n\t\t$filter_js = View::factory('actionable_filter_remove_js');\n\t\t$filter_js->render(TRUE);\n\t}", "function http_request_method_unregister($method) {}", "function acf_get_filters()\n{\n}", "public function registerUnParseHtml($function_name)\n\t{\n\t\t$this->listUnFilterHtmlFunction[] = $function_name;\n\t}" ]
[ "0.7373712", "0.7237464", "0.7090996", "0.7086772", "0.70489526", "0.6832474", "0.6512555", "0.6500213", "0.6435823", "0.6412622", "0.6264999", "0.626009", "0.625832", "0.62490124", "0.62147146", "0.6205635", "0.610849", "0.61025256", "0.6054939", "0.584667", "0.582096", "0.58061653", "0.5791448", "0.5747782", "0.5728811", "0.5726157", "0.5726157", "0.5722335", "0.5706159", "0.56873125", "0.5652611", "0.56364995", "0.560881", "0.5579728", "0.5568186", "0.5545017", "0.5539804", "0.5539501", "0.5538061", "0.55345505", "0.55267704", "0.5506451", "0.54884535", "0.548451", "0.547019", "0.5454629", "0.5437795", "0.543561", "0.5424546", "0.54229355", "0.54115665", "0.540715", "0.538228", "0.5373891", "0.5367171", "0.53564805", "0.5354158", "0.53445965", "0.53301615", "0.5322099", "0.5307481", "0.5306024", "0.5299852", "0.52998316", "0.5269395", "0.5269395", "0.52597904", "0.5255576", "0.52518964", "0.5249474", "0.52334195", "0.5231659", "0.5224242", "0.5222864", "0.52110445", "0.5196637", "0.5183591", "0.5182261", "0.51731354", "0.5172029", "0.51555604", "0.5143925", "0.5142336", "0.5133027", "0.5117547", "0.51168984", "0.5114127", "0.5113441", "0.51100695", "0.50984514", "0.5097267", "0.509657", "0.50941813", "0.5077632", "0.50719804", "0.50705874", "0.5067764", "0.5066786", "0.506522", "0.506501" ]
0.84386104
0
Registers an output filter function to apply to a template output
Регистрирует функцию фильтра вывода для применения к выводу шаблона
function RegisterOutputfilter($function) { $this->_smarty->register_outputfilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterOutputfilter($function)\n {\n $this->_smarty->unregister_outputfilter($function);\n }", "function output_filter($value, array $params = null) {\n return trigger_hook('output', 'filter', $params, $value);\n}", "public function register_output_filter($callback_impl, $filter_name = '')\n {\n if (empty($filter_name)) {\n $filter_name = substr(abs(crc32(microtime(true))), 0, 8);\n }\n $this->_OUTPUT_FILTERS[$filter_name] = $callback_impl;\n }", "function RegisterPostfilter($function)\n {\n $this->_smarty->register_postfilter($function);\n }", "function dacig_register_filters( $output ) {\n\tadd_filter( 'pre_get_posts', 'dacig_allow_filters' );\n\tadd_filter( 'the_posts', 'dacig_modify_the_posts' );\n\n\treturn $output;\n}", "public function output_filter()\n\t{\n\t\tglobal $output;\n\t\t$this->output = &$output;\n\n\t\t$this->frontend = new Frontend();\n\t\t$this->module = $this->frontend->run();\n\n\t\tif (strstr($this->output, \"#fixemodule\")) {\n\t\t\t$this->output = $this->replace_placeholders($this->output);\n\t\t}\n\t}", "function mgd_register_filter($name, $function)\n{\n $GLOBALS['midgard_filters'][\"x{$name}\"] = $function;\n}", "function RegisterPrefilter($function)\n {\n $this->_smarty->register_prefilter($function);\n }", "public function register_filters() {\n\n\t\t}", "public function _apply_output_filters($text = '')\n {\n foreach ((array) $this->_OUTPUT_FILTERS as $cur_filter) {\n if (is_callable($cur_filter)) {\n $text = call_user_func($cur_filter, $text);\n }\n }\n return $text;\n }", "function outputFilter($data, stdClass $context) {\n for ($i = 0, $n = count($this->filters); $i < $n; $i++) {\n $data = $this->filters[$i]->outputFilter($data, $context);\n }\n return $data;\n }", "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "function register_variablefilter($smarty, $function)\n{\n $_name = (is_array($function)) ? $function[0] : $function;\n $smarty->registered_filters['variable'][$_name] = $function;\n}", "public function addFilter(callable $filter);", "function add_filters()\n {\n }", "private function setup_filters() {\n add_filter( 'timber/twig', function( $twig ) {\n\n // ped_icon()\n $twig->addFunction( new \\Twig_SimpleFunction( PEDESTAL_PREFIX . 'icon',\n [ __CLASS__, 'get_icon' ]\n ) );\n\n // ped_logo()\n $twig->addFunction( new \\Twig_SimpleFunction( PEDESTAL_PREFIX . 'logo',\n [ __CLASS__, 'get_logo' ]\n ) );\n\n return $twig;\n }, 99 );\n }", "function add_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1)\n {\n }", "function register($metatype, callable $filefilter) {\n\t\tstatic::$filefilters[$metatype] = $filefilter;\n\t}", "public function register()\n {\n Filter::register();\n }", "function test_function_filter() {\n\t\t$var = new LiquidVariable('var | test_function_filter');\n\t\t$this->context->set('var', 1000);\n\t\t$this->context->add_filters('test_function_filter');\n\t\t$this->assertIdentical('worked', $var->render($this->context));\t\t\n\t\t\n\t}", "function preview_theme_ob_filter_callback($matches)\n {\n }", "function after_filter($action, $args) {\n }", "function _add_template_loader_filters()\n {\n }", "public static function clearOutput(): void\n {\n rex_extension::register('OUTPUT_FILTER', static function (rex_extension_point $ep) {\n $ep->setSubject(false);\n });\n }", "protected function applyOutputFilter($value)\n {\n $filter = $this->getFormFilter();\n if ($filter) {\n $value = $filter->outputFilter($value);\n }\n \n return $value;\n }", "function register_prefilter($smarty, $function)\n{\n $_name = (is_array($function)) ? $function[0] : $function;\n $smarty->registered_filters['pre'][$_name] = $function;\n}", "public function register()\n {\n $this->makeFilters();\n }", "function UnregisterPrefilter($function)\n {\n $this->_smarty->unregister_prefilter($function);\n }", "protected function register_filters(){\n\t\tadd_filter(\"the_content\", array($this, \"filter_single_content_after\"), 0);\n\t}", "public function test_add_filter_create_function() {\n $hook = rand_str();\n $this->assertFalse( yourls_has_filter( $hook ) );\n yourls_add_filter( $hook, function() {\n return rand_str();\n } );\n $this->assertTrue( yourls_has_filter( $hook ) );\n\n return $hook;\n\t}", "protected function addFilter($class)\n {\n return <<<EOF\n\\$this->register('{$class}');\nEOF;\n }", "public function getFilters() {\n return array(\n new \\Twig_SimpleFilter(\"format_bytes\", array($this, \"formatBytes\"))\n );\n }", "public function extra_output_filter( $out, $dynamic_arg, $param_id, $shortcode, $value ) {\n\t\t$dynamic_id = $dynamic_arg['data'];\n\n\t\tswitch ( $dynamic_id ) {\n\t\t\tcase 'post_featured_image':\n\t\t\t\tif ( 'fusion_imageframe' === $shortcode && 'element_content' === $param_id ) {\n\t\t\t\t\t$out['image_id'] = get_post_thumbnail_id();\n\t\t\t\t} else {\n\t\t\t\t\t$out[ $param_id . '_id' ] = get_post_thumbnail_id();\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'acf_image':\n\t\t\t\t$image_id = false;\n\t\t\t\t$image_data = isset( $dynamic_arg['field'] ) ? get_field( $dynamic_arg['field'] ) : false;\n\n\t\t\t\tif ( is_array( $image_data ) && isset( $image_data['url'] ) ) {\n\t\t\t\t\t$image_id = $image_data['ID'];\n\t\t\t\t} elseif ( is_integer( $image_data ) ) {\n\t\t\t\t\t$image_id = $image_data;\n\t\t\t\t}\n\n\t\t\t\tif ( 'fusion_imageframe' === $shortcode && 'element_content' === $param_id ) {\n\t\t\t\t\t$out['image_id'] = $image_id;\n\t\t\t\t} else {\n\t\t\t\t\t$out[ $param_id . '_id' ] = $image_id;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}\n\t\treturn $out;\n\t}", "function add_field_filter($tag = '', $function_to_add = '', $priority = 10, $accepted_args = 1)\n {\n }", "function twig_raw_filter($string)\n{\n return $string;\n}", "function preview_theme_ob_filter($content)\n {\n }", "public function register_filters() {\n\t\tadd_filter( 'json_endpoints', array( $this, 'register_routes' ) );\n\t\tadd_filter( 'json_post_type_data', array( $this, 'type_archive_link' ), 10, 2 );\n\t}", "public static function register(): void\n {\n if (!in_array(self::FILTERNAME, stream_get_filters(), true)) {\n stream_filter_register(self::FILTERNAME, self::class);\n }\n }", "public function filter_timber_twig_add_functions( $twig ) {\n // Function to check if doing email and alternate strings\n $twig->addFunction( new \\Twig_SimpleFunction( 'if_email', function( $email_str, $standard_str ) {\n if ( $this->is_email() ) {\n return $email_str;\n }\n return $standard_str;\n } ) );\n\n // Get the current Unix epoch time in milliseconds\n $twig->addFunction( new \\Twig_SimpleFunction( 'now', function() {\n return round( microtime( true ) * 1000 );\n } ) );\n\n // Add WordPress' checked() function to Twig\n $twig->addFunction( new \\Twig_SimpleFunction( 'checked', function( $checked, $current = true ) {\n return checked( $checked, $current );\n } ) );\n\n // Add WordPress' selected() function to Twig\n $twig->addFunction( new \\Twig_SimpleFunction( 'selected', function( $selected, $current = true ) {\n return selected( $selected, $current );\n } ) );\n\n // Add WordPress' disabled() function to Twig\n $twig->addFunction( new \\Twig_SimpleFunction( 'disabled', function( $disabled, $current = true ) {\n return disabled( $disabled, $current );\n } ) );\n\n return $twig;\n }", "protected function addFilter ()\n {\n global $database;\n\n if (defined('LEPTON_VERSION')) {\n // register the filter at LEPTON outputInterface\n if (! file_exists(WB_PATH . '/modules/output_interface/output_interface.php')) {\n throw new \\Exception('Missing LEPTON outputInterface, can\\'t register the kitFramework filter - installation is not complete!');\n } else {\n if (! function_exists('register_output_filter'))\n include_once (WB_PATH . '/modules/output_interface/output_interface.php');\n register_output_filter('kit_framework', 'kitFramework');\n }\n }\n elseif (defined('CAT_VERSION')) {\n // register the filter at the blackcatFilter\n require_once CAT_PATH.'/modules/blackcatFilter/filter.php';\n // first unregister to prevent trouble at re-install\n unregister_filter('kitCommands', 'kit_framework');\n // register the filter\n register_filter('kitCommands', 'kit_framework', 'Enable the usage of kitCommands within BlackCat');\n }\n else {\n if (version_compare(WB_VERSION, '2.8.3', '>=')) {\n // WebsiteBaker 2.8.3\n $filter_path = WB_PATH . '/modules/output_filter/index.php';\n } else {\n // all other WebsiteBaker versions\n $filter_path = WB_PATH . '/modules/output_filter/filter-routines.php';\n }\n if (file_exists($filter_path)) {\n if (! $this->websiteBakerIsPatched($filter_path)) {\n if (! $this->websiteBakerDoPatch($filter_path)) {\n throw new \\Exception('Failed to patch the WebsiteBaker output filter, please contact the support!');\n }\n }\n } else {\n throw new \\Exception('Can\\'t detect the correct method to patch the output filter, please contact the support!');\n }\n }\n return true;\n }", "public static function registerOutput(IResolver $resolver, IOutput $output);", "function dt_print_filters_for( $hook = '' ) {\n\tglobal $wp_filter;\n\n\tif( empty( $hook ) || !isset( $wp_filter[$hook] ) ) {\n\t\treturn;\n\t}\n\n\tprint '<pre>';\n\tprint_r( $wp_filter[$hook] );\n\tprint '</pre>';\n}", "protected function addTemplateFunctionConfigs()\n {\n // TODO: add twig template function configs\n }", "protected function after_filter()\n {\n $this->render('footer.php');\n }", "function output_boot() {\n // Handle view extensions\n register_hook('view', 'prepend', '__output_view_extension_handler');\n register_hook('view', 'extend', '__output_view_extension_handler');\n}", "function add_to_twig( $twig ) {\n\t\t$twig->addExtension( new Twig_Extension_StringLoader() );\n\t\t$twig->addFilter('myfoo', new Twig_SimpleFilter('myfoo', array($this, 'myfoo')));\n\t\treturn $twig;\n\t}", "function add_to_twig( $twig ) {\n\t\t$twig->addExtension( new Twig_Extension_StringLoader() );\n\t\t$twig->addFilter('myfoo', new Twig_SimpleFilter('myfoo', array($this, 'myfoo')));\n\t\treturn $twig;\n\t}", "function add_to_twig( $twig ) {\n\t\t$twig->addExtension( new Twig_Extension_StringLoader() );\n\t\t$twig->addFilter('myfoo', new Twig_SimpleFilter('myfoo', array($this, 'myfoo')));\n\t\treturn $twig;\n\t}", "function doing_filter($hook_name = \\null)\n {\n }", "function add_to_twig( $twig ) {\n\t\t// $twig->addExtension( new Twig_Extension_StringLoader() );\n\t\t// $twig->addFilter('myfoo', new Twig_SimpleFilter('myfoo', array($this, 'myfoo')));\n\t\treturn $twig;\n\t}", "public function setFilters()\n {\n if (class_exists('Twig_SimpleFilter')) {\n $class = 'Twig_SimpleFilter';\n } else {\n $class = 'Twig\\TwigFilter';\n }\n\n $filter_merge_str = new $class('merge_str', function ($attrs, array $options = array()) {\n $key = $options[0];\n $value = $options[1];\n\n if (array_key_exists($key, $attrs)) {\n $attrs[$key] = implode(' ', [$value, $attrs[$key]]);\n } else {\n $attrs[$key] = $value;\n }\n\n return $attrs;\n }, array('is_variadic' => true));\n\n $this->twig->addFilter($filter_merge_str);\n }", "public function test_add_filter_funcname() {\n // Random function name\n $hook = rand_str();\n $this->assertFalse( yourls_has_filter( $hook ) );\n yourls_add_filter( $hook, rand_str() );\n $this->assertTrue( yourls_has_filter( $hook ) );\n\n // Specific function name to test with yourls_apply_filter\n $hook = rand_str();\n $this->assertFalse( yourls_has_filter( $hook ) );\n yourls_add_filter( $hook, 'change_variable' );\n $this->assertTrue( yourls_has_filter( $hook ) );\n\n return $hook;\n\t}", "function add_to_twig($twig){\n\t\t$twig->addExtension(new Twig_Extension_StringLoader());\n\t\t// $twig->addFilter('myfoo', new Twig_Filter_Function('myfoo'));\n\t\treturn $twig;\n\t}", "public function registerFilters()\n {\n foreach ($this->getFilters() as $filter) {\n try {\n $this->smarty->registerFilter($filter->getType(), $filter->getCallback());\n } catch (SmartyException $e) {\n if (null !== $this->logger) {\n $this->logger->warn(sprintf(\"SmartyException caught: %s.\", $e->getMessage()));\n }\n }\n }\n }", "function get_plugin_hook_output($name, array $args = array())\n{\n ob_start();\n fire_plugin_hook($name, $args);\n $content = ob_get_contents();\n ob_end_clean();\n return $content;\n}", "public function _post_filter()\n {\n }", "public function createFilter();", "public function isOutputDecorated();", "public function getHandler(&$output)\n {\n parent::getHandler($output);\n\n $serverData = $this->model->getServerInfo();\n\n $tags = array(\n '{APACHEVERSION}' => $serverData['version_apache'],\n '{PHPVERSION}' => $serverData['version_php'],\n '{MYSQLVERSION}' => $serverData['version_mysql'],\n '{PDOMYSQLEXT}' => $serverData['extension_pdo_mysql'],\n '{PHPCURLEXT}' => $serverData['extension_curl'],\n '{PHPJSONEXT}' => $serverData['extension_json'],\n '{PHPDATEEXT}' => $serverData['extension_date'],\n '{PHPFILTEREXT}' => $serverData['extension_filter'],\n '{PHPHASHEXT}' => $serverData['extension_hash'],\n '{PHPSESSIONEXT}' => $serverData['extension_session'],\n '{PHPPCREEXT}' => $serverData['extension_pcre'],\n '{PHPMCRYPTEXT}' => $serverData['extension_mcrypt'],\n '{PHPMBSTRINGEXT}' => $serverData['extension_mbstring'],\n '{PASSWORDHASH}' => $serverData['function_pass_hash'],\n '{HTTPRESPONSECODE}' => $serverData['function_http_code'],\n );\n $this->templateEngine->parseTags($tags, $output);\n }", "function filter($callback = null);", "public function setOutputDecorated($decorated);", "public static function addShortcode($shortcode, $function, $output)\n\t{\n\t\treturn str_replace('{{'.$shortcode.'}}', $function, $output);\n\t}", "private static function addFunctions()\n {\n \tself::$twig->addFunction(new \\Twig_SimpleFunction('asset', function ($asset) {\n return sprintf('%s', ltrim($asset, '/'));\n\t\t}));\n\n self::$twig->addFunction(new \\Twig_SimpleFunction('getBaseUrl', function () {\n return getBaseUrl();\n }));\n\n self::$twig->addFunction(new \\Twig_SimpleFunction('csrf_token', function () {\n return csrf_token();\n }));\n }", "public function getFilters()\n {\n return [\n new \\Twig_SimpleFilter('iconFile', [$this, 'iconFile'], ['is_safe' => ['html']])\n ];\n }", "function output() {\n \n }", "public function getFilters()\r\n {\r\n\r\n return array(new \\Twig_SimpleFilter('montantTva', array($this, 'montantTva')));\r\n }", "function did_filter($hook_name)\n {\n }", "public static function output() {}", "public function getFilters()\n {\n return array(\n 'safe' => new Twig_Filter_Function('twig_safe_filter', array('is_escaper' => true)),\n );\n }", "private function addTwigFunctions() : void {\n\t\t$msgFunc = new Twig_SimpleFunction( 'msg', function ( $key, $params = [] ) {\n\t\t\t$params = is_array( $params ) ? $params : [];\n\t\t\treturn $this->i18n->msg(\n\t\t\t\t$key, [ 'domain' => 'popular-pages', 'variables' => $params ]\n\t\t\t);\n\t\t} );\n\t\t$this->twig->addFunction( $msgFunc );\n\n\t\t// Fetching assessments info, case-insensitive.\n\t\t$assessmentFunc = new Twig_SimpleFunction(\n\t\t\t'assessments', function (\n\t\t\t\tstring $type, string $value\n\t\t\t) {\n\t\t\t\t$dataset = $this->api->getAssessmentConfig()[$type];\n\t\t\t\tforeach ( $dataset as $key => $values ) {\n\t\t\t\t\tif ( strtolower( $value ) === strtolower( $key ) ) {\n\t\t\t\t\t\treturn $values;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn $dataset['Unknown'];\n\t\t\t} );\n\t\t$this->twig->addFunction( $assessmentFunc );\n\n\t\t// Add ucfirst() (Twig's capitalize() will make the other chars lowercase).\n\t\t$ucfirstFunc = new Twig_SimpleFilter( 'ucfirst', function ( string $value ) {\n\t\t\treturn ucfirst( $value );\n\t\t} );\n\t\t$this->twig->addFilter( $ucfirstFunc );\n\t}", "function twig_safe_filter($string)\n{\n return $string;\n}", "function add_function ( $name ) {\r\n $this->_twig->addFunction( $name, new Twig_Function_Function( $name ) );\r\n }", "public static function custom($function)\n {\n if (!is_callable($function)) {\n throw new InvalidArgumentException('function', 'callable');\n }\n\n self::$templates[] = $function;\n }", "public function getInputFilter()\n {\n $template = $this->getTemplate();\n return new $template();\n }", "public function getFilters(): array\n {\n return [\n new \\Twig_SimpleFilter('extract', [$this, 'extract']),\n ];\n }", "function acf_get_filters()\n{\n}", "function filter($output){\n\tif (is_array($output)) return $output;\n\t$search = array('/([\\xa1-\\xf9][\\xa1-\\xf9][\\x5c])/','/([\\xa1-\\xf9][\\x5c])[\\x5c]/');\n\t$replace = array('\\1\\\\','\\1');\n\treturn(htmlspecialchars(preg_replace($search,$replace,$output)));\n}", "public function afterFilter()\n\t{\n\n\t}", "private function filterTemplate(array $output): array\n {\n if (null === $this->template) {\n return $output;\n }\n\n $data = [];\n $paths = $this->generateTemplatePaths($this->template) ;\n\n foreach ($paths as $path) {\n $translator = new PathTranslator($output);\n $pathCollection = $translator->path(implode('.', $path));\n\n foreach ($pathCollection as $pathItem) {\n $this->insertIntoArray($data, $pathItem->getPath(), $pathItem->getValue());\n }\n }\n\n return $data;\n }", "public function filter_timber_twig_add_basic_filters( $twig ) {\n $function_names = [\n // PHP Functions\n 'addslashes', // http://php.net/manual/en/function.addslashes.php\n 'nl2br', // http://php.net/manual/en/function.nl2br.php\n\n // WordPress functions\n 'antispambot', // https://developer.wordpress.org/reference/functions/antispambot/\n 'esc_attr', // https://developer.wordpress.org/reference/functions/esc_attr/\n 'esc_html', // https://developer.wordpress.org/reference/functions/esc_html/\n 'esc_url', // https://developer.wordpress.org/reference/functions/esc_url/\n 'esc_js', // https://developer.wordpress.org/reference/functions/esc_js/\n 'esc_textarea', // https://developer.wordpress.org/reference/functions/esc_textarea/\n 'sanitize_email', // https://developer.wordpress.org/reference/functions/sanitize_email/\n ];\n foreach ( $function_names as $func ) {\n if ( function_exists( $func ) ) {\n $twig->addFilter( new \\Twig_SimpleFilter( $func, $func ) );\n }\n }\n return $twig;\n }", "public function twig_function_dump()\n\t{\n\t\treturn new \\Twig_SimpleFunction('dump', function()\n\t\t{\n\n\t\t});\n\t}", "public function filter(callable $hof);", "public function addFilter()\n\t{\n\t\treturn $this->addTextFilter();\n\t}", "private function add_hooks_and_filters() {\n add_filter( 'slp_version_report_' . $this->addon->short_slug , array( $this , 'show_activated_modules' ) );\n }", "protected function getTwigFilters()\n\t{\n\t\t$filters = [];\n\n\t\t// rex_i18n::translate\n\t\t$filters[] = new Twig_SimpleFilter('translate', function ($string) {\n \t\treturn rex_i18n::translate($string);\n\t\t});\n\n\t\t// rex_i18n::msg\n\t\t$filters[] = new Twig_SimpleFilter('msg', function ($string, array $arguments = []) {\n\t\t\treturn call_user_func_array(array('rex_i18n', 'msg'), array_merge(array($string), $arguments));\n\t\t}, array('is_variadic' => true));\n\n\t\t// any rexXXX::getYYY() method\n\t\t$filters[] = new Twig_SimpleFilter('get*', function ($name, $class = null) {\n\t\t\t$method = 'get' . $name;\n\n\t\t\tif(is_object($class) && substr(get_class($class), 0, 3) == 'rex')\n\t\t\t{\n\t\t\t\tif(method_exists($class, $method))\n\t\t\t\t{\n\t\t\t\t\t$arguments = func_get_args() > 2 ? array_slice(func_get_args(), 2) : [];\n\n\t\t\t\t\treturn call_user_func_array(array($class, $method), $arguments);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t});\n\n\t\t// any rexXXX::hasYYY() method\n\t\t$filters[] = new Twig_SimpleFilter('has*', function ($name, $class = null) {\n\t\t\t$method = 'has' . $name;\n\n\t\t\tif(is_object($class) && substr(get_class($class), 0, 3) == 'rex')\n\t\t\t{\n\t\t\t\tif(method_exists($class, $method))\n\t\t\t\t{\n\t\t\t\t\t$arguments = func_get_args() > 2 ? array_slice(func_get_args(), 2) : [];\n\n\t\t\t\t\treturn call_user_func_array(array($class, $method), $arguments);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn null;\n\t\t});\n\n\t\treturn array_merge($filters, $this->twig_filter);\n\t}", "function acf_enable_filters($filters = array())\n{\n}", "public function getFilters()\r\n {\r\n return array(\r\n new \\Twig_SimpleFilter('sha1', array($this, 'sha1Filter')),\r\n );\r\n }", "public function register() {\n\n\n Blade::directive('hasFeature', function ($expression) {\n return \"<?php if (app('switchover')->toggleValue({$expression}, false)) : ?>\";\n });\n\n \n Blade::directive('hasConditionalFeature', function ($expression) {\n\n $args = collect(explode(',', $expression))->map(function ($item) {\n return trim($item);\n });\n\n $name = $args->get(0);\n $context = join(', ', $args->slice(1)->toArray());\n \n return \"<?php if (app('switchover')->toggleValue({$name}, false, new \\Switchover\\Context({$context}))) : ?>\";\n });\n\n Blade::directive('endHasFeature', function () {\n return \"<?php endif; ?>\";\n });\n\n\n }", "protected function _output($data) {}", "public function _report_filters_ui()\n\t{\n\t\t$filter = View::factory('actionable_filter');\n\t\t$filter->render(TRUE);\n\t}", "public function registerMarkupTags() {\n return [\n 'filters' => [\n 'formatMoney' => ['Elearning\\System\\Classes\\Helper', 'formatMoney'],\n 'formatHtml' => ['Elearning\\System\\Classes\\Helper', 'formatHtml'],\n 'generateRating' => ['Elearning\\System\\Classes\\Helper', 'generateRating'],\n 'formatDate' => ['Elearning\\System\\Classes\\Helper', 'formatDate'],\n 'formatProvince' => ['Elearning\\System\\Classes\\Helper', 'formatProvince'],\n 'formatDistrict' => ['Elearning\\System\\Classes\\Helper', 'formatDistrict'],\n 'formatDateForm' => ['Elearning\\System\\Classes\\Helper', 'formatDateForm'],\n 'checkStudentCourse' => ['Elearning\\System\\Classes\\Helper', 'checkStudentCourse'] \n ]\n ];\n }", "protected function register()\n {\n foreach (['acf/include_field_types', 'acf/register_fields'] as $hook) {\n add_filter($hook, function () {\n return new ImageMapField(sprintf('%s%s', plugin_dir_url(__FILE__), $this->assetPath));\n });\n }\n }", "function ndf_category_5_filter_settings_callback() {\n\techo '<p></p>';\n}", "public function register_shortcode_transformer() {\n\t $shortcode_transformer = new Toolset_Shortcode_Transformer();\n\t\t$shortcode_transformer->init_hooks();\n }", "public function filter($request, $response);", "public function test_has_filter_return_values() {\n $hook = rand_str();\n\n yourls_add_filter( $hook, 'some_function' );\n yourls_add_filter( $hook, 'some_other_function', 1337 );\n\n $this->assertTrue( yourls_has_filter( $hook ) );\n $this->assertSame( 10, yourls_has_filter( $hook, 'some_function' ) );\n $this->assertSame( 1337, yourls_has_filter( $hook, 'some_other_function' ) );\n $this->assertFalse( yourls_has_filter( $hook, 'nope_not_this_function' ) );\n }", "function _preview_theme_template_filter()\n {\n }", "public function addFilter($type, $value);", "public function getFunctions()\n\t{\n\t\treturn [\n\t\t\tnew \\Twig_SimpleFunction('sprintf', 'sprintf')\n\t\t];\n\t}", "public function registerUnParseHtml($function_name)\n\t{\n\t\t$this->listUnFilterHtmlFunction[] = $function_name;\n\t}" ]
[ "0.69695884", "0.6760678", "0.6554958", "0.62653446", "0.6249732", "0.62006086", "0.58895683", "0.58121794", "0.570733", "0.5635212", "0.56115025", "0.55993056", "0.55610776", "0.55592966", "0.54478925", "0.5439415", "0.54207575", "0.54160315", "0.5382728", "0.5358419", "0.53568137", "0.53444266", "0.5330028", "0.53129274", "0.53093535", "0.5269255", "0.5254243", "0.5205296", "0.51323795", "0.50968534", "0.5092159", "0.50834894", "0.5070252", "0.5044272", "0.50391185", "0.5036865", "0.5017821", "0.5016454", "0.50159174", "0.50140274", "0.5011726", "0.5007805", "0.4997342", "0.49958137", "0.49911445", "0.4984613", "0.4984613", "0.4984613", "0.49802738", "0.49798426", "0.49643955", "0.49603984", "0.4957801", "0.494926", "0.49280557", "0.49200186", "0.4916295", "0.4907604", "0.49069363", "0.4883425", "0.48747143", "0.48547295", "0.48351324", "0.48322806", "0.48130974", "0.47945988", "0.47640306", "0.47628468", "0.4760316", "0.47586033", "0.47310647", "0.472735", "0.47178647", "0.4714957", "0.4714233", "0.4712108", "0.47118983", "0.4710153", "0.47081506", "0.4706832", "0.4705243", "0.47031632", "0.4697414", "0.4695153", "0.4687899", "0.46872172", "0.46815413", "0.46725765", "0.46631217", "0.46610543", "0.46474996", "0.46430522", "0.4642464", "0.46410844", "0.46382153", "0.4632524", "0.4627508", "0.4625722", "0.46193364", "0.4618432" ]
0.82037807
0
Unregisters an outputfilter function
Отписывает функцию фильтра вывода
function UnregisterOutputfilter($function) { $this->_smarty->unregister_outputfilter($function); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function UnregisterPostfilter($function)\n {\n $this->_smarty->unregister_postfilter( $function );\n }", "public static function clearOutput(): void\n {\n rex_extension::register('OUTPUT_FILTER', static function (rex_extension_point $ep) {\n $ep->setSubject(false);\n });\n }", "function UnregisterPrefilter($function)\n {\n $this->_smarty->unregister_prefilter($function);\n }", "function RegisterOutputfilter($function)\n {\n $this->_smarty->register_outputfilter($function);\n }", "function output_filter($value, array $params = null) {\n return trigger_hook('output', 'filter', $params, $value);\n}", "function remove_filter($hook_name, $callback, $priority = 10)\n {\n }", "public function removeFilters();", "public function removeAllFilters();", "public function output_filter()\n\t{\n\t\tglobal $output;\n\t\t$this->output = &$output;\n\n\t\t$this->frontend = new Frontend();\n\t\t$this->module = $this->frontend->run();\n\n\t\tif (strstr($this->output, \"#fixemodule\")) {\n\t\t\t$this->output = $this->replace_placeholders($this->output);\n\t\t}\n\t}", "public function register_output_filter($callback_impl, $filter_name = '')\n {\n if (empty($filter_name)) {\n $filter_name = substr(abs(crc32(microtime(true))), 0, 8);\n }\n $this->_OUTPUT_FILTERS[$filter_name] = $callback_impl;\n }", "public function test_remove_filter_funcname() {\n $hook = rand_str();\n $function = rand_str();\n\n $this->assertFalse( yourls_has_filter( $hook ) );\n yourls_add_filter( $hook, $function );\n $this->assertTrue( yourls_has_filter( $hook ) );\n\n $removed = yourls_remove_filter( $hook, $function );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "public function filterNot(callable $hof);", "function acf_disable_filters()\n{\n}", "function reset_filters()\r\n{\r\n\t//uitzoeken of het in js of php gedaan word\t\r\n}", "public function unregister() {\n // Normally, there are definitely wrappers set for the ALL filter. However,\n // in some cases involving many container rebuilds (e.g. BrowserTestBase),\n // $this->wrappers may be empty although wrappers are still registered\n // globally. Thus an isset() check is needed before iterating.\n if (isset($this->wrappers[StreamWrapperInterface::ALL])) {\n foreach (array_keys($this->wrappers[StreamWrapperInterface::ALL]) as $scheme) {\n stream_wrapper_unregister($scheme);\n }\n }\n }", "function remove_filter ($filter,$remove) \n{\n unset($filter[$remove]);\n return $filter;\n}", "function clear_filters($filterName = null)\n{\n if ($pluginBroker = get_plugin_broker()) {\n $pluginBroker->clearFilters($filterName);\n }\n}", "function remove_all_filters($hook_name, $priority = \\false)\n {\n }", "public function remove()\n {\n foreach ($this->filters as $filter) {\n $filterWithoutAcceptedArguments = array_slice($filter, 0, 3);\n call_user_func_array($this->removeCallback, $filterWithoutAcceptedArguments);\n }\n }", "public function filter(callable $hof);", "public function removeFilter(string $name);", "public function removeFilter($key);", "function after_filter($action, $args) {\n }", "public function removeValuesFromOutputArray(){\n\t\ttry{\n\t\t\t$this->filteredOutput = array();\n\t\t} catch (Exception $e) {\n\t\t\terror_log($e->getMessage(),3,\"/var/tmp/error.log\");\n\t\t\terror_log(\"\\n\");\n\t\t}\n\t}", "public function unregisterOperator($operator) {}", "function filter($callback = null);", "public function removeFilter(string $name): void;", "public static function cleanOutputBuffers() {}", "public function deactivate()\n {\n if (self::$active === $this)\n {\n // Unregister output gatherers\n Output_HTMLTag::pop_parent();\n ob_end_clean();\n\n // Unregister auto renderer\n $GLOBALS['auto_render']->unregister_handler(array(self::$active, 'flush'));\n self::$active = null;\n }\n }", "function mgd_register_filter($name, $function)\n{\n $GLOBALS['midgard_filters'][\"x{$name}\"] = $function;\n}", "function doing_filter($hook_name = \\null)\n {\n }", "function remove_anonymous_object_filter( $tag, $class, $method ){\n\t$filters = isset($GLOBALS['wp_filter'][ $tag ])? $GLOBALS['wp_filter'][ $tag ] : false;\n\n\tif (empty($filters)){\n\t\treturn;\n\t}\n\n\tforeach ( $filters as $priority => $filter )\n\t{\n\t\tforeach ( $filter as $identifier => $function )\n\t\t{\n\t\t\tif ( is_array( $function)\n\t\t\t\tand is_a( $function['function'][0], $class )\n\t\t\t\tand $method === $function['function'][1]\n\t\t\t)\n\t\t\t{\n\t\t\t\tremove_filter(\n\t\t\t\t\t$tag,\n\t\t\t\t\tarray ( $function['function'][0], $method ),\n\t\t\t\t\t$priority\n\t\t\t\t);\n\t\t\t}\n\t\t}\n\t}\n}", "public function remove_filter($hook_name, $callback, $priority)\n {\n }", "abstract public function filter(callable $func);", "public function unregister(): void;", "public function unregister(): void;", "public function _apply_output_filters($text = '')\n {\n foreach ((array) $this->_OUTPUT_FILTERS as $cur_filter) {\n if (is_callable($cur_filter)) {\n $text = call_user_func($cur_filter, $text);\n }\n }\n return $text;\n }", "function RegisterPostfilter($function)\n {\n $this->_smarty->register_postfilter($function);\n }", "function did_filter($hook_name)\n {\n }", "function acf_disable_filter($name = '')\n{\n}", "public function unRegisterWriteCallback($type, $name) {}", "function dacig_deregister_filters( $status ) {\n\tremove_filter( 'pre_get_posts', 'dacig_allow_filters' );\n\tremove_filter( 'the_posts', 'dacig_modify_the_posts' );\n\n\treturn $status;\n}", "public function disableOutput()\n {\n $this->output = null;\n }", "public function filter(callable $c = null);", "public function afterFilter()\n\t{\n\n\t}", "protected function removeFilter($hook, $callback, $priority = 10)\n\t{\n\t\treturn remove_filter($hook,$callback,$priority);\n\t}", "public function destroy(Filter $filter)\n {\n //\n }", "public function remove(FilterInterface ...$filters);", "public function filter();", "public function unsetProvider();", "public function remove_filter($filter)\n {\n \t$filters = session('reports_filter_domain');\n \tif(array_key_exists($filter, $filters))\n {\n unset($filters[$filter]);\n session()->put('reports_filter_domain', $filters);\n }\n\n \treturn $filters;\n }", "public function registerUnParseHtml($function_name)\n\t{\n\t\t$this->listUnFilterHtmlFunction[] = $function_name;\n\t}", "public function filter(callable $callback);", "public function test_remove_filter_within_class_instance( $hook ) {\n $this->assertTrue( yourls_has_filter( $hook ) );\n $removed = yourls_remove_filter( $hook, array( self::$instance, 'change_variable' ) );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "public function filter(callable $callback = null);", "public function resetFilters() {\n $this->filters = array();\n }", "function unregister_plugin_hook($hook, $entity_type, $function) {\n\tglobal $CONFIG;\n\tforeach($CONFIG->hooks[$hook][$entity_type] as $key => $hook_function) {\n\t\tif ($hook_function == $function) {\n\t\t\tunset($CONFIG->hooks[$hook][$entity_type][$key]);\n\t\t}\n\t}\n}", "public function removeFilter($filter)\n {\n if (strpos($filter, 'iPhorm_Filter_') === false) {\n $filter = 'iPhorm_Filter_' . ucfirst($filter);\n }\n\n if (array_key_exists($filter, $this->_filters)) {\n unset($this->_filters[$filter]);\n }\n }", "function runkit_function_remove($funcname)\n{\n}", "function dacig_register_filters( $output ) {\n\tadd_filter( 'pre_get_posts', 'dacig_allow_filters' );\n\tadd_filter( 'the_posts', 'dacig_modify_the_posts' );\n\n\treturn $output;\n}", "function eventUnRegister($eventName, $id);", "public function register_filters() {\n\n\t\t}", "public function filter($function) {\n $this->_hash= array_filter($this->_hash, $function);\n }", "public function removeFilter($name)\n {\n unset($this->filters[$name]);\n }", "protected function remove_filter( $tag, $function_to_remove, $priority = 10 ) {\n\t\treturn \\remove_filter( $tag, [ $this, $function_to_remove ], $priority );\n\t}", "function outputFilter($data, stdClass $context) {\n for ($i = 0, $n = count($this->filters); $i < $n; $i++) {\n $data = $this->filters[$i]->outputFilter($data, $context);\n }\n return $data;\n }", "public function test_remove_filter_priority() {\n $hook = rand_str();\n $function = rand_str();\n // Random priority but not 10\n do {\n $priority = rand( 1,100 );\n } while ( $priority == 10 );\n\n $this->assertFalse( yourls_has_filter( $hook ) );\n yourls_add_filter( $hook, $function, $priority );\n $this->assertTrue( yourls_has_filter( $hook ) );\n\n $removed = yourls_remove_filter( $hook, $function );\n $this->assertFalse( $removed );\n\n $removed = yourls_remove_filter( $hook, $function, $priority );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "static public function unregister()\n {\n spl_autoload_unregister(array(self::getInstance(), 'autoload'));\n self::$registered = false;\n }", "static public function unregister()\n {\n spl_autoload_unregister(array(self::getInstance(), 'autoload'));\n self::$registered = false;\n }", "public function unRegisterPdfStringCallback($name) {}", "function ft_hook_destroy() {}", "public function test_remove_filter_within_class( $hook ) {\n $removed = yourls_remove_filter( $hook, 'Change_Variable::change_it' );\n $this->assertTrue( $removed );\n $this->assertFalse( yourls_has_filter( $hook ) );\n }", "function deactivation_func() {\r\n\r\n delete_option( 'wpc_run_activated_functions' );\r\n }", "public function off($event);", "public function filterResult($output, $request)\n {\n $output = parent::filterResult($output);\n\n $results = $output['results'];\n\n foreach ($results as $index => $result)\n {\n if(strtolower($result['artistName']) != strtolower($this->requestSearchParam($request))){\n unset($output['results'][$index]);\n $output['resultCount']--;\n }\n }\n\n return $output;\n }", "protected function resetNamespaceFilter() {\n\t\t$this->lookup->clearFilter( 'namespace_text' );\n\t}", "protected function disconnectOutput()\n {\n if(is_resource($this->output_handle)) {\n fclose($this->output_handle);\n }\n unset($this->output_handle);\n }", "static public function deregister_scripts() {\n wp_dequeue_script( 'filterable-portfolio' );\n wp_deregister_script( 'filterable-portfolio' );\n }", "public function filter($input);", "public function ethUninstallFilter(int $filter): Promise\n {\n $data = [EthType::appendPrefix(intToHex($filter))];\n return $this->callEndpoint('eth_uninstallFilter', 73, \\bool::class, $data);\n }", "public static function off($class=null, $function=null){\n if( is_null($class) && is_null($function) ){\n $o = self::debug_info();\n $class = $o->class;\n $function = $o->function;\n $function = ($function == '__construct')? '*' : $function;\n }else if( !is_null ($class) && is_null($function) ){\n $function = '*';\n }\n if( array_key_exists($class, self::$list) ){\n self::$list[$class] = array_diff(self::$list[$class], array($function));\n if( count(self::$list[$class]) == 0 ) {\n self::$list = array_diff_key(self::$list, array($class=>\"\"));\n }\n } \n }", "public function unregister()\n {\n $previousHandlers = $this->previousHandlers;\n\n foreach ($previousHandlers as $signal => $handler) {\n if (is_null($handler)) {\n pcntl_signal($signal, SIG_DFL);\n\n unset($previousHandlers[$signal]);\n }\n }\n\n $this->setHandlers($previousHandlers);\n }", "public function deinitWriter();", "public function _post_filter()\n {\n }", "function DRA_Disable_Via_Filters() {\n\n // Filters for WP-API version 1.x\n add_filter( 'json_enabled', '__return_false' );\n add_filter( 'json_jsonp_enabled', '__return_false' );\n\n // Filters for WP-API version 2.x\n add_filter( 'rest_enabled', '__return_false' );\n add_filter( 'rest_jsonp_enabled', '__return_false' );\n\n // Remove REST API info from head and headers\n remove_action( 'xmlrpc_rsd_apis', 'rest_output_rsd' );\n remove_action( 'wp_head', 'rest_output_link_wp_head', 10 );\n remove_action( 'template_redirect', 'rest_output_link_header', 11 );\n\n}", "public function getInputFilter();", "public function remove_hooks()\n {\n }", "public function remove_hooks()\n {\n }", "public function filterOutput($output)\n {\n return preg_replace('/\\[exit_code:(.*?)\\]/', '', $output);\n }", "public function reset() : void\n {\n\n // load the filters that has to be resetted\n $filters = $this->getFilters();\n\n // reset the filters\n foreach ($filters as $filter) {\n if ($filter instanceof PregMatchFilterInterface) {\n $filter->reset();\n }\n }\n }", "public function unsetFileAndFolderNameFilters() {}", "public function filtering();", "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}", "public function removeFilter( string $tag, string $function, int $priority = 10, $replacement = false ): self\n {\n\n $this->filters[] = [\n 'tag' => $tag,\n 'function' => $function,\n 'priority' => $priority,\n 'replacment' => $replacement,\n ];\n\n return $this;\n\n }", "public function __destruct() {\n\t\t$this->unregister();\n\t}", "public function removeIf(callable $callable);", "function RegisterPrefilter($function)\n {\n $this->_smarty->register_prefilter($function);\n }", "public function unbind( $actions = true, $filters = true ) {\n\t\t$types = array();\n\n\t\tif ( $actions ) {\n\t\t\t$types['actions'] = 'remove_action';\n\t\t}\n\n\t\tif ( $filters ) {\n\t\t\t$types['filters'] = 'remove_filter';\n\t\t}\n\n\t\tforeach ( $types as $hooks => $method ) {\n\t\t\tforeach ( $this->$hooks as $hook ) {\n\t\t\t\tcall_user_func_array( $method, $hook );\n\t\t\t}\n\t\t}\n\t}", "public function unregister()\n {\n spl_autoload_unregister(array($this, 'loadClassWithAlias'));\n }", "public abstract function filter(callable|UnaryFunction|FilterOperator $filter): Stream;" ]
[ "0.7259042", "0.7225813", "0.71747553", "0.69519657", "0.6561708", "0.6369017", "0.6265941", "0.60260963", "0.59152585", "0.5888677", "0.58497226", "0.57535046", "0.5722606", "0.56916356", "0.56542957", "0.5641386", "0.5640007", "0.5637433", "0.5625069", "0.5573695", "0.5521978", "0.5485828", "0.5469849", "0.54654896", "0.5448683", "0.5427135", "0.54164946", "0.53915584", "0.53863835", "0.5375077", "0.5372638", "0.53681093", "0.53666043", "0.53549236", "0.5335939", "0.5335939", "0.5314812", "0.52942514", "0.5289496", "0.5274897", "0.5255355", "0.52172303", "0.5211536", "0.52024454", "0.51989055", "0.5186652", "0.5137496", "0.51351804", "0.51253307", "0.5120727", "0.51077163", "0.50940514", "0.5081102", "0.5080584", "0.506933", "0.5063351", "0.5035393", "0.5034015", "0.5024066", "0.5020731", "0.500914", "0.50078195", "0.50063175", "0.50019705", "0.49958622", "0.49942356", "0.49684164", "0.49673015", "0.49673015", "0.49646926", "0.49609858", "0.4950174", "0.49222276", "0.4914564", "0.4913806", "0.49032953", "0.4900132", "0.48983818", "0.4894486", "0.4884472", "0.48829988", "0.4880328", "0.48698193", "0.48691177", "0.4861594", "0.48580557", "0.4857438", "0.4857438", "0.48493123", "0.48422503", "0.48415402", "0.48369378", "0.48264605", "0.48194805", "0.48189482", "0.48170874", "0.48166916", "0.48163813", "0.48126304", "0.48114717" ]
0.854554
0
load a filter of specified type and name
загрузить фильтр указанного типа и имени
function LoadFilter($type, $name) { $this->_smarty->load_filter($type, $name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function loadFilter($type, $name)\n {\n $this->sm->loadFilter($type, $name);\n }", "public function getFilter(string $name);", "public function filterLoad($asset) {}", "private function loadFilters()\n {\n require __DIR__.'/filters.php';\n }", "function xh_fetchFilter($filter_name)\r\n\t{\r\n\t}", "public function attachFilter($name = '', $filter) {\n $this->filters[$name] = new $filter;\n }", "public function load()\n\t{\n\t\t$this->options = apply_filters($this->filterName, get_option($this->filterName));\n\t}", "public function createFilter();", "public function addFilter($type, $value);", "function register($metatype, callable $filefilter) {\n\t\tstatic::$filefilters[$metatype] = $filefilter;\n\t}", "public function getFilter(string $name) : FilterInterface\n {\n return $this->getLoader()->getFilter($name);\n }", "abstract public function getFilterClass();", "public function setFilter(string $filter);", "public function __construct(\\Shield\\Filter $filter)\n {\n $this->filter = $filter;\n $this->load();\n }", "public function filterLoad(AssetInterface $asset)\n {\n\n }", "function applyFilterOnResource( &$resource, $filter_name='', $options=array())\n {\n if (Image_Filter::loadFilter($filter_name)){\n $class = 'Image_Filter_'.$filter_name;\n call_user_func(array($class,'applyFilterOnResource'), $resource, $options);\n }\n }", "public function filterByName($filter) {\n if (strlen($filter) > 0) {\n $this->calcData = array_filter($this->calcData, function($item) use ($filter) {\n if (strpos($item['name'], $filter) !== false) {\n return $item;\n }\n });\n }\n }", "public function setFilter($filter){ }", "public static function get($className) {\n $cache = FilterCache::getInstance();\n \n if(is_null($filter = $cache->get($className))) {\n $filter = FilterFactory::factory($className);\n $cache->add($filter);\n }\n \n return $filter;\n }", "public function loadFilteredPolicy(Model $model, $filter) : void;", "public function getFilter();", "public function getFilter();", "protected function addDefinedFilter($name, $type, $attributeIdentifier=null)\n {\n if (is_array($type)) {\n if (isset($type['type'])) {\n $attributeIdentifier = Arr::get($type, 'attribute');\n $type = Arr::get($type, 'type');\n } else{\n if (isset($type[1])) {\n $attributeIdentifier = $type[1];\n }\n $type = $type[0];\n }\n }\n if (!$attributeIdentifier) {\n $attributeIdentifier = $name;\n }\n if (!is_object($type)) {\n $operator = '=';\n $pre = array();\n $post = array();\n if (preg_match(\"|^([^:]+)((:([^:]+))+)?$|\", $attributeIdentifier, $matches)) {\n if (isset($matches[2])) {\n $ops = explode(\":\", substr($matches[2], 1));\n $attributeIdentifier = $matches[1];\n $inPre = true;\n foreach ($ops as $modifier) {\n if (in_array($modifier, \\Aplia\\Content\\Filter\\NestedFilter::$ops)) {\n $operator = $modifier;\n $inPre = false;\n } else if ($inPre) {\n $pre[] = $modifier;\n } else {\n $post[] = $modifier;\n }\n }\n if (!strlen($operator)) {\n $operator = '=';\n }\n }\n }\n\n if (preg_match(\"/^(.+):(.+)$/\", $attributeIdentifier, $matches)) {\n $attributeIdentifier = $matches[1];\n $operator = $matches[2];\n }\n $filterParams = array(\n 'contentAttribute' => $attributeIdentifier,\n 'operator' => $operator\n );\n if ($pre) {\n $filterParams['fieldModifiers'] = $pre;\n }\n if ($post) {\n $filterParams['valueModifiers'] = $post;\n }\n if ($type == 'int') {\n $filter = new IntegerFieldFilter($filterParams);\n } elseif ($type == 'bool') {\n $filter = new BoolFieldFilter($filterParams);\n } elseif ($type == 'string') {\n $filter = new StringFieldFilter($filterParams);\n } else {\n throw new FilterTypeError(\"Unsupported filter type: $type\");\n }\n } else {\n $filter = $type;\n }\n $this->filterTypes[$name] = $filter;\n $this->_nested = null;\n }", "public function load($name);", "function applyFilter( &$resource, $filter_name='', $options=array())\n {\n if (Image_Filter::loadFilter($filter_name)){\n $class = 'Image_Filter_'.$filter_name;\n call_user_func(array($class,'applyFilter'), $resource, $options);\n return true;\n }\n return false;\n }", "protected function _loadFilter($filter, $options = null)\n {\n $instance = null;\n\n if (!empty($filter)) {\n $className = 'iPhorm_Filter_' . ucfirst($filter);\n if (class_exists($className)) {\n $instance = new $className($options);\n }\n }\n\n if ($instance == null) {\n throw new Exception(\"Filter '$filter' does not exist\");\n }\n\n return $instance;\n }", "public function addFilter(FilterInterface $filter) : void\n {\n $this->getLoader()->addFilter($filter);\n }", "abstract public function getFilterName();", "function add_filters()\n {\n }", "public function register_filters() {\n\n\t\t}", "public function filterLoad(AssetInterface $asset)\n {\n // Implement filterLoad() method.\n }", "public function filter($filter)\n {\n }", "public function getData($type, array $filters = []);", "function filter_load() {\r\n\t\tadd_action( current_filter(), array( $this, 'setup_vars' ), 20 );\r\n\t\tadd_action( 'restrict_manage_posts', array( $this, 'get_select' ) );\r\n\t\tadd_filter( \"manage_taxonomies_for_{$this->post_type}_columns\", array( $this, 'add_columns' ) );\r\n\t}", "public function filter(/* variable arguments */) {\n $args = func_get_args();\n $filterName = array_shift($args);\n $this->filters[$filterName] = $args;\n return $this;\n }", "public function registerFilter($type, $callback, $name=null)\n {\n $this->sm->registerFilter($type, $callback, $name);\n }", "public function defineFilter($name, $type, $attributeIdentifier=null)\n {\n $clone = $this->makeClone(true);\n $clone->addDefinedFilter($name, $type, $attributeIdentifier);\n return $clone;\n }", "private function call_filters($type)\n\t{\n\t\t$loaded_route = $this->router->get_active_route();\n\t\t$filter_list = Route::get_filters($loaded_route, $type);\n\n\t\tforeach ($filter_list as $filter_data)\n\t\t{\n\t\t\t$param_list = $this->__filter_params;\n\n\t\t\t$callback = $filter_data['filter'];\n\t\t\t$params = $filter_data['parameters'];\n\n\t\t\t// check if callback has parameters\n\t\t\tif ( ! is_null($params))\n\t\t\t{\n\t\t\t\t// separate the multiple parameters in case there are defined\n\t\t\t\t$params = explode(':', $params);\n\n\t\t\t\t// search for uris defined as parameters, they will be marked as {(.*)}\n\t\t\t\tforeach ($params as &$p)\n\t\t\t\t{\n\t\t\t\t\tif (preg_match('/\\{(.*)\\}/', $p, $match_p))\n\t\t\t\t\t{\n\t\t\t\t\t\t$p = $this->uri->segment($match_p[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t$param_list = array_merge($param_list, $params);\n\t\t\t}\n\n\t\t\tif (class_exists('Closure') and method_exists('Closure', 'bind'))\n\t\t\t{\n\t\t\t\t$callback = Closure::bind($callback, $this);\n\t\t\t}\n\n\t\t\tcall_user_func_array($callback, $param_list);\n\t\t}\n\n\t\tlog_message('debug', \"\\\"{$type}\\\" Filter Called\");\n\t}", "private static function _getFilter() {}", "function mFILTER(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$FILTER;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:211:3: ( 'filter' ) \n // Tokenizer11.g:212:3: 'filter' \n {\n $this->matchString(\"filter\"); \n\n\n }\n\n $this->state->type = $_type;\n $this->state->channel = $_channel;\n }\n catch(Exception $e){\n throw $e;\n }\n }", "private function loadTypes() {\n \n if(!empty($this->types)) return;\n \n $this->types = $this->doctrine\n ->getManager()\n ->getRepository('FenchyNoticeBundle:Type')\n ->getFilterTypes();\n }", "function filter( $value, $type )\n {\n return Pgg_Filter::get( $value, $type );\n }", "public function filter ( $name ) {\n\t\t$this->opts['filter'] = $name;\n\t\treturn $this;\n\t}", "function filter(){\r\n\r\n return new BFilter();\r\n\r\n}", "protected static function loadFiltersData()\n {\n self::$filtersData = (array) $GLOBALS['TSFE']->fe_user->getKey('ses', 'filters');\n }", "function mgd_register_filter($name, $function)\n{\n $GLOBALS['midgard_filters'][\"x{$name}\"] = $function;\n}", "function init_filter($id, $init_data = true) {\n global $CFG;\n if (!isset($this->filter) && $filters = $this->get_filters($init_data)) {\n $dynamic_report_filter_url = $CFG->wwwroot . '/blocks/php_report/dynamicreport.php?id=' . $id;\n $this->filter = new php_report_default_capable_filtering($filters, $dynamic_report_filter_url, null, $id, $this->get_report_shortname());\n }\n }", "protected function setFilter($name, $value)\n {\n if (isset($this->filterTypes[$name])) {\n $this->filters[$name] = $value;\n $this->_nested = null;\n return;\n }\n $key = $name;\n $elements = explode(\":\", $name, 2);\n $operator = null;\n if (count($elements) > 1) {\n list($name, $operator) = $elements;\n } else {\n $name = $elements[0];\n }\n if ($name == 'visible' || $name == 'visibility') {\n $this->useVisibility = false;\n if ($name == 'visible') {\n $this->objectFilters[] = array('visibility', $value);\n } else {\n $this->objectFilters[] = array($key, $value);\n }\n } elseif ($name == 'path' || $name == 'section' || $name == 'state' || $name == 'depth' || $name == 'class_identifier' || $name == 'class_name' || $name == 'priority' || $name == 'name') {\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'published' || $name == 'modified' || $name == 'modified_subnode') {\n if ($value instanceof \\DateTime) {\n $value = $value->getTimestamp();\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'node_id') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentObjectTreeNode) {\n $value = $value->attribute('node_id');\n } elseif ($value instanceof \\eZContentObject) {\n $value = $value->attribute('main_node_id');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'contentobject_id') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentObjectTreeNode) {\n $value = $value->attribute('contentobject_id');\n } elseif ($value instanceof \\eZContentObject) {\n $value = $value->attribute('id');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'path_element') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentObjectTreeNode) {\n $value = $value->attribute('contentobject_id');\n } elseif ($value instanceof \\eZContentObject) {\n $value = $value->attribute('id');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'class_identifier') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentClass) {\n $value = $value->attribute('identifier');\n } elseif ($value instanceof \\eZContentObjectTreeNode || $value instanceof \\eZContentObject) {\n $value = $value->attribute('class_identifier');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } elseif ($name == 'class_name') {\n if (is_object($value)) {\n if ($value instanceof \\eZContentClass) {\n $value = $value->attribute('name');\n } elseif ($value instanceof \\eZContentObjectTreeNode || $value instanceof \\eZContentObject) {\n $value = $value->attribute('class_name');\n }\n }\n $this->objectFilters[] = array($key, $value);\n } else {\n // Detect class/attribute strings and use them as filters\n // If not they are placed as object filters\n if (strpos($name, \"/\") !== false) {\n $this->objectFilters[] = array($key, $value);\n } else {\n $this->filters[$name] = $value;\n }\n }\n $this->_nested = null;\n }", "abstract protected function getFilters();", "public function add($name, $filter, array $options = []);", "public function show(Filter $filter)\n {\n //\n }", "public function setFilterType($filter_type){\n $this->filter_type = $filter_type;\n return $this;\n }", "public function setFilter(bool $filter): AssetInterface\n {\n }", "abstract public function prepareFilters();", "public function loadFilteredPolicy($filter) : void\n {\n $this->model->clearPolicy();\n\n if (!$this->adapter instanceof AdapterFiltered)\n {\n throw new GodException('filtered policies are not supported by this adapter');\n }\n\n /** @var AdapterFiltered $adapterFiltered */\n $adapterFiltered = $this->adapter;\n\n $adapterFiltered->loadFilteredPolicy($this->model, $filter);\n\n $this->model->PrintPolicy();\n\n if ($this->autoBuildRoleLinks)\n {\n $this->buildRoleLinks();\n }\n }", "public function getFilter(){ }", "public function loadFilteredPolicy(Model $model, $filter): void\n {\n $entity = $this->table->find();\n \n if (is_string($filter)) {\n $entity = $entity->epilog('WHERE ' . $filter);\n } elseif ($filter instanceof Filter) {\n foreach ($filter->p as $k => $v) {\n $where[$v] = $filter->g[$k];\n $entity = $entity->where([$v => $filter->g[$k]]);\n }\n } elseif ($filter instanceof \\Closure) {\n $entity = $entity->where($filter);\n } else {\n throw new InvalidFilterTypeException('invalid filter type');\n }\n $rows = $entity->all();\n \n foreach ($rows as $row) {\n unset($row->id);\n $row = $row->toArray();\n $row = array_filter($row, function ($value) {\n return !is_null($value) && $value !== '';\n });\n $line = implode(', ', array_filter($row, function ($val) {\n return '' != $val && !is_null($val);\n }));\n $this->loadPolicyLine(trim($line), $model);\n }\n $this->setFiltered(true);\n }", "function filterType($tbl, $tbl2, $tbl3, $col, $col2, $col3, $filter) {\n\t\tinclude('connect.php');\n\t\t$queryFilter = \"SELECT * FROM {$tbl} m, {$tbl2} g, {$tbl3} mg WHERE m.{$col} = mg.{$col} AND g.{$col2} = mg.{$col2} AND g.{$col3} = '{$filter}'\";\n\t\t$runFilter = mysqli_query($link, $queryFilter);\n\t\tif($runFilter){\n\t\t\treturn $runFilter;\n\t\t}else{\n\t\t\t$error = \"There was an error accessing this Information. Please contact your admin.\";\n\t\t\treturn $error;\n\t\t}\n\t\tmysqli_close($link);\n\t}", "function apply_filters( $name ) {\n\n\t\t$args = func_get_args();\n\t\tarray_unshift( $args, 'filter' );\n\n\t\treturn call_user_func_array( array( $this, 'api'), $args );\n\t}", "public function get($name)\n {\n return $this->filters[$name];\n }", "public function GetFilters ();", "protected function defineAdvancedFilter($type = 'primary')\n {\n // Define rank based on call parameter\n $rank = 1;\n $checkField = 'tx_displaycontroller_emptyfilter';\n if ($type === 'secondary') {\n $rank = 2;\n $checkField = 'tx_displaycontroller_emptyfilter2';\n }\n // Get the data filter\n try {\n // Get the filter's information\n $filterData = $this->getComponentData('filter', $rank);\n // Get the corresponding Data Filter component\n /** @var $datafilter \\Tesseract\\Tesseract\\Component\\DataFilterInterface */\n $datafilter = Tesseract::getComponent(\n 'datafilter',\n $filterData['tablenames'],\n array('table' => $filterData['tablenames'], 'uid' => $filterData['uid_foreign']),\n $this\n );\n // Initialise the filter\n $filter = $this->initFilter($filterData['uid_foreign']);\n // Pass the cached filter to the DataFilter\n $datafilter->setFilter($filter);\n try {\n $filter = $datafilter->getFilterStructure();\n // Store the filter in session\n $cacheKey = $this->prefixId . '_filterCache_' . $filterData['uid_foreign'] . '_' . $this->cObj->data['uid'] . '_' . $GLOBALS['TSFE']->id;\n $GLOBALS['TSFE']->fe_user->setKey('ses', $cacheKey, $filter);\n // Here handle case where the \"filters\" part of the filter is empty\n // If the display nothing flag has been set, we must somehow stop the process\n // The Data Provider should not even be called at all\n // and the Data Consumer should receive an empty (special?) structure\n if ($datafilter->isFilterEmpty() && empty($this->cObj->data[$checkField])) {\n $this->passStructure = false;\n }\n } catch (\\Exception $e) {\n $this->addMessage(\n $this->extKey,\n $e->getMessage() . ' (' . $e->getCode() . ')',\n $this->pi_getLL('error.get_filter'),\n FlashMessage::WARNING\n );\n }\n } catch (\\Exception $e) {\n throw new MissingComponentException($this->pi_getLL('exception.no_filter'), 1326454151);\n }\n return $filter;\n }", "public function addFilter($_image, $filter, $param1, $param2, $param3)\n {\n \n //se o filtro estiver no array de filtros simples\n if(array_key_exists($filter,self::$_simpleFilters))\n {\n imagefilter($_image, self::$_simpleFilters[$filter]);\n return $_image;\n }\n //verifico se o filtro e do array de customizados\n elseif(in_array($filter,self::$_customFilters))\n {\n //verifico que tipo de filtro e esse\n switch ($filter)\n {\n case \"sharpen\":\n require_once \"Custom/Sharpen.php\"; //Efeito Sharpen\n //arumando as propriedades para que nao ocorra nehum tipo de erro durante a execucao\n $param1 = (($param1 > 200 || $param1 < 50)?50:$param1);\n $param2 = (($param2 > 1 || $param2 < 0.5)?0.5:$param2);\n $param3 = (($param3 > 5 || $param3 < 0)?0:$param3);\n\n //instanciando a classe do Sharpen\n $sharpen = new Sharpen;\n $_image = $sharpen->addSharpen($_image, $param1, $param2, $param3);\n return $_image;\n break;\n\n case \"noise\":\n require_once \"Custom/Noise.php\"; //Efeito Noise\n //instanciando a classe de noise\n $noise = new Noise;\n $_image = $noise->addNoise($_image);\n return $_image;\n break;\n\n case \"scatter\":\n require_once \"Custom/Scatter.php\"; //Efeito Scatter\n //instanciando a classe de scatter\n $scatter = new Scatter;\n $_image = $scatter->addScatter($_image);\n return $_image;\n break;\n\n case \"pixelate\":\n require_once \"Custom/Pixelate.php\"; //Efeito Pixelate\n //instanciando a classe de pixelate\n $pixelate = new Pixelate;\n $_image = $pixelate->addPixelate($_image);\n return $_image;\n break;\n\n case \"interlace\":\n require_once \"Custom/Interlace.php\"; //Efeito Interlace\n //instanciando a classe de interlace\n $interlace = new Interlace;\n $_image = $interlace->addInterlace($_image);\n return $_image;\n break;\n\n case \"screen\":\n require_once \"Custom/Screen.php\"; //Efeito Screen\n //instanciando a classe de Screen\n $screen = new Screen;\n $_image = $screen->addScreen($_image);\n return $_image;\n break;\n }\n }\n //se o filtro estiver no array de filtros simples\n elseif(array_key_exists($filter,self::$_advancedFilters))\n {\n //verifico se o filtro recebe mais de um parametro\n if($filter == 'colorize')\n {\n imagefilter($_image, self::$_advancedFilters[$filter], $param1, $param2, $param3);\n return $_image;\n }\n\n //caso contrario\n else\n {\n imagefilter($_image, self::$_advancedFilters[$filter], $param1);\n return $_image;\n }\n }\n //se nao existir entao sera lancada uma excessao\n else\n {\n throw new Exception(\"Filtro inexistente - Absent filter\");\n return false;\n }\n }", "public static function create($controller,$filterName)\n\t{\n\t\tif(method_exists($controller,'filter'.$filterName))\n\t\t{\n\t\t\t$filter=new CInlineFilter;\n\t\t\t$filter->name=$filterName;\n\t\t\treturn $filter;\n\t\t}\n\t\telse\n\t\t\tthrow new CException(Yii::t('yii','Filter \"{filter}\" is invalid. Controller \"{class}\" does not have the filter method \"filter{filter}\".',\n\t\t\t\tarray('{filter}'=>$filterName, '{class}'=>get_class($controller))));\n\t}", "public function loadFilteredPolicy(Model $model, $filter) : void\n {\n if (!$this->filterValidate($filter))\n {\n $this->loadPolicy($model);\n return;\n }\n\n try\n {\n $this->loadFilteredPolicyDB($model, $filter);\n\n $this->filtered = true;\n }\n catch (\\Exception $e)\n {\n throw new GodException($e->getMessage());\n }\n }", "public function addFilter(callable $filter);", "public function registerFilter(Chainr_Filter $filter) {\n\t\t$this->filterChain->register($filter);\n\t}", "function fn_filter_uploaded_data($name, $filter_by_ext = array())\n{\n $udata_local = fn_rebuild_files('file_' . $name);\n $udata_other = !empty($_REQUEST['file_' . $name]) ? $_REQUEST['file_' . $name] : array();\n $utype = !empty($_REQUEST['type_' . $name]) ? $_REQUEST['type_' . $name] : array();\n\n if (empty($utype)) {\n return array();\n }\n\n $filtered = array();\n\n foreach ($utype as $id => $type) {\n if ($type == 'local' && !fn_is_empty(@$udata_local[$id])) {\n $filtered[$id] = fn_get_local_data(Bootstrap::stripSlashes($udata_local[$id]));\n\n } elseif ($type == 'server' && !fn_is_empty(@$udata_other[$id]) && (Registry::get('runtime.skip_area_checking') || AREA == 'A')) {\n fn_get_last_key($udata_other[$id], 'fn_get_server_data', true);\n $filtered[$id] = $udata_other[$id];\n\n } elseif ($type == 'url' && !fn_is_empty(@$udata_other[$id])) {\n fn_get_last_key($udata_other[$id], 'fn_get_url_data', true);\n $filtered[$id] = $udata_other[$id];\n } elseif ($type == 'uploaded' && !fn_is_empty(@$udata_other[$id])) {\n fn_get_last_key($udata_other[$id], function ($file_path) {\n return fn_get_server_data($file_path, array(Storage::instance('custom_files')->getAbsolutePath('')));\n }, true);\n\n $filtered[$id] = $udata_other[$id];\n }\n\n if (isset($filtered[$id]) && $filtered[$id] === false) {\n unset($filtered[$id]);\n fn_set_notification('E', __('error'), __('cant_upload_file', ['[product]' => PRODUCT_NAME]));\n continue;\n }\n\n if (!empty($filtered[$id]['name'])) {\n $filtered[$id]['name'] = \\Tygh\\Tools\\SecurityHelper::sanitizeFileName(urldecode($filtered[$id]['name']));\n \n if (!fn_check_uploaded_data($filtered[$id], $filter_by_ext)) {\n unset($filtered[$id]);\n }\n }\n }\n\n static $shutdown_inited;\n\n if (!$shutdown_inited) {\n $shutdown_inited = true;\n register_shutdown_function('fn_remove_temp_data');\n }\n\n /**\n * Executed after filtering uploaded files.\n * It allows to change or extend the filtered files.\n *\n * @param string $name name of uploaded data\n * @param array $filter_by_ext allow file extensions\n * @param array $filtered filtered file data\n * @param array $udata_local List of uploaded files\n * @param array $udata_other List of files object types\n * @param array $utype List of files sources\n */\n fn_set_hook('filter_uploaded_data_post', $name, $filter_by_ext, $filtered, $udata_local, $udata_other, $utype);\n\n return $filtered;\n}", "public function addFilter($filterName, Filters\\IFilter $filter)\n\t{\n\t\t$this->filterStore[$filterName] = $filter;\n\t}", "function &driver($filter, $options = array())\n {\n $obj =& FactoryPattern::factory('Image_Filter', $filter, dirname(__FILE__), array($options));\n return $obj;\n }", "public function setFilterByType($type)\n {\n $this->filterByType = $type;\n\n return $this;\n }", "public function addFilters()\n {\n }", "protected static function filtes()\n {\n /*\n * The filters fetches are transported\n * to router Bus calls\n **/\n }", "abstract public function filters();", "protected function registerFilterChain()\n\t{\n\t\t//filters\n\t\t$this->filters['deserial'] = 'deserializationFilter';\n\t\t$this->filters['batch'] = 'batchProcessFilter';\n\t\t$this->filters['serialize'] = 'serializationFilter';\n\t}", "public function getInputFilter(){\n\t\t/*\n\t\t * validate data:\n\t\t * -id\n\t\t * -svg1\n\t\t * -image1\n\t\t * -svg2\n\t\t * -image2\n\t\t * -svg3\n\t\t * -image3\n\t\t **/\n\n\t\tif(!$this->inputFilter){\n\t\t\t$inputFilter = new InputFilter();\n\n\t\t\t//id\n $inputFilter->add(array(\n 'name' => 'id',\n 'required' => true,\n 'filters' => array(\n array('name' => 'Int'),\n ),\n ));\n\n\n\t\t}\n\t}", "private function filters() {\n\n\n\t}", "public function filter($id, $filter) {\n // tags whose name begins with $filter.\n $this->index($id, $filter);\n }", "function acf_enable_filter($name = '')\n{\n}", "function get_filters($init_data = true) {\n //no filters by default\n return array();\n }", "protected function load_type($type)\n\t{\n\t\t$type_id = $this->types->type_from_url($type);\n\t\treturn $this->get_type_from_id($type_id);\n\t}", "function getFilterFileName($filter_name)\n {\n return dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Filter'\n . DIRECTORY_SEPARATOR . $filter_name . '.php';\n }", "public function getFilter($filter)\n {\n $instance = null;\n\n if (strpos($filter, 'iPhorm_Filter_') === false) {\n $filter = 'iPhorm_Filter_' . ucfirst($filter);\n }\n\n $filters = $this->getFilters();\n if (array_key_exists($filter, $filters)) {\n $instance = $filters[$filter];\n }\n\n return $instance;\n }", "public function setFilter($filter_type)\n {\n $this->filter_type = $filter_type;\n return $this;\n }", "public function getFilter(): string;", "private function loadFilteredPolicyDB(Model $model, array $filter) : void\n {\n $this->loadPolicyDB($model, $filter);\n }", "public function setFilterType($types) {\n $this->_filterType = $types;\n }", "abstract protected function getFilterClassName($string);", "public function getFilter($name)\n {\n if (!$this->extensionInitialized) {\n $this->initExtensions();\n }\n if (isset($this->filters[$name])) {\n return $this->filters[$name];\n }\n foreach ($this->filters as $pattern => $filter) {\n $pattern = str_replace('\\\\*', '(.*?)', preg_quote($pattern, '#'), $count);\n if ($count) {\n if (preg_match('#^'.$pattern.'$#', $name, $matches)) {\n array_shift($matches);\n $filter->setArguments($matches);\n return $filter;\n }\n }\n }\n foreach ($this->filterCallbacks as $callback) {\n if (false !== $filter = call_user_func($callback, $name)) {\n return $filter;\n }\n }\n return false;\n }", "public function filtersExist();", "function applyFilter($filter)\n {\n if (count($this->error) == 0)\n {\n // split up filter name and filter configuration\n $filterInfos = explode('-',$filter);\n eval(\"\\$temp = new \".$filterInfos[0].\" (\\$this->imgSrc,\\$filterInfos);\");\n if ($temp->dest !== false)\n {\n // filter was applied\n // $filterUsed[] = $filterItem['value'];\n $this->imgSrc = $temp->dest;\n return true;\n }\n else\n {\n // filter was not applied, save filter errors\n foreach($temp->error as $error)\n {\n $this->error[] = $filterInfos[0].': '.$error;\n }\n return false;\n }\n }\n }", "public static function load($in_type_name)\n\t{\n\t\t$parts = explode('/', str_replace('.', '', substr($in_type_name, 0, 1024)));\n\t\tif (count($parts) != 2)\n\t\t\tCinsImpError::malformed('Plugin type-name must be of form: <type>/<name>');\n\t\t$type = $parts[0].'s';\n\t\t$name = $parts[1];\n\t\tunset($parts);\n\t\t\n\t\t/* load the main plugin definition file */\n\t\tglobal $config;\n\t\t$plugin_base = $config->base.'plugins/'.$type.'/'.$name.'/';\n\t\t$plugin_file_path = $plugin_base.$name.'.js';\n\t\tif (!file_exists($plugin_file_path))\n\t\t\tCinsImpError::missing('Plugin', $plugin_file_path);\n\t\t$plugin_file = file_get_contents($plugin_file_path);\n\t\t\n\t\t/* output the file to the requestor */\n\t\tUtil::response_is_ajax_only();\n\t\tprint $plugin_file;\n\t}", "public function removeFilter(string $name);", "public function setFilter($arrFilter);", "public function addFilter($filter) {\n $this->filters[] = $filter;\n $this->rewind();\n }", "private function loadFiltersFromQuery(): void\n {\n $request = RequestUtil::getMainRequest($this->requestStack) ?? Request::createFromGlobals();\n $requestFilters = $request->query->all('filter');\n\n if (is_array($requestFilters)) {\n foreach ($requestFilters as $name => $limitations) {\n foreach ($limitations as $comparison => $value) {\n $filterField = new FilterField();\n $filterField->setName($name)\n ->setValue($value)\n ->setComparison($comparison)\n ->setFilter($this->getFilterByName($name));\n\n $this->filterFields[] = $filterField;\n }\n }\n }\n }", "public function addFilter(DFilter $filter) {\n\t\t$this->filters[] = $filter;\n\t}", "function getName($filter=null)\n {\n return _transform('SQLite',$filter);\n }", "function rs_duotonefilters_init(){\n\n\tnew RsDuotoneFiltersBase();\n\t\n}", "public function testInitFilter() {\n\n\t\t$filter = new SlashFilter;\n\n\t\t$this->assertInstanceOf('HybridLogic\\Slack\\SlashFilter', $filter);\n\n\t}" ]
[ "0.82831115", "0.66329855", "0.65270823", "0.64686245", "0.63967836", "0.6263931", "0.6214276", "0.61723316", "0.60469997", "0.59775513", "0.5914508", "0.5875603", "0.58725786", "0.58587146", "0.58570546", "0.5819037", "0.58065164", "0.5792788", "0.5751806", "0.5688672", "0.5672608", "0.5672608", "0.5664803", "0.56432796", "0.56332344", "0.56039834", "0.5593177", "0.5578817", "0.5534364", "0.5518264", "0.55163455", "0.5485928", "0.54707515", "0.54646057", "0.54584306", "0.5446785", "0.54126114", "0.540458", "0.53931165", "0.5392498", "0.53901374", "0.53884465", "0.53797925", "0.537243", "0.53659767", "0.5351559", "0.5348193", "0.53415436", "0.5340511", "0.53317964", "0.5330788", "0.5324755", "0.5318433", "0.5318298", "0.5301792", "0.529181", "0.5268674", "0.52302915", "0.521175", "0.5195268", "0.51945555", "0.519273", "0.51890033", "0.5187073", "0.5187", "0.5186924", "0.5183486", "0.51774275", "0.51620734", "0.51607835", "0.515995", "0.5158227", "0.51368725", "0.513522", "0.5126312", "0.5125738", "0.51240814", "0.510418", "0.51018035", "0.5099964", "0.50994015", "0.5098025", "0.5091605", "0.50838", "0.5081116", "0.5073045", "0.5071725", "0.5059743", "0.5048403", "0.50477695", "0.502527", "0.5016904", "0.501407", "0.50044966", "0.4997393", "0.49963284", "0.49954748", "0.49865544", "0.49860027", "0.4980392" ]
0.80405194
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
Test Tests the actionIndex method error resonse.
Тестирование метода actionIndex ошибочного ответа.
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
Test snake function with dash delimiter.
Тест функции snake с разделителем дефис.
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.
Тест функции snake с разделителем подчеркивания.
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
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 />&nbsp;<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\">&times;</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\" >&nbsp;</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=\"\">&nbsp;&nbsp;&nbsp;&nbsp;</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.\" >&nbsp;&nbsp;</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 . '&nbsp; <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
Возвращает массив с деталями лога, которые могут быть частью сообщения о бою. Включает id, name, buff, desc и 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;\">&nbsp;</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
Get the cas general.
Получить общий cas.
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.
Получить категорию 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.
Получите код 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 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.
Получить последний 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.
Получите распределение 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.
Получить адрес 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.
Получить адрес 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.
Получить адрес 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.
Получить 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.
Получить 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 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.
Получить mt cg евро или франк.
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.
Получить mt cp евро ou франк.
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.
Получить 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.
Получить 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.
Получите часть nb h cas.
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.
Получить nb h общий.
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 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.
Получите не 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 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.
Получить период 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.
Получить период 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.
Получить подр. 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.
Получите подр. периода 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.
Получить мотив повторного воспроизведения 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.
Получить 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.
Получить подпись 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&amp;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.
Получить подпись 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&amp;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
Get the suspension motif.
Получить мотив подвески.
public function getSuspensionMotif() { return $this->suspensionMotif; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setSuspensionMotif($suspensionMotif) {\n $this->suspensionMotif = $suspensionMotif;\n return $this;\n }", "public function getMotif()\n {\n return $this->motif;\n }", "private function getPlayback() {\n\t\treturn $this->socketSend('playback');\n\t}", "public function getStatusSuspend()\n {\n return $this->status_suspend;\n }", "public function getSuspended()\n {\n return $this->suspended;\n }", "public function getSuspended()\n {\n return $this->suspended;\n }", "public function getPause()\n {\n return $this->get(self::PAUSE);\n }", "public function getMotifRupture() {\n return $this->motifRupture;\n }", "public function getRepriseMotifMed() {\n return $this->repriseMotifMed;\n }", "public function isSuspend() {\n return $this->isSuspended;\n }", "public function getSuspensionDate() {\n return $this->suspensionDate;\n }", "public function getProcNotif(){\n return $this->_data['proc_notif'];\n }", "public function getPromImg()\n {\n return $this->prom_img;\n }", "public function getSleep()\n {\n return $this->sleep;\n }", "public function getSleep()\n {\n return $this->sleep;\n }", "public function getPresentation();", "public function getMedida() {\n return $this->iMedida;\n }", "public function getSuspendPeriodUntil(): ?DateTime {\n return $this->suspendPeriodUntil;\n }", "public function getIdPromocion()\n {\n return $this->id_promocion;\n }", "public function suspended()\n\t{\n\t\t$this->load->model('Common/Data_seed_m');\n\t\t$data = $this->Data_seed_m->suspended();\n\t\treturn $data;\n\t}", "public static function get()\n {\n return Present_student_notif::with(\"time\")->where(\"status\", config('globalVariable.starting'))->get();\n }", "public function getMotivation() {\n return $this->motivation;\n }", "public function getEstadoMuteadoProyector() {\n if ($this->proyector_central->is_mute()) {\n return \"MUTE\";\n } else {\n return \"NO_MUTE\";\n }\n\n }", "public function getFreeToPlay()\n {\n return $this->get('freeToPlay', false);\n }", "public function getDismiss()\n {\n return $this->get(self::_DISMISS);\n }", "public function isSuspended()\n {\n return $this->suspended;\n }", "function suspendCurrent()\n {\n $this->currentTcb->markAsSuspended();\n return $this->currentTcb;\n }", "public function getSuspendPeriodFrom(): ?DateTime {\n return $this->suspendPeriodFrom;\n }", "public function get_current_interstitial() {\n\t\treturn $this->data['current'];\n\t}", "public function getSpe()\n {\n return $this->spe;\n }", "public function silent()\n {\n return $this->disableNotification();\n }", "function getPromote()\n\t{\n\t\treturn $this->doPromote;\n\t}", "public function getPromoted()\n {\n return $this->promoted;\n }", "public function HienThiDmsp(){\n\n\t\treturn $this -> db -> get('b_dmsp');\n\t}", "public function getUrlSuspend()\n {\n return isset($this->transaction['urlSuspend']) ? $this->transaction['urlSuspend'] : '';\n }", "public function getSwtCallOff()\n {\n return isset($this->swtCallOff) ? $this->swtCallOff : null;\n }", "public function get_profil()\n {\n return $this->_profil;\n }", "public function getSwtSample()\n {\n return isset($this->swtSample) ? $this->swtSample : null;\n }", "public function getPresident()\n {\n return $this->get(self::_PRESIDENT);\n }", "public function getInstitucion(): Institucion\n {\n return $this->institucion;\n }", "public function get_motdepasse()\n {\n return $this->_motdepasse;\n }", "public function getPrenotazioniMedico() {\n return $this->_prenotazioni;\n }", "public function getIdpension(){\n return $this->idpension;\n }", "public function getRequisitionListProduct()\n {\n $item = $this->getItem();\n\n if (!$this->requisitionListItemProduct->isProductAttached($item) && !$this->isOptionsUpdated()) {\n return null;\n }\n\n try {\n $product = $this->requisitionListItemProduct->getProduct($item);\n return $product;\n } catch (\\Magento\\Framework\\Exception\\NoSuchEntityException $e) {\n return null;\n }\n }", "public function getPromId()\n {\n return $this->prom_id;\n }", "public function getdowloadPhotoPetSitter()\n {\n return $this->dowloadPhotoPetSitter;\n }", "public function setIsMuted(){\n\n return 'hey';\n //get all reminders\n //$last_reminder = $this->symbol->reminders->pop();\n\n //dd($last_reminder);\n\n }", "public function getHaltDelay()\n {\n return $this->_haltDelay;\n }", "public function getMp()\n {\n return $this->Mp;\n }", "public function getProf(){\n return $this->prof;\n }", "public function get_imsi(): string\n {\n // $res is a string;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::IMSI_INVALID;\n }\n }\n $res = $this->_imsi;\n return $res;\n }", "public function getNotification()\n\t{\n\t\treturn $this->notification;\n\t}", "public function getRemediation()\n {\n return $this->remediation;\n }", "public function getSweep()\n {\n return $this->get(self::_SWEEP);\n }", "public function getTraining()\n {\n return Wrapper\\Player\\Senior::training($this->getId());\n }", "public function getMedia()\n {\n if (! isset($this->media)) {\n $this->media = (($nodeList = $this->getDomXPath($this->getDomDocument())->query($this->getMediaQuery())) && $nodeList->length)\n ? $nodeList->item(0)->value\n : null;\n }\n return $this->media;\n }", "public function getInstrument()\n {\n return $this->instrument;\n }", "public function getNotification()\n {\n return $this->notification;\n }", "public function getPazientiMedico() {\n return $this->_pazienti;\n }", "public function getUnspsc(): ?string\n {\n return $this->unspsc;\n }", "public function getMink()\n {\n return $this->mink;\n }", "public function getUnidadeMedida()\n {\n return $this->unidadeMedida;\n }", "public function getIdProf()\n {\n return $this->idProf;\n }", "public function getFirstPlayExpiration()\n {\n return $this->_firstPlayExpiration;\n }", "public function get_mute(): int\n {\n // $res is a enumBOOL;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::MUTE_INVALID;\n }\n }\n $res = $this->_mute;\n return $res;\n }", "public function getServeMeasurement()\n\t{\n\t\t$this->loadManyToOne('serveMeasurement');\n\t\treturn $this->serveMeasurement;\n\t}", "public function getMediaPlayer()\n {\n return $this->_mediaPlayer;\n }", "public function schedulePresentationD()\n {\n return $this->mailer->schedulePresentationD($this->data);\n }", "function get_current_motif_id_from_loop_id($id)\n {\n // deprecated as of November 2022\n\n\n // get current motif release id\n $this->db->select('ml_release_id')\n ->from('ml_releases')\n ->order_by('date','desc')\n ->where('type',substr($id, 0, 2))\n ->limit(1);\n $query = $this->db->get();\n $release = $query->row();\n\n // get motif id\n $this->db->select('motif_id','ml_release_id')\n ->from('ml_loops')\n ->where('loop_id',$id);\n\n $query = $this->db->get();\n\n if ($query->num_rows() > 0) {\n $motif = $query->row();\n return array('motif_id' => $motif->motif_id,\n 'release_id' => $release->ml_release_id);\n } else {\n return NULL;\n }\n\n }", "public function getMedia()\n {\n return $this->media;\n }", "public function getPDif()\n {\n return $this->pDif;\n }", "public function getThumbSmAttribute()\n {\n return $this->present()->thumbSrc(240, 240, ['resize'], 'name');\n }", "public function getSlides(){\r\n\t\treturn $this->getModel()->getSlides();\r\n\t}", "public static function getFlash() {\n if(self::hasFlash()) {\n $flash = $_SESSION['Flash'][0];\n self::clearBuffer();\n return $flash;\n }\n return null;\n }", "public function getDelay()\n {\n return $this->delay;\n }", "public function getLocalMiniature() \n {\n return $this->localMiniature;\n }", "public function getInterface()\n {\n return $this->predis;\n }", "public function getPrologue()\n {\n return $this->prologue;\n }", "public function getParticipation()\n {\n return $this->participation;\n }", "public function getParticipation()\n {\n return $this->participation;\n }", "public function getDispute(): ?Dispute\n {\n return $this->dispute;\n }", "public function getRemediationScriptContent()\n {\n if (array_key_exists(\"remediationScriptContent\", $this->_propDict)) {\n if (is_a($this->_propDict[\"remediationScriptContent\"], \"\\GuzzleHttp\\Psr7\\Stream\") || is_null($this->_propDict[\"remediationScriptContent\"])) {\n return $this->_propDict[\"remediationScriptContent\"];\n } else {\n $this->_propDict[\"remediationScriptContent\"] = \\GuzzleHttp\\Psr7\\Utils::streamFor($this->_propDict[\"remediationScriptContent\"]);\n return $this->_propDict[\"remediationScriptContent\"];\n }\n }\n return null;\n }", "public function getSpectate(): string\n {\n return $this->spectate;\n }", "public function isResumed()\n {\n return $this->resumed;\n }", "public function getMediaFileUnwrapped()\n {\n return $this->readWrapperValue(\"media_file\");\n }", "public function getCurrentInterpretation()\n {\n if (!$this->viaCurrent) {\n return null;\n }\n\n return $this->owner->{$this->viaCurrent};\n }", "public function getWinger()\n {\n if ($this->isSkillsAvailable()) {\n return $this->getXml()->getElementsByTagName('WingerSkill')->item(0)->nodeValue;\n }\n return null;\n }", "public function getBroadcast()\n {\n return $this->broadcast ?: session('broadcast', null);\n }", "public function getPromisedDeliveryPeriod()\n {\n return $this->promisedDeliveryPeriod;\n }", "public function getDelayCapture(): ?bool\n {\n if (count($this->delayCapture) == 0) {\n return null;\n }\n return $this->delayCapture['value'];\n }", "public function notResponsive()\n {\n return $this->breakpoint();\n }", "public function getPresentationById($id)\n\t{\n\t\treturn $this->find((int) $id)->current();\n\t}", "public function getPlayer()\n {\n return $this->participation->getPlayer();\n }", "public function getTravailEffectif(): ?float {\n return $this->travailEffectif;\n }", "public function getMutualiteit() {\n\t\treturn $this->mutualiteit;\n\t}", "public function getReplay()\n {\n return $this->get(self::_REPLAY);\n }", "public function getRealisePar(): ?string {\n return $this->realisePar;\n }", "public function getNoInterrumpir( ) {\n return $this->noInterrumpir;\n }", "public function getTelevision()\n {\n return $this->television;\n }", "public function get_delay_export() { // Declare \\Markguyver\\LivefyreImporter\\Data\\Livefyre\\Conversation->get_delay_export() function\n\t\t\treturn $this->delay_export;\n\t\t}" ]
[ "0.6076829", "0.5718892", "0.5703779", "0.5661769", "0.56431335", "0.56431335", "0.5598952", "0.5459187", "0.53669477", "0.53464985", "0.53318924", "0.5304171", "0.51613164", "0.51145524", "0.51145524", "0.5083021", "0.5077428", "0.50711846", "0.50604934", "0.5057615", "0.5057294", "0.50538474", "0.49191198", "0.48993888", "0.48971516", "0.48942134", "0.48930234", "0.48879835", "0.48558322", "0.48275986", "0.48176128", "0.48144683", "0.47928685", "0.47915167", "0.47612053", "0.47581008", "0.47561985", "0.47406572", "0.47187507", "0.47168976", "0.47092497", "0.46870205", "0.46841702", "0.46803892", "0.4673683", "0.46695256", "0.46674344", "0.46614343", "0.4651373", "0.46454534", "0.46448565", "0.4644359", "0.4640292", "0.46395987", "0.46332946", "0.46313462", "0.46299005", "0.46293288", "0.4620957", "0.46177", "0.46096113", "0.46007195", "0.45998597", "0.45942944", "0.45864072", "0.4585056", "0.45778444", "0.45755297", "0.45742714", "0.4560181", "0.45567665", "0.45434576", "0.45385173", "0.45380473", "0.45370367", "0.45365742", "0.4527279", "0.45233583", "0.4519282", "0.4519282", "0.45179343", "0.4508459", "0.45083946", "0.4503098", "0.45030594", "0.45013806", "0.44994506", "0.44980082", "0.44965884", "0.4496287", "0.44903487", "0.44881207", "0.44863424", "0.44849637", "0.44828773", "0.4477339", "0.4473055", "0.4471951", "0.44715774", "0.44706005" ]
0.7695198
0
Get the travail temp.
Получить температуру труда.
public function getTravailTemp() { return $this->travailTemp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getTempLink()\n {\n return $this->temp_loc;\n }", "public function getCodeUniteTempsTravail() {\n return $this->codeUniteTempsTravail;\n }", "private function getCurrentTemp() {\n $statement = $this->db->prepare('SELECT * FROM \"temperature\" ORDER BY \"created\" DESC LIMIT 1');\n $result = $statement->execute();\n return $result->fetchArray(SQLITE3_ASSOC)['amount'];\n }", "public function getTempUnit() {\n return $this->cTempUnit;\n }", "public function getTempFile()\n {\n return $this->tempFile;\n }", "public function getTempUnit() {\n\t\treturn $this->unit;\n\t}", "public function getDispenseTravail() {\n return $this->dispenseTravail;\n }", "function getTempo()\r\n {\r\n return $this->getData(DATE_FORMAT_UNIXTIME);\r\n }", "public function getGTemp(){\r\n\t\treturn Yii::app()->TempRep->GetById($this->tmp);\r\n\t}", "public function getTemperature() {\n\t\treturn $this->temperature;\n\t}", "public function getTrip()\n {\n return isset($this->trip) ? $this->trip : null;\n }", "public function getTemperature() {\n\t\treturn $this->_temperature;\n\t}", "public function setTravailTemp($travailTemp) {\n $this->travailTemp = $travailTemp;\n return $this;\n }", "public function getTmpPath()\n\t{\n\t\treturn $this->tmp_path;\n\t}", "public function getEtabLieuTravail() {\n return $this->etabLieuTravail;\n }", "public function getTemp(string $key) : mixed\n {\n if (isset($_SESSION['$']['temp'][$key])) {\n if ($_SESSION['$']['temp'][$key]['ttl'] > \\time()) {\n return $_SESSION['$']['temp'][$key]['data'];\n }\n unset($_SESSION['$']['temp'][$key]);\n }\n return null;\n }", "private function getTX()\n {\n return $this->getRemote($this->RemoteQuery['ip'], \".1.3.6.1.2.1.10.127.1.2.2.1.3.2\", $this->RemoteQuery['community']);\n }", "public function getTempDir(): string\n\t{\n\t\treturn $this->tempDir;\n\t}", "public function getTempCacheTimeToLive() {\n return $this->temporaryCacheTtl;\n }", "public function getTemperature(): string\n {\n return $this->temperature;\n }", "public static function getTempDir()\n {\n self::TMP_DIR or die('missing temp directory!!!');\n\n return dirname(__FILE__) . '/' . self::TMP_DIR;\n }", "public function getTempPath()\n {\n return $this->_tempPath;\n }", "public function getTempName() {}", "public function getTrial()\n {\n return $this->trial;\n }", "public function getTrial()\n {\n return $this->trial;\n }", "public function getTemperature();", "public function getInputTempUnit() {\n return $this->cInputTempUnit;\n }", "public function getTemperature()\n {\n //no-op\n }", "protected function get_temperature( ) {\n// depending on the temperature, Heat Index or Wind Chill Temperature is calculated.\n// Format is tt/dd where tt = temperature and dd = dew point temperature. All units are\n// in Celsius. A 'M' preceeding the tt or dd indicates a negative temperature. Some\n// stations do not report dew point, so the format is tt/ or tt/XX.\n\n if (preg_match('#^(M?[0-9]{2})/(M?[0-9]{2}|[X]{2})?$#',$this->current_group_text,$pieces)) {\n $tempC = (integer) strtr($pieces[1], 'M', '-');\n $tempF = round(1.8 * $tempC + 32);\n $this->wxInfo['ITEMS'][$this->tend]['TEMPERATURE_C'] = $tempC;\n// $this->wxInfo['ITEMS'][$this->tend]['TEMPERATURE_F'] = $tempF;\n $this->wxInfo['ITEMS'][$this->tend]['WINDCHILL_C'] = $tempC;\n// $this->wxInfo['ITEMS'][$this->tend]['WINDCHILL_F'] = $tempF;\n $this->get_wind_chill($tempF);\n if (strlen($pieces[2]) != 0 && $pieces[2] != 'XX') {\n $dewC = (integer) strtr($pieces[2], 'M', '-');\n $dewF = convertTempToF($dewC);\n $this->wxInfo['ITEMS'][$this->tend]['DEWTEMPERATURE_C'] = $dewC;\n// $this->wxInfo['ITEMS'][$this->tend]['DEWTEMPERATURE_F'] = $dewF;\n $rh = round(100 * pow((112 - (0.1 * $tempC) + $dewC) / (112 + (0.9 * $tempC)), 8),1);\n $this->wxInfo['ITEMS'][$this->tend]['HUMIDITY'] = $rh;\n $this->get_heat_index($tempF, $rh);\n }\n $this->wxInfo['ITEMS'][$this->tend]['CODE_TEMPERATURE'] = $this->current_group_text;\n $this->current_ptr++;\n $this->current_group++;\n }\n else {\n $this->current_group++;\n }\n }", "public static function getTempDir() {}", "public function getTmpName()\n {\n return $this->tmpName;\n }", "public static function get_current_completed_tmp_returns() {\n return new external_single_structure(\n array(\n 'feedback' => feedback_completedtmp_exporter::get_read_structure(),\n 'warnings' => new external_warnings(),\n )\n );\n }", "public function get_temperature($port_num)\n {\n $current_temp = floatval($this->xml->ports->port[$port_num]->condition[0]->currentReading);\n \n return $current_temp;\n }", "function read_temperater()\n{\n $path = '/sys/bus/w1/devices/28-000008e54110/w1_slave';\n\t$lines = file($path);\n\t$temp = explode('=', $lines[1]);\n $temp = number_format($temp[1] / 1000,2,'.','');\n \n\treturn $temp;\n\t\n}", "public function getTmpFolder() {\n\t\treturn $this->_tmp;\n\t}", "public function getCodeMedecineTravail() {\n return $this->codeMedecineTravail;\n }", "public function getTiers()\n {\n return $this->tiers;\n }", "public function getCostPerTraveledHour()\n {\n return $this->cost_per_traveled_hour;\n }", "public function getTmpName()\n\t{\n\t\treturn $this->tmpName;\n\t}", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTempFolderPath()\n {\n return $this->tempFolderPath;\n }", "public function getTicket()\n {\n return $this->ticket;\n }", "public function getTicket()\n {\n return $this->ticket;\n }", "public function getTempAttribute()\n {\n return $this->addresses()->where('type', 'temp')->first();\n }", "public function getTempFileName()\n {\n return $this->_tempFileName;\n }", "public function getTempatCuciTangan()\n {\n return $this->tempat_cuci_tangan;\n }", "function getTemporaryLink()\n {\n return $this->_temporaryLink;\n }", "public function getMontantTtc() {\n return $this->montantTtc;\n }", "function tripId()\n\t{\n\t\treturn $this->_tour_voucher_contents['trip_id'];\n\t}", "public function getEmpTel() {\n return $this->empTel;\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 getTmpName()\n {\n return $this->file['tmp_name'];\n }", "public function getTel()\n {\n return $this->Tel;\n }", "function get_tmp_file() {\n\tglobal $g;\n\treturn \"{$g['tmp_path']}/tmp-\" . time();\n}", "public function getVTotTrib()\n {\n return $this->vTotTrib;\n }", "public function obtenerTemperaturas()\n {\n $db = Db::conectar();\n $select = $db->prepare('SELECT * FROM TEMPERATURAS');\n $select->execute();\n $result = $select->fetch();\n //TODO RECORRER RESULT Y DEVOLVER UNA LISTA DE OBJETOS TEMPERATURA\n return $result;\n }", "public function getTiers()\n {\n return $this->arrTiers;\n }", "public function getTiers()\n {\n return $this->arrTiers;\n }", "public function getTripTeam()\n {\n return $this->trip_team;\n }", "public function getTempsRestant()\n {\n $today = new DateTime(date(\"d-m-Y\"));\n $fin = new DateTime($this->dateFinPrevue);\n $interval = $today->diff($fin);\n\n return $interval;\n }", "private function getTempExtremsToday() {\n //get last update date\n $update = explode(\" \", $this->lastUpdateStr())[0];\n\n $statement = $this->db->prepare('SELECT max(\"amount\") as \"high\", min(\"amount\") as \"low\" FROM \"temperature\" WHERE date(\"created\") = ?');\n $statement->bindValue(1, $update);\n $result = $statement->execute();\n return $result->fetchArray(SQLITE3_ASSOC);\n }", "public function getTemporaryFile()\n {\n return $this->files[] = new TemporaryFile($this);\n }", "public function getTelevision()\n {\n return $this->television;\n }", "public function getTourInfo()\n {\n return $this->tourInfo;\n }", "public function getTxDetails()\n {\n return $this->txDetails;\n }", "public function getTees() {\n\t\treturn $this->registration ? $this->registration->tees : $this->practice->tees;\n\t}", "public function getTemp($host = null, $limit = 25) {\r\n\t\ttry {\r\n\t\t\t$pdo = $this->db->generatePDO();\r\n\r\n\t\t\t$sql = $host ? \"SELECT * FROM temperature WHERE client_addr = '$host' ORDER BY id DESC LIMIT $limit\" : \"SELECT * FROM temperature ORDER BY id DESC LIMIT $limit\";\r\n\r\n\t\t\t$getTemp = $pdo->prepare($sql);\r\n\t\t\t$getTemp->execute();\r\n\t\t\t$data = $getTemp->fetchAll(PDO::FETCH_ASSOC);\r\n\t\t\treturn $data;\r\n\r\n\t\t} catch (PDOException $e) {\r\n\t\t\t$this->throwError($e->getMessage());\r\n\t\t}\r\n\r\n\t}", "public static function getSystemTempDir() {\n $dir = sys_get_temp_dir() . \"/\";\n return $dir;\n }", "static function _getTempDir()\n {\n }", "public function getTmpFolderInstance()\n {\n return $this->tmpFolder;\n }", "public function getTempatCuciTanganRusak()\n {\n return $this->tempat_cuci_tangan_rusak;\n }", "public function getTicketid()\n {\n return $this->ticketid;\n }", "function tp ()\n{\n return TPL;\n}", "public function getTravelTime()\n {\n return isset($this->TravelTime) ? $this->TravelTime : null;\n }", "protected function getTypo3TempStatistics() {}", "function darkSky_getTemp($latlong) {\n\tglobal $client;\n\ttry {\n\t\t$response = $client->request('get',\"$latlong\");\n\t} catch (Exception $e) {\n\t\tprint \"error on get temp from dark web $lat $long\\n\";\n\t\t$a=print_r($e,true);\n\t\terror_log($a);\n\t\treturn \"Temperature Error on fetch\";\n\t}\n\t$body = (string) $response->getBody();\n\t$jbody = json_decode($body);\n\tif (!$jbody) {\n\t\treturn \"error on decoding json\";\n\t}\n\n\treturn $jbody->currently->temperature;\n}", "protected function tempPath() {\n if ($nonce = $this->getNonce()) {\n return sys_get_temp_dir() . DIRECTORY_SEPARATOR . $nonce;\n }\n }", "public function getIdLieuTravail() {\n return $this->idLieuTravail;\n }", "public function getPriceTransport()\n {\n return isset($this->priceTransport) ? $this->priceTransport : null;\n }", "private function sensorsReadTemp()\n {\n // python's script using to read data from sensors\n $cmd = \"python /home/eker/Pulpit/tmp.py \";\n // read pin numbers for each room\n foreach ($this->rooms as $key => $value) {\n $cmd .= (string)$value[0] . ' ';\n }\n // var_dump($cmd);\n // exec return string, getFloats changes it to floats array\n // $temps = $this->getFloats(exec($cmd));\n $temps = [20, 21, 22, 19, 19];\n $i = 0;\n // for each room set current temperature\n foreach ($this->rooms as $key => $value) {\n $this->rooms[$key][1] = $temps[$i++];\n }\n }", "public function getTemplate() \n {\n return $_SESSION['template'];\n \n }", "private function calcTemp()\n\t{\n#\t\t#define CCS811_R_NTC 10000 // resistance of NTC at a reference temperature\n#\t\t#define CCS811_R_NTC_TEMP 25 // reference temperature for NTC\n#\t\t#define CCS811_BCONSTANT 3380 // B constant\n#\n#\t\t// get NTC resistance\n#\t\tuint32_t r_ntc = ccs811_get_ntc_resistance (sensor, CCS811_R_REF);\n#\n#\t\t// calculation of temperature from application note ams AN000372\n#\t\tdouble ntc_temp;\n#\t\tntc_temp = log((double)r_ntc / self::R_NTC); // 1\n#\t\tntc_temp /= self::B; // 2\n#\t\tntc_temp += 1.0 / (self::R_NTC_TEMP + 273.15); // 3\n#\t\tntc_temp = 1.0 / ntc_temp; // 4\n#\t\tntc_temp -= 273.15; // 5\n\t}", "public function getShntpickticket()\n {\n return $this->shntpickticket;\n }", "public function getSiretLieuTrav() {\n return $this->siretLieuTrav;\n }", "public function getTId()\n {\n return $this->t_id;\n }", "public function getPrixTtc()\n {\n return $this->prixTtc;\n }", "public function getTailles(){\n return $this->db->get($this->taille)->result();\n }", "public function getCodeTravail(): ?string {\n return $this->codeTravail;\n }", "protected function getTemplateData() {\r\n return $this->templateData;\r\n }", "public function transporter() {\n if(is_null($this->transporter)){\n $this->transporter = Transporter::getByIdentifier($this->transporter_id);\n }\n return $this->transporter;\n }", "public function getTipRtbus() {\n return $this->get(self::TIP_RTBUS);\n }", "public function getTmpDirRoot() : string {\n return $this->tmpRootDir;\n }", "public function getPosCurTmp()\n {\n return $this->pos_cur_tmp;\n }", "public function get_etat(){ return $this->_etat;}", "public function getTiD() {\n\t\treturn $this->tiD;\n\t}" ]
[ "0.6748049", "0.66022974", "0.6425537", "0.6398941", "0.6396713", "0.6345167", "0.6250627", "0.62267524", "0.6151169", "0.60739034", "0.602443", "0.6012342", "0.6008299", "0.5965899", "0.59576935", "0.5947864", "0.59262604", "0.5858319", "0.5849059", "0.5817639", "0.58110064", "0.5700034", "0.56831604", "0.5648742", "0.5648742", "0.56479067", "0.5622986", "0.561421", "0.55942583", "0.55881304", "0.5573469", "0.55439705", "0.5504797", "0.54925966", "0.5484618", "0.54767025", "0.5461811", "0.5455645", "0.5431048", "0.5413471", "0.5413471", "0.5413471", "0.5413471", "0.54060763", "0.54060763", "0.53935146", "0.5370833", "0.53694254", "0.5358619", "0.5355388", "0.53320724", "0.53251266", "0.5314079", "0.5314079", "0.5314079", "0.5314079", "0.53136903", "0.5312849", "0.53098565", "0.5299568", "0.52899015", "0.52748495", "0.52748495", "0.526434", "0.52640545", "0.5263052", "0.5255942", "0.5251914", "0.5248321", "0.52471155", "0.52374405", "0.5237181", "0.5232691", "0.5219792", "0.52110493", "0.5210494", "0.5210081", "0.5208182", "0.52046454", "0.5199578", "0.5187117", "0.5185847", "0.51836395", "0.51779145", "0.51687497", "0.5165385", "0.5160962", "0.51601815", "0.5157449", "0.51556814", "0.51525706", "0.51501125", "0.514363", "0.51308185", "0.51307666", "0.51291466", "0.5122019", "0.5121972", "0.5106597", "0.51001936" ]
0.84011436
0
Get the type attestation.
Получить аттестацию типа.
public function getTypeAttestation() { return $this->typeAttestation; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "public function get_type()\n {\n }", "function _get_type() {\n\t\treturn $this->type();\n\n\t}", "private function get_type() {\n\n\t}", "public function get_type();", "function get_type() {\n\t\treturn $this->get_data( 'type' );\n\t}", "public function get_type(): string;", "public function GetType()\n {\n return ( $this->type );\n }", "final protected function get_type() {\n return $this->type;\n }", "public function type()\n {\n return $this->_type;\n }", "public function type() {\n\t\t\treturn $this->_type;\n\t\t}", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "public function type()\n {\n return $this->type;\n }", "public function GetType(){\r\n\t\treturn $this->type;\r\n\t}", "public function GetType(){\r\r\n\t\treturn $this->type;\r\r\n\t}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "public function getType() {}", "function type () {\r\n return $this->_type;\r\n }", "function getType()\n {\n return $this->getAttribute(\"type\");\n }", "function getType () {\n\t\treturn $this->type;\n\t}", "function getType() {\n return $this->type;\n }", "function getType() {\n\t\treturn $this->type;\n\t}", "private function get_type(){\n\t\treturn $this->_type;\n\t}", "public function getTestType()\n\t{\n\t\treturn $this->test_type;\n\t}", "public function getType()\n { return $this->get('type'); }", "public function getType()\n {\n return $this->getAttribute('type');\n }", "public function getType()\n {\n\treturn $this->type;\n }", "public function get_type() {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "function getType() { return $this->readType(); }", "public function get_type() {\n\t\treturn $this->type;\n\t}", "public function getType(){ }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType() {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType(){\n return $this->type;\n }", "public function getType(){\n return $this->type;\n }", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "public function getType() {\n\t\treturn $this->type;\n\t}", "function getType() {\n\t\treturn $this->_type;\n\t}", "public function getType()\n\t{\n\t\treturn $this->get('type');\n\t}", "public function getType()\r\n {\r\n return $this->_type;\r\n }", "public function get_type(){\n\t\treturn $this->_type;\n\t}", "public function getType()\n {\n return isset($this->type) ? $this->type : 0;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }", "public function getType()\n {\n return $this->type;\n }" ]
[ "0.7098099", "0.7097878", "0.7097821", "0.7097821", "0.7097083", "0.7037731", "0.6992977", "0.6922783", "0.69054574", "0.68294924", "0.6812601", "0.67897886", "0.6783906", "0.6773932", "0.6771674", "0.6771674", "0.6771674", "0.6768191", "0.6751322", "0.6732734", "0.6732734", "0.6732705", "0.6732705", "0.6732705", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.6732681", "0.671465", "0.66847086", "0.668346", "0.6678454", "0.66691905", "0.6668248", "0.6662678", "0.66517377", "0.664808", "0.66451603", "0.66373813", "0.6617166", "0.6616139", "0.6611453", "0.66108114", "0.66064924", "0.66064924", "0.66064924", "0.66064924", "0.6603125", "0.6603125", "0.66012746", "0.6566923", "0.6566923", "0.65635383", "0.65635383", "0.65635383", "0.65635383", "0.6560767", "0.65560776", "0.6549014", "0.65458184", "0.65448", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054", "0.6544054" ]
0.86887246
0
Set the dispense travail.
Установите режим дозирования.
public function setDispenseTravail($dispenseTravail) { $this->dispenseTravail = $dispenseTravail; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDispenseTravail() {\n return $this->dispenseTravail;\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function testSetDernLieuTravail() {\n\n $obj = new AttestationCacm();\n\n $obj->setDernLieuTravail(\"dernLieuTravail\");\n $this->assertEquals(\"dernLieuTravail\", $obj->getDernLieuTravail());\n }", "public function partirAuTravail(): void\n\t{\n\t}", "public function setCodeTravail(?string $codeTravail): LettresMissionsLignes {\n $this->codeTravail = $codeTravail;\n return $this;\n }", "public function edit(accidentsTravail $accidentsTravail)\n {\n //\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function testSetCarteTravailExpireLe() {\n\n // Set a Date/time mock.\n $carteTravailExpireLe = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setCarteTravailExpireLe($carteTravailExpireLe);\n $this->assertSame($carteTravailExpireLe, $obj->getCarteTravailExpireLe());\n }", "public function testSetCarteTravailDelivreeLe() {\n\n // Set a Date/time mock.\n $carteTravailDelivreeLe = new DateTime(\"2018-09-10\");\n\n $obj = new Employes();\n\n $obj->setCarteTravailDelivreeLe($carteTravailDelivreeLe);\n $this->assertSame($carteTravailDelivreeLe, $obj->getCarteTravailDelivreeLe());\n }", "public function testSetCompteDeTiers() {\n\n $obj = new Collaborateurs();\n\n $obj->setCompteDeTiers(\"compteDeTiers\");\n $this->assertEquals(\"compteDeTiers\", $obj->getCompteDeTiers());\n }", "public function transitionTo(Etat $etat): void\n {\n echo \"Context: Transition to \" . get_class($etat) . \".\\n\";\n $this->setEtat($etat);\n $this->etat->setJoueur($this);\n }", "public function setCodeMedecineTravail($codeMedecineTravail) {\n $this->codeMedecineTravail = $codeMedecineTravail;\n return $this;\n }", "public function testSetEtat() {\n\n $obj = new PointBonTrav();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "public function testSetTravailleJf() {\n\n $obj = new Employes();\n\n $obj->setTravailleJf(true);\n $this->assertEquals(true, $obj->getTravailleJf());\n }", "public function setTaille($taille){\n $this->taille = $taille;\n }", "public function setTaille($taille){\n $this->taille = $taille;\n }", "public function testSetTelPoste() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPoste(\"telPoste\");\n $this->assertEquals(\"telPoste\", $obj->getTelPoste());\n }", "public function setTravailTemp($travailTemp) {\n $this->travailTemp = $travailTemp;\n return $this;\n }", "protected function setZpTprop($clave) {\n $this->zpTprop = $clave;\n }", "public function testSetLieuTravailConjoint() {\n\n $obj = new Employes();\n\n $obj->setLieuTravailConjoint(\"lieuTravailConjoint\");\n $this->assertEquals(\"lieuTravailConjoint\", $obj->getLieuTravailConjoint());\n }", "public function testSetTpPourcentageNonOperationnel() {\n\n $obj = new Collaborateurs();\n\n $obj->setTpPourcentageNonOperationnel(10.092018);\n $this->assertEquals(10.092018, $obj->getTpPourcentageNonOperationnel());\n }", "public function setterSetsTcemain() {\n\t\t\n\t\t$TCE = $this->controller->getTCE();\n\t\t\n\t\t$this->assertInstanceOf(t3lib_TCEmain, $TCE);\n\t}", "public function testSetTauxPensionCivile() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionCivile(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionCivile());\n }", "public function setVoiture($voiture){\n $this->$voiture = $voiture;\n }", "public function testSetModifBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifBonsTravaux(\"modifBonsTravaux\");\n $this->assertEquals(\"modifBonsTravaux\", $obj->getModifBonsTravaux());\n }", "public function testSetMontant() {\n\n $obj = new PointBonTrav();\n\n $obj->setMontant(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant());\n }", "public function testSetCumHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setCumHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getCumHeureTrav());\n }", "public function setModeDue(){\n\t\t\n\t\t$info = array(\n\t\t\t'username' => 'unkown',\n\t\t\t'realName' => 'unkown',\n\t\t\t'email' => 'unkown'\n\t\t);\n\t\t\n\t\tif ( TYPO3_MODE==\"BE\" ){\n\t\t\t$info['username'] = $GLOBALS['BE_USER']->user['username'];\n\t\t\t$info['realName'] = $GLOBALS['BE_USER']->user['realName'];\n\t\t\t$info['email'] = $GLOBALS['BE_USER']->user['email'];\n\t\t}\n\n\t\t$resultRepository = tx_caretaker_TestResultRepository::getInstance();\n\t\t$latestTestResult = $resultRepository->getLatestByNode( $this );\n\t\t\n\t\t$message = new tx_caretaker_ResultMessage( 'LLL:EXT:caretaker/locallang_fe.xml:message_due', $info );\n\t\t$result = tx_caretaker_TestResult::create( tx_caretaker_Constants::state_due, 0 , $message );\n\t\t$resultRepository->saveTestResultForNode( $this, $result );\n\t\t\n\t\t$this->notify( 'updatedTestResult', $result, $latestTestResult );\n\t\t\n\t\treturn $result;\n\t}", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "public function setUtente($utente) \n\t{\n $this->utente = $utente;\n }", "public function testSetAnnulationBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationBonsTravaux(true);\n $this->assertEquals(true, $obj->getAnnulationBonsTravaux());\n }", "public function setoran_tunai()\n\t{\n\t\t$data['container'] = 'transaction/setoran_tunai';\n\t\t$data['rembugs'] = $this->model_cif->get_cm_data();\n\t\t$data['current_date'] = $this->format_date_detail($this->current_date(),'id',false,'/');\n\t\t$data['account_cash'] = $this->model_transaction->get_account_cash();\n\t\t$this->load->view('core',$data);\n\t}", "public function testSetTauxCommission() {\n\n $obj = new Collaborateurs();\n\n $obj->setTauxCommission(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxCommission());\n }", "protected function setOfferValue ()\n {\n $this->request->coupon_benefits[ $this->offerNature ] = $this->offer->rate;\n }", "public function testSetNbHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setNbHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureTrav());\n }", "public function setTicket($ticket)\n {\n $this->ticket = $ticket;\n }", "public function testSetCompteTiers() {\n\n $obj = new Employes();\n\n $obj->setCompteTiers(\"compteTiers\");\n $this->assertEquals(\"compteTiers\", $obj->getCompteTiers());\n }", "public function testSetAccesAutoriseBonsTravaux() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesAutoriseBonsTravaux(true);\n $this->assertEquals(true, $obj->getAccesAutoriseBonsTravaux());\n }", "public function set_etat(BOOL $_etat){\n $this->_etat = $_etat;\n\n return $this;\n }", "public function testSetPrixVente() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente());\n }", "public function testSetValideMob() {\n\n $obj = new PointBonTrav();\n\n $obj->setValideMob(true);\n $this->assertEquals(true, $obj->getValideMob());\n }", "public function testSetTelPortable1() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable1(\"telPortable1\");\n $this->assertEquals(\"telPortable1\", $obj->getTelPortable1());\n }", "public function setPriceNettoAttribute($value)\n\t{\n\t\t$this->attributes['price_netto'] = str_replace(',', '.', $value);\n\t}", "protected function setOfferNature ()\n {\n $this->offerNature = $this->offer->rate_nature->value;\n }", "function setTo($to_set){\n\t\t\t$this->to=$to_set;\n\t\t}", "public function testSetPourcentAct() {\n\n $obj = new Employes();\n\n $obj->setPourcentAct(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentAct());\n }", "public function testSetTelPerso() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPerso(\"telPerso\");\n $this->assertEquals(\"telPerso\", $obj->getTelPerso());\n }", "public function setTaxInfo(KCommandContext $context)\n\t{\n\t\t$vats = $context->data->federal_tax;\n \n\t\t$this->getItem()->setFederalTax( KConfig::unbox( $vats ) );\n\t}", "public function testSetEtblSiret() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblSiret(\"etblSiret\");\n $this->assertEquals(\"etblSiret\", $obj->getEtblSiret());\n }", "public function setTipo(string $tipo)\n {\n if (!is_null($this->tipo)) {\n return;\n }\n\n switch ($tipo) {\n case 'cc':\n $this->saldo = 20;\n break;\n case 'cp':\n $this->saldo = 70;\n break;\n default:\n die('<h3>Tipo de Conta inválida! Insira somente cc ou cp!</h3>');\n }\n\n $this->tipo = $tipo;\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 2.50;\n }", "protected function setTo() {}", "public function setTitolareClinica($titolare) {\r\n $this->_titolareClinica = $titolare;\r\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 0.75;\n }", "public function testSetTelPortable2() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable2(\"telPortable2\");\n $this->assertEquals(\"telPortable2\", $obj->getTelPortable2());\n }", "protected function setFeatPost()\n {\n $this->feat_post = new Cltvo_Post( $this->feat_post );\n }", "public function reprova()\n {\n $this -> estadoAtual -> reprova($this);\n }", "public function cortesia()\n {\n $this->costo = 0;\n }", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\n }", "public function setPower()\n {\n $this->_role->power = 200;\n }", "public function testSetTelDirect() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelDirect(\"telDirect\");\n $this->assertEquals(\"telDirect\", $obj->getTelDirect());\n }", "function setTaxes($taxes)\n {\n $this->taxes = $taxes;\n }", "public function set()\n {\n // to reflect the current bar.\n\n // Why?\n\n // Otherwise the bar count gets repeated. And that people notice.\n\n $this->variables->setVariable(\"count\", $this->bar_count);\n $this->variables->setVariable(\"max_bar_count\", $this->max_bar_count);\n\n $this->variables->setVariable(\"refreshed_at\", $this->current_time);\n }", "public function setFree($free)\n {\n $this->_setFree = (integer)$free;\n }", "public function setEtabLieuTravail($etabLieuTravail) {\n $this->etabLieuTravail = $etabLieuTravail;\n return $this;\n }", "public function testSetCodeDepot() {\n\n $obj = new Collaborateurs();\n\n $obj->setCodeDepot(\"codeDepot\");\n $this->assertEquals(\"codeDepot\", $obj->getCodeDepot());\n }", "function setPartnerTarget($account)\n {\n $this->target=$account;\n }", "function setIntestat($intestat)\n {\n $this->intestat = $intestat;\n }", "public function testSetControleSaisieTp() {\n\n $obj = new Collaborateurs();\n\n $obj->setControleSaisieTp(\"controleSaisieTp\");\n $this->assertEquals(\"controleSaisieTp\", $obj->getControleSaisieTp());\n }", "public function testSetCumJourTrav() {\n\n $obj = new Employes();\n\n $obj->setCumJourTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getCumJourTrav());\n }", "public function testSetAccesAutorisePlanTache() {\n\n $obj = new Collaborateurs();\n\n $obj->setAccesAutorisePlanTache(true);\n $this->assertEquals(true, $obj->getAccesAutorisePlanTache());\n }", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setToCart()\n\t{\n\t\t$this->cart->set($this->request->getInteger('record'), $this->request->getInteger('amount', 1), [\n\t\t\t'priceNetto' => (float) $this->request->get('priceNetto', 0.0),\n\t\t\t'priceGross' => (float) $this->request->get('priceGross', 0.0),\n\t\t]);\n\t\t$this->saveCart();\n\t}", "public function testSetAnnulationPlanTache() {\n\n $obj = new Collaborateurs();\n\n $obj->setAnnulationPlanTache(true);\n $this->assertEquals(true, $obj->getAnnulationPlanTache());\n }", "public function setExperience($tableau)\n\t{\n\t}", "protected function setTaxCondition($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 92, 623, 'UTF-8');\n\t\t}\n\t}", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "public function setSchedule ()\n {\n $this->loadComponent('DateTime');\n $this->loadModel('ScheduleTime');\n $data = $this->Auth->user();\n $id_fortune = $data['id'];\n $days = $this->DateTime->allDayInWeek();\n $months = $this->DateTime->allDayInMonth();\n $times = $this->ScheduleTime->getListTime();\n if ($this->Check->isId($id_fortune)) {\n $this->set([\n 'times' => $times,\n 'days' => $months,\n 'id' => $id_fortune\n ]);\n } else{\n $this->Flash->error(__('Id not found'));\n }\n }", "function setPrice($price)\n {\n $this->price = $price;\n }", "public function testSetModifPlanTache() {\n\n $obj = new Collaborateurs();\n\n $obj->setModifPlanTache(\"modifPlanTache\");\n $this->assertEquals(\"modifPlanTache\", $obj->getModifPlanTache());\n }", "public function setExpired()\n {\n $this->attributes['status'] = 'expired';\n self::save();\n }", "public function setExpired()\n {\n $this->attributes['status'] = 'expired';\n self::save();\n }", "public function setDueAtAttribute($param) {\n $this->attributes['due_at'] = $param ? (new Carbon($param)) : null;\n }", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function setTelefono($_telefono)\n {\n $this->telefono = $_telefono;\n }", "public function set_data($r){\n if($r->stn_number == ''){ $this->complete = false; }\n\n //setting trip_id\n $this->trip_id = $r->trip_id;\n //calculating total_freight\n $this->total_freight += ($r->product_quantity * $r->freight_unit);\n //calculating total_freight_for_company\n $this->total_freight_for_company += ($r->company_freight_unit * $r->product_quantity);\n //setting tip_unique_data (this class variables)\n $this->customerId = $r->customer_id;\n $this->customerName = $r->customerName;\n\n $this->contractorId = $r->contractor_id ;\n $this->contractorName = $r->contractorName ;\n\n $this->companyId = $r->company_id ;\n $this->companyName = $r->companyName ;\n\n $this->tanker_id = $r->tanker_id ;\n $this->tanker_number = $r->tanker_number ;\n\n $this->entry_date = $r->entryDate ;\n $this->filling_date = $r->filling_date ;\n $this->receiving_date = $r->receiving_date ;\n $this->decanding_date = $r->decanding_date ;\n $this->stn_receiving_date = $r->stn_receiving_date ;\n $this->email_date = $r->email_date ;\n $this->invoice_date = $r->invoice_date ;\n\n $this->contractor_commission = $r->contractor_commission ;\n $this->contractor_commission_2 = $r->contractor_commission_2 ;\n $this->company_commission_1 = $r->company_commission_1 ;\n $this->company_commission_2 = $r->company_commission_2 ;\n $this->company_commission_3 = $r->company_commission_3 ;\n $this->company_freight = ($r->company_commission_1 +$r->company_commission_2+ $r->company_commission_3);\n\n $this->customer_freight = 100 - $this->contractor_commission;\n\n $this->driver_id_1 = $r->driver_id_1 ;\n $this->driver_name_1 = $r->driver_2_name ;\n\n $this->driver_id_2 = $r->driver_id_2 ;\n $this->driver_name_2 = $r->driver_2_name ;\n\n $this->driver_id_3 = $r->driver_id_3 ;\n $this->driver_name_3 = $r->driver_3_name ;\n\n $this->invoice_number = $r->invoice_number;\n\n $this->paid_to_customer = ($r->paid_to_customer != '')?$r->paid_to_customer:0;\n $this->payment_to_customer_date = $r->payment_to_customer_date;\n }", "public function setTelefonoClinica($tel) {\r\n $this->_telefono = $tel;\r\n }", "public function setShippingPrice() {\n if ($this->price > 200) {\n $this->shippingPrice = 0;\n }\n }", "public function set_view_contato_anunciante(View_Contato_Anunciante $view_contato_anunciante) : void\r\n {\r\n self::$view_contato_anunciante = $view_contato_anunciante;\r\n }", "public function testSetDeptNaissance() {\n\n $obj = new Employes();\n\n $obj->setDeptNaissance(\"deptNaissance\");\n $this->assertEquals(\"deptNaissance\", $obj->getDeptNaissance());\n }", "public function show(accidentsTravail $accidentsTravail)\n {\n //\n }", "public function setDueDateAttribute($value)\n {\n $this->attributes['due_date'] = $value;\n }", "public function setIdLieuTravail($idLieuTravail) {\n $this->idLieuTravail = $idLieuTravail;\n return $this;\n }", "public function testSetMontant4() {\n\n $obj = new Employes();\n\n $obj->setMontant4(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant4());\n }", "public function setTicketPrice($value) {\n return $this->set(self::TICKETPRICE, $value);\n }", "public function _set($number)\n {\n }", "public function testSetMontant5() {\n\n $obj = new Employes();\n\n $obj->setMontant5(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant5());\n }", "public function testSetEstAcheteur() {\n\n $obj = new Collaborateurs();\n\n $obj->setEstAcheteur(10);\n $this->assertEquals(10, $obj->getEstAcheteur());\n }", "function setPrice($price, $taxPercentage = 25)\n {\n $this->taxPercentage = $taxPercentage;\n $this->taxA = $price / 100 * 100;\n $this->price = $price;\n }" ]
[ "0.6029165", "0.5676616", "0.554448", "0.54712135", "0.5416176", "0.54128075", "0.53842825", "0.52919513", "0.52437794", "0.51896507", "0.51812536", "0.5155434", "0.5078486", "0.50613695", "0.50536484", "0.50536484", "0.504719", "0.50356364", "0.5023263", "0.50230664", "0.500792", "0.5007008", "0.50049895", "0.5003258", "0.50026083", "0.49898586", "0.49754125", "0.49633393", "0.49607998", "0.49421665", "0.49143478", "0.4883538", "0.4853401", "0.4846744", "0.4829709", "0.4826257", "0.4795678", "0.47953498", "0.47908607", "0.47864488", "0.47839892", "0.47713336", "0.47687992", "0.47595614", "0.47591606", "0.47485262", "0.47474837", "0.47418573", "0.4739335", "0.47271037", "0.47127134", "0.47066903", "0.47028872", "0.4698464", "0.4695462", "0.4675672", "0.46660852", "0.4665918", "0.46624774", "0.4639051", "0.46351928", "0.46326405", "0.46290052", "0.46156713", "0.46137303", "0.4613527", "0.46117702", "0.45910597", "0.4583085", "0.45781338", "0.4576526", "0.4566719", "0.45625037", "0.4560491", "0.45596462", "0.455855", "0.4558284", "0.4551459", "0.45511448", "0.45419726", "0.45403293", "0.45369765", "0.45369765", "0.45368838", "0.45289755", "0.45270252", "0.45260847", "0.45245248", "0.45242736", "0.45231053", "0.4521321", "0.45194492", "0.45182464", "0.45156693", "0.4513767", "0.4513307", "0.45114556", "0.4510305", "0.45083007", "0.4507768" ]
0.708766
0
Set the etbl adresse1.
Установите адрес etbl adresse1.
public function setEtblAdresse1($etblAdresse1) { $this->etblAdresse1 = $etblAdresse1; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setStreet1( &$value )\n {\n $this->Street1 = $value;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function setAddress1($address1)\r\n {\r\n $this->_address1 = $address1;\r\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 setAddress1($fv_address1)\n {\n \tif(!empty($fv_address1))\n \t{\n \t\treturn $this->fv_address1 = $fv_address1;\n \t}\n $this->fv_error_message = $this->fv_error_message .'<br> - Direccion 1 '.ERROR_NULL;\n\n return $this->fv_address1 = null;\n }", "public function set_address_1( $address ) {\n\t\t$this->set_prop( 'address_1', $address );\n\t}", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n }", "function setStreet2( &$value )\n {\n $this->Street2 = $value;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function setEmpAdresse1($empAdresse1) {\n $this->empAdresse1 = $empAdresse1;\n return $this;\n }", "public function setLlx($llx) {}", "public function setEtblAdresse3($etblAdresse3) {\n $this->etblAdresse3 = $etblAdresse3;\n return $this;\n }", "public function setLocalAddress(string $address): void {}", "public function setStreet1(string $street1): void\n {\n $this->_street1 = $street1;\n }", "function setAddress($add) {\n if ( strpos($add->value, \"BEGIN:VCARD\") || strpos($add->value, \"begin:vcard\") )\n $add->type = 'text/directory';\n else\n $add->type = 'text/plain';\n $this->address = $add;\n $changed = true;\n }", "public function setAddress($value)\n {\n $this->_address = $value;\n }", "public function set_address($new) {\n\t\t$this->CI->api->dns->modify->zone_address($this->zone, $this->address, 'address', $new);\n\t\t$this->hostname = $new;\n\t}", "public function setAddLine1($val, $markChanged=true) {\n\t\t$this->addLine1 = $val;\n\t\tif( $markChanged ) $this->isChanged = true;\n\t}", "public function setAddress1($value)\n {\n parent::setValue('address1', $value);\n\n return $this;\n }", "public function getAddress1()\n {\n return $this->fv_address1;\n }", "public function set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}", "function setAdresse($adresse){\n if(empty($adresse)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n }\n //on declare de la variable adresse puis on appelle la varibale prive adresse\n $this->_adresse = $adresse;\n }", "public function setAddress($val)\n {\n $this->_propDict[\"address\"] = $val;\n return $this;\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()\r\n {\r\n return $this->_address1;\r\n }", "function setAddress( $postoffice='', $extended='', $street='', $city='', $region='', $zip='', $country='', $type='HOME;POSTAL' )\n {\n // $type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. \"WORK;PARCEL;POSTAL\"\n $key = 'ADR';\n if ( $type != '' ) {\n $key .= ';'. $type;\n }\n $key.= ';ENCODING=QUOTED-PRINTABLE';\n $this->properties[$key] = encode( $postoffice ) . ';' . encode( $extended ) .';'. encode( $street ) .';'. encode( $city ) .';'. encode( $region) .';'. encode( $zip ) .';'. encode( $country );\n }", "public function setAddress(Model_DbTable_Row_Address $address) {\n\t if ($address1 = $this->findParentRow(new Model_DbTable_Address())) {\n\t $addressData = $address->toArray();\n\t unset($addressData['id']);\n\t $address1->setFromArray($addressData);\n\t $address = $address1;\n\t }\n\n\t $this->_address = $address;\n\t}", "public function edit(TempTier1Link $tempTier1Link)\n {\n //\n }", "public function setRef1($ref1) {\n $this->_ref1 = $ref1;\n }", "function &street1( )\n {\n return $this->Street1;\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\n }", "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 setAddress(string $address):void\n {\n $this->address = $address;\n }", "public function setEventAddress($value) \n {\n $this->_fields['EventAddress']['FieldValue'] = $value;\n return;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }", "public function getAddress1()\n {\n return parent::getValue('address1');\n }", "function setEntireAddress($address1, $address2, $city, $state, $zipCode)\n\t{\n\t\t$this->setAddress1($address1);\n\t\t$this->setAddress2($address2);\n\t\t$this->setCity($city);\n\t\t$this->setState($state);\n\t\t$this->setZipCode($zipCode);\n\t}", "protected function setAddress($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 80, 640, 'UTF-8');\n\t\t}\n\t}", "public function getAddress1()\n {\n return $this->address1;\n }", "public function getAddress1()\n {\n return $this->address1;\n }", "public function setAddress1(string $address_1 = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_address_1', $address_1);\n \n return $this;\n }", "public function getEmpAdresse1() {\n return $this->empAdresse1;\n }", "public function setAddress(?string $value): void {\n $this->getBackingStore()->set('address', $value);\n }", "public function setAddr($value)\n {\n return $this->set(self::_ADDR, $value);\n }", "public function setAddress($address) {\n\t\t$this->address = $address;\n\t}", "public function setAddress($address);", "public function setAddress($address);", "public function setAddress(Address $address);", "public function setNumero1($num1) {\n\t\t$this->numero1 = $num1;\n\t}", "function setAddressTypeAdmin( $value )\n {\n $this->AddressTypeAdmin = $value;\n }", "public function setAddr($var)\n {\n GPBUtil::checkString($var, False);\n $this->addr = $var;\n\n return $this;\n }", "public function testSetTel1() {\n\n $obj = new Employes();\n\n $obj->setTel1(\"tel1\");\n $this->assertEquals(\"tel1\", $obj->getTel1());\n }", "public function setStreetAddress($value) {\n\t\tself::$_streetAddress = $value;\n\t}", "function setAddressType( &$value )\n {\n if( is_numeric( $value ) )\n {\n $this->AddressTypeID = $value;\n }\n \n if( get_class( $value ) == \"ezaddresstype\" )\n {\n $this->AddressTypeID = $value->id();\n }\n }", "public function setAddress($data=null) {\n if(!is_array($data)) {\n $b = $this->getBilling();\n $p = $this->getPayment();\n $data = array(\n 'STREET' => $b['address'],\n 'STREET2' => $b['address2'],\n 'CITY' => $b['city'],\n 'STATE' => $b['state'],\n 'COUNTRYCODE' => $b['country'],\n 'ZIP' => $b['zip'],\n 'SHIPTOPHONENUM' => $p['phone']\n );\n }\n $this->_payerAddress = $data;\n }", "public function getStreetAddress1()\n {\n return $this->street_address_1;\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 setImAddress($value)\n {\n $this->setProperty(\"ImAddress\", $value, true);\n }", "public function setCorrespondentAddress($value) {\n\t\tself::$_correspondentAddress = $value;\n\t}", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n\n return $this;\n }", "public function _setLotNo1($lotNo1) {\n\t\t$this->_lotNo1 = $lotNo1;\n\t}", "public function setAddress($address)\n {\n $this->address = $address;\n }", "public function set_list_address($add)\n\t{\n\t\t$this->list_address = $add;\n\t\treturn TRUE;\n\t}", "public function setAddress2($address2)\n {\n $this->address2 = $address2;\n }", "public function setAddress($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->address !== $v) {\n $this->address = $v;\n $this->modifiedColumns[] = EventPeer::ADDRESS;\n }\n\n\n return $this;\n }", "public function setLine1($line1)\n {\n $this->json()->line1 = $line1;\n }", "public function set_adresse($_adresse)\n {\n $this->_adresse = $_adresse;\n\n return $this;\n }", "public function setAddress($address)\n {\n $this->set('address', $address);\n }", "public function renderAddress()\n {\n echo $this->getAddressStringSingleLine();\n }", "public function setLine1(?string $line1): self\n {\n $this->initialized['line1'] = true;\n $this->line1 = $line1;\n\n return $this;\n }", "public function setAddress($value)\n {\n \t$this->address = $value;\n \treturn $this;\n }", "public function getOrganizationAddress1() :string {\n\t\treturn($this->organizationAddress1);\n\t}", "public function street1($street1) {\n $this->data['attachment']['payload']['address']['street_1'] = $street1;\n\n return $this;\n }", "public function setAddressFromEsd($addr, esdAddress $esdAddress) {\n for ($i = 0; isset($esdAddress->street[$i]) && $i < 3; $i++)\n if ($i == 0)\n $addr->address->street[$i] = $esdAddress->street[$i]; // fixme: multiple?\n else \n $addr->address->street[] = $esdAddress->street[$i];\n \n $addr->address->city = $esdAddress->city;\n $addr->address->state = $esdAddress->state;\n if ($esdAddress->country)\n $addr->address->country = $esdAddress->country;\n $addr->address->postcode = $esdAddress->zip;\n $addr->phone = $esdAddress->telephone;\n }", "function eZAddress( $id = \"\" )\n {\n if ( $id != \"\" )\n {\n $this->ID = $id;\n $this->get( $this->ID );\n }\n }", "public function setNumero1($numero1) {\n\t\t$this->numero1 = $numero1;\n\t}", "public function getAddress1()\n {\n return $this->getValue('nb_icontact_prospect_address_1');\n }", "public function setAddress($address) {\n\n $this->address = htmlspecialchars(strip_tags($address), ENT_QUOTES, 'utf-8');\n \n if (empty(trim($this->address))) {\n $this->valid = false;\n }\n\n }", "public function get_address_1( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_1', $context );\n\t}", "public function setFrom($address, $name = '', $auto = true)\n {\n }", "public function setLine1(?string $line1): self\n {\n $this->line1 = $line1;\n\n return $this;\n }", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function setAddress2($value)\n {\n parent::setValue('address2', $value);\n\n return $this;\n }", "public function setAddress(Ipagare_PagSeguroDireto_Domain_Address $address) {\n $this->address = $address;\n }", "public function __construct($addr) {\n $this->addr = $addr;\n }", "public function setKodeEselon1($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->kode_eselon1 !== $v) {\n $this->kode_eselon1 = $v;\n $this->modifiedColumns[] = BangunanPeer::KODE_ESELON1;\n }\n\n\n return $this;\n }", "public function setAddress1($value)\n {\n $this->setParameter('billingAddress1', $value);\n $this->setParameter('shippingAddress1', $value);\n\n return $this;\n }", "public function setAddress($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->address !== $v) {\n\t\t\t$this->address = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::ADDRESS;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setAutoResponderToAddressField($value) { $this->_autoResponderToAddressField = $value; }", "public function setReqAddress1($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_address1 !== $v) {\n\t\t\t$this->req_address1 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_ADDRESS1;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setAddress($value)\n {\n return $this->set('Address', $value);\n }", "public function setAddress($value)\n {\n return $this->set('Address', $value);\n }" ]
[ "0.64310783", "0.6414345", "0.6414345", "0.6348597", "0.6345011", "0.6345011", "0.6284593", "0.6205155", "0.6126692", "0.58637524", "0.5651736", "0.5651736", "0.56123877", "0.55980545", "0.5577241", "0.5565588", "0.5526708", "0.552035", "0.5511832", "0.5448438", "0.5430502", "0.5424175", "0.5408449", "0.53697985", "0.53600186", "0.53416365", "0.5314233", "0.531274", "0.5279613", "0.5276349", "0.5250225", "0.52427506", "0.52249384", "0.52167416", "0.5213675", "0.5192762", "0.5189127", "0.51783335", "0.51783186", "0.5168523", "0.5156561", "0.5151137", "0.51276994", "0.51276994", "0.5125973", "0.5125901", "0.5122173", "0.50923514", "0.5064594", "0.5062587", "0.5062587", "0.5050434", "0.50320244", "0.5028963", "0.50114554", "0.5011041", "0.4995312", "0.49744898", "0.49739859", "0.4965478", "0.49645692", "0.49645692", "0.49631122", "0.4949387", "0.49330196", "0.492719", "0.49152434", "0.49034303", "0.48938903", "0.48926416", "0.48844546", "0.48812705", "0.48807698", "0.48648128", "0.48539376", "0.48479217", "0.48478803", "0.48473132", "0.48440534", "0.48417148", "0.48300332", "0.48038912", "0.48007354", "0.47953457", "0.47882807", "0.47809744", "0.4757861", "0.47536102", "0.47472066", "0.47460517", "0.4740787", "0.47057852", "0.4705139", "0.46998104", "0.46875915", "0.46702465", "0.4666394", "0.46628305", "0.46625793" ]
0.74971974
1
Set the etbl adresse2.
Установите адрес etbl adresse2.
public function setEtblAdresse2($etblAdresse2) { $this->etblAdresse2 = $etblAdresse2; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setStreet2( &$value )\n {\n $this->Street2 = $value;\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 set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}", "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 getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "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 setAddress2($address2)\n {\n $this->address2 = $address2;\n }", "public function setAddress2($value)\n {\n parent::setValue('address2', $value);\n\n return $this;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function setAddress2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->address2 !== $v) {\n\t\t\t$this->address2 = $v;\n\t\t\t$this->modifiedColumns[] = VenuePeer::ADDRESS2;\n\t\t}\n\n\t\treturn $this;\n\t}", "function setStreet1( &$value )\n {\n $this->Street1 = $value;\n }", "public function setStreet2(string $street2): void\n {\n $this->_street2 = $street2;\n }", "public function getAddress2()\r\n {\r\n return $this->_address2;\r\n }", "public function getAddress2()\n {\n\n return $this->fv_address2;\n }", "public function getAddress2()\n\t{\n\t\treturn $this->address2;\n\t}", "function setAddress( $postoffice='', $extended='', $street='', $city='', $region='', $zip='', $country='', $type='HOME;POSTAL' )\n {\n // $type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. \"WORK;PARCEL;POSTAL\"\n $key = 'ADR';\n if ( $type != '' ) {\n $key .= ';'. $type;\n }\n $key.= ';ENCODING=QUOTED-PRINTABLE';\n $this->properties[$key] = encode( $postoffice ) . ';' . encode( $extended ) .';'. encode( $street ) .';'. encode( $city ) .';'. encode( $region) .';'. encode( $zip ) .';'. encode( $country );\n }", "public function setValue2($value){\n $this->_value2 = $value;\n }", "public function getAddress2()\n {\n return parent::getValue('address2');\n }", "public function setEtblAdresse3($etblAdresse3) {\n $this->etblAdresse3 = $etblAdresse3;\n return $this;\n }", "public function set_address($new) {\n\t\t$this->CI->api->dns->modify->zone_address($this->zone, $this->address, 'address', $new);\n\t\t$this->hostname = $new;\n\t}", "public function setEmpAdresse2($empAdresse2) {\n $this->empAdresse2 = $empAdresse2;\n return $this;\n }", "function &street2( )\n {\n return $this->Street2;\n }", "public function setRef2($ref2) {\n $this->_ref2 = $ref2;\n }", "public function set_address_1( $address ) {\n\t\t$this->set_prop( 'address_1', $address );\n\t}", "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 setAddress2($value)\n {\n $this->setParameter('billingAddress2', $value);\n $this->setParameter('shippingAddress2', $value);\n\n return $this;\n }", "public function setLlx($llx) {}", "public function get_address_2( $context = 'view' ) {\n\t\treturn $this->get_prop( 'address_2', $context );\n\t}", "public function setAddress($value)\n {\n $this->_address = $value;\n }", "public function setAddress1($address1)\r\n {\r\n $this->_address1 = $address1;\r\n }", "public function setAddress1($fv_address1)\n {\n \tif(!empty($fv_address1))\n \t{\n \t\treturn $this->fv_address1 = $fv_address1;\n \t}\n $this->fv_error_message = $this->fv_error_message .'<br> - Direccion 1 '.ERROR_NULL;\n\n return $this->fv_address1 = null;\n }", "public function getEtblAdresse3() {\n return $this->etblAdresse3;\n }", "public function getEmpAdresse2() {\n return $this->empAdresse2;\n }", "public function setAddress($val)\n {\n $this->_propDict[\"address\"] = $val;\n return $this;\n }", "function setEntireAddress($address1, $address2, $city, $state, $zipCode)\n\t{\n\t\t$this->setAddress1($address1);\n\t\t$this->setAddress2($address2);\n\t\t$this->setCity($city);\n\t\t$this->setState($state);\n\t\t$this->setZipCode($zipCode);\n\t}", "public function setLine2($line2)\n {\n $this->json()->line2 = $line2;\n }", "public function getStreetAddress2()\n {\n return $this->street_address_2;\n }", "public function setShippingAddress2($value)\n {\n return $this->setParameter('shippingAddress2', $value);\n }", "public function setLocalAddress(string $address): void {}", "public function setLine2(?string $line2): self\n {\n $this->initialized['line2'] = true;\n $this->line2 = $line2;\n\n return $this;\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\n }", "function setAddress($add) {\n if ( strpos($add->value, \"BEGIN:VCARD\") || strpos($add->value, \"begin:vcard\") )\n $add->type = 'text/directory';\n else\n $add->type = 'text/plain';\n $this->address = $add;\n $changed = true;\n }", "function setAdresse($adresse){\n if(empty($adresse)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n }\n //on declare de la variable adresse puis on appelle la varibale prive adresse\n $this->_adresse = $adresse;\n }", "public function setBilladdress2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->billaddress2 !== $v) {\n $this->billaddress2 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_BILLADDRESS2] = true;\n }\n\n return $this;\n }", "public function setAddress($data=null) {\n if(!is_array($data)) {\n $b = $this->getBilling();\n $p = $this->getPayment();\n $data = array(\n 'STREET' => $b['address'],\n 'STREET2' => $b['address2'],\n 'CITY' => $b['city'],\n 'STATE' => $b['state'],\n 'COUNTRYCODE' => $b['country'],\n 'ZIP' => $b['zip'],\n 'SHIPTOPHONENUM' => $p['phone']\n );\n }\n $this->_payerAddress = $data;\n }", "public function _setLotNo2($lotNo2) {\n\t\t$this->_lotNo2 = $lotNo2;\n\t}", "public function setLine2(?string $line2): self\n {\n $this->line2 = $line2;\n\n return $this;\n }", "public function setAddress(?string $value): void {\n $this->getBackingStore()->set('address', $value);\n }", "public function setReqAddress2($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->req_address2 !== $v) {\n\t\t\t$this->req_address2 = $v;\n\t\t\t$this->modifiedColumns[] = VpoRequestPeer::REQ_ADDRESS2;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function street2($street2) {\n $this->data['attachment']['payload']['address']['street_2'] = $street2;\n\n return $this;\n }", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n }", "public function getAddress2()\n {\n return $this->getValue('nb_icontact_prospect_address_2');\n }", "public function setAddress2(string $address_2 = null) : CNabuDataObject\n {\n $this->setValue('nb_icontact_prospect_address_2', $address_2);\n \n return $this;\n }", "public function setEditorial2($v)\n\t{\n\n\t\tif ($this->editorial2 !== $v || $v === false) {\n\t\t\t$this->editorial2 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL2;\n\t\t}\n\n\t}", "public function setAddress(Model_DbTable_Row_Address $address) {\n\t if ($address1 = $this->findParentRow(new Model_DbTable_Address())) {\n\t $addressData = $address->toArray();\n\t unset($addressData['id']);\n\t $address1->setFromArray($addressData);\n\t $address = $address1;\n\t }\n\n\t $this->_address = $address;\n\t}", "public function setAddress($address);", "public function setAddress($address);", "public function setBillingAddress2($value)\n {\n return $this->setParameter('billingAddress2', $value);\n }", "public function setAddress(string $address):void\n {\n $this->address = $address;\n }", "function setAddressTypeAdmin( $value )\n {\n $this->AddressTypeAdmin = $value;\n }", "public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }", "public function setAddress2($address2)\n {\n $this->address2 = $address2;\n\n return $this;\n }", "public function setAddressFromEsd($addr, esdAddress $esdAddress) {\n for ($i = 0; isset($esdAddress->street[$i]) && $i < 3; $i++)\n if ($i == 0)\n $addr->address->street[$i] = $esdAddress->street[$i]; // fixme: multiple?\n else \n $addr->address->street[] = $esdAddress->street[$i];\n \n $addr->address->city = $esdAddress->city;\n $addr->address->state = $esdAddress->state;\n if ($esdAddress->country)\n $addr->address->country = $esdAddress->country;\n $addr->address->postcode = $esdAddress->zip;\n $addr->phone = $esdAddress->telephone;\n }", "function setFieldLinks2($fieldLinks2) {\n if ($fieldLinks2 !== ($oldFieldLinks2 = $this->fieldLinks2)) {\n if ($this->immutable) throw self::immutableException();\n if (is_array($fieldLinks2)) {\n if (!$fieldLinks2) throw new Ac_E_InvalidCall(\"\\$fieldLinks2 must not be empty\");\n $this->fieldLinksRev2 = array_flip($fieldLinks2);\n } elseif ($fieldLinks2 === false) {\n $this->fieldLinksRev2 = false;\n } else {\n throw Ac_E_InvalidCall::wrongType('fieldLinks2', $fieldLinks2, array('array', 'false'));\n }\n $this->destNNIdsRelation = false;\n $this->fieldLinks2 = $fieldLinks2;\n }\n }", "public function getAddress2()\n {\n return $this->getParameter('billingAddress2');\n }", "public function setEventAddress($value) \n {\n $this->_fields['EventAddress']['FieldValue'] = $value;\n return;\n }", "public function setAddress(Address $address);", "public function setTwoEnds()\n {\n $line = $this->getLine();\n $twoEnds[0] = $line[0][0];\n $twoEnds[1] = $line[count($line)-1][1];\n $this->twoEnds = $twoEnds;\n }", "public function getPayerAddressStreet2() {\n\t\treturn $this->_getField(self::$PAYER_ADDRESS_STREET_2);\n\t}", "public function setShipaddress2($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->shipaddress2 !== $v) {\n $this->shipaddress2 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_SHIPADDRESS2] = true;\n }\n\n return $this;\n }", "public function setAddr($value)\n {\n return $this->set(self::_ADDR, $value);\n }", "public function setAddress($address) {\n\t\t$this->address = $address;\n\t}", "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 setImAddress($value)\n {\n $this->setProperty(\"ImAddress\", $value, true);\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}", "protected function setAddress($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 80, 640, 'UTF-8');\n\t\t}\n\t}", "public function getShippingAddress2()\n {\n return $this->getParameter('shippingAddress2');\n }", "public function set_adresse($_adresse)\n {\n $this->_adresse = $_adresse;\n\n return $this;\n }", "function setAddressType( &$value )\n {\n if( is_numeric( $value ) )\n {\n $this->AddressTypeID = $value;\n }\n \n if( get_class( $value ) == \"ezaddresstype\" )\n {\n $this->AddressTypeID = $value->id();\n }\n }", "public function setEmpAdresse1($empAdresse1) {\n $this->empAdresse1 = $empAdresse1;\n return $this;\n }", "public function setAddress($street1, $street2, $city, $state, $countrycode, $zip)\n {\n $this->street1 = rawurlencode($street1);\n $this->street2 = rawurlencode($street2);\n $this->city = rawurlencode($city);\n //Paypal wants iso state codes like CA or FL\n if($countrycode == \"US\" || $countrycode == \"CA\")\n {\n if(States::getStateByCode($state) == null)\n {\n //Check if it's a valid state name\n $stateInfo = States::getCodeByState($state);\n if($stateInfo != null)\n {\n $this->state = $stateInfo->stateCode;\n }\n else\n {\n $this->state = null;\n }\n }\n else\n {\n //Matched a valid state, we can use it\n $this->state = $state;\n }\n }\n $this->countrycode = strtoupper($countrycode);\n $this->zip = rawurlencode($zip);\n }", "public function setAddress($value)\n {\n \t$this->address = $value;\n \treturn $this;\n }", "public function setAddress($address)\n {\n $this->set('address', $address);\n }", "public function getShipaddress2()\n {\n return $this->shipaddress2;\n }", "public function getAddressLine2(): ?string;", "public function setAddress($address)\n {\n $this->address = $address;\n }", "public function setCorrespondentAddress($value) {\n\t\tself::$_correspondentAddress = $value;\n\t}", "public function setAddress1($value)\n {\n parent::setValue('address1', $value);\n\n return $this;\n }", "function &street1( )\n {\n return $this->Street1;\n }", "public function set_list_address($add)\n\t{\n\t\t$this->list_address = $add;\n\t\treturn TRUE;\n\t}", "public function setStreetAddress($value) {\n\t\tself::$_streetAddress = $value;\n\t}", "public function getBillingAddress2()\n {\n return $this->getParameter('billingAddress2');\n }" ]
[ "0.68240243", "0.66204965", "0.66204965", "0.6612199", "0.6602968", "0.66026497", "0.66026497", "0.644116", "0.62798226", "0.61825335", "0.59780204", "0.5875645", "0.5875645", "0.57634723", "0.5741063", "0.5695427", "0.5545948", "0.553791", "0.5530153", "0.5529806", "0.55154973", "0.54981476", "0.5497944", "0.54846126", "0.54661036", "0.5462869", "0.5444734", "0.5422539", "0.5403925", "0.5403925", "0.5403925", "0.5400279", "0.53986686", "0.53542644", "0.53458726", "0.53323174", "0.5330274", "0.53297955", "0.53259194", "0.52868146", "0.52861935", "0.5282125", "0.5272236", "0.52539176", "0.5245193", "0.52369696", "0.5231384", "0.52162045", "0.52098715", "0.5189217", "0.51312524", "0.51059747", "0.50954455", "0.5082852", "0.5070479", "0.5069982", "0.5057886", "0.5050116", "0.5048533", "0.5005155", "0.49902388", "0.4984081", "0.4984081", "0.49652848", "0.4959272", "0.49441057", "0.49199128", "0.491321", "0.4907785", "0.48988903", "0.489667", "0.48940772", "0.4878091", "0.48705414", "0.48596898", "0.48570538", "0.48536733", "0.4852434", "0.4849392", "0.4849392", "0.4846927", "0.48440877", "0.48096693", "0.4800625", "0.47867334", "0.47683656", "0.47624737", "0.47465897", "0.47358468", "0.47202343", "0.471883", "0.47167954", "0.47125924", "0.471204", "0.47052172", "0.4704216", "0.4702193", "0.46995223", "0.46866208" ]
0.74391973
1
Set the etbl adresse3.
Установите адрес etbl adresse3.
public function setEtblAdresse3($etblAdresse3) { $this->etblAdresse3 = $etblAdresse3; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEtblAdresse3() {\n return $this->etblAdresse3;\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 setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }", "public function setEtblAdresse2($etblAdresse2) {\n $this->etblAdresse2 = $etblAdresse2;\n return $this;\n }", "public function setLlx($llx) {}", "public function _setLotNo3($lotNo3) {\n\t\t$this->_lotNo3 = $lotNo3;\n\t}", "function setStreet2( &$value )\n {\n $this->Street2 = $value;\n }", "public function setLocalAddress(string $address): void {}", "public function set_address($new) {\n\t\t$this->CI->api->dns->modify->zone_address($this->zone, $this->address, 'address', $new);\n\t\t$this->hostname = $new;\n\t}", "public function setBilladdress3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->billaddress3 !== $v) {\n $this->billaddress3 = $v;\n $this->modifiedColumns[OrdrhedTableMap::COL_BILLADDRESS3] = true;\n }\n\n return $this;\n }", "public function setLine3($line3)\n {\n $this->json()->line3 = $line3;\n }", "function setAddress( $postoffice='', $extended='', $street='', $city='', $region='', $zip='', $country='', $type='HOME;POSTAL' )\n {\n // $type may be DOM | INTL | POSTAL | PARCEL | HOME | WORK or any combination of these: e.g. \"WORK;PARCEL;POSTAL\"\n $key = 'ADR';\n if ( $type != '' ) {\n $key .= ';'. $type;\n }\n $key.= ';ENCODING=QUOTED-PRINTABLE';\n $this->properties[$key] = encode( $postoffice ) . ';' . encode( $extended ) .';'. encode( $street ) .';'. encode( $city ) .';'. encode( $region) .';'. encode( $zip ) .';'. encode( $country );\n }", "function setAddress($add) {\n if ( strpos($add->value, \"BEGIN:VCARD\") || strpos($add->value, \"begin:vcard\") )\n $add->type = 'text/directory';\n else\n $add->type = 'text/plain';\n $this->address = $add;\n $changed = true;\n }", "function setStreet1( &$value )\n {\n $this->Street1 = $value;\n }", "public function setAddress($val)\n {\n $this->_propDict[\"address\"] = $val;\n return $this;\n }", "public function setEditorial3($v)\n\t{\n\n\t\tif ($this->editorial3 !== $v || $v === false) {\n\t\t\t$this->editorial3 = $v;\n\t\t\t$this->modifiedColumns[] = MmPeer::EDITORIAL3;\n\t\t}\n\n\t}", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function getEtblAdresse1() {\n return $this->etblAdresse1;\n }", "public function setAddress($value)\n {\n $this->_address = $value;\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 setAddress($data=null) {\n if(!is_array($data)) {\n $b = $this->getBilling();\n $p = $this->getPayment();\n $data = array(\n 'STREET' => $b['address'],\n 'STREET2' => $b['address2'],\n 'CITY' => $b['city'],\n 'STATE' => $b['state'],\n 'COUNTRYCODE' => $b['country'],\n 'ZIP' => $b['zip'],\n 'SHIPTOPHONENUM' => $p['phone']\n );\n }\n $this->_payerAddress = $data;\n }", "protected function update_network_to_1_3_0() {\n\n\t\t$this->update_points_type_settings_to_1_3_0();\n\t}", "public function set_address_2( $address ) {\n\t\t$this->set_prop( 'address_2', $address );\n\t}", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\n }", "public function getEtblAdresse2() {\n return $this->etblAdresse2;\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 setT3Hashes() {}", "public function set_address_1( $address ) {\n\t\t$this->set_prop( 'address_1', $address );\n\t}", "public function setAddress(string $address):void\n {\n $this->address = $address;\n }", "function setAdresse($adresse){\n if(empty($adresse)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n }\n //on declare de la variable adresse puis on appelle la varibale prive adresse\n $this->_adresse = $adresse;\n }", "public function setAddress1($fv_address1)\n {\n \tif(!empty($fv_address1))\n \t{\n \t\treturn $this->fv_address1 = $fv_address1;\n \t}\n $this->fv_error_message = $this->fv_error_message .'<br> - Direccion 1 '.ERROR_NULL;\n\n return $this->fv_address1 = null;\n }", "public function setAddress(Model_DbTable_Row_Address $address) {\n\t if ($address1 = $this->findParentRow(new Model_DbTable_Address())) {\n\t $addressData = $address->toArray();\n\t unset($addressData['id']);\n\t $address1->setFromArray($addressData);\n\t $address = $address1;\n\t }\n\n\t $this->_address = $address;\n\t}", "public function setAddress($address);", "public function setAddress($address);", "public function setAddress($address) {\n\t\t$this->address = $address;\n\t}", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\n }", "protected function set_url_this_edit($val){ $this->input ['edit_url'] = $val ; }", "public function setAddressFromEsd($addr, esdAddress $esdAddress) {\n for ($i = 0; isset($esdAddress->street[$i]) && $i < 3; $i++)\n if ($i == 0)\n $addr->address->street[$i] = $esdAddress->street[$i]; // fixme: multiple?\n else \n $addr->address->street[] = $esdAddress->street[$i];\n \n $addr->address->city = $esdAddress->city;\n $addr->address->state = $esdAddress->state;\n if ($esdAddress->country)\n $addr->address->country = $esdAddress->country;\n $addr->address->postcode = $esdAddress->zip;\n $addr->phone = $esdAddress->telephone;\n }", "public function useAdminLte3()\n {\n $this->presets = Presets::ADMIN_LTE_3;\n\n return $this;\n }", "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 setProdAlt3($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->prod_alt3 !== $v) {\n $this->prod_alt3 = $v;\n $this->modifiedColumns[TblProdInfoTableMap::COL_PROD_ALT3] = true;\n }\n\n return $this;\n }", "public function setAddress(Address $address);", "public function getAddressLine3(): ?string;", "private function setAttributeDataProvider(Template $block): void\n {\n $attributeData = Bootstrap::getObjectManager()->get(AddressAttributeData::class);\n $block->setAttributeData($attributeData);\n }", "function alterar($id_n3, $id_tema, $id_n2, $publicado, $n3_perfil, $ordem, $dbhw) {\n\tglobal $esquemaadmin;\n\t$dataCol = array(\n\t\t\t\"publicado\" => $publicado,\n\t\t\t\"id_tema\" => $id_tema,\n\t\t\t\"ordem\" => $ordem,\n\t\t\t\"n3_perfil\" => $n3_perfil\n\t);\n\t$resultado = i3GeoAdminUpdate($dbhw,\"i3geoadmin_n3\",$dataCol,\"WHERE id_n3 = $id_n3\");\n\tif ($resultado === false) {\n\t\treturn false;\n\t}\n\treturn $id_n3;\n}", "protected function setAddress($value)\n\t{\n\t\t$this->setTextFont(10);\n\t\tfor($i=0;$i<$this->copies;$i++){\n\t\t\t$this->_getPdf()->pages[$i]->drawText($value, 80, 640, 'UTF-8');\n\t\t}\n\t}", "public function __construct($addr) {\n $this->addr = $addr;\n }", "public function setAddress($address)\n {\n $this->address = $address;\n }", "public function setAddress1($address1)\r\n {\r\n $this->_address1 = $address1;\r\n }", "function setAddressTypeAdmin( $value )\n {\n $this->AddressTypeAdmin = $value;\n }", "public function setAddress($address)\n {\n $this->set('address', $address);\n }", "public function _setExpDate3($expDate3) {\n\t\t$this->_expDate3 = $expDate3;\n\t}", "public function setAddress(?string $value): void {\n $this->getBackingStore()->set('address', $value);\n }", "public function testSetGrilleAnc3() {\n\n $obj = new Employes();\n\n $obj->setGrilleAnc3(\"grilleAnc3\");\n $this->assertEquals(\"grilleAnc3\", $obj->getGrilleAnc3());\n }", "public function setAddr($var)\n {\n GPBUtil::checkString($var, False);\n $this->addr = $var;\n\n return $this;\n }", "public function setAddress2($address2)\r\n {\r\n $this->_address2 = $address2;\r\n }", "public function setEmail3($value)\n {\n return $this->set('Email3', $value);\n }", "public function setTelefone3($telefone3)\n {\n $this->telefone3 = $telefone3;\n\n return $this;\n }", "public function setDataArray($vals) {\n\t\tif (!is_array($vals) || sizeof($vals) != 1)\n\t\t\tthrow new exception(\"Illegal array set into data_address\");\n\t\t$as=explode('|',$vals[0]);\n\t\t$this->country=$as[0];\n\t\tif ($this->country == 'USA') {\n\t\t\tif (sizeof($as) != 6)\n\t\t\t\tthrow new exception(\"badly formatted us address: {$vals[0]}\");\n\t\t\tlist($this->country,$this->line1,$this->line2,$this->city,$this->state,$this->zip)=$as;\t\n\t\t} else {\n\t\t\tthrow new exception('international addresses not implemented yet');\n\t\t}\t\n\t}", "function setAddressType( &$value )\n {\n if( is_numeric( $value ) )\n {\n $this->AddressTypeID = $value;\n }\n \n if( get_class( $value ) == \"ezaddresstype\" )\n {\n $this->AddressTypeID = $value->id();\n }\n }", "public function setEventAddress($value) \n {\n $this->_fields['EventAddress']['FieldValue'] = $value;\n return;\n }", "public function setUseForLocalAddresses($val)\n {\n $this->_propDict[\"useForLocalAddresses\"] = $val;\n return $this;\n }", "public function setAddress($address) {\n\n $this->address = htmlspecialchars(strip_tags($address), ENT_QUOTES, 'utf-8');\n \n if (empty(trim($this->address))) {\n $this->valid = false;\n }\n\n }", "public function setImAddress($value)\n {\n $this->setProperty(\"ImAddress\", $value, true);\n }", "public function setUseIPAddress($use_ipaddr) \n \t{\n \t\t$this->use_ipaddr = $use_ipaddr;\n \t}", "protected function setUrl() {\r\n\t\t$this->url = htmlspecialchars(t3lib_div::getIndpEnv('TYPO3_REQUEST_URL'), ENT_QUOTES);\r\n\t}", "public function setAddr($value)\n {\n return $this->set(self::_ADDR, $value);\n }", "public function setStreetAddress($value) {\n\t\tself::$_streetAddress = $value;\n\t}", "protected function set_url_this_view($val){ $this->input ['table_url'] = $val ; }", "public function testSetTaux3() {\n\n $obj = new Employes();\n\n $obj->setTaux3(10.092018);\n $this->assertEquals(10.092018, $obj->getTaux3());\n }", "function setEntireAddress($address1, $address2, $city, $state, $zipCode)\n\t{\n\t\t$this->setAddress1($address1);\n\t\t$this->setAddress2($address2);\n\t\t$this->setCity($city);\n\t\t$this->setState($state);\n\t\t$this->setZipCode($zipCode);\n\t}", "public function setAddress($v)\n {\n if ($v !== null) {\n $v = (string) $v;\n }\n\n if ($this->address !== $v) {\n $this->address = $v;\n $this->modifiedColumns[] = EventPeer::ADDRESS;\n }\n\n\n return $this;\n }", "public static function addressExtendedAddress()\n {\n return new TextNode('address_extended_address');\n }", "public function testSetAdresseEmploye() {\n\n $obj = new AttestationCacm();\n\n $obj->setAdresseEmploye(\"adresseEmploye\");\n $this->assertEquals(\"adresseEmploye\", $obj->getAdresseEmploye());\n }", "public function setAdresse($adresse)\n {\n $this->adresse = $adresse;\n }", "public function setEtblMail($etblMail) {\n $this->etblMail = $etblMail;\n return $this;\n }", "public function set_list_address($add)\n\t{\n\t\t$this->list_address = $add;\n\t\treturn TRUE;\n\t}", "public function renderAddress()\n {\n echo $this->getAddressStringSingleLine();\n }", "public function setMainAddress($data){\n\t\tglobal $dbh;\n\t\t$fields = array(\n\t\t\t\"nombre\",\n\t\t\t\"receptorNombre\",\n\t\t\t\"receptorApellido\",\n\t\t\t\"nombreEmpresa\",\n\t\t\t\"facturacion\",\n\t\t\t\"principal\",\n\t\t\t\"idCliente\",\n\t\t\t\"direccion\",\n\t\t\t\"fono\",\n\t\t\t\"cel\",\n\t\t\t\"idZona\",\n\t\t\t\"id\"\n\t\t);\n\t\t$query = \"UPDATE direccion SET nombre=?,receptorNombre=?,receptorApellido=?,nombreEmpresa=?,facturacion=?,principal=?,idCliente=?,direccion=?,fono=?,cel=?,idZona=? WHERE id=?;\";\n\t\t$update = array();\n\t\t$old = $this->getMainAddress();\n\t\tif( $data!=null && is_array($data) ){\n\t\t\tforeach( $fields as $field ){\n\t\t\t\t$update[$field] = null;\n\t\t\t\tif( isset($data[$field]) && !empty($data[$field]) ){\n\t\t\t\t\t$update[$field] = $data[$field];\n\t\t\t\t} else {\n\t\t\t\t\t$update[$field] = $old[$field];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$res = $dbh->query($query,$update);\n\t\t\treturn $res;\n\t\t}\n\t\treturn false;\n\t}", "public function setEtblCommune($etblCommune) {\n $this->etblCommune = $etblCommune;\n return $this;\n }", "public function setCorrespondentAddress($value) {\n\t\tself::$_correspondentAddress = $value;\n\t}", "public function setAddress($value)\n {\n \t$this->address = $value;\n \treturn $this;\n }", "public function setAddress(Ipagare_PagSeguroDireto_Domain_Address $address) {\n $this->address = $address;\n }", "public function setAddress($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->address !== $v) {\n\t\t\t$this->address = $v;\n\t\t\t$this->modifiedColumns[] = UserPeer::ADDRESS;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setEtblCodePostal($etblCodePostal) {\n $this->etblCodePostal = $etblCodePostal;\n return $this;\n }", "public function getBilladdress3()\n {\n return $this->billaddress3;\n }", "public function setAddress1($address1)\n {\n $this->address1 = $address1;\n }", "public function withLineAddress($type, $line1, $line2, $line3, $city, $region, $postalCode, $country)\n {\n $li = $this->getMostRecentLineIndex();\n $this->_model['lines'][$li]['addresses'][$type] = [\n 'line1' => $line1,\n 'line2' => $line2,\n 'line3' => $line3,\n 'city' => $city,\n 'region' => $region,\n 'postalCode' => $postalCode,\n 'country' => $country\n ];\n return $this;\n }", "public static function setHost($val) \n { \n emailSettings::$host = $val; \n }", "public function setData( $data ) {\n\t\t$this->data = $data;\n\t\t$this->addField( new ACHRecordField([4,83], $data) );\n\t}", "public function setUdl($udl)\n\t{\n\t\t$this->_udl = $udl;\n\t}", "public function setEtabLieuTravail($etabLieuTravail) {\n $this->etabLieuTravail = $etabLieuTravail;\n return $this;\n }", "public function setAddressSrc( /*string*/$Email )// : void\n\t{\n\t\t$this -> addressSrc = $Email;\n\t}", "public function testSetPrixVente3() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixVente3(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixVente3());\n }", "public function setAddress($type, $street, $number, $district, $city, $state, $zip, $complement = null, $country = self::ADDRESS_COUNTRY)\n\t{\n\t\t$address = new stdClass();\n\t\t$address->street = $street;\n\t\t$address->streetNumber = $number;\n\t\t$address->complement = $complement;\n\t\t$address->district = $district;\n\t\t$address->city = $city;\n\t\t$address->state = $state;\n\t\t$address->country = $country;\n\t\t$address->zipCode = $zip;\n\n\t\t$this->data->billingAddress = $address;\n\n\t\treturn $this;\n\t}", "public function setIpReferenceData(?array $value): void {\n $this->getBackingStore()->set('ipReferenceData', $value);\n }", "public function edit(Address $address)\n\t{\n\t\t//\n\t}", "public function set($param, $id)\n {\n $sentence = new SentenceUtil();\n $sentence->addCommand(\"/ip/address/set\");\n foreach ($param as $name => $value) {\n $sentence->setAttribute($name, $value);\n }\n $sentence->where(\".id\", \"=\", $id);\n $this->talker->send($sentence);\n return \"Sucsess\";\n }" ]
[ "0.64634407", "0.5929654", "0.5929654", "0.56583685", "0.56583685", "0.5626059", "0.53908724", "0.5274686", "0.52228135", "0.5222413", "0.5213579", "0.5201986", "0.516101", "0.5155293", "0.50844854", "0.5083218", "0.50007576", "0.49835464", "0.49835464", "0.4975157", "0.49181688", "0.49181688", "0.4895634", "0.48901504", "0.48834684", "0.48689824", "0.48689824", "0.4851468", "0.48222947", "0.48215365", "0.48095414", "0.4791483", "0.47905406", "0.4765051", "0.47381827", "0.47381827", "0.4725015", "0.4717989", "0.4634442", "0.46270403", "0.4617335", "0.46037695", "0.46031165", "0.45983714", "0.45978907", "0.4595314", "0.45859635", "0.45858932", "0.4567779", "0.4566708", "0.4560035", "0.45179772", "0.45174116", "0.4516203", "0.45153928", "0.45138896", "0.4510777", "0.4510183", "0.4506806", "0.44902048", "0.44854027", "0.44833055", "0.44830433", "0.44798097", "0.44716954", "0.44714534", "0.4466611", "0.44556358", "0.4446688", "0.44454443", "0.4439411", "0.44318324", "0.44089755", "0.4401884", "0.43956903", "0.4392686", "0.43885607", "0.4365142", "0.43493757", "0.43475637", "0.43448305", "0.43243563", "0.43234715", "0.43190208", "0.43165103", "0.43150324", "0.43142182", "0.43017408", "0.4297798", "0.42873946", "0.42778856", "0.42751414", "0.4273445", "0.4272152", "0.4269753", "0.4257834", "0.42556944", "0.42460215", "0.4237533", "0.42338845" ]
0.7314218
0
Set the etbl tel.
Установите etbl tel.
public function setEtblTel($etblTel) { $this->etblTel = $etblTel; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 set_tel($_tel)\n {\n $this->_tel = $_tel;\n\n return $this;\n }", "public function getEtblTel() {\n return $this->etblTel;\n }", "public function getEtblTel() {\n return $this->etblTel;\n }", "public function testSetEtblTel() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblTel(\"etblTel\");\n $this->assertEquals(\"etblTel\", $obj->getEtblTel());\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 }", "public function testSetTel() {\n\n $obj = new AppelsEnCours();\n\n $obj->setTel(\"tel\");\n $this->assertEquals(\"tel\", $obj->getTel());\n }", "public function setTel($Tel)\n {\n $this->Tel = $Tel;\n\n return $this;\n }", "private function setTelephone()\n {\n \tif ( empty($_POST['telephone'] ) ) {\n $this->data['error']['telephone'] = 'Please provide a valid phone number.';\n $this->error = true;\n return;\n }\n\t\n $t = trim( $_POST['telephone'] );\n \n\t\t// Remove non-digits.\n\t\t$t = preg_replace('/[^0-9]/', '', $t);\n\t\n\t\t// Make sure it's 10 digits.\n\t\tif ( strlen($t) != 10 ) {\n\t\t\t$this->data['error']['telephone'] = 'Please provide a valid phone number.';\n $this->error = true;\n return;\n\t\t}\n\t\n $this->data['telephone'] = $t;\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 getTel()\n {\n return $this->tel;\n }", "public function setEmpTel($empTel) {\n $this->empTel = $empTel;\n return $this;\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 get_tel()\n {\n return $this->_tel;\n }", "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 ETelepHoneNum($etel, $euid) {\n $euid = mysqli_real_escape_string($this->db, $euid);\n mysqli_query($this->db,\"UPDATE users SET tel='$etel' WHERE uid='$euid'\") or die(mysqli_error($this->db));\n}", "public function getEmpTel() {\n return $this->empTel;\n }", "public function setTelefono($_telefono)\n {\n $this->telefono = $_telefono;\n }", "public function testSetTelPoste() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPoste(\"telPoste\");\n $this->assertEquals(\"telPoste\", $obj->getTelPoste());\n }", "public function setTelefonoClinica($tel) {\r\n $this->_telefono = $tel;\r\n }", "function setNum_teleco($snum_teleco = '')\n {\n $this->snum_teleco = $snum_teleco;\n }", "function setTipo_teleco($stipo_teleco = '')\n {\n $this->stipo_teleco = $stipo_teleco;\n }", "public function testSetTel1() {\n\n $obj = new Employes();\n\n $obj->setTel1(\"tel1\");\n $this->assertEquals(\"tel1\", $obj->getTel1());\n }", "public function setTel_user($tel_user)\r\n {\r\n $this->tel_user = $tel_user;\r\n\r\n return $this;\r\n }", "public function setTermChar($termChar)\n\t\t{\n\t\t//example if your asking enter amount, user can enter any input \n\t\t// 1 - n number exampe 1 or 20 2000 etc\n\t\t//then ask cutomer to enter amount followed by hash set termchar=# \n\t\t//set maxdigits=<maximum number to be allowed>\n\t\t\n\t\t\t$this->collect_dtmf->setAttribute(\"t\", $termChar);\n\t\t\t\n\t\t}", "public function setEtblFax($etblFax) {\n $this->etblFax = $etblFax;\n return $this;\n }", "public function ov_tel($name, $value = ''){\n $args = func_get_args(); array_shift($args); array_shift($args);\n return $this->generate_input('tel', $name, $value, true, $args);\n }", "public function setTelefone($value,$options=array('required'=>true)){ \n $this->_data['telefone'] = new ZendT_Type_String($value,array('mask'=>array (\n 0 => '99 9.9999-9999',\n 1 => '99 9999-9999',\n 2 => '9999-9999',\n 3 => '9.9999-9999',\n)\n ,'charMask'=>'9'\n ,'filterDb'=>array (\n 0 => '',\n)\n ,'filter'=>array('trim', 'strtoupper', 'removeAccent', )));\n if ($options['db'])\n $this->_data['telefone']->setValueFromDb($value);\n \n if (!$options['db']){\n \n $valid = new Zend_Validate_StringLength(array ( 'max' => 45, ) );\n $valueValid = $this->_data['telefone']->getValueToDb();\n if ($valueValid && !$valid->isValid($valueValid)){\n throw new ZendT_Exception_Business(implode(\"\\n\",$valid->getMessages()));\n }\n \n }\n return $this;\n }", "public function setTelefono($telefono)\n\t\t{\n\t\t$this->telefono = $telefono;\n\t\t}", "public function getTelEnseignantRef()\n {\n return $this->telEnseignantRef;\n }", "public function setTelephone($telephone) {\n\t\t$this->telephone = $telephone;\n\t}", "public function setTelefono($telefono) {\n\t\t$this->telefono = $telefono;\n\t}", "public function set_telefone($telefone) : void\n {\n try {\n $this->obj_contato_anunciante->set_telefone(Validador::Contato_Anunciante()::validar_telefone($telefone));\n } catch (Exception $e) {\n $this->erros[] = $e->getMessage();\n $this->campos['telefone'] = \"erro\";\n }\n }", "public function setEtblMail($etblMail) {\n $this->etblMail = $etblMail;\n return $this;\n }", "public function setTelContact($telContact) {\n $this->telContact = $telContact;\n return $this;\n }", "public function setEtabLieuTravail($etabLieuTravail) {\n $this->etabLieuTravail = $etabLieuTravail;\n return $this;\n }", "public function testSetTelDirect() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelDirect(\"telDirect\");\n $this->assertEquals(\"telDirect\", $obj->getTelDirect());\n }", "public function setTelephone($telephone)\n {\n $this->telephone = $telephone;\n }", "public function setEtat($etat)\n {\n $this->etat = $etat;\n\n return $this;\n }", "public function setTelNr($TelNr = null, $countryCode = null)\n {\n if (is_null($TelNr)) {\n $this->TelNr = null;\n } else {\n if ($countryCode && class_exists(PhoneNumberUtil::class)) {\n $phoneUtil = PhoneNumberUtil::getInstance();\n $parsedNumber = $phoneUtil->parse($TelNr, $countryCode);\n $TelNr = $phoneUtil->format($parsedNumber, PhoneNumberFormat::E164);\n }\n\n $this->TelNr = $TelNr;\n }\n\n return $this;\n }", "function setEol($eol)\n\t{\n\t\t$this->eol = $eol;\n\t}", "function minorite_phone($variables) {\n $element = $variables['element'];\n $element['#attributes']['type'] = 'tel';\n element_set_attributes($element, array('id', 'name', 'value', 'size', 'maxlength'));\n _form_set_class($element, array('form-tel'));\n\n // Adds attributes required and readonly.\n if (!empty($element['#required'])) {\n $element['#attributes']['required'] = '';\n }\n if (!empty($element['#readonly'])) {\n $element['#attributes']['readonly'] = 'readonly';\n }\n\n return '<input' . drupal_attributes($element['#attributes']) . ' />';\n}", "public function testSetTelPortable1() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable1(\"telPortable1\");\n $this->assertEquals(\"telPortable1\", $obj->getTelPortable1());\n }", "function setPhone($newPhone){\n //check if the phone number is numeric\n if(is_numeric($newPhone)) {\n $this->phone = $newPhone;\n }\n //if not set to default, 0000000000\n $this->phone = \"0000000000\";\n }", "public function setLlx($llx) {}", "public function testSetTelConjoint() {\n\n $obj = new Employes();\n\n $obj->setTelConjoint(\"telConjoint\");\n $this->assertEquals(\"telConjoint\", $obj->getTelConjoint());\n }", "public function setTelefone($ddd, $numero) {\n\t\t$this->checkoutTransparente['cliente']['senderAreaCode'] = $ddd;\n\t\t$this->checkoutTransparente['cliente']['senderPhone'] = $numero;\n\n\t\t$this->checkoutTransparente['cartao']['creditCardHolderAreaCode'] = $ddd;\n\t\t$this->checkoutTransparente['cartao']['creditCardHolderPhone'] = $numero;\n\n\t\treturn $this;\n\t}", "public function testSetTds139() {\n\n $obj = new Employes();\n\n $obj->setTds139(\"tds139\");\n $this->assertEquals(\"tds139\", $obj->getTds139());\n }", "public function getTelContact() {\n return $this->telContact;\n }", "public function testSetNumeroCarteTravail() {\n\n $obj = new Employes();\n\n $obj->setNumeroCarteTravail(\"numeroCarteTravail\");\n $this->assertEquals(\"numeroCarteTravail\", $obj->getNumeroCarteTravail());\n }", "public function setFiltroTelefono($fil='') {\n $this->filtroTelefono = $this->arreglarFiltro($fil);\n $this->filtrarPersonas();\n }", "public function getTel_user()\r\n {\r\n return $this->tel_user;\r\n }", "public function setTelefone($v)\n\t{\n\t\tif ($v !== null) {\n\t\t\t$v = (string) $v;\n\t\t}\n\n\t\tif ($this->telefone !== $v) {\n\t\t\t$this->telefone = $v;\n\t\t\t$this->modifiedColumns[] = UsuarioPeer::TELEFONE;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function setTelefono($_telefono)\n {\n $this->_telefono = $_telefono;\n\n return $this;\n }", "public function getTel_partner()\n {\n return $this->tel_partner;\n }", "public static function phone()\n {\n return new TextNode('phone');\n }", "public function setTelnyxCode($telnyxCode)\n {\n $this->telnyxCode = $telnyxCode;\n }", "public function setTel_partner($tel_partner)\n {\n $this->tel_partner = $tel_partner;\n\n return $this;\n }", "public function set_telephone_number( $number ) {\n\t\treturn $this->set_field( 'OWNERTELNO', $number );\n\t}", "function setDesc_teleco($sdesc_teleco = '')\n {\n $this->sdesc_teleco = $sdesc_teleco;\n }", "public function setTelEnseignantRef($telEnseignantRef)\n {\n $this->telEnseignantRef = $telEnseignantRef;\n\n return $this;\n }", "public function setTelefone($telefone)\n {\n $this->telefone = $telefone;\n\n return $this;\n }", "public function testSetEtat() {\n\n $obj = new PointBonTrav();\n\n $obj->setEtat(\"etat\");\n $this->assertEquals(\"etat\", $obj->getEtat());\n }", "public function testSetTelPortable2() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPortable2(\"telPortable2\");\n $this->assertEquals(\"telPortable2\", $obj->getTelPortable2());\n }", "public function testSetEtblFax() {\n\n $obj = new AttestationCacm();\n\n $obj->setEtblFax(\"etblFax\");\n $this->assertEquals(\"etblFax\", $obj->getEtblFax());\n }", "public function testSetTelPerso() {\n\n $obj = new Collaborateurs();\n\n $obj->setTelPerso(\"telPerso\");\n $this->assertEquals(\"telPerso\", $obj->getTelPerso());\n }", "function SetPort($namePort = \"\") {\n $archivo = 'C:\\IntTFHKA\\Puerto.dat';\n $fp = fopen($archivo, \"w\");\n $string = \"\";\n $write = fputs($fp, $string);\n $string = $namePort;\n $write = fputs($fp, $string);\n fclose($fp);\n\n $this->NamePort = $namePort;\n }", "public function setTipRtbus($value) {\n return $this->set(self::TIP_RTBUS, $value);\n }", "function changeNumber() {\r\n\t\r\n\t\t//set phone number as is, with () and - in it.\r\n\t\t$phoneNumber = $this->phone_number;\r\n\r\n\t\t//seperate phone number into 3 parts\r\n\t\t$phoneNum1 = substr($phoneNumber, -13, 3);\r\n\t\t$phoneNum2 = substr($phoneNumber, -8, 3);\r\n\t\t$phoneNum3 = substr($phoneNumber, -4, 4);\r\n\t\t\r\n\t\t//combine three parts of phone number into one.\r\n\t\t$phoneNumberFull = $phoneNum1 . $phoneNum2 . $phoneNum3;\r\n\r\n\t\t//change phoneNumber data for specific carrier\r\n\t\t$phoneCarrier = $this->carrier;\r\n\t\t\r\n\t\tswitch($phoneCarrier) {\r\n\t\t\t//Verizon\r\n\t\t\tcase \"verizon\":\r\n\t\t\t\t$phoneNumberFull .= \"@vtext.com\";\r\n\t\t\t\tbreak;\r\n\t\t\t//AT & T\r\n\t\t\tcase \"at&t\":\r\n\t\t\t\t$phoneNumberFull .= \"@txt.att.net\";\r\n\t\t\t\tbreak;\r\n\t\t\t//Sprint\r\n\t\t\tcase \"sprint\":\r\n\t\t\t\t$phoneNumberFull .= \"@messaging.sprintpcs.com\";\r\n\t\t\t\tbreak;\r\n\t\t\t//T-Mobile\r\n\t\t\tcase \"tmobile\":\r\n\t\t\t\t$phoneNumberFull .= \"@tmomail.net\";\r\n\t\t\t\tbreak;\r\n\t\t\t//Default case where error occurred.\r\n\t\t\tdefault:\r\n\t\t\t\tdie(\"Converting phoneNumber failed.<br />\");\r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\t//assigns phone number to event class\r\n\t\t$this->phone_number = $phoneNumberFull;\r\n\t\r\n\t}", "public function setEtblCommune($etblCommune) {\n $this->etblCommune = $etblCommune;\n return $this;\n }", "protected function set_url_this_edit($val){ $this->input ['edit_url'] = $val ; }", "public function setRound( $rx )\n {\n $this->addAttribute('rx', $rx );\n }", "public function getTelefone()\n {\n return $this->telefone;\n }", "public function setCep( $cep )\n\t{\t\n\t\t/**\n\t\t * Armazena Cep do cliente\n\t\t * @name $cep\n\t\t */\n\t\t$this->cep = $cep;\n\t}", "public static function setPassword($val) \n { \n emailSettings::$password = $val; \n }", "protected function setTo() {}", "public function setEtblCodePostal($etblCodePostal) {\n $this->etblCodePostal = $etblCodePostal;\n return $this;\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 getTelefone()\n\t{\n\t\treturn $this->telefone;\n\t}", "public function setLenumero(int $lenumero)\n {\n $lenumero= (int)$lenumero;\n //checking numero is empty\n if(empty($lenumero)){ \n trigger_error('The number is not correct');\n }else{\n $this->lenumero = $lenumero;\n }\n }", "function setTo($to_set){\n\t\t\t$this->to=$to_set;\n\t\t}", "public function setTelevision($television)\n {\n $this->television = $television;\n\n return $this;\n }", "function telto($phone) {\n\treturn str_replace(['+', '(', ')', '-', ' '], '', $phone);\n}", "public function getTelephone()\n {\n return $this->telephone;\n }", "public function setPort( $port )\n\t{\n\t\t$this->port = $port;\n\t\t$this->modified = true;\n\t}", "public function testSetTelPersAPrevenir() {\n\n $obj = new Employes();\n\n $obj->setTelPersAPrevenir(\"telPersAPrevenir\");\n $this->assertEquals(\"telPersAPrevenir\", $obj->getTelPersAPrevenir());\n }", "public function setTelephone(string $telephone)\n {\n $this->telephone = $telephone;\n\n return $this;\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 getTelephone()\n {\n return $this->telephone;\n }" ]
[ "0.68898445", "0.66195256", "0.6604832", "0.6604832", "0.6494497", "0.626511", "0.626511", "0.626511", "0.61205685", "0.6105368", "0.6092171", "0.6055104", "0.6030813", "0.6030813", "0.6030813", "0.6030813", "0.5964175", "0.5950645", "0.5936094", "0.57648075", "0.56926656", "0.5621206", "0.55824524", "0.55762637", "0.5575172", "0.5572218", "0.5562306", "0.54831564", "0.5467793", "0.54337597", "0.53327364", "0.529646", "0.527985", "0.5226652", "0.5194718", "0.51660347", "0.5156126", "0.5138578", "0.5126837", "0.51044226", "0.5056663", "0.50405765", "0.50344247", "0.50224394", "0.50070935", "0.49821794", "0.49504748", "0.4948106", "0.4940148", "0.49053624", "0.48853558", "0.48740116", "0.48656622", "0.48625046", "0.4832658", "0.48266017", "0.48216322", "0.4816381", "0.48116025", "0.47986054", "0.47709993", "0.47676155", "0.47590405", "0.47181976", "0.4705851", "0.4702082", "0.46964937", "0.4690879", "0.4678513", "0.4675887", "0.4671104", "0.4652755", "0.4643888", "0.4626308", "0.46014574", "0.4591245", "0.45904136", "0.45884928", "0.45837557", "0.45788684", "0.4572601", "0.4572126", "0.45705324", "0.45705324", "0.45651916", "0.45609683", "0.45543748", "0.45542806", "0.45527777", "0.4544938", "0.45439363", "0.45343015", "0.45334008", "0.4524201", "0.4524201", "0.4524201", "0.4524201", "0.4524201", "0.4524201" ]
0.7437214
1
Set the montant general.
Установите общий объем.
public function setMontantGeneral($montantGeneral) { $this->montantGeneral = $montantGeneral; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "public function getMontantGeneral() {\n return $this->montantGeneral;\n }", "abstract public function setMetas();", "public function setMontantTva($montantTva) {\n $this->montantTva = $montantTva;\n return $this;\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 getMontant() {\n return $this->montant;\n }", "public function testSetMontant() {\n\n $obj = new PointBonTrav();\n\n $obj->setMontant(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant());\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function getMontant()\n {\n return $this->montant;\n }", "public function setMontantTes($montantTes) {\n $this->montantTes = $montantTes;\n return $this;\n }", "public function setMontant_taxe(float $montant_taxe)\n {\n $this->montant_taxe = $montant_taxe;\n\n return $this;\n }", "public function setDefaultMetas($activ = false)\n {\n $this->defMetas = $activ;\n }", "public function setMontacargasCiclosmant($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (int) $v;\n }\n\n if ($this->montacargas_ciclosmant !== $v) {\n $this->montacargas_ciclosmant = $v;\n $this->modifiedColumns[] = MontacargasPeer::MONTACARGAS_CICLOSMANT;\n }\n\n\n return $this;\n }", "public function testSetMontant1() {\n\n $obj = new Employes();\n\n $obj->setMontant1(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant1());\n }", "public function setMontantTtc($montantTtc) {\n $this->montantTtc = $montantTtc;\n return $this;\n }", "public function getMontantTva() {\n return $this->montantTva;\n }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "public function setMontant_vente(float $montant_vente)\n {\n $this->montant_vente = $montant_vente;\n\n return $this;\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "function setMateria($materia){\n\t\t\n\t\t$this->materia = $materia;\n\t\t$this->cambios = true;\n\t}", "public function setSubrogationMontant($subrogationMontant) {\n $this->subrogationMontant = $subrogationMontant;\n return $this;\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function getMontant_taxe()\n {\n return $this->montant_taxe;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "function setCantidad($icantidad = '')\n {\n $this->icantidad = $icantidad;\n }", "public function __set($atributo, $valor) {\n\t\t\t// $this->modelo = $valor;\n\t\t\t$this->$atributo = $valor;\n\t\t}", "public function testSetMontant5() {\n\n $obj = new Employes();\n\n $obj->setMontant5(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant5());\n }", "public function setRealations(){\n\n }", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "public function testSetMontant4() {\n\n $obj = new Employes();\n\n $obj->setMontant4(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant4());\n }", "public function testSetMontant3() {\n\n $obj = new Employes();\n\n $obj->setMontant3(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant3());\n }", "abstract public function set();", "public function setMontantHtCde($montantHtCde) {\n $this->montantHtCde = $montantHtCde;\n return $this;\n }", "public function getMontacargasCiclosmant()\n {\n\n return $this->montacargas_ciclosmant;\n }", "public function testSetEtiqMasque() {\n\n $obj = new ParamEtiquettes();\n\n $obj->setEtiqMasque(true);\n $this->assertEquals(true, $obj->getEtiqMasque());\n }", "public function set($atributo, $valor) {\r\n\t\t\t $this->$atributo = $valor;\r\n\t\t}", "public function setMontantAnnuel1(?float $montantAnnuel1): Assurances {\n $this->montantAnnuel1 = $montantAnnuel1;\n return $this;\n }", "public function setDormant(bool $value = true): void\n {\n $this->dormant = $value;\n }", "public function set_motdepasse($_motdepasse)\n {\n $this->_motdepasse = $_motdepasse;\n\n return $this;\n }", "public function setgeneralAction()\n {\n $productId = $this->_getParam('product_id'); \n\n $this->_model->setId($productId);\n $productModel = $this->_model; \n\n $form = new Core_Form_Product_SetGeneralProperties($productId);\n $form->setAction($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'setgeneral',\n 'product_id' => $productId,\n )\n ));\n\n if ($this->_request->isPost()) {\n\n if ($form->isValid($_POST)) {\n $productModel->setGeneralProperties($form->getValues());\n $this->_helper->FlashMessenger('Product item properties set successfully');\n $this->_redirect($this->view->url(array(\n 'module' => 'default',\n 'controller' => 'product',\n 'action' => 'viewdetails',\n 'product_id' => $productId,\n ), null, false));\n } else {\n $form->populate($_POST);\n $this->view->form = $form;\n }\n\n } else {\n $this->view->form = $form;\n }\n\n \n }", "function setNombre_materia($nombre_materia){\n\t\t\n\t\t$this->nombre_materia = $nombre_materia;\n\t\t$this->cambios = true;\n\t}", "function setVariable($v) {\n ecrire_meta('antispam_'.$v, $_POST[$v]);\n}", "public function testSetMontant2() {\n\n $obj = new Employes();\n\n $obj->setMontant2(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant2());\n }", "public function setZoom($nom){\n\t\t$zoom = (int) $zoom;\n\t\t// On vérifie ensuite si ce nombre est bien strictement positif.\n\t\tif ($zoom > 0){\n\t\t\t// Si c'est le cas, c'est tout bon, on assigne la valeur à l'attribut correspondant.\n\t\t\t$this->_zoom = $zoom;\n\t\t}\n\t}", "public function setPromotion($first,$second)\n {\n $this->promotion->setPromotion($first,$second);\n //product Id for identify products\n $this->promotion->setProductId($this->id);\n }", "public function setCantidad($cantidad){\n\t\t $this->cantidad = $cantidad;\n\t\t }", "public function testSetSatisfactionGenerale() {\n\n $obj = new FichesControlesEntetes();\n\n $obj->setSatisfactionGenerale(\"satisfactionGenerale\");\n $this->assertEquals(\"satisfactionGenerale\", $obj->getSatisfactionGenerale());\n }", "public function setMetaboxes() {\n $metaboxTemp = new Metabox();\n\n $args = array(\n // ## Certification ##\n array(\n 'id' => self::MTB_CERT,\n 'title' => 'Certification Type',\n 'callback' => array($metaboxTemp, 'certification'),\n 'screen' => self::POST_TYPE_BADGES,\n 'context' => 'side',\n 'priority' => 'high',\n ),\n // ## Target ##\n array(\n 'id' => self::MTB_TARGET,\n 'title' => 'Target Type',\n 'callback' => array($metaboxTemp, 'target'),\n 'screen' => self::POST_TYPE_BADGES,\n 'context' => 'side',\n 'priority' => 'high',\n ),\n );\n\n $this->settings->loadMetaBoxes($args);\n }", "public function setMataPelajaran($mata_pelajaran);", "public function testSetGestionMajDim() {\n\n $obj = new Employes();\n\n $obj->setGestionMajDim(\"gestionMajDim\");\n $this->assertEquals(\"gestionMajDim\", $obj->getGestionMajDim());\n }", "public function testSetMtIndemnAutre() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnAutre(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnAutre());\n }", "public function setAntagonist($value)\n {\n $this->antagonist = $value;\n }", "public function setMontantBudget($montantBudget) {\n $this->montantBudget = $montantBudget;\n return $this;\n }", "public function setPazientiMedico($pazienti) {\n $this->_pazienti = $pazienti;\n }", "public function set_nom($_nom) {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function __construct ($nomPersonnage) {\n parent::__construct($nomPersonnage);\n $this->_constitution = 250;\n }", "public function setMdp_admin($_mdp_admin){\n if(!is_string($_mdp_admin)){\n //on redirige\n header(\"Location:../vu/formulaire_connexion_admin.php\");\n return;\n }\n //on declare de la variable mdp_admin puis on appelle la varibale prive mdp_admin\n $this->_mdp_admin = $_mdp_admin;\n }", "public function set_dataGraf(){\n\n }", "private function setCalculate() {\n\n if($this->getType() == 2) {\n $det = new CalculateTwo($this->array);\n $this->result = $det->getResult();\n $this->rule = $det->getRule();\n $this->ruleExplanation = $det->getRuleExplanation();\n }\n elseif($this->getType() == 3) {\n\n $det = new CalculateThree($this->array);\n $this->result = $det->getResult();\n $this->rule = $det->getRule();\n $this->ruleExplanation = $det->getRuleExplanation();\n }\n else {\n $this->getPivot();\n $this->result = $this->setResult();\n $this->rule = $this->getPivotRule();\n $this->ruleExplanation = $this->process;\n }\n }", "public function getMontantTes() {\n return $this->montantTes;\n }", "public function testSetMontantAvantage() {\n\n $obj = new Employes();\n\n $obj->setMontantAvantage(10.092018);\n $this->assertEquals(10.092018, $obj->getMontantAvantage());\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "function setAdmin() {\n\t\t$this->_extension_high = \"\";\n\t\t$this->_extension_low = \"\";\n\t\t$this->_deptname = \"\";\n\t\t$this->_sections = array(\"*\");\n\t}", "public function testSetValideMob() {\n\n $obj = new PointBonTrav();\n\n $obj->setValideMob(true);\n $this->assertEquals(true, $obj->getValideMob());\n }", "public function set( $atributo = '', $valor ) {\n $this->$atributo = $atributo;\n return $this;\n }", "public function setmnem($v)\n {\n if ($v !== null && is_numeric($v)) {\n $v = (string) $v;\n }\n\n if ($this->mnem !== $v) {\n $this->mnem = $v;\n $this->modifiedColumns[] = ActionTypePeer::MNEM;\n }\n\n\n return $this;\n }", "public function setMateria($value){\n\t\tif($this->validateAlphanumeric($value,1,50)){\n\t\t\t$this->materia = $value;\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}", "public function setMontantAnnuel5(?float $montantAnnuel5): Assurances {\n $this->montantAnnuel5 = $montantAnnuel5;\n return $this;\n }", "function SeteoCampos(){\n\t\t// Campos que van en en detalle, deben empezar su nombre con 'C'\n\t\t$this->addField('C1', 99999,\t0, 15);\n $this->addField('C2', 99999,\t0, 15);\n $this->addField('C3', 99999,\t0, 40);\t\t\n $this->addField('C4', 99999,\t0, 65);\t\t\n $this->addField('C5', 99999,\t0, 40);\n $this->addField('C6', 99999,\t0, 25);\t\t\n $this->addField('C7', 99999,\t0, 65);\t\t\n\t\t\n\t\t$this->addField('HG1', 0,\t0,\t160);\n\t\t\t\t\n\t}", "public function getMontantTtc() {\n return $this->montantTtc;\n }", "public function setMinDamage(){ $this->minDamage = 10; }", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "public function getMontant_vente()\n {\n return $this->montant_vente;\n }", "public function setTeksti($var){\n\t\t$this->teksti=$var;\n\t}", "public function testSetMtIndemnLegale() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnLegale(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnLegale());\n }", "function setReal($real) {/*{{{*/\n $this->real = floatval($real);\n }", "public function promotional();", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function setMontantFixe(?bool $montantFixe): Assurances {\n $this->montantFixe = $montantFixe;\n return $this;\n }", "function CalculMontantArticle($numserie, $prix, $qte) {\n\n $this->article[$numserie]['montantHT'] += $prix * $qte;\n $this->article[$numserie]['montantTTC'] += $prix * $qte * (1 + ($this->TVA / 100));\n\n }", "public function testSetAutreStatut() {\n\n $obj = new AttestationCacm();\n\n $obj->setAutreStatut(\"autreStatut\");\n $this->assertEquals(\"autreStatut\", $obj->getAutreStatut());\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function getMvat()\n {\n return $this->mvat;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_nom($_nom)\n {\n $this->_nom = $_nom;\n\n return $this;\n }", "public function setMother($mother)\n {\n $this->mother = $mother;\n }", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function set_nom(string $_nom){\n $this->_nom = $_nom;\n\n return $this;\n }", "public function set_view_contato_anunciante(View_Contato_Anunciante $view_contato_anunciante) : void\r\n {\r\n self::$view_contato_anunciante = $view_contato_anunciante;\r\n }", "public function getMaitre()\n {\n return $this->maitre;\n }", "public function __conctruct($Matricule=\"\",$Nom=\"\",$Prenom=\"\",$Email=\"\",$Tel=\"\",$Naiss=\"\"){\n $this->Matricule=$Matricule;\n $this->Nom=$Nom;\n $this->Prenom=$Prenom;\n $this->Email=$Email;\n $this->Tel=$Tel;\n $this->Naiss=$Naiss;\n }", "public function setPromotion($promotion)\n {\n $this->promotion = $promotion;\n }", "public function testSetVrpMulticarte() {\n\n $obj = new Employes();\n\n $obj->setVrpMulticarte(true);\n $this->assertEquals(true, $obj->getVrpMulticarte());\n }", "protected function calidadImagenDefaut(){\r\n\t\t$this->calidadImagen=100;\r\n\t}", "public function setNumCivicoMedico($numCiv) {\n $this->_numeroCivico = $numCiv;\n }", "function FicheMemo()\n{\n\t$this->type_moi = \"fiche_memo\";\n}", "public function setTauxMaladie(?float $tauxMaladie): DeclarationCafat {\n $this->tauxMaladie = $tauxMaladie;\n return $this;\n }", "function set_gender($gender='*')\r\n{\r\n\t$this->gender = 0;\t\t// return\r\n\r\n\t// normalize gender\r\n\tif ( is_string($gender) )\r\n\t{\r\n\t\t$gender = substr($gender,0,1);\r\n\t\t$gender = strtoupper($gender);\r\n\t}\r\n\r\n\t// validity check\r\n\tif ( $gender != '*' && !in_array($gender, $this->VALID['GENDER']) )\r\n\t{\r\n\t\ttrigger_error('invalid value -- gender will be picked at random', E_USER_NOTICE);\r\n\t\t$gender = '*';\r\n\t}\r\n\t\r\n\t// random gender\r\n\tif ( $gender == '*' )\r\n\t{\r\n\t\t$this->gender = mt_rand(1,2);\r\n\t\t$this->_normalize_gender($this->gender);\r\n\t}\r\n\telseif ( is_numeric($gender) )\r\n\t{\r\n\t\t$this->gender = $gender;\r\n\t\t$this->_normalize_gender($this->gender);\r\n\t}\r\n\telse\r\n\t{\r\n\t\t$this->gender_name = $gender;\r\n\t\t$this->_normalize_gender($this->gender_name);\r\n\t}\r\n\r\n\treturn $this->gender;\r\n}" ]
[ "0.685194", "0.6477238", "0.6166996", "0.5914994", "0.5870595", "0.5870595", "0.5731733", "0.56869847", "0.56565326", "0.56565326", "0.5487709", "0.5443953", "0.5443069", "0.5423828", "0.54011595", "0.5303867", "0.53034526", "0.52806675", "0.52732784", "0.5203123", "0.51646733", "0.51101124", "0.5098628", "0.50637436", "0.50471747", "0.50471747", "0.5044096", "0.5036906", "0.50147045", "0.500825", "0.50011915", "0.49936283", "0.499124", "0.4990946", "0.4988449", "0.49847767", "0.4953716", "0.49248168", "0.49236417", "0.49064016", "0.49033424", "0.4897875", "0.48670122", "0.484343", "0.48413828", "0.48058257", "0.4802434", "0.47947305", "0.4793249", "0.4792016", "0.47879463", "0.4784954", "0.47815752", "0.4777513", "0.477687", "0.47713277", "0.4767273", "0.47528318", "0.47415364", "0.4738603", "0.47311226", "0.4719397", "0.4711221", "0.47063386", "0.4694025", "0.46841535", "0.4681829", "0.46810776", "0.4677607", "0.46763182", "0.46692616", "0.4663704", "0.4658962", "0.4646661", "0.4632346", "0.4614824", "0.4608165", "0.46052024", "0.46016264", "0.4601527", "0.45961258", "0.4592825", "0.4589343", "0.45872036", "0.45870528", "0.45818552", "0.45818552", "0.45780647", "0.4577942", "0.45750564", "0.4575007", "0.4574546", "0.4571485", "0.4568256", "0.4566238", "0.45611084", "0.4560753", "0.45575076", "0.45567822", "0.45504898" ]
0.70181245
0
Set the mt sal brut moins150 h.
Установите mt sal brut moins150 h.
public function setMtSalBrutMoins150H($mtSalBrutMoins150H) { $this->mtSalBrutMoins150H = $mtSalBrutMoins150H; return $this; }
{ "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 getMtSalBrutMoins600H() {\n return $this->mtSalBrutMoins600H;\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "public function testSetHs35Heures() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs35Heures(10.092018);\n $this->assertEquals(10.092018, $obj->getHs35Heures());\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function setBigVClock($smallVClock) {}", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function setH($value)\n {\n $this->setParam('h', $value);\n }", "function setMinute($m)\r\n {\r\n if($m > 59 || $m < 0) {\r\n $this->minuto = 0;\r\n } else {\r\n $this->minuto = $m;\r\n }\r\n }", "function setMiles($new_miles)\n {\n $this->miles = $new_miles;\n }", "public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }", "public function set_bodymass($bodymass) {\n if ($bodymass < 3 || $bodymass > 600) {\n $this->bodymass = 0;\n echo \"Dit gewicht is niet geldig<br>\";\n } else {\n $this->bodymass = $bodymass;\n }\n return $this->bodymass;\n }", "public function testSetTds60() {\n\n $obj = new Employes();\n\n $obj->setTds60(true);\n $this->assertEquals(true, $obj->getTds60());\n }", "function setHour($h)\r\n {\r\n if($h > 23 || $h < 0) {\r\n $this->hora = 0;\r\n } else {\r\n $this->hora = $h;\r\n }\r\n }", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "public function setTempFahrenheit() {\n\t\t$this->unit = 'fahrenheit';\n\t}", "function KhachHang($HoTen, $SDT,$Email, $TrangThai,$TenGhe){\n $this->HoTen=$HoTen;\n $this->SDT=$SDT;\n $this->Email=$Email;\n $this->TrangThai = $TrangThai;\n $this->TenGhe=$TenGhe;\n }", "public function setSmallVClock($smallVClock) {}", "function setOutletSteamMassFlow($massflow){\n $this->outletSteam->setMassFlow($massflow);\n $this->setBlowdownRate($this->blowdownRate);\n }", "public function testSetHRempl() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHRempl(10.092018);\n $this->assertEquals(10.092018, $obj->getHRempl());\n }", "public function set_m_mhs_id($id)\n {\n $this->m_mhs_id=$id;\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}", "public function testSetCum30Ss() {\n\n $obj = new Employes();\n\n $obj->setCum30Ss(10.092018);\n $this->assertEquals(10.092018, $obj->getCum30Ss());\n }", "function setSecond($s) {\r\n if($s > 59 || $s < 0) {\r\n $this->segundo = 0;\r\n } else {\r\n $this->segundo = $s;\r\n }\r\n }", "public function setPower()\n {\n $this->_role->power = 200;\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 2.50;\n }", "public function set_hth(){\n\t\t$gbr = array('image/png','image/JPG','image/jpeg','image/GIF','image/jpg','image/PNG','image/gif');\n\t\t$judul=$_POST['judul'];\n\t\t$isi=$_POST['teks'];\n\t\t$tm=date('Y-m-d',strtotime($_POST['tanggal_mulai']));\n\t\t$ta=date('Y-m-d',strtotime('+ 10 days'.$tm));\n\t\tif ($_POST['tanggal_akhir']!=\"\") {\n\t\t\t$ta=date('Y-m-d',strtotime($_POST['tanggal_akhir']));\n\t\t}\n\t\t\n\n\t\tif (in_array($_FILES['foto']['type'],$gbr)) {\n\t\t\t# code...\n\t\t\t$temp = explode(\".\", $_FILES['foto']['name']);\n\t\t\t$nambar = date('Hisdmy').'HTH.'.end($temp);\n\t\t\tmove_uploaded_file($_FILES['foto']['tmp_name'],'../File_BMKG/Iklim/Informasi_iklim/Informasi_HTH/'.$nambar);\n\n\t\t\techo $this->Cuaca_model->set_hth($judul,$isi, $nambar,$tm,$ta, $this->session->userdata('nama'),$this->waktu);\n\n\t\t}\n\t}", "public function __construct(){\n $this->name = \"hobbits\";\n $this->description = \"Shorter than dwarfs. Some are stronger, some faster\";\n $this->picture = \"hobbit.jpg\";\n $this->minmax_life = [60, 80];\n $this->minmax_power = [80, 95];\n $this->minmax_resistance = [60, 80];\n $this->minmax_speed = [80, 100];\n $this->proportions = [\n \"life\" => 1,\n \"power\" => 1,\n \"resistance\" => 1,\n \"speed\" => -1\n ];\n }", "function set_sizes($mw, $mh, $img_c = 1){\r\n\r\n $this->max_width = $mw;\r\n $this->max_height = $mh;\r\n $this->is_crop_img = $img_c;\r\n }", "public function setMinDamage(){ $this->minDamage = 10; }", "public function setHr($hr)\n {\n $this->hr = $hr;\n\n return $this;\n }", "abstract public function setMetas();", "function setSecondsElapsedHMS( $hour, $minute, $second )\r\n {\r\n $this->SecondsElapsed = ( ( $hour * 3600 ) + ( $minute * 60 ) + $second );\r\n setType( $this->SecondsElapsed, \"integer\" );\r\n }", "function setSwimMeet($swimmeet)\r\n {\r\n $this->_swimmeet = $swimmeet ;\r\n }", "public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\n }", "public static function set_hcol($hcol)\n\t{\n\t\tif ( bbn\\str::check_name($hcol) ){\n\t\t\tself::$hcol = $hcol;\n\t\t}\n\t}", "function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }", "public function setRandomSpacing($min, $max)\n {\n $this->fixedSpacing = false;\n $this->minSpacing = (int) $min;\n $this->maxSpacing = $this->spacing = (int) $max;\n }", "public function setHeight($height) {\n $this->h = $height;\n }", "public function testSetMontant5() {\n\n $obj = new Employes();\n\n $obj->setMontant5(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant5());\n }", "public function testSetHSurcroit() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHSurcroit(10.092018);\n $this->assertEquals(10.092018, $obj->getHSurcroit());\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 0.75;\n }", "public function testSetPourcentRemuHor() {\n\n $obj = new Employes();\n\n $obj->setPourcentRemuHor(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentRemuHor());\n }", "public function testSetNbHeuresRs() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresRs(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresRs());\n }", "public function testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\n }", "public function set_bodylength($bodylength) {\n if ($bodylength < 0.5 || $bodylength > 2.75) {\n echo \"Bij deze lengte kunnen we geen BMI berekenen omdat het geen betekenis heeft\";\n } else {\n $this->bodylength = $bodylength;\n }\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "public function setMink(Mink $mink)\n {\n $this->mink = $mink;\n }", "public function testSetHc() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHc(10.092018);\n $this->assertEquals(10.092018, $obj->getHc());\n }", "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 }", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function testSetTauxHSup() {\n\n $obj = new Employes();\n\n $obj->setTauxHSup(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxHSup());\n }", "public function testSetNbHeureSup() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSup(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSup());\n }", "public function setSnow( $snow ) {\n\n $this->snow = $snow;\n }", "public function testSetTds59() {\n\n $obj = new Employes();\n\n $obj->setTds59(\"tds59\");\n $this->assertEquals(\"tds59\", $obj->getTds59());\n }", "public function setSecond($second)\n {\n $this->second = $second;\n }", "function setSize($size) {\n\t\t$this->size = $size;\n\t}", "function SetFontSize($size)\n\t\t{\n\t\t\t/*if($this->FontSizePt==$size) return;\n\t\t\t$this->FontSizePt=$size;\n\t\t\t$this->FontSize=$size/$this->k;\n\t\t\tif($this->page>0)\n\t\t\t\t$this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt));*/\n\t\t}", "public function setVoiture($voiture){\n $this->$voiture = $voiture;\n }", "public function setMinuteStepSize($a_step_size)\n\t{\n\t \t$this->minute_step_size = $a_step_size;\n\t}", "public function setNumberOfHMetrics($value) {}", "public function testSetHeaterState()\n {\n }", "function setSize($size)\n {\n $this->size = $size;\n }", "function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}", "public function setNbreHMardi(?float $nbreHMardi): HoraireTheorique {\n $this->nbreHMardi = $nbreHMardi;\n return $this;\n }", "public function testSetHabs5() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHabs5(10.092018);\n $this->assertEquals(10.092018, $obj->getHabs5());\n }", "public function testSetNbHeuresTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresTp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresTp());\n }", "public function setHeight($height = 40)\n {\n $this->height = $height;\n $this->setAttributes(\"Height\");\n }", "public function set($key, $value, $minutes = 30);", "public function setMieteinnahmenSoll(\\MediaStoreNet\\OpenImmo\\Classes\\MieteinnahmenSoll $mieteinnahmenSoll)\n {\n $this->mieteinnahmenSoll = $mieteinnahmenSoll;\n return $this;\n }", "#[@fromDia(xpath= 'dia:attribute[@name=\"height\"]/dia:real/@val', value= 'real')]\n public function setHeight($height) {\n $this->setReal('height', $height);\n }", "public function setSize($size) {\n $this->size = $size;\n }", "public function setSize($size) {\n $this->size = $size;\n }", "public function testSetNbHeureTrav() {\n\n $obj = new Employes();\n\n $obj->setNbHeureTrav(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureTrav());\n }", "public function setSize($size)\n {\n $this->size = $size;\n }", "private function changesku(){\t \r\n\t $this->chartValue(); //adding to output\r\n\t $this->idleStHealthChk(); //adding to output\r\n\t}", "private function setHue()\r\n {\r\n echo \"Set Hue data...\\n\";\r\n\r\n $turnOnString = $this->turnedOn ? 'true' : 'false';\r\n $alertOnString = $this->alert ? 'lselect' : 'none';\r\n\r\n $data = \"{\\\"on\\\":$turnOnString, \\\"sat\\\":$this->S, \\\"bri\\\":$this->B,\\\"hue\\\":$this->H, \\\"alert\\\":\\\"$alertOnString\\\"}\";\r\n\r\n //echo \"Hue Data JSON: $data\\n\";\r\n\r\n $headers = array('Content-Type: application/json');\r\n\r\n $ch = curl_init($this->url);\r\n curl_setopt($ch, CURLOPT_CUSTOMREQUEST, \"PUT\");\r\n curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);\r\n curl_setopt($ch, CURLOPT_POSTFIELDS, $data);\r\n \r\n echo \"\\n\";\r\n echo \"\\n-------------------------------\\n\";\r\n curl_exec($ch);\r\n echo \"\\n-------------------------------\\n\";\r\n echo \"\\n\";\r\n }", "function setSecond( $value )\r\n {\r\n $value = min( $value, 59 );\r\n $this->SecondsElapsed = ( ( $this->hour() * 3600 ) + ( $this->minute() * 60 ) + $value );\r\n }", "function setWeight($minweight = 50) {\n echo \"The height is : $minweight <br>\";\n}", "function set_subheading()\n {\n $args = func_get_args();\n $this->subheading = (is_array($args[0])) ? $args[0] : $args;\n }", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "public function testSetMensualisationTache() {\n\n $obj = new Employes();\n\n $obj->setMensualisationTache(\"mensualisationTache\");\n $this->assertEquals(\"mensualisationTache\", $obj->getMensualisationTache());\n }", "public function setSize($size) {\n $this->_size = $size;\n }", "public function setPower()\n {\n $this->_role->power = 100;\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 AddBig5hwFont($family='Big5-hw',$name='MSungStd-Light-Acro')\n{\n\tfor($i=32;$i<=126;$i++)\n\t\t$cw[chr($i)]=500;\n\t$CMap='ETen-B5-H';\n\t$registry=array('ordering'=>'CNS1','supplement'=>0);\n\t$this->AddCIDFonts($family,$name,$cw,$CMap,$registry);\n}", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\n }", "function setMake_model($new_make_model)\n {\n $this->price = $new_make_model;\n }", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function setMag($mag_)\n\t{\n\t\t$s = $mag_ / $this->mag();\n\t\t$this->scale($s);\n\t}", "public function setWeight() {\n }", "function set_weight($weight) {\n $this->weight = $weight;\n }", "public function testSetMotifRupture() {\n\n $obj = new AttestationCacm();\n\n $obj->setMotifRupture(\"motifRupture\");\n $this->assertEquals(\"motifRupture\", $obj->getMotifRupture());\n }" ]
[ "0.7519646", "0.7187335", "0.7039643", "0.56109107", "0.5544254", "0.55417585", "0.54365575", "0.54143035", "0.51407146", "0.50958455", "0.5071692", "0.50693405", "0.50625235", "0.5032684", "0.5008575", "0.49877858", "0.49852535", "0.4948779", "0.49440333", "0.4935389", "0.4890193", "0.48767215", "0.4864469", "0.4853033", "0.48230377", "0.48112208", "0.4798076", "0.47887427", "0.47464156", "0.47374782", "0.47364652", "0.47311646", "0.4721035", "0.47140557", "0.46991354", "0.4676938", "0.46746302", "0.46744812", "0.46724293", "0.46699533", "0.46419996", "0.4641981", "0.46380585", "0.4633968", "0.46275485", "0.46261376", "0.46248695", "0.46229002", "0.46114406", "0.46064618", "0.45999116", "0.45991933", "0.4590418", "0.45867303", "0.45837003", "0.45771244", "0.45676672", "0.45539433", "0.45434117", "0.45395184", "0.45097786", "0.45079637", "0.45033443", "0.44894746", "0.4488563", "0.44868273", "0.44803685", "0.44759017", "0.44735482", "0.44714916", "0.44679114", "0.44651958", "0.44644392", "0.44611892", "0.44567028", "0.44558161", "0.44555354", "0.44501957", "0.4450146", "0.4450146", "0.4448646", "0.44464773", "0.44410807", "0.4434411", "0.44312808", "0.44299474", "0.44277078", "0.44256133", "0.44213033", "0.4410146", "0.44056496", "0.44018558", "0.43970588", "0.4391081", "0.4388715", "0.4384537", "0.43841785", "0.4381413", "0.4380104", "0.43763277" ]
0.74409014
1
Set the mt sal brut moins600 h.
Установите mt sal brut moins600 h.
public function setMtSalBrutMoins600H($mtSalBrutMoins600H) { $this->mtSalBrutMoins600H = $mtSalBrutMoins600H; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getMtSalBrutMoins600H() {\n return $this->mtSalBrutMoins600H;\n }", "public function getMtSalBrutMoins150H() {\n return $this->mtSalBrutMoins150H;\n }", "public function setMtSalBrutMoins150H($mtSalBrutMoins150H) {\n $this->mtSalBrutMoins150H = $mtSalBrutMoins150H;\n return $this;\n }", "public function testSetMtSalaireBrut() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtSalaireBrut(10.092018);\n $this->assertEquals(10.092018, $obj->getMtSalaireBrut());\n }", "public function setMontant_ht(float $montant_ht)\n {\n $this->montant_ht = $montant_ht;\n\n return $this;\n }", "public function setMontantHt($montantHt) {\n $this->montantHt = $montantHt;\n return $this;\n }", "public function calcularSueldo(){\n $this->horas_trabajadas * 540;\n }", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "function setHour($h)\r\n {\r\n if($h > 23 || $h < 0) {\r\n $this->hora = 0;\r\n } else {\r\n $this->hora = $h;\r\n }\r\n }", "public function testSetHs35Heures() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs35Heures(10.092018);\n $this->assertEquals(10.092018, $obj->getHs35Heures());\n }", "public function setH($value)\n {\n $this->setParam('h', $value);\n }", "function setSecond($s) {\r\n if($s > 59 || $s < 0) {\r\n $this->segundo = 0;\r\n } else {\r\n $this->segundo = $s;\r\n }\r\n }", "function setMinute($m)\r\n {\r\n if($m > 59 || $m < 0) {\r\n $this->minuto = 0;\r\n } else {\r\n $this->minuto = $m;\r\n }\r\n }", "public function set_bodymass($bodymass) {\n if ($bodymass < 3 || $bodymass > 600) {\n $this->bodymass = 0;\n echo \"Dit gewicht is niet geldig<br>\";\n } else {\n $this->bodymass = $bodymass;\n }\n return $this->bodymass;\n }", "public function setTempFahrenheit() {\n\t\t$this->unit = 'fahrenheit';\n\t}", "function setOutletSteamMassFlow($massflow){\n $this->outletSteam->setMassFlow($massflow);\n $this->setBlowdownRate($this->blowdownRate);\n }", "public function getMontantHt() {\n return $this->montantHt;\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function setHr($hr)\n {\n $this->hr = $hr;\n\n return $this;\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "function setMiles($new_miles)\n {\n $this->miles = $new_miles;\n }", "public function setBigVClock($smallVClock) {}", "public function testSetHRempl() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHRempl(10.092018);\n $this->assertEquals(10.092018, $obj->getHRempl());\n }", "function getTotalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", $this->totalHT));\n else return 0;\n }", "function KhachHang($HoTen, $SDT,$Email, $TrangThai,$TenGhe){\n $this->HoTen=$HoTen;\n $this->SDT=$SDT;\n $this->Email=$Email;\n $this->TrangThai = $TrangThai;\n $this->TenGhe=$TenGhe;\n }", "function setSecondsElapsedHMS( $hour, $minute, $second )\r\n {\r\n $this->SecondsElapsed = ( ( $hour * 3600 ) + ( $minute * 60 ) + $second );\r\n setType( $this->SecondsElapsed, \"integer\" );\r\n }", "public function set_m_mhs_id($id)\n {\n $this->m_mhs_id=$id;\n }", "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 }", "public function testSetTds60() {\n\n $obj = new Employes();\n\n $obj->setTds60(true);\n $this->assertEquals(true, $obj->getTds60());\n }", "public function setPower()\n {\n $this->_role->power = 200;\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 setHour( $value )\r\n {\r\n $value = min( $value, 23 );\r\n $this->SecondsElapsed = ( ( $value * 3600 ) + ( $this->minute() * 60 ) + $this->second() );\r\n setType( $this->SecondsElapsed, \"integer\" );\r\n }", "public function getMontant_ht()\n {\n return $this->montant_ht;\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}", "#[@fromDia(xpath= 'dia:attribute[@name=\"height\"]/dia:real/@val', value= 'real')]\n public function setHeight($height) {\n $this->setReal('height', $height);\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 2.50;\n }", "public function setHeight($height) {\n $this->h = $height;\n }", "abstract public function setMetas();", "function setSecond( $value )\r\n {\r\n $value = min( $value, 59 );\r\n $this->SecondsElapsed = ( ( $this->hour() * 3600 ) + ( $this->minute() * 60 ) + $value );\r\n }", "function setSwimMeet($swimmeet)\r\n {\r\n $this->_swimmeet = $swimmeet ;\r\n }", "function SetFontSize($size)\n\t\t{\n\t\t\t/*if($this->FontSizePt==$size) return;\n\t\t\t$this->FontSizePt=$size;\n\t\t\t$this->FontSize=$size/$this->k;\n\t\t\tif($this->page>0)\n\t\t\t\t$this->_out(sprintf('BT /F%d %.2f Tf ET',$this->CurrentFont['i'],$this->FontSizePt));*/\n\t\t}", "public function setHPMPTP($String)\n {\n $this->Stats['core']['hp'] = trim($String[0]);\n $this->Stats['core']['mp'] = trim($String[1]);\n $this->Stats['core']['tp'] = trim($String[2]);\n }", "private function GENModulation() {\n\n\t\t$this->modulation = 'LORA';\n\n\t\t// set the LORA data rate\n\t\tif ( 'LORA' == $this->modulation ) {\n\t\t\t$dataRates = [\n\t\t\t\t'SF12BW125',\n\t\t\t\t'SF11BW125',\n\t\t\t\t'SF10BW125',\n\t\t\t\t'SF9BW125',\n\t\t\t\t'SF8BW125',\n\t\t\t\t'SF7BW125',\n\t\t\t\t'SF7BW250'\n\t\t\t];\n\n\t\t\t$this->data_rate = $dataRates[mt_rand(0,(sizeof($dataRates)-1))];\n\t\t} else {\n\t\t\t// set the FSK bit rate\n\n\t\t}\n\t}", "public function setWeight() {\n }", "public function setSecond($second)\n {\n $this->second = $second;\n }", "public static function set_hcol($hcol)\n\t{\n\t\tif ( bbn\\str::check_name($hcol) ){\n\t\t\tself::$hcol = $hcol;\n\t\t}\n\t}", "function setMonth($m)\r\n {\r\n if($m < 1 || $m > 12) {\r\n $this->mes = 1;\r\n } else {\r\n $this->mes = $m;\r\n }\r\n }", "protected function _getUnitsPerEm() {}", "public function convertMetrePerSecondToMilesPerHour($value) {\n\t\tif(is_numeric($value)) {\n\t\t\treturn round( ($value * 2.2369), 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function testSetMontant5() {\n\n $obj = new Employes();\n\n $obj->setMontant5(10.092018);\n $this->assertEquals(10.092018, $obj->getMontant5());\n }", "public function set_hth(){\n\t\t$gbr = array('image/png','image/JPG','image/jpeg','image/GIF','image/jpg','image/PNG','image/gif');\n\t\t$judul=$_POST['judul'];\n\t\t$isi=$_POST['teks'];\n\t\t$tm=date('Y-m-d',strtotime($_POST['tanggal_mulai']));\n\t\t$ta=date('Y-m-d',strtotime('+ 10 days'.$tm));\n\t\tif ($_POST['tanggal_akhir']!=\"\") {\n\t\t\t$ta=date('Y-m-d',strtotime($_POST['tanggal_akhir']));\n\t\t}\n\t\t\n\n\t\tif (in_array($_FILES['foto']['type'],$gbr)) {\n\t\t\t# code...\n\t\t\t$temp = explode(\".\", $_FILES['foto']['name']);\n\t\t\t$nambar = date('Hisdmy').'HTH.'.end($temp);\n\t\t\tmove_uploaded_file($_FILES['foto']['tmp_name'],'../File_BMKG/Iklim/Informasi_iklim/Informasi_HTH/'.$nambar);\n\n\t\t\techo $this->Cuaca_model->set_hth($judul,$isi, $nambar,$tm,$ta, $this->session->userdata('nama'),$this->waktu);\n\n\t\t}\n\t}", "public function testSetSalaireMensuel() {\n\n $obj = new Collaborateurs();\n\n $obj->setSalaireMensuel(10.092018);\n $this->assertEquals(10.092018, $obj->getSalaireMensuel());\n }", "public function setRandomSpacing($min, $max)\n {\n $this->fixedSpacing = false;\n $this->minSpacing = (int) $min;\n $this->maxSpacing = $this->spacing = (int) $max;\n }", "public function setHour($hour)\n {\n $this->hour = $hour;\n }", "public function setMinuteStepSize($a_step_size)\n\t{\n\t \t$this->minute_step_size = $a_step_size;\n\t}", "public function testSetMensualisationTache() {\n\n $obj = new Employes();\n\n $obj->setMensualisationTache(\"mensualisationTache\");\n $this->assertEquals(\"mensualisationTache\", $obj->getMensualisationTache());\n }", "public function testSetTds59() {\n\n $obj = new Employes();\n\n $obj->setTds59(\"tds59\");\n $this->assertEquals(\"tds59\", $obj->getTds59());\n }", "public function setStructureRightBackMetalDust($value) {\n switch ($value) {\n case 0 : // Sin da�o\n return 0;\n break;\n case 7 : // Deformacion Fuerte\n return 14;\n break;\n case 8 : // Deformacion medio\n return 12;\n break;\n case 6 : // Malo\n return 20;\n break;\n case 9 : // Golpe\n return 0;\n break;\n case 10 : // Rayon\n return 1;\n break;\n case 11 : // Reparacion Buena\n return 0;\n break;\n case 12 : // Reparacion Mala\n return 10;\n break;\n case 13 : // Sumido\n return 2;\n break;\n }\n }", "public function testSetTauxHSup() {\n\n $obj = new Employes();\n\n $obj->setTauxHSup(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxHSup());\n }", "public function setSmallVClock($smallVClock) {}", "public function testSetTauxPensionMilitaire() {\n\n $obj = new Employes();\n\n $obj->setTauxPensionMilitaire(10.092018);\n $this->assertEquals(10.092018, $obj->getTauxPensionMilitaire());\n }", "function __set($name,$value){\r\n switch ($name){\r\n case 'gas': // daca aveam in loc de case, return numai trebuia sa pun break\r\n if(is_numeric($value)) $this->gas = $value;\r\n break; // la return nu se pune break!!\r\n case new Exception(\"Gas tre sa fie numeric\"); //arunca o eroare\r\n break;\r\n }\r\n }", "function setMGFHash($hash)\n {\n // \\phpseclib\\Crypt\\Hash supports algorithms that PKCS#1 doesn't support. md5-96 and sha1-96, for example.\n switch ($hash) {\n case 'md2':\n case 'md5':\n case 'sha1':\n case 'sha256':\n case 'sha384':\n case 'sha512':\n $this->mgfHash = new Hash($hash);\n break;\n default:\n $this->mgfHash = new Hash('sha1');\n }\n $this->mgfHLen = $this->mgfHash->getLength();\n }", "public function convertKilometrePerHourToMilesPerHour($value) {\n\t\tif(is_numeric($value)) {\n\t\t\treturn round( ($value * 0.6214), 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public function testSetHc() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHc(10.092018);\n $this->assertEquals(10.092018, $obj->getHc());\n }", "public function set_bodylength($bodylength) {\n if ($bodylength < 0.5 || $bodylength > 2.75) {\n echo \"Bij deze lengte kunnen we geen BMI berekenen omdat het geen betekenis heeft\";\n } else {\n $this->bodylength = $bodylength;\n }\n }", "public function setAttackSpeed()\n {\n $this->_role->attack_speed = 0.75;\n }", "public function setPower()\n {\n $this->_role->power = 100;\n }", "function set_weight($weight) {\n $this->weight = $weight;\n }", "public function set($key, $value, $minutes = 30);", "function getTotalFinalHT() {\n if (isset($this->calculmontant) && $this->calculmontant == true) return (sprintf(\"%.2f\", ($this->totalHT+$this->port)));\n else return 0;\n }", "function setWeight($minweight = 50) {\n echo \"The height is : $minweight <br>\";\n}", "public function testSetPourcentRemuHor() {\n\n $obj = new Employes();\n\n $obj->setPourcentRemuHor(10.092018);\n $this->assertEquals(10.092018, $obj->getPourcentRemuHor());\n }", "public function setHeight($height) {\n\t\t$height = (int) $height;\n\t\t$this->height = (($height > 0) && ($height <= self::MAX_HEIGHT)) ? $height : self::DEFAULT_HEIGHT;\n\t}", "public function testSetPrixKm() {\n\n $obj = new Collaborateurs();\n\n $obj->setPrixKm(10.092018);\n $this->assertEquals(10.092018, $obj->getPrixKm());\n }", "public function get_bodymass() {\n return \"Gewicht = \" . $this->bodymass . \"kg\";\n }", "function getHhRent(){\n\t\treturn $this->hhRentAmount;\n\t}", "public function setHeight($height)\r\n {\r\n if (is_numeric($height))\r\n {\r\n $this->height = (int)$height;\r\n }\r\n }", "public function setTime($time)\n {\n return $this->buildCommand($this->instruction['lcdTime'], $this->timeToHex($time));\n }", "function set_time($newhour, $newminute, $newday, $newmonth, $newyear)\n {\n //sets the Date object given the hour, minute, day, month, and year\n $newtimestamp=mktime( $newhour, $newminute, 0, $newmonth, $newday, $newyear);\n $this->timestamp=$newtimestamp;\n }", "public function testSetMtIndemnSupp() {\n\n $obj = new AttestationCacm();\n\n $obj->setMtIndemnSupp(10.092018);\n $this->assertEquals(10.092018, $obj->getMtIndemnSupp());\n }", "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}", "private function setHypotenuse($height, $base)\n {\n \n $this->sideC = hypot($height, $base);\n }", "public function setTime($time=0){\n\t\t\t$this->_time = $time;\n\t\t}", "public function set_spacing_sizes()\n {\n }", "public function testSetCum30Ss() {\n\n $obj = new Employes();\n\n $obj->setCum30Ss(10.092018);\n $this->assertEquals(10.092018, $obj->getCum30Ss());\n }", "public function set_height($height, $hpp) {\n if (is_numeric($height) && $height > 0) {\n $hpp = strtolower($hpp);\n if ($hpp == 'px' || $hpp == '%') {\n $this->_height = abs($height);\n $this->_hpp = $hpp;\n }\n }\n }", "function hieu($p_tuso, $p_mauso)\n {\n $ps = new PHAN_SO();\n $ps->khoitao_ps($p_tuso, $p_mauso);\n $ps->tuso = ($this->tuso*$ps->mauso) - ($ps->tuso*$this->mauso);\n $ps->mauso = $this->mauso*$ps->mauso;\n // $ps->toigian_ps();\n return $ps;\n }", "public function testSetHSurcroit() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHSurcroit(10.092018);\n $this->assertEquals(10.092018, $obj->getHSurcroit());\n }", "public function setW($dw) {}", "public function setMileage($value) {\n return $this->set(self::MILEAGE, $value);\n }", "public function __construct(){\n $this->name = \"hobbits\";\n $this->description = \"Shorter than dwarfs. Some are stronger, some faster\";\n $this->picture = \"hobbit.jpg\";\n $this->minmax_life = [60, 80];\n $this->minmax_power = [80, 95];\n $this->minmax_resistance = [60, 80];\n $this->minmax_speed = [80, 100];\n $this->proportions = [\n \"life\" => 1,\n \"power\" => 1,\n \"resistance\" => 1,\n \"speed\" => -1\n ];\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}", "public function testSetHeightProduct()\n {\n $product = new Product();\n $value = 9;\n $product->setHeight($value);\n $this->assertEquals($value, $product->getHeight());\n }", "public function testSetNbHeuresTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresTp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresTp());\n }", "protected function set_default_value(){\n $this->set_view('sarung/admin/index');\n $this->set_min_power( 100 );\n\t\t$this->set_title('Session');\n\t\t$this->set_body_attribute( \" class='admin admin_sarung_body' \" );\n $this->set_table_name('session');\n \n $this->set_perkiraan_santri_name( 'perkiraan_santri' );\n $this->set_session_name ( 'session_name');\n $this->set_awal_name ( 'awal_name');\n $this->set_akhir_name ( 'akhir_name' );\n $this->set_nilai_name ( 'nilai_name') ;\n $this->set_model_name ( 'model_name');\n \n }", "public function setMinorTickCount($value) {\r\n $this->minorTickCount = $this->setIntegerProperty($this->minorTickCount, $value);\r\n }", "public function testSetHeaterState()\n {\n }" ]
[ "0.74902856", "0.69387895", "0.6385285", "0.5665022", "0.5544806", "0.536009", "0.52975214", "0.52848774", "0.5239685", "0.5216829", "0.5107758", "0.5077674", "0.50608146", "0.50416905", "0.501744", "0.5001427", "0.49728447", "0.4927287", "0.48747626", "0.4868808", "0.48685288", "0.48606876", "0.48306644", "0.48036957", "0.47842535", "0.47734827", "0.47659877", "0.4742231", "0.4734633", "0.4722389", "0.47084573", "0.4686488", "0.46833354", "0.4659344", "0.46577716", "0.4656246", "0.4644848", "0.4626112", "0.4621587", "0.460232", "0.45872948", "0.45778382", "0.4569824", "0.4557705", "0.45572945", "0.45536697", "0.45523068", "0.45470592", "0.45458877", "0.45424855", "0.45404798", "0.45305747", "0.45302618", "0.45300415", "0.4528644", "0.45261657", "0.4522053", "0.45218915", "0.45126998", "0.45115903", "0.45112905", "0.45092258", "0.45066926", "0.4506419", "0.45062986", "0.45024905", "0.44861293", "0.44849727", "0.4483806", "0.4478947", "0.44758365", "0.44717598", "0.44707182", "0.4460858", "0.4458725", "0.44538832", "0.4451333", "0.44442618", "0.4442706", "0.4440469", "0.4435451", "0.44294947", "0.44238195", "0.44222346", "0.44208258", "0.44169247", "0.43936", "0.43920538", "0.4386817", "0.43844646", "0.43829235", "0.4380093", "0.4379749", "0.43754843", "0.43684977", "0.43659487", "0.43651107", "0.43614143", "0.43598285", "0.43560663" ]
0.7526913
0
Set the nb h general.
Установите nb h общее.
public function setNbHGeneral($nbHGeneral) { $this->nbHGeneral = $nbHGeneral; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNbHGeneral() {\n return $this->nbHGeneral;\n }", "public function setNumberOfHMetrics($value) {}", "public function setH($value)\n {\n $this->setParam('h', $value);\n }", "public function getNbHn(): ?float {\n return $this->nbHn;\n }", "public function setNbreH(?float $nbreH): HoraireTheorique {\n $this->nbreH = $nbreH;\n return $this;\n }", "public function getNbreH(): ?float {\n return $this->nbreH;\n }", "function setHeading($h)\n\t{\n\t\t$this->_headingText=$h;\n\t}", "public function testSetNbHeureMens() {\n\n $obj = new AttestationCacm();\n\n $obj->setNbHeureMens(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMens());\n }", "public function setNbHt(?float $nbHt): ChargesPaie {\n $this->nbHt = $nbHt;\n return $this;\n }", "public function testSetNbHeuresTp() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresTp(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresTp());\n }", "public function testSetNbHeuresRs() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setNbHeuresRs(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeuresRs());\n }", "public function testSetPrimeHDimNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHDimNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHDimNormal());\n }", "public function testSetNbHeureSup() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSup(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSup());\n }", "public function setNbHBase(?float $nbHBase): ChargesPaie {\n $this->nbHBase = $nbHBase;\n return $this;\n }", "private function min_headings_num() {\n\t\t$this->section_data['general_min_headings_num'] = array(\n\t\t\t'name' \t\t\t\t\t=> 'general_min_headings_num',\n\t\t\t'label' \t\t\t\t=> __( 'Display TOC when', 'fixedtoc' ),\n\t\t\t'default' \t\t\t=> '',\n\t\t\t'type' \t\t\t\t\t=> 'number',\n\t\t\t'input_attrs'\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'class' => 'small-text'\n\t\t\t\t\t\t\t\t\t\t\t\t),\n\t\t\t'sanitize'\t\t\t=> 'absint',\n\t\t\t'suffix'\t\t\t\t=> __( 'or more headings are present.', 'fixedtoc' )\n\t\t);\n\t}", "function set_num_items($num){\n $this -> num_of_items = $num;\n }", "function setNum($num)\n {\n $this->num = $num;\n }", "public function setNbreHSamedi(?float $nbreHSamedi): HoraireTheorique {\n $this->nbreHSamedi = $nbreHSamedi;\n return $this;\n }", "public function setNbHComp(?float $nbHComp): PrepaPaie {\n $this->nbHComp = $nbHComp;\n return $this;\n }", "public function setColspan($num)\n {\n parent::setAttr(\"colspan\", $num);\n }", "function Ln($h='')\n\t\t{\n\t\t\t$this->x=$this->lMargin;\n\t\t\tif(is_string($h)) $this->y+=$this->lasth;\n\t\t\telse $this->y+=$h;\n\t\t}", "public function setNbreHMardi(?float $nbreHMardi): HoraireTheorique {\n $this->nbreHMardi = $nbreHMardi;\n return $this;\n }", "public function setGridSize($girdSize);", "public function getNbHCasPart() {\n return $this->nbHCasPart;\n }", "function set_bundle_cnt($ordno,$mall,$type='p'){\n\t\t\n\t\tif($type=='p'){\n\t\t\t$default_val=0;\n\t\t\t$calu=\"+\";\n\t\t}else if($type=='m'){\n\t\t\t$default_val=2;\n\t\t\t$calu=\"-\";\n\t\t}\n\t\t\n\t\tif($mall){\n\t\t\t$add_where=\" and mall_no=:mall_no\";\n\t\t\t$param[':mall_no']=$mall;\n\t\t}\n\t\t$qry=\"update order_list set bundle=if(bundle='\".$default_val.\"',bundle\".$calu.\"2,bundle\".$calu.\"1) where bundle>0 and ordno=:ordno\".$add_where;\n\t\t$param[':ordno']=$ordno;\n\t\t$this->db->query($qry,$param);\n\t\t\n\t}", "public function getNbHNuit(): ?float {\n return $this->nbHNuit;\n }", "public function testSetNbHeureSal() {\n\n $obj = new Employes();\n\n $obj->setNbHeureSal(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureSal());\n }", "public function setNbHn(?float $nbHn): ChargesPaie {\n $this->nbHn = $nbHn;\n return $this;\n }", "public function init(){\n parent::init();\n\t\t$this->_gridParam['width'] = 870;\n }", "public function define_nb_line($p_nb_line)\r\n\t\t{\r\n\t\t\t$this->c_nb_line = $p_nb_line;\r\n\t\t\t$this->c_limit_max = $this->c_nb_line;\r\n\t\t}", "public function setNbLane(int $nbLane) : void\n {\n $this->nbLane = $nbLane;\n }", "public function setHeaderHeightProps() {\n\t\t$this->heightOfTransparency = $this->calculateHeightOfTransparency();\n\t\t$this->heightOfCompleteTransparency = $this->calculateHeightOfCompleteTransparency();\n\t\t$this->headerHeight = $this->calculateHeaderHeight();\n\t}", "function setNiveau($niveau) { $niveau = (int) $niveau;\r\n if ($niveau >= 1 && $niveau <= 100) {\r\n $this->_niveau = $niveau;\r\n }\r\n }", "public function setNbHNuit(?float $nbHNuit): PrepaPaie {\n $this->nbHNuit = $nbHNuit;\n return $this;\n }", "public function SetNumPages()\n\t\t{\n\t\t\t$this->_pricenumpages = ceil($this->GetNumProducts() / GetConfig('CategoryProductsPerPage'));\n\t\t}", "public function setGeneral() // Attribuer une valeur générale à un attaquant\n {\n $this->_general = round($this->attaqueCalcul());\n }", "public function setNbHCasPart($nbHCasPart) {\n $this->nbHCasPart = $nbHCasPart;\n return $this;\n }", "function MyMod_Paging_NPages_Set()\n {\n if ($this->NumberOfItems>$this->NItemsPerPage)\n {\n $this->MyMod_Paging_N=intval($this->NumberOfItems/$this->NItemsPerPage);\n $res=$this->NumberOfItems % $this->NItemsPerPage;\n if ($res>0) { $this->MyMod_Paging_N++; }\n }\n elseif ($this->NumberOfItems>0)\n {\n $this->MyMod_Paging_N=1;\n }\n else\n {\n $this->MyMod_Paging_N=0;\n }\n }", "public function setWeight() {\n }", "function setHeadTitel($var)\n\t{\n\t\t$this -> head_titel = $var;\n\t}", "public function setNValue($nVal) {}", "public function setNbreHMini(?float $nbreHMini): HoraireTheorique {\n $this->nbreHMini = $nbreHMini;\n return $this;\n }", "public function setNbreHMax(?float $nbreHMax): HoraireTheorique {\n $this->nbreHMax = $nbreHMax;\n return $this;\n }", "public function setNbreHMaxiJeudi(?float $nbreHMaxiJeudi): HoraireTheorique {\n $this->nbreHMaxiJeudi = $nbreHMaxiJeudi;\n return $this;\n }", "public function getNumberOfHMetrics() {}", "public function setNbreHMaxiSamedi(?float $nbreHMaxiSamedi): HoraireTheorique {\n $this->nbreHMaxiSamedi = $nbreHMaxiSamedi;\n return $this;\n }", "private function setNumRows($num_rows)\r\n\t{\t\t\r\n\t\t$this->num_rows = $num_rows;\t\t\r\n\t}", "function header (){\n\t\t$this->setfont('Arial','B', 16);\n\t\t$this->settextcolor(0, 0, 0);\n\t\t$this->cell(0, 10, 'WANANCHI', 0, 0, 'C');\n\t\t$this->Ln(10);\n\t\t$this->setfont('Arial','',12);\n\t\t$this->settextcolor(0, 0, 0);\n\t\t$this->cell(0, 10, 'INFORMATION',0, 0, 'C');\n\t\t$this->Ln(30);\n\t}", "public function getNbHComp(): ?float {\n return $this->nbHComp;\n }", "public function getNbreHMini(): ?float {\n return $this->nbreHMini;\n }", "public function init(){\n $this->documento='760';\n }", "function admin_setting_heading($name, $heading, $information) {\n parent::admin_setting($name, $heading, $information, '');\n }", "function set_height($height) {\n $this->height = $height;\n }", "public function getNbHt(): ?float {\n return $this->nbHt;\n }", "function size()\n\t{\n\t\treturn $this->nb;\n\t}", "public function set_hth(){\n\t\t$gbr = array('image/png','image/JPG','image/jpeg','image/GIF','image/jpg','image/PNG','image/gif');\n\t\t$judul=$_POST['judul'];\n\t\t$isi=$_POST['teks'];\n\t\t$tm=date('Y-m-d',strtotime($_POST['tanggal_mulai']));\n\t\t$ta=date('Y-m-d',strtotime('+ 10 days'.$tm));\n\t\tif ($_POST['tanggal_akhir']!=\"\") {\n\t\t\t$ta=date('Y-m-d',strtotime($_POST['tanggal_akhir']));\n\t\t}\n\t\t\n\n\t\tif (in_array($_FILES['foto']['type'],$gbr)) {\n\t\t\t# code...\n\t\t\t$temp = explode(\".\", $_FILES['foto']['name']);\n\t\t\t$nambar = date('Hisdmy').'HTH.'.end($temp);\n\t\t\tmove_uploaded_file($_FILES['foto']['tmp_name'],'../File_BMKG/Iklim/Informasi_iklim/Informasi_HTH/'.$nambar);\n\n\t\t\techo $this->Cuaca_model->set_hth($judul,$isi, $nambar,$tm,$ta, $this->session->userdata('nama'),$this->waktu);\n\n\t\t}\n\t}", "public function set_block($bi) {\n $this->theblock = $bi;\n\n switch (@$this->theblock->config->gaugerenderer) {\n case 'html': {\n $this->gaugerendererfunc = 'progress_bar_html';\n break;\n }\n\n case 'flash': {\n $this->gaugerendererfunc = 'progress_bar_flash';\n break;\n }\n\n case 'gd': {\n $this->gaugerendererfunc = 'progress_bar_html_gd';\n break;\n }\n\n default:\n $this->gaugerendererfunc = 'progress_bar_html_jqw';\n }\n\n }", "public function setMemberDefaults(){\n parent::setMemberDefaults();\n \n $this->id = $this->id ? $this->id : UniqId::get(\"rbn-\");\n if (!$this->collarTriangleWidth) {\n $this->collarTriangleWidth = StyleUtil::getHalf($this->collarWidth);\n }\n if (!$this->collarColor) {\n if ($this->barColor){\n $this->collarColor = $this->barColor;\n }\n else if( $this->barGradient ){\n $this->collarColor = GradientInfo::getLastColor($this->barGradient);\n }\n }\n }", "public function getNbreHMax(): ?float {\n return $this->nbreHMax;\n }", "public function setNbreHVendredi(?float $nbreHVendredi): HoraireTheorique {\n $this->nbreHVendredi = $nbreHVendredi;\n return $this;\n }", "public function testSetPrimeHDim2Normal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHDim2Normal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHDim2Normal());\n }", "private function headings() {\n\t\t$this->section_data['general_h_tags'] = array(\n\t\t\t'name' \t\t\t\t\t=> 'general_h_tags',\n\t\t\t'label' \t\t\t\t=> __( 'Headings', 'fixedtoc' ),\n\t\t\t'default' \t\t\t=> array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ),\n\t\t\t'type' \t\t\t\t\t=> 'multi_checkbox',\n\t\t\t'choices'\t\t\t\t=> array(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h1' => 'Heading 1',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h2' => 'Heading 2',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h3' => 'Heading 3',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h4' => 'Heading 4',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h5' => 'Heading 5',\n\t\t\t\t\t\t\t\t\t\t\t\t\t'h6' => 'Heading 6',\n\t\t\t\t\t\t\t\t\t\t\t\t ),\n\t\t\t'des'\t\t\t\t\t\t=> __( 'Check which HTML headings automatically generated table of contents.', 'fixedtoc' )\n\t\t);\n\t}", "public function getNbHBase(): ?float {\n return $this->nbHBase;\n }", "public static function set_hcol($hcol)\n\t{\n\t\tif ( bbn\\str::check_name($hcol) ){\n\t\t\tself::$hcol = $hcol;\n\t\t}\n\t}", "public function __construct(){\n $this->name = \"hobbits\";\n $this->description = \"Shorter than dwarfs. Some are stronger, some faster\";\n $this->picture = \"hobbit.jpg\";\n $this->minmax_life = [60, 80];\n $this->minmax_power = [80, 95];\n $this->minmax_resistance = [60, 80];\n $this->minmax_speed = [80, 100];\n $this->proportions = [\n \"life\" => 1,\n \"power\" => 1,\n \"resistance\" => 1,\n \"speed\" => -1\n ];\n }", "public function __construct($hall_id)\n {\n $this->max = 3;\n $this->hall_id = $hall_id;\n }", "function set_weight($weight) {\n $this->weight = $weight;\n }", "function MyMod_Paging_NItemsPerPage_Set()\n {\n $val=$this->CGI_VarValue($this->ModuleName.\"_NItemsPerPage\");;\n if (!empty($val) && preg_match('/^\\d+$/',$val))\n {\n $this->NItemsPerPage=$val;\n }\n }", "public function _set($number)\n {\n }", "public function testSetNbHeureMois() {\n\n $obj = new Employes();\n\n $obj->setNbHeureMois(10.092018);\n $this->assertEquals(10.092018, $obj->getNbHeureMois());\n }", "public function testSetTotalHAnal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setTotalHAnal(10.092018);\n $this->assertEquals(10.092018, $obj->getTotalHAnal());\n }", "public function testSetHs35Heures() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHs35Heures(10.092018);\n $this->assertEquals(10.092018, $obj->getHs35Heures());\n }", "public function initEmptyGrille() : void\n {\n \n for($i = 0 ; $i < self::NB_MAX_NUMERO ; $i++){\n $this->emptyGrille[\"numeros\"][] = \"\";\n \n if($i < self::NB_MAX_ETOILE){\n $this->emptyGrille[\"etoiles\"][] = \"\";\n }\n }\n }", "private function setNumberOfPages(): void\n {\n $this->number_of_pages = (int)ceil($this->number_of_records / $this->per_page);\n }", "public function H990()\n {\n $this->Sped->criarEncerramentoBloco('0', 'H990', \"H990\");\n }", "public static function setNumberMaxBlocked($nb){\n Configuration::where('id', 1)\n ->update(['nb_max_times_bloked' => $nb]);\n }", "public function testSetPrimeHNuitNormal() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setPrimeHNuitNormal(10.092018);\n $this->assertEquals(10.092018, $obj->getPrimeHNuitNormal());\n }", "public function getNbreHMardi(): ?float {\n return $this->nbreHMardi;\n }", "function set_heading()\n\t{\n\t\t$args = func_get_args();\n\t\t$this->heading = $this->_prep_args($args);\n\t}", "function initialize () {\n $this->set_openingtag ( \"<H6[attributes]>\" );\n\t$this->set_closingtag ( \"</H6>\" );\n }", "protected function setHTMLVar() {\r\n $this->htmlVar = array(\r\n 'htmlTitle' => HTML_TITLE,\r\n 'htmlTitleSuffix' => ''\r\n );\r\n }", "public function setNumber($number);", "public function __construct()\n {\n //$this->setH1('');\n }", "public function __construct($n)\n {\n $this->n = $n;\n }", "public function set_typeNum()\n {\n // init the map\n $this->initVarTypeNum();\n }", "public function init_config_data($host) {\n\t\t\t$this->host->test_mode = true;\n\t\t\t$this->host->min_weight = 1;\n\t\t\t$this->host->max_weight = 150;\n\t\t}", "public function set_height($height, $hpp) {\n if (is_numeric($height) && $height > 0) {\n $hpp = strtolower($hpp);\n if ($hpp == 'px' || $hpp == '%') {\n $this->_height = abs($height);\n $this->_hpp = $hpp;\n }\n }\n }", "public function setNbreHMaxiDimanche(?float $nbreHMaxiDimanche): HoraireTheorique {\n $this->nbreHMaxiDimanche = $nbreHMaxiDimanche;\n return $this;\n }", "public function getNbreHSamedi(): ?float {\n return $this->nbreHSamedi;\n }", "public function setNbreHMaxiMardi(?float $nbreHMaxiMardi): HoraireTheorique {\n $this->nbreHMaxiMardi = $nbreHMaxiMardi;\n return $this;\n }", "public function set_spacing_sizes()\n {\n }", "public function getNumerTaryfyHs()\n {\n return $this->numerTaryfyHs;\n }", "public function setNbreHMiniDimanche(?float $nbreHMiniDimanche): HoraireTheorique {\n $this->nbreHMiniDimanche = $nbreHMiniDimanche;\n return $this;\n }", "function setNumero($numero){\n if(empty($numero)){\n header(\"Location:../vu/formulaire_inscription.php\");\n return;\n\n }\n //on declare de la variable numero puis on appelle la varibale prive numero\n $this->_numero = $numero;\n }", "public function set_hp(Int $_hp){\n $this->_hp = $_hp;\n\n return $this;\n }", "public function setBreadth($breadth) {\r\n $this->breadth = $breadth;\r\n }", "public function setHSupBonif(?float $hSupBonif): PrepaPaie {\n $this->hSupBonif = $hSupBonif;\n return $this;\n }", "protected function SetGridDimensions()\n {\n $this->g_height = $this->height - $this->pad_top - $this->pad_bottom;\n $this->g_width = $this->width - $this->pad_left - $this->pad_right;\n }", "function initialize () {\n $this->set_openingtag ( \"<H7[attributes]>\" );\n\t$this->set_closingtag ( \"</H7>\" );\n }", "public function testSetHRempl() {\n\n $obj = new HistoPrepPaie();\n\n $obj->setHRempl(10.092018);\n $this->assertEquals(10.092018, $obj->getHRempl());\n }" ]
[ "0.68551844", "0.62782705", "0.560459", "0.5466795", "0.5428369", "0.5373916", "0.53461426", "0.5289319", "0.5253452", "0.52494055", "0.52249455", "0.51957285", "0.5159444", "0.51197094", "0.510041", "0.5099026", "0.5084571", "0.5079496", "0.50769275", "0.50484216", "0.50483483", "0.5044798", "0.5033487", "0.49858588", "0.49688554", "0.4967626", "0.49654672", "0.49640992", "0.49512452", "0.49481928", "0.49365535", "0.49304557", "0.49218306", "0.4919283", "0.49097124", "0.4897537", "0.48902225", "0.4882543", "0.48664683", "0.48580655", "0.48575625", "0.48530638", "0.4832991", "0.4814621", "0.48136023", "0.47907314", "0.47880548", "0.47778127", "0.47758615", "0.47574636", "0.4751985", "0.47494218", "0.4745983", "0.47418478", "0.47316098", "0.4720793", "0.4714724", "0.4710713", "0.47093853", "0.4708291", "0.4703912", "0.4700357", "0.46984935", "0.46927255", "0.46858457", "0.4685805", "0.46855658", "0.46823594", "0.46744773", "0.46729708", "0.46722186", "0.4669343", "0.46658468", "0.46657103", "0.4663084", "0.46396708", "0.46359974", "0.46327144", "0.46320993", "0.46298656", "0.46281683", "0.46173868", "0.4616765", "0.4613074", "0.46079278", "0.45970935", "0.45944735", "0.45927843", "0.45887882", "0.45882326", "0.45867342", "0.4582037", "0.4578601", "0.4560179", "0.45579714", "0.45576894", "0.45572165", "0.45481715", "0.45478013", "0.45466512" ]
0.703059
0
Set the non repris.
Установите не_repris.
public function setNonRepris($nonRepris) { $this->nonRepris = $nonRepris; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getNonRepris() {\n return $this->nonRepris;\n }", "public function not() {\n\t\t$this->not = '!';\n\t\treturn $this;\n\t}", "public function setNe($x) { $this->ne = $x; }", "public function setNoexec($ne)\n {\n $this->noexec = (boolean) $ne;\n }", "public function setCompactNonIdentifiable($non_identifiable) {\n $this->_setCompact('non-identifiable', $non_identifiable ? 'NID' : NULL);\n }", "public function setUnmodified()\n {\n\t$this->modified= false;\n }", "public function setInvalid();", "public function setNonEditable() {\n\n if($this->controlID != null) {\n throw new BadMethodCallException('You cannot set styles after the control is added to the UI.');\n }\n\n $this->style = self::NON_EDITABLE;\n }", "public function resetBooleans()\n {\n $this->setShowSize(false);\n $this->setShowDescription(false);\n $this->setShowExtension(false);\n $this->setShowLastUpdate(false);\n }", "public function negate()\n\t{\n\t\t$this->not_in = !$this->not_in;\n\t}", "public function setInvisibleFlag($invisible = true) {}", "function setValorNota($nValorNota) {\n \n $this->nValorNota = $nValorNota;\n }", "public function noRedEye()\n {\n $this->getValue()->setSimpleNamedValue('no', 'redeye');\n\n return $this;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function isNot()\n {\n return $this->not;\n }", "public function setNota($nota){\n\t\t$this->nota = $nota;\n\t}", "public function setNonGere(?bool $nonGere): RetraitesEmp {\n $this->nonGere = $nonGere;\n return $this;\n }", "public function setNota($nota){\n $this->nota = $nota;\n }", "public function getIsNot()\n {\n return $this->is_not;\n }", "public function negate()\n {\n $this->_not = true;\n return $this;\n }", "public function notEmpty()\n {\n $this->non_empty = true;\n }", "public function setCanNotBeNull() {\n $this->__isNullAllowed = false;\n return $this;\n }", "function setNoBackground($no_background) {\n $this->fields['no_background'] = $no_background;\n return $this;\n }", "function setNoBackground($no_background) {\n $this->fields['no_background'] = $no_background;\n return $this;\n }", "function setNoCopy($no_copy) {\n $this->fields['no_copy'] = $no_copy;\n return $this;\n }", "public function setIsNot($v)\n {\n if ($v !== null) {\n if (is_string($v)) {\n $v = in_array(strtolower($v), array('false', 'off', '-', 'no', 'n', '0', '')) ? false : true;\n } else {\n $v = (boolean) $v;\n }\n }\n\n if ($this->is_not !== $v) {\n $this->is_not = $v;\n $this->modifiedColumns[] = FeatureCvtermPeer::IS_NOT;\n }\n\n\n return $this;\n }", "public function setHidden(){\n $this->_hidden = true;\n }", "public function hideExtraField()\n {\n $this->houses=false;\n $this->jobs_training=false;\n $this->motorcycles =false;\n $this->cars = false;\n $this->offices=false;\n $this->lands_plots=false;\n return;\n }", "public function preview_no_options_message($str)\n\t{\n\t\t$this->relation_preview_no_options = $str;\n\t\treturn $this;\n\t}", "public function setIteneraryNonRefundableIndicator(bool $value): self\n {\n $this->IteneraryNonRefundableIndicator = $value;\n\n return $this;\n }", "public function setFormatNonEtendu(?bool $formatNonEtendu): HistoTauxRetraiteMetier {\n $this->formatNonEtendu = $formatNonEtendu;\n return $this;\n }", "public function noProrate() : self\n {\n $this->prorate = false;\n\n return $this;\n }", "public final function setImmutable()\n {\n $this->isImmutable = true;\n }", "public function setNoCopy(?bool $noCopy) : self\n {\n $this->noCopy = $noCopy;\n return $this;\n }", "public function get_nonces()\n {\n }", "public function testSetTxComInvisible() {\n\n $obj = new Collaborateurs();\n\n $obj->setTxComInvisible(true);\n $this->assertEquals(true, $obj->getTxComInvisible());\n }", "public function setOverprintControlNonStroking($overprintControl) {}", "public function preview_no_relation()\n\t{\n\t\t$this->preview_no_relation = true;\n\t\treturn $this;\n\t}", "public function setNotaAttribute($value)\n {\n $this->attributes['nota'] = (trim($value) !== '' ? $value : ' ');\n }", "function setNoBreak() {\t \r\n\t \t$this->noBreak = true;\r\n\t}", "public function setNoRender($flag = true)\n {\n $this->_noRender = ($flag) ? true : false;\n return $this;\n }", "final static public function restoreDisplayOptions( ){\n\t\t\t\tstatic::$_displayOptions = self::ERRALL & ~self::ERRTRC;\n\t\t\t\treturn;\n\t\t\t}", "function outputEntitiesOff()\n\t{\n\t\t$this->bOutputEntities = false;\n\t}", "public function videoconferenciaNoInterrumpirOFF( ) {\n $this->setNoInterrumpir(\"ON\");\n// $this->setNoInterrumpir(\"AUTOANSWER\");\n }", "public function getNonOptions()\n {\n return $this->nonOptions;\n }", "function setNota_num($inota_num = '')\n {\n $this->inota_num = $inota_num;\n }", "public function setNerve($value)\n {\n $this->nerve = $value;\n }", "function setNoPrint($no_print) {\n $this->fields['no_print'] = $no_print;\n return $this;\n }", "public function setEstaNoti($value) {\n\t\t$this->esta_noti = $value;\n\t\treturn true;\n\t}", "public function setNeverRender($flag = true)\n {\n $this->_neverRender = ($flag) ? true : false;\n return $this;\n }", "function setNoModify($no_modify) {\n $this->fields['no_modify'] = $no_modify;\n return $this;\n }", "public function setNoSave()\n {\n $this->no_save = true;\n\n return $this;\n }", "public function setUTF()\n {\n return false;\n }", "public function resetSpecial()\n {\n return $this->special = (PHP_VERSION_ID < 50400 or $this->newline !== \"\\n\");\n }", "public function setNonProfitAddress(array $nonProfitAddress)\n {\n $this->nonProfitAddress = $nonProfitAddress;\n return $this;\n }", "public static function setNoHideSecrets (){\n self::$hideSecrets = null;\n }", "public function setNoWrap() // Deprecated\n {\n parent::setAttr(\"nowrap\", \"nowrap\");\n }", "public function testSetNotForPaymentDisabledFields()\n {\n $this->slipData->setWithReferenceNumber(false);\n $this->slipData->setWithBankingCustomerId(false);\n\n $this->slipData->setNotForPayment(true);\n }", "private function cObjData_unsetFlagDisplayInCaseOfNoCounting()\n {\n static $bool_DRSprompt = true;\n\n if ( !$this->ts_getDisplayInCaseOfNoCounting() )\n {\n return;\n }\n\n // Unset the treeview field\n $key = $this->pObj->prefixId . '.flag_displayInCaseOfNoCounting';\n unset( $this->pObj->cObj->data[ $key ] );\n\n // DRS\n if ( $this->pObj->b_drs_cObjData && $bool_DRSprompt )\n {\n $prompt = 'cObj->data[ ' . $key . '] is unset.';\n t3lib_div::devlog( '[INFO/COBJ] ' . $prompt, $this->pObj->extKey, 0 );\n $bool_DRSprompt = false;\n }\n // DRS\n }", "public function setHidden($value = TRUE);", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setNivel_stgr('');\n $this->setDesc_nivel('');\n $this->setDesc_breve('');\n $this->setOrden('');\n $this->setPrimary_key($aPK);\n }", "public function testSetReferenceNumberWhenDisabled()\n {\n $this->slipData->setWithReferenceNumber(false);\n $this->slipData->setReferenceNumber('');\n }", "public function setIsNillable($isNillable)\n {\n $this->isNillable = $isNillable;\n return $this;\n }", "function setNotCreated() \n {\n $this->setValueByFieldName( 'statevar_isCreated', 0 );\n $this->updateDBTable();\n }", "function __construct($value) {\n if ($value != self::ADDR_NOMEN_FULL && $value != self::ADDR_NOMEN_PARTIAL ) {\n $this->_value = self::ADDR_NOMEN_NO;\n } else {\n $this->_value = $value;\n }\n }", "public function setNonStrokingColor($color) {}", "public function setNonStrokingColor($color) {}", "public function setNoInterrumpir( $comando ) {\n $this->noInterrumpir=$comando;\n $this->enviarNoInterrumpir();\n $this->activarPantalla();\n //activar y enviar comando\n }", "function disablePadding()\r\n {\r\n $this->padding = false;\r\n }", "public function setNoViewFlag($noView = true) {}", "public function setNoValidateYes()\n\t{\n\t\t$this->setAttribute( \"novalidate\");\n\t}", "public function testSetStyleWithNonNovelDuplicateValuesAndUnsetRowValues()\n {\n\n // Create a record.\n $exhibit = $this->_createNeatline();\n\n // Set.\n $this->assertFalse($exhibit->setStyle('vector_color', get_option('vector_color')));\n $this->assertFalse($exhibit->setStyle('vector_opacity', get_option('vector_opacity')));\n $this->assertFalse($exhibit->setStyle('stroke_color', get_option('stroke_color')));\n $this->assertFalse($exhibit->setStyle('stroke_opacity', get_option('stroke_opacity')));\n $this->assertFalse($exhibit->setStyle('stroke_width', get_option('stroke_width')));\n $this->assertFalse($exhibit->setStyle('point_radius', get_option('point_radius')));\n\n // Check.\n $this->assertNull($exhibit->default_vector_color);\n $this->assertNull($exhibit->default_vector_opacity);\n $this->assertNull($exhibit->default_stroke_color);\n $this->assertNull($exhibit->default_stroke_opacity);\n $this->assertNull($exhibit->default_stroke_width);\n $this->assertNull($exhibit->default_point_radius);\n\n }", "public function testSetPaInvisible() {\n\n $obj = new Collaborateurs();\n\n $obj->setPaInvisible(true);\n $this->assertEquals(true, $obj->getPaInvisible());\n }", "public function setNoZoomFlag($noZoom = true) {}", "public function videoconferenciaNoInterrumpir( ) {\n $this->setNoInterrumpir(\"OFF\");\n //$this->setNoInterrumpir(\"ALLOCATED\");\n }", "public function setNoBlock($noBlock)\n {\n $this->noBlock = (bool) $noBlock;\n return $this;\n }", "function reset() {\n\t\tparent::_resetSet();\n\t}", "public function negados(): void\n {\n $dados['title'] = 'Negados';\n $dados['procedimentos'] = $this->Procedimentos->porPaciente(['negado_por !=' => NULL]);\n\n $this->view('regulacao/procedimentos/Negados_view', $dados);\n }", "public function setNoWrap($noWrap)\n {\n if (!is_bool($noWrap) && ($noWrap !== null)) {\n throw BaseException::invalidCoordinateNoWrap();\n }\n\n $this->noWrap = $noWrap;\n }", "public function setNoticias($noticias)\n {\n if (!is_null($noticias))\n $this->noticias = $noticias;\n }", "protected function reset()\n {\n $this->escapingEnabled = true;\n $this->pointerLineNumber = 1;\n $this->pointerLineCharacter = 1;\n }", "public function setCompact()\n {\n parent::setAttr(\"compact\");\n }", "protected function setDefaultOptions()\n {\n $this->unsigned = false;\n }", "public function setDoNotSpellCheck()\n {\n if (!in_array(23, $this->flagBits)) {\n $this->flagBits[] = 23;\n }\n return $this;\n }", "public function disable_autorum()\n\t{\n\t\tnewrelic_disable_autorum();\n\t}", "public function getInvisibleFlag() {}", "public function setNota($nota)\n {\n $this->nota = $nota;\n\n return $this;\n }", "public function testSetNotForPayment()\n {\n $returned = $this->slipData->setNotForPayment(true);\n $this->assertInstanceOf('SwissPaymentSlip\\SwissPaymentSlip\\OrangePaymentSlipData', $returned);\n $this->assertTrue($this->slipData->getNotForPayment());\n\n $this->assertEquals('XXXXXXXXXXXXXXXXXXXX', $this->slipData->getReferenceNumber());\n $this->assertEquals('XXXXXXXXXXXXXXXXXXXXXXXXXXX', $this->slipData->getCompleteReferenceNumber(false));\n $this->assertEquals('XX XXXXX XXXXX XXXXX XXXXX XXXXX', $this->slipData->getCompleteReferenceNumber());\n\n $this->assertEquals('XXXXXXXXXXXXX>XXXXXXXXXXXXXXXXXXXXXXXXXXX+ XXXXXXXXX>', $this->slipData->getCodeLine());\n }", "public function markUnchanged();", "public function setNoEffectAttribute($value)\n {\n $this->attributes['no_effect'] = $this->makeCollection($value);\n }", "public function setReadOnly()\n {\n $this->_allowModifications = false;\n foreach ($this->_data as $key => $value) {\n if ($value instanceof Zend_Config) {\n $value->setReadOnly();\n }\n }\n }", "public function setReadOnly ()\n {\n $this->resetNeedsSaving();\n $this->readOnly = true;\n }", "function ne ($value) {\n return '!=\\''.$value.'\\'';\n }", "public function setIgnoreValidation() {\r\n\t\t$this->getOnepage()->getQuote()->getBillingAddress()->setShouldIgnoreValidation(true);\r\n\t\t$this->getOnepage()->getQuote()->getShippingAddress()->setShouldIgnoreValidation(true);\r\n\t}", "function setNullAllAtributes()\n {\n $aPK = $this->getPrimary_key();\n $this->setId_dl('');\n $this->setDl('');\n $this->setRegion('');\n $this->setNombre_dl('');\n $this->setGrupo_estudios('');\n $this->setRegion_stgr('');\n $this->setStatus('');\n $this->setPrimary_key($aPK);\n }", "public function noValidate()\n {\n $this->attribute['novalidate'] = false;\n return $this;\n }", "public function setNullRights() {\n $this->canView = false;\n $this->canRule = false;\n $this->canDeal = false;\n\n return $this;\n }", "function debugOff()\n\t{\n\t\t$this->bDebug = false;\n\t}", "public function getNegocio();", "public function resetHidden($value = '')\n {\n $this->ansi(28);\n $this->raw($value);\n\n return $this;\n }" ]
[ "0.6789798", "0.66197675", "0.6381324", "0.5944018", "0.59153557", "0.5843811", "0.5836054", "0.5829398", "0.58257836", "0.5818445", "0.5817638", "0.5809363", "0.57627314", "0.5710994", "0.5710994", "0.56978965", "0.5690516", "0.5686984", "0.5660401", "0.5624591", "0.5619352", "0.559908", "0.55645674", "0.55645674", "0.5560011", "0.55596036", "0.5550255", "0.5488288", "0.5485423", "0.5483099", "0.5463883", "0.54636276", "0.5462568", "0.5461651", "0.545009", "0.54444516", "0.5408409", "0.5403631", "0.5377051", "0.53749704", "0.5373622", "0.53625864", "0.53475004", "0.53444475", "0.532576", "0.5300053", "0.5284397", "0.52813756", "0.5279021", "0.5268197", "0.5264016", "0.52598923", "0.5256792", "0.52486974", "0.5244014", "0.52424926", "0.5241179", "0.5240287", "0.5238316", "0.52301514", "0.52297056", "0.5219523", "0.52131724", "0.5196285", "0.5191521", "0.51850295", "0.51850295", "0.51840144", "0.51759624", "0.51743376", "0.51723915", "0.51639664", "0.5162223", "0.5160657", "0.51595753", "0.5133257", "0.51271296", "0.5120251", "0.5092462", "0.50820065", "0.50705856", "0.50679624", "0.50645393", "0.5064528", "0.5063055", "0.5062001", "0.5061703", "0.5058516", "0.5057127", "0.505336", "0.5052119", "0.5044549", "0.5041261", "0.5040077", "0.5038404", "0.50310445", "0.5030441", "0.50293505", "0.5021247", "0.5018078" ]
0.71935844
0
Set the signature date.
Установите дату подписи.
public function setSignatureDate(DateTime $signatureDate = null) { $this->signatureDate = $signatureDate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function setDate($date);", "private function _setDate(){\n\t\tif($this->_year>=1970&&$this->_year<=2038){\n\t\t\t$this->_day = date('d', $this->_timestamp);\n\t\t\t$this->_month = date('m', $this->_timestamp);\n\t\t\t$this->_year = date('Y', $this->_timestamp);\n\t\t} else {\n\t\t\t$dateParts = self::_getDateParts($this->_timestamp, true);\n\t\t\t$this->_day = sprintf('%02s', $dateParts['mday']);\n\t\t\t$this->_month = sprintf('%02s', $dateParts['mon']);\n\t\t\t$this->_year = $dateParts['year'];\n\t\t}\n\t\t$this->_date = $this->_year.'-'.$this->_month.'-'.$this->_day;\n\t}", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setDate($date) {\n $this->date = $date;\n }", "public function getSignatureDate() {\n return $this->signatureDate;\n }", "public function getSignatureDate() {\n return $this->signatureDate;\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "protected function setSignature( $data ){\n $this->signature = $data;\n }", "public function setExpirationDate(?Date $value): void {\n $this->getBackingStore()->set('expirationDate', $value);\n }", "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}", "public function setDate( $date ) {\n\t\tif ( !preg_match( self::DATERE, $date ) ) {\n\t\t\tthrow new InvalidArgumentException( \"Not a valid date: \".$date );\n\t\t}\n\t\t$this->setParameter( \"dtreviewed\", $date );\n\t}", "public function set_date($date) \n\t{\n\t\tif(! is_numeric($date))\n\t\t{\n\t\t\t$date = strtotime($date);\n\t\t}\n\t\t\n\t\tif($this->version == ATOM)\n\t\t{\n\t\t\t$tag = 'updated';\n\t\t\t$value = date(DATE_ATOM, $date);\n\t\t} \n\t\telseif($this->version == RSS2) \n\t\t{\n\t\t\t$tag = 'pubDate';\n\t\t\t$value = date(DATE_RSS, $date);\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$tag = 'dc:date';\n\t\t\t$value = date(\"Y-m-d\", $date);\n\t\t}\n\t\t\n\t\t$this->add_element($tag, $value); \n\t}", "public function setPubDate( $timestamp ) {\n\t\t$this->pubDate = date( 'r', $timestamp );\n\t}", "private function setDate(){\n\t// Validate incoming parameters\n\t\t$this->di->logger->stamp(__CLASS__, __METHOD__, '');\n\tif (isset($_GET['month'])) {\n\t\tis_numeric($_GET['month']) or die('month has to be numeric');\n\t}\n\tif (isset($_GET['year'])) {\n\t\tis_numeric($_GET['year']) or die('year has to be numeric');\n\t}\n\n\t// Set new date\n\t$this->newMonth = isset($_GET['month']) ? ($_GET['month']) : $this->currentMonth;\n\t$this->newYear = isset($_GET['year']) ? ($_GET['year']) : $this->currentYear;\n\n\tif ($this->newMonth > 12) {\n\t\t$this->newYear = $this->newYear +1;\n\t\t$this->newMonth = 1;\n\t\t$_GET['month'] = 1;\n\n\t}\n\telse if ($this->newMonth < 1) {\n\t\t$this->newYear = $this->newYear -1;\n\t\t$this->newMonth = 12;\n\t\t$_GET['month'] = 12;\n\t}\n\t\n\t}", "public function setCreated($date)\n {\n $this->created = $date;\n }", "public function testSetSignDate() {\n\n // Set a Date/time mock.\n $signDate = new DateTime(\"2018-09-10\");\n\n $obj = new AttestationCacm();\n\n $obj->setSignDate($signDate);\n $this->assertSame($signDate, $obj->getSignDate());\n }", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setCreationDate($date) {}", "public function setExpiryDate($date)\n {\n $this->expiryDate = $date;\n }", "public function setCreated($date) \n\t{\n\t\t$this->created = $this->parseDate($date);\n\t}", "public function SetSignatureParameter() {\n $signature_text = $this->signature->build_signature($this->request, $this->consumer, $this->token);\n $this->request->set_parameter('signature', $signature_text);\n return $this;\n }", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}", "public function setCreatedDate($date)\r\n\t\t{\r\n\t\t\t$this->_created_date = $date;\r\n\t\t}", "public function setSignature($signature) {\n\t\t$this->signature = $signature;\n\t}", "function setDate($date = null)\r\n\t{\t\r\n\t\t$day = substr($date ,8, 2);\r\n\t\t$month = substr($date ,5, 2);\r\n\t\t$year = substr($date ,0, 4);\r\n\t\t\r\n\t\t$newDate = $day.'-'.$month.'-'.$year;\r\n\t\t\r\n\t\treturn $newDate;\r\n\t}", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function setDatePosted($val) {\n $this->identifier = $this->updateDB('identifier', $val);\n }", "public function setSignatureKey(?string $signatureKey): void\n {\n $this->signatureKey = $signatureKey;\n }", "public function setStartDate(?Date $value): void {\n $this->getBackingStore()->set('startDate', $value);\n }", "public function setPubDate($pubDate)\n {\n $this->_pubDate = $pubDate;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }", "public function setSignatureFile($path)\n {\n $this->setSignatureFileFromPath($path);\n }", "public function setPubDate($pubDate);", "public function setCreationDate($date = true) {}", "public function setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\n \t}", "public function setStartDate(string $date);", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setCreationTimestamp(?DateTime $value): void {\n $this->getBackingStore()->set('creationTimestamp', $value);\n }", "public function setPublishDateAttribute($value)\n {\n $this->attributes['publish_date'] = date(\"Y-m-d H:i:s\", strtotime($value));\n }", "public function setDateOfBirth()\n {\n $dateOfBirth = request('dob_year') . '-' . request('dob_month') . '-' . request('dob_day');\n\n $this->date_of_birth = $dateOfBirth;\n $this->save();\n }", "public function setGalleryDate($newGalleryDate = null) : void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newGalleryDate === null) {\n\t\t\t$this->galleryDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\t\t// store the like date using the ValidateDate trait\n\t\ttry {\n\t\t\t$newGalleryDate = self::validateDateTime($newGalleryDate);\n\t\t} catch(\\InvalidArgumentException | \\RangeException $exception) {\n\t\t\t$exceptionType = get_class($exception);\n\t\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t\t}\n\t\t$this->galleryDate = $newGalleryDate;\n\t}", "public function setReviewedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('reviewedDateTime', $value);\n }", "public function setCreateDate(string $create_date): void\n {\n $this->create_date = $create_date;\n }", "private function _consolideDate(){\n\t\t$this->_mktime();\n\t\t$this->_setDate();\n\t}", "public function setPaymentDate($payment_date);", "public function setDate($value)\n {\n if ($value instanceof \\IntlCalendar)\n $value = $value->toDateTime();\n\n if (is_string($value))\n $value = new \\DateTime($value);\n\n if (is_int($value))\n {\n $lower_bound = time() - self::ALLOWABLE_DATE_WINDOW;\n $upper_bound = time() + self::ALLOWABLE_DATE_WINDOW;\n if ($value >= $lower_bound && $value <= $upper_bound)\n $value = new \\DateTime('@' . $value);\n }\n\n // Validate\n if (!($value instanceof \\DateTimeInterface))\n throw new \\InvalidArgumentException(\"Date must be DateTime, IntlCalendar, date string or valid Unix timestamp\");\n\n $this->header_fields['Date'] = $value;\n return $this;\n }", "public function setContactDate($date) {\n $this->date = $date;\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 }", "function setAuthSignature($AuthSignature)\n {\n \t$this->_authSignature =$AuthSignature;\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function setDate($date)\n {\n $this->values['Date'] = $date;\n return $this;\n }", "public function setModDate($date) {}", "public function set_approved_date( $date ) {\n\t\t$this->set_prop( 'approved_date', $date ) ;\n\t}", "protected function setstartdate(string $startdate)\r\n\t{\r\n\t\t$this->startdate = $startdate;\r\n\t}", "public function setDate($date)\n {\n $this->date = $date;\n\n return $this;\n }", "public function setDateSignature1(?DateTime $dateSignature1): Assurances {\n $this->dateSignature1 = $dateSignature1;\n return $this;\n }", "function setExpiryDate($expirydate) {\n $this->checkChange();\n\n if ($expirydate > 0 || $expirydate === 0 || $expirydate === NULL) {\n $this->expirydate = (int)$expirydate;\n }\n else {\n $this->abort();\n throw new UserpointsInvalidArgumentException(t('Expiration date must be an integer'));\n }\n return $this;\n }", "public function setCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('creationDateTime', $value);\n }", "public function setCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('creationDateTime', $value);\n }", "public function setUpRegisterDate()\n {\n $this->setRegisterDate(new \\DateTime());\n }", "public function setinvoiceDateAttribute($value)\n {\n\n $this->attributes['invoice_date'] = UserHelper::parseDateFromString($value);\n }", "public function setTokenValidDate()\n {\n $this->tokenValidDate = new DateTime('+ 2 hours');\n }", "function setExpireDate($ed) {\n\t\tif ($ed) {\n\t\t\t$newtime = dateTimeConvert($ed);\n\t\t\tif ($newtime === false) return;\n\t\t\t$this->set('expiredate', $newtime);\n\t\t} else {\n\t\t\t$this->set('expiredate', NULL);\n\t\t}\n\t}", "public\n\tfunction setPostDate($newPostDate = null): void {\n\t\t// base case: if the date is null, use the current date and time\n\t\tif($newPostDate === null) {\n\t\t\t$this->postDate = new \\DateTime();\n\t\t\treturn;\n\t\t}\n\n\n\n\t//store the like date using the ValidateDate trait\n\ttry {\n\t\t$newPostDate = self::validateDateTime($newPostDate);\n\t} catch(\\InvalidArgumentException |\\RangeException $exception) {\n\t\t$exceptionType = get_class($exception);\n\t\tthrow(new $exceptionType($exception->getMessage(), 0, $exception));\n\t}\n\t$this->postDate = $newPostDate;\n\n}", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDateCreated($value)\n {\n $this->validateDate('DateCreated', $value);\n $this->validateNotNull('DateCreated', $value);\n\n if ($this->data['date_created'] === $value) {\n return;\n }\n\n $this->data['date_created'] = $value;\n $this->setModified('date_created');\n }", "public function setInvoiceDate($val)\n {\n $this->_propDict[\"invoiceDate\"] = $val;\n return $this;\n }", "function setFecha($fecha) {\r\n $this->fecha = $fecha;\r\n }", "function set_exif_date($filename) {\n echo \" Setting date for $filename\\n\";\n $cmd = \"/usr/bin/exiftool -overwrite_original '-datetimeoriginal<filename' '$filename' 2>&1 1> /dev/null\";\n $results = shell_exec($cmd);\n if(strpos($results, 'looks more like a PNG') !== false) {\n $results = shell_exec(\"/usr/bin/mogrify -format jpg '$filename'\");\n $results = shell_exec($cmd);\n }\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setCreatedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('createdDateTime', $value);\n }", "public function setDate($date) {\n $this->date = $date;\n $this->updateData();\n return $this;\n }", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "function _sf_set_spot_expiry_date($post) {\n\t\t\n\t\t///// FIRSTLY LET'S ADD A METABOX FOR OUR EXPIRY DATE\n\t\t$exp_date = time() + (ddp('submission_days') * (60*60*24));\n\t\t\n\t\t$midnight_time = $exp_date;\n\t\t\n\t\tupdate_post_meta($post->ID, 'expiry_date', $midnight_time);\n\t\t\n\t\t///// SETS UP OUR CRON JOB\n\t\twp_schedule_single_event($midnight_time, 'expire_spot_submission', array($post->ID, $post->post_title, $post->post_author, ''.$midnight_time.''));\n\t\t\n\t}", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "public function setStartDate($date)\n\t\t{\n\t\t\t$this->start_date = $date;\n\t\t}", "public function setDate($date = null): object\n\t{\n\t\tif (null !== $date && !($date instanceof FHIRDateTime)) {\n\t\t\t$date = new FHIRDateTime($date);\n\t\t}\n\t\t$this->_trackValueSet($this->date, $date);\n\t\t$this->date = $date;\n\t\treturn $this;\n\t}", "function set_date_to_now()\n {\n $this->timestamp=time();\n }", "public function setDate(string $date)\r\n {\r\n $this->date = $date;\r\n\r\n return $this;\r\n }", "public function setFormationDate($value)\n {\n return $this->set(self::FORMATIONDATE, $value);\n }", "public function setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }" ]
[ "0.6909436", "0.6663818", "0.6610339", "0.65995985", "0.65995985", "0.65993595", "0.65898025", "0.6589389", "0.6589389", "0.6571134", "0.6508739", "0.63443655", "0.6335881", "0.63342345", "0.6319506", "0.63190424", "0.61906254", "0.6176249", "0.6162845", "0.61507285", "0.61487526", "0.6145867", "0.61211663", "0.61211663", "0.6114592", "0.61075616", "0.6102689", "0.6100941", "0.609245", "0.6087358", "0.6045106", "0.6045031", "0.60349107", "0.6007172", "0.599566", "0.59893125", "0.59874815", "0.5954986", "0.5943303", "0.587972", "0.5875854", "0.5849282", "0.5835386", "0.5819876", "0.5782433", "0.57778394", "0.57737726", "0.57335097", "0.57178813", "0.5703024", "0.57029784", "0.5692492", "0.5687133", "0.5686862", "0.5677011", "0.56764084", "0.56722707", "0.56722707", "0.56708735", "0.56634563", "0.56469214", "0.56325513", "0.56163204", "0.5616273", "0.5611573", "0.56102496", "0.56015396", "0.55903196", "0.55903196", "0.55896217", "0.55874485", "0.558251", "0.55802125", "0.55793726", "0.55783945", "0.55783945", "0.55734503", "0.55678254", "0.55652976", "0.5561514", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.5542494", "0.55362105", "0.55353206", "0.55353206", "0.5532158", "0.55299157", "0.5526761", "0.5523718", "0.5510614", "0.55012035", "0.5478007", "0.5468298" ]
0.71012825
1
Set the signature qualite.
Установите качество подписи.
public function setSignatureQualite($signatureQualite) { $this->signatureQualite = $signatureQualite; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "public function SetSignatureParameter() {\n $signature_text = $this->signature->build_signature($this->request, $this->consumer, $this->token);\n $this->request->set_parameter('signature', $signature_text);\n return $this;\n }", "protected function setSignature( $data ){\n $this->signature = $data;\n }", "public function setSignature($signature) {\n\t\t$this->signature = $signature;\n\t}", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function getSignatureQualite() {\n return $this->signatureQualite;\n }", "public function setSignature($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature = $var;\n }", "function setAuthSignature($AuthSignature)\n {\n \t$this->_authSignature =$AuthSignature;\n }", "public function setSignatureQualiteCode($signatureQualiteCode) {\n $this->signatureQualiteCode = $signatureQualiteCode;\n return $this;\n }", "function setSignatureMode($mode)\n {\n $this->signatureMode = $mode;\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 setSignatureFile($path)\n {\n $this->setSignatureFileFromPath($path);\n }", "public function getSignatureQualiteCode() {\n return $this->signatureQualiteCode;\n }", "public function setSignatureKey(?string $signatureKey): void\n {\n $this->signatureKey = $signatureKey;\n }", "public function setSignature($signature = null)\n {\n $this->_signature = $signature;\n return $this;\n }", "public function testSetSignQualite() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignQualite(10);\n $this->assertEquals(10, $obj->getSignQualite());\n }", "public function setSignature(array $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSig(string $sig)\n {\n $this->sig = $sig;\n\n return $this;\n }", "public function withSignature($signature);", "public function setSignature($body) {\n $this->addHeaders([\n 'X-Hub-Signature' => 'sha1=' . hash_hmac('sha1', $body, $this->secret, FALSE),\n ]);\n return $this;\n }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = $val;\n return $this;\n }", "public function setSignature($signature)\n {\n if (!base64_decode($signature)) {\n throw new \\Exception(\"The provided signature was not valid\");\n }\n\n $this->signature = $signature;\n }", "protected function setRequestSignature($request) {\n\t\t$fields = array(\n\t\t\t\t$this->getVersion(), // APIVERSION\n\t\t\t\t$this->tid, // TID\n\t\t\t\t$this->shopID, // SHOPID\n\t\t\t\t$this->shopUserRef, // SHOPUSERREF\n\t\t\t\t$this->amount, // AMOUNT\n\t\t\t\t$this->currencyCode, // CURRENCYCODE\n\t\t\t\t$this->pan, // PAN\n\t\t\t\t$this->payInstrToken, // PAYINSTRTOKEN\n\t\t\t\t$this->expireMonth, // EXPIREMONTH\n\t\t\t\t$this->expireYear, // EXPIREYEAR\n\t\t\t\t$this->termURL, // TERMURL\n\t\t\t\t$this->description, // DESCRIPTION\n\t\t\t\t$this->addInfo1, // UDF1\n\t\t\t\t$this->addInfo2, // UDF2\n\t\t\t\t$this->addInfo3, // UDF3\n\t\t\t\t$this->addInfo4, // UDF4\n\t\t\t\t$this->addInfo5); // UDF5\n\t\t$signature = $this->getSignature($this->kSig, // KSIGN\n\t\t\t\t$fields); \n\t\t$request = $this->replaceRequest($request, \"{signature}\", $signature);\n\t\treturn $request;\n\t}", "public function setCallSignature(string $call_sig):void{\n\t\t$this->call_sig = $call_sig;\n\t }", "public function setSignatureFileContent($contentRaw)\n {\n $this->setSignatureFileFromContentRaw($contentRaw);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "function setSign( $value )\r\n {\r\n $this->Sign = $value;\r\n }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = boolval($val);\n return $this;\n }", "public function setSignatureFileFromPath($path)\n {\n if (!file_exists($path)) {\n throw new \\Exception(\"The provided signature file was not found\");\n }\n $this->signatureFilePath = $path;\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 testSetEmailModeSignature() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailModeSignature(10);\n $this->assertEquals(10, $obj->getEmailModeSignature());\n }", "function setSrcQualifier($srcQualifier) {\n if ($srcQualifier !== ($oldSrcQualifier = $this->srcQualifier)) {\n if ($this->immutable) throw self::immutableException();\n $this->srcQualifier = $srcQualifier;\n }\n }", "public function customize_preview_signature()\n {\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function setLicense(SetAlbumLicenseRequest $request): void\n\t{\n\t\t$request->album()->license = $request->license();\n\t\t$request->album()->save();\n\t}", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function _setFirma($Firma)\n {\n $this->Firma = $Firma;\n\n }", "public function setSigner($val)\n {\n $this->_propDict[\"signer\"] = $val;\n return $this;\n }", "public function setFileToSign($path)\n {\n $this->setFileToSignFromPath($path);\n }", "public function setFileToSign($path)\n {\n $this->setFileToSignFromPath($path);\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 setSignaturePrenom($signaturePrenom) {\n $this->signaturePrenom = $signaturePrenom;\n return $this;\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}", "protected function set_quality($quality) {\n\t\t\n\t\t$default\t= $this->get_quality_default();\n\t\t$ar_valid \t= $this->get_ar_quality();\n\t\t\n\t\tif(empty($quality)) {\n\t\t\t$this->quality = $default;\n\t\t\treturn $this->quality;\n\t\t}\n\t\t#dump($quality,\"QUALITY HERE\");\n\t\t#$quality \t= strtolower($quality);\t\t\t\n\t\t\n\t\tif(!is_array($ar_valid)) {\n\t\t\tthrow new Exception(\"config ar_valid is not defined!\", 1);\n\t\t}\n\t\t\n\t\tif(!in_array($quality,$ar_valid)) {\n\t\t\t$quality = $default ;\t\t#dump($ar_valid,\"$quality NO IS IN ARRAY !!!!!\");\n\t\t}\n\n\t\t$this->quality = $quality;\n\t\t\n\t\treturn $this->quality;\n\t}", "public function setSignatureAlgorithm($signatureAlgorithm)\n {\n $this->signatureAlgorithm = (int) $signatureAlgorithm;\n }", "public static function resetSignature($signature)\n {\n if (class_exists('\\Comotive\\Firewall\\Defender')) {\n $firewall = new \\Comotive\\Firewall\\Defender();\n $firewall->resetIpSignature($signature);\n }\n }", "public function setSignatureHeader($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature_header = $var;\n\n return $this;\n }", "public function setSignedSignature(string $signedSignature): self {\n\t\t$this->signedSignature = $signedSignature;\n\n\t\treturn $this;\n\t}", "public function setSigla(string $sigla)\n {\n $this->sigla = $sigla;\n }", "public function setSignatureName($signatureName)\n {\n $this->values['SignatureName'] = $signatureName;\n return $this;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\n }", "public function setDataSignature() \n {\n $this->dataSignature = array(\n \"order_no\" => array(\"required\" => 1, \"type\" => \"int\"),\n \"order_status\" => array(\"required\" => 1, \"type\" => \"int\"),\n );\n }", "public function qualifications($qualifications)\n {\n return $this->setProperty('qualifications', $qualifications);\n }", "public function testSetGeneSeq() {\n\t\techo (\"\\n********************Test SetGeneSeq()*******************************************************\\n\");\n\t\t\n\t\t$this->gene->setGeneSeq ( 'setGeneSeq' );\n\t\t$this->assertEquals ( 'setGeneSeq', $this->gene->getGeneSeq () );\n\t}", "public function addToSignature(\\horstoeko\\ubl\\entities\\cac\\Signature $signature)\n {\n $this->signature[] = $signature;\n return $this;\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['signature']) && !empty($_FILES['signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\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 getSignature();", "public function testSetQualification() {\n\n $obj = new PointBonTrav();\n\n $obj->setQualification(\"qualification\");\n $this->assertEquals(\"qualification\", $obj->getQualification());\n }", "public function setQualifiers($qualifiers)\n {\n $this->qualifiers = $qualifiers;\n }", "public function setQuality($value) {\n\t\t$this->_quality = $value;\n\t}", "public function setDefaultsmssign()\n\t\t{\n\t\t\t$this->Checklogin();\n\t\t\t$signId=$this->input->post('signId');\n\t\t\n\t\t\tif(count($signId)>0)\n\t\t\t{\n\t\t\t\t$a=$this->setting_model->setDefaultsmssign($signId);\n\t\t\t\t\t\n\t\t\t\t$this->session->set_flashdata('success','Signature has been set to default successfully');\n\t\t\t\tsetAActivityLogs('Transaction_activity','AAsmssignature_default',\"Signature Default :-\".$signId);\n\t\t\t\techo true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Something Went Wrong.......!');\n\t\t\t\techo true;\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}", "public function sharedAccessSignature(string $signature): AzureBlobExternalAnalyticsLink\n {\n }", "public function sign()\n {\n }", "public function __construct()\n {\n $this->makeSignature();\n\n parent::__construct();\n }", "public function sign() : self\n {\n\n if ($this->is_signed()){\n return $this;\n }\n\n $signature = base64_encode(hash_hmac($this->algo, $this->getData(), $this->getKey(), true));\n\n $this->setSignature( $signature );\n\n $this->signed = true;\n\n \treturn $this;\n\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&amp;CODE=00'>\" . $ibforums->lang['t_title'] . \"</a>\");\r\n\r\n\t}", "public function setClearSignature(string $clearSignature): self {\n\t\t$this->clearSignature = $clearSignature;\n\n\t\treturn $this;\n\t}", "protected function sign()\n {\n trigger_error(\"Not implemented\", E_ERROR);\n }", "public function setSignatureFileFromContentRaw($contentRaw)\n {\n $tempFilePath = parent::createTempFile();\n file_put_contents($tempFilePath, $contentRaw);\n $this->signatureFilePath = $tempFilePath;\n }", "function getSignature()\n {\n return $this->_signature;\n }", "public function setProtectionPolicy(SetAlbumProtectionPolicyRequest $request, SetProtectionPolicy $setProtectionPolicy): void\n\t{\n\t\t$setProtectionPolicy->do(\n\t\t\t$request->album(),\n\t\t\t$request->albumProtectionPolicy(),\n\t\t\t$request->isPasswordProvided(),\n\t\t\t$request->password()\n\t\t);\n\t}", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\n }", "public function setSignInAudience($val)\n {\n $this->_propDict[\"signInAudience\"] = $val;\n return $this;\n }", "public function set_Squad1($value)\n\t{\n\t\t$this->Squad1 = $value;\n\t}", "public function editsmsSignature()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tif (isset($_POST ['btnSubmit']))\n\t\t{\n\t\n\t\t\t$data ['admin_section']='Sign';\n\t\t\t$id=$this->setting_model->editsmsSignature();\n\t\t\tif ($id)\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Signature has been updated successfully.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('error','Unable to update signature.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tredirect('admin/setting/smsSignature');\n\t\t}\n\t\n\t}", "public function setClaim(string $name, $value): void\n {\n $this->payload[$name] = $value;\n\n // Clear the generated hash since it's no longer valid\n $this->hash = null;\n }", "public function setShim(array $shim)\n {\n $this->shim = $shim;\n }", "public function getSignature() : string\n {\n return $this->signature;\n }", "public function set_origin($origin){\n \t$this->origin = $origin;\n }", "public function testAddSignature()\n {\n $data = array(\n 'foo' => 'baa'\n );\n\n $transaction = $this->client->transaction()->addSignature(655, $data);\n $this->assertEquals($data, get_object_vars($transaction->post), 'Passed variables are not correct');\n $this->assertEquals('POST', $transaction->request_method, 'The PHP Verb Is Incorrect');\n $this->assertEquals('/transactions/655/signature/capture', $transaction->path, 'The path is incorrect');\n\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 {\n return $this->signature;\n }", "public function testSetQualification() {\n\n $obj = new Employes();\n\n $obj->setQualification(\"qualification\");\n $this->assertEquals(\"qualification\", $obj->getQualification());\n }", "protected function assertSignature($value, $is_valid = TRUE) {\n // Must manually set hidden values because ::submitForm only set visible\n // element values and ignores hidden elements.\n // @see \\Drupal\\Tests\\UiHelperTrait::submitForm\n $this->drupalGet('/webform/test_element_signature');\n $field = $this->assertSession()->hiddenFieldExists('signature');\n $field->setValue($value);\n $this->submitForm([], 'Submit');\n if ($is_valid) {\n $this->assertNoRaw('signature contains an invalid signature.');\n }\n else {\n $this->assertRaw('signature contains an invalid signature.');\n }\n }", "public function testGetSignature()\n {\n\n }", "function setSensitivity($sensitive) {\n\t\t$this->_sensitive = $sensitive;\n\t}", "public function issetSignature($index)\n {\n return isset($this->signature[$index]);\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\t\t\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['bank_signature']) && !empty($_FILES['bank_signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('bank_signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} \r\n\t}" ]
[ "0.68597966", "0.6698528", "0.66283333", "0.66129583", "0.65129846", "0.65129846", "0.64959246", "0.63993406", "0.6354599", "0.6199017", "0.6166662", "0.61617255", "0.61617255", "0.61406803", "0.6127692", "0.6059226", "0.5842635", "0.58299285", "0.5742746", "0.57163054", "0.57056004", "0.5697005", "0.56332105", "0.55776685", "0.5566636", "0.55277044", "0.54627043", "0.5440167", "0.5440167", "0.5402045", "0.534493", "0.531162", "0.5216928", "0.5199199", "0.5195352", "0.51665366", "0.51406056", "0.51406056", "0.51405257", "0.51340765", "0.51340765", "0.5132565", "0.5100436", "0.51000494", "0.51000494", "0.5025364", "0.5025364", "0.49712926", "0.49640822", "0.49470383", "0.49452344", "0.4933996", "0.49317902", "0.4931467", "0.4905375", "0.4888502", "0.48729616", "0.48729616", "0.48653796", "0.48483092", "0.4838007", "0.48352388", "0.48152316", "0.48017073", "0.47648346", "0.47604945", "0.4739857", "0.4738806", "0.47246704", "0.47168308", "0.4715211", "0.4692744", "0.468839", "0.46659815", "0.46618617", "0.4661348", "0.46331754", "0.46330628", "0.4624293", "0.46190223", "0.4613782", "0.4608701", "0.4608648", "0.45724615", "0.45685616", "0.45635414", "0.45614925", "0.45585594", "0.45487076", "0.45487076", "0.45487076", "0.45487076", "0.45487076", "0.45441467", "0.4541415", "0.4540785", "0.4530809", "0.4519253", "0.4518367" ]
0.7103444
1
Set the signature ville.
Установите подпись ville.
public function setSignatureVille($signatureVille) { $this->signatureVille = $signatureVille; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function setSignature( $data ){\n $this->signature = $data;\n }", "function setSignature($signature)\n {\n $this->_signature = $signature;\n }", "public function SetSignatureParameter() {\n $signature_text = $this->signature->build_signature($this->request, $this->consumer, $this->token);\n $this->request->set_parameter('signature', $signature_text);\n return $this;\n }", "function setSignatureMode($mode)\n {\n $this->signatureMode = $mode;\n }", "public function setSignature($signature) {\n\t\t$this->signature = $signature;\n\t}", "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 }", "function setAuthSignature($AuthSignature)\n {\n \t$this->_authSignature =$AuthSignature;\n }", "function setSign( $value )\r\n {\r\n $this->Sign = $value;\r\n }", "public function setSignatureKey(?string $signatureKey): void\n {\n $this->signatureKey = $signatureKey;\n }", "public function setSignatureFile($path)\n {\n $this->setSignatureFileFromPath($path);\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 setSignature($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature = $var;\n\n return $this;\n }", "public function setSigner($val)\n {\n $this->_propDict[\"signer\"] = $val;\n return $this;\n }", "public function customize_preview_signature()\n {\n }", "public function setCallSignature(string $call_sig):void{\n\t\t$this->call_sig = $call_sig;\n\t }", "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 testSetEmailModeSignature() {\n\n $obj = new Collaborateurs();\n\n $obj->setEmailModeSignature(10);\n $this->assertEquals(10, $obj->getEmailModeSignature());\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&amp;CODE=00'>\" . $ibforums->lang['t_title'] . \"</a>\");\r\n\r\n\t}", "protected function setRequestSignature($request) {\n\t\t$fields = array(\n\t\t\t\t$this->getVersion(), // APIVERSION\n\t\t\t\t$this->tid, // TID\n\t\t\t\t$this->shopID, // SHOPID\n\t\t\t\t$this->shopUserRef, // SHOPUSERREF\n\t\t\t\t$this->amount, // AMOUNT\n\t\t\t\t$this->currencyCode, // CURRENCYCODE\n\t\t\t\t$this->pan, // PAN\n\t\t\t\t$this->payInstrToken, // PAYINSTRTOKEN\n\t\t\t\t$this->expireMonth, // EXPIREMONTH\n\t\t\t\t$this->expireYear, // EXPIREYEAR\n\t\t\t\t$this->termURL, // TERMURL\n\t\t\t\t$this->description, // DESCRIPTION\n\t\t\t\t$this->addInfo1, // UDF1\n\t\t\t\t$this->addInfo2, // UDF2\n\t\t\t\t$this->addInfo3, // UDF3\n\t\t\t\t$this->addInfo4, // UDF4\n\t\t\t\t$this->addInfo5); // UDF5\n\t\t$signature = $this->getSignature($this->kSig, // KSIGN\n\t\t\t\t$fields); \n\t\t$request = $this->replaceRequest($request, \"{signature}\", $signature);\n\t\treturn $request;\n\t}", "public function setSig(string $sig)\n {\n $this->sig = $sig;\n\n return $this;\n }", "public function setFileToSign($path)\n {\n $this->setFileToSignFromPath($path);\n }", "public function setFileToSign($path)\n {\n $this->setFileToSignFromPath($path);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "public function setEnforceSignatureCheck(?bool $value): void {\n $this->getBackingStore()->set('enforceSignatureCheck', $value);\n }", "public function setDataSignature() \n {\n $this->dataSignature = array(\n \"order_no\" => array(\"required\" => 1, \"type\" => \"int\"),\n \"order_status\" => array(\"required\" => 1, \"type\" => \"int\"),\n );\n }", "public function setSignatureFileContent($contentRaw)\n {\n $this->setSignatureFileFromContentRaw($contentRaw);\n }", "public function setSignature($signature = null)\n {\n $this->_signature = $signature;\n return $this;\n }", "protected function setVida() {\n $this->vida = 200;\n }", "public function setSignature($body) {\n $this->addHeaders([\n 'X-Hub-Signature' => 'sha1=' . hash_hmac('sha1', $body, $this->secret, FALSE),\n ]);\n return $this;\n }", "public function setSignature($signature)\n {\n if (!base64_decode($signature)) {\n throw new \\Exception(\"The provided signature was not valid\");\n }\n\n $this->signature = $signature;\n }", "public function setSignature(array $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\n }", "public function setSignatureContentLength(int $signatureContentLength)\n {\n $this->signatureConentLength = $signatureContentLength;\n }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = $val;\n return $this;\n }", "public function withSignature($signature);", "public function setSigla(string $sigla)\n {\n $this->sigla = $sigla;\n }", "public function setSignatureFileFromPath($path)\n {\n if (!file_exists($path)) {\n throw new \\Exception(\"The provided signature file was not found\");\n }\n $this->signatureFilePath = $path;\n }", "public function sign()\n {\n }", "public function setSignatures($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Io\\Token\\Proto\\Common\\Security\\Signature::class);\n $this->signatures = $arr;\n\n return $this;\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "public function __construct(Signature $signature)\n {\n parent::__construct();\n $this->setChild('signature', $signature);\n }", "protected function sign()\n {\n trigger_error(\"Not implemented\", E_ERROR);\n }", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function setSignature(\\BankId\\Merchant\\Library\\Schemas\\ds\\Signature $signature)\n {\n $this->signature = $signature;\n return $this;\n }", "public function editsmsSignature()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tif (isset($_POST ['btnSubmit']))\n\t\t{\n\t\n\t\t\t$data ['admin_section']='Sign';\n\t\t\t$id=$this->setting_model->editsmsSignature();\n\t\t\tif ($id)\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Signature has been updated successfully.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t} else\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('error','Unable to update signature.');\n\t\t\t\tredirect('admin/setting/smsSignature');\n\t\t\t}\n\t\t} else\n\t\t{\n\t\t\tredirect('admin/setting/smsSignature');\n\t\t}\n\t\n\t}", "public function setSignatureHeader($var)\n {\n GPBUtil::checkString($var, False);\n $this->signature_header = $var;\n\n return $this;\n }", "public function setEnforceSignatureCheck($val)\n {\n $this->_propDict[\"enforceSignatureCheck\"] = boolval($val);\n return $this;\n }", "public function setDefaultsmssign()\n\t\t{\n\t\t\t$this->Checklogin();\n\t\t\t$signId=$this->input->post('signId');\n\t\t\n\t\t\tif(count($signId)>0)\n\t\t\t{\n\t\t\t\t$a=$this->setting_model->setDefaultsmssign($signId);\n\t\t\t\t\t\n\t\t\t\t$this->session->set_flashdata('success','Signature has been set to default successfully');\n\t\t\t\tsetAActivityLogs('Transaction_activity','AAsmssignature_default',\"Signature Default :-\".$signId);\n\t\t\t\techo true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->session->set_flashdata('success','Something Went Wrong.......!');\n\t\t\t\techo true;\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t}", "public static function resetSignature($signature)\n {\n if (class_exists('\\Comotive\\Firewall\\Defender')) {\n $firewall = new \\Comotive\\Firewall\\Defender();\n $firewall->resetIpSignature($signature);\n }\n }", "function setAukstis($x) {\n $this->aukstis = $x; // privaciai reiksmei priskiriam kintamaji, kuris bus kazkuom pakeistas\n }", "public function loadSignatures(){\n $this->testFieldsSignature = [\n 'mandante' => 'teste',\n 'grupo' => 'xxx',\n ];\n }", "public function setFileVignette(string $fileVignette): self\n {\n $this->fileVignette = $fileVignette;\n\n return $this;\n }", "public function setSignatureAlgorithm($signatureAlgorithm)\n {\n $this->signatureAlgorithm = (int) $signatureAlgorithm;\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 setVolumen( $volumen ) {\n $this->volumen=$volumen;\n $this->enviarVolumen();\n $this->activarPantalla();\n //activar y enviar volumen\n }", "public function _setFirma($Firma)\n {\n $this->Firma = $Firma;\n\n }", "public function setVerificationKey($value) {\n\t\tif(!check($value)) throw new Exception(lang('error_27'));\n\t\tif(!Validator::Number($value)) throw new Exception(lang('error_27'));\n\t\tif(!Validator::UnsignedNumber($value)) throw new Exception(lang('error_27'));\n\t\t\n\t\t$this->_verificationKey = $value;\n\t}", "function setSig() {\n if (sfConfig::get(\"sf_private_key\") !='') {\n \n $hash = md5(rand_str());\n $this -> context ->getLogger()->debug(\"{Theater Token Class} HASH:: \".$hash);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN HASH:: \".$hash);\n \n $expires = strtotime(now());\n $this -> context ->getLogger()->debug(\"{Theater Token Class} EXPIRES:: \".$expires);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN EXPIRES:: \".$expires);\n \n $code = setUserOrderTicket();\n $this -> seat -> setAudienceHmacKey( $code );\n $this -> seat -> save();\n $this -> context ->getLogger()->debug(\"{Theater Token Class} CODE:: \".$code);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" | MESSAGE:: TOKEN CODE:: \".$code);\n \n /*\n\t\t\t$enc_date = encryptCookie($code, $hash.\"=\".strtotime(now()));\n $this -> context ->getLogger()->debug(\"{Theater Token Class} HMAC_SIG:: \".$enc_date);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - TOKEN HMAC_SIG:: \".$enc_date);\n \n $this -> token_raw = $hash . \"|\" . strtotime(now()) . \"|\" . $enc_date;\n $this -> context ->getLogger()->debug(\"{Theater Token Class} Set Token:: \".$this -> token_raw);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - TOKEN RAW:: \".$this -> token_raw);\n \n $this -> token = encryptCookie($code,$this -> token_raw);\n $this -> context ->getLogger()->debug(\"{Theater Token Class} Set Coookie:: \".$this -> token);\n putLog(\"USER:: \".$this -> sessionVar(\"user_id\").\" - SET COOKIE:: \".$this -> token);\n */\n \n $this -> setCookieVar( \"csth\", $code, 7 );\n return $this -> token;\n \n }\n \n }", "public function setMarkIdentification($value) {\n\t\tself::$_markIdentification = $value;\n\t}", "protected function assertSignature($value, $is_valid = TRUE) {\n // Must manually set hidden values because ::submitForm only set visible\n // element values and ignores hidden elements.\n // @see \\Drupal\\Tests\\UiHelperTrait::submitForm\n $this->drupalGet('/webform/test_element_signature');\n $field = $this->assertSession()->hiddenFieldExists('signature');\n $field->setValue($value);\n $this->submitForm([], 'Submit');\n if ($is_valid) {\n $this->assertNoRaw('signature contains an invalid signature.');\n }\n else {\n $this->assertRaw('signature contains an invalid signature.');\n }\n }", "public function __construct()\n {\n $this->makeSignature();\n\n parent::__construct();\n }", "public function setKaina($x) {\n $this->kaina = $x; //privati reiksme tai kaina\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 }", "private function setVersion($v){\n\t\t$this->version = $v;\n\t}", "public function setVatility($value)\n {\n return $this->set(self::_VATILITY, $value);\n }", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['signature']) && !empty($_FILES['signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function testSetSignFormJuridique() {\n\n $obj = new AttestationCacm();\n\n $obj->setSignFormJuridique(\"signFormJuridique\");\n $this->assertEquals(\"signFormJuridique\", $obj->getSignFormJuridique());\n }", "public function setVida($valor){\n $this->vida=$valor;\n }", "public function setVatIdNo($vatin);", "public function setSignaturePrenom($signaturePrenom) {\n $this->signaturePrenom = $signaturePrenom;\n return $this;\n }", "function setKeyoption($key_in) : void\n {\n $this->keyoption = $key_in;\n }", "public function setSignatureName($signatureName)\n {\n $this->values['SignatureName'] = $signatureName;\n return $this;\n }", "public function signature()\n {\n return 'Vero: ' . \\Vero\\Version::VERSION;\n }", "public function setVCenter($value) {\n\t}", "public function getSignaturePrenom() {\n return $this->signaturePrenom;\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 setProtect($value) {\n\t}", "public function setSigner(\\Diadoc\\Api\\Proto\\Invoicing\\Signer $value=null)\n {\n return $this->set(self::SIGNER, $value);\n }", "public function setLicense(SetAlbumLicenseRequest $request): void\n\t{\n\t\t$request->album()->license = $request->license();\n\t\t$request->album()->save();\n\t}", "function handle_upload_signature(){\r\n\t\t$config = array();\r\n\t\t$config['upload_path'] = './assets/image_uploads/signature';\r\n\t\t$config['allowed_types'] = 'gif|jpg|png';\r\n\t\t\r\n\t\t$this->load->library('upload', $config);\r\n\t\t$this->upload->initialize($config);\r\n\t\tif (isset($_FILES['bank_signature']) && !empty($_FILES['bank_signature']['name'])){\r\n\t\t\tif ($this->upload->do_upload('bank_signature')){\r\n\t\t\t\t// set a $_POST value for 'image' that we can use later\r\n\t\t\t\t$upload_data = $this->upload->data();\r\n\t\t\t\t$_POST['old_signature'] = $upload_data['file_name'];\r\n\t\t\t\treturn true;\r\n\t\t\t}else{\r\n\t\t\t\t// possibly do some clean up ... then throw an error\r\n\t\t\t\t$this->form_validation->set_message('handle_upload_signature', $this->upload->display_errors());\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t} \r\n\t}", "public function setVerifiedPublisherId(?string $value): void {\n $this->getBackingStore()->set('verifiedPublisherId', $value);\n }", "public function setDataVencimento(string $dataVencimento)\n {\n $this->dataVencimento = $dataVencimento;\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 smsSignature()\n\t{\n\t\n\t\t$this->Checklogin();\n\t\tsetAActivityLogs('Transaction_activity','AAsmssignature_view');\n\t\t$data ['resultSignature']=$this->setting_model->getAllsignature();\n\t\t$data ['include']='admin/setting/smssignature';\n\t\t$data ['admin_section']='manage_signature';\n\t\t$this->load->view('backend/container',$data);\n\t\n\t}", "public function setSignatureKeyId($var)\n {\n GPBUtil::checkString($var, True);\n $this->signature_key_id = $var;\n\n return $this;\n }", "public function getSignature();", "public function setVersion($value){\n $this->version = $value;\n }", "public function setVerifyForm($tf)\n {\n $this->_verifyForm = $tf;\n }", "public function setToken()\n\t{\n\t\t $args = phpSmug::processArgs( func_get_args() );\n\t\t $this->oauth_token = $args['id'];\n\t\t $this->oauth_token_secret = $args['Secret'];\n\t}", "public function setTglSkPemakai($v)\n {\n $dt = PropelDateTime::newInstance($v, null, 'DateTime');\n if ($this->tgl_sk_pemakai !== null || $dt !== null) {\n $currentDateAsString = ($this->tgl_sk_pemakai !== null && $tmpDt = new DateTime($this->tgl_sk_pemakai)) ? $tmpDt->format('Y-m-d') : null;\n $newDateAsString = $dt ? $dt->format('Y-m-d') : null;\n if ($currentDateAsString !== $newDateAsString) {\n $this->tgl_sk_pemakai = $newDateAsString;\n $this->modifiedColumns[] = BangunanPeer::TGL_SK_PEMAKAI;\n }\n } // if either are not null\n\n\n return $this;\n }", "public function setVoti(float $voto){\n if($voto>2 && $voto <= 10 ){\n \n $this->voti[] = $voto;\n \n } else {\n\n $messaggio = new Exception(\"Il valore $voto è errato\");\n throw $messaggio;\n\n }\n }", "public function setVersion($version) {}", "public function setVersion($version) {}", "public function setFingerprint(?string $value): void {\n $this->getBackingStore()->set('fingerprint', $value);\n }" ]
[ "0.6864862", "0.67513925", "0.6582091", "0.65801716", "0.65205884", "0.64514726", "0.64514726", "0.64172405", "0.63131857", "0.62962157", "0.61627716", "0.6137811", "0.6005786", "0.6005786", "0.5990562", "0.58488834", "0.58160585", "0.5807098", "0.5639753", "0.56099945", "0.5590056", "0.5498528", "0.5461611", "0.5455071", "0.5455071", "0.5421974", "0.5421974", "0.53700286", "0.5353847", "0.53394806", "0.53282386", "0.52832663", "0.52727705", "0.52576214", "0.5237365", "0.5237365", "0.5227191", "0.5203342", "0.517597", "0.51537037", "0.51320004", "0.51093704", "0.5084263", "0.5084263", "0.5082899", "0.5057923", "0.5057923", "0.50218385", "0.50212425", "0.50046605", "0.4996753", "0.4946668", "0.49276927", "0.49175176", "0.49107027", "0.4845216", "0.48422796", "0.48399472", "0.48191938", "0.48038375", "0.47987643", "0.47956213", "0.4751583", "0.474884", "0.47441056", "0.47330165", "0.47330165", "0.47197348", "0.47147682", "0.4712437", "0.4682018", "0.46734753", "0.46684104", "0.46359596", "0.4631889", "0.46317255", "0.4627113", "0.46185264", "0.46148983", "0.46123168", "0.4604996", "0.46043304", "0.4604273", "0.45925722", "0.45873398", "0.4576363", "0.45686024", "0.45686024", "0.4563566", "0.4562537", "0.4542153", "0.453957", "0.4536527", "0.45320925", "0.45297846", "0.45242688", "0.4519376", "0.4519376", "0.45162058" ]
0.7040498
1
Set the suspension date.
Установите дату приостановки.
public function setSuspensionDate(DateTime $suspensionDate = null) { $this->suspensionDate = $suspensionDate; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 getSuspensionDate() {\n return $this->suspensionDate;\n }", "public function setDate($date){\r\n\t\t$this->wishDate = $date;\r\n\t}", "public function setDate($date);", "public function setDate($date) {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n {\n $this->date = $date;\n }", "public function setDate($date)\n\t{\n\t\t$this->date = $date;\n\t}", "public function setDate($date){\n\t\t$this->date = $date;\n\t}", "public function setDate($value) {\n\t\t$this->_date = $value;\n\t}", "public function setExpirationDate(?Date $value): void {\n $this->getBackingStore()->set('expirationDate', $value);\n }", "public function setDate()\n\t{\n\t\tif ($this->getIsNewRecord())\n\t\t\t$this->create_time = time();\n\t}", "public function setDate( $date ) {\n\t\tif ( !preg_match( self::DATERE, $date ) ) {\n\t\t\tthrow new InvalidArgumentException( \"Not a valid date: \".$date );\n\t\t}\n\t\t$this->setParameter( \"dtreviewed\", $date );\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setDate()\n\t{\n\t\tif($this->isNewRecord)\n\t\t\t$this->create_time=$this->update_time=time();\n\t\telse\n\t\t\t$this->update_time=time();\n\t}", "public function setModDate($date) {}", "public function setStartDate(?Date $value): void {\n $this->getBackingStore()->set('startDate', $value);\n }", "private function updatePublishOnDate()\n {\n $this->owner->PublishOnDate = $this->owner->DesiredPublishDate;\n // Remove the DesiredPublishDate.\n $this->owner->DesiredPublishDate = null;\n }", "protected function setNextRun(\\DateTime $date) {\n $this->next_run = $date;\n }", "public function setStartDate(string $date);", "function setDateConfirmed($dateConfirmed) {\n\t\t$this->setData('dateConfirmed', $dateConfirmed);\n\t}", "public function setTransactionDate($value) {\n\t\tself::$_transactionDate = $value;\n\t}", "public function set_approved_date( $date ) {\n\t\t$this->set_prop( 'approved_date', $date ) ;\n\t}", "public function setLastActivityDate(\\DateTime $date): void\n {\n $this->lastActivityDate = $date;\n }", "protected function setstartdate(string $startdate)\r\n\t{\r\n\t\t$this->startdate = $startdate;\r\n\t}", "public function setUseDate($use_date) \n \t{\n \t\t$this->use_date = $use_date;\n \t}", "private function set_date()\r\n\t{\r\n\t\tif ($this->month > 12)\r\n\t\t{\r\n\t\t\t$this->month=1;\r\n\t\t\t$this->year++;\r\n\t\t}\r\n\r\n\t\tif ($this->month < 1)\r\n\t\t{\r\n\t\t\t$this->month=12;\r\n\t\t\t$this->year--;\r\n\t\t}\r\n\r\n\t\tif ($this->year > 2037) $this->year = 2037;\r\n\t\tif ($this->year < 1971) $this->year = 1971;\r\n\t}", "public function setStartDate($value)\n {\n $this->startDate = $value;\n }", "public function setStartDate($date)\n\t\t{\n\t\t\t$this->start_date = $date;\n\t\t}", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "public function setExpirationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('expirationDateTime', $value);\n }", "public function setFilingDate($value) {\n\t\t$value = date('d-M-Y', strtotime($value));\n\t\tself::$_filingDate = $value;\n\t}", "function setDateNotified($dateNotified) {\n\t\t$this->setData('dateNotified', $dateNotified);\n\t}", "public function setExpiryDate($date)\n {\n $this->expiryDate = $date;\n }", "public function setDate( $sDate ) {\n\t\t$this->sDate = $sDate;\n\t}", "public function setEndDate(?Date $value): void {\n $this->getBackingStore()->set('endDate', $value);\n }", "public function setDate(Carbon $date) {\n\t\t$this->setDateRange($date, $to);\n\t}", "public function setDate(?TimeRange $date): void\n {\n $this->date = $date;\n }", "public function setStartDate($date)\n {\n\t\tif($date==null){\n\t\t\t$this->start_at = null;\n\t\t\t$this->save();\n\t\t\t$this->fireModelEvent('start-refreshed');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif($this->start_at){\n\t\t\tif($model->start_at->greaterThan($date)){\n\t\t\t\t$this->start_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('start-delayed');\n\t\t\t}else{\n\t\t\t\t$this->start_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('start-forwarded');\n\t\t\t}\n\t\t}else{\n\t\t\t$this->start_at = $date;\n \t$this->save();\n\t\t\t$this->fireModelEvent('start-inited');\n\t\t}\n }", "public function setUpRegisterDate()\n {\n $this->setRegisterDate(new \\DateTime());\n }", "public function setDueDate(\\DateTime $value)\n {\n $this->setItemValue('due_date', (string)$value->getTimestamp());\n }", "function setExpireDate($ed) {\n\t\tif ($ed) {\n\t\t\t$newtime = dateTimeConvert($ed);\n\t\t\tif ($newtime === false) return;\n\t\t\t$this->set('expiredate', $newtime);\n\t\t} else {\n\t\t\t$this->set('expiredate', NULL);\n\t\t}\n\t}", "public function setRequestedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('requestedDateTime', $value);\n }", "private function updateUnPublishOnDate()\n {\n $this->owner->UnPublishOnDate = $this->owner->DesiredUnPublishDate;\n // Remove the DesiredUnPublishDate.\n $this->owner->DesiredUnPublishDate = null;\n }", "public function setReviewedDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('reviewedDateTime', $value);\n }", "public function setAvailabilityStartDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('availabilityStartDateTime', $value);\n }", "public function setStartDate(DrupalDateTime $start_date);", "function set_change_sale_date_enable() {\n $this->sale_lib->set_change_sale_date_enable($this->input->post('change_sale_date_enable'));\n if (!$this->sale_lib->get_change_sale_date()) {\n $this->sale_lib->set_change_sale_date(date(get_date_format()));\n }\n }", "public function setDate($date)\n {\n $this->date = $date;\n \n return $this;\n }", "public function setEndDate(string $date);", "public function setDate($p)\n {\n if ($p !== null && trim($p) !== \"\") {\n $this->appendCommandArgument(\"-D\");\n $this->appendCommandArgument($p);\n }\n }", "protected function setDefaultExpDate() {\n $user = new User();\n if ($user->hasRole('Company Administrator')) {\n $exp_date = $this->getDefaultElementValue('exp_date');\n $this->setElementPropertyValue('exp_date',\n array('#default_value', 'value'), $exp_date);\n }\n }", "public function setStartDate($startDate) {\n $this->startDate = $startDate;\n }", "public function setPublishedAtAttribute($date)\n\t{\n\t\t$this->attributes['published_at'] = Carbon::createFromFormat('Y-m-d', $date);\n\t}", "public function setDate($a = null)\n {\n throw new NotImplementedException(__METHOD__);\n }", "function setEndDate(&$oDate)\n {\n if (is_a($oDate, 'date')) {\n $oDate->setHour(23);\n $oDate->setMinute(59);\n $oDate->setSecond(59);\n $oDate->subtractSeconds(25200);\n }\n }", "function SetInitialDate ($date)\r\n {\r\n if ($date)\r\n {\r\n $this->_dti = $date; \r\n }\r\n }", "public function setReportedDate(\\DateTime $value)\n {\n $this->setItemValue('reported_date', (string)$value->getTimestamp());\n }", "public function setEndDate($date)\n\t\t{\n\t\t\t$this->end_date = $date;\n\t\t}", "public function setLaunchDateTime($val)\n {\n $this->_propDict[\"launchDateTime\"] = $val;\n return $this;\n }", "public function touch()\n\t{\n\t\t$this['last_dismiss_date'] = new \\DateTime();\n\t\t$this['last_email_date'] = new \\DateTime();\n\t}", "public function setDates($dates);", "protected function setDateUtilisateur($date)\n{\n$this->dateUtilisateur = $date;\t\n}", "private function setCurDate(DateTime $date):void\n\t{\n\t\t$this->curDate = clone $date;\n\t\tif($this->isVocation($this->curDate)){\n\t\t\t$this->nextDay();\n\t\t}\n\t}", "function setDateReminded($dateReminded) {\n\t\t$this->setData('dateReminded', $dateReminded);\n\t}", "static public function setTestingNow(\\DateTime $date = null)\n {\n self::$now = $date;\n }", "private function _init_date()\n\t{\n\t\t$this->date->init($this->EE->TMPL->fetch_param('date'));\n\t\t$this->_log(sprintf(\"Working date set to %s %s\", $this->date->date(), $this->date->time()));\n\t}", "public function set_date($date) \n\t{\n\t\tif(! is_numeric($date))\n\t\t{\n\t\t\t$date = strtotime($date);\n\t\t}\n\t\t\n\t\tif($this->version == ATOM)\n\t\t{\n\t\t\t$tag = 'updated';\n\t\t\t$value = date(DATE_ATOM, $date);\n\t\t} \n\t\telseif($this->version == RSS2) \n\t\t{\n\t\t\t$tag = 'pubDate';\n\t\t\t$value = date(DATE_RSS, $date);\n\t\t}\n\t\telse \n\t\t{\n\t\t\t$tag = 'dc:date';\n\t\t\t$value = date(\"Y-m-d\", $date);\n\t\t}\n\t\t\n\t\t$this->add_element($tag, $value); \n\t}", "function setDateAssigned($dateAssigned) {\n\t\t$this->setData('dateAssigned', $dateAssigned);\n\t}", "public function setPublishedAtAttribute($date){ //guarda el campo published_at como si fuera una instancia de Carbon para que se guarde con hora\n \t$this->attributes['published_at']=Carbon::parse($date); \n }", "function _sf_set_spot_expiry_date($post) {\n\t\t\n\t\t///// FIRSTLY LET'S ADD A METABOX FOR OUR EXPIRY DATE\n\t\t$exp_date = time() + (ddp('submission_days') * (60*60*24));\n\t\t\n\t\t$midnight_time = $exp_date;\n\t\t\n\t\tupdate_post_meta($post->ID, 'expiry_date', $midnight_time);\n\t\t\n\t\t///// SETS UP OUR CRON JOB\n\t\twp_schedule_single_event($midnight_time, 'expire_spot_submission', array($post->ID, $post->post_title, $post->post_author, ''.$midnight_time.''));\n\t\t\n\t}", "public function setDateTime($value)\n {\n $this->createdAt=$value;\n }", "public function setDate($date_string = null)\n {\n\n if ($this->is_date() == 1) {\n $this->now = getdate(strtotime($date_string));\n } else {\n $this->now = getdate();\n }\n }", "public function setEndDate($date)\n {\n\t\tif($date==null){\n\t\t\t$this->complete_at = null;\n\t\t\t$this->save();\n\t\t\t$this->fireModelEvent('end-refreshed');\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif($this->complete_at){\n\t\t\tif($model->complete_at->greaterThan($date)){\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-delayed');\n\t\t\t}else{\n\t\t\t\t$this->complete_at = $date;\n \t\t$this->save();\n\t\t\t\t$this->fireModelEvent('end-forwarded');\n\t\t\t}\n\t\t}else{\n\t\t\t$this->complete_at = $date;\n \t$this->save();\n\t\t\t$this->fireModelEvent('end-inited');\n\t\t}\n }", "public function setDate($date) {\n $this->date = $date;\n $this->updateData();\n return $this;\n }", "public function setFirstSeenDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('firstSeenDateTime', $value);\n }", "public function setFirstSeenDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('firstSeenDateTime', $value);\n }", "public function setStartDate(\\DateTime $value)\n {\n $this->setItemValue('start_date', (string)$value->getTimestamp());\n }", "protected function set_date_prop( $date_type, $value ) {\n\t\t$datetime = wcs_get_datetime_from( $value );\n\t\t$date = ! is_null( $datetime ) ? wcs_get_datetime_utc_string( $datetime ) : 0;\n\n\t\t$this->set_prop( $this->get_date_prop_key( $date_type ), $date );\n\t\t$this->schedule->{$date_type} = $date;\n\t}", "function setDateApproved($dateApproved) {\n\t\treturn $this->setData('dateApproved', $dateApproved);\n\t}", "public function setEvaluationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('evaluationDateTime', $value);\n }", "public function set_start_date($start_date)\n\t{\n\t\tif (is_null($start_date)) {\n\t\t\tthrow new InvalidArgumentException(\"Project Start Date Invalid!\");\n\t\t}\n\t\t$this->start_date = $start_date;\n\t}", "function setDateCompleted($dateCompleted) {\n\t\t$this->setData('dateCompleted', $dateCompleted);\n\t}", "public function setLockedAt($dateString = null)\n {\n $this->lockedAt = $this->decisionStamp($dateString);\n }", "public function setPublishDateAttribute($value)\n {\n $this->attributes['publish_date'] = date(\"Y-m-d H:i:s\", strtotime($value));\n }", "public function setContactDate($date) {\n $this->date = $date;\n }", "function setData($data)\n {\n $this->date=$data;\n }", "public function setDate($date)\n {\n $this->date = $date;\n\n return $this;\n }", "private function _setDate(){\n\t\tif($this->_year>=1970&&$this->_year<=2038){\n\t\t\t$this->_day = date('d', $this->_timestamp);\n\t\t\t$this->_month = date('m', $this->_timestamp);\n\t\t\t$this->_year = date('Y', $this->_timestamp);\n\t\t} else {\n\t\t\t$dateParts = self::_getDateParts($this->_timestamp, true);\n\t\t\t$this->_day = sprintf('%02s', $dateParts['mday']);\n\t\t\t$this->_month = sprintf('%02s', $dateParts['mon']);\n\t\t\t$this->_year = $dateParts['year'];\n\t\t}\n\t\t$this->_date = $this->_year.'-'.$this->_month.'-'.$this->_day;\n\t}", "function setExpiryDate($expirydate) {\n $this->checkChange();\n\n if ($expirydate > 0 || $expirydate === 0 || $expirydate === NULL) {\n $this->expirydate = (int)$expirydate;\n }\n else {\n $this->abort();\n throw new UserpointsInvalidArgumentException(t('Expiration date must be an integer'));\n }\n return $this;\n }", "public function setReviewDate($newReviewDate = null) {\n\t\t\t\t// base case: if the date is null, use the current date and time\n\t\t\t\tif($newReviewDate = null) {\n\t\t\t\t\t$this->reviewDate = new \\DateTime();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// store the review date\n\t\t\t\ttry {\n\t\t\t\t\t$newReviewDate = self::validateDateTime($newReviewDate);\n\t\t\t\t} catch(\\InvalidArgumentException $invalidArgument) {\n//\t\t\t\t\t\tthrow(new \\InvalidArgumentException($invalidArgument->getMessage(), 0, $range));\n\t\t\t\t\tthrow(new \\InvalidArgumentException (\"No date specified\", 405));\n\t\t\t\t} catch(\\RangeException $range) {\n\t\t\t\t\tthrow(new \\RangeException($range->getMessage(), 0, $range));\n\t\t\t\t}\n\t\t\t\t$this->reviewDate = $newReviewDate;\n\t\t\t}", "public function setEntryDate($entry_date)\n {\n $this->entry_date = $entry_date;\n }", "function setStartDate($start_date = \"\") \n\t{\n\t\t$this->start_date = $start_date;\n\t}", "function set_date_to_now()\n {\n $this->timestamp=time();\n }", "public function setToDate($toDate)\n {\n if (stristr($toDate, \"-\")) {\n $toDate = strtotime($toDate);\n }\n $this->toDate = $toDate;\n }", "public function setProcessCreationDateTime(?DateTime $value): void {\n $this->getBackingStore()->set('processCreationDateTime', $value);\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDate($date)\n {\n $this->date = $date;\n return $this;\n }", "public function setDateEnd($dateEnd)\n {\n $this->dateEnd = VT::toDateTimeImmutable($dateEnd);\n }", "public function setSettleDate($var)\n {\n GPBUtil::checkInt64($var);\n $this->settle_date = $var;\n\n return $this;\n }" ]
[ "0.69102025", "0.6624781", "0.64760685", "0.6456377", "0.6308923", "0.63024324", "0.63024324", "0.62916654", "0.62397474", "0.62283295", "0.6111231", "0.5951811", "0.595108", "0.5932211", "0.5932211", "0.5930407", "0.5918174", "0.5811013", "0.5776216", "0.57286584", "0.571954", "0.5701417", "0.5692412", "0.5676711", "0.56709284", "0.566898", "0.5661062", "0.5660824", "0.56275684", "0.5624129", "0.5624129", "0.56179905", "0.5617449", "0.5615534", "0.56097454", "0.55999285", "0.5584753", "0.5579151", "0.5562021", "0.5539307", "0.55242026", "0.55137825", "0.5512357", "0.55093235", "0.5507777", "0.5497563", "0.5466804", "0.5455602", "0.544842", "0.5410606", "0.54089314", "0.5408314", "0.540812", "0.54054624", "0.5395029", "0.5388903", "0.5386288", "0.53683287", "0.53518975", "0.53487223", "0.5345778", "0.53420997", "0.5337596", "0.5336552", "0.53328514", "0.53320026", "0.53287756", "0.5308394", "0.5302878", "0.5302386", "0.52941716", "0.5289407", "0.5280074", "0.52779514", "0.5276519", "0.5274859", "0.5274859", "0.5273118", "0.5270744", "0.5263021", "0.52554625", "0.52487046", "0.5234687", "0.5229652", "0.52287453", "0.52220845", "0.5214533", "0.52142894", "0.5206329", "0.5204555", "0.5203373", "0.5200549", "0.52000296", "0.5190606", "0.51855177", "0.518548", "0.517403", "0.517403", "0.5173728", "0.51664" ]
0.71887213
0
Check is category created in DB or no.
Проверить, создана ли категория в БД или нет.
public function isNewCategory(): bool { return !$this->category->exists; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function hasCategory(): bool;", "function categoryExists($cat) { // Return true if the given category exists\n\t$cat = dbEscape($cat);\n\treturn(dbResultExists(\"SELECT * FROM categories WHERE name='$cat'\"));\n}", "public function cate_exists() {\n\t\t$category_name = trim($this->input->post ( 'category_name' ));\n\n\n\t\t$edit_id = $this->input->post ( 'edit_id' );\n\t\t$where = array ( 'category_name' => trim ( $category_name ));\n\n\t\tif ($edit_id != \"\") {\n\t\t\t$where = array_merge ( $where, array ( \"category_id !=\" => $edit_id ) );\n\t\t} \n\n\t\t$result = $this->Mydb->get_record ( 'category_id', $this->table, $where );\n\t\tif (! empty ( $result )) {\n\t\t\t$this->form_validation->set_message ( 'cate_exists', get_label('cate_exists') );\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public function category_exists() {\n\t\t$users_name = trim($this->input->post ( 'category_name' ));\n\n\t\t$where = array ('category_name' => trim ( $users_name ));\n\t\t\n\t\t$result = $this->Mydb->get_record ( 'category_id', $this->table, $where );\n\t\tif (! empty ( $result )) {\n\t\t\t$this->form_validation->set_message ( 'cate_exists', get_label('username_exists') );\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "public function checkdata_exist()\n\t{\n$categories=DB::select('select *from categories');\n\t\t$data_exist=DB::select('select *from categories where id=1');\n\t\tif(!$data_exist)\n\t\t{\n\t\t\t$this->autosavecategory();\n\t\t\treturn view('publish')->withCategories($categories);\n\t\t}\n\t\telse{\n\t\t\t\n\t\t\treturn view('publish')->withCategories($categories);\n\t\t}\n\t\t\n\t\t\n\t}", "public function createCategory();", "public function hasCategory()\n {\n return $this->category !== null;\n }", "public function categoriesSetup()\n {\n \treturn (bool) $this->categoryDao->countAll();\n }", "function _validCategory($check)\n\t\t{\n\t\t\t// check legacy too in case we're adding a legacy workshop\n\t\t\t$this->Category->useLegacy(true);\n\t\t\t\n\t\t\t$result = $this->Category->find('count', \n\t\t\t\tarray('recursive' => -1, 'conditions' => array('Category.id' => $check['category_id'])));\n\t\t\t\n\t\t\tif ($result)\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}", "function createCategory($category)\r\n{\r\n $results = false;\r\n \r\n $db = dbconnect();\r\n \r\n $stmt = $db->prepare(\"INSERT INTO categories SET category = :category\");\r\n \r\n $binds = array(\r\n // Used to place new array information under a new ID in Categories table\r\n \":category\" => $category,\r\n );\r\n \r\n if ($stmt->execute($binds) && $stmt->rowCount() > 0) \r\n {\r\n $results = true;\r\n }\r\n \r\n return $results; \r\n}", "function has_categorys()\n\t{\n\t\t\t$categorias = $this->combofiller->categorias();\t\t\t\n\t\t\tforeach($categorias as $key => $value)\n\t\t\t{\n\t\t\t\tif ($this->input->post('' . $key . ''))\n\t\t\t\t{\n\t\t\t\t\treturn TRUE;\t\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn FALSE;\t\n\t}", "public function store()\n\t{\n\t\t$category = Category::create(['name' => \\Input::get('name')]);\n\n\t\tif($category){\n\t\t\treturn \"true\";\n\t\t}\n\t\treturn \"false\";\n\t}", "public function hasCategories()\n {\n return !$this->categories->isEmpty();\n }", "function checkCategory($storeId=null,$merchant_id=null,$catId=null) {\n \n App::import('Model', 'Category');\n $this->Category = new Category();\n $result=FALSE;\n $checkCategory=$this->Category->find('first',array('conditions'=>array('Category.store_id'=>$storeId,'Category.merchant_id'=>$merchant_id,'Category.is_deleted'=>0,'Category.id'=>$catId,'Category.is_active'=>1),'fields'=>array('id')));\n if(!empty($checkCategory)){\n $result=TRUE;\n }else{\n $result=FALSE;\n }\n return $result;\n }", "public function addCategory($category_name){\n\n //write the query to insert into taable\n $query = \"INSERT INTO category(category_name) \n VALUES ('$category_name')\";\n\n //check if the query() runs // data is insert into users table\n if ($this->dbobj->dbcon->query($query)===true){\n\n\n \n echo \" Category was successfully added\";\n \n }\n else{\n echo \"Error\".$this->dbobj->dbcon->error;\n }\n }", "public function isValidCategory() {\n\t\t$input = file_get_contents('php://input');\n\t\t$_POST = json_decode($input, TRUE);\n\n\t\t// if no splits then category is required otherwise MUST be NULL (will be ignored in Save)\n\t\tif (empty($_POST['splits']) && empty($_POST['category_id'])) {\n\t\t\t$this->form_validation->set_message('isValidCategory', 'The Category Field is Required');\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "private function category() {\n if ($this->is_logged_in()){\n return true; //check if user had been logged in!!!\n }else{\n exit;\n }\n }", "public function isReadyForPurge()\n\t{\n\t\tif($this->getStatus() != CategoryStatus::DELETED)\n\t\t\treturn false;\n\t\t\t\n\t\tif($this->getMembersCount())\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getMembersCount() . \"] users\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getEntriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getEntriesCount() . \"] entries\");\n\t\t\treturn false;\n\t\t}\n\t\t\t\n\t\tif($this->getDirectSubCategoriesCount() > 0)\n\t\t{\n\t\t\tKalturaLog::debug(\"Category still associated with [\" . $this->getDirectSubCategoriesCount() . \"] sub categories\");\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function is_category($category = '')\n {\n }", "public function existCategorie($categories){\n\t\t\n\t\tglobal $wpdb;\n\n\t\t$ok = 0;\n\t\t\n\t\tif(!empty($categories))\n\t\t{\n\t\t\tforeach($categories as $cat)\n\t\t\t{ \n\t\t\t\t$category = $this->utils->cleanString($cat);\n\t\t\t\t\n\t\t\t\t$result = $this->findCategory($category);\n\t\t\t\t\n\t\t\t\tif( !$result )\n\t\t\t\t{\n\t\t\t\t\t$this->insertCategory($category);\n\t\t\t\t}\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\t \n\t\treturn true;\n\t}", "function has_category($category = '', $post = \\null)\n {\n }", "public function insert_category() {\n\n $this->load->model('Categories');\n\n $category_id = $this->auth->generator(15);\n\n\n\n //Customer basic information adding.\n\n $data = array(\n\n 'category_id' => $category_id,\n\n 'category_name' => $this->input->post('category_name'),\n\n 'status' => 1\n\n );\n\n\n\n $result = $this->Categories->category_entry($data);\n\n\n\n if ($result == TRUE) {\n\n $this->session->set_userdata(array('message' => display('successfully_added')));\n\n echo TRUE;\n\n } else {\n\n $this->session->set_userdata(array('error_message' => display('already_exists')));\n\n echo FALSE;\n\n }\n\n }", "protected function isCategory()\n {\n return is_null($this->request->task);\n }", "public function testValidCategory(){\n\t\t\t$categoryVars = [\n\t\t\t\t'name' => 'Dressers',\t\t\t\t\n\t\t\t];\n\t\t\t$properTest= saveFuncCategory($categoryVars);\n\t\t\t$this->assertTrue($properTest);\n\t\t}", "public function createCategories()\n {\n $value = $this->_config->get('category_settings/create_categories');\n\n if ($value === null) {\n $value = true;\n }\n\n return (bool)$value;\n }", "public function test_create_category()\n {\n $category=categories::factory()->create();\n $this->assertDatabaseHas('categories',['cat_name'=>$category->cat_name]);\n\n }", "public function canCreate($member = null) {\n\t\treturn DataList::create(\"DOArticlesCategoryHolderPage\")->count() < 1;\n\t}", "public function create(Request $request){\n //check if category exist\n $checker = \\App\\Models\\Category::select('id_category')->where('id_category',$request->id_category)->exists();\n if($checker){\n return redirect('/category')->with('fail', 'Data already exists'); //redirect to category route \n }\n\n $query = \\App\\Models\\Category::create($request->all()); // insert data to database \n return redirect('/category')->with('success', 'Input data success'); //redirect to category route if success\n }", "public function category_add() {\n $this->autoRender = false;\n $params = $this->request->data;\n //echo \"<pre>\";print_r($params);echo \"</pre>\"; exit;\n $categoryTable = TableRegistry::get('SkillCategory');\n $getCategory = $categoryTable->find()->select(['id'])->where(['category_name' => $params['category_name']])->toArray();\n if(empty($getCategory)){\n $category = $categoryTable->newEntity($params);\n if ($categoryTable->save($category)) {\n echo json_encode(\n [\n 'status' => 1,\n 'message' => \"Skill Category Added!\",\n ]\n );\n exit;\n }\n }else{\n echo json_encode(\n [\n 'status' => 0,\n 'message' => \"Skill Category Already Exists!\",\n ]\n );\n exit;\n }\n \n }", "public function create(User $user) {\n return $user->hasPermission('categories.create');\n }", "function ccategories_create()\n\t{\n\t\tlusers_require(\"categories/create\");\n\n\t\t$post_data = linput_post();\n\t\t$post_data = linput_post_checkbox($post_data, \"content\");\n\t\t$content = $post_data[\"content\"];\n\n\t\tif (hform_validate(array(\"name\", \"link\", \"parentid\")))\n\t\t{\n\t\t\t$cat_created = mcategories_create($post_data);\n\t\t\tif ($content) $content_created = mcontent_create($post_data);\n\t\t\telse $content_created = false;\n\n\t\t\tif (($cat_created && !$content) || ($content && $cat_created && $content_created))\n\t\t\t{\n\t\t\t\tlcache_delete_all();\n\t\t\t\thmessage_set(l(\"Category successfully created.\"));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif ($cat_created) mcategories_delete($post_data[\"link\"]);\n\t\t\t\tif ($content_created) mcontent_delete($post_data[\"link\"]);\n\t\t\t\thmessage_set(l(\"Category create error.\") . \" \" . l(\"Link already in use.\"));\n\t\t\t}\n\n\t\t\tluri_redirect(\"main/user/admin/categories\");\n\t\t}\n\t\telse luri_redirect(\"main/user/admin/categories_create\", l(\"All fields marked with * are required.\"));\n\t}", "private function isUserCategoryExists($ucat_name) {\n\t\t$stmt = $this->conn->prepare(\"SELECT ucat_name from user_category WHERE ucat_name = ? and (status=1 or status=2) \");\n $stmt->bind_param(\"s\", $ucat_name);\n $stmt->execute();\n\t\t$stmt->store_result();\n $num_rows = $stmt->num_rows;\n $stmt->close();\n return !($num_rows == 0); //if no any user number of rows ==0; then get negative of it to send false\n }", "public function testCreateAndFindCategory()\n\t{\n $user = factory(User::class)->create();\n Passport::actingAs($user);\n\n\t\t$array_category = array(\n\t\t 'user_id' => $user->id,\n\t\t\t'name' => 'Temporal'\n\t\t);\n\n\t\t$category = factory(Category::class)->create($array_category);\n\n\t\t$response = $this->get('api/categories/' . $category->id);\n\n\t\t$response->assertStatus(200);\n\t\t$this->assertDatabaseHas('categories', $array_category);\n\t}", "public function save()\n {\n $error = true;\n\n // Save the not language specific part\n $pre_save_category = new self($this->category_id, $this->clang_id);\n\n if (0 === $this->category_id || $pre_save_category !== $this) {\n $query = rex::getTablePrefix() .'d2u_linkbox_categories SET '\n .\"name = '\". addslashes($this->name) .\"' \";\n\n if (0 === $this->category_id) {\n $query = 'INSERT INTO '. $query;\n } else {\n $query = 'UPDATE '. $query .' WHERE category_id = '. $this->category_id;\n }\n $result = rex_sql::factory();\n $result->setQuery($query);\n if (0 === $this->category_id) {\n $this->category_id = (int) $result->getLastId();\n $error = !$result->hasError();\n }\n }\n\n return $error;\n }", "function insert_categories($categories_name) {\n $data = array(\n 'name' => $categories_name\n );\n $this->db->insert('category', $data);\n return ($this->db->affected_rows() != 1 ) ? false : true;\n }", "function categoryAssociationExists($monographId, $categoryId) {\n\t\t$result = $this->retrieve(\n\t\t\t'SELECT COUNT(*) FROM submission_categories WHERE submission_id = ? AND category_id = ?',\n\t\t\tarray((int) $monographId, (int) $categoryId)\n\t\t);\n\t\t$returner = isset($result->fields[0]) && $result->fields[0] == 1 ? true : false;\n\n\t\t$result->Close();\n\t\treturn $returner;\n\t}", "public function exists($name){\nreturn $this->db->query('select count(*) from categories where name=?', array($name))->fetch()['count(*)'];\n}", "public function isValidCat($cat){\r\n \treturn isset($this->categories[$cat]); \r\n\t}", "public function testCreatesCategorySuccess()\n {\n $this->browse(function (Browser $browser) {\n $browser->visit('/admin/category/create')\n ->type('name','Category News')\n ->press('Submit')\n ->assertPathIs('/admin/category')\n ->assertSee('Create Success');\n });\n $this->assertDatabaseHas('categories', ['name' => 'Category News']);\n }", "function category_exists($cat_name, $category_parent = \\null)\n {\n }", "public function hasCategories()\n {\n return !empty($this->categories);\n }", "public function checkCategoryExist($ssCategory)\n {\n try\n {\n return Doctrine_Query::create()\n ->select(\"MU.*\")\n ->from(\"Model_Category MU\")\n ->where(\"MU.category_name =?\",$ssCategory)\n ->fetchArray();\n }\n catch( Exception $e )\n {\n echo $e->getMessage();\n return false;\n }\n }", "function client_portal_categorized_blog() {\n\n\t$category_count = get_transient( 'client_portal_categories' );\n\n\tif ( false === $category_count ) {\n\n\t\t$category_count_query = get_categories(\n\t\t\tarray(\n\t\t\t\t'fields' => 'count',\n\t\t\t)\n\t\t);\n\n\t\t$category_count = (int) $category_count_query[0];\n\n\t\tset_transient( 'client_portal_categories', $category_count );\n\t}\n\n\treturn $category_count > 1;\n}", "public function isCategoryPage();", "public function categories_is_required()\n {\n $user = User::factory()->create();\n\n $entry = array_filter(Entry::factory()->raw([\n 'category_id' => null,\n 'user_id' => null\n ]));\n\n Sanctum::actingAs($user, ['entries:create']);\n\n $this->jsonApi()->withData([\n 'type' => 'entries',\n 'attributes' => $entry,\n 'relationships' => [\n 'authors' => [\n 'data' => [\n 'id' => $user->getRouteKey(),\n 'type' => 'authors'\n ]\n ],\n ]\n ])->post(route('api.v1.entries.create'))\n ->assertStatus(Response::HTTP_UNPROCESSABLE_ENTITY)//422\n ->assertJsonFragment(['source' => ['pointer' => '/data']]);\n\n $this->assertDatabaseMissing('entries', $entry);\n }", "public function isCategory($category): bool;", "public function created(Category $category)\n {\n //\n }", "public function addPost(){\n\n if ($this->input->post(\"category_create\") === null){\n $this->view->redirect(\"/categories/manage\");\n }\n\n if (!$this->auth->isLogged()) {\n $this->view->redirect(\"/user/login\", \"You can not add new categories if you are not logged in!\");\n }\n\n if (!$this->auth->isInRole(\"admin\")) {\n $this->view->redirect(\"/user/login\", \"You can not manage categories if you are not Admin!\");\n }\n\n $categoryName = $this->input->post(\"category_name\");\n\n $this->validate->setRule(\"minlength\",$categoryName,3, \"Category name length must be more then 3 symbols!\");\n\n if ($this->validate->validate() === false){\n $error = $this->validate->getErrors();\n $this->view->redirect(\"/categories/manage\",$error);\n }\n\n $categoryModel = new CategoriesModel();\n try{\n if ($categoryModel->hasCategory($categoryName)){\n $this->view->redirect(\"/categories/manage\",\"This categories already exist!\");\n }\n\n if($categoryModel->addNewCategory($categoryName)){\n $this->view->redirect(\"/categories/manage\",\"Category created successfully!\",\"success\");\n }\n }catch (\\Exception $exception){\n $this->view->redirect(\"/categories/manage\",$exception);\n }\n }", "public function insert_category($category){\n\n\t\t mysql_query(\"INSERT INTO `categories` SET `cat` = '$category'\");\n\n\t\t\treturn true;\n\n\t}", "public function add_post()\n {\n $input = $this->input->post();\n $user=$this->session->userdata('uid');\n $data=$this->Category_model->insertData($input,$user);\n if($data==1)\n $this->response('Category information added.', REST_Controller::HTTP_CREATED);\n else\n $this->response('Category already present!', REST_Controller::HTTP_OK);\n }", "function ppo_categorized_blog() {\n if (false === ( $all_the_cool_cats = get_transient('ppo_category_count') )) {\n // Create an array of all the categories that are attached to posts\n $all_the_cool_cats = get_categories(array(\n 'hide_empty' => 1,\n ));\n\n // Count the number of categories that are attached to the posts\n $all_the_cool_cats = count($all_the_cool_cats);\n\n set_transient('ppo_category_count', $all_the_cool_cats);\n }\n\n if (1 !== (int) $all_the_cool_cats) {\n // This blog has more than 1 category so ppo_categorized_blog should return true\n return true;\n } else {\n // This blog has only 1 category so ppo_categorized_blog should return false\n return false;\n }\n}", "public function checkcategoryid($id){\n\t\t$this->db->where('CategoryId', $id);\n\t\t$result=$this->db->get('tbl_category');\n\t\tif($result->num_rows()==1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public function hasCategories() {\n return $this->_has(16);\n }", "private function check_category_taxonomy($category_name){\n\t\t$query = $this->db->prepare(\"SELECT count(`taxonomy_id`) FROM `nw_taxonomy` WHERE `taxonomy_value` = ?\");\n\t\t$query->bindValue(1, $category_name);\n\n\t\ttry{\n\t\t\t$query->execute();\n\t\t\t$rows = $query->fetchColumn();\n\n\t\t\tif($rows == 0){\n\t\t\t\treturn true;\n\t\t\t}else if($rows >= 1){\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t}catch(PDOException $e){\n\t\t\tdie($e ->getMessage());\n\t\t}\n\t}", "protected function _initCategory()\n {\n $category = $this->request->getPostValue('category');\n if (!$category) {\n return false;\n }\n\n try {\n $category = $this->categoryFactory->create()->loadByAttribute('url_key',$category);\n } catch (NoSuchEntityException $e) {\n return false;\n }\n\n $category->setStoreId($this->_storeManager->getStore()->getId());\n return $category;\n }", "public function checkCategory($categoryText)\n {\n $categoryID = $this->getCategoryID($categoryText);\n\n if ($categoryID == false) {\n $categoryID = $this->createCategory($categoryText);\n }\n return $categoryID;\n }", "public function testCreateAndDeleteCategory()\n\t{\n $user = factory(User::class)->create();\n Passport::actingAs($user);\n\n $array_category = array(\n 'user_id' => $user->id,\n\t\t\t'name' => 'Temporal'\n\t\t);\n\n\t\t$category = factory(Category::class)->create($array_category);\n\t\t$this->assertDatabaseHas('categories', $array_category);\n\n\t\t$response = $this->delete('api/categories/' . $category->id);\n\t\t$response->assertStatus(201);\n\t\t$this->assertDatabaseMissing('categories', $array_category);\n\t}", "public function created(Category $category)\n {\n //\n }", "public function created(Category $category)\n {\n //\n }", "function isCategoryExist($categoryName)\n {\n $allCategories = $this->data->getAllCategories();\n while ($category = $allCategories->fetch_assoc())\n {\n if ($category['CategoryName'] == $categoryName)\n {\n return true;\n }\n }\n return false;\n }", "public function isValidCategory($id){\n\n $query = 'SELECT * FROM '.$this->table.' WHERE id = :id';\n $stmt = $this->conn->prepare($query);\n $stmt->bindValue(':id', $id, PDO::PARAM_STR);\n\n $stmt->execute();\n $result=$stmt->fetch(PDO::FETCH_ASSOC);\n if ($result) {\n return true;\n } else {\n return false;\n }\n }", "function is_new_category_allowed($parent_category){\n\t$max_depth = Modules::Run('site_settings/get_max_category_depth');\n\t// get current category depth\n\t$current_depth = $this->get_category_depth($parent_category);\n\t// figure out if a new category is allowed\n\tif ($current_depth < $max_depth){\n\t\treturn TRUE;\n\t} else {\n\t\treturn FALSE;\n\t}\n\n}", "public function testCategoryData(){\n\n $count = Category::all()->count();\n $this->assertEquals($count, 3);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería Windows']);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería Linux']);\n $this->assertDatabaseHas('categories', ['titulo' => 'Minería IOS']);\n }", "public function testSuccessAddCategory()\n {\n $categoryName = 'New category' ;\n $service = $this->app->make(CategoryServiceInterface::class);\n $new = $service->save(null, $categoryName);\n\n $this->assertInstanceOf(Model::class, $new);\n $this->assertDatabaseHas('categories', [\n 'name' => $categoryName\n ]);\n }", "public function beforeDelete()\n {\n if (!parent::beforeDelete()) {\n return false;\n }\n switch ($this->type) {\n case ModelRegistry::TRANSACTION:\n Transaction::updateAll(\n ['category_id' => null],\n ['category_id' => $this->id]\n );\n break;\n case ModelRegistry::PRODUCT:\n Product::updateAll(\n ['category_id' => null],\n ['category_id' => $this->id]\n );\n break;\n default:\n throw new Exception('invalid category type : ' . $this->type);\n }\n return true;\n }", "public function add($category_id) {\n\n $query = \"INSERT INTO agrishop__production_categories (category, farm)\n VALUES ( ? , ? );\";\n\n $options = [ 'types' => ['ii'], 'params' => [$category_id, Session::get('id')] ];\n\n $this->db->directQuery($query, $options);\n\n return ($this->db->getAffectedNum() === 1);\n\n }", "function prepareCategoriesTable() {\n $engine = defined('DB_CAN_TRANSACT') && DB_CAN_TRANSACT ? 'InnoDB' : 'MyISAM';\n\n try {\n $project_objects_table = TABLE_PREFIX . 'project_objects';\n\n DB::execute(\"CREATE TABLE \" . TABLE_PREFIX . \"categories (\n id int(11) unsigned NOT NULL auto_increment,\n type varchar(50) NOT NULL default 'Category',\n parent_type varchar(50) default NULL,\n parent_id int(10) unsigned default NULL,\n name varchar(100) NOT NULL default '',\n created_on datetime default NULL,\n created_by_id int(10) unsigned NOT NULL default '0',\n created_by_name varchar(100) default NULL,\n created_by_email varchar(150) default NULL,\n PRIMARY KEY (id),\n KEY parent (parent_type,parent_id),\n KEY type (type)\n ) ENGINE=$engine DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci\");\n\n DB::execute(\"ALTER TABLE $project_objects_table ADD category_id int UNSIGNED NULL DEFAULT NULL AFTER parent_type\");\n DB::execute(\"ALTER TABLE $project_objects_table ADD INDEX category_id (category_id)\");\n\n // Category creation should not be displayed in activity log\n DB::execute('DELETE FROM ' . TABLE_PREFIX . 'activity_logs WHERE type = ? AND parent_type = ?', 'ObjectCreatedActivityLog', 'category');\n } catch(Exception $e) {\n return $e->getMessage();\n } // try\n\n return true;\n }", "public function store(Request $request)\n {\n\n $categoryCheck = category::where('categoryname', $request->categoryname)->first();\n\n if ($categoryCheck == null) {\n category::create(['categoryname' => $request->categoryname]);\n $request->session()->flash('success', 'Add category success fully');\n return redirect()->action('CategoryController@index');\n } else {\n $request->session()->flash('danger', 'category has already exit');\n return redirect()->action('CategoryController@index');\n }\n //\n }", "private function categories()\n\t{\n\t\t$categories = ORM::factory('forum_cat')->find_all();\n\t\tif(0 == $categories->count())\n\t\t\treturn FALSE;\n\t\t\t\n\t\treturn $categories;\n\t}", "public function thisTopicWasAlreadyExisted():bool\n {\n \t$column = $this->topic->getColumn();\n\t\t$tableName = $this->topic->getTableName();\n\t\t$columIdSubCat = 'id_sub_category';\n\n\t\t$is_exist = (int)(new Requestor())->getContentWith2Where('id', 'f_topics', 'content', $this->topic->getContent(), 'id_sub_category', $this->topic->getIdSubCategory());\n\n\t\tif ($is_exist > 0) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n }", "function check_category_code($category_code){\n\t\t\tif($this->db->get_where('category',array('code'=>$category_code))->num_rows()>0 ){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "function categoryCheck($cond = array())\n\t{\n\t\t$select = 'addoncategory_id';\n\t\treturn $this->CI->AdminModel->getCondSelectedData($cond,$select,$this->tableName);\n\t}", "private function runCategory()\n {\n $num = (int) $this->ask('How many records do you want to create for the categories table?');\n factory(Category::class, $num)->create();\n }", "public function add_attr_cat()\n\t{\n\t\t$rest_id=$this->session->userdata('user_rest_uns');\n\t\t$cat_name=$this->input->post('cat_name');\n\t\t$query=$this->db->insert(\"food_attribute\",array(\"f_att_name\"=>$cat_name,\"rest_id\"=>$rest_id));\n\t\t\n\t\tif($query)\n\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 canCreate() {\r\n\t\treturn !DataObject::get_one($this->class);\r\n\t}", "public function testCategoriesAreListed()\n {\n $category = factory(Category::class)->create();\n\n $this->actingAs(factory(User::class)->states('admin')->create())\n ->get('categories')\n ->assertSuccessful()\n ->assertSee($category->name);\n }", "public function validCategory($data) {\n $categories = $this->categories();\n return array_key_exists(current($data), $categories);\n }", "public function testCategoriesMinimal()\n {\n $category = CertificateCategory::create([\n 'name' => 'TestNaam'\n ]);\n\n $this->assertDatabaseHas('certificate_categories', [\n 'id' => $category->id,\n 'slug' => 'testnaam',\n 'name' => 'TestNaam',\n 'name_short' => null,\n 'description' => null,\n 'default_expire_years' => null,\n 'is_required' => false\n ]);\n\n $found = CertificateCategory::find($category->id);\n\n $this->assertEquals($category->name, $found->name);\n $this->assertEquals('TestNaam', $category->name_short);\n $this->assertEquals('TestNaam', $found->name_short);\n }", "public function addCategory($category_name){\n\n $check_sql=\"SELECT * FROM categories WHERE category_name='$category_name'\";\n $result_check=$this->conn->query($check_sql);\n\n if($result_check->num_rows>0){\n header(\"location:categories.php?success=0&message=The Category name is already in the table.\");\n }elseif(!empty($category_name)){\n $sql=\"INSERT INTO categories (`category_name`)VALUES('$category_name')\";\n $result=$this->conn->query($sql);\n\n if($result==TRUE){\n header(\"location:categories.php?success=1&message=The category was successfuly created\");\n }else{\n header(\"location:categories.php?success=0&message=Kindly try it again.\");\n }\n }\n }", "protected function _isAllowed()\n {\n return Mage::getSingleton('admin/session')->isAllowed('catalog/categories');\n }", "public function addcategory($args)\n {\n if (!SecurityUtil::checkPermission('Dizkus::', \"::\", ACCESS_ADMIN)) {\n return LogUtil::registerPermissionError();\n }\n \n if (isset($args['cat_title'])) {\n $args['cat_order'] = DBUtil::selectObjectCount('dizkus_categories') + 1;\n $obj = DBUtil::insertObject($args, 'dizkus_categories', 'cat_id');\n return $obj['cat_id'];\n }\n \n return false;\n }", "public function validateCatalogEvents()\n {\n // instead of generic (we are capped by allowed store groups root categories)\n // check whether attempting to create event for wrong category\n if (self::ACTION_NEW === $this->getActionName()) {\n $categoryId = $this->_request->getParam('category_id');\n if (!$categoryId) {\n $this->_forward();\n return;\n }\n\n try {\n $category = $this->categoryRepository->get($categoryId);\n } catch (NoSuchEntityException $e) {\n $this->_forward();\n return;\n }\n\n if (!$this->_isCategoryAllowed($category) || !$this->_role->getIsWebsiteLevel()) {\n $this->_forward();\n return;\n }\n }\n }", "function createCategories($pg, $categoriesList){\n\t\t$cats = array();\n\t\tforeach($categoriesList as $cat){\n\t\t\tif($cat != 'None'){\n\t\t\t\t$pc = new ProjectCategory($pg);\n\t\t\t\tif ($pc){\n\t\t\t\t\tif (!$pc->create($cat)) {\n\t\t\t\t\t\tdb_rollback();\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$cats[$cat] = $pc->getID();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$cats['None'] = 100;\n\t\t\t}\n\t\t}\n\t\treturn $cats;\n\t}", "public function addCategory($data)\n {\n $item=array(\n 'name'=>$data['name']\n );\n\n $this->db->insert('defect_categories',$item);\n return true;\n }", "public function createCategory($categoryText)\n {\n $sqlQuery = \"INSERT INTO categories (categoryText) values (:categoryText)\";\n\n if ($stmt = $this->dbHandle->prepare($sqlQuery)) {\n // Bind variables to the prepared statement as parameters\n $stmt->bindParam(\":categoryText\", $param_categoryText, PDO::PARAM_STR);\n\n // Set parameters\n $param_categoryText = trim($categoryText);\n\n // Attempt to execute the prepared statement\n if ($stmt->execute()) {\n $result = $this->getCategoryID($categoryText);\n return $result;\n } else {\n return false;\n }\n } else {\n return false;\n }\n // Close statement\n unset($stmt);\n // Close connection\n unset($pdo);\n }", "function store()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n\r\n $db->begin( );\r\n\r\n $name = $db->escapeString( $this->Name );\r\n $description = $db->escapeString( $this->Description );\r\n\r\n if ( !isset( $this->ID ) )\r\n {\r\n $db->lock( \"eZImageCatalogue_Category\" );\r\n\r\n $this->ID = $db->nextID( \"eZImageCatalogue_Category\", \"ID\" );\r\n\r\n $db->query( \"INSERT INTO eZImageCatalogue_Category\r\n ( ID, Name, Description, UserID, ParentID, SectionID ) VALUES\r\n ( '$this->ID', '$name', '$description', '$this->UserID', '$this->ParentID', '$this->SectionID' )\" );\r\n $db->unlock();\r\n }\r\n else\r\n {\r\n $db->query( \"UPDATE eZImageCatalogue_Category SET\r\n Name='$name',\r\n Description='$description',\r\n UserID='$this->UserID',\r\n ParentID='$this->ParentID',\r\n SectionID='$this->SectionID' WHERE ID='$this->ID'\" );\r\n }\r\n\r\n\r\n if ( $dbError == true )\r\n $db->rollback( );\r\n else\r\n $db->commit();\r\n\r\n\r\n return true;\r\n }", "public function categoryExists($categoryID) {\n\t\t$this->load->model('BreweriesModel', '', true);\n\t\t// get the brewery information\n\t\t$rs = $this->BreweriesModel->getCategoryCheck($categoryID);\n\t\t// check if it really exists\n\t\t$boolean = count($rs) > 0 ? true : false;\n\t\t// check the boolean\n\t\tif($boolean === false) {\n\t\t\t$this->form_validation->set_message('categoryExists', 'The %s you have chosen doesn\\'t exists. Please choose another.');\n\t\t}\n\t\treturn $boolean;\n\t}", "function addPostCategory(){\n\t\t$this->check_permission();\n\t \t\n\t\t\n\t \t$this->load->library('form_validation');\n\t\t$this->form_validation->set_rules('category_parent_id','Category','is_unique[tbl_category.category_title]|required');\n\t\t$this->form_validation->set_rules('category_title','Category Title','is_unique[tbl_category.category_title]|required');\n\t\t\n\t\tif($this->form_validation->run()) \n { \n $params = array(\n\t\t\t\t'display_in_menu' => $this->input->post('display_in_menu'),\n\t\t\t\t'category_parent_id' => $this->input->post('category_parent_id'),\n\t\t\t\t'category_title' => $this->input->post('category_title'),\n\t\t\t\t'status' => $this->input->post('status'),\n\t\t\t\t'createdby' => $this->session->userdata('id'),\n\t\t\t\t'createdon' => date_timestamp_get(date_create()),\n );\n \n $category_id = $this->Post_model->insert_data('tbl_post_category',$params);\n if($category_id){\n\t\t\t$this->session->set_flashdata('msg', '<div class=\"alert alert-success\">record Added!</div>');\n\t\t\tredirect('secure/post/addpostcategory');\n\t\t\t}\n }\n else\n {\t\t\t$data['all_categorylist'] = $this->Post_model->get_post_categorylist();\n \n \n\t\t\t$this->render_template('secure/post/addPostCategory',$data);\n }\n\t}", "public function test_admin_user_can_add_category_test()\n {\n $this->factory\n ->createCategory()\n ->createUser()\n ->signIn($this);\n\n $attribute = [\n 'name' => 'Test Category'\n ];\n\n $response = $this->post('api/category', $attribute);\n\n $response->assertOk();\n\n $this->assertEquals('Test Category', $response->getOriginalContent()['data']['category']['name']);\n }", "function addCategory()\r\n{\r\n global $conn;\r\n global $_POST;\r\n \r\n \r\n if(isset($_POST[\"cat_name\"]) && $_POST[\"cat_name\"]<>''){ \r\n \r\n\t $catname = $_POST[\"cat_name\"];\r\n\t \r\n\t $sqlquery = \"select * from tbl_categories where cat_name= '$catname'\";\r\n\t \r\n\t $result = mysql_query($sqlquery,$conn) or die(mysql_error());\r\n\t if(mysql_num_rows($result) >0){\r\n\t \t$str = \"Data Already Exists\";\r\n\t }else{\r\n\t $sql = \"insert into `tbl_categories` (`cat_name`, `cat_description`) \r\n\t \t\t\tvalues (\" . strtoupper(sqlvalue(@$_POST[\"cat_name\"], true)).\", \" . strtoupper(sqlvalue(@$_POST[\"cat_description\"], true)).\")\";\r\n\t //echo \"SQL :\".$sql;\r\n \tmysql_query($sql, $conn) or die(mysql_error());\r\n\t \tif(mysql_affected_rows()>0){\r\n\t \t\t$str = \"Record Added Successfully\";\r\n\t \t}\r\n\t }\r\n }else{\r\n \t\t$str = \"Wrong Data Entry \";\r\n }\r\n echo $str;\r\n}", "public function add_new_category_post(){\n $data = $this->security->xss_clean($_POST);\n $data = $this->DeviceCategory_model->add_new_category($data);\n if (isset($data['status']) == 'FALSE')\n {\n $this->response($data, REST_Controller::HTTP_SEE_OTHER);\n }\n $this->set_response($data, REST_Controller::HTTP_CREATED);\n }", "public function new_category() {\n\t\t$this->use_layout=false;\n\t\t$cat = new CmsCategory;\n\t\t$cat->name = Request::get(\"cat\");\n\t\t$cat->save();\n\t\tif(!$this->all_categories = $cat->clear()->all()) $this->all_categories=array();\t\t\n\t\t$this->cat_list = $this->render_partial(\"cat_list\");\t\n\t}", "function insertName($data){\n \n if ($this->db->insert('category', $data)) {\n \n return true;\n } else {\n \n return false;\n }\n }", "function have_category() {\n global $categories_index, $discussion, $categories, $categories_count;\n\n $categories_count = count(get_categories());\n $categories = get_categories();\n\n if ($categories && $categories_index + 1 <= $categories_count) {\n $categories_index++;\n return true;\n } else {\n $categories_count = 0;\n return false;\n }\n}", "function IsCategoryByName($Name) {\n\n\t\tUnset($CategoryID);\n\n\t\t$sql = \"-- \" . __FILE__ . '::' . __FUNCTION__ . \"\\n\" . \"SELECT id FROM categories where name = $1\";\n\n\t\tif ($this->Debug) echo \"sql = '$sql'<br>\";\n\n\t\t$result = pg_query_params($this->dbh, $sql, array($Name));\n\t\tif ($result) {\n\t\t\t$numrows = pg_num_rows($result);\n\t\t\tif ($numrows == 1) {\n\t\t\t\t$myrow = pg_fetch_array ($result, 0);\n\t\t\t\t$CategoryID = $myrow['id'];\n\t\t\t}\n\t\t}\n\n\t\treturn $CategoryID;\n\t}", "function insertCategoryForUser($userID, $categoryName)\n{\n\n $dbconfigs = include('../config.db.php');\n\n $db = mysqli_connect($dbconfigs->hostname, $dbconfigs->username, $dbconfigs->password, $dbconfigs->database);\n if (!$db) {\n die(\"Connection failed: \" . mysqli_connect_error());\n }\n\n $checkQuery = \"SELECT category, status FROM category WHERE category = '\" . $categoryName . \"' AND userId = '\" . $userID . \"'\";\n $result = mysqli_query($db, $checkQuery);\n\n $row = mysqli_fetch_array($result);\n $fcats = $row['category'];\n $fcstatus = $row['status'];\n\n $check_count = mysqli_num_rows($result);\n\n if ($check_count > 0 && $fcstatus == 'ACTIVE') {\n return 2;\n } else if ($check_count > 0 && $fcstatus == 'DELETED') {\n $updatecat = \"UPDATE category SET status='ACTIVE' WHERE category='$fcats'\";\n mysqli_query($db, $updatecat);\n return 1;\n } else if ($check_count == 0) {\n $insertCat = \"INSERT INTO category VALUES (NULL, '\" . $categoryName . \"', \" . $userID . \", 'ACTIVE')\";\n mysqli_query($db, $insertCat);\n return 1;\n }\n\n mysqli_close($db);\n}", "public function isCategory( $name ) {\n $query = $this->db->query( \"SELECT DISTINCT category_id FROM \" . DB_PREFIX . \"category_description WHERE name = '\" . $name . \"'\" );\n\n return $query->row;\n }", "public function category()\n { \n if($this->access_role->is_Admin() == false) show_404();\n $this->load->model('Category_Model');\n \n if($_SERVER['REQUEST_METHOD'] == 'POST')\n {\n if($this->form_validation->run('category_insert') ){\n $this->Category_Model->add_category(); \n } else {\n $error = ['class'=>'warning','text'=> validation_errors()];\n $this->session->set_flashdata('sms_flash', $error); \n redirect('Dashboard/category');\n }\n } \n else{\n $data = $this->Category_Model->view_category();\n }\n \n $this->load->view('admin/category_content',$data);\n }", "public function testCategoriesFull() {\n $category = CertificateCategory::create([\n 'name' => 'TestNaam Full',\n 'name_short' => 'Naam Full',\n 'description' => 'Een volledig ingevuld CertificateCategory',\n 'default_expire_years' => 4,\n 'is_required' => true\n ]);\n\n $this->assertEquals('Naam Full', $category->name_short);\n\n $this->assertDatabaseHas('certificate_categories', [\n 'name' => 'TestNaam Full',\n 'name_short' => 'Naam Full',\n 'slug' => 'naam-full',\n 'description' => 'Een volledig ingevuld CertificateCategory',\n 'default_expire_years' => 4,\n 'is_required' => true\n ]);\n }", "public function testPost()\n {\n try {\n $category = factory(Category::class)->create();\n } catch (\\Exception $e) {\n $this->assertTrue(false);\n }\n\n /**\n * |-------------------------------------------\n * | Creation of an post\n * |-------------------------------------------\n */\n try {\n factory(Post::class)->create([\n 'category_id' => $category->id\n ]);\n } catch (\\Exception $e) {\n $this->assertTrue(false);\n }\n\n $this->assertEquals($category->name, (Post::find(1)->category)->name);\n\n }" ]
[ "0.7183599", "0.708187", "0.691461", "0.68026745", "0.6793626", "0.6748666", "0.67404103", "0.67289835", "0.6707681", "0.66667247", "0.6470421", "0.645172", "0.6447906", "0.6439284", "0.64307773", "0.6430055", "0.6418707", "0.64029104", "0.6365869", "0.6353941", "0.63429016", "0.63341546", "0.63309515", "0.6319828", "0.63097644", "0.6301805", "0.6274918", "0.62727225", "0.6255422", "0.6247498", "0.6240048", "0.62296855", "0.61866593", "0.6185461", "0.61742026", "0.61741483", "0.61486924", "0.61450374", "0.6140251", "0.61396587", "0.6130881", "0.61234576", "0.6123279", "0.611915", "0.61141056", "0.61140454", "0.61074644", "0.6100881", "0.60998476", "0.60709476", "0.6070627", "0.60700613", "0.6069456", "0.6066567", "0.6061467", "0.6043345", "0.6037408", "0.6011658", "0.6011658", "0.6010577", "0.6010419", "0.60056627", "0.59971523", "0.59890884", "0.5985442", "0.59834933", "0.5982154", "0.59743404", "0.5972502", "0.596881", "0.5963581", "0.5955904", "0.59555185", "0.59530693", "0.59272945", "0.59165746", "0.59058243", "0.59057957", "0.5905016", "0.5897849", "0.58972526", "0.589194", "0.58862287", "0.58763796", "0.5870898", "0.5870396", "0.5869118", "0.58653057", "0.5861131", "0.58611155", "0.58545345", "0.58503234", "0.58442515", "0.5843352", "0.58368224", "0.5836713", "0.5836543", "0.583628", "0.5834621", "0.58296984" ]
0.8032583
0
Get new company account approval mail template
Шаблон письма о подтверждении нового корпоративного аккаунта
public function getCompanyAccountApprovalEmailTemplate() { return $this->scopeConfig->getValue( self::XML_PATH_COMPANY_ACCOUNT_APPROVAL_EMAIL_TEMPLATE, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'changeEmail');\n\t}", "public function emailtemplateAction(){\n\n $this->_helper->layout->setLayout('popup'); \n\n\t $this->view->emailtemplate = $this->ModelObj->fetchemailtemplate(array('notification_id'=>$this->Request['notification_id'])); \n\n\t $this->view->templatename = ($this->Request['notification_name']!='') ? $this->Request['notification_name'] : '';\n\n }", "public function getCustomerApproveEmailTemplate ()\n {\n $customerApproveEmailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/email_setting/customer_approve_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $customerApproveEmailTemplate;\n }", "public function getEmailTemplateFile() {}", "public function toMail($notifiable)\n {\n\n\n if ($this->request->mailTemplate == 'SYNCINVOICE_VERIFICATION') {\n\n $name = $this->company->name;\n\n $invoices = Invoice::whereIn('id', $this->request->invoices)->get();\n\n return (new MailMessage)\n ->subject('Syncinvoce Verification')\n ->markdown('manage.mailer.syncinvoice-verification', [\n 'name' => $name,\n 'invoices' => $invoices\n ])\n ->action('Notification Action', url('/'));\n }\n\n\n\n $tmpltVars = [\n '&lt;First Name&gt;' => $this->request->firstName,\n '&lt;Last Name&gt;' => $this->request->lastName,\n '&lt;person email&gt;' => $this->request->personEmail,\n '&lt;phone number&gt;' => $this->request->phoneNumber,\n ];\n\n $name = $this->request->name;\n $companyInfo = $this->company;\n\n switch ($this->request->mailTemplate) {\n case 'ONBOARDING_MESSAGE':\n $tmpltVars['<a>&lt;click here&gt;</a>'] =\n '<a href=\"' . route('customer-verification', ['verification_code' => $this->request->hasLink]) . '\">click Here</a>';\n $template = $companyInfo->onboarding_message;\n $subject = $companyInfo->onboarding_mail_subject;\n break;\n case 'INVOICE_RESULT_MESSAGE':\n $template = $companyInfo->invoice_result_message;\n $subject = $companyInfo->invoice_result_message_subject;\n break;\n case 'SUPPLIER_VERIFICATION_MESSAGE':\n $tmpltVars['<a>&lt;click here&gt;</a>'] =\n '<a href=\"' . route('verification.supplier.start', ['verification_code' => $this->request->hasLink]) . '\">click Here</a>';\n $template = $companyInfo->supplier_verification_message;\n $subject = $companyInfo->supplier_verification_mail_subject;\n break;\n case 'EXISTING_SUPPLIER_MESSAGE':\n $tmpltVars['<a>&lt;click here&gt;</a>'] =\n '<a href=\"' . route('verification.supplier.start', ['verification_code' => $this->request->hasLink]) . '\">click Here</a>';\n $template = $companyInfo->existing_supplier_message;\n $subject = $companyInfo->existing_supplier_mail_verification;\n break;\n default:\n $template = $companyInfo->onboarding_message;\n $subject = $companyInfo->onboarding_mail_subject;\n }\n $mailTemplate = strtr($template, $tmpltVars);\n\n\n return (new MailMessage)\n ->subject($subject)\n ->markdown('manage.mailer.setting-notification-mail', ['mailTemplate' => $mailTemplate, 'name' => $name])\n ->action('Notification Action', url('/'));\n }", "public function emailTemplate(){\n if (Auth::user()->admin===1) {\n $template = EmailTemplate::find(1);\n return view('admin.emailTemplate')->with('template', $template);\n }\n else {\n return view('pages.noAccess');\n }\n }", "public function getemailtemplate() {\n $admin_id = Session::get('bio_admin_id');\n if($admin_id == \"\"){\n return Redirect::to('/backend');\n }\n $EmailData = DB::table('tbl_email_template')->orderBy('id')->where('id', '>', 0)->get();\n return view('admin.manage-emailtemplate')->with('EmailData', $EmailData);\n }", "public function email_approver()\n {\n \n $this->db->select('EMAIL');\n $this->db->from('APPROVERS');\n $this->db->where('UNIT',$_SESSION['div']);\n $query = $this->db->get();\n $out = $query->result_array();\n\n if ($out) {\n\n \n foreach ($out as $recipient){\n \n //mail to approver\n $this->load->library('email');\n $htmlContent = '<h1>Title change requested in FREE System.</h1>';\n $htmlContent .= '<p>Please review the <a href=\"' . base_url() . '/admin\">Approval Control Panel</a> to review the request.</p>';\n \n $this->email->clear();\n\n $config['mailtype'] = 'html';\n $this->email->initialize($config);\n $this->email->to($recipient);\n $this->email->from('wdc@csulb.edu', 'FREE System');\n $this->email->subject('Title Change Requested');\n $this->email->message($htmlContent);\n $this->email->send();\n }\n }\n }", "public function add_email_template()\n {\n \n\t\t$this->arr_view_data['page_title'] = \"Manage \".$this->module_title;\n $this->arr_view_data['parent_module_icon'] = \"fa fa-home\";\n $this->arr_view_data['parent_module_title'] = \"Dashboard\";\n $this->arr_view_data['parent_module_url'] = url('/').'/admin/dashboard';\n $this->arr_view_data['module_icon'] = $this->module_icon;\n $this->arr_view_data['module_title'] = \"Manage \".$this->module_title;\n\t\t$this->arr_view_data['module_url_path'] = $this->module_url_path;\n\t\t$this->arr_view_data['admin_url_path'] = $this->admin_url_path;\n\t\t$this->arr_view_data['admin_panel_slug'] = $this->admin_panel_slug;\n\t\t\n\t\treturn view($this->module_view_folder.'.add',$this->arr_view_data);\n }", "public function mailtemplates() {\n $arr = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'wm-order-completed.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'wm-order-pending.txt'\n );\n return $arr;\n }", "private function emailTemplate($data) {\n $body = array_reduce($data, function($prevInput, $curInput) {\n return $prevInput . '<p style=\"font-family:sans-serif;font-size:14px;font-weight:normal;margin:0;Margin-bottom:2px;\">' . $curInput['name'] . ': ' . $curInput['value'] . '</p>' . PHP_EOL;\n });\n\n $email = '<!DOCTYPE html>\n <html>\n <head>\n <meta name=\"viewport\" content=\"width=device-width\">\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\">\n <title>New Online Donation</title>\n <style type=\"text/css\">\n @media only screen and (max-width: 620px) {\n table[class=body] h1 {\n font-size: 28px !important;\n margin-bottom: 10px !important; }\n table[class=body] p,\n table[class=body] ul,\n table[class=body] ol,\n table[class=body] td,\n table[class=body] span,\n table[class=body] a {\n font-size: 16px !important; }\n table[class=body] .wrapper,\n table[class=body] .article {\n padding: 10px !important; }\n table[class=body] .content {\n padding: 0 !important; }\n table[class=body] .container {\n padding: 0 !important;\n width: 100% !important; }\n table[class=body] .main {\n border-left-width: 0 !important;\n border-radius: 0 !important;\n border-right-width: 0 !important; }\n table[class=body] .btn table {\n width: 100% !important; }\n table[class=body] .btn a {\n width: 100% !important; }\n table[class=body] .img-responsive {\n height: auto !important;\n max-width: 100% !important;\n width: auto !important; }}\n @media all {\n .ExternalClass {\n width: 100%; }\n .ExternalClass,\n .ExternalClass p,\n .ExternalClass span,\n .ExternalClass font,\n .ExternalClass td,\n .ExternalClass div {\n line-height: 100%; }\n .apple-link a {\n color: inherit !important;\n font-family: inherit !important;\n font-size: inherit !important;\n font-weight: inherit !important;\n line-height: inherit !important;\n text-decoration: none !important; }\n .btn-primary table td:hover {\n background-color: #34495e !important; }\n .btn-primary a:hover {\n background-color: #34495e !important;\n border-color: #34495e !important; } }\n </style>\n </head>\n <body class=\"\" style=\"background-color:#f6f6f6;font-family:sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;line-height:1.4;margin:0;padding:0;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"body\" style=\"border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;background-color:#f6f6f6;width:100%;\">\n <tr>\n <td style=\"font-family:sans-serif;font-size:14px;vertical-align:top;\">&nbsp;</td>\n <td class=\"container\" style=\"font-family:sans-serif;font-size:14px;vertical-align:top;display:block;max-width:960px;padding:10px;width:100%;Margin:0 auto !important;\">\n <div class=\"content\" style=\"box-sizing:border-box;display:block;Margin:0 auto;max-width:100%;padding:10px;\">\n <span class=\"preheader\" style=\"color:transparent;display:none;height:0;max-height:0;max-width:0;opacity:0;overflow:hidden;mso-hide:all;visibility:hidden;width:0;\">New Form Submission</span>\n <table class=\"main\" style=\"border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;background:#fff;border-radius:3px;width:100%;\">\n <tr>\n <td class=\"wrapper\" style=\"font-family:sans-serif;font-size:14px;vertical-align:top;box-sizing:border-box;padding:20px;\">\n <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;width:100%;\">\n <tr>\n <td style=\"font-family:sans-serif;font-size:14px;vertical-align:top;\">\n <p style=\"font-family:sans-serif;font-size:24px;font-weight:normal;margin:0;Margin-bottom:24px;\">Here are the details:</p>\n ' . $body . '\n </td>\n </tr>\n </table>\n </td>\n </tr>\n </table>\n </div>\n </td>\n <td style=\"font-family:sans-serif;font-size:14px;vertical-align:top;\">&nbsp;</td>\n </tr>\n </table>\n </body>\n </html>';\n \n return $email;\n }", "function Trigger_ActivationEmail(&$tNG) {\r\n $emailObj = new tNG_Email($tNG);\r\n $emailObj->setFrom(\"{KT_defaultSender}\");\r\n $emailObj->setTo(\"{member_email}\");\r\n $emailObj->setCC(\"\");\r\n $emailObj->setBCC(\"\");\r\n $emailObj->setSubject(\"Activation\");\r\n //FromFile method\r\n $emailObj->setContentFile(\"includes/mailtemplates/activate.html\");\r\n $emailObj->setEncoding(\"UTF-8\");\r\n $emailObj->setFormat(\"HTML/Text\");\r\n $emailObj->setImportance(\"Normal\");\r\n return $emailObj->Execute();\r\n}", "public function mailTemplates() {\n $t = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'order-completed-webmaster.txt',\n 'completed-dl' => 'order-completed-dl.txt',\n 'completed-wm-dl' => 'order-completed-dl-webmaster.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'order-pending-webmaster.txt',\n 'refunded' => 'order-refunded.txt',\n 'cancelled' => 'order-cancelled.txt',\n 'completed-wish' => 'order-completed-wish.txt',\n 'completed-wish-dl' => 'order-completed-wish-dl.txt',\n 'completed-wish-recipient' => 'order-completed-wish-recipient.txt',\n 'completed-wish-recipient-dl' => 'order-completed-wish-recipient-dl.txt'\n );\n return $t;\n }", "public function approve()\n {\n $message = new MailMessage;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been approved successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }", "public function create()\n {\n return (new EmailTemplate())->loadDefaultValues();\n }", "public function email_configurations(){\n\t\t\t$template_list='';\t\t\n\t\t\t$user_id = $this->session->userdata('id');\n\t\t\t$role = $this->session->userdata('role');\n\t\t\t$template_id = $this->uri->segment(3);\n\t\t\tif( ($role=='super_admin') || ($role=='admin')):\n\t\t\t\tif(!empty($template_id)){\n\t\t\t\t\t$template_list = $this->InteractModal->get_email_template($template_id);\n\t\t\t\t}\n\t\t\t\t$pagedata['template_list'] = $template_list;\n\t\t\t\t$this->load->view('dashboard/header');\n\t\t\t\t$this->load->view('dashboard/email-configurations',$pagedata);\n\t\t\t\t$this->load->view('dashboard/footer');\n\t\t\t\n\t\t\telse:\n\t\t\t\tredirect( base_url( 'Interact/login' ));\n\t\t\tendif;\n\t}", "public function createMailMessage();", "public function template()\n {\n $templates = EmailTemplate::select('*')->where('email_templates.state','0')->get();\n $newcontact = DB::table('contact')->where('contact.state', '=', '0')->count();\n return view('admin.email_template')->with(array('templates'=>$templates,'newcontact'=>$newcontact));\n }", "function emailTemplate($username, $password, $idcode ,$expiredate ,$package, $typePackage, $note,$isMagDevice)\n{\n\n if ($typePackage == \"IPTV\") {\n if ($isMagDevice == \"1\") {\n $corpo_credenziali = '<b>Link Portal:</b> ';\n $corpo_credenziali .= \"http://satopen-iptv.ddns.net:8000/c/\";\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"IPTV $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>Iptv Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our Enigma 2 Plugin http://satopen-panel.ddns.net/Download/IptvGate_World.ipk<br>Automatic Update Of Channel List, Personalizate Bouquet Channel, Play & Pause, Forward & Rewind, Search VOD, Account Info and many more<br>';\n \n }\n else {\n $corpo_credenziali = '<b>Username:</b> ';\n $corpo_credenziali .= \"$username\";\n $corpo_credenziali .= '<br><b>Password:</b> ';\n $corpo_credenziali .= \"$password\";\n $corpo_credenziali .= '<br><br><b>Your IPTV Account Data - AutoScript Enigma2:</b> ';\n $corpo_credenziali .= \"wget -O /etc/enigma2/iptv.sh \\\"http://satopen-iptv.ddns.net:8000/get.php?username=$username&password=$password&type=enigma22_script&output=mpegts\\\" && chmod 777 /etc/enigma2/iptv.sh && /etc/enigma2/iptv.sh\";\n $corpo_credenziali .= '<br><br><b>Your IPTV Account Data - Link VLC/Android/IOS/Smart-Tv Player:</b> ';\n $corpo_credenziali .= \"http://satopen-iptv.ddns.net:8000/get.php?username=$username&password=$password&type=m3u_plus&output=mpegts\";\n $corpo_credenziali .= '<br><br><b>Plugin WorldTeam 2.0:</b> ';\n $corpo_credenziali .= \"wget -q -O /tmp/IptvGate_World.ipk http://app-world.dyndns.tv/addons/plugin/tar/IptvGate_World.ipk; chmod 777 /tmp/IptvGate_World.ipk; opkg install /tmp/IptvGate_World.ipk; sleep 5; killall -9 enigma2\";\n $corpo_credenziali .= '<br><b>After open the Plugina and insert your Username and Password</b>';\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"IPTV $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>Iptv Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our Enigma 2 Plugin http://satopen-panel.ddns.net/Download/IptvGate_World.ipk<br>Automatic Update Of Channel List, Personalizate Bouquet Channel, Play & Pause, Forward & Rewind, Search VOD, Account Info and many more<br>';\n } \n }\n else {\n $corpo_credenziali = '<b>Username:</b> ';\n $corpo_credenziali .= \"$username\";\n $corpo_credenziali .= '<br><b>Password:</b> ';\n $corpo_credenziali .= \"$password\";\n $corpo_credenziali .= '<br><br><b>Your CardSharing Account Data - CLine:</b><br>';\n $corpo_credenziali .= \"C: satopen-client.ddns.net 23000 $username $password\";\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"Cardsharing $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>CardSharing Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our CCcam.prio in your decoder for fast zapping and zero freeze<br>http://www.satopen.cc/setup-cccam.html<br>';\n\n }\n\n \n \n $GLOBALS['head_email'] = '<html xmlns=\"http://www.w3.org/1999/xhtml\"> <head>\n\t\t\t\t <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\t\t\t\t <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t\t\t <title>SatOpen Email</title>\n\t\t\t\t <style type=\"text/css\"> \n\t\t\t\t img {\n\t\t\t\t max-width: 600px;\n\t\t\t\t outline: none;\n\t\t\t\t text-decoration: none;\n\t\t\t\t -ms-interpolation-mode: bicubic;\n\t\t\t\t }\n\n\t\t\t\t a {\n\t\t\t\t border: 0;\n\t\t\t\t outline: none;\n\t\t\t\t }\n\n\t\t\t\t a img {\n\t\t\t\t border: none;\n\t\t\t\t }\n\n\t\t\t\t /* General styling */\n\n\t\t\t\t td, h1, h2, h3 {\n\t\t\t\t font-family: Helvetica, Arial, sans-serif;\n\t\t\t\t font-weight: 400;\n\t\t\t\t }\n\n\t\t\t\t td {\n\t\t\t\t font-size: 13px;\n\t\t\t\t line-height: 19px;\n\t\t\t\t text-align: left;\n\t\t\t\t }\n\n\t\t\t\t body {\n\t\t\t\t -webkit-font-smoothing:antialiased;\n\t\t\t\t -webkit-text-size-adjust:none;\n\t\t\t\t width: 100%;\n\t\t\t\t height: 100%;\n\t\t\t\t color: #37302d;\n\t\t\t\t background: #ffffff;\n\t\t\t\t }\n\n\t\t\t\t table {\n\t\t\t\t border-collapse: collapse !important;\n\t\t\t\t }\n\n\n\t\t\t\t h1, h2, h3, h4 {\n\t\t\t\t padding: 0;\n\t\t\t\t margin: 0;\n\t\t\t\t color: #444444;\n\t\t\t\t font-weight: 400;\n\t\t\t\t line-height: 110%;\n\t\t\t\t }\n\n\t\t\t\t h1 {\n\t\t\t\t font-size: 35px;\n\t\t\t\t }\n\n\t\t\t\t h2 {\n\t\t\t\t font-size: 30px;\n\t\t\t\t }\n\n\t\t\t\t h3 {\n\t\t\t\t font-size: 24px;\n\t\t\t\t }\n\n\t\t\t\t h4 {\n\t\t\t\t font-size: 18px;\n\t\t\t\t font-weight: normal;\n\t\t\t\t }\n\n\t\t\t\t .important-font {\n\t\t\t\t color: #21BEB4;\n\t\t\t\t font-weight: bold;\n\t\t\t\t }\n\n\t\t\t\t .hide {\n\t\t\t\t display: none !important;\n\t\t\t\t }\n\n\t\t\t\t .force-full-width {\n\t\t\t\t width: 100% !important;\n\t\t\t\t }\n\n\t\t\t\t </style>\n\n\t\t\t\t <style type=\"text/css\" media=\"screen\">\n\t\t\t\t @media screen {\n\t\t\t\t\t@import url(http://fonts.googleapis.com/css?family=Open+Sans:400);\n\n\t\t\t\t\t/* Thanks Outlook 2013! */\n\t\t\t\t\ttd, h1, h2, h3 {\n\t\t\t\t\t font-family: Open Sans, Helvetica Neue, Arial, sans-serif !important;\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t </style>\n\n\t\t\t\t <style type=\"text/css\" media=\"only screen and (max-width: 600px)\">\n\t\t\t\t /* Mobile styles */\n\t\t\t\t @media only screen and (max-width: 600px) {\n\n\t\t\t\t table[class=\"w320\"] {\n\t\t\t\t\twidth: 320px !important;\n\t\t\t\t }\n\n\t\t\t\t table[class=\"w300\"] {\n\t\t\t\t\twidth: 300px !important;\n\t\t\t\t }\n\n\t\t\t\t table[class=\"w290\"] {\n\t\t\t\t\twidth: 290px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class=\"w320\"] {\n\t\t\t\t\twidth: 320px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class~=\"mobile-padding\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-left\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-right\"] {\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-left-only\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t\tpadding-right: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-right-only\"] {\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t\tpadding-left: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-block\"] {\n\t\t\t\t\tdisplay: block !important;\n\t\t\t\t\twidth: 100% !important;\n\t\t\t\t\ttext-align: left !important;\n\t\t\t\t\tpadding-left: 0 !important;\n\t\t\t\t\tpadding-right: 0 !important;\n\t\t\t\t\tpadding-bottom: 15px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-no-padding-bottom\"] {\n\t\t\t\t\tpadding-bottom: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class~=\"mobile-center\"] {\n\t\t\t\t\ttext-align: center !important;\n\t\t\t\t }\n\n\t\t\t\t table[class*=\"mobile-center-block\"] {\n\t\t\t\t\tfloat: none !important;\n\t\t\t\t\tmargin: 0 auto !important;\n\t\t\t\t }\n\n\t\t\t\t *[class*=\"mobile-hide\"] {\n\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\twidth: 0 !important;\n\t\t\t\t\theight: 0 !important;\n\t\t\t\t\tline-height: 0 !important;\n\t\t\t\t\tfont-size: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-border\"] {\n\t\t\t\t\tborder: 0 !important;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t </style>\n\t\t\t\t</head>';\n\nif ($typePackage == \"IPTV\") {\n $corpo_email = $GLOBALS['head_email'];\n $corpo_email .= ' \n\t\t\t\t<body class=\"body\" style=\"padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none\" bgcolor=\"#ffffff\">\n\t\t\t\t<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t <td align=\"center\" valign=\"top\" bgcolor=\"#ffffff\" width=\"100%\">\n\n\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background:#1f1f1f\" width=\"100%\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-no-padding-bottom mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 10px 10px 20px;\">\n\t\t\t\t\t\t <a data-click-track-id=\"1262\" href=\"#\" style=\"text-decoration:none;\">\n\t\t\t\t\t\t <img src=\"http://www.satopen.cc/uploads/1/3/3/0/13301587/1460553356.png\" width=\"142\" height=\"30\" alt=\"Your Logo\"/>\n\t\t\t\t\t\t </a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 15px 10px 10px\">\n\t\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobile-center-block\" align=\"right\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\">\n\t\t\t\t\t\t\t<a data-click-track-id=\"2952\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">\n\t\t\t\t\t\t\t<img src=\"http://keenthemes.com/assets/img/emailtemplate/social_facebook.png\" width=\"30\" height=\"30\" alt=\"social icon\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"left\" class=\"mobile-padding\" style=\"padding:20px 20px 0\">\n\n\t\t\t\t\t\t <br class=\"mobile-hide\" />\n\n\t\t\t\t\t\t <h1>Account Data on SatOpen.cc!</h1>\n\n\t\t\t\t\t\t <br>\n\t\t\t\t\t\t <b>Your Data for Help Area:</b><br><br>';\n $corpo_email .= $corpo_credenziali;\n $corpo_email .= '\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t <br>\n\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#ffffff\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td style=\"width:130px;background:#D84A38;\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t <v:rect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"#\" style=\"height:33px;v-text-anchor:middle;width:130px;\" stroke=\"f\" fillcolor=\"#D84A38\">\n\t\t\t\t\t\t\t <w:anchorlock/>\n\t\t\t\t\t\t\t <center>\n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t <a href=\"http://satopen.cc\"\n\t\t\t\t\t\t\tstyle=\"background-color:#D84A38;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:33px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;\">SatOpen.CC</a>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t </center>\n\t\t\t\t\t\t\t </v:rect> \n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t <td width=\"316\" style=\"background-color:#ffffff; font-size:0; line-height:0;\">&nbsp;</td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <br><br>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class=\"mobile-hide\" style=\"padding-top:20px;padding-bottom:0;vertical-align:bottom\">\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\" valign=\"bottom\" width=\"220\" style=\"padding-right:20px; padding-bottom:0; vertical-align:bottom;\">\n\t\t\t\t\t\t <img style=\"display:block\" src=\"https://www.filepicker.io/api/file/AvB8yENR7OdiUqonW05y\" width=\"174\" height=\"294\" alt=\"iphone\"/>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td valign=\"top\" style=\"background-color:#f8f8f8;border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background-color:#1f1f1f;\">\n\t\t\t\t\t <center>\n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\" style=\"height:100%;color:#ffffff\" bgcolor=\"#1f1f1f\" >\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"right\" valign=\"middle\" class=\"mobile-padding\" style=\"font-size:12px;padding:20px; background-color:#1f1f1f; color:#ffffff; text-align:left; \">\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">Facebook</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Support</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t</table>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\t';\n}\n\nelse {\n $corpo_email = $GLOBALS['head_email'];\n $corpo_email .= ' \n\t\t\t\t<body class=\"body\" style=\"padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none\" bgcolor=\"#ffffff\">\n\t\t\t\t<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t <td align=\"center\" valign=\"top\" bgcolor=\"#ffffff\" width=\"100%\">\n\n\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background:#1f1f1f\" width=\"100%\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-no-padding-bottom mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 10px 10px 20px;\">\n\t\t\t\t\t\t <a data-click-track-id=\"1262\" href=\"#\" style=\"text-decoration:none;\">\n\t\t\t\t\t\t <img src=\"http://www.satopen.cc/uploads/1/3/3/0/13301587/1460553356.png\" width=\"142\" height=\"30\" alt=\"Your Logo\"/>\n\t\t\t\t\t\t </a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 15px 10px 10px\">\n\t\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobile-center-block\" align=\"right\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\">\n\t\t\t\t\t\t\t<a data-click-track-id=\"2952\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">\n\t\t\t\t\t\t\t<img src=\"http://keenthemes.com/assets/img/emailtemplate/social_facebook.png\" width=\"30\" height=\"30\" alt=\"social icon\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"left\" class=\"mobile-padding\" style=\"padding:20px 20px 0\">\n\n\t\t\t\t\t\t <br class=\"mobile-hide\" />\n\n\t\t\t\t\t\t <h1>Account Data on SatOpen.cc!</h1>\n\n\t\t\t\t\t\t <br>\n\t\t\t\t\t\t <b>Your Data for Help Area:</b><br><br>';\n $corpo_email .= $corpo_credenziali;\n $corpo_email .= '\n\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t <br>\n\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#ffffff\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td style=\"width:130px;background:#D84A38;\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t <v:rect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"#\" style=\"height:33px;v-text-anchor:middle;width:130px;\" stroke=\"f\" fillcolor=\"#D84A38\">\n\t\t\t\t\t\t\t <w:anchorlock/>\n\t\t\t\t\t\t\t <center>\n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t <a href=\"http://satopen.cc\"\n\t\t\t\t\t\t\tstyle=\"background-color:#D84A38;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:33px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;\">SatOpen.cc</a>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t </center>\n\t\t\t\t\t\t\t </v:rect> \n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t <td width=\"316\" style=\"background-color:#ffffff; font-size:0; line-height:0;\">&nbsp;</td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <br><br>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class=\"mobile-hide\" style=\"padding-top:20px;padding-bottom:0;vertical-align:bottom\">\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\" valign=\"bottom\" width=\"220\" style=\"padding-right:20px; padding-bottom:0; vertical-align:bottom;\">\n\t\t\t\t\t\t <img style=\"display:block\" src=\"https://www.filepicker.io/api/file/AvB8yENR7OdiUqonW05y\" width=\"174\" height=\"294\" alt=\"iphone\"/>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td valign=\"top\" style=\"background-color:#f8f8f8;border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background-color:#1f1f1f;\">\n\t\t\t\t\t <center>\n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\" style=\"height:100%;color:#ffffff\" bgcolor=\"#1f1f1f\" >\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"right\" valign=\"middle\" class=\"mobile-padding\" style=\"font-size:12px;padding:20px; background-color:#1f1f1f; color:#ffffff; text-align:left; \">\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">Facebook</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Support</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t</table>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\t';\n\n}\n\n return array($corpo_email,$corpo_credenziali);\n}", "public function emailtemplete($email)\n\t{\t\n\t\t$templetedata = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta name=\"viewport\" content=\"width=device-width\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<title>Verify your account</title>\n<style>/* -------------------------------------\n GLOBAL\n A very basic CSS reset\n------------------------------------- */\n* {\n margin: 0;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n box-sizing: border-box;\n font-size: 14px;\n}\n\nimg {\n max-width: 100%;\n}\n\nbody {\n -webkit-font-smoothing: antialiased;\n -webkit-text-size-adjust: none;\n width: 100% !important;\n height: 100%;\n line-height: 1.6em;\n /* 1.6em * 14px = 22.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\ntable td {\n vertical-align: top;\n}\n\nbody {\n background-color: #f6f6f6;\n}\n\n.body-wrap {\n background-color: #f6f6f6;\n width: 100%;\n}\n\n.container {\n display: block !important;\n max-width: 600px !important;\n margin: 0 auto !important;\n /* makes it centered */\n clear: both !important;\n}\n\n.content {\n max-width: 600px;\n margin: 0 auto;\n display: block;\n padding: 20px;\n}\n\n/* -------------------------------------\n HEADER, FOOTER, MAIN\n------------------------------------- */\n.main {\n background-color: #fff;\n border: 1px solid #e9e9e9;\n border-radius: 3px;\n}\n\n.content-wrap {\n padding: 20px;\n}\n\n.content-block {\n padding: 0 0 20px;\n}\n\n.header {\n width: 100%;\n margin-bottom: 20px;\n}\n\n.footer {\n width: 100%;\n clear: both;\n color: #999;\n padding: 20px;\n}\n.footer p, .footer a, .footer td {\n color: #999;\n font-size: 12px;\n}\n\n/* -------------------------------------\n TYPOGRAPHY\n------------------------------------- */\nh1, h2, h3 {\n font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;\n color: #000;\n margin: 40px 0 0;\n line-height: 1.2em;\n font-weight: 400;\n}\n\nh1 {\n font-size: 32px;\n font-weight: 500;\n /* 1.2em * 32px = 38.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 38px;*/\n}\n\nh2 {\n font-size: 24px;\n /* 1.2em * 24px = 28.8px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 29px;*/\n}\n\nh3 {\n font-size: 18px;\n /* 1.2em * 18px = 21.6px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\nh4 {\n font-size: 14px;\n font-weight: 600;\n}\n\np, ul, ol {\n margin-bottom: 10px;\n font-weight: normal;\n}\np li, ul li, ol li {\n margin-left: 5px;\n list-style-position: inside;\n}\n\n/* -------------------------------------\n LINKS & BUTTONS\n------------------------------------- */\na {\n color: #348eda;\n text-decoration: underline;\n}\n\n.btn-primary {\n text-decoration: none;\n color: #FFF;\n background-color: #348eda;\n border: solid #348eda;\n border-width: 10px 20px;\n line-height: 2em;\n /* 2em * 14px = 28px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 28px;*/\n font-weight: bold;\n text-align: center;\n cursor: pointer;\n display: inline-block;\n border-radius: 5px;\n text-transform: capitalize;\n}\n\n/* -------------------------------------\n OTHER STYLES THAT MIGHT BE USEFUL\n------------------------------------- */\n.last {\n margin-bottom: 0;\n}\n\n.first {\n margin-top: 0;\n}\n\n.aligncenter {\n text-align: center;\n}\n\n.alignright {\n text-align: right;\n}\n\n.alignleft {\n text-align: left;\n}\n\n.clear {\n clear: both;\n}\n\n/* -------------------------------------\n ALERTS\n Change the class depending on warning email, good email or bad email\n------------------------------------- */\n.alert {\n font-size: 16px;\n color: #fff;\n font-weight: 500;\n padding: 20px;\n text-align: center;\n border-radius: 3px 3px 0 0;\n}\n.alert a {\n color: #fff;\n text-decoration: none;\n font-weight: 500;\n font-size: 16px;\n}\n.alert.alert-warning {\n background-color: #FF9F00;\n}\n.alert.alert-bad {\n background-color: #D0021B;\n}\n.alert.alert-good {\n background-color: #68B90F;\n}\n\n/* -------------------------------------\n INVOICE\n Styles for the billing table\n------------------------------------- */\n.invoice {\n margin: 40px auto;\n text-align: left;\n width: 80%;\n}\n.invoice td {\n padding: 5px 0;\n}\n.invoice .invoice-items {\n width: 100%;\n}\n.invoice .invoice-items td {\n border-top: #eee 1px solid;\n}\n.invoice .invoice-items .total td {\n border-top: 2px solid #333;\n border-bottom: 2px solid #333;\n font-weight: 700;\n}\n\n/* -------------------------------------\n RESPONSIVE AND MOBILE FRIENDLY STYLES\n------------------------------------- */\n@media only screen and (max-width: 640px) {\n body {\n padding: 0 !important;\n }\n\n h1, h2, h3, h4 {\n font-weight: 800 !important;\n margin: 20px 0 5px !important;\n }\n\n h1 {\n font-size: 22px !important;\n }\n\n h2 {\n font-size: 18px !important;\n }\n\n h3 {\n font-size: 16px !important;\n }\n\n .container {\n padding: 0 !important;\n width: 100% !important;\n }\n\n .content {\n padding: 0 !important;\n }\n\n .content-wrap {\n padding: 10px !important;\n }\n\n .invoice {\n width: 100% !important;\n }\n}\n\n/*# sourceMappingURL=styles.css.map */\n</style>\n</head>\n\n<body itemscope itemtype=\"http://schema.org/EmailMessage\">\n\n<table class=\"body-wrap\">\n\t<tr>\n\t\t<td></td>\n\t\t<td class=\"container\" width=\"600\">\n\t\t\t<div class=\"content\">\n\t\t\t\t<table class=\"main\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"alert alert-warning\">\n\t\t\t\t\t\t\tVerify your account\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"content-wrap\">\n\t\t\t\t\t\t\t<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tDear customer Pleas <strong>Click</strong> Below link .\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"'.base_url().'varify/'.urlencode(base64_encode($email)).'\" class=\"btn-primary\">verify</a>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tThanks for choosing 11needs.com.\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t<div class=\"footer\">\n\t\t\t\t\t<table width=\"100%\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"aligncenter content-block\"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</div></div>\n\t\t</td>\n\t\t<td></td>\n\t</tr>\n</table>\n\n</body>\n</html>';\n\t\treturn $templetedata;\n\t}", "public function run()\n {\n DB::table('email_templates')->truncate();\n\n $templates = [\n\t\t\t[\n\t\t\t\t'title' => 'New account created',\n\t\t\t\t'slug' => 'newaccount',\n\t\t\t\t'description' => 'This email will be sent to users that are created via a site administrator under users page',\n\t\t\t\t'email_subject' => 'New account created at '.crminfo('name'),\n\t\t\t\t'email_body' => 'Hi {{ $user->full_name }},<br>\n<br>\nA new account has been created for you by a site administrator at <a href=\\'{{ $crm->url }}\\'>{{ $crm->crmname }}</a>.<br>\n<br>\nPlease use the following credentials to sign in:<br>\nUsername: <b>{{ $user->username }}</b><br>\nPassword: <b>{{ $password }}</b>\n<br>\n<br>\nYou may sign in by visiting the following link: <a href=\\'{{ $crm->url . \\'login\\'}}\\'>{{ $crm->url . \\'login\\'}}</a>\n<br>\n<br>\nPlease change your password by visiting your edit account page: <a href=\\'{{ $edit_link }}\\'>{{ $edit_link }}</a><br>\nor request a Password Reset Link at: <a href=\\'{{ $reset_link }}\\'>{{ $reset_link }}</a>\n<br>\n<br>\nHappy hacking!<br>\n{{ $crm->crmname }}\n<br>\n<br>\n<hr>\n<br>\n<br>\n{{ $crm->orgname }}<br>\n{!! $crm->address !!}',\n\t\t\t\t'syntax_help' => '<b>Required variables to be included:</b> $reset_link (to send the reset password link), $edit_link (to send the edit account link), $password (to send the password set for user)<br />\n\t\t\t\t<b>Other:</b> $user->username, $user->full_name, $user->email, $user->last_login',\n\t\t\t\t'locale' => 'en'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'title' => 'Email confirmation',\n\t\t\t\t'slug' => 'confirmation',\n\t\t\t\t'description' => 'This email will be sent to users who register via the the crm registration form.',\n\t\t\t\t'email_subject' => 'Email confirmation required',\n\t\t\t\t'email_body' => 'Thanks for signing up!<br>\n<br>\nYou are receiving this email because you have recently requested to create an account in {{ $crm->crmname }}.<br>\n<br>\nYour username is <b>{{ $user->username }}</b>. To confirm your account and log in, please visit <a href=\\'{{ $confirmation_link }}\\'>{{ $confirmation_link }}</a>.<br>\n<br>\nHappy hacking!<br>\n{{ $crm->crmname }}\n<br>\n<br>\n<hr>\n<br>\n<br>\n{{ $crm->orgname }}<br>\n{!! $crm->address !!}',\n\t\t\t\t'syntax_help' => '<b>Required variables to be included:</b> $confirmation_link (to send the email confirmation link)<br />\n\t\t\t\t<b>Other:</b> $user->username, $user->full_name, $user->email, $user->last_login',\n\t\t\t\t'locale' => 'en'\n\t\t\t],\n\t\t];\n\n\t\tforeach ($templates as $template) {\n\t\t\tEmailTemplate::create($template);\n\t\t}\n\n\n }", "public static function getPortalEmailContents($entityData, $password, $type='') {\n require_once 'config.inc.php';\n\t\tglobal $PORTAL_URL, $HELPDESK_SUPPORT_EMAIL_ID;\n\n\t\t$adb = PearDatabase::getInstance();\n\t\t$moduleName = $entityData->getModuleName();\n\n\t\t$companyDetails = getCompanyDetails();\n\n\t\t$portalURL = '<a href=\"'.$PORTAL_URL.'\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px; font-weight:bolder;text-decoration:none;color: #4242FD;\">'.getTranslatedString('Please Login Here', $moduleName).'</a>';\n\n\t\t//here id is hardcoded with 5. it is for support start notification in vtiger_notificationscheduler\n\t\t$query='SELECT vtiger_emailtemplates.subject,vtiger_emailtemplates.body\n\t\t\t\t\tFROM vtiger_notificationscheduler\n\t\t\t\t\t\tINNER JOIN vtiger_emailtemplates ON vtiger_emailtemplates.templateid=vtiger_notificationscheduler.notificationbody\n\t\t\t\t\tWHERE schedulednotificationid=5';\n\n\t\t$result = $adb->pquery($query, array());\n\t\t$body=decode_html($adb->query_result($result,0,'body'));\n\t\t$contents=$body;\n\t\t$contents = str_replace('$contact_name$',$entityData->get('firstname').\" \".$entityData->get('lastname'),$contents);\n\t\t$contents = str_replace('$login_name$',$entityData->get('email'),$contents);\n\t\t$contents = str_replace('$password$',$password,$contents);\n\t\t$contents = str_replace('$URL$',$portalURL,$contents);\n\t\t$contents = str_replace('$support_team$',getTranslatedString('Support Team', $moduleName),$contents);\n\t\t$contents = str_replace('$logo$','<img src=\"cid:logo\" />',$contents);\n\n\t\t//Company Details\n\t\t$contents = str_replace('$address$',$companyDetails['address'],$contents);\n\t\t$contents = str_replace('$companyname$',$companyDetails['companyname'],$contents);\n\t\t$contents = str_replace('$phone$',$companyDetails['phone'],$contents);\n\t\t$contents = str_replace('$companywebsite$',$companyDetails['website'],$contents);\n\t\t$contents = str_replace('$supportemail$',$HELPDESK_SUPPORT_EMAIL_ID,$contents);\n\n\t\tif($type == \"LoginDetails\") {\n\t\t\t$temp=$contents;\n\t\t\t$value[\"subject\"]=decode_html($adb->query_result($result,0,'subject'));\n\t\t\t$value[\"body\"]=$temp;\n\t\t\treturn $value;\n\t\t}\n\t\treturn $contents;\n\t}", "function add_actualisation()\n\t{\n\t\t$name=post_param('name');\n\t\t$subject=post_param('subject');\n\t\t$text=post_param('text');\n\t\t$send_time=post_param_integer('send_time');\n\t\tif (get_value('welcome_nw_choice')==='1')\n\t\t{\n\t\t\t$newsletter=post_param_integer('newsletter',NULL);\n\t\t} else\n\t\t{\n\t\t\t$newsletter=post_param_integer('newsletter',0);\n\t\t}\n\t\t$id=ocf_make_welcome_email($name,$subject,$text,$send_time,$newsletter);\n\t\treturn strval($id);\n\t}", "public function getEmailTpl() { return $this->_emailTpl; }", "function emailtocoachnotify($to_id, $from_id, $status, $course, $exercise, $links, $files, $type, $url) {\n\n global $wpdb;\n /* coach */\n $coach_details = get_userdata($to_id);\n $coach_name = $coach_details->display_name;\n $coach_email = /* $coach_details->user_email; */\"sanjay@rudrainnovatives.com\";\n /* student */\n $student_details = get_userdata($from_id);\n $student_name = strtoupper($student_details->display_name); /* student_name */\n $student_email = $student_details->user_email; /* student email */\n\n $date = date(\"Y-m-d H:i:s\");\n $site_name = TR_SITE_NAME;\n $headers = 'From: ' . $student_email . \"\\r\\n\" .\n 'Reply-To: ' . $student_email . \"\\r\\n\" .\n 'MIME-Version: 1.0' . \"\\r\\n\" .\n 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n\n $template = tt_get_template(\"project_submission\");\n $subj = $template->subject;\n $subj = str_replace(\"{{mentor_name}}\", $coach_name, $subj);\n\n $msg = $template->content;\n\n /* sending mail in case of project submission */\n \n if($coach_email==get_option('admin_email') && $type==\"Project\"){\n\n //if ($coach_email == \"sanjay@rudrainnovatives.com\" && $type == \"Project\") {\n\n\n if (empty($files)) {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details\" . \"<br/>\", $exercise, $course, \"<br/>Submitted Work <br/> Links are: \" . $links . \"<br/><br/>For more information , please go to this link<br/>\" . $url . \"<br/><br/>*Note : You have recieved this mail because user has no mentor assigned yet.\", $site_name), $msg);\n } else {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details\" . \"<br/>\", $exercise, $course, \"<br/>Submitted Work <br/>Links are : \" . $links . \"<br/>Files are :\" . $files . \"<br/><br/>For more information , please go to this link<br/>\" . $url . \"<br/><br/>*Note : You have recieved this mail because user has no mentor assigned yet.\", $site_name), $msg);\n }\n } else if ($type == \"Project\") {\n if (empty($files)) {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details.<br/>\", $exercise . \"<br/>\", $course, \"<br/>Submitted Work <br/> Links are :\" . $links . \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n } else {\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details .<br/>\", $exercise, $course, \"<br/>Submitted Work <br/>Links are :\" . $links . \"<br/>Files are : \" . $files . \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n }\n } else if ($coach_email == get_option('admin_email') && $type == \"Marked\") {\n\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details .<br/>\", $exercise, $course, \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n } else if ($type == \"Marked\") {\n\n $msg = str_replace(array('{{mentor_name}}', '{{student_name}}', '{{student_email}}', '{{status}}', '{{exercise_name}}', '{{course_name}}', '{{work_files}}', '{{site_name}}'), array($coach_name, $student_name, $student_email, $status . \" work , below you can find work details .<br/>\", $exercise, $course, \"<br/><br/>For more information , please go to this link<br/>\" . $url, $site_name), $msg);\n }\n\n\n custom_mail($coach_email, $subj, $msg, EMAIL_TYPE, \"\");\n}", "function email_activation($activationCode,$form)\n\t{\n\t\t$emailaddress = $this->namedFields['email']->getData();\n\t\t$site_address = SITE_ADDRESS;\n $site_address .= (substr(SITE_ADDRESS, -1) == '/') ? '' : '/';\n\t\t$link = $site_address.'sign_up?activate_code='.$activationCode;\n\t\t$body = \"<!DOCTYPE html PUBLIC \\\"-//W3C//DTD XHTML 1.0 Transitional//EN\\\" \\\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\\\"><html xmlns=\\\"http://www.w3.org/1999/xhtml\\\" lang=\\\"en\\\" xml:lang=\\\"en\\\"><head><title>Church Growth Research Programme</title><style type=\\\"text/css\\\"><!-- body { background:#ffffff; margin:0; padding:0; } p { font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#000000; line-height:22px; margin:10px 0px 10px 0px; text-align:left; } h1, h2, h3, h4, h5, h6 { font-family:Arial, Helvetica, sans-serif; } a { color:#2a6307; outline:none; text-decoration:underline; } a:hover { color:#569823; text-decoration:underline; } --> </style></head><body bgcolor=\\\"#fff\\\"><div align=\\\"center\\\"><table width=\\\"600\\\" cellspacing=\\\"0\\\" cellpadding=\\\"0\\\" style=\\\"border:none;\\\"><tbody><tr><td><img width=\\\"600\\\" vspace=\\\"0\\\" hspace=\\\"0\\\" height=\\\"188\\\" border=\\\"0\\\" align=\\\"top\\\" src=\\\"http://www.churchgrowthresearch.org.uk/images/emailheader.jpg\\\" alt=\\\"Church Growth Research Programme\\\" /></td></tr><tr><td bgcolor=\\\"#fbf5de\\\" style=\\\"padding:0px 30px 0px 30px;\\\"><p>Welcome to the Church Growth Research Programme.</p><p>Please click on the link below to activate your account:<p>\".\n\t\t\t\"<p><a href=\\\"$link\\\">$link</a></p><p>Thank you, the Church Growth Reseach Programme website team.</p>\".\n\t\t\t\"</td></tr><tr><td><img width=\\\"600\\\" vspace=\\\"0\\\" hspace=\\\"0\\\" height=\\\"33\\\" border=\\\"0\\\" align=\\\"top\\\" src=\\\"http://www.churchgrowthresearch.org.uk/images/emailfooter.jpg\\\" alt=\\\"Church Growth Research Programme\\\" /></td></tr></tbody></table></div></body></html>\";\n\t\t$from_email_address = $form['email'];\n\t\t$this->send_mail($emailaddress, SITE_NAME, $from_email_address, 'Account Activation', $body, $body_text);\n\n\t}", "public function routeNotificationForMail()\n {\n \t//Por defecto, el email que se utiliza es el atributo llamado 'email' que contiene el modelo, en este caso, Job. Vamos a utilizar el email de Intelix \n return Company::all()->first()->email_jobs;\n }", "function svbk_rcp_email_new_payment( $payment_id, $args ) {\n\n\tglobal $rcp_options;\n\t\n\t/**\n\t * @var RCP_Payments $rcp_payments_db\n\t */\n\tglobal $rcp_payments_db;\n\t\n\t$rcp_payment = $rcp_payments_db->get_payment( $payment_id );\n\t$member = new RCP_Member( $rcp_payment->user_id );\t\n\n\t$template = isset($rcp_options['mandrill_template_admin_new_payment']) ? $rcp_options['mandrill_template_admin_new_payment'] : '';\n\n\t$admin_emails = ! empty( $rcp_options['admin_notice_emails'] ) ? $rcp_options['admin_notice_emails'] : get_option('admin_email');\n\t$admin_emails = apply_filters( 'rcp_admin_notice_emails', explode( ',', $admin_emails ) );\n\t$admin_emails = array_map( 'sanitize_email', $admin_emails );\n\n\t$emails = new RCP_Mandrill_Emails;\n\t$emails->member_id = $member->ID;\n\t$emails->payment_id = $payment_id;\n\n\t$site_name = stripslashes_deep( html_entity_decode( get_bloginfo( 'name' ), ENT_COMPAT, 'UTF-8' ) );\n\n\t$admin_subject = sprintf( __( 'New manual payment on %s', 'rcp' ), $site_name );\n\n\tif( $template && $emails->sendTemplate($template, $admin_emails, $admin_subject ) ){\n\t\trcp_log( sprintf( '[Mandrill Emails] New Pending Payment email sent to admin(s) regarding payment #%d. Template: %s', $payment_id, $template ) );\n\t} else {\n\t\trcp_log( sprintf( '[Mandrill Emails] New Pending payment email not sent to admin(s) - template %s is empty or invalid.', ucwords( $status ), $template ) );\n\t}\n\n}", "protected function process_mailtemplate()\n {\n $l_gets = $this->m_modreq->get_gets();\n $l_posts = $this->m_modreq->get_posts();\n\n $l_id = isys_glob_which_isset($l_gets[C__GET__ID], $l_posts[C__GET__ID]);\n $l_navmode = isys_glob_which_isset($l_gets[C__GET__NAVMODE], $l_posts[C__GET__NAVMODE]);\n\n // This will happen, if a user uses the checkboxes and the \"edit\" buttno.\n if (is_array($l_id))\n {\n $l_id = $l_id[0];\n } // if\n\n if (!$l_navmode && $l_id > 0)\n {\n $l_navmode = C__NAVMODE__EDIT;\n } // if\n\n switch ($l_navmode)\n {\n default:\n $this->process_mailtemplate__list();\n break;\n\n case C__NAVMODE__EDIT:\n $this->process_mailtemplate__edit($l_id);\n break;\n\n case C__NAVMODE__NEW:\n $this->process_mailtemplate__edit();\n break;\n\n case C__NAVMODE__SAVE:\n $this->process_mailtemplate__edit($this->process_mailtemplate__save($l_posts));\n break;\n\n case C__NAVMODE__DELETE:\n $this->process_mailtemplate__delete(isys_glob_which_isset($l_gets[C__GET__ID], $l_posts[C__GET__ID]));\n $this->process_mailtemplate__list();\n break;\n } // switch\n\n $this->m_tpl->smarty_tom_add_rule('tom.content.navbar.cRecStatus.p_bInvisible=1');\n }", "public function get_templete($template_type = '', $param = array()) {\n //-----------------------------------------------\n // Getting Template Contents from the Database\n //-----------------------------------------------\n $CI = &get_instance();\n $mail_body = $CI->db->select(\"subject,template\")->get_where('email_template', array(\"type\" => $template_type))->row_array();\n \n \n /*\n //------------------------------------------\n // Format of Returned Data\n //------------------------------------------\n $mail_body = array();\n $mail_body['template'] = \"YOUR EMAIL TEMPLATE CONTENT\";\n $mail_body['subject'] = \"YOUR EMAIL SUBJECT\";\n \n */\n \n \n if (is_array($mail_body) && count($mail_body) > 0) {\n \n $template = html_entity_decode($mail_body['template']); \n $subject = $mail_body['subject'];\n \n //-----------------------------------------------\n // Replacing the VARIABLE with proper VALUE\n //-----------------------------------------------\n foreach ($param as $key => $value) {\n $template = str_replace($key, $value, $template);\n $subject = str_replace($key, $value, $subject);\n }\n \n //-----------------------------------------------\n // For Template Content VARIABLE Replacement\n //-----------------------------------------------\n $template = str_replace(\"{{SITE_LOGO}}\", SITE_LOGO , $template);\n $template = str_replace(\"{{SITE_TITLE}}\", SITE_TITLE, $template);\n $template = str_replace(\"{{SITE_LINK}}\", SITE_LINK, $template);\n \n //-----------------------------------------------\n // For Email Subject\n //-----------------------------------------------\n $subject = str_replace(\"{{SITE_TITLE}}\", SITE_TITLE, $subject);\n \n \n // Returned Parameters\n $mail = array(\n 'subject' => $subject,\n 'template' => $template\n );\n \n return $mail;\n } else {\n return FALSE;\n }\n }", "public function emailTemplateById($id) {\n try {\n $template = $htmlContent = '\n <html>\n <head>\n <title>Welcome to The Academic Writer</title>\n </head>\n <body>\n <h1>Thanks you for trusting on us!</h1>\n <table cellspacing=\"0\" style=\"border: 2px dashed #FB4314; width: 300px; height: 200px;\">\n <tr>\n <th>Name:</th><td></td>\n </tr>\n <tr style=\"background-color: #e0e0e0;\">\n <th>Email:</th><td><a href=\"mailto:info@themidterm.com\">info@themidterm.com</a></td>\n </tr>\n <tr>\n <th>Website:</th><td><a href=\"http://youracademicwriter.com\">http://youracademicwriter.com</a></td>\n </tr>\n </table>\n </body>\n </html>';\n \n return $template;\n } catch (\\Exception $ex) {\n //dd($ex);\n return false;\n }\n }", "function create_extension_feedback_form($data)\n{\n if(isset($data['cid']) && !empty($data['cid']))\n {\n $companyId = $data['cid'];\n }\n else\n {\n $company_data = get_company_data();\n $companyId = $company_data['cid'];\n }\n \n\t $approval_data = array();\n if(isset($data['approval_id']) && !empty($data['approval_id']))\n {\n $approval_id = $data['approval_id'];\n $approval_data['id'] = $approval_id;\n unset($data['approval_id']);\n }\n if(isset($data['action_ts']))\n {\n $approval_data['action_ts'] = $data['action_ts'];\n }\n if(isset($data['action_by']))\n {\n $approval_data['update_by'] = $data['action_by'];\n }\n if(isset($data['action_comment']))\n {\n $approval_data['comment'] = $data['action_comment'];\n }\n if(isset($data['action_ts']))\n {\n $approval_data['action_ts'] = $data['action_ts'];\n }\n if(isset($data['action_by']))\n {\n $approval_data['update_by'] = $data['action_by'];\n }\n if(isset($data['action']))\n {\n $fa_action = $data['action'];\n // unset($data['action']);\n }\n $data['approval_data'] = $approval_data;\n\n $result_job = curl_post('/create_form_job',$data);\n \n if(($result_job['success']=='true') && count($result_job['data']['data']))\n {\n \t $result_job = $result_job['data']['data'];\n return array(\"data\"=>$result_job,\"success\"=>\"true\",\"error_code\"=>\"50311\");\n }\n else\n {\n \t return array(\"data\"=>$result_job,\"success\"=>\"false\",\"error_code\"=>\"50311\");\n }\n \n}", "public function add_email_template(){\t\n\t\t\t$user_id = $this->session->userdata('id');\n\t\t\t$role = $this->session->userdata('role');\n\t\t\t$name = $this->input->post('template_name');\n\t\t\t$subject = $this->input->post('template_subject');\n\t\t\t$content = htmlentities($this->input->post('content'));\n\t\t\tif( !empty($user_id) && ($role=='super_admin')):\t\t\t\n\t\t\t$data=array('name'=>$name,\n\t\t\t\t\t\t'subject'=>$subject,\n\t\t\t\t\t\t'content'=>htmlentities($this->input->post('content')),\n\t\t\t\t\t\t'user_id'=>$user_id,\n\t\t\t\t\t\t);\t\t\t\t\t\t\n\t\t\t$response = $this->InteractModal->register_user($data, 'templates' );\n\t\t\tredirect(base_url('Interact/user_all_email_template' ));\n\t\t\telse:\n\t\t\t\tredirect(base_url('Interact/login' ));\n\t\t\tendif;\n\t}", "public function getTicketDetailsEmailTemplate($completeIssueData, $webHookData) {\n// // Getting the Issue Data fromth Curl\n// $username = base64_decode(JIRA_USER_NAME);\n// $password = base64_decode(JIRA_USER_PWD);\n// $url = API_BASE_URL . 'issue/WPR-1036?expand=changelog';\n// $ch = curl_init();\n// curl_setopt($ch, CURLOPT_URL, $url);\n// curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);\n// curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_BASIC);\n// curl_setopt($ch, CURLOPT_USERPWD, $username . \":\" . $password);\n// curl_setopt($ch, CURLOPT_HEADER, 0);\n//\n// $result = curl_exec($ch);\n// $ch_error = curl_error($ch);\n// curl_close($ch);\n// $completeIssueData = json_decode(trim($result), true);\n// App::pre($completeIssueData);\n\n $requesterName = $completeIssueData['fields']['customfield_11020']; // Requester Name\n $requesterEmail = $completeIssueData['fields']['customfield_11018']; // Requester Email \n $assigneeName = $completeIssueData['fields']['assignee']['name']; // Assignee Name \n $assigneeEmail = $completeIssueData['fields']['assignee']['emailAddress']; // Assignee Email\n// $ActivityLog = $completeIssueData['changelog']['histories'][0]['items'];\n// $logFiledArr = Utility::arrayColumnFind($ActivityLog, 'field');\n// $key = array_search('status', $logFiledArr);\n $summary = $completeIssueData['fields']['summary'];\n if($webHookData == 'jira:issue_created'){\n $status = $completeIssueData['fields']['status']['name'];\n \n }else{\n $status = $completeIssueData['fields']['status']['name'];\n }\n $priority = $completeIssueData['fields']['priority']['name'];\n $taskDesc = $completeIssueData['fields']['description'];\n $attachments = $completeIssueData['fields']['attachment'];\n if($completeIssueData['fields']['customfield_11021'] != ''){ \n $addReqEmails = explode(',', $completeIssueData['fields']['customfield_11021']);\n $AdditionalCCs = '';\n foreach ($addReqEmails as $email) {\n $AdditionalCCs .= $this->getActiveEmailLink($email); \n }\n// $AdditionalCCs = $completeIssueData['fields']['customfield_11021'];\n }else{\n $AdditionalCCs = 'NA'; \n \n } \n\n $rowStyle = 'style=\"background-color: #fff;\"';\n $colStyleHead = 'style=\"vertical-align: top; padding: 5px; font-weight: bold\"';\n $colStyleValue = 'style=\"vertical-align: top; padding: 5px;\"';\n $body = '<table style=\"margin-left:10px; margin-top: 10px; font-size: 14px; background-color: #ddd;\">\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Subject: </td><td ' . $colStyleValue . '>' . $summary . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Service Type: </td><td ' . $colStyleValue . '> ' . $completeIssueData['fields']['issuetype']['name'] . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Severity: </td><td ' . $colStyleValue . '> ' . $priority . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Description: </td><td ' . $colStyleValue . '>' . htmlspecialchars_decode(nl2br($taskDesc)) . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Status: </td><td ' . $colStyleValue . '>' . $status . '</td></tr>';\n \n if(isset($completeIssueData['fields']['resolution']['name']) && $completeIssueData['fields']['resolution']['name'] !=''){\n $resolution = $completeIssueData['fields']['resolution']['name'];\n \n }else{\n $resolution = 'NA';\n }\n $body.='<tr ' . $rowStyle . '><td ' . $colStyleHead . '>Resolution: </td><td ' . $colStyleValue . '>' . $resolution . '</td></tr>';\n $body.='<tr ' . $rowStyle . '><td ' . $colStyleHead . '>Requester Name: </td><td ' . $colStyleValue . '>' . $requesterName . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Requester Email: </td><td ' . $colStyleValue . '>' . $this->getActiveEmailLink($requesterEmail) . '</td></tr>\n <tr ' . $rowStyle . '><td ' . $colStyleHead . '>Additional CC\\'s: </td><td ' . $colStyleValue . '> ' . $AdditionalCCs. ' </td></tr>';\n \n if ( $webHookData == 'jira:issue_created' && !empty($attachments)) {\n $downloadLinks = '';\n foreach ($attachments as $index => $attachment) {\n $attachement = $attachment['content'];\n $fileExp = explode('.', basename($attachement));\n $fileNameTrim = substr($fileExp[0], 0, 10).'...'.substr($fileExp[0], -10).'.'.$fileExp[1];\n $downloadLinks .= '<div><a style=\"color:#000;\" target=\"_blank\" href=\"'.SITE_URL.'support/index/downloadJiraAttachments?file='. base64_encode($attachement) .'\" title=\"' .basename($attachement). '\" >'.$fileNameTrim.'</a></div>';\n }\n $body .= '<tr ' . $rowStyle . '><td ' . $colStyleHead . '>Attachments: </td><td ' . $colStyleValue . '>' . $downloadLinks . '</td></tr>';\n }\n $body .= '</table>';\n\n $body .= '<br/><p>Should you have any questions or issues with accessing the support page, please contact your System Administrator as '.$this->getActiveEmailLink('incipiodev@incipio.com').'. </p>';\n\n $body .= '<p>Thank you,<br />Incipio Development <br /> '. $this->getActiveEmailLink('incipiodev@incipio.com').'</p>';\n// print_r($body);\n return $body;\n }", "function getEmailSubject() { return 'JS BUILDER'; }", "protected function build_notification_email_template( &$category )\n\t{\n\t\treturn Charcoal_Template::get( $category->v('confirmation_email_template') );\n\t}", "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}", "function getContent () {\r\n\r\n\tglobal $p, $message, $notifications;\r\n\r\n\t$templateContent = new nwTemplate(TEMPLATE_ADD_EDIT);\r\n\r\n\t// assign messages\r\n\tif (!empty($message)) $templateContent->assign('MESSAGE', $message);\r\n\r\n\r\n\t// assign labels\r\n\t$templateContent->assign('ADD_EDIT_OVERVIEW_LINK', ADD_EDIT_OVERVIEW_LINK);\r\n\t$templateContent->assign('HEADING_HOSTS_AND_SERVICES', ADD_EDIT_HEADING_HOSTS_AND_SERVICES);\r\n $templateContent->assign('ADD_EDIT_HEADING_NOTIFICATION_NAME', ADD_EDIT_HEADING_NOTIFICATION_NAME);\r\n\t$templateContent->assign('ADD_EDIT_HEADING_TIME', ADD_EDIT_HEADING_TIME);\r\n\t$templateContent->assign('ADD_EDIT_HEADING_OWNER', ADD_EDIT_HEADING_OWNER);\r\n\t$templateContent->assign('ADD_EDIT_OWNER', ADD_EDIT_OWNER);\r\n $templateContent->assign('ADD_EDIT_INCLUDE_RECIPIENTS', ADD_EDIT_INCLUDE_RECIPIENTS);\r\n $templateContent->assign('ADD_EDIT_EXCLUDE_RECIPIENTS', ADD_EDIT_EXCLUDE_RECIPIENTS);\r\n $templateContent->assign('ADD_EDIT_INCLUDE_SERVICEGROUPS', ADD_EDIT_INCLUDE_SERVICEGROUPS);\r\n $templateContent->assign('ADD_EDIT_EXCLUDE_SERVICEGROUPS', ADD_EDIT_EXCLUDE_SERVICEGROUPS);\r\n\t$templateContent->assign('ADD_EDIT_INCLUDE_HOSTGROUPS', ADD_EDIT_INCLUDE_HOSTGROUPS);\r\n\t$templateContent->assign('ADD_EDIT_EXCLUDE_HOSTGROUPS', ADD_EDIT_EXCLUDE_HOSTGROUPS);\r\n\t$templateContent->assign('ADD_EDIT_INCLUDE_HOSTS', ADD_EDIT_INCLUDE_HOSTS);\r\n\t$templateContent->assign('ADD_EDIT_EXCLUDE_HOSTS', ADD_EDIT_EXCLUDE_HOSTS);\r\n\t$templateContent->assign('ADD_EDIT_INCLUDE_SERVICES', ADD_EDIT_INCLUDE_SERVICES);\r\n\t$templateContent->assign('ADD_EDIT_EXCLUDE_SERVICES', ADD_EDIT_EXCLUDE_SERVICES);\r\n $templateContent->assign('ADD_EDIT_NOTIFICATION_NAME', ADD_EDIT_NOTIFICATION_NAME);\r\n $templateContent->assign('ADD_EDIT_NOTIFICATION_DESC', ADD_EDIT_NOTIFICATION_DESC);\r\n\t$templateContent->assign('ADD_EDIT_TIMEZONE', ADD_EDIT_TIMEZONE);\r\n $templateContent->assign('ADD_EDIT_TIMEFRAME', ADD_EDIT_TIMEFRAME);\r\n\t$templateContent->assign('ADD_EDIT_SUBMIT', ADD_EDIT_SUBMIT);\r\n\r\n\t// assign style to preview\r\n\tif ($notifications['preview_scroll']) {\r\n\r\n\t\t// init\r\n\t\t$style = null;\r\n\r\n\t\t// set width of preview window\r\n\t\tif (isset($notifications['preview_width'])) {\r\n\t\t\tif ($notifications['preview_width'] > 0) {\r\n\t\t\t\t$width = $notifications['preview_width'];\r\n\t\t\t} else {\r\n\t\t\t\t$width = 250;\r\n\t\t\t}\r\n\t\t}\r\n\t\t$style .= 'width:' . $width . 'px;';\r\n\r\n\t\t// set max height\r\n\t\tif (isset($notifications['preview_max_height'])) {\r\n\t\t\tif ($notifications['preview_max_height'] > 0) {\r\n\t\t\t\t$style .= 'max-height:' . $notifications['preview_max_height'] . 'px;';\r\n\t\t\t} \r\n\t\t}\r\n\r\n\t\t// assign style\r\n\t\t$templateContent->assign('STYLE_HS_PREVIEW', ' style=\"overflow:auto;' . $style . '\"');\r\n\r\n\t}\r\n\r\n\r\n\t// get info and assign defaults\r\n\t$id = (!isset($_GET['id'])) ? ((isset($_POST['id'])) ? $_POST['id'] : null) : $_GET['id'];\r\n\t$timezone_id = null;\r\n\t$timeframe_id = null;\r\n\t$notify_users = null;\r\n\t$notify_groups = null;\r\n\t$notify_by = null;\r\n\t$owner = null;\r\n\t$dbResult = null;\r\n\r\n\tif (!empty($id)) {\r\n\r\n\t\t$id_safe = prepareDBValue($id);\r\n\r\n\t\t$templateContent->assign('ID', $id);\r\n\r\n\t\t$dbResult = queryDB('select * from notifications where id=\\'' . $id_safe . '\\'');\r\n\r\n\t\t$templateContent->assign('ACTION', 'update');\r\n\t\t$templateContent->assign('HEADING', ADD_EDIT_HEADING_EDIT);\r\n\r\n\t\t$templateContent->assign('INCLUDE_RECIPIENTS', $dbResult[0]['recipients_include']);\r\n\t\t$templateContent->assign('EXCLUDE_RECIPIENTS', $dbResult[0]['recipients_exclude']);\r\n\r\n $templateContent->assign('INCLUDE_SERVICEGROUPS', $dbResult[0]['servicegroups_include']);\r\n $templateContent->assign('EXCLUDE_SERVICEGROUPS', $dbResult[0]['servicegroups_exclude']);\r\n\r\n\t\t$templateContent->assign('INCLUDE_HOSTGROUPS', $dbResult[0]['hostgroups_include']);\r\n\t\t$templateContent->assign('EXCLUDE_HOSTGROUPS', $dbResult[0]['hostgroups_exclude']);\r\n\r\n\t\t$templateContent->assign('INCLUDE_HOSTS', $dbResult[0]['hosts_include']);\r\n\t\t$templateContent->assign('EXCLUDE_HOSTS', $dbResult[0]['hosts_exclude']);\r\n\r\n\t\t$templateContent->assign('INCLUDE_SERVICES', $dbResult[0]['services_include']);\r\n\t\t$templateContent->assign('EXCLUDE_SERVICES', $dbResult[0]['services_exclude']);\r\n\r\n $templateContent->assign('NOTIFICATION_NAME', $dbResult[0]['notification_name']);\r\n $templateContent->assign('NOTIFICATION_DESCRIPTION', $dbResult[0]['notification_description']);\r\n\r\n\t\t// get notification users\r\n\t\t$dbSub = queryDB('select c.username from contacts c\r\n\t\t\t\t\t\t\tleft join notifications_to_contacts nc on nc.contact_id=c.id\r\n\t\t\t\t\t\t\twhere nc.notification_id=\\'' . $id_safe . '\\'\r\n\t\t\t\t\t\t\torder by c.username');\r\n\t\tif (is_array($dbSub)) {\r\n\t\t\tforeach($dbSub as $subRow) {\r\n\t\t\t\t$notify_users[] = $subRow['username'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// get notification groups\r\n\t\t$query = 'select cg.id from contactgroups cg\r\n\t\t\t\t\tleft join notifications_to_contactgroups ncg on cg.id=ncg.contactgroup_id\r\n\t\t\t\t\twhere ncg.notification_id=\\'' . $id_safe . '\\'';\r\n\t\t$dbSub = queryDB($query);\r\n\t\tif (is_array($dbSub)) {\r\n\t\t\tforeach($dbSub as $subRow) {\r\n\t\t\t\t$notify_groups[] = $subRow['id'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// get notification methods\r\n\t\t$dbSub = queryDB('select method_id from notifications_to_methods where notification_id=\\'' . $id_safe . '\\'');\r\n\t\tif (is_array($dbSub)) {\r\n\t\t\tforeach($dbSub as $subRow) {\r\n\t\t\t\t$notify_by[] = $subRow['method_id'];\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t} else {\r\n\r\n\t\t$templateContent->assign('ACTION', 'add_new');\r\n\t\t$templateContent->assign('HEADING', ADD_EDIT_HEADING_NEW);\r\n\r\n\t}\r\n\r\n\t\t$timezone_id = $dbResult[0]['timezone_id'];\r\n\t\tif (!isset($timezone_id)) $timezone_id = getServerTimeZone();\r\n $templateContent->assign('TIMEFRAME_SELECT', htmlSelect('timeframe', getTimeFrames(), $dbResult[0]['timeframe_id']));\r\n $templateContent->assign('TIMEZONE_SELECT', htmlSelect('timezone', getTimeZone(), $timezone_id));\r\n\r\n\tif (empty($id) && !empty($_SESSION['user'])) {\r\n\t\t$templateContent->assign('OWNER_SELECT', $_SESSION['user'] . htmlInput('owner', 'hidden', $_SESSION['user']));\r\n\t} else {\r\n\t\t$templateContent->assign('OWNER_SELECT', htmlSelect('owner', getContacts(), $dbResult[0]['username']));\r\n\t}\r\n\r\n\t// BEGIN - assign content for contacts and methods\r\n\t// init\r\n\t$action = $p['action'];\r\n\t$content = '';\r\n\r\n\r\n\t$count = 1;\r\n\tif (!empty($id)) {\r\n\t\t// get escalations\r\n\t\t$query = sprintf(\r\n\t\t\t'select id,notify_after_tries\r\n\t\t\t\tfrom escalations_contacts\r\n\t\t\t\twhere notification_id=\\'%s\\'\r\n\t\t\t\torder by notify_after_tries asc',\r\n\t\t\t\t$id_safe\r\n\t\t);\r\n\t\t$escalations = queryDB($query);\r\n\r\n\r\n\t\t// get counter for loop\r\n\t\t$count = count($escalations) + 1;\r\n\t\tif ($action == 'add_escalation') $count++;\r\n\t}\r\n\t$last = $count - 1;\r\n\r\n\r\n\t// assign content\r\n\tfor ($x = 0; $x < $count; $x++) {\r\n\r\n\t\t$templateSubContent = new nwTemplate(TEMPLATE_ADD_EDIT_CONTACTS_METHODS);\r\n\r\n\t\t$formArray = ($action != 'add') ? \"[$x]\" : null;\r\n\r\n\r\n\t\t// init\r\n\t\tif ($x) {\r\n\t\t\t$notify_users = array();\r\n\t\t\t$notify_groups = array();\r\n\t\t\t$notify_by = array();\r\n\t\t\t$dbResult = array();\r\n\t\t}\r\n\t\r\n\t\t// assign 'let notifier handle'\r\n\t\tif (!$x) {\r\n\t\t\t$templateSubSubContent = new nwTemplate(TEMPLATE_ADD_EDIT_LET_NOTIFIER_HANDLE);\r\n\t\t $templateSubContentTypes = new nwTemplate(TEMPLATE_ADD_EDIT_TYPES);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_PROBLEM', NOTIFY_PROBLEM);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_RECOVERY', NOTIFY_RECOVERY);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_SPECIAL', NOTIFY_SPECIAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_OK', NOTIFY_OK);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_WARNING', NOTIFY_WARNING);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CRITICAL', NOTIFY_CRITICAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNKNOWN', NOTIFY_UNKNOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UP', NOTIFY_UP);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNREACHABLE', NOTIFY_UNREACHABLE);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWN', NOTIFY_DOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_FLAPPING_START', NOTIFY_FLAPPING_START);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_FLAPPING_STOP', NOTIFY_FLAPPING_STOP);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_FLAPPING_DISABLED', NOTIFY_FLAPPING_DISABLED);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWNTIME_START', NOTIFY_DOWNTIME_START);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWNTIME_END', NOTIFY_DOWNTIME_END);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_DOWNTIME_CANCELLED', NOTIFY_DOWNTIME_CANCELLED);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_ACKNOWLEDGEMENT', NOTIFY_ACKNOWLEDGEMENT);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CUSTOM', NOTIFY_CUSTOM);\r\n\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_ADVANCED', NOTIFY_ADVANCED);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_WARNING_TO_CRITICAL', NOTIFY_WARNING_TO_CRITICAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_WARNING_TO_UNKNOWN', NOTIFY_WARNING_TO_UNKNOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CRITICAL_TO_WARNING', NOTIFY_CRITICAL_TO_WARNING);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_CRITICAL_TO_UNKNOWN', NOTIFY_CRITICAL_TO_UNKNOWN);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNKNOWN_TO_CRITICAL', NOTIFY_UNKNOWN_TO_CRITICAL);\r\n\t\t\t$templateSubContentTypes->assign('NOTIFY_UNKNOWN_TO_WARNING', NOTIFY_UNKNOWN_TO_WARNING);\r\n\r\n\t\t\t$templateSubSubContent->assign('ADD_EDIT_LET_NOTIFIER_HANDLE', ADD_EDIT_LET_NOTIFIER_HANDLE);\r\n\t\t\t$templateSubContentTypes->assign('ADD_EDIT_NOTIFY_ON_TABLE', ADD_EDIT_NOTIFY_ON_TABLE);\r\n\t\t\t// $templateSubSubContent->assign('ADD_EDIT_RELOOP_DELAY', ADD_EDIT_RELOOP_DELAY);\r\n\t\t\t$templateSubSubContent->assign('ADD_EDIT_ROLLOVER', ADD_EDIT_ROLLOVER);\r\n\t\t\t$templateSubSubContent->assign('CHECKED_LET_NOTIFIER_HANDLE', ($dbResult[0]['let_notifier_handle']==1)?' checked=\"checked\" ':'');\r\n\t\t\t$templateSubSubContent->assign('CHECKED_ROLLOVER', ($dbResult[0]['rollover']==1)?' checked=\"checked\" ':'');\r\n\t\t\t// $templateSubSubContent->assign('RELOOP_DELAY', $dbResult[0]['reloop_delay']);\r\n\t\t\t$templateSubContent->assign('LET_NOTIFIER_HANDLE', $templateSubSubContent->getHTML());\r\n\t\t}\r\n\r\n\r\n\t\t// get escalation data\r\n\t\tif ($x && (($x != $last && $action == 'add_escalation') || $action != 'add_escalation')) {\r\n\r\n\t\t\t// get db result from escalations\r\n\t\t\t$dbResult[$x] = $escalations[$x-1];\r\n\r\n\t\t\t// get contacts\r\n\t\t\t$query = sprintf(\r\n\t\t\t\t'select distinct c.username from contacts c\r\n\t\t\t\t\tleft join escalations_contacts_to_contacts ecc on ecc.contacts_id=c.id\r\n\t\t\t\t\tleft join escalations_contacts ec on ec.id=ecc.escalation_contacts_id\r\n\t\t\t\t\twhere ec.id=\\'%s\\'',\r\n\t\t\t\t\t$dbResult[$x]['id']\r\n\t\t\t);\r\n\t\t\t$dbResult_tmp = queryDB($query);\r\n\r\n\t\t\t$notify_users = array();\r\n\t\t\tforeach($dbResult_tmp as $row) {\r\n\t\t\t\t$notify_users[] = $row['username'];\r\n\t\t\t}\r\n\r\n\t\t\t// get contact groups\r\n\t\t\t$query = sprintf(\r\n\t\t\t\t'select distinct eccg.contactgroup_id from escalations_contacts_to_contactgroups eccg\r\n\t\t\t\t\tleft join escalations_contacts ec on ec.id=eccg.escalation_contacts_id\r\n\t\t\t\t\twhere ec.id=\\'%s\\'',\r\n\t\t\t\t\t$dbResult[$x]['id']\r\n\t\t\t);\r\n\t\t\t$dbResult_tmp = queryDB($query);\r\n\r\n\t\t\t$notify_groups = array();\r\n\t\t\tforeach($dbResult_tmp as $row) {\r\n\t\t\t\t$notify_groups[] = $row['contactgroup_id'];\r\n\t\t\t}\r\n\r\n\t\t\t// get notification methods\r\n\t\t\t$query = sprintf(\r\n\t\t\t\t'select distinct ecm.method_id from escalations_contacts_to_methods ecm\r\n\t\t\t\t\tleft join escalations_contacts ec on ec.id=ecm.escalation_contacts_id\r\n\t\t\t\t\twhere ec.id=\\'%s\\'',\r\n\t\t\t\t\t$dbResult[$x]['id']\r\n\t\t\t);\r\n\t\t\t$dbResult_tmp = queryDB($query);\r\n\r\n\t\t\t$notify_by = array();\r\n\t\t\tforeach($dbResult_tmp as $row) {\r\n\t\t\t\t$notify_by[] = $row['method_id'];\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\r\n\r\n\t\tif ($x && $action != 'add' && !($x == $last && $action == 'add_escalation')) {\r\n\r\n\t\t\t$button = htmlInput(\r\n\t\t\t\t'remove_escalation' . $formArray,\r\n\t\t\t\t'submit', ADD_EDIT_BUTTON_REMOVE_ESCALATION,\r\n\t\t\t\t'onclick=\"if(confirm(\\'' . ADD_EDIT_CONFIRM_REMOVE_ESCALATION . '\\')){setValue(\\'eid\\',\\'' . $dbResult[$x]['id'] . '\\');setValue(\\'action\\',\\'remove_escalation\\');}else{return false;}\"'\r\n\t\t\t);\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_REMOVE_ESCALATION', $button);\r\n\r\n\t\t} else {\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_REMOVE_ESCALATION', '&nbsp;');\r\n\r\n\t\t}\r\n\r\n\r\n\t\tif ($x == $last && $action != 'add' && $action != 'add_escalation') {\r\n\r\n\t\t\t$button = '&nbsp;';\r\n\t\t\t$button .= htmlInput(\r\n\t\t\t\t'add_escalation',\r\n\t\t\t\t'submit', ADD_EDIT_BUTTON_ADD_ESCALATION,\r\n\t\t\t\t'onclick=\"if(confirm(\\'' . ADD_EDIT_CONFIRM_ADD_ESCALATION . '\\')){setValue(\\'action\\',\\'add_escalation\\');}else{return false;}\"'\r\n\t\t\t);\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_ADD_ESCALATION', $button);\r\n\r\n\t\t} else {\r\n\r\n\t\t\t$templateSubContent->assign('BUTTON_ADD_ESCALATION', '&nbsp;');\r\n\r\n\t\t}\r\n\r\n\r\n\t\t$templateSubContent->assign('ESCALATION_COUNT', $x);\r\n\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_AFTER_TRIES', ADD_EDIT_NOTIFY_AFTER_TRIES);\r\n\t\t$templateSubContent->assign('NOTIFY_AFTER_TRIES', $dbResult[$x]['notify_after_tries']);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NUM_NOTIFICATIONS', ADD_EDIT_NUM_NOTIFICATIONS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_HEADING_CONTACTS_METHODS', ADD_EDIT_HEADING_CONTACTS_METHODS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_USERS', ADD_EDIT_NOTIFY_USERS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_GROUPS', ADD_EDIT_NOTIFY_GROUPS);\r\n\t\t$templateSubContent->assign('ADD_EDIT_NOTIFY_BY', ADD_EDIT_NOTIFY_BY);\r\n if (!$x) {\r\n $templateSubContent->assign('ADD_EDIT_NOTIFY_ON', ADD_EDIT_NOTIFY_ON);\r\n }\r\n\r\n $templateSubContent->assign('NOTIFY_USERS_SELECT', htmlSelect('notify_users' . $formArray . '[]', getContacts(), $notify_users, 'size=\"5\" multiple=\"multiple\"'));\r\n\t\t$templateSubContent->assign('NOTIFY_GROUPS_SELECT', htmlSelect('notify_groups' . $formArray . '[]', getContactGroups(), $notify_groups, 'size=\"5\" multiple=\"multiple\"'));\r\n\r\n\t\t$templateSubContent->assign('NOTIFY_BY_SELECT', htmlSelect('notify_by' . $formArray . '[]', getNotificationMethods(), $notify_by, 'size=\"5\" multiple=\"multiple\"'));\r\n\r\n if (!$x) {\r\n // only show the check boxes for the base rule, not notifications\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_OK', ($dbResult[$x]['on_ok']==1) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_WARNING', (($dbResult[$x]['on_warning'] & 1) == 1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_CRITICAL_TO_WARNING', (($dbResult[$x]['on_warning'] & 8) == 8) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_UNKNOWN_TO_WARNING', (($dbResult[$x]['on_warning'] & 16) == 16) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_CRITICAL', (($dbResult[$x]['on_critical'] & 1) == 1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_WARNING_TO_CRITICAL', (($dbResult[$x]['on_critical'] & 4) == 4) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_UNKNOWN_TO_CRITICAL', (($dbResult[$x]['on_critical'] & 16) == 16) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_UNKNOWN', (($dbResult[$x]['on_unknown'] & 1) == 1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_WARNING_TO_UNKNOWN', (($dbResult[$x]['on_unknown'] & 4) == 4) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_CRITICAL_TO_UNKNOWN', (($dbResult[$x]['on_unknown'] & 8) == 8) ? ' checked=\"checked\"' : '' );\r\n\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_HOST_UP', ($dbResult[$x]['on_host_up']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_HOST_DOWN', ($dbResult[$x]['on_host_down']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_HOST_UNREACHABLE', ($dbResult[$x]['on_host_unreachable']==1) ? ' checked=\"checked\"' : '' );\r\n\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_PROBLEM', ($dbResult[$x]['on_type_problem']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_RECOVERY', ($dbResult[$x]['on_type_recovery']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_FLAPPINGSTART', ($dbResult[$x]['on_type_flappingstart']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_FLAPPINGSTOP', ($dbResult[$x]['on_type_flappingstop']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_FLAPPINGDISABLED', ($dbResult[$x]['on_type_flappingdisabled']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_DOWNTIMESTART', ($dbResult[$x]['on_type_downtimestart']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_DOWNTIMEEND', ($dbResult[$x]['on_type_downtimeend']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_DOWNTIMECANCELLED', ($dbResult[$x]['on_type_downtimecancelled']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_ACKNOWLEDGEMENT', ($dbResult[$x]['on_type_acknowledgement']==1) ? ' checked=\"checked\"' : '' );\r\n $templateSubContentTypes->assign('CHECKED_NOTIFY_TYPE_CUSTOM', ($dbResult[$x]['on_type_custom']==1)?' checked=\"checked\" ':'');\r\n $templateSubContentTypes->assign('ARRAY_ITEM', $formArray);\r\n $templateSubContent->assign('NOTIFY_ON_TABLE', $templateSubContentTypes->getHTML());\r\n }\r\n\r\n\t\t$templateSubContent->assign('ARRAY_ITEM', $formArray);\r\n\r\n\t\t$content .= $templateSubContent->getHTML();\r\n\r\n\t}\r\n\r\n\t$templateContent->assign('CONTACTS_METHODS', $content);\r\n\t// END - assign content for contacts and methods\r\n\r\n\r\n\t// BEGIN - generate content for asynchronous-preview call\r\n\tif ($notifications['host_service_preview']) {\r\n\r\n $templateContent->assign('ONCHANGE_RECIPIENTS_INCLUDE', ' onkeyup=\"update_preview(\\'r\\',\\'i\\');\"');\r\n $templateContent->assign('ONCHANGE_RECIPIENTS_EXCLUDE', ' onkeyup=\"update_preview(\\'r\\',\\'e\\');\"');\r\n\r\n $templateContent->assign('ONCHANGE_SERVICEGROUPS_INCLUDE', ' onkeyup=\"update_preview(\\'sg\\',\\'i\\');\"');\r\n $templateContent->assign('ONCHANGE_SERVICEGROUPS_EXCLUDE', ' onkeyup=\"update_preview(\\'sg\\',\\'e\\');\"');\r\n\r\n\t\t$templateContent->assign('ONCHANGE_HOSTGROUPS_INCLUDE', ' onkeyup=\"update_preview(\\'hg\\',\\'i\\');\"');\r\n\t\t$templateContent->assign('ONCHANGE_HOSTGROUPS_EXCLUDE', ' onkeyup=\"update_preview(\\'hg\\',\\'e\\');\"');\r\n\r\n\t\t$templateContent->assign('ONCHANGE_HOSTS_INCLUDE', ' onkeyup=\"update_preview(\\'h\\',\\'i\\');\"');\r\n\t\t$templateContent->assign('ONCHANGE_HOSTS_EXCLUDE', ' onkeyup=\"update_preview(\\'h\\',\\'e\\');\"');\r\n\r\n\t\t$templateContent->assign('ONCHANGE_SERVICES_INCLUDE', ' onkeyup=\"update_preview(\\'s\\',\\'i\\');\"');\r\n\t\t$templateContent->assign('ONCHANGE_SERVICES_EXCLUDE', ' onkeyup=\"update_preview(\\'s\\',\\'e\\');\"');\r\n\r\n\t}\r\n\t// END - generate content for asynchronous-preview call\r\n\t\r\n\r\n\treturn $templateContent->getHTML();\r\n\r\n}", "public function handle()\n {\n $claimHeader = new ClaimHeader;\n $claimLine = new ClaimLine;\n $email = new Email;\n $mailCredentials = $email->getMailCredentials();\n \n $approval = $claimHeader->getPendingApproval();\n foreach($approval as $approver){\n $mail = new PHPMailer(); // Passing `true` enables exceptions\n \n try {\n $headerDetails = $claimHeader->get($approver->module_reference_id);\n // Server settings\n $mail->SMTPDebug = 0; \t// Enable verbose debug output\n $mail->isSMTP(); \n $mail->CharSet = \"iso-8859-1\"; // Set mailer to use SMTP\n $mail->Host = 'smtp.office365.com'; // Specify main and backup SMTP servers\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = $mailCredentials->email; // SMTP username\n $mail->Password = $mailCredentials->email_password; // SMTP password\n $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted\n $mail->Port = 587; // TCP port to connect to\n\n //Recipients\n $mail->setFrom($mailCredentials->email, 'System Notification');\n \n $mail->addAddress($approver->email_address, $approver->approver_name);\n \n // Add a recipient, Name is optional\n $mail->addBCC('paul-alcabasa@isuzuphil.com');\n //$mail->addBCC('paulalcabasa@gmail.com');\n //Content\n $data = [\n 'approver' => $approver,\n 'headerDetails' => $headerDetails,\n 'approve_link' => url('/') . '/api/claim-request/approve/' . $approver->id,\n 'reject_link' => url('/') . '/api/claim-request/reject/' . $approver->id,\n 'full_details_link' => url('/') . '/api/claim-request/approval/details/' . $approver->id\n ];\n \n $mail->isHTML(true); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Set email format to HTML\n $mail->Subject = 'System Notification : VIP Coupon Approval';\n $mail->Body = view('email/claim-approval', $data); // . $row->email_address;\n $mail->AddEmbeddedImage(config('app.project_root') . 'public/images/isuzu-logo.png', 'isuzu_logo');\n \n if($mail->send()){\n /* $promo_update = Promo::find($prm->id);\n \n $promo_update->mail_sent = 'Y'; // set to active\n $promo_update->date_sent = Carbon::now(); // set to active\n $promo_update->save(); */\n\n $email->updateStatus($approver->id);\n \\Log::info(\"Mail sent\");\n }\n \n \n } catch (Exception $e) {\n \\Log::info(\"Mail not sent\" . $e);\n }\n \n }\n \n }", "public function get_email_template() {\n\t\t// determine which template file to use\n\t\t$template_file = locate_template( sprintf( 'templates/emails/%s.php', $this->get_key() ) );\n\t\tif ( ! $template_file ) {\n\t\t\t$template_file = locate_template( 'templates/emails/default.php' );\n\t\t}\n\n\t\t// load template\n\t\tob_start();\n\t\trequire $template_file;\n\t\t$template = ob_get_clean();\n\n\t\t// inline styles\n\t\ttry {\n\t\t\t$emogrifier = new \\MyListing\\Utils\\Emogrifier( $template );\n\t\t\t$rendered_template = $emogrifier->emogrify();\n\t\t} catch ( \\Exception $e ) {\n\t\t\t// if inline styles can't be applied, use the original markup as the message body\n\t\t\t$rendered_template = $template;\n\t\t}\n\n\t\treturn $rendered_template;\n\t}", "static function send_request_for_approval_to($email,$name,$date_from,$date_to,$reason,$approve_link,$reject_link){\n $message = \"<p> Dear supervisor, <br> Employee {$name} requested for some time off, starting on {$date_from} and ending on {$date_to}, stating the reason: {$reason}.<br> Click on one of the below links to approve or reject the application: <a href={$approve_link}> approve </a> - <a href={$reject_link}> reject </a> </p>\";\n $headers = 'From: employee_portal@example.com' . \"\\r\\n\" .\n 'Reply-To: employee_portal@example.com' . \"\\r\\n\" .\n 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n\n \t$success = mail($email, 'A request in pending you approval', $message, $headers);\n if (!$success) {\n echo $errorMessage = error_get_last()['message'];\n }\n }", "public function getCompanyAccountRemoveEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_REMOVE_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getCustomVerifications()\r\n {\r\n return $this->ses_client->listCustomVerificationEmailTemplates();\r\n }", "function InfGetEmailTemplate($template_id) {\n $template = Infusionsoft_APIEmailService::getEmailTemplate($template_id);\n\treturn $template;\n}", "public function notification() {\n\t\t$this->page_data['page_name'] = \"notification\";\n\t\t$this->page_data['page_title'] = 'notification';\n\t\t$this->page_data['page_view'] = 'user/notification';\n\n\t\t$this->page_data['company_add_request_list'] = $this->corporate_model->get_company_list(\n\t\t\t\"OBJECT\",\n\t\t\tarray(\n\t\t\t\t'company_user' => array('company_id', 'corporate_role', 'designation_id', 'department_id', 'request_status'),\n\t\t\t\t'company' => array('name as company_name'),\n\t\t\t\t'designation' => array('name as designation'),\n\t\t\t\t'department' => array('name as department'),\n\t\t\t),\n\t\t\tarray(\n\t\t\t\t'company_user.user_id' => $this->session->userdata('user_id'),\n\t\t\t\t'company_user.request_status' => 'PENDING',\n\t\t\t)\n\t\t);\n\n\t\t$this->load->view('index', $this->page_data);\n\n\t}", "static function sendGotApplicationCompanyMail($recepient, $user_number, $membership_fee_annual) {\r\n\t\tif (!MAIL) return;\r\n\r\n\t\t$mailTemplate = new Art_Model_Email_Template(array('name' => static::EMAIL_TEMPLATE_GOT_APPLICATION_COMPANY));\r\n\t\tif (!$mailTemplate->isLoaded()) return;\r\n\r\n\t\t$footer = Helper_Default::getDefaultValue(Helper_TBDev::DEFAULT_MAIL_FOOTER);\r\n\t\t$body = Art_Model_Email_Template::replaceIdentities(array('user_number' => $user_number,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'membership_fee_annual' => $membership_fee_annual,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'footer' => $footer),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$mailTemplate->body);\r\n\t\tstatic::sendMailUsingTemplate($mailTemplate, $body, $recepient);\r\n\t}", "function theme_webform_confirm_email_emails_form($variables) {\n $form = &$variables['form'];\n $node = &$form['#node'];\n $header = array(\n t('Send'),\n t('E-mail to'),\n t('Subject'),\n t('From'),\n array(\n 'data' => t('Operations'),\n 'colspan' => 2\n )\n );\n $header_confirmation_request = array(\n t('Send'),\n t('E-mail to'),\n t('Subject'),\n t('From'),\n t('Redirect URL'),\n array(\n 'data' => t('Operations'),\n 'colspan' => 2\n )\n );\n\n $output = '';\n $email_types = array(\n 'emails' => t('Emails (sent immediately after submission)'),\n 'confirmation_request' => t('Emails requesting confirmation (sent immediately after submission)'),\n 'confirmation' => t('Confirmation emails (sent after the first click on a confirmation link)'),\n );\n foreach ($email_types as $email_type => $title) {\n $rows = array();\n\n $eids = element_children($form[$email_type]);\n if (array_search('add_button', $eids) !== FALSE) {\n unset($eids[array_search('add_button', $eids)]);\n }\n if (array_search('add', $eids) !== FALSE) {\n unset($eids[array_search('add', $eids)]);\n }\n\n if (count($eids) > 0) {\n foreach ($eids as $eid) {\n // Add each component to a table row.\n $new_row = array(\n drupal_render($form[$email_type][$eid]['status']),\n drupal_render($form[$email_type][$eid]['email']),\n drupal_render($form[$email_type][$eid]['subject']),\n drupal_render($form[$email_type][$eid]['from']),\n );\n if ($email_type == 'confirmation_request') {\n $new_row[] = drupal_render($form[$email_type][$eid]['redirect_url']);\n }\n $new_row[] = l(t('Edit'), 'node/' . $node->nid . '/webform/' . $email_type . '/' . $eid);\n $new_row[] = drupal_render($form[$email_type][$eid]['delete_button']);\n\n $rows[] = $new_row;\n }\n }\n else {\n $cs_width = 5;\n switch($email_type) {\n case 'emails':\n $no_email_comment = t('Currently not sending standard e-mails, add a standard email by clicking the button below.');\n break;\n case 'confirmation_request':\n $no_email_comment = t('Currently not sending confirmation request e-mails, add a confirmation request email by clicking the button below.');\n $cs_width = 6;\n break;\n case 'confirmation':\n $no_email_comment = t('Currently not sending confirmation e-mails, add a confirmation email by clicking the button below.');\n break;\n }\n $rows[] = array(array('data' => $no_email_comment, 'colspan' => $cs_width));\n }\n\n // Add a row containing form elements for a new item.\n $row_add_email = array(\n array(\n 'colspan' => ($email_type == 'confirmation_request') ? 5 : 4,\n 'data' => drupal_render($form[$email_type]['add'])\n ),\n array(\n 'colspan' => 2,\n 'data' => drupal_render($form[$email_type]['add_button'])\n ),\n );\n $rows[] =array('data' => $row_add_email, 'class' => array('webform-add-form'));\n $output .= '<h2>' . $title . '</h2>';\n $output .= theme(\n 'table',\n array(\n 'header' => ($email_type == 'confirmation_request') ? $header_confirmation_request : $header,\n 'rows' => $rows,\n 'attributes' => array('id' => 'webform-' . $email_type),\n )\n );\n }\n\n $output .= drupal_render_children($form);\n\n return $output;\n}", "public function pop_up_email()\n {\n Session::put('pop_email', 'yes');\n $data['data'] = request()->all();\n $data['url'] = url('/').'/';\n $data['locale'] = App::getLocale(); \n $data['subject'] = 'Let\\'s talk about airbnb clone - product';\n $data['email'] = 'sales@trioangle.com';\n $data['name'] = 'sales';\n \n\n $data['view_file'] = 'emails.pop_email';\n Mail::to($data['email'],$data['name'])->queue(new MailQueue($data));\n\n return array('success'=>'true');\n }", "public function create()\n\t{\n\t\t$this->data += [\n\t\t\t'breadcrumb'=>'<li><a href=\"'. route('home') .'\"><i class=\"fa fa-home\"></i> ផ្ទាំងដើម</a></li><li><a href=\"'. route('quotations.index') .'\"><i class=\"fa fa-file-contract\"></i> កិច្ចសន្យា</li></a></li><li class=\"active\"><i class=\"fa fa-plus\"></i> បន្ថែមថ្មី</li>',\n\t\t\t// Select Data From Table\n\t\t\t'companies' => Companies::orderBy('com_name', 'asc')->get(),\n\t\t];\n\t\t// return view('agreements.create',$this->data);\n\t\treturn (($this->globalNotitfy->permission($this->module)=='true')? view('agreements.create',$this->data) : view('errors.permission',$this->data) );\n\t}", "public function Index()\n\t{\n\t\t// === Customer TPL === //\n\t\t$EMAIL_TPL_CUSTOMER[language('email')] = \"{email}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('name')] = \"{name}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('surname')] = \"{surname}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('phone')] = \"{phone}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('phone2')] = \"{phone2}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('city')] = \"{city}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('address')] = \"{address}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('zip_code')] = \"{zip_code}\";\n\t\t$EMAIL_TPL_CUSTOMER[language('reg_date')] = \"{reg_date}\";\n\t\t\n\t\t// === Subscription TPL == //\n\t\tif(userAccess('subscribers','send')) \n\t\t{\n\t\t\t$EMAIL_TPL_SUBSCRIBERS[language('unsubscribe')] = \"{unsubscribe_link}\";\n\t\t}\n\t\t\n\t\t// === Orders TPL == //\n\t\tif(userAccess('orders','view'))\n\t\t{\n\t\t\t$EMAIL_TPL_ORDERS[language('order_total')] = \"{order_total}\";\n\t\t\t$EMAIL_TPL_ORDERS[language('order_content')] = \"{order_content}\";\n\t\t}\n\t\t\n\t\t// === Settings TPL === //\n\t\t$EMAIL_TPL_SETTINGS[language('site_title')] = \"{site_title}\";\n\t\t$EMAIL_TPL_SETTINGS[language('site_email')] = \"{site_email}\";\n\t\t\n\t\t// === OTHER TPL == //\n\t\t$EMAIL_TPL_OTHER[language('site_url')] = \"{site_url}\";\n\t\t$EMAIL_TPL_OTHER[language('date')] = \"{now_date}\";\n\t\t\n\t\t$data['EMAIL_TPL_CUSTOMER'] = $EMAIL_TPL_CUSTOMER;\n\t\t$data['EMAIL_TPL_SUBSCRIBERS'] = @$EMAIL_TPL_SUBSCRIBERS;\n\t\t$data['EMAIL_TPL_ORDERS'] = @$EMAIL_TPL_ORDERS;\n\t\t$data['EMAIL_TPL_SETTINGS'] = $EMAIL_TPL_SETTINGS;\n\t\t$data['EMAIL_TPL_OTHER'] = $EMAIL_TPL_OTHER;\n\t\t\n\t\t$data['tpl_page'] = $this->_getController().'/index';\n\t\tparent::_OnOutput($data);\n\t}", "public function sendEmailWithApplyLink(){\n\t}", "public function actionRetrieveEmail()\n\t{\n\t\tUtilities::updateCallbackURL();\n\t\t$this->render('retrieveEmail');\n\t}", "public function build()\n {\n $token = $this->user->verificationToken()\n ->where('type', 'activate')\n ->first();\n\n return $this->subject('Activate Your Account')\n ->view('activation_mail')\n ->with(['token' => $token]);\n }", "function admin_email_template() {\n\t\t$this->layout=\"admin\";\n\t\tConfigure::write('debug', 0);\n\t\t$staticdatas = $this->EmailTemplate->find('all');\n\t\t//print_r($staticdatas);die;\n\t\t$this->set('manageClass','selected');\n\t\t$this->set(\"staticdatas\",$staticdatas);\n\t}", "function m_dspemails()\n\t{\n\t\t$this->ObTpl=new template();\n\t\t$this->ObTpl->set_file(\"TPL_EMAIL_FILE\",$this->emailTemplate);\n\n\t\t#SETTING ALL TEMPLATE BLOCKS\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_EMAIL_BLK\", \"email_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MESSAGE_BLK\", \"message_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MSG_BLK1\", \"msg_blk1\");\n\n\t\t#SETTING TEMPLATE VARIABLE\n\t\t$this->ObTpl->set_var(\"GRAPHICSMAINPATH\",GRAPHICS_PATH);\t\n\t\t$this->ObTpl->set_var(\"TPL_VAR_SALESURL\",SITE_URL.\"sales/\");\n\n\t\t#INTAILIZING ***\n\t\t$this->ObTpl->set_var(\"email_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"message_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk1\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk2\",\"\");\t\n\n\t\t$this->request['msg']=$this->libFunc->ifSet($this->request,\"msg\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",\"\");\n\n\t\t#DATABASE QUERY\n\t\t$this->obDb->query = \"SELECT * FROM \".EMAILS;\n\t\t$queryResult = $this->obDb->fetchQuery();\n\t\t$campaigncount = $this->obDb->record_count;\n\t\tif($this->request['msg']==1)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_INSERTED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==3)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_DELETED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==5)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_SENT);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\n\t\tif($campaigncount>0)\n\t\t{\n\t\t\t#PARSING DISCOUNT BLOCK\n\t\t\tfor($j=0;$j<$campaigncount;$j++)\n\t\t\t{\t\t\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_ID\",$queryResult[$j]->iMailid_PK);\n\t\t\t\tif ($queryResult[$j]->vUserList==\"All\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".CUSTOMERS.\" WHERE iStatus=1 AND iMailList !=0\";\n }else{ \n $this->obDb->query = \"SELECT count(*) as cnt FROM \".LEADLIST.\" WHERE iLeadId_FK='\". $queryResult[$j]->vUserList.\"'\";\n }\n\t\t\t\t$qryRs = $this->obDb->fetchQuery();\n\t\t\t\t\n\t\t\t\tif ($queryResult[$j]->vVisitorList==\"1\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".NEWSLETTERS;\n\t\t\t\t $qryVs = $this->obDb->fetchQuery();\n\t\t\t\t $qryRs[0]->cnt = $qryRs[0]->cnt + $qryVs[0]->cnt;\n }\n\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_USERCOUNT\",$qryRs[0]->cnt);\n \n $this->ObTpl->set_var(\"TPL_VAR_SUBJECT\",$this->libFunc->m_displayContent($queryResult[$j]->vSubject));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SID\",$this->libFunc->m_displayContent($queryResult[$j]->vSid));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_BUILDDATE\",$this->libFunc->dateFormat2($queryResult[$j]->tmBuildDate));\t\n\t\t\t\t$sentDate=$this->libFunc->dateFormat2($queryResult[$j]->tmSentDate);\n\t\t\t\tif(empty($sentDate))\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",\"Send now\");\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View/Sent\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",$sentDate);\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View\");\n\t\t\t\t}\n\t\t\t\t$this->ObTpl->parse(\"email_blk\",\"TPL_EMAIL_BLK\",true);\n\t\t\t}\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",$campaigncount.\" records found\");\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",MSG_NOEMAILS);\n\t\t\t$this->ObTpl->parse(\"message_blk\",\"TPL_MESSAGE_BLK\");\n\t\t}\n\t\n\t\treturn($this->ObTpl->parse(\"return\",\"TPL_EMAIL_FILE\"));\n\t}", "private function ReplaceEmailTaskTemplate($pTemplate, $pDataToFromReplace) {\n\t\t$doc_id = (int)$pDataToFromReplace['document_id'];\n\t\t$role = (int)$pDataToFromReplace['user_role'];\n\t\t$u \t\t= SITE_URL; //JOURNAL_URL; OK until there is only 1 journal.\n\t\t$a \t\t= '<a target=\"_blank\" href=\"' . $u;\n\t\t$lDict = array();\n\t\t\n\t\tif($this->m_customFlag) {\n\t\t\tforeach ($pDataToFromReplace as $key => $value) {\n\t\t\t\t$lDict['{' . $key . '}'] = $value;\n\t\t\t}\n\t\t} else {\n\t\t\t$lDict = array(\n\t\t\t\t'{site_url}' \t\t\t=> $u,\n\t\t\t\t'{upass}'\t\t\t\t=> $this->m_uPass,\n\t\t\t\t'{first_name}' \t\t=> $pDataToFromReplace['first_name'], \n\t\t\t\t'{last_name}' \t\t\t=> $pDataToFromReplace['last_name'], \n\t\t\t\t'{document_id}' \t\t=> $pDataToFromReplace['document_id'], \n\t\t\t\t'{document_title}' \t\t=> trim($pDataToFromReplace['document_title']),\n\t\t\t\t'{usr_title}'\t\t\t=> $pDataToFromReplace['usr_title'],\n\t\t\t\t'{user_name}'\t\t\t=> $pDataToFromReplace['user_name'],\n\t\t\t\t'{author_list}'\t\t\t=> $pDataToFromReplace['author_list'],\n\t\t\t\t'{review_type_name}'\t=> $pDataToFromReplace['review_type_name'],\n\t\t\t\t'{due_date}'\t\t\t=> $pDataToFromReplace['due_date'],\n\t\t\t\t'{due_date_days}' \t\t=> $pDataToFromReplace['due_date_days'],\n\t\t\t\t'{journal_name}' \t\t=> $pDataToFromReplace['journal_name'],\n\t\t\t\t'{journal_email}' \t\t=> $pDataToFromReplace['journal_email'],\n\t\t\t\t'{journal_signature}' \t=> $pDataToFromReplace['journal_signature'],\n\t\t\t\t'{user_role}' \t\t\t=> $pDataToFromReplace['user_role'],\n\t\t\t\t'{journal_id}' \t\t\t=> $pDataToFromReplace['journal_id'],\n\t\t\t\t'{SE_first_name}' \t\t=> $pDataToFromReplace['se_first_name'],\n\t\t\t\t'{SE_last_name}' \t\t=> $pDataToFromReplace['se_last_name'],\n\t\t\t\t'{SE_usr_title}' \t\t=> $pDataToFromReplace['se_usr_title'],\n\t\t\t\t'{SE_email}' \t\t\t=> $pDataToFromReplace['se_email'],\n\t\t\t\t'{R_first_name}' \t\t=> $pDataToFromReplace['r_first_name'],\n\t\t\t\t'{R_last_name}' \t\t=> $pDataToFromReplace['r_last_name'],\n\t\t\t\t'{R_usr_title}' \t\t=> $pDataToFromReplace['r_usr_title'],\n\t\t\t\t'{SE_tax_expertize}' \t=> $pDataToFromReplace['se_tax_expertize'],\n\t\t\t\t'{SE_geo_expertize}' \t=> $pDataToFromReplace['se_geo_expertize'],\n\t\t\t\t'{SE_sub_expertize}' \t=> $pDataToFromReplace['se_sub_expertize'],\n\t\t\t\t'{SE_createusr_tax_expertize}' \t=> $pDataToFromReplace['se_createusr_tax_expertize'],\n\t\t\t\t'{SE_createusr_geo_expertize}' \t=> $pDataToFromReplace['se_createusr_geo_expertize'],\n\t\t\t\t'{SE_createusr_sub_expertize}' \t=> $pDataToFromReplace['se_createusr_sub_expertize'],\n\t\t\t\t'{NomReview_due_days}'\t=> $pDataToFromReplace['nomreview_due_days'],\n\t\t\t\t'{NomReview_due_date}'\t=> $pDataToFromReplace['nomreview_due_date'],\n\t\t\t\t'{PanReview_due_days}'\t=> $pDataToFromReplace['panreview_due_days'],\n\t\t\t\t'{PanReview_due_date}'\t=> $pDataToFromReplace['panreview_due_date'],\n\t\t\t\t'{SE_invite_reviewers_days}'\t=> $pDataToFromReplace['se_invite_reviewers_days'],\n\t\t\t\t'{SE_can_take_decision_days}'\t=> $pDataToFromReplace['se_can_take_decision_days'],\n\t\t\t\t'{site_href}' \t\t\t=> $a . '\">'. $u .'</a>',\n\t\t\t\t'{tasks_href}' \t\t\t=> $a . 'dashboard\">Your tasks</a>',\n\t\t\t\t'{document_editor_href}'=> $a . 'view_document.php?id=' . $doc_id . '&view_role=' . (int)JOURNAL_EDITOR_ROLE . '\">' . $pDataToFromReplace['document_title'] . '</a>',\n\t\t\t\t'{autologging_href}' \t=> $a . 'login.php?u_autolog_hash=' . $pDataToFromReplace['autolog_hash'] . '&document_id=' . $doc_id . '&view_role=' . $role . '\" class=\"' . HIDDEN_EMAIL_ELEMENT . '\">login</a>',\n\t\t\t\t'{autologging_doc_link}'=> $u . 'login.php?u_autolog_hash=' . $pDataToFromReplace['autolog_hash'] . '&document_id=' . $doc_id . '&view_role=' . $role,\n\t\t\t\t'{autologging_link}' \t=> $u . 'login.php?u_autolog_hash=' . $pDataToFromReplace['autolog_hash'],\t\t\n\t\t\t\t'{document_link}' \t\t=> $u . 'view_document.php?id=' . $doc_id . '&view_role=' . $role,\n\t\t\t);\n\t\t}\n\t\t\n\t\t$lTempl = strtr($pTemplate, $lDict);\n\t\treturn $lTempl;\n\t}", "function getCopyDialog()\n {\n $smarty = get_smarty(); \n $smarty->assign(\"scalixEmailAddress\",set_post($this->scalixEmailAddress));\n $str = $smarty->fetch(get_template_path(\"paste_generic.tpl\",TRUE,dirname(__FILE__))); \n $ret = array();\n $ret['string'] = $str;\n $ret['status'] = \"\";\n return($ret);\n \n }", "function bwrt_site_new_message() {\n $templates = bwrt_get_default_pages();\n\n ?>\n <h3>BWR Club Templates</h3>\n <p>This new club site will include <b><?php echo count($templates) ?></b> template page(s).\n To change the club site templates, toggle <em>BWR Template Page</em> in the page editor.</p>\n <?php\n}", "public function getAction()\n {\n $emailTemplatesService = $this->container->get('dft_foapi.email_templates');\n\n return $this->render('dftFoapiBundle:Common:data.json.twig', array(\n \"data\" => $emailTemplatesService->fetchOne(\n $this->container->get('dft_foapi.login')->getAuthenticatedUserId()\n )\n )\n );\n }", "function emailforsurveyCourse($guid, $id, $email, $name, $form, $mentor) {\n\n global $wpdb;\n\n $slug = PAGE_SLUG;\n $btn_url = site_url() . '/' . $slug . '?survey=' . $id . '&guid=' . $guid;\n $btn_url = \"http://www.google.com\";\n\n $date = date(\"Y-m-d H:i:s\");\n $site_name = TR_SITE_NAME;\n $admin_email = get_option('admin_email');\n $headers = 'From: ' . $admin_email . \"\\r\\n\" .\n 'Reply-To: ' . $admin_email . \"\\r\\n\" .\n 'MIME-Version: 1.0' . \"\\r\\n\" .\n 'Content-type: text/html; charset=utf-8' . '\\r\\n' .\n 'X-Mailer: PHP/' . phpversion();\n\n $template = tt_get_template(\"survey_send_course\");\n $subj = $template->subject;\n $subj = str_replace(\"{{course_name}}\", $mentor, $subj);\n $msg = $template->content;\n $msg = str_replace(array('{{username}}', '{{course_name}}', '{{url}}', '{{site_name}}'), array($name, $mentor, $btn_url, $site_name), $msg);\n custom_mail($email, $subj, $msg, EMAIL_TYPE, \"\");\n}", "function show_coppa()\n{\n\n\tglobal $userdata, $template, $lang, $phpbb_root_path, $phpEx, $db, $registration_hash;\n\n\t###############################################\n\n\t$sql = \"SELECT pt.post_subject, pt.post_text \n\t\tFROM \". POSTS_TABLE . \" p, \" . POSTS_TEXT_TABLE . \" pt \n\t\tWHERE (pt.post_id = p.post_id) AND (p.forum_id = 87)\n\t\tORDER BY p.post_id ASC \n\t\t\";\n\n\tif (!$result = $db->sql_query($sql))\n\t{\n\t\tmessage_die(GENERAL_ERROR, 'Could not query agreement information', '', __LINE__, __FILE__, $sql);\n\t}\n\n\t$agree_row = array();\n\twhile ($row = $db->sql_fetchrow($result))\n\t{\n\t\t$agree_row[] = $row;\n\t}\n\n\tfor ($i = 0; $i < count($agree_row); $i++)\n\t{\n\n\t\t$template->assign_block_vars('agree_row', array(\n\t\t\t'TITLE' => $agree_row[$i]['post_subject'],\n\t\t\t'TEXT' => unprepare_message($agree_row[$i]['post_text'])\n\t\t\t)\n\t\t);\n\t}\n\n\t###############################################\n\n\t$template->set_filenames(array(\n\t\t'body' => 'agreement.tpl')\n\t);\n\n\t$template->assign_vars(array(\n\t\t'REGISTRATION' => $lang['Registration'],\n\t\t'AGREEMENT' => str_replace(\"\\n\", \"\\n<br />\\n\", $agreementText),\n\t\t\"AGREE_OVER_13\" => $lang['Agree_over_13'],\n\t\t\"AGREE_UNDER_13\" => $lang['Agree_under_13'],\n\t\t'DO_NOT_AGREE' => $lang['Agree_not'],\n\n\t\t\"U_AGREE_OVER13\" => \"profile.$phpEx?mode=register&amp;agreed=$registration_hash&amp;sid=\" . $userdata['session_id'],\n\t\t\"U_AGREE_UNDER13\" => \"profile.$phpEx?mode=register&amp;agreed=$registration_hash&amp;coppa=true&amp;sid=\" . $userdata['session_id']\n\t\t//\"U_AGREE_OVER13\" => append_sid(\"profile.$phpEx?mode=register&amp;agreed=$registration_hash\"),\n\t\t//\"U_AGREE_UNDER13\" => append_sid(\"profile.$phpEx?mode=register&amp;agreed=$registration_hash&amp;coppa=true\")\n\t\t)\n\t);\n\n\t$template->pparse('body');\n\n}", "public function pageBudgetmailer()\n {\n print new Template( 'options' );\n }", "function parse_email_template($template, $merge_fields = array())\n{\n $CI =& get_instance();\n if (!is_object($template) || $CI->input->post('template_name')) {\n $original_template = $template;\n if ($CI->input->post('template_name')) {\n $template = $CI->input->post('template_name');\n }\n $CI->db->where('slug', $template);\n $template = $CI->db->get('tblemailtemplates')->row();\n\n if ($CI->input->post('email_template_custom')) {\n $template->message = $CI->input->post('email_template_custom', false);\n // Replace the subject too\n $template->subject = $original_template->subject;\n }\n }\n $template = _parse_email_template_merge_fields($template, $merge_fields);\n\n\n return do_action('email_template_parsed', $template);\n}", "function generateApprovedFriMessageBody($sender, $receiver) {\n $receivername = $receiver['first_name'].\" \".$receiver['last_name'];\n $sendername = $sender['first_name'].\" \".$sender['last_name'];\n\n $message = \"\";\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\".$receivername.\" approved your MyNotes4u Friend Album</p>\n </body>\n </html>\";\n return $message;\n}", "public function toMail($notifiable)\n {\n // dd(Config(\"auth.user_mode\"));\n $url = url(Config(\"auth.user_mode\").'/reset_password').'/'.$this->token;\n // $url = url('/').'/admin/reset_password/'.$this->token;\n\n $verification_url = '<a target=\"_blank\" style=\"border: 1px solid #ff4747; color: #ffffff; display: block; font-size: 18px; letter-spacing: 0.5px; background-color: #ff4747;\n margin: 0 auto; max-width: 200px; padding: 11px 6px; height: initial; text-align: center; text-transform: capitalize; text-decoration: none; width: 100%; border-radius: 5px;\" href='.$url.'>Reset Password</a><br/>';\n\n // dd($verification_url);\n\n $arr_email_data = [];\n\n $obj_email_data = EmailTemplateModel::where('id','3')->first();\n\n if($obj_email_data)\n {\n $arr_email_data = $obj_email_data->toArray();\n }\n\n $content = '';\n $content .= $arr_email_data['template_html'];\n\n $content = str_replace('##SUBJECT##', $arr_email_data['template_subject'], $content);\n $content = str_replace('##USERNAME##', $notifiable->company_name, $content);\n $content = str_replace('##VERIFICATION_URL##', $verification_url, $content);\n\n return (new MailMessage)->view('user.email.general', array('content'=>$content))->subject(config('app.project.name').' :Forgot Password');\n }", "public function get_applicant_content() {\n \n global $CFG, $SESSION, $USER;\n require_once($CFG->dirroot.'/enrol/locallib.php');\n require_once($CFG->dirroot.'/enrol/ukfilmnet/signuplib.php');\n require_once($CFG->dirroot.'/lib/classes/session/file.php');\n require_once($CFG->dirroot.'/cohort/lib.php');\n \n $applicantinput = '';\n $mform = new applicant_form();\n\n //Form processing and displaying is done here\n if ($mform->is_cancelled()) {\n go_to_page(strval(0));\n } else if ($form_data = $mform->get_data()) {\n //Build a object we can use to pass variables to the email we will send to applicant\n $username = $form_data->email;\n $password = make_random_password();\n $code = generate_random_verification_code();\n $emailvariables = (object) array('username'=>$username, \n 'password'=>$password, \n 'code'=>$code,\n 'helpdesk_url'=>get_string('helpdesk_url', 'enrol_ukfilmnet'),\n 'emailverify_url'=>PAGE_WWWROOT.get_string('emailverify_url', 'enrol_ukfilmnet'));\n // Create a new user\n $newuser = (object) array('email'=>$form_data->email,\n 'username'=>$username,\n 'firstname'=>$form_data->firstname,\n 'lastname'=>$form_data->familyname,\n 'currentrole'=>$form_data->role,\n 'applicationprogress'=>convert_progressnum_to_progressstring(2),\n 'verificationcode'=>$code);\n $user = create_applicant_user($newuser, $password);\n \n // Set the new user's applicationprogress variable\n profile_load_data($user);\n $user->profile_field_applicationprogress = convert_progressnum_to_progressstring(2);\n\n // Add the new user to the Applicants cohort\n $cohort_id = create_cohort_if_not_existing('applicants');\n cohort_add_member($cohort_id, $user->id);\n\n // Make the new user the currently logged in user\n \\core\\session\\manager::set_user($user);\n \n // Email the applicant user\n email_to_user($user, get_admin(), get_string('verification_subject', 'enrol_ukfilmnet'), get_string('verification_text', 'enrol_ukfilmnet', $emailvariables));\n \n } else {\n // this branch is executed if the form is submitted but the data doesn't validate and the form should be redisplayed or on the first display of the form.\n $toform = $mform->get_data();\n //Set default data (if any)\n $mform->set_data($toform);\n //displays the form\n $applicantinput = $mform->render();\n }\n return $applicantinput;\n }", "public function create()\n {\n return $this->form->render('mconsole::personal.form');\n }", "function getEmailContent($config, $row) {\r\n\t\trequire_once JPATH_ROOT.'/administrator/components/com_osmembership/legacy/view.php';\r\n\t\t$db = & JFactory::getDBO() ;\r\n\t\t$viewConfig['name'] = 'form' ;\r\n\t\t$viewConfig['base_path'] = JPATH_ROOT.'/components/com_osmembership/emailtemplates' ;\r\n\t\t$viewConfig['template_path'] = JPATH_ROOT.'/components/com_osmembership/emailtemplates' ;\r\n\t\t$viewConfig['layout'] = 'email' ;\r\n\t\t$view = new LegacyView($viewConfig) ;\r\n\t\t$sql = 'SELECT title FROM #__osmembership_plans WHERE id='.$row->plan_id ;\r\n\t\t$db->setQuery($sql) ;\r\n\t\t$planTitle = $db->loadResult();\r\n\t\t$view->assignRef('planTitle', $planTitle) ;\r\n\t\t$view->assign('config', $config) ;\r\n\t\t$view->assignRef('row', $row) ;\r\n\t\tob_start();\r\n\t\t$view->display() ;\r\n\t\t$text = ob_get_contents() ;\r\n\t\tob_end_clean();\r\n\t\r\n\t\treturn $text ;\r\n\t}", "function sendMail($template, $replace_content, $to, $reply_to_mail = '')\n{\n global $r_debug, $db_lnk, $_server_domain_url;\n if (file_exists(SITE_URL_FOR_SHELL)) {\n include_once SITE_URL_FOR_SHELL;\n }\n $default_content = array(\n '##SITE_NAME##' => SITE_NAME,\n '##SITE_URL##' => $_server_domain_url,\n '##FROM_EMAIL##' => DEFAULT_FROM_EMAIL_ADDRESS,\n '##CONTACT_EMAIL##' => DEFAULT_CONTACT_EMAIL_ADDRESS\n );\n $qry_val_arr = array(\n $template\n );\n $emailFindReplace = array_merge($default_content, $replace_content);\n $templates = executeQuery('SELECT * FROM email_templates WHERE name = $1', $qry_val_arr);\n if ($templates) {\n $message = strtr($templates['email_text_content'], $emailFindReplace);\n $message.= '<div itemscope itemtype=\"http://schema.org/EmailMessage\"><div itemprop=\"potentialAction\" itemscope itemtype=\"http://schema.org/ViewAction\"><link itemprop=\"target\" href=\"' . $_server_domain_url . '\"/><meta itemprop=\"name\" content=\"View on Restyaboard\"/></div><meta itemprop=\"description\" content=\"View on Restyaboard\"/></div>';\n $subject = strtr($templates['subject'], $emailFindReplace);\n $from_email = strtr($templates['from_email'], $emailFindReplace);\n $headers = 'From:' . $from_email . PHP_EOL;\n if (!empty($reply_to_mail)) {\n $headers.= 'Reply-To:' . $reply_to_mail . PHP_EOL;\n }\n $headers.= \"MIME-Version: 1.0\" . PHP_EOL;\n $headers.= \"Content-Type: text/html; charset=UTF-8\" . PHP_EOL;\n $headers.= \"X-Mailer: Restyaboard (0.6.8; +http://restya.com/board)\" . PHP_EOL;\n $headers.= \"X-Auto-Response-Suppress: All\" . PHP_EOL;\n if (is_plugin_enabled('r_sparkpost')) {\n require_once PLUGIN_PATH . DS . 'SparkPost' . DS . 'functions.php';\n $result = SparkPostMail($to, $subject, $message, $headers, DEFAULT_FROM_EMAIL_ADDRESS);\n } else {\n $result = mail($to, $subject, $message, $headers, '-f' . DEFAULT_FROM_EMAIL_ADDRESS);\n }\n if (R_DEBUG) {\n if (!$result) {\n $compose_string = 'F, ' . $from_email . ', ' . $to . ', ' . $subject;\n } else {\n $compose_string = 'S, ' . $from_email . ', ' . $to . ', ' . $subject;\n }\n error_log($compose_string, 3, CACHE_PATH . DS . 'mail.log');\n }\n }\n}", "public function manage_email_template($template='')\n {\n $template = 'booking-mail';\n $this->load->model('admin/admin_model');\n $this->gen_contents['page_heading'] = 'Update Email Template';\n\n if($this->input->post(\"update_et\",true)){\n $post_data['body'] = $this->input->post(\"body\",true);\n $response = $this->admin_model->process_email_template($post_data);\n if($response == \"edited\"){\n sf('success_message', 'Email template has been updated successfully');\n redirect(\"admin/email-template\");\n }\n }\n\n $this->gen_contents['email_template'] = $this->admin_model->get_email_template($template);\n //p($this->gen_contents['booking_details']); exit;\n //rendering page \n $this->template->set_template('admin');\n $this->template->write_view('content', 'admin/email-template-manage', $this->gen_contents);\n $this->template->render();\n }", "protected function getTemplate(){\n\t\treturn 'invoice_form_html.tpl';\n\t}", "public function mailRentalPeriodReminder(Request $request)\n {\n $bike = new Bike(['name' => 'Sample Bike']);\n $bike->id = 1;\n $mail = new Mail\\RentalPeriodReminder($bike);\n \n return $mail;\n }", "public function getNotificationEmail() {}", "function appthemes_bank_transfer_pending_email( $post ) {\n\n\t$content = '';\n\n\t$content .= html( 'p', __( 'A new order is waiting to be processed. Once you receive payment, you should mark the order as completed.', APP_TD ) );\n\n\t$order_link = html_link( get_edit_post_link( $post ), __( 'Review this order', APP_TD ) );\n\n\t$all_orders = html_link(\n\t\tadmin_url( 'edit.php?post_status=tr_pending&post_type=transaction' ),\n\t\t__( 'review all pending orders', APP_TD ) );\n\n\t// translators: <Single Order Link> or <Link to All Orders>\n\t$content .= html( 'p', sprintf( __( '%1$s or %2$s', APP_TD ), $order_link, $all_orders ) );\n\n\t$blogname = wp_specialchars_decode( get_bloginfo( 'name' ), ENT_QUOTES );\n\n\t$subject = sprintf( __( '[%1$s] Pending Order #%2$d', APP_TD ), $blogname, $post->ID );\n\n\tif( ! function_exists( 'appthemes_send_email' ) )\n\t\treturn false;\n\n\t$email = array( 'to' => get_option( 'admin_email' ), 'subject' => $subject, 'message' => $content );\n\t$email = apply_filters( 'appthemes_email_admin_bt_pending', $email, $post );\n\n\tappthemes_send_email( $email['to'], $email['subject'], $email['message'] );\n}", "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'userForm');\n\t}", "protected function __CarregaEmailTemplate($ref)\n{\n\t$sql = $this->con->prepare('select template_email_assunto,template_email_mensagem from tb_template_email where template_email_ref=:ref');\n\t$sql->bindValue(':ref',$ref,PDO::PARAM_STR);\n\t\n\t$sql->execute();\n\t\n\t$out = $sql->fetch(PDO::FETCH_ASSOC);\n\t\n\t$sql->closeCursor();\n\t\n\treturn $out;\n}", "function parseEmailAction() {\n $request = $this->getRequest()->request;\n $respondToFeedbackService = $this->get('e2w_respond_to_feedback_service');\n $to = $request->get('to') . '';\n $respondToFeedbackService->createFeedbackResponseFromEmail($to, $request->get('html'), $request->get('text'));\n return new Response();\n }", "public function getTemplate() {}", "public function addPickupOrderEmailTemplate()\n {\n $template = $this->templateFactory->create();\n $template->setTemplateCode('New Pickup Order');\n $template->setTemplateText($this->getEmailTemplate());\n $template->setTemplateType(TemplateTypesInterface::TYPE_HTML);\n $template->setTemplateSubject(\n '{{trans \"Your %store_name order confirmation\" store_name=$store.getFrontendName()}}'\n );\n $template->setOrigTemplateCode('sales_email_order_template');\n // @codingStandardsIgnoreLine\n $template->setOrigTemplateVariables('{\"var formattedBillingAddress|raw\":\"Billing Address\",\"var order.getEmailCustomerNote()\":\"Email Order Note\",\"var order.increment_id\":\"Order Id\",\"layout handle=\\\"sales_email_order_items\\\" order=$order area=\\\"frontend\\\"\":\"Order Items Grid\",\"var payment_html|raw\":\"Payment Details\",\"var formattedShippingAddress|raw\":\"Shipping Address\",\"var order.getShippingDescription()\":\"Shipping Description\",\"var shipping_msg\":\"Shipping message\"}');\n\n $this->templateResource->save($template);\n }", "protected function handleGeneratePasswordTemplate()\n {\n $id = $this->config['passwordsetting']['generatepasswordtmpl'];\n if (empty($id)) {\n return;\n }\n $bodyHtml = $this->getEmailTemplateBodyHtml($id);\n $find = '<p> $contact_user_link_guid </p>';\n\n if (!empty($bodyHtml) && false !== strpos($bodyHtml, $find)) {\n $replace = '<p> <a title=\"$contact_user_link_guid\" href=\"$contact_user_link_guid\">$contact_user_link_guid</a> </p>';\n $bodyHtml = str_replace($find, $replace, $bodyHtml);\n\n $this->updateEmailTemplateBodyHtml($id, $bodyHtml);\n }\n }", "public function notifyOwner()\n {\n global $config, $reefless, $account_info;\n\n $reefless->loadClass('Mail');\n\n $mail_tpl = $GLOBALS['rlMail']->getEmailTemplate(\n $config['listing_auto_approval']\n ? 'free_active_listing_created'\n : 'free_approval_listing_created'\n );\n\n if ($config['listing_auto_approval']) {\n $link = $reefless->getListingUrl(intval($this->listingID));\n } else {\n $myPageKey = $config['one_my_listings_page'] ? 'my_all_ads' : 'my_' . $this->listingType['Key'];\n $link = $reefless->getPageUrl($myPageKey);\n }\n\n $mail_tpl['body'] = str_replace(\n array('{username}', '{link}'),\n array(\n $account_info['Username'],\n '<a href=\"' . $link . '\">' . $link . '</a>',\n ),\n $mail_tpl['body']\n );\n $GLOBALS['rlMail']->send($mail_tpl, $account_info['Mail']);\n }", "public function RegistrationUnderApproval() {\n $this->Render();\n }", "function paid_sendEmail_owner($details) {\n\t\t\t\t$currencycode = $details->currCode;\n\t\t\t\t$currencysign = $details->currSymbol;\n\n\t\t\t\t$custid = $details->bookingUser;\n\t\t\t\t$country = $details->userCountry;\n\t\t\t\t$name = $details->userFullName;\n\t\t\t\t$phone = $details->userMobile;\n\t\t\t\t$paymethod = $details->paymethod;\n\t\t\t\t$invoiceid = $details->id;\n\t\t\t\t$refno = $details->code;\n\t\t\t\t$totalamount = $details->checkoutTotal;\n\t\t\t\t$deposit = $details->checkoutAmount;\n\t\t\t\t$duedate = $details->expiry;\n\t\t\t\t$date = $details->date;\n\t\t\t\t$remaining = $details->remainingAmount;\n\t\t\t\t$custemail = $details->accountEmail;\t\t\t\t\n\t\t\t\n\t\t\t\t$sendto = $this->ownerEmail($details->module, $details->itemid);\n\t\t\t\t$sitetitle = \"\";\n\t\t\t\t\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= \"<h4><b>Booking Paid Successfully</b></h4>\";\n\t\t\t\t$message .= \"Invoice No.: \" . $invoiceid . \".<br>\";\n\t\t\t\t//$message .= \"Payment Method: \" . $paymethod . \".<br><br>\";\n\t\t\t\t$message .= \"Deposit Amount: \" . $currencycode . \" \" . $currencysign . $deposit . \"<br>\";\n\t\t\t\t$message .= \"Total Amount: \" . $currencycode . \" \" . $currencysign . $totalamount . \"<br><br>\";\n\t\t\t\t$message .= \"<h4><b>Customer Information</b></h4>\";\n\t\t\t\t$message .= \"Customer ID: \" . $custid . \"<br>\";\n\t\t\t\t$message .= \"Name : \" . $name . \"<br>\";\n\t\t\t\t$message .= \"Email : \" . $custemail . \"<br>\";\n\t\t\t\t$message .= \"Country : \" . $country . \"<br>\";\n\t\t\t\t$message .= \"Phone : \" . $phone . \"<br>\";\n\t\t\t\t$message .= \"<br> To view Invoice <a href=\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \" >\" . base_url() . \"invoice?id=\" . $invoiceid . \"&sessid=\" . $refno . \"</a>\";\n\t\t\t\t$message .= $this->mailFooter;\n\t\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t\t$this->email->from($this->sendfrom);\n\t\t\t\t$this->email->to($sendto);\n\t\t\t\t$this->email->subject('Booking Payment Notification');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\t\t}", "public function index()\n {\n return view('admin.Mails.create',[\n 'user' => User::all(),\n 'newsletter' => Newsletter::all()\n ]);\n }", "function emailforsurveyresult($survey) {\n\n global $wpdb;\n $id = $survey->id;\n $user_id = $survey->user_id;\n $user = get_user_by('id', $user_id);\n\n $mentor_id = $survey->mentor_id;\n $mentor = get_user_by('id', $mentor_id);\n\n\n $form = $wpdb->get_row\n (\n $wpdb->prepare\n (\n \"SELECT * FROM \" . survey_forms() . \" \"\n . \"WHERE id = %d\", $survey->survey_id\n )\n );\n\n $slug = PAGE_SLUG;\n $url = site_url() . \"/$slug?survey=\" . $id . \"&guid=\" . $survey->guid;\n $btnaccept = \"<a href='\" . $url . \"'>Click Here To Check Your Survey</a> <br/><br/>\";\n\n $date = date(\"Y-m-d H:i:s\");\n $site_name = TR_SITE_NAME;\n $admin_email = get_option('admin_email');\n $headers = 'From: ' . $admin_email . \"\\r\\n\" .\n 'Reply-To: ' . $admin_email . \"\\r\\n\" .\n 'MIME-Version: 1.0' . \"\\r\\n\" .\n 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n\n /* for user */\n\n $template = tt_get_template(\"survey_result_user\");\n $subj = $template->subject;\n\n $msg = $template->content;\n $msg = str_replace(array('{{username}}', '{{survey_title}}', '{{mentor_name}}', '{{url}}', '{{site_name}}'), array($user->data->display_name, $form->title, $mentor->data->display_nam, $url, $site_name), $msg);\n\n custom_mail($user->data->user_email, $subj, $msg, EMAIL_TYPE, \"\");\n\n\n /* for mentor */\n\n $url = site_url() . \"/wp-admin/admin.php?page=survey_result&survey_id=\" . $id;\n\n $template = tt_get_template(\"survey_result_mentor\");\n $subj = $template->subject;\n\n $msg = $template->content;\n $msg = str_replace(array('{{username}}', '{{survey_user}}', '{{survey_title}}', '{{url}}', '{{site_name}}'), array($mentor->data->display_name, $user->data->display_name, $form->title, $url, $site_name), $msg);\n\n custom_mail($mentor->data->user_email, $subj, $msg, EMAIL_TYPE, \"\");\n}", "function _erpal_contract_helper_get_billable_text() {\n\n $default_text = t('Payment for !service_category_token contract \"!contract_title_token\"', array('!service_category_token' => '[erpal_contract_billable_subject:service_category]', '!contract_title_token' => '[erpal_contract_billable_subject:contract_title]'));\n return variable_get('erpal_billable_text_erpal_contract', $default_text);\n}", "public function get_content_plain() {\n\t\tob_start();\n\t\twc_get_template($this->template_plain, [\n\t\t\t'email_heading'\t=> $this->get_heading(),\n\t\t\t'sent_to_admin'\t=> true,\n\t\t\t'plain_text'\t=> true,\n\t\t\t'email'\t\t\t=> $this,\n\t\t\t'subscribers'\t=> $this->subscribers,\n\t\t], '', $this->template_base);\n\t\treturn ob_get_clean();\n\t}", "public function send_approvals() {\n if (isset($_POST['approval'])) {\n $PDO = Record::getConnection();\n\t\t\t $common = new APCommon();\n \t\t\t foreach($_POST['approval'] as $id){\n\t\t\t\t\n\t\t\t\t//Find the record in the temp table and send the confirmation email\n\t\t\t\t$sql = \"SELECT * FROM \". TABLE_PREFIX . \"approved_users_temp WHERE id=:id\";\n $stmt = $PDO->prepare($sql);\n $stmt->execute(array(\"id\" => $id));\n\t\t\t\t$row = $stmt->fetch();\n\t\t\t\t$email = $row[2];\n\t\t\t\t$name = $row[1];\n\t\t\t\t$common->confirmation_email($email, $name);\n\t\t\t\t\n\t\t\t\t//Update the temp table to mark row as processed\n $sql = \"UPDATE \" . TABLE_PREFIX . \"approved_users_temp SET processed=1 WHERE id=:id\";\n $stmt = $PDO->prepare($sql);\n $stmt->execute(array(\"id\" => $id));\n\t\t\t }\n \n \t\t\tFlash::set('success', __('Approvals processed'));\n \t\t} else {\n Flash::set('error', __('Unable to process approvals'));\n }\n\n redirect(get_url('plugin/approved_users/approvals'));\n }", "public function getTemplateRequest() {\n $result = $this->db->query(\"select * from tblmvbsmstemprequest where str_client_id_fk=1\");\n return $result->result();\n }", "public function getUrlProcessNewMail() {\r\n return $this->getUrl('*/*/GetNewMailsAjax');\r\n }", "public function create(){\n\t\t$args = $this->getArgs();\n\t\t$out = $this->getModel()->getUcrDataByToken(UserController::getUcrRequestTokenHash($args[\"GET\"][\"token\"]));\n\t\tinclude 'gui/template/UserTemplate.php';\n\t}", "public function create()\n {\n return view('Admin.pages.company.create');\n }", "public function welcome_apply_message() {\n global $OUTPUT;\n\n $a = new \\stdClass();\n $a->uploadpage = get_string('tabutemplatepage3', 'mod_surveypro');\n $a->savepage = get_string('tabutemplatepage2', 'mod_surveypro');\n $message = get_string('welcome_utemplateapply', 'mod_surveypro', $a);\n echo $OUTPUT->notification($message, 'notifymessage');\n }", "public function gatherActivationEmailProperties() {\n /* generate a password and encode it and the username into the url */\n $pword = $this->modx->user->generatePassword();\n $confirmParams['lp'] = $this->login->base64url_encode($pword);\n $confirmParams['lu'] = $this->login->base64url_encode($this->user->get('username'));\n $confirmParams = array_merge($this->persistParams,$confirmParams);\n\n /* if using redirectBack param, set here to allow dynamic redirection\n * handling from other forms.\n */\n $redirectBack = $this->modx->getOption('redirectBack',$_REQUEST,$this->controller->getProperty('redirectBack',''));\n if (!empty($redirectBack)) {\n $confirmParams['redirectBack'] = $redirectBack;\n }\n $redirectBackParams = $this->modx->getOption('redirectBackParams',$_REQUEST,$this->controller->getProperty('redirectBackParams',''));\n if (!empty($redirectBackParams)) {\n $confirmParams['redirectBackParams'] = $redirectBackParams;\n }\n\n /* generate confirmation url */\n if ($this->login->inTestMode) {\n $confirmUrl = $this->modx->makeUrl(1,'',$confirmParams,'full');\n } else {\n $confirmUrl = $this->modx->makeUrl($this->controller->getProperty('activationResourceId',1),'',$confirmParams,'full');\n }\n\n /* set confirmation email properties */\n $emailTpl = $this->controller->getProperty('activationEmailTpl','lgnActivateEmailTpl');\n $emailTplAlt = $this->controller->getProperty('activationEmailTplAlt','');\n $emailTplType = $this->controller->getProperty('activationEmailTplType','modChunk');\n $emailProperties = $this->user->toArray();\n $emailProperties['confirmUrl'] = $confirmUrl;\n $emailProperties['tpl'] = $emailTpl;\n $emailProperties['tplAlt'] = $emailTplAlt;\n $emailProperties['tplType'] = $emailTplType;\n $emailProperties['password'] = $this->dictionary->get($this->controller->getProperty('passwordField','password'));\n\n $this->setCachePassword($pword);\n return $emailProperties;\n }", "public function thank_you_page()\r\n {\r\n if ($this->instructions) {\r\n return $this->displayPaymentApprovalInstructions();\r\n }\r\n }", "function get_personal_message_creation_url()\r\n {\r\n return $this->get_url(array(self :: PARAM_ACTION => self :: ACTION_CREATE_PUBLICATION));\r\n }", "public function emailTemplate($body = '')\n {\n $view['body'] = $body;\n return $this->load->view('template/email', $view, true);\n }", "function generateApprovedFamMessageBody($sender, $receiver, $family_relation) {\n $receivername = $receiver['first_name'].\" \".$receiver['last_name'];\n $sendername = $sender['first_name'].\" \".$sender['last_name'];\n\n $message = \"\";\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\n \".$receivername.\" approved your MyNotes4u Family Album\n </p>\n </body>\n </html>\";\n return $message;\n}", "public function index()\n {\n $logged_emp_company_id = MenuPageController::loggedUser('company_id');\n $leave_approval_method = LeaveApprovalMethod::where('company_id',$logged_emp_company_id)->first();\n\n return view('module.settings.leaveApprovalMethod', ['app_method' => $leave_approval_method, 'logged_emp_com' => $logged_emp_company_id]);\n }", "function generateFriMessageBody($user, $content, $friend_id) {\n $approve_url = SMTP_ENDPOINT.\"?type=friend&&from=\".$user['id'].\"&&to=\".$content['id'].\"&&friend_id=\".$friend_id.\"&&status=approved\";\n $delete_url = SMTP_ENDPOINT.\"?type=friend&&from=\".$user['id'].\"&&to=\".$content['id'].\"&&friend_id=\".$friend_id.\"&&status=delete\";\n $message = \"\";\n\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\n Hello \".$content['first_name'].\" \".$content['last_name'].\"!\n </p>\n <p>\n You have been invited to become part of \".$user['first_name'].\" \".$user['last_name'].\" MyNotes4u Friend Album.\n </p>\n <p>\n <span><a href=\".$approve_url.\">Approve</a></span>&nbsp;&nbsp;&nbsp;&nbsp;\n <span><a href=\".$delete_url.\">Delete</a></span>\n </p>\n </body>\n </html>\";\n return $message;\n}" ]
[ "0.6389501", "0.6315032", "0.6273595", "0.6159711", "0.5981049", "0.587516", "0.5874638", "0.5846519", "0.5810013", "0.57817864", "0.5767022", "0.57623404", "0.5728545", "0.56925935", "0.5638121", "0.56215787", "0.56182826", "0.55675274", "0.5564303", "0.55353737", "0.5516341", "0.55158937", "0.5500132", "0.54995376", "0.5481247", "0.5470257", "0.5463291", "0.542436", "0.5412725", "0.5399996", "0.53917783", "0.5390267", "0.5369813", "0.5365983", "0.53647316", "0.5363821", "0.5349509", "0.5343096", "0.5341043", "0.53324836", "0.533069", "0.53074914", "0.53048056", "0.5299206", "0.529636", "0.5292791", "0.5284463", "0.5283178", "0.527409", "0.5269913", "0.5268055", "0.52673185", "0.5266359", "0.52612597", "0.52546537", "0.52503204", "0.524442", "0.5240188", "0.52387446", "0.5238362", "0.523664", "0.5232913", "0.52273375", "0.5219411", "0.52174777", "0.52155054", "0.5215426", "0.5206947", "0.5200793", "0.5200311", "0.5196739", "0.51960474", "0.5191931", "0.5189198", "0.5187307", "0.51810855", "0.5180885", "0.5176287", "0.5176136", "0.517247", "0.51710653", "0.51586163", "0.51585406", "0.515713", "0.5150718", "0.51500994", "0.5146894", "0.51406944", "0.5136339", "0.5134717", "0.5128661", "0.51259154", "0.5117807", "0.5115943", "0.51110405", "0.5101886", "0.51004887", "0.5099263", "0.509806", "0.5092075" ]
0.7334605
0
Get new company account remove mail template
Получить новый шаблон уведомления о удалении компании
public function getCompanyAccountRemoveEmailTemplate() { return $this->scopeConfig->getValue( self::XML_PATH_COMPANY_ACCOUNT_REMOVE_EMAIL_TEMPLATE, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'changeEmail');\n\t}", "function edd_pup_get_email_templates() {\r\n\r\n\t$templates = edd_get_email_templates();\r\n\t$eddpdfi_email_templates = array(\r\n\t\t'invoice_default',\r\n\t\t'blue_stripe',\r\n\t\t'lines',\r\n\t\t'minimal',\r\n\t\t'traditional',\r\n\t\t'invoice_blue',\r\n\t\t'invoice_green',\r\n\t\t'invoice_orange',\r\n\t\t'invoice_pink',\r\n\t\t'invoice_purple',\r\n\t\t'invoice_red',\r\n\t\t'invoice_yellow'\r\n\t);\r\n\r\n\tforeach ( $eddpdfi_email_templates as $pdftemplate ) {\r\n\t\tif ( array_key_exists( $pdftemplate, $templates ) ) {\r\n\t\t\tunset( $templates[$pdftemplate] );\r\n\t\t}\r\n\t}\r\n\r\n\treturn $templates;\r\n}", "function ciniki_mail_mailingDelete($ciniki) {\n // \n // Find all the required and optional arguments\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'prepareArgs');\n $rc = ciniki_core_prepareArgs($ciniki, 'no', array(\n 'tnid'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Tenant'), \n 'mailing_id'=>array('required'=>'yes', 'blank'=>'no', 'name'=>'Mailing'),\n )); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $args = $rc['args'];\n\n // \n // Make sure this module is activated, and\n // check permission to run this function for this tenant\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'mail', 'private', 'checkAccess');\n $rc = ciniki_mail_checkAccess($ciniki, $args['tnid'], 'ciniki.mail.mailingDelete', 0); \n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n $modules = $rc['modules'];\n\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbQuote');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'users', 'private', 'dateFormat');\n $date_format = ciniki_users_dateFormat($ciniki);\n\n //\n // Get the uuid of the mailing to be deleted\n //\n $strsql = \"SELECT uuid FROM ciniki_mailings \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbHashQuery');\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'mailing');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n if( !isset($rc['mailing']) ) {\n return array('stat'=>'fail', 'err'=>array('code'=>'ciniki.mail.31', 'msg'=>'The mailing does not exist'));\n }\n $mailing_uuid = $rc['mailing']['uuid'];\n\n // \n // Turn off autocommit\n // \n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionStart');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionRollback');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbTransactionCommit');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'dbQuote');\n ciniki_core_loadMethod($ciniki, 'ciniki', 'core', 'private', 'objectDelete');\n $rc = ciniki_core_dbTransactionStart($ciniki, 'ciniki.mail');\n if( $rc['stat'] != 'ok' ) { \n return $rc;\n } \n\n //\n // Remove the mail subscriptions\n //\n $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_mailing_subscriptions \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'item');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $items = $rc['rows'];\n foreach($items as $iid => $item) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing_subscription', \n $item['id'], $item['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n }\n\n //\n // Remove the mail messages\n //\n $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_mail \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'image');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $items = $rc['rows'];\n foreach($items as $iid => $item) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.message', \n $item['id'], $item['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n }\n\n //\n // Remove the images\n //\n $strsql = \"SELECT id, uuid, image_id FROM ciniki_mailing_images \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'image');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $images = $rc['rows'];\n foreach($images as $iid => $image) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing_image', \n $image['id'], $image['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n }\n\n //\n // Remove the files for the mailing\n //\n/* $strsql = \"SELECT id, uuid \"\n . \"FROM ciniki_mailing_files \"\n . \"WHERE tnid = '\" . ciniki_core_dbQuote($ciniki, $args['tnid']) . \"' \"\n . \"AND mailing_id = '\" . ciniki_core_dbQuote($ciniki, $args['mailing_id']) . \"' \"\n . \"\";\n $rc = ciniki_core_dbHashQuery($ciniki, $strsql, 'ciniki.mail', 'file');\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n if( isset($rc['rows']) && count($rc['rows']) > 0 ) {\n $files = $rc['rows'];\n foreach($files as $fid => $file) {\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing_file', \n $file['id'], $file['uuid'], 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc; \n }\n }\n } */\n\n //\n // Delete the mailing\n //\n $rc = ciniki_core_objectDelete($ciniki, $args['tnid'], 'ciniki.mail.mailing', $args['mailing_id'], $mailing_uuid, 0x04);\n if( $rc['stat'] != 'ok' ) {\n ciniki_core_dbTransactionRollback($ciniki, 'ciniki.mail');\n return $rc;\n }\n\n //\n // Commit the database changes\n //\n $rc = ciniki_core_dbTransactionCommit($ciniki, 'ciniki.mail');\n if( $rc['stat'] != 'ok' ) {\n return $rc;\n }\n\n //\n // Update the last_change date in the tenant modules\n // Ignore the result, as we don't want to stop user updates if this fails.\n //\n ciniki_core_loadMethod($ciniki, 'ciniki', 'tenants', 'private', 'updateModuleChangeDate');\n ciniki_tenants_updateModuleChangeDate($ciniki, $args['tnid'], 'ciniki', 'mail');\n\n return array('stat'=>'ok');\n}", "function delete_contact_from_list($cat_id, $email) {\n require_once 'createsend-php-5.1.2/csrest_subscribers.php';\n $auth = array('api_key' => CM_API_KEY);\n\n $wrap = new CS_REST_Subscribers(get_term_meta($cat_id, 'list_id', true), $auth);\n $result = $wrap->delete($email);\n}", "public function delete_email_template($del_email_tmpid) {\n\t\treturn $this->db->delete('email_template_detail',array('templateid'=>$del_email_tmpid));\n\t}", "public function deleteAccount(){\n $this->view->displayVerifyPassword();\n $this->view->displayDeleteAccount();\n $this->view->displayEnterCode();\n $action = $_POST['deleteMyAccount'];\n $actionDelete = $_POST['deleteAccount'];\n $current_user = wp_get_current_user();\n if(isset($action)){\n $pwd = filter_input(INPUT_POST, 'verifPwd');\n if(wp_check_password($pwd, $current_user->user_pass)) {\n $code = $this->model->createRandomCode($current_user->ID);\n $to = $current_user->user_email;\n $subject = \"Désinscription à la télé-connecté\";\n $message = '\n <html>\n <head>\n <title>Désnscription à la télé-connecté</title>\n </head>\n <body>\n <p>Bonjour, vous avez décidé de vous désinscrire sur le site de la Télé Connecté</p>\n <p> Votre code de désinscription est : '.$code.'.</p>\n <p> Pour vous désinscrire, rendez-vous sur le site : <a href=\"'.home_url().'/mon-compte/\"> Tv Connectée.</p>\n </body>\n </html>\n ';\n\n // Pour envoyer un mail HTML, l'en-tête Content-type doit être défini\n $headers[] = 'MIME-Version: 1.0';\n $headers[] = \"Content-Type: text/html; charset=UTF-8\";\n\n // Envoi\n mail($to, $subject, $message, implode(\"\\n\", $headers));\n $this->view->displayMailSend();\n }\n else{\n $this->view->displayWrongPassword();\n }\n }\n elseif (isset($actionDelete)){\n $code = $_POST['codeDelete'];\n $userCode = $this->model->getCode($current_user->ID);\n if($code == $userCode[0]['Code']){\n $this->model->deleteCode($current_user->ID);\n $this->deleteUser($current_user->ID);\n $this->view->displayModificationValidate();\n } else {\n $this->view->displayWrongPassword();\n }\n }\n }", "function remove($cID) {\n $input = array(\n '_OptinEmailYN'=> 0,\n '_OptinSmsYN'=> 0,\n '_OptinSurfaceMailYN'=> 0,\n '_OptinMerchandiseYN'=> 0,\n '__ClubEventsYN'=> 0,\n '__AwayMatchYN'=> 0,\n //'Email'=> '',\n \n );\n $encrypted = $cID;\n $cID = $this->encryption->decode($cID);\n \n if( ! defined('DATAOWNER_ID')) $this->_lookup_dID($cID);\n //define('DATAOWNER_ID', $dID);\n \n $this->load->model('contact_model', 'contact');\n $r = $this->contact->save($input, $cID);\n \n $this->message = '<span class=\"notification done\">Your preferences have been updated!</span>';\n redirect(site_url('unsubscribe/show/' . $encrypted));\n \n }", "public function emailtemplete($email)\n\t{\t\n\t\t$templetedata = '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta name=\"viewport\" content=\"width=device-width\" />\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n<title>Verify your account</title>\n<style>/* -------------------------------------\n GLOBAL\n A very basic CSS reset\n------------------------------------- */\n* {\n margin: 0;\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif;\n box-sizing: border-box;\n font-size: 14px;\n}\n\nimg {\n max-width: 100%;\n}\n\nbody {\n -webkit-font-smoothing: antialiased;\n -webkit-text-size-adjust: none;\n width: 100% !important;\n height: 100%;\n line-height: 1.6em;\n /* 1.6em * 14px = 22.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\ntable td {\n vertical-align: top;\n}\n\nbody {\n background-color: #f6f6f6;\n}\n\n.body-wrap {\n background-color: #f6f6f6;\n width: 100%;\n}\n\n.container {\n display: block !important;\n max-width: 600px !important;\n margin: 0 auto !important;\n /* makes it centered */\n clear: both !important;\n}\n\n.content {\n max-width: 600px;\n margin: 0 auto;\n display: block;\n padding: 20px;\n}\n\n/* -------------------------------------\n HEADER, FOOTER, MAIN\n------------------------------------- */\n.main {\n background-color: #fff;\n border: 1px solid #e9e9e9;\n border-radius: 3px;\n}\n\n.content-wrap {\n padding: 20px;\n}\n\n.content-block {\n padding: 0 0 20px;\n}\n\n.header {\n width: 100%;\n margin-bottom: 20px;\n}\n\n.footer {\n width: 100%;\n clear: both;\n color: #999;\n padding: 20px;\n}\n.footer p, .footer a, .footer td {\n color: #999;\n font-size: 12px;\n}\n\n/* -------------------------------------\n TYPOGRAPHY\n------------------------------------- */\nh1, h2, h3 {\n font-family: \"Helvetica Neue\", Helvetica, Arial, \"Lucida Grande\", sans-serif;\n color: #000;\n margin: 40px 0 0;\n line-height: 1.2em;\n font-weight: 400;\n}\n\nh1 {\n font-size: 32px;\n font-weight: 500;\n /* 1.2em * 32px = 38.4px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 38px;*/\n}\n\nh2 {\n font-size: 24px;\n /* 1.2em * 24px = 28.8px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 29px;*/\n}\n\nh3 {\n font-size: 18px;\n /* 1.2em * 18px = 21.6px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 22px;*/\n}\n\nh4 {\n font-size: 14px;\n font-weight: 600;\n}\n\np, ul, ol {\n margin-bottom: 10px;\n font-weight: normal;\n}\np li, ul li, ol li {\n margin-left: 5px;\n list-style-position: inside;\n}\n\n/* -------------------------------------\n LINKS & BUTTONS\n------------------------------------- */\na {\n color: #348eda;\n text-decoration: underline;\n}\n\n.btn-primary {\n text-decoration: none;\n color: #FFF;\n background-color: #348eda;\n border: solid #348eda;\n border-width: 10px 20px;\n line-height: 2em;\n /* 2em * 14px = 28px, use px to get airier line-height also in Thunderbird, and Yahoo!, Outlook.com, AOL webmail clients */\n /*line-height: 28px;*/\n font-weight: bold;\n text-align: center;\n cursor: pointer;\n display: inline-block;\n border-radius: 5px;\n text-transform: capitalize;\n}\n\n/* -------------------------------------\n OTHER STYLES THAT MIGHT BE USEFUL\n------------------------------------- */\n.last {\n margin-bottom: 0;\n}\n\n.first {\n margin-top: 0;\n}\n\n.aligncenter {\n text-align: center;\n}\n\n.alignright {\n text-align: right;\n}\n\n.alignleft {\n text-align: left;\n}\n\n.clear {\n clear: both;\n}\n\n/* -------------------------------------\n ALERTS\n Change the class depending on warning email, good email or bad email\n------------------------------------- */\n.alert {\n font-size: 16px;\n color: #fff;\n font-weight: 500;\n padding: 20px;\n text-align: center;\n border-radius: 3px 3px 0 0;\n}\n.alert a {\n color: #fff;\n text-decoration: none;\n font-weight: 500;\n font-size: 16px;\n}\n.alert.alert-warning {\n background-color: #FF9F00;\n}\n.alert.alert-bad {\n background-color: #D0021B;\n}\n.alert.alert-good {\n background-color: #68B90F;\n}\n\n/* -------------------------------------\n INVOICE\n Styles for the billing table\n------------------------------------- */\n.invoice {\n margin: 40px auto;\n text-align: left;\n width: 80%;\n}\n.invoice td {\n padding: 5px 0;\n}\n.invoice .invoice-items {\n width: 100%;\n}\n.invoice .invoice-items td {\n border-top: #eee 1px solid;\n}\n.invoice .invoice-items .total td {\n border-top: 2px solid #333;\n border-bottom: 2px solid #333;\n font-weight: 700;\n}\n\n/* -------------------------------------\n RESPONSIVE AND MOBILE FRIENDLY STYLES\n------------------------------------- */\n@media only screen and (max-width: 640px) {\n body {\n padding: 0 !important;\n }\n\n h1, h2, h3, h4 {\n font-weight: 800 !important;\n margin: 20px 0 5px !important;\n }\n\n h1 {\n font-size: 22px !important;\n }\n\n h2 {\n font-size: 18px !important;\n }\n\n h3 {\n font-size: 16px !important;\n }\n\n .container {\n padding: 0 !important;\n width: 100% !important;\n }\n\n .content {\n padding: 0 !important;\n }\n\n .content-wrap {\n padding: 10px !important;\n }\n\n .invoice {\n width: 100% !important;\n }\n}\n\n/*# sourceMappingURL=styles.css.map */\n</style>\n</head>\n\n<body itemscope itemtype=\"http://schema.org/EmailMessage\">\n\n<table class=\"body-wrap\">\n\t<tr>\n\t\t<td></td>\n\t\t<td class=\"container\" width=\"600\">\n\t\t\t<div class=\"content\">\n\t\t\t\t<table class=\"main\" width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"alert alert-warning\">\n\t\t\t\t\t\t\tVerify your account\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t\t<tr>\n\t\t\t\t\t\t<td class=\"content-wrap\">\n\t\t\t\t\t\t\t<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tDear customer Pleas <strong>Click</strong> Below link .\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\t<a href=\"'.base_url().'varify/'.urlencode(base64_encode($email)).'\" class=\"btn-primary\">verify</a>\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t\t\t<td class=\"content-block\">\n\t\t\t\t\t\t\t\t\t\tThanks for choosing 11needs.com.\n\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t</tr>\n\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t</tr>\n\t\t\t\t</table>\n\t\t\t\t<div class=\"footer\">\n\t\t\t\t\t<table width=\"100%\">\n\t\t\t\t\t\t<tr>\n\t\t\t\t\t\t\t<td class=\"aligncenter content-block\"></td>\n\t\t\t\t\t\t</tr>\n\t\t\t\t\t</table>\n\t\t\t\t</div></div>\n\t\t</td>\n\t\t<td></td>\n\t</tr>\n</table>\n\n</body>\n</html>';\n\t\treturn $templetedata;\n\t}", "public function emailtemplateAction(){\n\n $this->_helper->layout->setLayout('popup'); \n\n\t $this->view->emailtemplate = $this->ModelObj->fetchemailtemplate(array('notification_id'=>$this->Request['notification_id'])); \n\n\t $this->view->templatename = ($this->Request['notification_name']!='') ? $this->Request['notification_name'] : '';\n\n }", "public function getEmailTemplateFile() {}", "public function delete_mail_modal()\n {\n $str = '<div class=\"modal fade\" id=\"delmail-modal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\">';\n $str .= '<div class=\"credential-panel\" id=\"delmail-panel\">';\n $str .= '<div class=\"credential-form\" id=\"delmail-form\">';\n\t\t\t\t\t\t\t\t\t\t\t\t# Delete Selected Message/Delete Selected Messages goes here\n $str .= '<h2 id=\"delmail_header\" class=\"sign-in font-24 modal-header mail_subject\"></h2>';\n $str .= '<hr style=\"margin-top: 0px\"></hr>';\n\t\t\t\t\t\t\t\t\t\t\t\t# \"Are you sure?\" message... goes here\n $str .= '<label id=\"delmail_label\" class=\"credential-label\" style=\"margin-top: 0px\"></label>';\n\t\t\t\t\t\t\t\t\t\t\t\t# Delete button goes here\n $str .= '<input type=\"submit\" class=\"btn-default register-button\" id=\"delmail_submit\" value=\"Delete\" onclick=\"deleteMail();\">';\n $str .= '</div>';\n $str .= '</div>';\n $str .= '</div>';\n return $str;\n }", "public function delete_email_template(Request $request,$enc_id)\n\t{\t\n\t\t$content_id = base64_decode($enc_id);\n\n\t\t$obj_delete = $this->BaseModel->where('id',$content_id)->delete();\n\n\t\tif($obj_delete){\n\t\t\tSession::flash('success', 'Template deleted successfully.');\n\t\t\treturn redirect($this->module_url_path);\n \t}else{\n \t\tSession::flash('error', 'Something went wrong.');\n\t\t\treturn redirect($this->module_url_path);\n \t}\n\t}", "public function getemailtemplate() {\n $admin_id = Session::get('bio_admin_id');\n if($admin_id == \"\"){\n return Redirect::to('/backend');\n }\n $EmailData = DB::table('tbl_email_template')->orderBy('id')->where('id', '>', 0)->get();\n return view('admin.manage-emailtemplate')->with('EmailData', $EmailData);\n }", "public function cancel()\n {\n $message = new MailMessage;;\n $message->greeting(\"Hi {$this->post->user->name}!\");\n $message->line(\"The post {$this->post->titile} has been cancelled successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }", "function parse_email_template($template, $merge_fields = array())\n{\n $CI =& get_instance();\n if (!is_object($template) || $CI->input->post('template_name')) {\n $original_template = $template;\n if ($CI->input->post('template_name')) {\n $template = $CI->input->post('template_name');\n }\n $CI->db->where('slug', $template);\n $template = $CI->db->get('tblemailtemplates')->row();\n\n if ($CI->input->post('email_template_custom')) {\n $template->message = $CI->input->post('email_template_custom', false);\n // Replace the subject too\n $template->subject = $original_template->subject;\n }\n }\n $template = _parse_email_template_merge_fields($template, $merge_fields);\n\n\n return do_action('email_template_parsed', $template);\n}", "public function template()\n {\n $templates = EmailTemplate::select('*')->where('email_templates.state','0')->get();\n $newcontact = DB::table('contact')->where('contact.state', '=', '0')->count();\n return view('admin.email_template')->with(array('templates'=>$templates,'newcontact'=>$newcontact));\n }", "public function unsubscribed() {\n\t\t$fields_string = \"\";\n\n\t\t//113 - Opt-out Registered Users\n $params = $_POST;\n\t\t\n\t\t$email \t= $params['email'];\t\n\t\t$urlencoded_email = urlencode($email);\n\t\t\n\t\t//set POST variables - activate a user on the opt out list\n\t\t$url = 'https://login8.unsubcentral.com/uc/address_upload.pl?';\n\t\t$fields = array(\n\t\t\t\t\t\t\t\t'login'=>'TotsyAPI',\n\t\t\t\t\t\t\t\t'password'=>'D:hXeM;i',\n\t\t\t\t\t\t\t\t'listID'=>'113',\n\t\t\t\t\t\t\t\t'md5'=>'false',\n\t\t\t\t\t\t\t\t'suppressed_text'=>urlencode($email)\n\t\t\t\t\t\t);\n\t\t\n\t\t//url-ify the data for the POST\n\t\tforeach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }\n\t\trtrim($fields_string,'&amp;');\n\t\t\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\tcurl_setopt($ch,CURLOPT_POST,count($fields));\n\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);\n\t\t$result = curl_exec($ch);\n\t\tcurl_close($ch);\t\n\t\t\n\t\t//clear the previous variables\n\t\tunset($fields);\n\t\tunset($fields_string);\n\t\t\n\t\t$date_today = date(\"Y-m-d\");\n\t\t\n\t\t$unsubcentral_filename = \"/tmp/unsubcentral-\".time().\".txt\";\n\t\t$temp_file = file_put_contents($unsubcentral_filename,\"{$email}\\t{$date_today}\\t0\\t\\n\");\n\t\t\n\t\t//deactivate a user on the registered list (116)\n\t\t$url = \"https://login8.unsubcentral.com/uc/add_remove_address.pl?\";\n\t\t$fields = array(\n\t\t\t\t\t\t\t\t'login'=>'TotsyAPI',\n\t\t\t\t\t\t\t\t'password'=>urlencode('D:hXeM;i'),\n\t\t\t\t\t\t\t\t'listID'=>'116',\n\t\t\t\t\t\t\t\t'file'=>\"@{$unsubcentral_filename}\",\n\t\t\t\t\t\t\t\t'email_col'=>\"0\",\n\t\t\t\t\t\t\t\t'action_col'=>\"2\",\n\t\t\t\t\t\t\t\t'date_col'=>\"1\"\n\t\t\t\t\t\t);\n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\tcurl_setopt($ch,CURLOPT_POST,TRUE);\n\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$fields);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE); \n\t\t$result = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\t//remove the unsubcentral upload file after it is used for upload\n\t\tunlink($unsubcentral_filename);\n \t}", "public function paypal_cancel() {\n\t\t\t// on va donc chercher son adresse mail\n\t\t\t$user = $this->User->find('first', array(\n\t\t\t\t'conditions'=>array('id'=>$this->Auth->user('id')),\n\t\t\t\t'fields'=>array('mail')\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t// et on lui envoie le mail de confirmation pour son annulation\n\t\t\tApp::uses('CakeEmail', 'Network/Email');\n\t\t\t$email = new CakeEmail('gmail');\n\t\t\t$email->to($user['User']['mail']) // à qui ? $this->Auth->user('mail')\n\t\t\t\t ->from(Configure::read('Site_Contact.mail')) // par qui ?\n\t\t\t\t ->subject('Votre demande a été annulée') // sujet du mail\n\t\t\t\t ->emailFormat('html') // le format à utiliser\n\t\t\t\t ->template('paypal_cancel') // le template à utiliser\n\t\t\t\t ->send(); // envoi du mail\n\n\t\t\t$this->Session->setFlash(__(\"Votre demande a été annulée\"), 'success');\n\t\t\t$this->redirect(array('controller'=>'posts', 'action'=>'index'));\n\t\t}", "public function getCompanyAccountApprovalEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_APPROVAL_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "function Get_user_system_emails_tmpl_names()\r\n {\r\n $CI = &get_instance();\r\n $CI->load->model('mail_model');\r\n //read the whole info about templates and get template names for users only\r\n $templates_info = $CI->mail_model->Get_system_email_data('USER_TEMPLATES_NAMES');\r\n return $templates_info;\r\n }", "public function actionRemoveConfiguracaoNotaFiscal(TwigEngine $templating)\n {\n $notaFiscal = $this->getConfiguracaoNotaFiscalFromRequest();\n $em = $this->factory->getEntityManager();\n $em->remove($notaFiscal);\n $em->flush();\n\n return [\n 'message' => 'Excluir Notas Fiscais concluído com sucesso!'\n ];\n }", "public function emailTemplate(){\n if (Auth::user()->admin===1) {\n $template = EmailTemplate::find(1);\n return view('admin.emailTemplate')->with('template', $template);\n }\n else {\n return view('pages.noAccess');\n }\n }", "function delete_actualisation($id)\n\t{\n\t\tocf_delete_welcome_email(intval($id));\n\t}", "function Get_admin_system_emails_tmpl_names()\r\n {\r\n $CI = &get_instance();\r\n $CI->load->model('mail_model');\r\n //read the whole info about templates and get template names for admin only\r\n $templates_info = $CI->mail_model->Get_system_email_data('ADMIN_TEMPLATES_NAMES');\r\n return $templates_info;\r\n }", "function modifyUITemplate(&$template) {\r\n\t\t$template->set('create',false);\r\n\t\t$template->set('usedomain',false);\r\n\t\t$template->set('useemail',true);\r\n\t}", "protected function process_mailtemplate__list()\n {\n global $index_includes;\n\n $l_gets = $this->m_modreq->get_gets();\n\n $l_rights = [\n isys_auth::EDIT => $this->get_auth()\n ->is_allowed_to(isys_auth::EDIT, 'mailtemplate'),\n isys_auth::DELETE => $this->get_auth()\n ->is_allowed_to(isys_auth::DELETE, 'mailtemplate')\n ];\n\n $l_url_params = [\n C__GET__MODULE_ID => C__MODULE__MAINTENANCE,\n C__GET__TREE_NODE => $l_gets[C__GET__TREE_NODE],\n C__GET__SETTINGS_PAGE => C__MAINTENANCE__MAILTEMPLATE,\n C__GET__ID => '[{isys_maintenance_mailtemplate__id}]'\n ];\n\n $l_list_headers = [\n 'isys_maintenance_mailtemplate__id' => 'ID',\n 'isys_maintenance_mailtemplate__title' => 'LC__MAINTENANCE__MAILTEMPLATE__TITLE',\n ];\n\n $l_result = $this->m_dao->get_mailtemplates();\n $l_result_count = count($l_result);\n\n /** @var isys_component_list $l_list */\n $l_list = new isys_component_list(null, $l_result);\n\n $l_list->config($l_list_headers, isys_helper_link::create_url($l_url_params), '[{isys_maintenance_mailtemplate__id}]');\n\n if ($l_list->createTempTable())\n {\n $this->m_tpl->assign('list', $l_list->getTempTableHtml());\n } // if\n\n isys_component_template_navbar::getInstance()\n ->set_active($l_rights[isys_auth::EDIT], C__NAVBAR_BUTTON__NEW)\n ->set_active(($l_rights[isys_auth::EDIT] && $l_result_count > 0), C__NAVBAR_BUTTON__EDIT)\n ->set_active(($l_rights[isys_auth::DELETE] && $l_result_count > 0), C__NAVBAR_BUTTON__DELETE)\n ->set_visible(true, C__NAVBAR_BUTTON__NEW)\n ->set_visible(true, C__NAVBAR_BUTTON__EDIT)\n ->set_visible(true, C__NAVBAR_BUTTON__DELETE);\n\n $this->m_tpl->assign('content_title', _L('LC__MAINTENANCE__MAILTEMPLATE'));\n\n $index_includes['contentbottomcontent'] = __DIR__ . DS . 'templates' . DS . 'mailtemplate_list.tpl';\n }", "public function deleteCustomVerification($name)\r\n {\r\n return $this->client->deleteCustomVerificationEmailTemplate([\r\n 'TemplateName' => $name, // REQUIRED\r\n ]);\r\n }", "public function remove($gdpr_info) {\n $this->load->model('localisation/language');\n\n $language_info = $this->model_localisation_language->getLanguage($gdpr_info['language_id']);\n\n if ($language_info) {\n $language_code = $language_info['code'];\n } else {\n $language_code = $this->config->get('config_language');\n }\n\n $language = new Language($language_code);\n $language->load($language_code);\n $language->load('mail/gdpr_delete');\n\n if ($this->config->get('config_logo')) {\n $data['logo'] = html_entity_decode($this->config->get('config_logo'), ENT_QUOTES, 'UTF-8');\n } else {\n $data['logo'] = '';\n }\n\n $data['text_request'] = $language->get('text_request');\n\n $this->load->model('customer/customer');\n\n $customer_info = $this->model_customer_customer->getCustomerByEmail($gdpr_info['email']);\n\n if ($customer_info) {\n $data['text_hello'] = sprintf($language->get('text_hello'), html_entity_decode($customer_info['firstname'], ENT_QUOTES, 'UTF-8'));\n } else {\n $data['text_hello'] = sprintf($language->get('text_hello'), $language->get('text_user'));\n }\n\n $data['text_delete'] = $language->get('text_delete');\n $data['text_thanks'] = $language->get('text_thanks');\n $data['text_contact'] = $language->get('text_contact');\n\n $data['button_contact'] = $language->get('button_contact');\n\n $this->load->model('setting/store');\n\n $store_info = $this->model_setting_store->getStore($gdpr_info['store_id']);\n\n if ($store_info) {\n $data['store_name'] = html_entity_decode($store_info['name'], ENT_QUOTES, 'UTF-8');\n $data['store_url'] = $store_info['url'];\n $data['contact'] = $store_info['url'] . 'index.php?route=information/contact';\n } else {\n $data['store_name'] = html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8');\n $data['store_url'] = HTTPS_CATALOG;\n $data['contact'] = HTTPS_CATALOG . 'index.php?route=information/contact';\n }\n\n $mail = new Mail($this->config->get('config_mail_engine'));\n $mail->parameter = $this->config->get('config_mail_parameter');\n $mail->smtp_hostname = $this->config->get('config_mail_smtp_hostname');\n $mail->smtp_username = $this->config->get('config_mail_smtp_username');\n $mail->smtp_password = html_entity_decode($this->config->get('config_mail_smtp_password'), ENT_QUOTES, 'UTF-8');\n $mail->smtp_port = $this->config->get('config_mail_smtp_port');\n $mail->smtp_timeout = $this->config->get('config_mail_smtp_timeout');\n\n $mail->setTo($gdpr_info['email']);\n $mail->setFrom($this->config->get('config_email'));\n $mail->setSender(html_entity_decode($this->config->get('config_name'), ENT_QUOTES, 'UTF-8'));\n $mail->setSubject(html_entity_decode(sprintf($language->get('text_subject'), $this->config->get('config_name')), ENT_QUOTES, 'UTF-8'));\n $mail->setHtml($this->load->view('mail/gdpr_delete', $data));\n $mail->send();\n }", "public function deleteEmailTemplate(Request $request) {\n $conditions = ['id' => $request->template_id];\n $template = $this->commonObj->find('EmailTemplate', $conditions);\n if(!$template) {\n return jsonResponse('not found', 201, []);\n }\n if($template->deletable==true) {\n return jsonResponse('can\\'t delete this template', 400, []);\n }\n $this->commonObj->destroy('EmailTemplate', $conditions);\n return jsonResponse('done', 201, []);\n }", "function pmproex_pmpro_email_filter($email)\r\n{\r\n\tglobal $wpdb;\r\n \t\r\n\t//only update admin confirmation emails\r\n\tif(strpos($email->template, \"checkout\") !== false && strpos($email->template, \"_admin\") !== false)\r\n\t{\r\n\t\t//get the user_id from the email\r\n\t\t$order_id = $email->data['invoice_id'];\r\n\t\tif(!empty($order_id))\r\n\t\t{\r\n\t\t\t$order = new MemberOrder($order_id);\r\n\t\t\t\t\t\t\r\n\t\t\t//add to bottom of email\r\n\t\t\tif(!empty($order->notes))\r\n\t\t\t{\r\n\t\t\t\t$email->body .= \"<p>Order Notes</p><hr /><p>\" . $order->notes . \"</p>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\t\r\n\treturn $email;\r\n}", "function simplenews_subscription_list_remove($form, &$form_state) {\n $form['emails'] = array(\n '#type' => 'textarea',\n '#title' => t('Email addresses'),\n '#cols' => 60,\n '#rows' => 5,\n '#description' => t('Email addresses must be separated by comma, space or newline.'),\n );\n\n $form['newsletters'] = array(\n '#type' => 'fieldset',\n '#description' => t('Unsubscribe from'),\n '#tree' => TRUE,\n );\n\n foreach (simplenews_newsletter_get_all() as $newsletter) {\n $form['newsletters'][$newsletter->newsletter_id] = array(\n '#type' => 'checkbox',\n '#title' => check_plain($newsletter->name),\n '#description' => check_plain($newsletter->description),\n );\n }\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Unsubscribe'),\n );\n return $form;\n}", "protected function deleteOwnAccount4()\n\t{\t\n\t\tglobal $ilUser, $ilAuth, $ilSetting, $ilLog;\n\t\t\n\t\tif(!(bool)$ilSetting->get('user_delete_own_account') ||\n\t\t\t$ilUser->getId() == SYSTEM_USER_ID ||\n\t\t\t!$ilUser->hasDeletionFlag())\n\t\t{\n\t\t\t$this->ctrl->redirect($this, \"showGeneralSettings\");\n\t\t}\n\t\t\n\t\t// build notification\n\t\t\n\t\tinclude_once \"./Services/Notification/classes/class.ilSystemNotification.php\";\n\t\t$ntf = new ilSystemNotification();\n\t\t$ntf->setLangModules(array(\"user\"));\t\t\n\t\t$ntf->addAdditionalInfo(\"profile\", $ilUser->getProfileAsString($this->lng), true);\t\t\n\t\t\n\t\t// mail message\n\t\tilDatePresentation::setUseRelativeDates(false);\n\t\t$ntf->setIntroductionDirect(\n\t\t\tsprintf($this->lng->txt(\"user_delete_own_account_email_body\"), \n\t\t\t\t$ilUser->getLogin(), \n\t\t\t\tILIAS_HTTP_PATH, \n\t\t\t\tilDatePresentation::formatDate(new ilDateTime(time(), IL_CAL_UNIX))));\n\t\t\n\t\t$message = $ntf->composeAndGetMessage($ilUser->getId(), null, null, true);\n\t\t$subject = $this->lng->txt(\"user_delete_own_account_email_subject\");\t\n\t\t\n\t\t\n\t\t// send notification\n\t\t\n\t\tinclude_once \"Services/Mail/classes/class.ilMail.php\";\n\t\t$mail = new ilMail(ANONYMOUS_USER_ID);\n\t\t\n\t\t$user_email = $ilUser->getEmail();\t\t\n\t\t$admin_mail = $ilSetting->get(\"user_delete_own_account_email\");\t\t\n\t\t\n\t\t// to user, admin as bcc\n\t\tif($user_email)\n\t\t{\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t$mail->sendMimeMail($user_email, null, $admin_mail, $subject, $message, null, true);\t\t\n\t\t}\n\t\t// admin only\n\t\telse if($admin_mail)\n\t\t{\n\t\t\t$mail->sendMimeMail($admin_mail, null, null, $subject, $message, null, true);\t\t\n\t\t}\n\t\t\n\t\t$ilLog->write(\"Account deleted: \".$ilUser->getLogin().\" (\".$ilUser->getId().\")\");\n\t\t\t\t\n\t\t$ilUser->delete();\n\n\t\t// terminate session\n\t\t$ilAuth->logout();\n\t\tsession_destroy();\t\t\n\t\t\n\t\tilUtil::redirect(\"login.php?accdel=1\");\t\t \t\t\n\t}", "public function get_templete($template_type = '', $param = array()) {\n //-----------------------------------------------\n // Getting Template Contents from the Database\n //-----------------------------------------------\n $CI = &get_instance();\n $mail_body = $CI->db->select(\"subject,template\")->get_where('email_template', array(\"type\" => $template_type))->row_array();\n \n \n /*\n //------------------------------------------\n // Format of Returned Data\n //------------------------------------------\n $mail_body = array();\n $mail_body['template'] = \"YOUR EMAIL TEMPLATE CONTENT\";\n $mail_body['subject'] = \"YOUR EMAIL SUBJECT\";\n \n */\n \n \n if (is_array($mail_body) && count($mail_body) > 0) {\n \n $template = html_entity_decode($mail_body['template']); \n $subject = $mail_body['subject'];\n \n //-----------------------------------------------\n // Replacing the VARIABLE with proper VALUE\n //-----------------------------------------------\n foreach ($param as $key => $value) {\n $template = str_replace($key, $value, $template);\n $subject = str_replace($key, $value, $subject);\n }\n \n //-----------------------------------------------\n // For Template Content VARIABLE Replacement\n //-----------------------------------------------\n $template = str_replace(\"{{SITE_LOGO}}\", SITE_LOGO , $template);\n $template = str_replace(\"{{SITE_TITLE}}\", SITE_TITLE, $template);\n $template = str_replace(\"{{SITE_LINK}}\", SITE_LINK, $template);\n \n //-----------------------------------------------\n // For Email Subject\n //-----------------------------------------------\n $subject = str_replace(\"{{SITE_TITLE}}\", SITE_TITLE, $subject);\n \n \n // Returned Parameters\n $mail = array(\n 'subject' => $subject,\n 'template' => $template\n );\n \n return $mail;\n } else {\n return FALSE;\n }\n }", "public function unlinkAccount()\n {\n }", "public function run()\n {\n DB::table('email_templates')->truncate();\n\n $templates = [\n\t\t\t[\n\t\t\t\t'title' => 'New account created',\n\t\t\t\t'slug' => 'newaccount',\n\t\t\t\t'description' => 'This email will be sent to users that are created via a site administrator under users page',\n\t\t\t\t'email_subject' => 'New account created at '.crminfo('name'),\n\t\t\t\t'email_body' => 'Hi {{ $user->full_name }},<br>\n<br>\nA new account has been created for you by a site administrator at <a href=\\'{{ $crm->url }}\\'>{{ $crm->crmname }}</a>.<br>\n<br>\nPlease use the following credentials to sign in:<br>\nUsername: <b>{{ $user->username }}</b><br>\nPassword: <b>{{ $password }}</b>\n<br>\n<br>\nYou may sign in by visiting the following link: <a href=\\'{{ $crm->url . \\'login\\'}}\\'>{{ $crm->url . \\'login\\'}}</a>\n<br>\n<br>\nPlease change your password by visiting your edit account page: <a href=\\'{{ $edit_link }}\\'>{{ $edit_link }}</a><br>\nor request a Password Reset Link at: <a href=\\'{{ $reset_link }}\\'>{{ $reset_link }}</a>\n<br>\n<br>\nHappy hacking!<br>\n{{ $crm->crmname }}\n<br>\n<br>\n<hr>\n<br>\n<br>\n{{ $crm->orgname }}<br>\n{!! $crm->address !!}',\n\t\t\t\t'syntax_help' => '<b>Required variables to be included:</b> $reset_link (to send the reset password link), $edit_link (to send the edit account link), $password (to send the password set for user)<br />\n\t\t\t\t<b>Other:</b> $user->username, $user->full_name, $user->email, $user->last_login',\n\t\t\t\t'locale' => 'en'\n\t\t\t],\n\t\t\t[\n\t\t\t\t'title' => 'Email confirmation',\n\t\t\t\t'slug' => 'confirmation',\n\t\t\t\t'description' => 'This email will be sent to users who register via the the crm registration form.',\n\t\t\t\t'email_subject' => 'Email confirmation required',\n\t\t\t\t'email_body' => 'Thanks for signing up!<br>\n<br>\nYou are receiving this email because you have recently requested to create an account in {{ $crm->crmname }}.<br>\n<br>\nYour username is <b>{{ $user->username }}</b>. To confirm your account and log in, please visit <a href=\\'{{ $confirmation_link }}\\'>{{ $confirmation_link }}</a>.<br>\n<br>\nHappy hacking!<br>\n{{ $crm->crmname }}\n<br>\n<br>\n<hr>\n<br>\n<br>\n{{ $crm->orgname }}<br>\n{!! $crm->address !!}',\n\t\t\t\t'syntax_help' => '<b>Required variables to be included:</b> $confirmation_link (to send the email confirmation link)<br />\n\t\t\t\t<b>Other:</b> $user->username, $user->full_name, $user->email, $user->last_login',\n\t\t\t\t'locale' => 'en'\n\t\t\t],\n\t\t];\n\n\t\tforeach ($templates as $template) {\n\t\t\tEmailTemplate::create($template);\n\t\t}\n\n\n }", "function webform_confirm_email_delete($node, $email = array()) {\n\n $form_state = array(\n 'build_info' => array(\n 'args' => array(\n $node,\n $email,\n ),\n ),\n 'submit_handlers' => array(\n 'webform_email_delete_form_submit',\n '_webform_confirm_email_delete_submit',\n ),\n );\n $form = drupal_build_form(\n 'webform_email_delete_form',\n $form_state\n );\n\n return $form;\n}", "public function getResetSubUserPasswordEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_RESET_SUBUSER_PASSWORD_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "function admin_email_template() {\n\t\t$this->layout=\"admin\";\n\t\tConfigure::write('debug', 0);\n\t\t$staticdatas = $this->EmailTemplate->find('all');\n\t\t//print_r($staticdatas);die;\n\t\t$this->set('manageClass','selected');\n\t\t$this->set(\"staticdatas\",$staticdatas);\n\t}", "public function emailtemplatedelete(Request $request,$id=0)\n {\n $del_qry = DB::table('email_templates')->where('id', $id)->delete();\n if($del_qry)\n {\n $request->session()->flash('admin_successmsgdata_sess', 'Template Deleted successfully.');\n }\n return redirect(ADMINSEPARATOR.'/email-template');\n }", "public function getNewMail()\n {\n return $this->get(self::_NEW_MAIL);\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 destroy($email_temp_id)\n {\n $emailTemplate = EmailTemplate::find($email_temp_id);\n if (empty($emailTemplate)) {\n return Response()->json(['status'=>false, 'message' => 'Email Template is not exists', 'response' => []], 200);\n }\n $emailTemplate->delete();\n return response()->json(['status'=>true, 'message'=>'Email Template Deleted', 'response'=>compact('emailTemplate')], 200);\n }", "public function deleteTemplate ()\n {\n // Recovering template id\n $target =Input::get('data'); \n \n // Removing template\n $num = DB::update(\"DELETE FROM ezz_templates where id_template = $target\");\n return response () -> json ([\n 'borradas' => $num,\n 'status' => 'success'\n ],200);\n }", "static public function ctrEliminarTipoContacto(){\n\t\tif(isset($_POST[\"accionTipoContacto\"]) && $_POST[\"accionTipoContacto\"] == \"eliminar\"){\n\t\t\t$tabla =\"vtama_tipo_contacto\";\n\t\t\t$datos = $_POST[\"codigoTipoContacto\"];\n\t\t\t$respuesta = ModeloTipoContacto::mdlEliminarTipoContacto($tabla, $datos);\n\t\t\treturn $respuesta;\n\t\t}//if\n\t}", "private function sendMailDeleteUser($data) {\n #data to send in email\n $email_array = array(\n 'server_url' => \\Config::get('variable.SERVER_URL'),\n 'from' => \\Config::get('variable.ADMIN_EMAIL'),\n 'to' =>trim($data['data']['email']),\n 'from_name' =>'Episodic' ,\n 'subject' => 'Episodic',\n 'view' => 'mail.delete_user',\n 'name' => 'Episodic',\n 'data' => $data[\"user_data\"]\n );\n #Send Verification Email\n return $this->sendEmail($email_array); #Send Verification Email \n }", "function delContact ($p) {\r\n\r\n\t// pre checks\r\n\tif (!isAdmin()) return false;\r\n\tif (!isset($p['user'])) return false;\r\n\tif (empty($p['user'])) return false;\r\n\r\n\t// security\r\n\t$userPrep = prepareDBValue($p['user']);\r\n\r\n\t// get contact id\r\n\t$dbResult = queryDB('select id from contacts where username=\\'' . $userPrep . '\\'');\r\n\tif (!isset($dbResult[0]['id'])) return false;\r\n\t$userID = $dbResult[0]['id'];\r\n\r\n\t// delete all notifications assigned to the posted contact\r\n\tqueryDB('delete from notifications_to_contacts where contact_id=\\'' . $userID . '\\'');\r\n\r\n\t// disable all notifications and change usernames of all notifications owned by this user\r\n\tqueryDB('update notifications set active=\\'0\\', username=\\'' . prepareDBValue('[' . $p['user'] . ']') . '\\' where username=\\'' . $userPrep . '\\'');\r\n\r\n\t// finally, delete the user\r\n\tqueryDB('delete from contacts where id=\\'' . $userID . '\\'');\r\n\r\n\treturn true;\r\n\r\n}", "function mailmaga_x_deactivation(){\n\t$mailmaga_x_data = new Mailmaga_x_install();\n\t$mailmaga_x_data->deactivation();\n}", "public function delete()\n\t{\n\t\t/* Check permission */\n\t\t\\IPS\\Dispatcher::i()->checkAcpPermission( 'template_delete' );\n\n\t\t/* Make sure the user confirmed the deletion */\n\t\t\\IPS\\Request::i()->confirmedDelete();\n\n\t\t$key = \\IPS\\Request::i()->t_key;\n\t\t$return = array(\n\t\t\t'template_content' => NULL,\n\t\t\t'template_id' \t => NULL\n\t\t);\n\t\t\n\t\ttry\n\t\t{\n\t\t\t\\IPS\\cms\\Templates::load( $key )->delete();\n\t\t\t\n\t\t\t/* Now reload */\n\t\t\ttry\n\t\t\t{\n\t\t\t\t$template = \\IPS\\cms\\Templates::load( $key );\n\t\t\t\t\n\t\t\t\t$return['template_location'] = $template->location;\n\t\t\t\t$return['template_content'] = $template->content;\n\t\t\t\t$return['template_id']\t\t = $template->id;\n\t\t\t\t$return['InheritedValue'] = ( $template->user_added ) ? 'custom' : ( $template->user_edited ? 'changed' : 0 );\n\t\t\t}\n\t\t\tcatch( \\OutOfRangeException $ex )\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch( \\OutOfRangeException $ex )\n\t\t{\n\t\t\t\\IPS\\Output::i()->error( 'node_error', '3T285/4', 500, '' );\n\t\t}\n\n\t\t/* Clear guest page caches */\n\t\t\\IPS\\Data\\Cache::i()->clearAll();\n\n\t\tif( \\IPS\\Request::i()->isAjax() )\n\t\t{\n\t\t\t\\IPS\\Output::i()->json( $return );\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\\IPS\\Output::i()->redirect( \\IPS\\Http\\Url::internal( 'app=cms&module=pages&controller=templates' ), 'completed' );\n\t\t}\n\t}", "protected function process_mailtemplate()\n {\n $l_gets = $this->m_modreq->get_gets();\n $l_posts = $this->m_modreq->get_posts();\n\n $l_id = isys_glob_which_isset($l_gets[C__GET__ID], $l_posts[C__GET__ID]);\n $l_navmode = isys_glob_which_isset($l_gets[C__GET__NAVMODE], $l_posts[C__GET__NAVMODE]);\n\n // This will happen, if a user uses the checkboxes and the \"edit\" buttno.\n if (is_array($l_id))\n {\n $l_id = $l_id[0];\n } // if\n\n if (!$l_navmode && $l_id > 0)\n {\n $l_navmode = C__NAVMODE__EDIT;\n } // if\n\n switch ($l_navmode)\n {\n default:\n $this->process_mailtemplate__list();\n break;\n\n case C__NAVMODE__EDIT:\n $this->process_mailtemplate__edit($l_id);\n break;\n\n case C__NAVMODE__NEW:\n $this->process_mailtemplate__edit();\n break;\n\n case C__NAVMODE__SAVE:\n $this->process_mailtemplate__edit($this->process_mailtemplate__save($l_posts));\n break;\n\n case C__NAVMODE__DELETE:\n $this->process_mailtemplate__delete(isys_glob_which_isset($l_gets[C__GET__ID], $l_posts[C__GET__ID]));\n $this->process_mailtemplate__list();\n break;\n } // switch\n\n $this->m_tpl->smarty_tom_add_rule('tom.content.navbar.cRecStatus.p_bInvisible=1');\n }", "function get_mail_template( $varname ) {\n // based on the received template name\n $query = $this->db->query(\"Select * from email_templates where template_name='$varname'\");\n\n\t return\t$row = $query->row_array(); \n\t\t\n\t}", "public function getAdminEmailTemplate ()\n {\n $emailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/admin_notification/admin_email_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $emailTemplate;\n }", "function InfGetEmailTemplate($template_id) {\n $template = Infusionsoft_APIEmailService::getEmailTemplate($template_id);\n\treturn $template;\n}", "function emailTemplate($username, $password, $idcode ,$expiredate ,$package, $typePackage, $note,$isMagDevice)\n{\n\n if ($typePackage == \"IPTV\") {\n if ($isMagDevice == \"1\") {\n $corpo_credenziali = '<b>Link Portal:</b> ';\n $corpo_credenziali .= \"http://satopen-iptv.ddns.net:8000/c/\";\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"IPTV $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>Iptv Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our Enigma 2 Plugin http://satopen-panel.ddns.net/Download/IptvGate_World.ipk<br>Automatic Update Of Channel List, Personalizate Bouquet Channel, Play & Pause, Forward & Rewind, Search VOD, Account Info and many more<br>';\n \n }\n else {\n $corpo_credenziali = '<b>Username:</b> ';\n $corpo_credenziali .= \"$username\";\n $corpo_credenziali .= '<br><b>Password:</b> ';\n $corpo_credenziali .= \"$password\";\n $corpo_credenziali .= '<br><br><b>Your IPTV Account Data - AutoScript Enigma2:</b> ';\n $corpo_credenziali .= \"wget -O /etc/enigma2/iptv.sh \\\"http://satopen-iptv.ddns.net:8000/get.php?username=$username&password=$password&type=enigma22_script&output=mpegts\\\" && chmod 777 /etc/enigma2/iptv.sh && /etc/enigma2/iptv.sh\";\n $corpo_credenziali .= '<br><br><b>Your IPTV Account Data - Link VLC/Android/IOS/Smart-Tv Player:</b> ';\n $corpo_credenziali .= \"http://satopen-iptv.ddns.net:8000/get.php?username=$username&password=$password&type=m3u_plus&output=mpegts\";\n $corpo_credenziali .= '<br><br><b>Plugin WorldTeam 2.0:</b> ';\n $corpo_credenziali .= \"wget -q -O /tmp/IptvGate_World.ipk http://app-world.dyndns.tv/addons/plugin/tar/IptvGate_World.ipk; chmod 777 /tmp/IptvGate_World.ipk; opkg install /tmp/IptvGate_World.ipk; sleep 5; killall -9 enigma2\";\n $corpo_credenziali .= '<br><b>After open the Plugina and insert your Username and Password</b>';\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"IPTV $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>Iptv Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our Enigma 2 Plugin http://satopen-panel.ddns.net/Download/IptvGate_World.ipk<br>Automatic Update Of Channel List, Personalizate Bouquet Channel, Play & Pause, Forward & Rewind, Search VOD, Account Info and many more<br>';\n } \n }\n else {\n $corpo_credenziali = '<b>Username:</b> ';\n $corpo_credenziali .= \"$username\";\n $corpo_credenziali .= '<br><b>Password:</b> ';\n $corpo_credenziali .= \"$password\";\n $corpo_credenziali .= '<br><br><b>Your CardSharing Account Data - CLine:</b><br>';\n $corpo_credenziali .= \"C: satopen-client.ddns.net 23000 $username $password\";\n $corpo_credenziali .= '<br><br><b>Package:</b> ';\n $corpo_credenziali .= \"Cardsharing $package\";\n $corpo_credenziali .= '<br><b>Expire Date:</b> ';\n $corpo_credenziali .= \"$expiredate (Year/Month/Day)\";\n $corpo_credenziali .= '<br><b>Payment Id-Code:</b> ';\n $corpo_credenziali .= \"$idcode\";\n $corpo_credenziali .= '<br><b>Note:</b> ';\n $corpo_credenziali .= \"$note\";\n $corpo_credenziali .= '<br><br><b>CardSharing Note:</b> ';\n $corpo_credenziali .= '<br>Usage Google DNS on your device or router: 8.8.8.8 (Primary) 8.8.4.4 (Secondary)<br>Download and Install Our CCcam.prio in your decoder for fast zapping and zero freeze<br>http://www.satopen.cc/setup-cccam.html<br>';\n\n }\n\n \n \n $GLOBALS['head_email'] = '<html xmlns=\"http://www.w3.org/1999/xhtml\"> <head>\n\t\t\t\t <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n\t\t\t\t <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\" />\n\t\t\t\t <title>SatOpen Email</title>\n\t\t\t\t <style type=\"text/css\"> \n\t\t\t\t img {\n\t\t\t\t max-width: 600px;\n\t\t\t\t outline: none;\n\t\t\t\t text-decoration: none;\n\t\t\t\t -ms-interpolation-mode: bicubic;\n\t\t\t\t }\n\n\t\t\t\t a {\n\t\t\t\t border: 0;\n\t\t\t\t outline: none;\n\t\t\t\t }\n\n\t\t\t\t a img {\n\t\t\t\t border: none;\n\t\t\t\t }\n\n\t\t\t\t /* General styling */\n\n\t\t\t\t td, h1, h2, h3 {\n\t\t\t\t font-family: Helvetica, Arial, sans-serif;\n\t\t\t\t font-weight: 400;\n\t\t\t\t }\n\n\t\t\t\t td {\n\t\t\t\t font-size: 13px;\n\t\t\t\t line-height: 19px;\n\t\t\t\t text-align: left;\n\t\t\t\t }\n\n\t\t\t\t body {\n\t\t\t\t -webkit-font-smoothing:antialiased;\n\t\t\t\t -webkit-text-size-adjust:none;\n\t\t\t\t width: 100%;\n\t\t\t\t height: 100%;\n\t\t\t\t color: #37302d;\n\t\t\t\t background: #ffffff;\n\t\t\t\t }\n\n\t\t\t\t table {\n\t\t\t\t border-collapse: collapse !important;\n\t\t\t\t }\n\n\n\t\t\t\t h1, h2, h3, h4 {\n\t\t\t\t padding: 0;\n\t\t\t\t margin: 0;\n\t\t\t\t color: #444444;\n\t\t\t\t font-weight: 400;\n\t\t\t\t line-height: 110%;\n\t\t\t\t }\n\n\t\t\t\t h1 {\n\t\t\t\t font-size: 35px;\n\t\t\t\t }\n\n\t\t\t\t h2 {\n\t\t\t\t font-size: 30px;\n\t\t\t\t }\n\n\t\t\t\t h3 {\n\t\t\t\t font-size: 24px;\n\t\t\t\t }\n\n\t\t\t\t h4 {\n\t\t\t\t font-size: 18px;\n\t\t\t\t font-weight: normal;\n\t\t\t\t }\n\n\t\t\t\t .important-font {\n\t\t\t\t color: #21BEB4;\n\t\t\t\t font-weight: bold;\n\t\t\t\t }\n\n\t\t\t\t .hide {\n\t\t\t\t display: none !important;\n\t\t\t\t }\n\n\t\t\t\t .force-full-width {\n\t\t\t\t width: 100% !important;\n\t\t\t\t }\n\n\t\t\t\t </style>\n\n\t\t\t\t <style type=\"text/css\" media=\"screen\">\n\t\t\t\t @media screen {\n\t\t\t\t\t@import url(http://fonts.googleapis.com/css?family=Open+Sans:400);\n\n\t\t\t\t\t/* Thanks Outlook 2013! */\n\t\t\t\t\ttd, h1, h2, h3 {\n\t\t\t\t\t font-family: Open Sans, Helvetica Neue, Arial, sans-serif !important;\n\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t </style>\n\n\t\t\t\t <style type=\"text/css\" media=\"only screen and (max-width: 600px)\">\n\t\t\t\t /* Mobile styles */\n\t\t\t\t @media only screen and (max-width: 600px) {\n\n\t\t\t\t table[class=\"w320\"] {\n\t\t\t\t\twidth: 320px !important;\n\t\t\t\t }\n\n\t\t\t\t table[class=\"w300\"] {\n\t\t\t\t\twidth: 300px !important;\n\t\t\t\t }\n\n\t\t\t\t table[class=\"w290\"] {\n\t\t\t\t\twidth: 290px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class=\"w320\"] {\n\t\t\t\t\twidth: 320px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class~=\"mobile-padding\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-left\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-right\"] {\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-left-only\"] {\n\t\t\t\t\tpadding-left: 14px !important;\n\t\t\t\t\tpadding-right: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-padding-right-only\"] {\n\t\t\t\t\tpadding-right: 14px !important;\n\t\t\t\t\tpadding-left: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-block\"] {\n\t\t\t\t\tdisplay: block !important;\n\t\t\t\t\twidth: 100% !important;\n\t\t\t\t\ttext-align: left !important;\n\t\t\t\t\tpadding-left: 0 !important;\n\t\t\t\t\tpadding-right: 0 !important;\n\t\t\t\t\tpadding-bottom: 15px !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-no-padding-bottom\"] {\n\t\t\t\t\tpadding-bottom: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class~=\"mobile-center\"] {\n\t\t\t\t\ttext-align: center !important;\n\t\t\t\t }\n\n\t\t\t\t table[class*=\"mobile-center-block\"] {\n\t\t\t\t\tfloat: none !important;\n\t\t\t\t\tmargin: 0 auto !important;\n\t\t\t\t }\n\n\t\t\t\t *[class*=\"mobile-hide\"] {\n\t\t\t\t\tdisplay: none !important;\n\t\t\t\t\twidth: 0 !important;\n\t\t\t\t\theight: 0 !important;\n\t\t\t\t\tline-height: 0 !important;\n\t\t\t\t\tfont-size: 0 !important;\n\t\t\t\t }\n\n\t\t\t\t td[class*=\"mobile-border\"] {\n\t\t\t\t\tborder: 0 !important;\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t </style>\n\t\t\t\t</head>';\n\nif ($typePackage == \"IPTV\") {\n $corpo_email = $GLOBALS['head_email'];\n $corpo_email .= ' \n\t\t\t\t<body class=\"body\" style=\"padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none\" bgcolor=\"#ffffff\">\n\t\t\t\t<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t <td align=\"center\" valign=\"top\" bgcolor=\"#ffffff\" width=\"100%\">\n\n\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background:#1f1f1f\" width=\"100%\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-no-padding-bottom mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 10px 10px 20px;\">\n\t\t\t\t\t\t <a data-click-track-id=\"1262\" href=\"#\" style=\"text-decoration:none;\">\n\t\t\t\t\t\t <img src=\"http://www.satopen.cc/uploads/1/3/3/0/13301587/1460553356.png\" width=\"142\" height=\"30\" alt=\"Your Logo\"/>\n\t\t\t\t\t\t </a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 15px 10px 10px\">\n\t\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobile-center-block\" align=\"right\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\">\n\t\t\t\t\t\t\t<a data-click-track-id=\"2952\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">\n\t\t\t\t\t\t\t<img src=\"http://keenthemes.com/assets/img/emailtemplate/social_facebook.png\" width=\"30\" height=\"30\" alt=\"social icon\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"left\" class=\"mobile-padding\" style=\"padding:20px 20px 0\">\n\n\t\t\t\t\t\t <br class=\"mobile-hide\" />\n\n\t\t\t\t\t\t <h1>Account Data on SatOpen.cc!</h1>\n\n\t\t\t\t\t\t <br>\n\t\t\t\t\t\t <b>Your Data for Help Area:</b><br><br>';\n $corpo_email .= $corpo_credenziali;\n $corpo_email .= '\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t <br>\n\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#ffffff\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td style=\"width:130px;background:#D84A38;\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t <v:rect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"#\" style=\"height:33px;v-text-anchor:middle;width:130px;\" stroke=\"f\" fillcolor=\"#D84A38\">\n\t\t\t\t\t\t\t <w:anchorlock/>\n\t\t\t\t\t\t\t <center>\n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t <a href=\"http://satopen.cc\"\n\t\t\t\t\t\t\tstyle=\"background-color:#D84A38;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:33px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;\">SatOpen.CC</a>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t </center>\n\t\t\t\t\t\t\t </v:rect> \n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t <td width=\"316\" style=\"background-color:#ffffff; font-size:0; line-height:0;\">&nbsp;</td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <br><br>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class=\"mobile-hide\" style=\"padding-top:20px;padding-bottom:0;vertical-align:bottom\">\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\" valign=\"bottom\" width=\"220\" style=\"padding-right:20px; padding-bottom:0; vertical-align:bottom;\">\n\t\t\t\t\t\t <img style=\"display:block\" src=\"https://www.filepicker.io/api/file/AvB8yENR7OdiUqonW05y\" width=\"174\" height=\"294\" alt=\"iphone\"/>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td valign=\"top\" style=\"background-color:#f8f8f8;border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background-color:#1f1f1f;\">\n\t\t\t\t\t <center>\n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\" style=\"height:100%;color:#ffffff\" bgcolor=\"#1f1f1f\" >\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"right\" valign=\"middle\" class=\"mobile-padding\" style=\"font-size:12px;padding:20px; background-color:#1f1f1f; color:#ffffff; text-align:left; \">\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">Facebook</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Support</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t</table>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\t';\n}\n\nelse {\n $corpo_email = $GLOBALS['head_email'];\n $corpo_email .= ' \n\t\t\t\t<body class=\"body\" style=\"padding:0; margin:0; display:block; background:#ffffff; -webkit-text-size-adjust:none\" bgcolor=\"#ffffff\">\n\t\t\t\t<table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t <td align=\"center\" valign=\"top\" bgcolor=\"#ffffff\" width=\"100%\">\n\n\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background:#1f1f1f\" width=\"100%\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-no-padding-bottom mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 10px 10px 20px;\">\n\t\t\t\t\t\t <a data-click-track-id=\"1262\" href=\"#\" style=\"text-decoration:none;\">\n\t\t\t\t\t\t <img src=\"http://www.satopen.cc/uploads/1/3/3/0/13301587/1460553356.png\" width=\"142\" height=\"30\" alt=\"Your Logo\"/>\n\t\t\t\t\t\t </a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td valign=\"top\" class=\"mobile-block mobile-center\" width=\"270\" style=\"background:#1f1f1f;padding:10px 15px 10px 10px\">\n\t\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mobile-center-block\" align=\"right\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\">\n\t\t\t\t\t\t\t<a data-click-track-id=\"2952\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">\n\t\t\t\t\t\t\t<img src=\"http://keenthemes.com/assets/img/emailtemplate/social_facebook.png\" width=\"30\" height=\"30\" alt=\"social icon\"/>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t <center>\n\t\t\t\t\t <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\">\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"left\" class=\"mobile-padding\" style=\"padding:20px 20px 0\">\n\n\t\t\t\t\t\t <br class=\"mobile-hide\" />\n\n\t\t\t\t\t\t <h1>Account Data on SatOpen.cc!</h1>\n\n\t\t\t\t\t\t <br>\n\t\t\t\t\t\t <b>Your Data for Help Area:</b><br><br>';\n $corpo_email .= $corpo_credenziali;\n $corpo_email .= '\n\n\t\t\t\t\t\t<br>\n\t\t\t\t\t\t <br>\n\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\" bgcolor=\"#ffffff\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td style=\"width:130px;background:#D84A38;\">\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t <v:rect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"#\" style=\"height:33px;v-text-anchor:middle;width:130px;\" stroke=\"f\" fillcolor=\"#D84A38\">\n\t\t\t\t\t\t\t <w:anchorlock/>\n\t\t\t\t\t\t\t <center>\n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t <a href=\"http://satopen.cc\"\n\t\t\t\t\t\t\tstyle=\"background-color:#D84A38;color:#ffffff;display:inline-block;font-family:sans-serif;font-size:18px;font-weight:bold;line-height:33px;text-align:center;text-decoration:none;width:130px;-webkit-text-size-adjust:none;\">SatOpen.cc</a>\n\t\t\t\t\t\t\t <!--[if mso]>\n\t\t\t\t\t\t\t </center>\n\t\t\t\t\t\t\t </v:rect> \n\t\t\t\t\t\t\t <![endif]-->\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t <td width=\"316\" style=\"background-color:#ffffff; font-size:0; line-height:0;\">&nbsp;</td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t <br><br>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t\t<td class=\"mobile-hide\" style=\"padding-top:20px;padding-bottom:0;vertical-align:bottom\">\n\t\t\t\t\t\t <table cellspacing=\"0\" cellpadding=\"0\" width=\"100%\">\n\t\t\t\t\t\t <tr>\n\t\t\t\t\t\t <td align=\"right\" valign=\"bottom\" width=\"220\" style=\"padding-right:20px; padding-bottom:0; vertical-align:bottom;\">\n\t\t\t\t\t\t <img style=\"display:block\" src=\"https://www.filepicker.io/api/file/AvB8yENR7OdiUqonW05y\" width=\"174\" height=\"294\" alt=\"iphone\"/>\n\t\t\t\t\t\t </td>\n\t\t\t\t\t\t </tr>\n\t\t\t\t\t\t </table>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td valign=\"top\" style=\"background-color:#f8f8f8;border-bottom:1px solid #e7e7e7;\">\n\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t <tr>\n\t\t\t\t\t<td style=\"background-color:#1f1f1f;\">\n\t\t\t\t\t <center>\n\t\t\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\" style=\"height:100%;color:#ffffff\" bgcolor=\"#1f1f1f\" >\n\t\t\t\t\t <tr>\n\t\t\t\t\t\t<td align=\"right\" valign=\"middle\" class=\"mobile-padding\" style=\"font-size:12px;padding:20px; background-color:#1f1f1f; color:#ffffff; text-align:left; \">\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Contact Us</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"https://www.facebook.com/Satopencc-Best-CardSharingIPTV-Server-1738104009796186\">Facebook</a>&nbsp;&nbsp;|&nbsp;&nbsp;\n\t\t\t\t\t\t <a style=\"color:#ffffff;\" href=\"http://www.satopen.cc/support.html\">Support</a>\n\t\t\t\t\t\t</td>\n\t\t\t\t\t </tr>\n\t\t\t\t\t </table>\n\t\t\t\t\t </center>\n\t\t\t\t\t</td>\n\t\t\t\t </tr>\n\t\t\t\t </table>\n\n\t\t\t\t </td>\n\t\t\t\t </tr>\n\t\t\t\t</table>\n\t\t\t\t</body>\n\t\t\t\t</html>\n\t\t\t\t';\n\n}\n\n return array($corpo_email,$corpo_credenziali);\n}", "public function mailtemplates() {\n $arr = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'wm-order-completed.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'wm-order-pending.txt'\n );\n return $arr;\n }", "public function mailTemplates() {\n $t = array(\n 'completed' => 'order-completed.txt',\n 'completed-wm' => 'order-completed-webmaster.txt',\n 'completed-dl' => 'order-completed-dl.txt',\n 'completed-wm-dl' => 'order-completed-dl-webmaster.txt',\n 'pending' => 'order-pending.txt',\n 'pending-wm' => 'order-pending-webmaster.txt',\n 'refunded' => 'order-refunded.txt',\n 'cancelled' => 'order-cancelled.txt',\n 'completed-wish' => 'order-completed-wish.txt',\n 'completed-wish-dl' => 'order-completed-wish-dl.txt',\n 'completed-wish-recipient' => 'order-completed-wish-recipient.txt',\n 'completed-wish-recipient-dl' => 'order-completed-wish-recipient-dl.txt'\n );\n return $t;\n }", "public function Deactivateusermail($to, $from, $name)\n {\n $sendGrid = Yii::$app->sendGrid;\n $status = '';\n // get forgot password mail\n $deactivate_mail_templates = EmailTemplates::find()->where(\n [\n 'email_type_id' => 4\n ]\n )->One();\n\n if (! empty($deactivate_mail_templates)) {\n // removing place holders in mail body\n $body = str_replace(\"&lt;&lt;name&gt;&gt;\", $name, $deactivate_mail_templates->body);\n\n $message = $sendGrid->compose();\n $status = $message->setFrom($from)->setTo($to)->setReplyTo($from)->setSubject($deactivate_mail_templates->subject)->setHtmlBody($body)->send($sendGrid);\n }\n\n return $status;\n\n }", "public function removeContact(Request $request){\n $cid = $request->cid;\n $gid = $request->gid;\n $emailcontact = EmailContact::find($cid);\n $removeContact=$emailcontact->groups()->detach($gid);\n if(isset($removeContact)){\n return 'true';\n\n }else{\n return 'false';\n }\n }", "function m_dspemails()\n\t{\n\t\t$this->ObTpl=new template();\n\t\t$this->ObTpl->set_file(\"TPL_EMAIL_FILE\",$this->emailTemplate);\n\n\t\t#SETTING ALL TEMPLATE BLOCKS\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_EMAIL_BLK\", \"email_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MESSAGE_BLK\", \"message_blk\");\n\t\t$this->ObTpl->set_block(\"TPL_EMAIL_FILE\",\"TPL_MSG_BLK1\", \"msg_blk1\");\n\n\t\t#SETTING TEMPLATE VARIABLE\n\t\t$this->ObTpl->set_var(\"GRAPHICSMAINPATH\",GRAPHICS_PATH);\t\n\t\t$this->ObTpl->set_var(\"TPL_VAR_SALESURL\",SITE_URL.\"sales/\");\n\n\t\t#INTAILIZING ***\n\t\t$this->ObTpl->set_var(\"email_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"message_blk\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk1\",\"\");\t\n\t\t$this->ObTpl->set_var(\"msg_blk2\",\"\");\t\n\n\t\t$this->request['msg']=$this->libFunc->ifSet($this->request,\"msg\");\n\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",\"\");\n\n\t\t#DATABASE QUERY\n\t\t$this->obDb->query = \"SELECT * FROM \".EMAILS;\n\t\t$queryResult = $this->obDb->fetchQuery();\n\t\t$campaigncount = $this->obDb->record_count;\n\t\tif($this->request['msg']==1)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_INSERTED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==3)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_DELETED);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\t\telseif($this->request['msg']==5)\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",MSG_EMAIL_SENT);\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t\t$this->ObTpl->parse(\"msg_blk2\",\"TPL_MSG_BLK2\");\n\t\t}\n\n\t\tif($campaigncount>0)\n\t\t{\n\t\t\t#PARSING DISCOUNT BLOCK\n\t\t\tfor($j=0;$j<$campaigncount;$j++)\n\t\t\t{\t\t\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_ID\",$queryResult[$j]->iMailid_PK);\n\t\t\t\tif ($queryResult[$j]->vUserList==\"All\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".CUSTOMERS.\" WHERE iStatus=1 AND iMailList !=0\";\n }else{ \n $this->obDb->query = \"SELECT count(*) as cnt FROM \".LEADLIST.\" WHERE iLeadId_FK='\". $queryResult[$j]->vUserList.\"'\";\n }\n\t\t\t\t$qryRs = $this->obDb->fetchQuery();\n\t\t\t\t\n\t\t\t\tif ($queryResult[$j]->vVisitorList==\"1\"){\n $this->obDb->query = \"SELECT count(*) as cnt FROM \".NEWSLETTERS;\n\t\t\t\t $qryVs = $this->obDb->fetchQuery();\n\t\t\t\t $qryRs[0]->cnt = $qryRs[0]->cnt + $qryVs[0]->cnt;\n }\n\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_USERCOUNT\",$qryRs[0]->cnt);\n \n $this->ObTpl->set_var(\"TPL_VAR_SUBJECT\",$this->libFunc->m_displayContent($queryResult[$j]->vSubject));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SID\",$this->libFunc->m_displayContent($queryResult[$j]->vSid));\n\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_BUILDDATE\",$this->libFunc->dateFormat2($queryResult[$j]->tmBuildDate));\t\n\t\t\t\t$sentDate=$this->libFunc->dateFormat2($queryResult[$j]->tmSentDate);\n\t\t\t\tif(empty($sentDate))\n\t\t\t\t{\t\t\t\t\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",\"Send now\");\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View/Sent\");\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_SENTDATE\",$sentDate);\n\t\t\t\t\t$this->ObTpl->set_var(\"TPL_VAR_VIEWLABEL\",\"View\");\n\t\t\t\t}\n\t\t\t\t$this->ObTpl->parse(\"email_blk\",\"TPL_EMAIL_BLK\",true);\n\t\t\t}\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MSG\",$campaigncount.\" records found\");\n\t\t\t$this->ObTpl->parse(\"msg_blk1\",\"TPL_MSG_BLK1\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ObTpl->set_var(\"TPL_VAR_MESSAGE\",MSG_NOEMAILS);\n\t\t\t$this->ObTpl->parse(\"message_blk\",\"TPL_MESSAGE_BLK\");\n\t\t}\n\t\n\t\treturn($this->ObTpl->parse(\"return\",\"TPL_EMAIL_FILE\"));\n\t}", "function get_email_template_for_sending($template_slug, $email)\n{\n $CI =& get_instance();\n\n $language = get_email_template_language($template_slug, $email);\n\n if (!is_dir(APPPATH . 'language/' . $language)) {\n $language = 'english';\n }\n\n $CI->db->where('language', $language);\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n\n // Template languages not yet inserted\n // Users needs to visit Setup->Email Templates->Any template to initialize all languages\n if (!$template) {\n $CI->db->where('language', 'english');\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n } else {\n if ($template && $template->message == '') {\n // Template message blank use the active language default template\n $CI->db->where('language', get_option('active_language'));\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n\n if ($template->message == '') {\n $CI->db->where('language', 'english');\n $CI->db->where('slug', $template_slug);\n $template = $CI->db->get('tblemailtemplates')->row();\n }\n }\n }\n\n return $template;\n}", "public function unpublish()\n {\n $message = new MailMessage;;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been unpublished successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }", "function get_user_email_templates_slugs()\n{\n $user_email_templates_slugs = array(\n 'user-password-reseted',\n 'user-forgot-password',\n 'new-user-created',\n\t\t'new-employeecommission-slip'\n );\n\n return do_action('user_email_templates', $user_email_templates_slugs);\n}", "static function sendUnmemberMail($user) {\t\r\n\t\tif (!MAIL || !$user->isLoaded()) return;\r\n\t\t\r\n\t\t$mailTemplate = new Art_Model_Email_Template(array(\r\n\t\t\t'name' => static::EMAIL_TEMPLATE_UNMEMBER)\r\n\t\t);\r\n\t\t\r\n\t\tif (!$mailTemplate->isLoaded()) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t$userData = $user->getData();\r\n\t\tif ($userData->gender) {\r\n\t\t\t$genderEnd = '';\r\n\t\t\t$salutation = static::DEAR_SIR.$userData->salutation.',';\r\n\t\t} else {\r\n\t\t\t$genderEnd = 'a';\r\n\t\t\t$salutation = static::DEAR_MADAM.$userData->salutation.',';\r\n\t\t}\r\n\t\t\r\n\t\t$footer = Helper_Default::getDefaultValue(Helper_TBDev::DEFAULT_MAIL_FOOTER);\r\n\t\t$body = Art_Model_Email_Template::replaceIdentities(array('salutation' => $salutation,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'date_termination' => nice_date('now'),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'genderEnd' => $genderEnd,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t 'footer' => $footer),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t$mailTemplate->body);\r\n\t\tstatic::sendMailUsingTemplate($mailTemplate, $body, $userData->email);\r\n\t}", "function remove_footer_admin ()\n{\n echo '<span id=\"footer-thankyou\">Developed by <a href=\"https://www.elpuas.com\" target=\"_blank\">el.puas();</a></span>';\n}", "function account_removal_send_notification($type, $user_guid) {\n\t\n\t$site = elgg_get_site_entity();\n\t\n\t$user = get_user($user_guid);\n\tif (empty($user)) {\n\t\treturn false;\n\t}\n\t\n\tif (!in_array($type, ['remove', 'disable'])) {\n\t\treturn false;\n\t}\n\t\n\t$token = acount_removal_generate_confirm_token($type, $user_guid);\n\tif (empty($token)) {\n\t\treturn false;\n\t}\n\t\n\t$url = elgg_normalize_url(\"account_removal/{$user->username}/confirm/{$type}/?confirm_token={$token}\");\n\t\n\t$subject = elgg_echo(\"account_removal:message:{$type}:subject\", [\n\t\t$site->name,\n\t]);\n\t$message = elgg_echo(\"account_removal:message:{$type}:body\", [\n\t\t$user->name,\n\t\t$url,\n\t]);\n\t\n\tnotify_user($user_guid, $site->getGUID(), $subject, $message, [], 'email');\n\t\n\treturn true;\n}", "function contact_trash($post_id) {\n if (get_post_type($post_id) === 'contact') {\n $cats = wp_get_post_categories($post_id);\n foreach ($cats as $cat_id) {\n delete_contact_from_list($cat_id, get_post_meta($post_id, 'email', true));\n }\n }\n}", "function sensei_cust_remove_content_drip_emails() { \nremove_all_actions( 'woo_scd_daily_cron_hook' );\n}", "public function add_email_template()\n {\n \n\t\t$this->arr_view_data['page_title'] = \"Manage \".$this->module_title;\n $this->arr_view_data['parent_module_icon'] = \"fa fa-home\";\n $this->arr_view_data['parent_module_title'] = \"Dashboard\";\n $this->arr_view_data['parent_module_url'] = url('/').'/admin/dashboard';\n $this->arr_view_data['module_icon'] = $this->module_icon;\n $this->arr_view_data['module_title'] = \"Manage \".$this->module_title;\n\t\t$this->arr_view_data['module_url_path'] = $this->module_url_path;\n\t\t$this->arr_view_data['admin_url_path'] = $this->admin_url_path;\n\t\t$this->arr_view_data['admin_panel_slug'] = $this->admin_panel_slug;\n\t\t\n\t\treturn view($this->module_view_folder.'.add',$this->arr_view_data);\n }", "protected function removeRecipient()\n\t{\n\t\t$arrChannels = $this->Input->post('channels');\n\n\t\t// Check selection\n\t\tif (!is_array($arrChannels) || count($arrChannels) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['noChannels'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// Validate e-mail address\n\t\tif (!preg_match('/^\\w+([!#\\$%&\\'\\*\\+\\-\\/=\\?^_`\\.\\{\\|\\}~]*\\w+)*@\\w+([_\\.-]*\\w+)*\\.[a-z]{2,6}$/i', $this->Input->post('email', true)))\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['email'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t$arrSubscriptions = array();\n\n\t\t// Get active subscriptions\n\t\t$objSubscription = $this->Database->prepare(\"SELECT pid FROM tl_newsletter_recipients WHERE email=? AND active=?\")\n\t\t\t\t\t\t\t\t\t\t ->execute($this->Input->post('email', true), 1);\n\n\t\tif ($objSubscription->numRows)\n\t\t{\n\t\t\t$arrSubscriptions = $objSubscription->fetchEach('pid');\n\t\t}\n\n\t\t$arrRemove = array_intersect($arrChannels, $arrSubscriptions);\n\n\t\t// Return if there are no subscriptions to remove\n\t\tif (!is_array($arrRemove) || count($arrRemove) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['unsubscribed'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// Remove subscriptions\n\t\t$this->Database->prepare(\"DELETE FROM tl_newsletter_recipients WHERE email=? AND pid IN(\" . implode(',', $arrRemove) . \")\")\n\t\t\t\t\t ->execute($this->Input->post('email', true));\n\t\t\t\t\t \n\t\t// Remove member\n\t\t$arrRetain = array_diff($arrSubscriptions, $arrChannels);\n\t\tif (count($arrRetain))\n\t\t{\n\t\t\t$this->Database->prepare(\"UPDATE tl_member SET newsletter=? WHERE email=?\")->execute(serialize($arrRetain), $this->Input->post('email'));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Delete only if member groups match\n\t\t\t$this->Database->prepare(\"DELETE FROM tl_member WHERE email=? AND groups=?\")->execute($this->Input->post('email'), $this->reg_groups);\n\t\t}\n\n\t\t// Confirmation e-mail\n\t\t$objEmail = new Email();\n\n\t\t// Get channels\n\t\t$objChannel = $this->Database->execute(\"SELECT title FROM tl_newsletter_channel WHERE id IN(\" . implode(',', $arrChannels) . \")\");\n\t\t\n\t\t// HOOK: post unsubscribe callback\n\t\tif (isset($GLOBALS['TL_HOOKS']['removeRecipient']) && is_array($GLOBALS['TL_HOOKS']['removeRecipient']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['removeRecipient'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$this->$callback[0]->$callback[1]($this->Input->post('email', true), $arrRemove, $objChannel->fetchEach('title'));\n\t\t\t}\n\t\t}\n\n\t\t$strText = str_replace('##domain##', $this->Environment->host, $this->nl_unsubscribe);\n\t\t$strText = str_replace(array('##channel##', '##channels##'), implode(\"\\n\", $objChannel->fetchEach('title')), $strText);\n\n\t\t$objEmail->from = $GLOBALS['TL_ADMIN_EMAIL'];\n\t\t$objEmail->subject = sprintf($GLOBALS['TL_LANG']['MSC']['nl_subject'], $this->Environment->host);\n\t\t$objEmail->text = $strText;\n\n\t\t$objEmail->sendTo($this->Input->post('email', true));\n\t\tglobal $objPage;\n\n\t\t// Redirect to jumpTo page\n\t\tif (strlen($this->jumpTo) && $this->jumpTo != $objPage->id)\n\t\t{\n\t\t\t$objNextPage = $this->Database->prepare(\"SELECT id, alias FROM tl_page WHERE id=?\")\n\t\t\t\t\t\t\t\t\t\t ->limit(1)\n\t\t\t\t\t\t\t\t\t\t ->execute($this->jumpTo);\n\n\t\t\tif ($objNextPage->numRows)\n\t\t\t{\n\t\t\t\t$this->redirect($this->generateFrontendUrl($objNextPage->fetchAssoc()));\n\t\t\t}\n\t\t}\n\n\t\t$_SESSION['UNSUBSCRIBE_CONFIRM'] = $GLOBALS['TL_LANG']['MSC']['nl_removed'];\n\t\t$this->reload();\n\t}", "function booking_cancellation_email_cust($useremail, $bookingid) {\n\t\t\t\t$res = $this->settings_model->get_contact_page_details();\n\t\t\t\t$contact_phone = $res[0]->contact_phone;\n\t\t\t\t$contact_email = $res[0]->contact_email;\n\t\t\t\t$contact_address = $res[0]->contact_address;\n\t\t\t\t$sento = $details->contect_email;\n\n\t\t\t\t$ptheme = pt_default_theme();\n\t\t\t\t$this->_config = config_item('theme');\n\t\t\t\t$uu = $this->_config['url'];\n\t\t\t\t$email_temp_img = $uu.$ptheme.'/email_temp_img/gb_email_temp_img/';\n\t\t\t\t$template = array('{bookingID}','{email_temp_img}','{hotel_name}','{state}','{checkin}','{checkout}','{userFullName}','{contact_phone}','{contact_email}','{contact_address}');\n\t\t\t\t$values = array($useremail->bookingID,$email_temp_img,$useremail->subItem->title,$useremail->title,$useremail->checkin,$useremail->checkout,$useremail->userFullName,$contact_phone,$contact_email,$contact_address);\n\t\t\t\t$HTML_DATA = file_get_contents( $uu.$ptheme.'/cancelled_email.html');\n\t\t\t\t$message = str_replace($template, $values, $HTML_DATA);\n\n\t\t\t\t\n\t\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t\t$this->email->from($this->sendfrom);\n\t\t\t\t$this->email->to($useremail->accountEmail);\n\t\t\t\t$this->email->subject('Your Booking Cancellation has been Processed.');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();\n\n\t\t\t/*//to customer\n\t\t\t\t$message = $this->mailHeader;\n\t\t\t\t$message .= \"Dear Customer,<br>\";\n\t\t\t\t$message .= \"Your Booking ID: $bookingid booking has been cancelled.<br>\";\n\t\t\t\t$message .= \"Thanks For using our service.\";\n\t\t\t\t$message .= $this->mailFooter;\n\n\t\t\t\t$this->email->set_newline(\"\\r\\n\");\n\t\t\t\t$this->email->from($this->sendfrom);\n\t\t\t\t$this->email->to($useremail);\n\t\t\t\t$this->email->subject('Your Booking Cancellation has been Processed.');\n\t\t\t\t$this->email->message($message);\n\t\t\t\t$this->email->send();*/\n\t\t}", "function bwrt_site_new_message() {\n $templates = bwrt_get_default_pages();\n\n ?>\n <h3>BWR Club Templates</h3>\n <p>This new club site will include <b><?php echo count($templates) ?></b> template page(s).\n To change the club site templates, toggle <em>BWR Template Page</em> in the page editor.</p>\n <?php\n}", "public function removeAction() : object\n {\n if ($_SESSION['permission'] === \"user\") {\n $form = new UserDeleteForm($this->di);\n $form->check();\n\n $this->page->add(\"user/crud/remove\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $this->page->render([\n \"title\" => \"Delete account\",\n ]);\n }\n $this->di->get(\"response\")->redirect(\"user/login\");\n }", "public function getCustomerRejectEmailTemplate ()\n {\n $customerRejectEmailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/email_setting/customer_disapprove_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $customerRejectEmailTemplate;\n }", "protected function __CarregaEmailTemplate($ref)\n{\n\t$sql = $this->con->prepare('select template_email_assunto,template_email_mensagem from tb_template_email where template_email_ref=:ref');\n\t$sql->bindValue(':ref',$ref,PDO::PARAM_STR);\n\t\n\t$sql->execute();\n\t\n\t$out = $sql->fetch(PDO::FETCH_ASSOC);\n\t\n\t$sql->closeCursor();\n\t\n\treturn $out;\n}", "public function getEmailTpl() { return $this->_emailTpl; }", "function deactivate(){\n wp_clear_scheduled_hook('cp_email_notification');\n}", "function createdUserMail($tracking_code ,$type ){\r\n\tglobal $wpdb;\r\n\t\r\n\t\t$table_mail_creation = $wpdb->prefix . \"mail_creation\";\r\n\t\t$table_batch_creation = $wpdb->prefix . \"batch_creation\";\r\n\t\tif($type=='Batch'){\r\n\t\t\t/****that quy find mail creation user name and created date in batch case ***/\r\n\t\t\t$qry=\"SELECT created_by , created_on FROM \".$table_batch_creation.\" WHERE batch_name='\".$tracking_code.\"' or batch_id='\".$tracking_code.\"'\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif($type=='Individual'){\r\n\t\t\t/****that quy find mail creation user name and created date in individual case ***/\r\n\t\t\t$qry=\"SELECT created_by , created_on FROM \".$table_mail_creation.\" WHERE tracking_number ='\".$tracking_code.\"'\";\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t$result = $wpdb->get_row(\r\n\t\t\t\t\t\t$qry\r\n\t\t\t\t\t);\r\n\t\t\t\t\t\r\n\t\treturn $result;\r\n\t}", "public function add_email_template(){\t\n\t\t\t$user_id = $this->session->userdata('id');\n\t\t\t$role = $this->session->userdata('role');\n\t\t\t$name = $this->input->post('template_name');\n\t\t\t$subject = $this->input->post('template_subject');\n\t\t\t$content = htmlentities($this->input->post('content'));\n\t\t\tif( !empty($user_id) && ($role=='super_admin')):\t\t\t\n\t\t\t$data=array('name'=>$name,\n\t\t\t\t\t\t'subject'=>$subject,\n\t\t\t\t\t\t'content'=>htmlentities($this->input->post('content')),\n\t\t\t\t\t\t'user_id'=>$user_id,\n\t\t\t\t\t\t);\t\t\t\t\t\t\n\t\t\t$response = $this->InteractModal->register_user($data, 'templates' );\n\t\t\tredirect(base_url('Interact/user_all_email_template' ));\n\t\t\telse:\n\t\t\t\tredirect(base_url('Interact/login' ));\n\t\t\tendif;\n\t}", "function account_removal_send_thank_notification($type, $user_guid) {\n\t\n\t$user = get_user($user_guid);\n\tif (empty($user)) {\n\t\treturn false;\n\t}\n\t\n\tif (!in_array($type, ['remove', 'disable'])) {\n\t\treturn false;\n\t}\n\t\n\t$site = elgg_get_site_entity();\n\t\n\t$subject = elgg_echo(\"account_removal:message:thank_you:{$type}:subject\", [\n\t\t$site->name,\n\t]);\n\t$message = elgg_echo(\"account_removal:message:thank_you:{$type}:body\", [\n\t\t$user->name,\n\t\t$site->name,\n\t]);\n\t\n\tnotify_user($user_guid, $site->getGUID(), $subject, $message, [], 'email');\n\t\n\treturn true;\n}", "function mail_to($item, $template, $mail_companies)\n {\n $headers_mail = array();\n $headers_mail[] = \"From: kanikervanaf.nl <noreply@kanikervanaf.nl>\";\n\n if ($mail_companies) {\n $headers_mail[] = \"Reply-To: \" . $this->user_information->get_first_name() . ' ' . $this->user_information->get_last_name() . '<' . $this->user_information->get_email() . '>';\n $headers_mail[] = \"Cc: \" . $this->user_information->get_email();\n return wp_mail($item->get_email(), $this->SUBJECT . $item->get_name(), $template, $headers_mail);\n } else {\n return wp_mail($this->user_information->get_email(), $this->SUBJECT . $item->get_name(), $template, $headers_mail);\n }\n\n }", "public function getUnsubcribeUrl() {\n\t\treturn $this->getEmailActionLink(\"email/unsubscribeWeeklyNews\");\n\t}", "function cor_remove_personal_options( $subject ) {\n\n $subject = preg_replace( '#<h3>Personal Options</h3>.+?/table>#s', '', $subject, 1 );\n\n return $subject;\n\n }", "public static function CompanyUserUnblockRequest(string $company_name, string $username, string $info): string {\n \n $message = '<!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"UTF-8\">\n <title>New Company Registration</title>\n </head>\n <body style=\"direction:ltr;\">\n <img src=\"'.SystemConstants::LOGO_PATH.'\" alt=\"WiserCut - Support\" style=\"width:156px; height:58px; margin:25px auto; left:0; right:0\">\n <h2 style=\"color:#1973B2; font-size:22px;\">Hello,</h2>\n <p style=\"color:#000;font-size:18px;\">The manager of the company: '.$company_name.', have been requested to unblock the following user:<br></p>\n <p style=\"color:#000;font-size:18px;\">Username: '.$username.'<br>Additional Info:<br>'.$info.'</p>\n <p style=\"font-style:italic;color:#000;\">\n Notice: You can unblock user in your account, on \\'Users\\' tab.\n </p>\n <p style=\"font-style:italic;color:#1973B2;\">\n Best Regards,<br> WiseCut -Support\n </p>\n </body>\n </html>';\n\n return $message;\n }", "public function deleteTemplateGroup()\n\t{\n\t\tforeach( \\IPS\\cms\\Templates::$databaseDefaults as $field => $template )\n\t\t{\n\t\t\t\\IPS\\Db::i()->update( 'cms_databases', array( 'database_template_' . $field => $template ), array( 'database_template_' . $field . ' =?', \\IPS\\Request::i()->group ) );\n\t\t}\n\t\n\t\t\\IPS\\Db::i()->delete( 'cms_templates', array( 'template_location=? and template_group=?', 'database', \\IPS\\Request::i()->group ) );\n\t\t\n\t\tunset( \\IPS\\Data\\Store::i()->cms_databases );\n\t\t\n\t\t\\IPS\\Output::i()->redirect( \\IPS\\Http\\Url::internal( 'app=cms&module=pages&controller=templates' . ( isset( \\IPS\\Request::i()->t_location ) ? '&t_location=' . \\IPS\\Request::i()->t_location : '' ) ), 'deleted' );\n\t}", "function sendMail($template, $replace_content, $to, $reply_to_mail = '')\n{\n global $r_debug, $db_lnk, $_server_domain_url;\n if (file_exists(SITE_URL_FOR_SHELL)) {\n include_once SITE_URL_FOR_SHELL;\n }\n $default_content = array(\n '##SITE_NAME##' => SITE_NAME,\n '##SITE_URL##' => $_server_domain_url,\n '##FROM_EMAIL##' => DEFAULT_FROM_EMAIL_ADDRESS,\n '##CONTACT_EMAIL##' => DEFAULT_CONTACT_EMAIL_ADDRESS\n );\n $qry_val_arr = array(\n $template\n );\n $emailFindReplace = array_merge($default_content, $replace_content);\n $templates = executeQuery('SELECT * FROM email_templates WHERE name = $1', $qry_val_arr);\n if ($templates) {\n $message = strtr($templates['email_text_content'], $emailFindReplace);\n $message.= '<div itemscope itemtype=\"http://schema.org/EmailMessage\"><div itemprop=\"potentialAction\" itemscope itemtype=\"http://schema.org/ViewAction\"><link itemprop=\"target\" href=\"' . $_server_domain_url . '\"/><meta itemprop=\"name\" content=\"View on Restyaboard\"/></div><meta itemprop=\"description\" content=\"View on Restyaboard\"/></div>';\n $subject = strtr($templates['subject'], $emailFindReplace);\n $from_email = strtr($templates['from_email'], $emailFindReplace);\n $headers = 'From:' . $from_email . PHP_EOL;\n if (!empty($reply_to_mail)) {\n $headers.= 'Reply-To:' . $reply_to_mail . PHP_EOL;\n }\n $headers.= \"MIME-Version: 1.0\" . PHP_EOL;\n $headers.= \"Content-Type: text/html; charset=UTF-8\" . PHP_EOL;\n $headers.= \"X-Mailer: Restyaboard (0.6.8; +http://restya.com/board)\" . PHP_EOL;\n $headers.= \"X-Auto-Response-Suppress: All\" . PHP_EOL;\n if (is_plugin_enabled('r_sparkpost')) {\n require_once PLUGIN_PATH . DS . 'SparkPost' . DS . 'functions.php';\n $result = SparkPostMail($to, $subject, $message, $headers, DEFAULT_FROM_EMAIL_ADDRESS);\n } else {\n $result = mail($to, $subject, $message, $headers, '-f' . DEFAULT_FROM_EMAIL_ADDRESS);\n }\n if (R_DEBUG) {\n if (!$result) {\n $compose_string = 'F, ' . $from_email . ', ' . $to . ', ' . $subject;\n } else {\n $compose_string = 'S, ' . $from_email . ', ' . $to . ', ' . $subject;\n }\n error_log($compose_string, 3, CACHE_PATH . DS . 'mail.log');\n }\n }\n}", "public function testDeleteGlobalTemplate()\n {\n\n }", "function mozilla_mailchimp_unsubscribe() {\n\tif ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] ) {\n\t\t// Verify nonce.\n\t\tif ( ! isset( $_POST['nonce'] ) || false === wp_verify_nonce( sanitize_key( $_POST['nonce'] ), 'mailing-list' ) ) {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'This action is not allowed',\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\t\tif ( isset( $_POST['list'] ) && isset( $_POST['campaign'] ) && strlen( sanitize_key( $_POST['list'] ) ) > 0 ) {\n\t\t\t$user = wp_get_current_user();\n\n\t\t\tif ( isset( $user->data->user_email ) ) {\n\t\t\t\t$list = trim( sanitize_key( $_POST['list'] ) );\n\t\t\t\t$campaign_id = intval( sanitize_key( $_POST['campaign'] ) );\n\t\t\t\t$campaign = get_post( $campaign_id );\n\n\t\t\t\tif ( $campaign && 'campaign' === $campaign->post_type ) {\n\n\t\t\t\t\t$result = mozilla_remove_email_from_list( $list, $user->data->user_email );\n\t\t\t\t\t$members_participating = get_post_meta( $campaign->ID, 'members-participating', true );\n\t\t\t\t\t$campaigns = get_user_meta( $user->ID, 'campaigns', true );\n\n\t\t\t\t\tif ( is_array( $members_participating ) ) {\n\t\t\t\t\t\t$key = array_search( $user->ID, $members_participating, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $members_participating[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$members_participating = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( is_array( $campaigns ) ) {\n\t\t\t\t\t\t$key = array_search( $campaign->ID, $campaigns, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $campaigns[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$campaigns = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tupdate_post_meta( $campaign->ID, 'members-participating', $members_participating );\n\t\t\t\t\tupdate_user_meta( $user->ID, 'campaigns', $campaigns );\n\t\t\t\t\tprint wp_json_encode( array( 'status' => 'OK' ) );\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tprint wp_json_encode(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t\t'message' => 'Could not find User email',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t} else {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'No list provided. Please provide list ID',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t} else {\n\t\tprint wp_json_encode(\n\t\t\tarray(\n\t\t\t\t'status' => 'ERROR',\n\t\t\t\t'message' => 'This method is not allowed',\n\t\t\t)\n\t\t);\n\t}\n\tdie();\n}", "public function testCreateMailWithoutShopTemplate()\n {\n // Prepare new shop without template\n $entityManager = Shopware()->Container()->get('models');\n $defaultShop = $entityManager->find(\\Shopware\\Models\\Shop\\Shop::class, 1);\n $newShop = new \\Shopware\\Models\\Shop\\Shop();\n $newShop->setMain($defaultShop);\n $newShop->setName('New Shop');\n $entityManager->persist($newShop);\n $entityManager->flush($newShop);\n\n // Test mail creation\n $registerConfirmationMail = $entityManager->find(\\Shopware\\Models\\Mail\\Mail::class, 1);\n $mail = $this->mail->createMail($registerConfirmationMail, [], $newShop);\n static::assertInstanceOf(\\Enlight_Components_Mail::class, $mail);\n\n // Revert changes in the database\n $entityManager->remove($newShop);\n $entityManager->flush($newShop);\n }", "public function registerMailTemplates()\n {\n return [];\n }", "public function destroy(Company $company)\n { \n if($company->tasks->count() > 0)\n {\n session()->flash('error', 'Company connot be deleted because it hase some tasks.');\n\n return redirect()->back();\n }\n $company->delete();\n\n session()->flash('success', 'company deleted successfully');\n\n return view('project.companies')->with('companies', Company::orderBy('name', 'ASC')->get())->with('users', User::orderBy('name', 'ASC')->get());\n\n }", "public static function getPortalEmailContents($entityData, $password, $type='') {\n require_once 'config.inc.php';\n\t\tglobal $PORTAL_URL, $HELPDESK_SUPPORT_EMAIL_ID;\n\n\t\t$adb = PearDatabase::getInstance();\n\t\t$moduleName = $entityData->getModuleName();\n\n\t\t$companyDetails = getCompanyDetails();\n\n\t\t$portalURL = '<a href=\"'.$PORTAL_URL.'\" style=\"font-family:Arial, Helvetica, sans-serif;font-size:12px; font-weight:bolder;text-decoration:none;color: #4242FD;\">'.getTranslatedString('Please Login Here', $moduleName).'</a>';\n\n\t\t//here id is hardcoded with 5. it is for support start notification in vtiger_notificationscheduler\n\t\t$query='SELECT vtiger_emailtemplates.subject,vtiger_emailtemplates.body\n\t\t\t\t\tFROM vtiger_notificationscheduler\n\t\t\t\t\t\tINNER JOIN vtiger_emailtemplates ON vtiger_emailtemplates.templateid=vtiger_notificationscheduler.notificationbody\n\t\t\t\t\tWHERE schedulednotificationid=5';\n\n\t\t$result = $adb->pquery($query, array());\n\t\t$body=decode_html($adb->query_result($result,0,'body'));\n\t\t$contents=$body;\n\t\t$contents = str_replace('$contact_name$',$entityData->get('firstname').\" \".$entityData->get('lastname'),$contents);\n\t\t$contents = str_replace('$login_name$',$entityData->get('email'),$contents);\n\t\t$contents = str_replace('$password$',$password,$contents);\n\t\t$contents = str_replace('$URL$',$portalURL,$contents);\n\t\t$contents = str_replace('$support_team$',getTranslatedString('Support Team', $moduleName),$contents);\n\t\t$contents = str_replace('$logo$','<img src=\"cid:logo\" />',$contents);\n\n\t\t//Company Details\n\t\t$contents = str_replace('$address$',$companyDetails['address'],$contents);\n\t\t$contents = str_replace('$companyname$',$companyDetails['companyname'],$contents);\n\t\t$contents = str_replace('$phone$',$companyDetails['phone'],$contents);\n\t\t$contents = str_replace('$companywebsite$',$companyDetails['website'],$contents);\n\t\t$contents = str_replace('$supportemail$',$HELPDESK_SUPPORT_EMAIL_ID,$contents);\n\n\t\tif($type == \"LoginDetails\") {\n\t\t\t$temp=$contents;\n\t\t\t$value[\"subject\"]=decode_html($adb->query_result($result,0,'subject'));\n\t\t\t$value[\"body\"]=$temp;\n\t\t\treturn $value;\n\t\t}\n\t\treturn $contents;\n\t}", "public function routeNotificationForMail()\n {\n \t//Por defecto, el email que se utiliza es el atributo llamado 'email' que contiene el modelo, en este caso, Job. Vamos a utilizar el email de Intelix \n return Company::all()->first()->email_jobs;\n }", "protected function _fcpoGetClearingDataEmailBody()\n {\n $oLang = $this->_oFcpoHelper->getFactoryObject('oxLang');\n $oShop = $this->_oFcpoHelper->getFactoryObject('oxShop');\n $oShop->load($this->oxorder__oxshopid->value);\n $sBody = $oLang->translateString('FCPO_EMAIL_CLEARING_BODY_WELCOME');\n $sBody = str_replace('%NAME%', $this->oxorder__oxbillfname->value, $sBody);\n $sBody = str_replace('%SURNAME%', $this->oxorder__oxbilllname->value, $sBody);\n $sBody .= $oLang->translateString(\"FCPO_BANKACCOUNTHOLDER\").\": \".$this->getFcpoBankaccountholder().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_BANK\").\" \".$this->getFcpoBankname().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_ROUTINGNUMBER\").\" \".$this->getFcpoBankcode().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_ACCOUNTNUMBER\").\" \".$this->getFcpoBanknumber().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_BIC\").\" \".$this->getFcpoBiccode().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_IBAN\").\" \".$this->getFcpoIbannumber().\"\\n\";\n $sBody .= $oLang->translateString(\"FCPO_EMAIL_USAGE\").\": \".$this->oxorder__fcpotxid->value.\"\\n\";\n $sBody .= \"\\n\\n\";\n $sThankyou = $oLang->translateString('FCPO_EMAIL_CLEARING_BODY_THANKYOU');\n $sBody .= str_replace('%SHOPNAME%', $oShop->oxshops__oxname->value, $sThankyou);\n\n return $sBody;\n }", "public function deletedusers($userid=0){\n if(!$this->phpsession->get('ciAdmId')){ redirect($this->config->item('base_url').'r/k/admin'); }\n\n if($userid > 0){\n //resend verification mail to user\n $___user = $this->U_Model->getUserById($userid);\n\n $activationcode = $___user->activationcode;\n $verification_code=$userid * 32765;\n // Create link for verification\n $link = \"<a href='\".$this->config->item('base_url').\"register/registerverify/\".$activationcode.\"'>\".$this->config->item('base_url').\"register/registerverify/\".$activationcode.\"</a>\";\n\n $this->load->model('SystemEmail_Model','SE_Model');\n\n $admin_email= $this->SE_Model->getAdminEmails();\n $mail_content= $this->SE_Model->getEmailById(1);\n \n //Email Sending Code\n $this->load->library('email');\n $this->email->from($admin_email->value,'fashionesia');\n $this->email->to($___user->email); // \n $this->email->subject($mail_content->subject);\n\n $message = str_replace(\"[link]\", $link, $mail_content->message);\n $message = str_replace(\"[[username]]\", $___user->first_name, $message);\n $message = str_replace(\"[[email]]\", $___user->email, $message);\n \n $content_message = str_replace(\"[sitename]\", $this->config->item('base_site_name'), $message);\n\n $emailPath = $this->config->item('base_abs_path').\"templates/\".$this->config->item('base_template_dir');\n $email_template = file_get_contents($emailPath.'/email/email.html');\n \n\n $email_template = str_replace(\"[[EMAIL_HEADING]]\", $mail_content->subject, $email_template);\n $email_template = str_replace(\"[[EMAIL_CONTENT]]\", nl2br(utf8_encode($content_message)), $email_template);\n $email_template = str_replace(\"[[SITEROOT]]\", $this->config->item('base_url'), $email_template);\n $email_template = str_replace(\"[[LOGO]]\",$this->config->item('base_url').\"templates/\".$this->config->item('base_template_dir'), $email_template);\n\n $this->email->message(html_entity_decode(($email_template)));\n\n //echo html_entity_decode(($email_template));\n\n $this->email->send();\n\n $this->phpsession->save('success_msg',\"Verification email successfully send to '\".$___user->first_name.\" \".$___user->last_name.\"'.\");\n\n redirect($this->config->item('base_url').\"admin/users/\");\n \n }\n\n $data = array('users' => '', 'PAGING' => '', 'search' => '-','delete'=>'-','fn'=>'-','status'=>'-');\n $this->load->helper(array('pagination'));\n $array = $this->uri->uri_to_assoc(3);\n\n $pages = (@$array['pages']?$array['pages']:1);\n $page = (@$array['page']?$array['page']:1);\n\n $orderb = (@$array['orderby']?@$array['orderby']:\"asc\"); $data['orderby'] = $orderb;\n $fn = (@$array['fn']?@$array['fn']:\"first_name\"); $data['fn'] = $fn;\n $status = (@$array['status']?@$array['status']:\"-\"); $data['status'] = $status; \n $orderby = $fn.\" \".$orderb;\n\n $data['search'] = (@$array['search']?$array['search']:'-');\n $data['delete'] = (@$array['delete']?$array['delete']:'-');\n\n \n if(strlen(trim($this->input->post('submit'))) > 0){\n $user_ids = implode(\",\",$this->input->post('checbox_ids'));\n $action = $this->input->post('action');\n if($action=='delete'){$action = 'permanentdelete';}\n $message = $this->U_Model->users_operations(array('user_ids' => $user_ids),$action);\n //$this->phpsession->save('success_msg',$message);\n $this->message->setMessage($message,\"SUCCESS\");\n }\n\n $PAGE = $page;\n $PAGE_LIMIT = $this->U_Model->countDeletedUsersBySearch($data['search'],$data['delete'],$status); //20;\n $DISPLAY_PAGES = 25;\n $PAGE_LIMIT_VALUE = ($PAGE - 1) * $PAGE_LIMIT;\n\n if($this->input->post('delete')!='')\n {\n// $delete = explode(\"-\",$this->input->post('datepicker'));\n// $delete_date = $delete[2].\"-\".$delete[0].\"-\".$delete[1];\n $data['delete'] =$this->input->post('delete');\n }\n // Get posted search value in variables\n $data['search'] = ($this->input->post('search')?trim($this->input->post('search')):$data['search']);\n $data['delete'] = ($this->input->post('delete')?trim($this->input->post('delete')):$data['delete']);\n \n // Count total users\n $total = $this->U_Model->countDeletedUsersBySearch($data['search'],$data['delete'],$status);\n \n $PAGE_TOTAL_ROWS = $total;\n $PAGE_URL = $this->config->item('base_url').'admin/adminusers/fn/'.$fn.'/orderby/'.$orderb.'/search/'.$data['search'].'/delete/'.$data['delete'].'/status/'.$status;\n $data['PAGING'] = pagination_assoc($PAGE_TOTAL_ROWS,$PAGE_LIMIT,$DISPLAY_PAGES,$PAGE_URL,$page,$pages);\n // Pagination end \n // Get all users\n $data['users'] = $this->U_Model->deletedusers($PAGE_LIMIT_VALUE,$PAGE_LIMIT,$data['search'],$orderby,$data['delete'],$status); \n // set variable to show active menu \n $data['menutab'] = 'network';\n $data['menuitem'] = 'deletedusers'; \n $this->load->view($this->config->item('base_template_dir').'/admin/users_del', $data);\n \n }", "public function setNuevoFormEntidad($template){\n $form_entidad_priv = file_get_contents('app/site/entidad_tpl/nuevo_form_entidad_boton_tpl.html');\n //$form_cliente = file_get_contents('app/site/cliente_tpl/nuevo_form_cliente_tpl.html');\n $form_modificar_entidad = file_get_contents('app/site/entidad_tpl/modificar_form_entidad_boton_tpl.html');\n $dialog_entidad = file_get_contents('app/site/entidad_tpl/dialog_confirm_tpl.html');\n $template = str_replace('{dialog_form}', $form_entidad_priv.$dialog_entidad.$form_modificar_entidad, $template);\n return $template; \n }", "function admin_mail_delete( int $message_id ) : mixed\n{\n // Only administrators can delete admin mail\n user_restrict_to_administrators();\n\n // Sanitize the message id\n $message_id = sanitize($message_id, 'int', 0);\n\n // Error: Message ID not found\n if(!database_row_exists('users_private_messages', $message_id))\n return __('users_message_not_found');\n\n // Fetch some data regarding the message\n $dmessage = mysqli_fetch_array(query(\" SELECT users_private_messages.fk_users_recipient AS 'pm_recipient' ,\n users_private_messages.fk_users_sender AS 'pm_sender' ,\n users_private_messages.hide_from_admin_mail AS 'pm_hide'\n FROM users_private_messages\n WHERE users_private_messages.id = '$message_id'\"));\n\n // Error: Can not delete messages hidden from the admin inbox\n if($dmessage['pm_hide'])\n return __('users_message_ownership');\n\n // Error: Message does not belong to user\n if($dmessage['pm_recipient'] && $dmessage['pm_sender'])\n return __('users_message_ownership');\n\n // Hard delete the message\n query(\" DELETE FROM users_private_messages\n WHERE users_private_messages.id = '$message_id' \");\n\n // All went well, return NULL\n return NULL;\n}", "function removeemail($member){\n\t\t$f3=$this->f3; \n\t\t$uselog=$f3->get('uselog');\n\t\t$email_logger=$f3->new('email_log');\n\t\t$email_logger->write('in removeemail for member = '.$member->forename. ' '.$member->surname.'email was '.$member->email ,$uselog);\n\t\t\n\t\t// now check if its in use elsewhere other than this membnum\n\t\t$this->mailmanunsub($member);\n}", "protected function removeRecipient()\n\t{\n\t\t$arrChannels = $this->Input->post('channels');\n\t\t$arrChannels = array_intersect($arrChannels, $this->nl_channels); // see #3240\n\n\t\t// Check the selection\n\t\tif (!is_array($arrChannels) || count($arrChannels) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['noChannels'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t$arrSubscriptions = array();\n\t\t\n\t\t$email = \\Idna::encodeEmail($this->Input->post('email', true));\n\t\t\n\t\t$subscriber = new Subscriber($email);\n\n\t\t// Get active subscriptions\n\t\t$objSubscription = $this->Database->prepare(\"SELECT pid FROM tl_newsletter_recipients WHERE email=? AND active=1\")\n\t\t\t\t\t\t\t\t\t\t ->execute($email);\n\n\t\tif ($objSubscription->numRows)\n\t\t{\n\t\t\t$arrSubscriptions = $objSubscription->fetchEach('pid');\n\t\t}\n\n\t\t$arrRemove = array_intersect($arrChannels, $arrSubscriptions);\n\n\t\t// Return if there are no subscriptions to remove\n\t\tif (!is_array($arrRemove) || count($arrRemove) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['unsubscribed'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// check for cleverreach support\n\t\t$objChannel = $this->Database->execute(\"SELECT id FROM tl_newsletter_channel WHERE cleverreach_active = 1 AND id IN(\" . implode(',', array_map('intval', $arrRemove)) . \")\");\n\n\t\t// TODO: multiple channel unsubscription\n\t\t$subscriber->getByChannel($arrRemove[0]);\n\n\t\t// Remove subscriptions\n\t\t$subscriber->remove($arrRemove);\n\t\t\n\t\t// optional Cleverreach Deletion\n\t\tif($objChannel->numRows > 0)\n\t\t{\n\t\t\t$subscriber->removeFromCR($objChannel->fetchEach('id'));\n\t\t}\n\n\t\t// Get channels\n\t\t$objChannels = $this->Database->execute(\"SELECT title FROM tl_newsletter_channel WHERE id IN(\" . implode(',', array_map('intval', $arrRemove)) . \")\");\n\t\t$arrChannels = $objChannels->fetchEach('title');\n\n\t\t// HOOK: post unsubscribe callback\n\t\tif (isset($GLOBALS['TL_HOOKS']['removeRecipient']) && is_array($GLOBALS['TL_HOOKS']['removeRecipient']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['removeRecipient'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$this->{$callback[0]}->{$callback[1]}($varInput, $arrRemove);\n\t\t\t}\n\t\t}\n\n\t\tglobal $objPage;\n\n\t\t// Redirect to jumpTo page\n\t\tif (strlen($this->jumpTo) && $this->jumpTo != $objPage->id)\n\t\t{\n\t\t\t$objNextPage = $this->Database->prepare(\"SELECT id, alias FROM tl_page WHERE id=?\")\n\t\t\t\t\t\t\t\t\t\t ->limit(1)\n\t\t\t\t\t\t\t\t\t\t ->execute($this->jumpTo);\n\n\t\t\tif ($objNextPage->numRows)\n\t\t\t{\n\t\t\t\t$this->redirect($this->generateFrontendUrl($objNextPage->fetchAssoc()));\n\t\t\t}\n\t\t}\n\n\t\tif($subscriber->sendUnSubscribeMail($arrRemove))\n\t\t{\n\t\t\t$this->reload();\n\t\t}\n\t}", "function delete_mail($id)\n {\n return $this->db->delete('mail',array('id'=>$id));\n }", "public function prepareRemoveAction(): ResponseInterface\n {\n $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_frpformanswers_domain_model_formentry');\n $queryBuilder->getRestrictions()->removeAll();\n\n $count = $queryBuilder->count('*')\n ->from('tx_frpformanswers_domain_model_formentry')\n ->where($queryBuilder->expr()->eq('pid', $queryBuilder->createNamedParameter($this->pid, \\PDO::PARAM_INT)))\n ->andWhere($queryBuilder->expr()->eq('deleted', $queryBuilder->createNamedParameter(1, \\PDO::PARAM_INT)))\n ->execute()->fetchFirstColumn();\n //DebuggerUtility::var_dump($count);\n $this->view->assign('count', $count[0]);\n\n $moduleTemplate = $this->moduleTemplateFactory->create($this->request);\n\n $this->createMenu($moduleTemplate);\n\t $this->createButtons($moduleTemplate);\n\n $moduleTemplate->setContent($this->view->render());\n return $this->htmlResponse($moduleTemplate->renderContent());\n }", "public function actionUnsubscribe()\n {\n $uid = craft()->request->getQueryStringWithoutPath();\n $uid = substr($uid,0,-1);\n // get PC model based on string\n $PrayerCornerRecord = PrayerCornerRecord::model()->findByAttributes(array('uid' => $uid));\n // if PC record exists\n if (count($PrayerCornerRecord)) {\n\n $entryId = $PrayerCornerRecord->entryId;\n // get entry record\n $entry = craft()->entries->getEntryById($entryId);\n // delete record\n $PrayerCornerRecord->delete();\n craft()->userSession->setFlash('message', 'You have unsubscribed from notifications!');\n // log unsubscribe\n PrayerCornerPlugin::log(\n 'User (' . $PrayerCornerRecord->email . ') has successfully unsubscribed from ' . $entry->title,\n LogLevel::Info,\n true\n );\n // redirect user\n $this->redirect($entry->getUrl());\n } else {\n // log error\n PrayerCornerPlugin::log(\n 'Erroneous unsubscribe link followed (' . $uid. ')',\n LogLevel::Info,\n true\n );\n // redirect user to site root\n $this->redirect( craft()->getSiteUrl() );\n }\n\n }" ]
[ "0.5798305", "0.5718911", "0.5704611", "0.5635113", "0.55667764", "0.55327725", "0.55241877", "0.54675937", "0.5461174", "0.54481256", "0.54228723", "0.5409092", "0.534998", "0.52966416", "0.5285384", "0.5279764", "0.526521", "0.5264413", "0.5242728", "0.5201284", "0.51923186", "0.518766", "0.5175194", "0.5174756", "0.51721704", "0.5161757", "0.51486623", "0.5131669", "0.513164", "0.5120734", "0.5120599", "0.51170206", "0.51149356", "0.5106376", "0.5105029", "0.51027954", "0.5102757", "0.51013374", "0.5092158", "0.50899994", "0.50866044", "0.5085646", "0.5076807", "0.5076667", "0.50764275", "0.50623053", "0.50601375", "0.5059725", "0.5058935", "0.5053752", "0.50512624", "0.5050781", "0.50500107", "0.50467634", "0.50466764", "0.50405765", "0.5032268", "0.5031491", "0.50138944", "0.5013349", "0.5011589", "0.5003903", "0.50023186", "0.49978986", "0.49940863", "0.4993789", "0.49830183", "0.4982558", "0.4974576", "0.49675888", "0.49571422", "0.4953824", "0.49452844", "0.49378896", "0.49336278", "0.4928907", "0.49244714", "0.49186748", "0.4915284", "0.49119377", "0.49084687", "0.49015012", "0.48931393", "0.4889586", "0.48878402", "0.4885685", "0.48841202", "0.48742127", "0.48721856", "0.48619378", "0.48587394", "0.48584774", "0.48525736", "0.48522836", "0.48504233", "0.48449284", "0.48368225", "0.48358774", "0.4832971", "0.48266935" ]
0.7512935
0
Get reset subuser reset password email template
Получить шаблон электронной почты для сброса пароля подпользователя
public function getResetSubUserPasswordEmailTemplate() { return $this->scopeConfig->getValue( self::XML_PATH_RESET_SUBUSER_PASSWORD_EMAIL_TEMPLATE, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmail()\r\n\t{\r\n\t\t$errors = [];\r\n\t\treturn view('core::users.reset-password', compact('errors'));\r\n\t}", "function forogt_reset($post)\n{\n $data['destination'] = $post['r_email'];\n $data['subject'] = 'Pendaftaran Akun Baru Peserta Didik Portal Akademik ' . profil()->nama_sekolah;\n $data['massage'] = \"\n <p>\n <html>\n <body>\n Hallo, Permintaan reset Password berhasil, dengan rincian sebagai berikut : <br>\n Username : \" . $post['username'] . \" <br>\n Level Akun : \" . $post['level'] . \" <br>\n Tanggal Reset : \" . $post['tgl_reset'] . \" <br>\n Expired reset : \" . date('D, d M Y') . \" at 23.59 <br>\n Silahkan Klik Tombol Reset Password Dibawah ini untuk Mereset akun anda... <br>\n <center>\n <a href='\" . site_url('auth/reset/' . $post['id_user']) . '?d=' . date('dmy') . '&w=' . date('hi') . \"' target='_blank'> Reset Password </a>\n </center>\n </body>\n </html>\n </p>\n \";\n return smtp_email($data);\n}", "protected function composeEmailToUser()\n\t{\n\t\t$theURL = ( empty($this->myReentryURL) ?\n\t\t\t\t$this->composeReentryURL() : $this->myReentryURL ) ;\n\t\t$s = $this->model->getRes( 'account/email_body_pwd_reset_instr/'\n\t\t\t. $this->myEmailAddr . '/'\n\t\t\t. $this->getRandomCharsFromToken() )\n\t\t\t. '<a href=\"' . $theURL . '\">' . $theURL . '</a>'\n\t\t\t;\n\t\treturn $s ;\n\t}", "public function getPasswordEmail()\n {\n $this->nav('navbar.logged.out.login');\n $this->title('auth.reset.title');\n\n return $this->view('auth.password.email');\n }", "private function get_reset_password_mail_content( $user )\n\t{\n\t\t$password_reset = get_user_meta( $user->ID, 'password_reset', true );\n\t\t$password_reset_url = trailingslashit( home_url('forgot-password') ). '?user=' . $user->ID . '&reset_key=' . $password_reset['key'];\n\t\tob_start(); ?> \n\t\t\n\t\t<tr>\n \t\t\t<!-- Hero headline goes here. Manually add <br /> to insert line breaks to fine tune. -->\n \t\t\t<td class=\"inner-width\" style=\"font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 14px; line-height: 18px; color: #ffffff;\">\n \t\t\t\t<br>\n\t\t\t\tDear <?php echo $user->user_nicename; ?>,<br><br>\n\t\t\t\tPlease follow the link below to reset your password.\n \t\t\t</td>\n \t\t</tr>\n \t\t<tr>\n \t\t\t<!-- Hero button -->\n \t\t\t<td class=\"inner-width\" style=\"padding-top: 25px;\">\n \t\t\t\t<div style=\"text-align:center;\">\n\t \t\t\t\t<!--[if mso]>\n\t\t\t\t\t<v:roundrect xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" href=\"<?php echo $password_reset_url; ?>\" style=\"height: 44px; v-text-anchor: middle; width: 172px;\" arcsize=\"12%\" strokecolor=\"#ff4200\" fillcolor=\"#ff4200\">\n\t\t\t\t\t<w:anchorlock/>\n\t\t\t\t\t<center style=\"color: #ffffff; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold;\">Reset Password</center>\n\t\t\t\t\t</v:roundrect>\n\t\t\t\t\t<![endif]-->\n\t\t\t\t\t<a href=\"<?php echo $password_reset_url; ?>\" style=\"background-color: #ff4200; border: 1px solid #ff4200; border-radius: 5px; color: #ffffff; display: inline-block; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 18px; font-weight: bold; line-height: 44px; text-align: center; text-decoration: none; width: 172px; -webkit-text-size-adjust: none; mso-hide: all;\">Reset Password</a>\n\t\t\t\t</div>\n \t\t\t</td>\n \t\t</tr>\n\t\t<?php\n\t\treturn ob_get_clean();\n\t}", "protected function password_reset() {\n return \"password_reset page\";\n }", "public function getResetTpl(){\n return $this->templates['reset'];\n }", "public function generateResetPassword()\n {\n $this->setRules([ StringLiterals::EMAIL => 'required|max:100|email' ]);\n $this->_validate();\n $this->_customer = $this->_customer->where('email', $this->request->email)->first();\n if (isset($this->_customer) && is_object($this->_customer) && ! empty($this->_customer->id)) {\n $this->_customer->access_otp_token = mt_rand();\n $this->_customer->save();\n $this->email = $this->email->fetchEmailTemplate('password_reset_otp');\n $this->email->content = str_replace([ '##USERNAME##','##OTP##' ], [ $this->_customer->name,$this->_customer->access_otp_token ], $this->email->content);\n $this->notification->email($this->_customer, $this->email->subject, $this->email->content);\n return true;\n }\n return false;\n }", "function forgotPassword($emailTO) {\n global $user, $pass;\n\n return $params = array(\n 'api_user' => $user,\n 'api_key' => $pass,\n 'to' => $emailTO,\n 'subject' => 'E-Mart: Reset password',\n 'html' => \"<html>\n <head></head>\n <body>\n <p>You have been outbid by another bidder.\n Please click on the link below to bid agiain:<br>\n <span><a href=\\\"www.e-mart.azurewebsites.net\\\">URL</a></span>\n </p>\n </body>\n </html>\",\n 'text' => 'testing body',\n 'from' => 'info@emart.com'\n );\n}", "public function getPasswordResetEmail(){\n return $this->email;\n }", "public function getEmailTpl() { return $this->_emailTpl; }", "protected function getEmailSubject()\n {\n return 'Your Password Reset Link';\n }", "public function getEmailForPasswordReset()\n {\n return $this->user_email;\n }", "public function getPasswordResetForm();", "function forgotten_password_reset()\n {\t\n $data['heading'] = $this->lang->line('FAL_forgotten_password_label');\n $data['fal'] = $this->fal_front->forgotten_password_reset();\n\t $this->load->view($this->_container, $data); \n }", "public function get_view_template() {\n\t\treturn 'admin/admin-forgotten';\n\t}", "public function admin_mail_body($res,$key) {\n\n\t\t$ques = $this->_question->getquestion($res['question_id']);\n\n\t $url = Url::baseUrl().'/reset-password/token/'.$key;\n\n\t\t$output = '<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td><table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" style=\"border-collapse: collapse;\"><tr><td style=\"background: url('.Url::baseUrl().'/assets/img/bg.png) no-repeat;background-size: cover;padding: 50px 0;text-align: center;\"><img src=\"'.Url::baseUrl().'assets/img/logo-white.png\" style=\"width: 300px;\"></td></tr><tr><td style=\"padding: 40px;\"><table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td style=\"padding: 10px 0; \">Hello '.$res['username'].',</td></tr><tr><td style=\"padding: 10px 0; \">You are receiving this email because you contacted ADMIN for assistance regarding your \"Security Answer\" to reset your password. Please take note of your registered security answer below and click \"Reset Password\" to proceed</td></tr><tr><td style=\"padding: 20px;\"><table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td style=\"width: 150px; padding: 5px 0;\">Security Question</td><td>'.$ques['security_question'].'</td></tr><tr><td style=\"width: 150px; padding: 5px 0;\">Security Answer</td><td>'.$res['answer'].'</td></tr><tr><td colspan=\"2\" style=\"text-align: center; height: 80px; padding: 10px;\"><a href=\"'.$url.'\" style=\"padding: 10px; background: #f5f5f5; border: 1px solid #b2b2b2; text-transform: uppercase; text-decoration: none; color: #000\">Reset Password</a></td></tr></table></td></tr><tr><td style=\"padding: 20px 0 0 0;\">Best Regards,</td></tr><tr><td style=\"font-weight: 600;\">MSW ADMIN</td></tr></table></td></tr><tr><td style=\"background: url('.Url::baseUrl().'/assets/img/bg.png) no-repeat;background-size: cover;padding: 10px 0;text-align: center;\"></td></tr></table></td></tr></table>';\n\n\t\treturn $output;\n\t}", "public function forgottenPasswordPage() {\n return $this->responseFactory->html('user/forgottenPassword.html.twig');\n }", "public function getForgotPw(){\n\t\t//create forgot password view\n\t\treturn View::make('account.forgot-password');\n\t}", "public function send_admin_pwd($reset_url = '', $query) {\n $newsid = '1';\n $template_values = $this->admin_model->get_newsletter_template_details($newsid);\n $subject = 'From: ' . $this->config->item('email_title') . ' - ' . $template_values->message['subject'];\n $adminnewstemplateArr = array('email_title' => $this->config->item('email_title'), 'logo' => $this->config->item('logo_image'), 'footer_content' => $this->config->item('footer_content'), 'meta_title' => $this->config->item('meta_title'));\n extract($adminnewstemplateArr);\n $message = '<!DOCTYPE HTML>\n\t\t\t<html>\n\t\t\t<head>\n\t\t\t<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">\n\t\t\t<meta name=\"viewport\" content=\"width=device-width\"/>\n\t\t\t<title>' . $template_values->message['subject'] . '</title>\n\t\t\t<body>';\n include('./newsletter/template' . $newsid . '.php');\n $message .= '</body>\n\t\t\t</html>';\n\n $sender_email = $this->config->item('site_contact_mail');\n $sender_name = $this->config->item('email_title');\n \n $email_values = array('mail_type' => 'html',\n 'from_mail_id' => $sender_email,\n 'mail_name' => $sender_name,\n 'to_mail_id' => $query->row()->email,\n 'subject_message' => 'Password Reset',\n 'body_messages' => $message\n );\n $email_send_to_common = $this->admin_model->common_email_send($email_values);\n }", "function sendPasswordResetEmail($email)\n{\n $userManager = new UserManager();\n $user_req = $userManager->getUser(\"\", $email);\n \n if ($user = $user_req->fetch())\n {\n $hash = $user['hash'];\n $to = $email;\n $subject = 'Reset your Camagru password';\n $message = '\n \n Hi there! Did you forget how to log in to your Camagru account? :(\n \n Please click this link to reset your password:\n http://localhost:8100/index.php?action=verifyAccountForReset&email='.$email.'&hash='.$hash.'\n \n ';\n \n $headers = 'From:noreply@camagru.com' . \"\\r\\n\";\n mail($to, $subject, $message, $headers);\n \n $msg = \"A link to reset your password was sent to your email address!\";\n } else {\n $msg = \"Sorry, there is no registered account for this email address :/\";\n }\n \n require('view/forgotPasswordView.php');\n}", "public function getEmailForPasswordReset()\n {\n return $this->email;\n }", "public function getEmail()\n {\n return view('auth::auth.forgot');\n }", "public function admin_password_reset_page(){\n return view('singin&singup.forget.enter_email');\n \n }", "public function getPasswordReset()\n {\n $data = [\n 'title' => translate('cp.reset_password')\n ];\n\n return view('auth.reset', $data);\n }", "public function getResetPassword()\n {\n return view('admin.reset_password')->with(['success'=>'success message']);\n }", "public function forgotPassword()\n {\n $breadCrumb = $this->userEngine\n ->breadcrumbGenerate('forgot-password');\n\n return $this->loadPublicView('user.forgot-password', $breadCrumb['data']);\n }", "protected function getFailedResetPasswordMessage()\r\n {\r\n return 'We can\\'t find a user with that e-mail address.';\r\n }", "public function getEmailForPasswordReset()\n\t{\n\t\treturn $this->email;\n\t}", "public function getEmailForPasswordReset()\n {\n return $this->attributes['cu_email'];\n }", "public function forgotPassword()\n {\n if ($this->issetPostSperglobal('email') && !empty($this->getPostSuperglobal('email'))) {\n if ($this->users_manager->resetToken($this->getPostSuperglobal('email'))) {\n $this->session->writeFlash('success', \"Les instructions pour réinitialiser votre mot de passe vous ont été envoyées par email, vous avez 30 minutes pour le faire.\");\n } else {\n $this->session->writeFlash('danger', \"Aucun compte ne correspond à cet adresse mail : {$this->getPostSuperglobal('email')}.\");\n }\n } else {\n $this->session->writeFlash('danger', \"L'adresse mail n'est pas ou est mal renseignée.\");\n }\n $this->render('forgot-password', ['head'=>['title'=>'Mot de passe oublié', 'meta_description'=>'']]);\n }", "Public Function resetPassword()\n\t{\n\t\t$Code = $this->generateResetCode();\n\t\t$Email = $this->email;\n\t\t$Subject = 'Reset Password Request from ' . $_SERVER['HTTP_HOST'];\n\t\t$Body = <<<END\nThis is an automatically generated email from $_SERVER[HTTP_HOST] regarding a password reset.<br/>\nIf you did not request a password reset then please disregard this email.<br/>\n<br/>\nOtherwise, follow this link to reset your password:<br/>\n<a href=\"http://$_SERVER[HTTP_HOST]/BevoMedia/Index/ResetPassword.html?EmailCode=$Code&Email=$Email\">http://$_SERVER[HTTP_HOST]/BevoMedia/Index/ResetPassword.html?EmailCode=$Code&Email=$Email</a>\nEND;\n\t\t\n\t\t$this->ClearResetCode();\n\t\t$this->InsertResetCode($Code);\n\t\t$this->SendEmail($Email, $Subject, $Body);\n\t}", "public function retrieval_mail_body($res,$key) {\n\n\t\t$url = Url::baseUrl().'/reset-password/token/'.$key;\n\n\t\t$output = '<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td><table align=\"center\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" style=\"border-collapse: collapse;\"><tr><td style=\"background: url('.Url::baseUrl().'/assets/img/bg.png) no-repeat;background-size: cover;padding: 50px 0;text-align: center;\"><img src=\"'.Url::baseUrl().'/assets/img/logo-white.png\" style=\"width: 300px;\"></td></tr><tr><td style=\"padding: 40px;\"><table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td style=\"padding: 10px 0; \">Hello '.$res['username'].',</td></tr><tr><td style=\"padding: 10px 0; \">You are receiving this email because we received a password reset request from your account</td></tr><tr><td colspan=\"2\" style=\"text-align: center; height: 80px; padding: 10px;\"><a href=\"'.$url.'\" style=\"padding: 10px; background: #f5f5f5; border: 1px solid #b2b2b2; text-transform: uppercase; text-decoration: none; color: #000\">Reset Password</a></td></tr><tr><td>If you did not request a password reset, no further action is required</td></tr><tr><td style=\"padding: 20px 0 0 0;\">Best Regards,</td></tr><tr><td style=\"font-weight: 600;\">MSW ADMIN</td></tr></table></td></tr><tr><td style=\"background: url('.Url::baseUrl().'/assets/img/bg.png) no-repeat;background-size: cover;padding: 10px 0;text-align: center;\"></td></tr></table></td></tr></table>';\n\n\t\treturn $output;\n\t}", "public function generateCustomerPasswordResetEmail($customer, $new_password) {\n $email = new Email();\n\n $mailBody = new EmailTemplate();\n $mailBody->loadByKey('customer_password_reset');\n\n\n // output the email template after eval() call into memory buffer\n $message = \"\";\n ob_start();\n eval($this->covernt_text_into_php_code($mailBody->get_email_template()));\n $message = ob_get_contents();\n ob_end_clean();\n\n \n $email->set_recipient($customer->get_email());\n $email->set_subject($mailBody->get_email_template_title());\n $email->set_message($message);\n\n return $email;\n }", "function generateForgotPassMsgBody($token) {\n $reset_url = BASE_URL.'/reset_password.php?token='.$token;\n\n $message = \"\";\n $message .=\"<html><head><title></title></head>\n <body>\n <img src='\".BASE_URL.LOGO_URL.\"'>\n <p>\n We heard that you lost your MyNotes4u.com password. Sorry about that!\n </p>\n <p>\n But don't worry! You can use the following link to reset your password:\n </p>\n <p>\n <span><a href=\".$reset_url.\">Link to reset password</a></span>\n </p>\n <p>\n If you don't use this link within 3 hours, it will expire.\n </p>\n </body>\n </html>\";\n return $message;\n}", "protected function getTemplate() {\n\t\treturn new Template('Premanager', 'changeEmail');\n\t}", "public function actionResetPassword()\n\t{ \n\t\t$model = new Users;\n\t\tif(isset($_GET['id']))\n\t\t{\n\t\t\t$id = $_GET['id'];\n\t\t\t$random_password = $model->randomPassword();\n\t\t\t$model = $model->restPasswordverification($id);\n\t\t\t$unhashedpassword = $random_password;\t\t\t\n\t\t\t$model->password = md5(trim($unhashedpassword));\n\t\t\tif($model->save()){\n\t\t\t\t$et = new EmailTemplates;\n\t\t\t\t$data = $et->getData(9);\n\t\t\t\t// parse Body\n\t\t\t\t$search = array('{name}', '{username}', '{password}');\n\t\t\t\t$replace = array($model->name(), $model->username, $unhashedpassword);\n\t\t\t\t$body = str_ireplace($search, $replace, $data->body);\n\t\t\t\t// ends parse Body\n\t\t\t\t$email_data = array(\n\t\t\t\t\t'body'=> $body,\n\t\t\t\t\t'address'=> $model->email,\n\t\t\t\t\t'ccaddress'=> '',\n\t\t\t\t\t'bccaddress'=> '',\n\t\t\t\t\t'subject' => $data->subject\n\t\t\t\t);\n\n\t\t\t\t// send the email\n\t\t\t\t$this->sendMail($email_data);\n\t\t\t\tYii::app()->user->setFlash('admin','<div align=\"center\" style=\"color:#78AB46;\"><strong><h4>Message has been sent to '.$model->email.'</h4></strong></div>');\n\t\t\t\t$this->redirect(array('admin','id'=>$model->id));\n\t\t\t}\n\t\t}\n\t}", "public function sendReset($email) {\n\n if (!filter_var($email, FILTER_VALIDATE_EMAIL)) {\n return 'Invalid email address';\n }\n\n\n // check to see if the email exists\n $qry = sprintf(\"SELECT uv.userID\n FROM sysUGFValues AS uv\n INNER JOIN sysUsers AS u ON u.itemID=uv.userID\n WHERE uv.sysStatus='active'\n AND uv.sysOpen='1'\n AND u.sysStatus='active'\n AND u.sysOpen='1'\n AND uv.fieldID='3'\n AND uv.value='%s'\",\n $this->db->escape($email));\n $res = $this->db->query($qry);\n if ($this->db->num_rows($res) > 0) {\n\n $mail = new PHPMailer();\n\n while ($u = $this->db->fetch_assoc($res)) {\n\n $hash = $this->generateToken();\n\n // insert a unique hash into the DB to check on later\n $qry = sprintf(\"UPDATE sysUsers SET fpHash='%s' WHERE itemID='%d'\",\n $hash,\n $u['userID']);\n $this->db->query($qry);\n $resetLink = 'http://' . $_SERVER['HTTP_HOST'] . '/reset-password?token=' . $hash;\n\n $mail->Subject = ucwords($_SERVER['HTTP_HOST']) . \" password reset\";\n $mail->AddAddress($email);\n $mail->SetFrom('no-reply@intervue.ca', 'Intervue');\n\n\n $mail->Body = \"<p>Hi there,</p>\n\n <p>There was recently a request to change the password on your account.</p>\n\n <p>If you requested this password change, please set a new password by following the link below:</p>\n\n <p>{$resetLink}</p>\n\n <p>If you don't want to change your password, just ignore this message.</p>\n\n <p>Thanks</p>\";\n\n $mail->AltBody = strip_tags($mail->Body);\n\n if (!$mail->Send()) {\n return false;\n }\n\n $mail->ClearAllRecipients();\n\n }\n\n return true;\n }\n\n return 'No user found';\n }", "public function emailTemplate(){\n if (Auth::user()->admin===1) {\n $template = EmailTemplate::find(1);\n return view('admin.emailTemplate')->with('template', $template);\n }\n else {\n return view('pages.noAccess');\n }\n }", "public function resetPasswordPostAction() {\n $request = Request::createFromGlobals();\n $userEmail = $request->request->get('_username', '');\n \n // Get the user object\n $user = $this->getDoctrine()\n ->getRepository('AppBundle:Users')\n ->findOneBy(array('email' => $userEmail));\n \n if (!$user)\n {\n $error = \"User not found!\";\n }\n else\n {\n // Generate a user hash\n $hash = $this->generateUserHash($user);\n \n // Send reset password email\n $mailer = $this->get('mailer');\n $message = $mailer->createMessage()\n ->setSubject('Tabulit Password Reset')\n ->setFrom('admin@tabulit.com') \n ->setTo($user->getEmail())\n ->setBody(\n $this->renderView(\n 'AppBundle:Email:resetPassword.html.twig', array(\n 'id' => $user->getId(),\n 'hash' => $hash->getRc4Key(),\n 'hash_time' => $hash->getCreated())\n ),\n 'text/html'\n );\n $mailer->send($message);\n $this->logAction(\"Reset password mail has been sent for \".$user->getId(), self::LOGTYPE_EDIT, $user->getId());\n $error = \"NONE\";\n }\n \n return $this->resetPasswordAction($error, $userEmail);\n }", "public function send_pw_reset_email($to,$id) {\r\n \r\n $full_url= BASE_URL . \"/#/reset_pw/\" . $id;\r\n $this->mail->addAddress($to); // Add a recipient\r\n $this->mail->Subject = PW_RESET_SUBJECT;\r\n $this->mail->Body = strtr (PW_RESET_BODY, array ('{{res_link}}' => $full_url));;\r\n //$mail->AltBody = 'This is the body in plain text for non-HTML mail clients';\r\n $resp = $this->mail->send();\r\n return $resp;\r\n }", "public function getPasswordReset(){\n return view('auth.passwords.reset');\n }", "public function requestPasswordReset()\n {\n $this->View->render('user/requestPasswordReset');\n }", "function sendAccountResetEmail($registrant, $newPwd)\n{\n $givenName = $registrant['givenName'];\n $familyName = $registrant['familyName'];\n $email = $registrant['email'];\n $accountName = $registrant['accountName'];\n $subject = \"Your contest registration system account.\";\n $mailContent = $givenName . ' ' . $familyName .\n \":\\n\\nHere are your new login credentials\" .\n \" for the contest registration system.\\n\";\n $mailContent .= \"Account name: \" . $accountName . \"\\n\";\n $mailContent .= \"Password: \" . $newPwd . \"\\n\";\n $mailContent .= \"Log-in to change your password right away as email is not secure.\\n\";\n $mailContent .= \"\\nUse the following link to log-in and change your password:\\n\";\n $mailContent .= \"\\n\" . REGISTRATION_URL . \"login.php?url=changePWD.php&uid=\" . urlencode($accountName);\n $mailContent .= \"&pwd=\" . urlencode($newPwd) . \"\\n\";\n $mailContent .= \"\\nIf you have difficulty, please write to the web site administrator: \";\n $mailContent .= \"mailto:\" . ADMIN_EMAIL . \"?subject=\" . urlencode(\"contest registration password reset\");\n $mailContent .= \" or simply reply to this note.\\n\";\n $mailContent .= automatedMessage('contest');\n $fromAddress = \"From: \" . ADMIN_EMAIL . \"\\r\\n\";\n do_email($email, $subject, $mailContent, $fromAddress);\n}", "public function getForgottenPassword()\n {\n return view('users.forgotten_password');\n }", "public function sendResetEmail()\n {\n $resetToken=$this->extractTokenFromCache('reset')['reset_token'];\n\n $url = url('/'.$this->id.'/resetPassword',$resetToken);\n Mail::to($this)->queue(new ResetPasswordEmail($url));\n }", "public function getEmailForPasswordReset()\n {\n return $this->getAttribute('email');\n }", "public function forgot_password() {\n\t\t$this->output->append_title('Forgot Password');\n\t\t$data = array();\n\t\tif($this->input->post())\n\t\t{\n\t\t\t$this->form_validation->set_rules('email', 'Email', 'trim|required');\n\t\t\tif($this->form_validation->run() == TRUE)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\t$email = $this->input->post('email');\n\t\t\t\t\t$subject = 'Password Reset Confirmation';\n\t\t\t\t\t\n\t\t\t\t\t// Find the user using the user email address\n\t\t\t\t\t$user = Sentry::findUserByLogin($email);\n\t\t\t\t\t\n\t\t\t\t\t// Get the password reset code\n\t\t\t\t\t$resetCode = $user->getResetPasswordCode();\n\t\t\t\t\t$url = website_url('auth/reset/'.$resetCode);\n\t\t\t\t\t$template_data = array(\n\t\t\t\t\t\t'email_title' => 'Forgot Password',\n\t\t\t\t\t\t'email_heading' => 'Hello',\n\t\t\t\t\t\t'email_body' => 'There was recently a request to reset your password.\n\t\t\t\t\t\t<br/>If you requested this password change, please click on the following link to reset your password:<br/> <a href=\"'.$url.'\">'.$url.'</a><br/>\n\t\t\t\t\t\tIf clicking the link does not work, please copy and paste the URL into your browser instead.<br/><br/>\n\t\t\t\t\t\tIf you didn\\'t make this request, you can ignore this message and your password will remail the same.\n\t\t\t\t\t\t'\n\t\t\t\t\t);\n\n\t\t\t\t\t$body = $this->parser->parse('emails/user_registration', $template_data,TRUE);\n\t\t\t\t\tif($this->common->sendEmail($email,$subject,$body))\n\t\t\t\t\t{\n\t\t\t\t\t\t$message = array('type' => 'success','message' => 'An email has been sent to your email address with instructions to reset your password.');\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$message = array('type' => 'warning','message' => 'Unable to send email, please try again later.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Cartalyst\\Sentry\\Users\\UserNotFoundException $e)\n\t\t\t\t{\n\t\t\t\t\t$message = array('type' => 'danger','message' => 'Email does not exists.');\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$message = array('type' => 'danger','message' => $this->message->validation_errors());\n\t\t\t}\n\t\t\t\n\t\t\t$this->message->set($message['type'], $message['message']);\n\t\t}\n\t\t\n\t\t$data['email'] = array('name' => 'email',\n\t\t\t'autofocus' => 'autofocus',\n\t\t\t'id' => 'email',\n\t\t\t'placeholder' => 'Email',\n\t\t\t'class' => 'form-control',\n\t\t\t'type' => 'text',\n\t\t\t//'value' => $this->form_validation->set_value('email')\n\t\t);\n\t\t$this->load->view(parent::$module.'/forgot_password',$data);\n\t}", "function requestpasswordreset_action()\n {\n $login_model = $this->loadModel('Login');\n // set token (= a random hash string and a timestamp) into database\n // to see that THIS user really requested a password reset\n if ($login_model->setPasswordResetDatabaseToken() == true) {\n // send a mail to the user, containing a link with that token hash string\n $login_model->sendPasswordResetMail();\n }\n $this->view->render('login/requestpasswordreset');\n }", "public function forgotpasswordAction() {\n $form = new Admin_Form_ResendPassword();\n if ($this->getRequest()->isPost()) {\n if ($form->isValid($this->_request->getPost())) {\n //check user is registered\n $values = $form->getValues();\n $siteUsersMapper = new Application_Model_Table_AdminUsers();\n $exists = $siteUsersMapper->fetchByUsername($values['email_address']);\n if($exists){\n //user exists\n $recoveryEmailsMapper = new Application_Model_Table_AdminUserRecoveryEmails();\n $recoveryEmail = $recoveryEmailsMapper->createRow();\n $recoveryEmail->admin_user_id = $exists->admin_user_id;\n $recoveryEmail->email_address = $exists->username;\n $recoveryEmail->hashActivationKey();\n $recoveryEmail->save();\n }\n $this->_helper->FlashMessenger->addMessage('You password has been reset, please check your email' , 'successful');\n $this->_helper->redirector->goToRouteAndExit(array(), 'admin-dashboard', true);\n }\n }\n $this->view->form = $form;\n }", "public function forgotPassword()\n {\n\n return view('auth.passwords.email');\n }", "public function forgot_password_action() {\n $email = $this->input->post(\"email\", true);\n $rply = $this->model_customer->check_username($email);\n $this->load->helper('string');\n if ($rply['errorCode'] == 1) {\n $define_param['to_name'] = ($rply['Firstname']) . \" \" . ($rply['Lastname']);\n $define_param['to_email'] = $rply['Email'];\n $userid = $rply['ID'];\n $hidenuseremail = $rply['Email'];\n $hidenusername = ($rply['Firstname']) . \" \" . ($rply['Lastname']);\n //Encryprt data\n $encid = $this->general->encryptData($userid);\n $encemail = $this->general->encryptData($hidenuseremail);\n $url = base_url(\"reset-password/\" . $encid . \"/\" . $encemail);\n\n $update['reset_password_check'] = 0;\n $update['reset_password_requested_on'] = date(\"Y-m-d H:i:S\");\n $result = $this->model_customer->update(\"app_customer\", $update, \"ID='\" . $userid . \"'\");\n\n //Send email\n $subject = translate('reset_password');\n $define_param['to_name'] = $hidenusername;\n $define_param['to_email'] = $hidenuseremail;\n\n $parameter['URL'] = $url;\n $html = $this->load->view(\"email_template/forgot_password\", $parameter, true);\n $this->sendmail->send($define_param, $subject, $html);\n\n $this->session->set_flashdata('msg', $rply['errorMessage']);\n $this->session->set_flashdata('msg_class', 'success');\n redirect('login');\n } else {\n $this->session->set_flashdata('msg', $rply['errorMessage']);\n $this->session->set_flashdata('msg_class', 'failure');\n redirect('forgot-password');\n }\n }", "protected function sendPasswordResetEmail(){\n\t\t// generate the url\n\t\t$url = 'http://'.$_SERVER['HTTP_HOST'].'/password/reset/'.$this->password_reset_token;\n\t\t$text = View::getTemplate('Password/reset_email.txt', ['url' => $url]);\n\t\t$html = View::getTemplate('Password/reset_email.html', ['url' => $url]);\n\t\t\n\t\tMail::send($this->email, 'Password_reset', $text, $html);\n\t}", "public function getAdminEmailTemplate ()\n {\n $emailTemplate = $this->scopeConfig->getValue(\n 'b2bregistration/admin_notification/admin_email_templates',\n ScopeInterface::SCOPE_STORE\n );\n return $emailTemplate;\n }", "public function toMail($notifiable)\n {\n // dd(Config(\"auth.user_mode\"));\n $url = url(Config(\"auth.user_mode\").'/reset_password').'/'.$this->token;\n // $url = url('/').'/admin/reset_password/'.$this->token;\n\n $verification_url = '<a target=\"_blank\" style=\"border: 1px solid #ff4747; color: #ffffff; display: block; font-size: 18px; letter-spacing: 0.5px; background-color: #ff4747;\n margin: 0 auto; max-width: 200px; padding: 11px 6px; height: initial; text-align: center; text-transform: capitalize; text-decoration: none; width: 100%; border-radius: 5px;\" href='.$url.'>Reset Password</a><br/>';\n\n // dd($verification_url);\n\n $arr_email_data = [];\n\n $obj_email_data = EmailTemplateModel::where('id','3')->first();\n\n if($obj_email_data)\n {\n $arr_email_data = $obj_email_data->toArray();\n }\n\n $content = '';\n $content .= $arr_email_data['template_html'];\n\n $content = str_replace('##SUBJECT##', $arr_email_data['template_subject'], $content);\n $content = str_replace('##USERNAME##', $notifiable->company_name, $content);\n $content = str_replace('##VERIFICATION_URL##', $verification_url, $content);\n\n return (new MailMessage)->view('user.email.general', array('content'=>$content))->subject(config('app.project.name').' :Forgot Password');\n }", "public function forgot_password()\n\t{\n\t\t$email = Input::get('email');\n\n\t\t//Get reset code and send email\n\t\tif($resetCode = $this->repo->getResetCode($email))\n\t\t{\n\t\t\treturn View::make('authentication.confirm_reset_code_sent')->with('email',$email)->with('resetCode',$resetCode);\n\t\t}\n\t\treturn View::make('authentication.forgot_password')->withInput(Input::all()); \n\t}", "public function forgot()\n {\n $useremail = $this->input->post(EMAIL);\n $this->load->model('booking/Bookingmodel');\n $constants = $this->Bookingmodel->getConstants();\n $user = $this->user->get_user_by_email_password($useremail);\n if ($user) {\n $slug = md5($user->userID . $user->emailID);\n $message = '<img src=\"' . base_url('assets/images/logo.png') . '\" border=\"0\"><br>It looks like you forgot your password. No problem, we’ll get this cleared up.<br><br>\n <b>To reset your password please click the link below and follow the instructions:</b><br><br>\n **<a href=\"' . base_url('login/reset/' . $user->userID . '/' . $slug) . '\"> ' . base_url('login/reset/' . $user->userID . '/' . $slug) . '</a>\n <br><br>\n If you did not request to reset your password then please ignore this email and no changes will occur.';\n $this->load->library(EMAIL);\n $this->email->from($constants->fromEmail);\n $this->email->to($useremail);\n $this->email->subject('Reset Password');\n $this->email->message($message);\n if (!$this->email->send()) {\n $emailInfo['emailStatus'] = 0;\n $emailInfo['toEmail'] = $useremail;\n $emailInfo['fromEmail'] = $constants->fromEmail;\n $emailInfo['content'] = $message;\n $emailInfo['subject'] = 'Reset Password';\n $this->load->model('profile/Profilemodel');\n $this->Profilemodel->saveEmailStatus($emailInfo);\n }\n echo \"1\";\n } else {\n echo \"0\";\n }\n }", "public function sendResetPasswordInstruction() {\n $data = \\Input::all();\n /**\n * @todo Validate Email\n */\n if (!isset($data['email']) || !$data['email']) {\n return $this->json(array('status' => 'error',\n 'errors' => array('No email address supplied')));\n }\n\n try {\n\n // Find the user using the user email address\n $user = \\Sentry::findUserByLogin($data['email']);\n\n // Get the password reset code\n $resetCode = $user->getResetPasswordCode();\n\n // Send password reset email to the user\n $this->notificationService->sendEmail($data['email'], $user->getEmail(), 'Reset Your Password', 'email.resetpassword', compact('user', 'resetCode'));\n\n return $this->json(array(\"status\" => \"success\", \"message\" => \"Password reset instruction sent\"));\n } catch (Cartalyst\\Sentry\\Users\\UserNotFoundException $e) {\n return $this->json(array('status' => 'error',\n 'errors' => array('User was not found')));\n }\n }", "public function reset($username) {\r\n\t\tglobal $db;\r\n\t\t// Resets a users password.\r\n\t\tif (strpos($username,'@') > 0) {\r\n\t\t\t// Its an Email.\r\n\t\t\t$udata = db::get_array(\"users\",array(\"email\"=>$username));\r\n\t\t} else {\r\n\t\t\t$udata = db::get_array(\"users\",array(\"username\"=>$username));\r\n\t\t}\r\n\t\t// Check if they exist.\r\n\t\tif (count($udata) > 0) {\r\n\t\t\t// Yup\r\n\t\t\t$rand = $this->gen_rand();\r\n\t\t\t$udata = $udata[0];\r\n\t\t\t$uid = $udata['id'];\r\n\t\t\t\r\n\t\t\t// Update their account.\r\n\t\t\tdb::update(\"users\",array(\"passreset\"=>1,\"passresetkey\"=>$rand),array(\"id\"=>$uid));\r\n\t\t\t\r\n\t\t\t// Send them an email.\r\n\t\t\t$e = new email_tmpl();\r\n\t\t\t$e->init($udata['email'],\"Password Reset\");\r\n\t\t\t$e->load(\"password_reset\");\r\n\t\t\t$e->set_var(\"key\",$rand);\r\n\t\t\t$e->set_var(\"username\",$udata['username']);\r\n\t\t\t$eres = $e->send();\r\n\t\t\t\r\n\t\t\t// Add a notification too. C:\r\n\t\t\tif ($eres) {\r\n\t\t\t\t$this->notifications($uid)->create(\"Password Reset\",\"You have requested a password reset, We've sent you an Email to you containing a link to reset your password. If this wasn't you contact support immediately.\");\r\n\t\t\t\treturn array(\"res\"=>true,\"msg\"=>\"Password has been reset and Emailed to {$udata['email']}\",\"email\"=>$udata['email']);\r\n\t\t\t} else {\r\n\t\t\t\t$this->notifications($uid)->create(\"Password Reset\",\"You have requested a password reset. However we were unable to send you an Email. Please open a support ticket or contact us directly via IRC.\");\r\n\t\t\t\treturn array(\"res\"=>true,\"msg\"=>\"Password has been reset but could not be Emailed to {$udata['email']} please open a support ticket if you have account access, e.g. still logged in or talk to staff on IRC.\",\"email\"=>$udata['email']);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Nope.\r\n\t\t\treturn array(\"res\"=>false,\"msg\"=>\"There was no such user with that Username/E-Mail!\");\r\n\t\t}\r\n\t}", "function forgot_password() {\n $datos['titulo'] = \"Restablecer Contraseña\";\n $this->render_page('usuarios/forgot_password', $datos);\n }", "public function sendEmail()\n {\n /* @var $user User */\n $user = User::findOne([\n 'status' => User::STATUS_ACTIVE,\n 'email' => $this->email,\n ]);\n\n if ($user) {\n if (!User::isPasswordResetTokenValid($user->password_reset_token)) {\n $user->generatePasswordResetToken();\n }\n\n if ($user->save()) {\n // return \\Yii::$app->mailer->compose('passwordResetToken', ['user' => $user])\n // ->setFrom([\\Yii::$app->params['supportEmail'] => \\Yii::$app->name . ' robot'])\n // ->setTo($this->email)\n // ->setSubject('Password reset for ' . \\Yii::$app->name)\n // ->send();\n\n//http://localhost/eventone/web/site/reset-password?token=c4psNELzGEz9yAAJqjUasMYsDcm8Z4mt_1424623364\n //send email\n $body = \"<p>\nReset or change your password by clicking the link below\n</p>\n<p>\n <a href=\\\"\" . (\\yii\\helpers\\Url::toRoute('site/reset-password', true)) . \"/?token=\" . $user->password_reset_token . \"\\\">Reset my password</a>.\n</p>\n\n<p>\nIf you have not requested for this email on our web site<br />\nand believe that you have received this email eroneously,<br />\nplease report this to \" . (Yii::$app->params['supportEmail']) . \".<br />\n-----------------------------------------------------------<br />\nThis message was sent by \" . (Yii::$app->params['siteName']) . \" which is powered by \" . (Yii::$app->params['companyName']) . \".<br />\n</p>\n \";\n\n mail($this->email, \"Password Reset\", $body); \n }\n }\n\n return false;\n }", "public function forget_password() {\n $this->layout = 'custom';\n if ($this->request->is('post')) {\n if (empty($this->data['email'])) {\n $errors = 'Please Provide Your Email Adress that You used to Register with Us';\n $this->set('errors', $errors);\n $this->render('/Users/forget_password');\n }\n\n $emails = $this->request->data['email'];\n\n\n // Check if the Email exist\n\n $firstEmail = $this->User->find('first', array(\n 'conditions' => array(\n 'User.email' => $emails,\n ),\n ));\n if (!empty($firstEmail)) {\n \n\n // create the url with the reset function\n $name = $firstEmail['User']['first_name'];\n $id = $firstEmail['User']['id'];\n $hash = base64_encode($id);\n $url = Router::url(array(\n 'controller' => 'users',\n 'action' => 'reset',\n ), true) . '/' . $id;\n \n $dataArry =array('url' => $url,\n 'name' =>$name, );\n // ============Email================//\n\n if ($emails) {\n $Email = new Email();\n $status = $Email->sendEmail($emails, 'forget password', 'reset_password', $dataArry);\n $emailSucces = 'Check Your Email To Reset your password';\n $this->set('successmsg', $emailSucces);\n $this->render('/Users/forget_password');\n } else {\n $errors = 'Please Provide Your Email Adress that You used to Register with Us';\n $this->set('errors', $errors);\n $this->render('/Users/forget_password');\n }\n }\n }\n\n \n $this->render('/Users/forget_password');\n }", "public function resetAndUpdatePassword() {\n $this->validate ( $this->request, $this->getRules () );\n $user = User::where ( 'email', $this->request->email )->first ();\n \n if (!empty($user) && count ( $user->toArray() ) > 0) {\n $user->password = Hash::make ( (true) ? config()->get('app.user_password'): $this->generatePassword() );\n \n $user->save ();\n $this->email = $this->email->fetchEmailTemplate ( 'admin_forgot' );\n $this->email->subject = str_replace(['##SITE_NAME##'], [config ()->get ( 'settings.general-settings.site-settings.site_name' )], $this->email->subject);\n $this->email->content = str_replace (['##USERNAME##','##FORGOTPASSWORD##'],[$user->name,'admin123'],$this->email->content );\n $this->notification->email ( $user, $this->email->subject, $this->email->content );\n return true;\n } else {\n return false;\n }\n }", "public function forget_password_post()\n {\n $admin = User::where('email', request('email'))->first();\n if(!empty($admin))\n {\n $token = app('auth.password.broker')->createToken($admin);\n $data = DB::table('password_resets')->insert([\n 'email' => $admin->email,\n 'token' => $token,\n 'created_at' => Carbon::now()\n ]);\n\n Mail::to($admin->email)->send(new reset_password(['data' => $admin, 'token' => $token]));\n return back();\n }\n }", "public function getForgotPasswordTemplate($variables = array())\n {\n $view = $this->_phpRenderView;\n\n $resolver = $this->_resolver;\n\n $resolver->setMap([\n 'mailTemplate' => __DIR__ . '/../../../view/user/user/forgot-mail-template.phtml'\n ]);\n\n $view->setResolver($resolver);\n\n $viewModel = $this->_viewModel;\n\n $viewModel->setTemplate('mailTemplate');\n\n $viewModel->setVariables($variables);\n\n $content = $view->render($viewModel);\n\n return $content;\n }", "public function displayResetPassword()\n {\n $this->render('reset-password', ['head'=>['title'=>'Réinitialisation de votre mot de passe', 'meta_description'=>'']]);\n }", "public function resetpassAction()\n\t{\n\t\t$email='neerajbwr89@gmail.com';\n\n\t\t$customer = Mage::getModel('customer/customer')\n ->setWebsiteId(Mage::app()->getStore()->getWebsiteId())\n ->loadByEmail($email);\n\t\t$customer->sendPasswordResetConfirmationEmail();\n\t}", "public function notifyPasswordUpdate($data){\r\n\t$this->sendTemplateEmail($data['email'], $this->app_config['password_reset_notification_subject'], $this->app_config['password_reset_notification_body'], $data);\r\n}", "public function resetPasswordSendEmail()\n {\n // if user is logged in, do not let him access this page\n if( Session::isLoggedIn() )\n {\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n $studentEmail = SCMUtility::stripTags($_POST['forgot_password_email']);\n\n // create token\n $token = uniqid('',true);\n\n // start session reset password\n $this->resetPasswordSessionActivate($token);\n\n // get student\n $student = User::where('email',$studentEmail)->first();\n\n if( ! $student )\n {\n SCMUtility::setFlashMessage('Sorry, we cannot find any user associated with that email address.','danger');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }\n\n // send password reset link to email\n $studentMailerService = new StudentMailerService();\n $studentMailerService->sendResetPasswordLink($student->email,$token,$student->id);\n\n SCMUtility::setFlashMessage('A reset password link has been sent to your email. Open your email and follow the link to reset your account password. Please do not close this browser during the process. (If you are not receiving a password reset email, consider contacting me directly.)');\n SCMUtility::frontRedirectTo('?page=scmCourseModule&state=Front&action=myAccount');\n return;\n }", "function requestpasswordreset()\n {\n $this->view->render('login/requestpasswordreset');\n }", "public static function GetForgotPasswordURL() {\n // TODO: when we implement other authentication providers (SAML/etc)\n // this URL will need to be configuable by the system administrator\n // since they likely will not want users attempting to reset ChurchCRM passwords\n // but rather redirect users to some other password reset mechanism.\n return SystemURLs::getRootPath() . \"/session/forgot-password/reset-request\";\n }", "public function sendResetPasswordEmail()\n {\n $passwordReset = $this->generateResetPasswordToken();\n\n SendEmailJob::dispatch($this, 'forgot-password', 'Reset Your Password', ['props' => $passwordReset])->onQueue('account-notifications');\n }", "public function get_forgot_account() {\n return View::make('login.forgot-account');\n }", "public function sendEmail() {\n\t\t/* @var $user User */\n\t\t$user = User::findOne([\n\t\t\t'status' => User::STATUS_ACTIVE,\n\t\t\t'email' => $this->email,\n\t\t]);\n\n\t\tif (!$user) {\n\t\t\tYii::info(\"Send password reset email failed: user not found for {$this->email}.\", __METHOD__);\n\t\t\treturn false;\n\t\t}\n\t\tif (($token = $user->validPasswordResetToken) == null) {\n\t\t\t$token = new PasswordResetToken;\n\t\t\t$token->user_id = $user->id;\n\t\t\t$token->requestIP = Yii::$app->request->userIP;\n\t\t\t$token->expire = time() + Yii::$app->params['user.passwordResetTokenExpire'];\n\t\t\tdo {\n\t\t\t\t$token->token = Yii::$app->security->generateRandomString();\n\t\t\t} while (!$token->validate('token'));\n\t\t\tif (!$token->save()) {\n\t\t\t\tYii::error([\n\t\t\t\t\t\"Save new PasswordRestToken failed\",\n\t\t\t\t\t'error' => $token->errors,\n\t\t\t\t], __METHOD__);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn Yii::$app->mailer->compose([\n\t\t\t\t'html' => 'passwordResetToken-html',\n\t\t\t\t'text' => 'passwordResetToken-text'\n\t\t\t], [\n\t\t\t\t'username' => $user->username,\n\t\t\t\t'token' => $token->token,\n\t\t\t])->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name . ' robot'])\n\t\t\t->setTo($this->email)\n\t\t\t->setSubject('Password reset for ' . Yii::$app->name)\n\t\t\t->send();\n\t}", "public function ForgotPassword($email)\n {\n $link = base_url(\"admin/redefine-password/{$email['user_uuid']}\");\n\n // PHPMailer object\n $mail = $this->phpmailer_lib->load();\n\n // SMTP configuration\n $mail->isSMTP();\n $mail->SMTPAuth = true;\n $mail->Host = getenv('MAIL_HOST');\n $mail->Username = getenv('MAIL_USER');\n $mail->Password = getenv('MAIL_PASS');\n $mail->Port = intval(getenv('MAIL_PORT'));\n\n $mail->setFrom(getenv('MAIL_USER'), \"Sistema - \" . getenv('SIS_NAME'));\n $mail->addReplyTo(getenv('MAIL_USER'), \"Sistema - \" . getenv('SIS_NAME'));\n\n // Add a recipient\n $mail->addAddress($email['user_email'], $email[\"user_name\"]);\n\n // Email subject\n $mail->Subject = 'Redefinir senha';\n\n // Charset\n $mail->CharSet = 'utf-8';\n\n //Language\n $mail->SetLanguage('pt-Br');\n\n\n // Set email format to HTML\n $mail->isHTML(true);\n\n // Email body content\n $mailContent = \"\n <div style=\\\"margin:0;padding:0;background-color:#f0f0f0;\\\">\n <div style=\\\"background-color:#f0f0f0; padding:5px;\\\">\n <div style=\\\"font-size:10px;line-height:10px\\\">&nbsp;</div>\n <table style=\\\"border-collapse:collapse;table-layout:fixed; margin: 20px auto 0;word-wrap:break-word;word-break:break-word;background-color:#ffffff\\\" align=\\\"center\\\">\n <tbody>\n <tr>\n <td style=\\\"padding:0;text-align:left;vertical-align:top;color:#787778;font-size:14px;line-height:21px;font-family:Ubuntu,sans-serif;width:600px\\\">\n <div style=\\\"Margin-left:20px;Margin-right:20px;Margin-top:24px\\\">\n <div style=\\\"line-height:20px;font-size:1px\\\">&nbsp;</div>\n </div>\n <div style=\\\"Margin-left:20px;Margin-right:20px\\\">\n <h1 style=\\\"Margin-top:0;Margin-bottom:0;font-style:normal;font-weight:normal;color:#565656;font-size:36px;line-height:43px;text-align:center\\\">\n <strong>Redefinir Senha</strong>\n </h1>\n <p>Olá, <b>{$email['user_name']}!</b>.<br/></p>\n <p style=\\\"background-color: #eeeeee; padding: 15px; position: relative; left: -15px;\\\">\n Para garantir uma boa prática de que você realmente pediu para redefinir a senha acesse o link abaixo, pedimos que todos os usuários confirmem a titularidade do e-mail. Assim evitamos enviar mensagens para alguém que não queira recebê-las. <br>\n Clique no <b>LINK</b> abaixo para <b>REDEFINIR A SENHA</b>.\n </p>\n <br/>\n <a href=\\\"{$link}\\\" style=\\\"font-family:'Arial',sans-serif; font-size: 17px; background-color: #5cb85c; padding: 15px; color: #FFFFFF; text-decoration: none;\\\">REDEFINIR A SENHA</a>\n <br/>\n <br/>\n <p>Este e-mail é enviado pelo sistema, por favor não o responda.<br/>Qualquer dúvida entre em contato pelo e-mail <b>\" . getenv('MAIL_SUPORTE') . \"</b>.</p>\n </div>\n <div style=\\\"Margin-left:20px;Margin-right:20px\\\">\n <div style=\\\"line-height:10px;font-size:1px\\\">&nbsp;</div>\n </div>\n <div style=\\\"Margin-left:20px;Margin-right:20px\\\">\n <div style=\\\"line-height:10px;font-size:1px\\\">&nbsp;</div>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n <table cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" width=\\\"600\\\" align=\\\"center\\\" bgcolor=\\\"#e0ddd6\\\" border=\\\"0\\\" style=\\\"margin-bottom:20px;\\\">\n <tbody>\n <tr>\n <td width=\\\"15\\\"></td>\n <td>\n <table cellpadding=\\\"0\\\" cellspacing=\\\"0\\\" width=\\\"600\\\" align=\\\"center\\\" bgcolor=\\\"#666666\\\" border=\\\"0\\\" style=\\\"border-bottom-left-radius:4px;border-bottom-right-radius:4px\\\">\n <tbody>\n <tr>\n <td height=\\\"14\\\">\n </td>\n </tr>\n </tbody>\n </table>\n </td>\n <td width=\\\"15\\\"></td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n \";\n\n $mail->Body = $mailContent;\n\n // Send email\n if(!$mail->send()):\n return $mail->ErrorInfo;\n \n else: \n return true;\n\n endif;\n }", "public function toString()\n {\n return 'Customer forgot password message is present on customer account forgot password page.';\n }", "public function getForgotPassword()\n {\n \treturn view('layouts.forgotPassword');\n }", "function sending_forgot_password_email($data, &$content) {\n\t\t// Create content\n\t\t$content = sprintf($this->ci->lang->line('auth_forgot_password_content'), \n\t\t\t$this->ci->config->item('DX_website_name'), \n\t\t\t$data['reset_password_uri'],\n\t\t\t$data['password'],\n\t\t\t$data['key'],\n\t\t\t$this->ci->config->item('DX_webmaster_email'),\n\t\t\t$this->ci->config->item('DX_website_name'));\n\t}", "public function resetPassword($user)\n {\n $message = (new \\Swift_Message('Votre nouveau mot de passe sur Ynovagroup.com'))\n ->setFrom('contact@ynovagroup.com')\n ->setTo($user->getEmail())\n ->setBody($this->twig->render('email/resetpassword.html.twig', ['user' => $user]), 'text/html');\n\n return $this->mailer->send($message);\n }", "public function forgot_password()\n {\n return View::make(Config::get('confide::forgot_password_form'));\n }", "public function actionRequestpasswordreset() {\n\t\treturn $this->render('requestpasswordreset');\n\t}", "public static function sendEmailToResetPassword($data)\n {\n $email = $data['email'];\n $user = \\Modules\\Frontend\\Auth\\User::where('email', $email)\n ->first();\n if (empty($user)) {\n return ['rs'=>System::FAIL, 'msg'=>STheme::lang('lang.msg.user_not_exists')];\n } else {\n DB::beginTransaction();\n try {\n $newPass = Functions::generateRandomString(6);\n $user->password = Hash::make($newPass);\n $user->save();\n $params = [\n 'email' => $email,\n 'name' => $user->first_name.' '.$user->last_name,\n 'subject' => STheme::lang('lang.general.reset_password'),\n 'data' => ['newPass'=>$newPass],\n 'template' => 'mails.resetPassword'\n ];\n DB::commit();\n System::sendMail($params);\n if (Mail::failures()) {// check for failures\n return ['rs'=>System::FAIL, 'msg'=>STheme::lang('lang.msg.mail_not_send')];\n }\n Session::flash(System::FLASH_SUCCESS, STheme::lang('lang.msg.send_mail_forgot_password_success'));\n return [\n 'rs'=>System::SUCCESS,\n 'msg'=>'',\n 'redirect_url'=>'/forgot-password'\n ];\n } catch (\\Exception $e) {\n DB::rollBack();\n return ['rs'=>System::FAIL, 'msg'=>$e->getMessage()];\n }\n }\n }", "public function generateEmailResetToken()\n {\n $this->reset_token = \"E\" . Yii::$app->security->generateRandomString() . '_' . time();\n }", "private function getHTMLPassReset($firstname, $username, $action){\n $random = $this->generateRandomString(40);\n $Db = new Database();\n $Db->addPassResetToUser($username,$random);\n $message = file_get_contents('mails/resetPassword.html');\n $message = str_replace('%firstname%', $firstname, $message);\n $message = str_replace('%username%', $username, $message);\n\n $message = str_replace('%action%', $action , $message);\n $message = str_replace('%secret%', $random, $message);\n return $message;\n }", "public function sendPasswordResetRequest() {\r\n\t\t$user_model = $this->load_model('UserModel');\t\r\n\t\t$user_data = $user_model->getUserByEmail($this->params['forgotten_password_email']);\r\n\t\t\r\n\t\tif($user_data !== null){\r\n\t\t\t$password_reset = $this->generatePasswordResetLink($user_data['ID'], $this->params['forgotten_password_email']);\r\n\t\t\t\r\n\t\t\t$password_reset_model = $this->load_model('PasswordResetModel');\r\n\t\t\t$password_reset_model->insertHash($user_data['ID'], $password_reset['hash']);\r\n\t\t\t\r\n\t\t\tif(Utils::sendPasswordResetEmail($this->params['forgotten_password_email'], $password_reset['link'])){\r\n\t\t\t\t$this->sendResponse(1, true);\r\n\t\t\t} else {\r\n\t\t\t\t$this->sendResponse(0, ErrorCodes::EMAIL_ERROR);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\t$this->sendResponse(0, array('field' => 'forgotten_password_email', 'error_code' => ErrorCodes::EMAIL_NOT_FOUND));\r\n\t\t}\r\n\t}", "public function forgot_password() {\n $flash = null;\n // if the user has tried logging in\n if(isset($_POST['username'])){\n $email = $_POST['username'];\n $user = $this->User->getByEmail($email);\n $pass = rand(111111, 999999);\n if($this->User->setPassword($user['id'], $pass)) {\n $text = <<<END\nBecause of a request on our site, your password has been reset. To change your password, go to /users/change_password\nYour username is: {$email}\nYour password is: {$pass}\nEND;\n $email = self::getLib('email');\n $html = $email->text2html($text, email);\n $email->setSender('support');\n $email->setReplyTo('support');\n $email->setRecipients( array($recipient) );\n $email->setSubject(\"Your password has been reset\");\n $email->addMessagePart($text);\n $email->addMessagePart($html, \"html\");\n $email->send();\n $flash = \"An email with your new password has been sent to you. You should receive it shortly.\";\n } else {\n $flash = \"An error occured.\";\n }\n } else {\n $flash = \"Please enter a user name.\";\n }\n return array('flash' => $flash);\n }", "protected function _send_reset_password_email($user, $code) {\n $data[\"base\"] = base_url();\n $data[\"user\"] = $user;\n $data[\"code\"] = $code;\n\n $content = $this->load->view(\"auth/email/forgot_password\", $data, true);\n $lib = new Email();\n $lib->setFrom(\"Kukua B.V. <info@kukua.cc>\");\n $lib->setTo($user->first_name . \" \" . $user->last_name . \" <\" . $user->email . \">\");\n $lib->setSubject(\"Password reset\");\n $lib->setContent($content);\n $lib->send();\n\t}", "protected function _sendPasswordReset($admin = null, $options = array()) {\t\t\t\n\t\tif (!empty($this->request->data)) {\n\t\t\t\n\t\t\t$user = $this->User->passwordReset($this->request->data);\n\n\t\t\tif (!empty($user)) {\n\t\t\t\t$options = array(\n\t\t\t\t\t\t\t\t\t'layout'=>'password_reset_request',\n\t\t\t\t\t\t\t\t\t'subject'=>'Password Reset',\n\t\t\t\t\t\t\t\t\t'view'=>'default'\n\t\t\t\t\t\t\t\t\t);\n\t\t\t\t$viewVars = array('token'=>$user['User']['password_token'],'user'=>$user);\n\t\n\t\t\t\t//Send the email\n\t\t\t\t$this->_sendEmail($user['User']['email'],$options,$viewVars);\n\t\t\t\t\n\t\t\t\t$this->set('token', $user['User']['password_token']);\n\t\t\t\tif ($admin) {\n\t\t\t\t\t$this->Session->setFlash(sprintf(\n\t\t\t\t\t\t__('%s has been sent an email with instruction to reset their password.', true),\n\t\t\t\t\t\t$user['User']['email']));\n\t\t\t\t\t$this->redirect(array('action' => 'index', 'admin' => true));\n\t\t\t\t} else {\n\t\t\t\t\t$this->Session->setFlash(__('You should receive an email with further instructions shortly.', true));\n\t\t\t\t\t$this->redirect(array('action' => 'login'));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t$this->Session->setFlash(__('No user was found with that email.', true));\n\t\t\t\t$this->redirect($this->referer('/'));\n\t\t\t}\n\t\t}\n\t\t$this->render('request_password_change');\n\t}", "public function send_email_reset_password($user_id)\n {\n $user_id = clean_number($user_id);\n $user = $this->auth_model->get_user($user_id);\n if (!empty($user)) {\n $token = $user->token;\n //check token\n if (empty($token)) {\n $token = generate_token();\n $data = array(\n 'token' => $token\n );\n $this->db->where('id', $user->id);\n $this->db->update('users', $data);\n }\n\n $data = array(\n 'subject' => trans(\"reset_password\"),\n 'to' => $user->email,\n 'template_path' => \"email/email_reset_password_api\",\n 'token' => $token,\n 'general_settings' => $this->api_general_settings->getAll(),\n 'settings' => $this->settings_model->get_settings('2'),\n 'lang_base_url' => base_url()\n );\n\n $this->send_email($data);\n }\n }", "public function reset(){\n\n $this->load->config('email');\n $this->load->library('email');\n\n\t$id = $this->generateID();\n \n $from = $this->config->item('smtp_user');\n $to = $this->input->post('user_email');\n $subject = 'Password Reset Confirmation';\n\n $resetURL = \"https://\" . $_SERVER['SERVER_NAME'] . '/user/reset_confirmation?id=' . $id . '&email=' . $to;\n\n $message = 'This password reset email was requested via our website. Please use the link below to reset your password. /r/r';\n $message .= $resetURL . '/r/r';\n $message .= 'If you did not request this email, please contact us.';\n\n $this->email->set_newline(\"\\r\\n\");\n $this->email->from($from);\n $this->email->to($to);\n $this->email->subject($subject);\n $this->email->message($message);\n\n //write reset link to db\n\t$this->Reset_model->storeResetLink($to, $id);\n\n if ($this->email->send()) {\n\t\t\t\n\t\techo $this->session->set_flashdata('msg','Your password reset email has been sent. Please check your email for the link to finish the password reset.');\n\n\t\tredirect('user');\n\n } else {\n \n\t\tshow_error($this->email->print_debugger());\n\n }\n\n\t}", "public function forgotPassword()\n {\n return \\View::make('pageblok::users.forgotPasswordForm');\n }", "public function forgot_password(){\n\n $this->data[\"title_tag\"]=\"Lobster | Accounts | Forgot Password\";\n\n $this->view(\"accounts/forgot_password\",$this->data);\n }", "public function onResetPassword(AdminEvent $event)\n {\n $user = $event->{AdminEvent::ENTITY};\n $password = $event->{AdminEvent::PASSWORD};\n $this->mailUser(\n $user->getEmail(),\n $user->getRealname(),\n $this->_(self::EMAIL_RESET_SUBJECT),\n $this->_(self::EMAIL_RESET_BODY,[\n \"username\"=>$user->getUsername(),\n \"password\"=>$password\n ])\n );\n return;\n }", "public function ResetPassword()\n\t{\n\t\t$siteConfig = SiteConfig::current_site_config();\n\t\t$this->NewTempPassword = $this->GeneratePassword();\n\t\t$passwordData = $this->EncryptPassword($this->NewTempPassword);\n\t\t$this->TempPassword = $passwordData['Password'];\n\t\t$this->TempPasswordSalt = $passwordData['Salt'];\n\n\t\t$explode = array_reverse(explode('.',$_SERVER['HTTP_HOST']));\n\t\t$domain = implode('.',array_reverse(array(array_shift($explode),array_shift($explode))));\n\t\tEmail::create()\n\t\t\t->setTo($this->Email,$this->FirstName.' '.$this->LastName)\n\t\t\t->setFrom($this->getAdminEmail())\n\t\t\t->setSubject($siteConfig->Title.' Password Reset')\n\t\t\t->setHTMLTemplate('emails/email_PasswordReset')\n\t\t\t->setData($this)\n\t\t\t->send();\n\t\t// write after email is sent so new password isn't lost\n\t\t$this->write();\n\t\treturn $this;\n\t}", "public function Forgotpasswordmail($to, $from, $name, $link)\n {\n $sendGrid = Yii::$app->sendGrid;\n $status = '';\n // get forgot password mail\n $forgot_mail_templates = EmailTemplates::find()->where(\n [\n 'email_type_id' => 1\n ]\n )->One();\n\n if (! empty($forgot_mail_templates)) {\n // removing place holders in mail body\n $body = str_replace(\"&lt;&lt;name&gt;&gt;\", $name, $forgot_mail_templates->body);\n $body = str_replace(\n \"&lt;&lt;password_btn&gt;&gt;\",\n '<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"mcnButtonBlock\" style=\"min-width:100%;\">\n\t\t\t <tbody class=\"mcnButtonBlockOuter\">\n\t\t\t <tr>\n\t\t\t <td style=\"padding-top:0; padding-right:18px; padding-bottom:18px; padding-left:18px;\" valign=\"top\" align=\"center\" class=\"mcnButtonBlockInner\">\n\t\t\t <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"mcnButtonContentContainer\" style=\"border-collapse: separate !important;border-radius: 3px;background-color: #0076BC;\">\n\t\t\t <tbody>\n\t\t\t <tr>\n\t\t\t <td align=\"center\" valign=\"middle\" class=\"mcnButtonContent\" style=\"font-family: Arial; font-size: 16px; padding: 15px;\">\n\t\t\t <a class=\"mcnButton \" title=\"Reset Your Password\" href=\"'.$link.'\" target=\"_blank\" style=\"font-weight: bold;letter-spacing: normal;line-height: 100%;text-align: center;text-decoration: none;color: #FFFFFF;\">Reset Your Password</a>\n\t\t\t </td>\n\t\t\t </tr>\n\t\t\t </tbody>\n\t\t\t </table>\n\t\t\t </td>\n\t\t\t </tr>\n\t\t\t </tbody>\n\t\t\t</table>',\n $body\n );\n\n $message = $sendGrid->compose();\n $status = $message->setFrom($from)->setTo($to)->setReplyTo($from)->setSubject($forgot_mail_templates->subject)->setHtmlBody($body)->send($sendGrid);\n }//end if\n\n return $status;\n\n }", "public function setEmailTpl($value){$this->_emailTpl = $value;}", "public function forgetpasswordAction() {\n \n $modelPlugin = $this->modelplugin();\n $dynamicPath = $modelPlugin->dynamicPath();\n $phpprenevt = $this->phpinjectionpreventplugin(); \n $mailplugin = $this->mailplugin();\n $jsonArray = $modelPlugin->jsondynamic();\n $email = $phpprenevt->stringReplace($_POST['eid']);\n $publisheremailarray = array('email' => $email);\n $chkemail = $modelPlugin->getpublisherTable()->selectEmail($publisheremailarray);\n $currentDatetime = strtotime(date(\"Y-m-d h:i:s\"));\n $restpassallow = 0;\n if ($chkemail[0]['forgetpassTimestamp']) {\n $databaseDatetime = strtotime($chkemail[0]['forgetpassTimestamp']);\n $all = $currentDatetime - $databaseDatetime;\n $day = round(($all % 604800) / 86400);\n $hours = round((($all % 604800) % 86400) / 3600);\n $m = round(((($all % 604800) % 86400) % 3600) / 60);\n\n if ($day <= 0) {\n if ($hours <= 0) {\n if ($m <= 15) {\n $restpassallow = 1;\n $contentone['minutes'] = 15 - $m;\n }\n }\n }\n }\n if (count($chkemail) == 0) {\n $contentone['data'] = 0;\n } else if ($restpassallow == 1) {\n $contentone['data'] = 2;\n } else {\n $id = $chkemail[0][\"publisherId\"];\n $pass1 = password_hash($email, PASSWORD_BCRYPT);\n $arraypass = str_replace('/', '', $pass1);\n $buttonclick = $dynamicPath . \"/Gallery/galleryview/resetpassword/\" . $arraypass;\n $mail_link = \"<a href='\" . $buttonclick . \"' style='background-color: #04ad6a; border: medium none; border-radius: 19px; padding: 12px; color: #fff; text-align: center; text-decoration: none; text-transform: uppercase;'>Click here</a>\";\n $subject = \"[Smartfanpage] Set your password\";\n $from = $jsonArray['sendgridaccount']['addfrom'];\n $keyArray = array('mailCatagory' => 'F_MAIL');\n $getMailStructure = $modelPlugin->getconfirmMailTable()->fetchall($keyArray);\n $getmailbodyFromTable = $getMailStructure[0]['mailTemplate'];\n $mailLinkreplace = str_replace(\"|MAILLINK|\", $mail_link, $getmailbodyFromTable);\n $mailBody = str_replace(\"|DYNAMICPATH|\", $dynamicPath, $mailLinkreplace);\n $fogetPasswordMail = $mailplugin->confirmationmail($email, $from, $subject, $mailBody);\n $keyArray = array('publisherId' => $id);\n $dataForForget = array('forgetpassword' => $arraypass, 'forgetpassTimestamp' => date(\"Y-m-d h:i:s\"));\n $contentone1 = $modelPlugin->getpublisherTable()->updateuser($dataForForget, $keyArray);\n $contentone['data'] = $contentone1;\n $user_session->loginId = ($_SESSION['loginId']);\n $user_session = new \\Zend\\Session\\Container('loginId');\n $user_session->getManager()->destroy();\n }\n echo json_encode($contentone);\n exit;\n }", "public function sendResetLink()\n {\n return $this->authService->sendPasswordResetLink(request()->input('email'));\n }", "public function getForgot()\n {\n return View::make(Config::get('confide::forgot_password_form'));\n }", "function forgotPassword(){\n \n $this->viewBuilder()->layout('admin_login');\n // Loaded Admin Model\n $usersModel = TableRegistry::get('Users');\n $userData = $usersModel->newEntity();\n \n if($this->request->is('post')==1){\n if(isset($this->request->data['email']) && $this->request->data['email']!=''){\n $user = $usersModel->find('all',['conditions' => ['Users.email' => $this->request->data['email']]]);\n $getAdminData = $user->first();\n \n if(empty($getAdminData)){\n $this->Flash->error(__('Email id not register with us, try again'));\n }else{\n date_default_timezone_set(\"UTC\");\n $dateNow = date('Y-m-d H:i:s');\n\n $new_pass_key = md5(rand().microtime());\n\n $userData->id = $getAdminData->id;\n $userData->new_pass_key = $new_pass_key;\n $userData->new_password_requested = $dateNow;\n //save adnin data \n if($usersModel->save($userData)){\n $adminId = base64_encode($getAdminData->email);\n \n $replace = array('{user}','{link}');\n\n $link = HTTP_ROOT.'Users/reset-password/'.urlencode($adminId).'/'.urlencode($new_pass_key);\n $linkOnMail = '<a href=\"'.$link.'\" target=\"_blank\">Click here to reset password </a>';\n\n $with = array($getAdminData->username, $linkOnMail);\n //Send email function\n $this->send_email('',$replace,$with,'forgot_password',$getAdminData->email);\n\n $this->Flash->success(__('Password sent on your email address'));\n return $this->redirect(['controller' => 'users','action' => 'login']);\n }\n }\n }else{\n $this->Flash->error(__('Kindly provide your email address'));\n \n }\n }\n }" ]
[ "0.7059658", "0.6946295", "0.6807468", "0.6792431", "0.6761867", "0.6626948", "0.6621814", "0.65793663", "0.6526518", "0.6525153", "0.6508268", "0.650287", "0.65019256", "0.64975965", "0.64916945", "0.6491627", "0.64464664", "0.6438728", "0.6426141", "0.63950115", "0.63802624", "0.6379384", "0.6372499", "0.6369968", "0.6359398", "0.6359024", "0.63409853", "0.634059", "0.6336872", "0.633276", "0.63244075", "0.63172466", "0.63137573", "0.63080686", "0.6301899", "0.6300448", "0.62952465", "0.6292864", "0.6267219", "0.6251406", "0.6229094", "0.6219137", "0.62160265", "0.62097013", "0.61942816", "0.6179669", "0.6173002", "0.61619085", "0.61481124", "0.61432934", "0.61229944", "0.61182046", "0.61156774", "0.6102658", "0.61021", "0.60968727", "0.60860246", "0.6084683", "0.6083518", "0.6082122", "0.6080459", "0.6068458", "0.6062608", "0.60616726", "0.60608643", "0.6060596", "0.60597086", "0.60432076", "0.60413957", "0.6039145", "0.6034572", "0.6027931", "0.60273236", "0.6025267", "0.60250115", "0.60152894", "0.6009396", "0.60088027", "0.6007363", "0.60055417", "0.59916073", "0.5990575", "0.5981226", "0.5975333", "0.5968424", "0.5965638", "0.59637034", "0.59630764", "0.59592664", "0.59550273", "0.59548116", "0.5949787", "0.5946401", "0.5945639", "0.59448105", "0.5944256", "0.59419394", "0.59374136", "0.59356475", "0.5930822" ]
0.8476593
0
Get approval emails copy to
Копировать письма о получении одобрения в
public function getCaApprovalCopyToEmails() { return $this->scopeConfig->getValue( self::XML_PATH_APPROVAL_COPY_TO_EMAILS, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function email_approver()\n {\n \n $this->db->select('EMAIL');\n $this->db->from('APPROVERS');\n $this->db->where('UNIT',$_SESSION['div']);\n $query = $this->db->get();\n $out = $query->result_array();\n\n if ($out) {\n\n \n foreach ($out as $recipient){\n \n //mail to approver\n $this->load->library('email');\n $htmlContent = '<h1>Title change requested in FREE System.</h1>';\n $htmlContent .= '<p>Please review the <a href=\"' . base_url() . '/admin\">Approval Control Panel</a> to review the request.</p>';\n \n $this->email->clear();\n\n $config['mailtype'] = 'html';\n $this->email->initialize($config);\n $this->email->to($recipient);\n $this->email->from('wdc@csulb.edu', 'FREE System');\n $this->email->subject('Title Change Requested');\n $this->email->message($htmlContent);\n $this->email->send();\n }\n }\n }", "public function getApprovalRequests()\n {\n return $this->approval_requests;\n }", "public function getEmailReferrers();", "public function getEmailCopyTo()\n {\n $data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());\n if (!empty($data)) {\n return array_map('trim', explode(',', $data));\n }\n return false;\n }", "public function getCaRemoveCopyToEmails()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_REMOVE_COPY_TO_EMAILS,\n ScopeInterface::SCOPE_STORE\n );\n }", "protected function get_notified_email_address()\n\t{\n\t\treturn [];\n\t}", "function get_posts_discussion_email_details($discussion, $emails) {\n global $CFG;\n require_once($CFG->dirroot.'/user/lib.php');\n $contribemails = array();\n $userids = get_contributor_ids($discussion);\n // Get contributor details.\n $users = user_get_users_by_id($userids);\n foreach ($users as $user) {\n if (!in_array($user->email, $emails)) {\n $details = array();\n $details['email'] = $user->email;\n $details['mailformat'] = $user->mailformat;\n $details['username'] = $user->username;\n $contribemails[] = $details;\n }\n }\n return $contribemails;\n}", "public function getPendingApproval(Filter $filter): Collection;", "public function getAssigneeEmail();", "public function getForApproval() {\n\n /* Set orWhereIn variables */\n array_push($this->orWhereIn, [\n 'column' => 'id',\n 'array' => $this->user->idp_approvals()->pluck('id')->toArray()\n ]);\n }", "function getApprover1Email($connid)\r\n\t{\r\n\t\t$query = \"SELECT srno,sbu_head,emailComp FROM sbu_master a,emp_master b WHERE a.sbu_head = b.userID\";\r\n\t\t$dbquery = new dbquery($query,$connid);\r\n\t\twhile($row = $dbquery->getrowarray())\r\n\t\t{\r\n\t\t\t$arrRet[$row[\"srno\"]] = $row[\"emailComp\"];\r\n\t\t}\r\n\t\treturn $arrRet;\r\n\t}", "public function send_approvals() {\n if (isset($_POST['approval'])) {\n $PDO = Record::getConnection();\n\t\t\t $common = new APCommon();\n \t\t\t foreach($_POST['approval'] as $id){\n\t\t\t\t\n\t\t\t\t//Find the record in the temp table and send the confirmation email\n\t\t\t\t$sql = \"SELECT * FROM \". TABLE_PREFIX . \"approved_users_temp WHERE id=:id\";\n $stmt = $PDO->prepare($sql);\n $stmt->execute(array(\"id\" => $id));\n\t\t\t\t$row = $stmt->fetch();\n\t\t\t\t$email = $row[2];\n\t\t\t\t$name = $row[1];\n\t\t\t\t$common->confirmation_email($email, $name);\n\t\t\t\t\n\t\t\t\t//Update the temp table to mark row as processed\n $sql = \"UPDATE \" . TABLE_PREFIX . \"approved_users_temp SET processed=1 WHERE id=:id\";\n $stmt = $PDO->prepare($sql);\n $stmt->execute(array(\"id\" => $id));\n\t\t\t }\n \n \t\t\tFlash::set('success', __('Approvals processed'));\n \t\t} else {\n Flash::set('error', __('Unable to process approvals'));\n }\n\n redirect(get_url('plugin/approved_users/approvals'));\n }", "public function getTo($isCopy)\n {\n return array_merge([\n $this->_user->email => $this->_user->full_name,\n ], $this->_additionalTo);\n }", "public function getRecipients();", "private function emailList()\n {\n return array(\n 'temp@yahoo.com',\n 'something@outlook.com',\n 'anything@yahoo.com',\n );\n }", "public static function getExportDestinationEmails() {\n\n return get_option( 'geb_gfe_export_destination_emails' );\n }", "public function getEmails()\n {\n return $this->emails;\n }", "public function getEmails()\n {\n return $this->emails;\n }", "public function gatherActivationEmailProperties() {\n /* generate a password and encode it and the username into the url */\n $pword = $this->modx->user->generatePassword();\n $confirmParams['lp'] = $this->login->base64url_encode($pword);\n $confirmParams['lu'] = $this->login->base64url_encode($this->user->get('username'));\n $confirmParams = array_merge($this->persistParams,$confirmParams);\n\n /* if using redirectBack param, set here to allow dynamic redirection\n * handling from other forms.\n */\n $redirectBack = $this->modx->getOption('redirectBack',$_REQUEST,$this->controller->getProperty('redirectBack',''));\n if (!empty($redirectBack)) {\n $confirmParams['redirectBack'] = $redirectBack;\n }\n $redirectBackParams = $this->modx->getOption('redirectBackParams',$_REQUEST,$this->controller->getProperty('redirectBackParams',''));\n if (!empty($redirectBackParams)) {\n $confirmParams['redirectBackParams'] = $redirectBackParams;\n }\n\n /* generate confirmation url */\n if ($this->login->inTestMode) {\n $confirmUrl = $this->modx->makeUrl(1,'',$confirmParams,'full');\n } else {\n $confirmUrl = $this->modx->makeUrl($this->controller->getProperty('activationResourceId',1),'',$confirmParams,'full');\n }\n\n /* set confirmation email properties */\n $emailTpl = $this->controller->getProperty('activationEmailTpl','lgnActivateEmailTpl');\n $emailTplAlt = $this->controller->getProperty('activationEmailTplAlt','');\n $emailTplType = $this->controller->getProperty('activationEmailTplType','modChunk');\n $emailProperties = $this->user->toArray();\n $emailProperties['confirmUrl'] = $confirmUrl;\n $emailProperties['tpl'] = $emailTpl;\n $emailProperties['tplAlt'] = $emailTplAlt;\n $emailProperties['tplType'] = $emailTplType;\n $emailProperties['password'] = $this->dictionary->get($this->controller->getProperty('passwordField','password'));\n\n $this->setCachePassword($pword);\n return $emailProperties;\n }", "public function getMatchedEmailAddress();", "public function get_emails() {\n\n\t\t$emails = array();\n\n\t\tforeach ( $this->settings['recipients'] as $item ) {\n\t\t\t$emails[] = $item['value'];\n\t\t}\n\n\t\treturn $emails;\n\t}", "public function getEmails()\n\t{\n \\Phalcon\\DI::getDefault()->get('logger')->log(\"Emails: \" . print_r($this->emails, true));\n\t\treturn $this->emails;\n\t}", "public function getCompanyAccountApprovalEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_APPROVAL_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getNewsletterRecipientIDs();", "public function getAdminEmails() {\n //get administration email array\n $administration_email = Doctrine::getTable('AdministrationEmails')->getEmails();\n\n\n //create admin email query\n $admin_email_query = Doctrine_Query::create()\n ->select('sgu.email_address')\n ->from('sfGuardUser sgu')\n ->leftJoin('sgu.sfGuardUserPermission sgup')\n ->whereNotIn('sgu.email_address', $administration_email)\n ->andWhere('sgup.user_id IS NOT NULL');\n $admin_email_record = $admin_email_query->fetchArray();\n $administration_email_array = array('Dirección de correo electrónico Selecte');\n foreach ($admin_email_record as $index => $email) {\n $administration_email_array[$email['email_address']] = $email['email_address'];\n }\n return $administration_email_array;\n }", "public function get_checklist_approval_data() {\n\n $approval_data = array();\n\n $query = db_select('checklist_inspections', 'c')\n ->fields('c', array('order_num','category','unit_id','nid','approved','inspected_by','repair_data','date_submitted','follow_up_alert','comments'))\n ->condition('approved', NULL);\n $results = $query->execute();\n\n foreach ($results as $val) {\n $approval_data[] = (array) $val;\n }\n return $approval_data;\n }", "function cp_do_view_supplier_emails($adata) {\n\t# Get security vars\n\t\t$_SEC \t= get_security_flags();\n\t\t$_PERMS\t= do_decode_perms_admin($_SEC['_sadmin_perms']);\n\n\t# Dim some Vars:\n\t\tglobal $_CCFG, $_TCFG, $_DBCFG, $db_coin, $_LANG, $_SERVER, $_nl, $_sp;\n\n\t# Get all email addresses for a supplier\n\t\t$sinfo\t= get_contact_supplier_info($adata['s_id']);\n\t\t$s_emails\t= get_contact_supplier_info_alias($adata['s_id'], 1);\n\t\t$x\t\t= sizeof($s_emails);\n\n\t# Set Query parameters for select.\n\t\t$query\t = 'SELECT *';\n\t\t$_from\t = ' FROM '.$_DBCFG['mail_archive'];\n\t\tIF ($_CCFG['_PKG_SAFE_EMAIL_ADDRESS']) {\n\t\t\t$_where\t = ' WHERE '.$_DBCFG['mail_archive'].\".ma_fld_from='\".$sinfo['s_email'].\"'\";\n\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip='\".$sinfo['s_email'].\"'\";\n\t\t} ELSE {\n\t\t\t$_where\t = ' WHERE '.$_DBCFG['mail_archive'].\".ma_fld_from LIKE '%<\".$sinfo['s_email'].\">%'\";\n\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip LIKE '%<\".$sinfo['s_email'].\">%'\";\n\t\t}\n\t\tIF ($x) {\n\t\t\tFOR ($i=0; $i<=$x; $i++) {\n\t\t\t\tIF ($_CCFG['_PKG_SAFE_EMAIL_ADDRESS']) {\n\t\t\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_from='\".$s_emails[$i]['c_email'].\"'\";\n\t\t\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip='\".$s_emails[$i]['c_email'].\"'\";\n\t\t\t\t} ELSE {\n\t\t \t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_from LIKE '%<\".$s_emails[$i]['c_email'].\">%'\";\n\t\t\t\t\t$_where\t.= ' OR '.$_DBCFG['mail_archive'].\".ma_fld_recip LIKE '%<\".$s_emails[$i]['c_email'].\">%'\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$_order = ' ORDER BY '.$_DBCFG['mail_archive'].'.ma_time_stamp DESC';\n\n\t\tIF (!$_CCFG['IPL_SUPPLIERS'] > 0) {$_CCFG['IPL_SUPPLIERS'] = 5;}\n\t\t$_limit = ' LIMIT 0, '.$_CCFG['IPL_SUPPLIERS'];\n\n\t# Get count of rows total:\n\t\t$query_ttl = 'SELECT COUNT(*)';\n\t\t$query_ttl .= $_from;\n\t\t$query_ttl .= $_where;\n\t\t$result_ttl\t= $db_coin->db_query_execute($query_ttl);\n\t\twhile(list($cnt) = $db_coin->db_fetch_row($result_ttl)) {$numrows_ttl = $cnt;}\n\n\t# Do select listing records and return check\n\t\t$query\t.= $_from.$_where.$_order.$_limit;\n\t\t$result\t= $db_coin->db_query_execute($query);\n\t\t$numrows\t= $db_coin->db_query_numrows($result);\n\n\t# Build form output\n\t\t$_out .= '<div align=\"center\">'.$_nl;\n\t\t$_out .= '<table width=\"100%\" border=\"0\" bordercolor=\"'.$_TCFG['_TAG_TABLE_BRDR_COLOR'].'\" bgcolor=\"'.$_TCFG['_TAG_TRTD_BKGRND_COLOR'].'\" cellpadding=\"0\" cellspacing=\"1\">'.$_nl;\n\t\t$_out .= '<tr class=\"BLK_DEF_TITLE\"><td class=\"TP3MED_NC\" colspan=\"7\">'.$_nl;\n\n\t\t$_out .= '<table width=\"100%\" cellpadding=\"0\" cellspacing=\"0\">'.$_nl;\n\t\t$_out .= '<tr class=\"BLK_IT_TITLE_TXT\">'.$_nl.'<td class=\"TP0MED_NL\">'.$_nl;\n\t\t$_out .= '<b>'.$_LANG['_ADMIN']['l_Email_Archive'];\n\t\t$_out .= ' ('.$numrows.$_sp.$_LANG['_ADMIN']['of'].$_sp.$numrows_ttl.$_sp.$_LANG['_ADMIN']['total_entries'].')</b><br>'.$_nl;\n\t\t$_out .= '</td>'.$_nl.'<td class=\"TP0MED_NR\">'.$_nl;\n\n\t\tIF ($_CCFG['_IS_PRINT'] != 1) {\n\t\t\tIF ($numrows_ttl > $_CCFG['IPL_SUPPLIERS']) {\n\t \t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=search&sw=archive&search_type=1&s_to='.$sinfo['s_email'].'&s_from='.$sinfo['s_email'], $_TCFG['_S_IMG_VIEW_S'],$_TCFG['_S_IMG_VIEW_S_MO'],'','');\n\t \t\t}\n\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=search&sw=archive', $_TCFG['_S_IMG_SEARCH_S'],$_TCFG['_S_IMG_SEARCH_S_MO'],'','');\n\t\t} ELSE {\n\t\t\t$_out .= $_sp;\n\t\t}\n\t\t$_out .= '</td>'.$_nl.'</tr>'.$_nl.'</table>'.$_nl;\n\n\t\t$_out .= '</td></tr>'.$_nl;\n\t\t$_out .= '<tr class=\"BLK_DEF_ENTRY\">'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BC\">'.$_LANG['_ADMIN']['l_Id'].'</td>'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BC\">'.$_LANG['_ADMIN']['l_Date_Sent'].'</td>'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BL\">'.$_LANG['_ADMIN']['l_Subject'].'</td>'.$_nl;\n\t\t$_out .= '<td class=\"TP3SML_BL\">'.$_LANG['_CCFG']['Actions'].'</td>'.$_nl;\n\t\t$_out .= '</tr>'.$_nl;\n\n\t# Process query results\n\t\tIF ($numrows) {\n\t\t\twhile ($row = $db_coin->db_fetch_array($result)) {\n\t\t\t\t$_out .= '<tr class=\"BLK_DEF_ENTRY\">'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NC\">'.$row['ma_id'].'</td>'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NC\">'.dt_make_datetime($row['ma_time_stamp'], $_CCFG['_PKG_DATE_FORMAT_SHORT_DT'] ).'</td>'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NL\">'.htmlspecialchars($row['ma_fld_subject']).'</td>'.$_nl;\n\t\t\t\t$_out .= '<td class=\"TP3SML_NL\"><nobr>'.$_nl;\n\t\t\t\tIF ($_CCFG['_IS_PRINT'] != 1) {\n\t\t\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=resend&obj=arch&ma_id='.$row['ma_id'], $_TCFG['_S_IMG_EMAIL_S'],$_TCFG['_S_IMG_EMAIL_S_MO'],'','');\n\t\t\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=view&obj=arch&ma_id='.$row['ma_id'].'&_suser_id='.$adata['_suser_id'], $_TCFG['_S_IMG_VIEW_S'],$_TCFG['_S_IMG_VIEW_S_MO'],'','');\n\t\t\t\t\t$_out .= do_nav_link('mod_print.php?mod=mail&mode=view&obj=arch&ma_id='.$row['ma_id'], $_TCFG['_S_IMG_PRINT_S'],$_TCFG['_S_IMG_PRINT_S_MO'],'_new','');\n\t\t\t\t\tIF ($_PERMS['AP16'] == 1 || $_PERMS['AP05'] == 1) {\n\t\t\t\t\t\t$_out .= do_nav_link('mod.php?mod=mail&mode=delete&obj=arch&stage=2&ma_id='.$row['ma_id'], $_TCFG['_S_IMG_DEL_S'],$_TCFG['_S_IMG_DEL_S_MO'],'','');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t$_out .= '</nobr></td>'.$_nl;\n\t\t\t\t$_out .= '</tr>'.$_nl;\n\t\t\t}\n\t\t}\n\n\t\t$_out .= '</table>'.$_nl;\n\t\t$_out .= '</div>'.$_nl;\n\t\t$_out .= '<br>'.$_nl;\n\n\t# Return results\n\t\treturn $_out;\n}", "abstract public function get_mailto();", "public function getNotificationEmail() {}", "function it_exchange_abandoned_carts_get_abandonment_emails( $args=array() ) {\n\n\t$defaults = array(\n\t\t'post_type' => 'it_ex_abandond_email',\n\t\t'post_status' => 'publish',\n\t\t'posts_per_page' => -1,\n\t);\n\t$args = wp_parse_args( $args, $defaults );\n\t$email_templates = get_posts( $args );\n\n\t$emails = array();\n\tforeach( (array) $email_templates as $template ) {\n\t\t$subject = get_the_title( $template->ID );\n\t\t$temp = $GLOBALS['post'];\n\t\t$GLOBALS['post'] = $template;\n\t\t$message = $template->post_content;\n\t\t$GLOBALS['post'] = $temp;\n\t\t$scheduling = get_post_meta( $template->ID, '_it_exchange_abandoned_cart_emails_scheduling_unix', true );\n\n\t\tif ( ! empty( $subject ) && ! empty( $message ) && ! empty( $scheduling ) )\n\t\t\t$emails[$template->ID] = array( 'title' => $subject, 'subject' => $subject, 'time' => $scheduling, 'content' => $message );\n\t}\n\n\tkrsort( $emails );\n\treturn $emails;\n}", "public function getSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id = %1d AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "public function getActiveEmailsForNotification($depositid)\n {\n $this->db->select('*');\n $this->db->where('deposit_tracker_id',$depositid);\n $this->db->where('status','active');\n $this->db->where('screened',NULL);\n $this->db->from('iafb_remittance.deposit_tracker_email');\n $query = $this->db->get();\n $total = $this->db->count_all_results();\n if($query && $query->num_rows() > 0)\n {\n return $this->mapCollection($query->result(), new DepositTrackerCollection(), $total);\n }\n\n }", "public function getApplicantEmailAddress()\n {\n return $this->getProperty('applicant_email_address');\n }", "public function getExternalSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id, s.user_email, p.is_public'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id IS NULL AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "public function getMail();", "private function disposableEmailList()\n {\n return array(\n 'df@mailinator.com',\n 'df@spamevader.com',\n 'temp@tempmail.com',\n 'something@trbvm.com',\n 'anything@boximail.com',\n );\n }", "protected function getRecipientEmails()\n {\n return $this->recipients\n ->map(function($user) {\n return $user->{User::COLUMN_EMAIL};\n })\n ->toArray();\n }", "function getAssignedEmail() {\n\t\treturn $this->data_array['assigned_email'];\n\t}", "public function getWhoToNotifyByEmail()\n\t{\n\t\t//return array\n\t\t$group = Group::model()->findByPk($this->groupId);\n\t\t$emails = $group->getMembersByStatus(User::STATUS_ACTIVE);\n\t\treturn $emails->data;\n\t}", "function getCopyDialog()\n {\n $smarty = get_smarty(); \n $smarty->assign(\"scalixEmailAddress\",set_post($this->scalixEmailAddress));\n $str = $smarty->fetch(get_template_path(\"paste_generic.tpl\",TRUE,dirname(__FILE__))); \n $ret = array();\n $ret['string'] = $str;\n $ret['status'] = \"\";\n return($ret);\n \n }", "public function emails()\n {\n return $this->emails;\n }", "function getEmails() {\n\treturn db_query(\"SELECT email FROM Emails\");\n}", "public function getCustomerNotificationAttachments(): array;", "function getAllEmails() {\n return getALL('SELECT * FROM mail');\n}", "public function get_verified_emails() {\r\n\r\n\t\tset_error_handler( array( $this, 'ses_error_handler' ) ); // phpcs:ignore WordPress.PHP.DevelopmentFunctions.error_log_set_error_handler\r\n\r\n\t\t$data = $this->get_client()->listVerifiedEmailAddresses();\r\n\t\t$emails = array();\r\n\r\n\t\tif ( isset( $data['Addresses'] ) ) {\r\n\t\t\t$emails = $data['Addresses'];\r\n\t\t\tDebug::clear();\r\n\t\t}\r\n\r\n\t\treturn $emails;\r\n\t}", "public function getAllEmailAddresses() {\n $saveCurrentFolder = $this->folder;\n $emails = array();\n foreach($this->getFolders() as $folder) {\n $this->selectFolder($folder);\n foreach($this->getMessages(false) as $message) {\n $emails[] = $message['from'];\n $emails = array_merge($emails, $message['to']);\n if (isset($message['cc'])) {\n $emails = array_merge($emails, $message['cc']);\n }\n }\n }\n $this->selectFolder($saveCurrentFolder);\n return array_unique($emails);\n }", "function wp_get_unapproved_comment_author_email()\n {\n }", "public function getGiftcardRecipientEmail();", "public function getSentEmails(){\n\t\treturn $this->sent_emails;\n\t}", "protected function getEmailNotificationsRecipients()\n {\n return [\n ['address' => null, 'name' => null],\n ];\n }", "function getSubmittedEmail() {\n\t\treturn $this->data_array['submitted_email'];\n\t}", "public function getEmails() {\n\t\treturn empty( $this->container['emails'] ) ? null : $this->container['emails'];\n\t}", "public function getApproversPendingAttribute()\n {\n if ($this->state != 'pending_approval') {\n return collect();\n }\n return $this->approvers->diff(Approval::where('requisition_id', $this->id)->with('user')->get()->pluck('user'));\n }", "public function handle()\n {\n $claimHeader = new ClaimHeader;\n $claimLine = new ClaimLine;\n $email = new Email;\n $mailCredentials = $email->getMailCredentials();\n \n $approval = $claimHeader->getPendingApproval();\n foreach($approval as $approver){\n $mail = new PHPMailer(); // Passing `true` enables exceptions\n \n try {\n $headerDetails = $claimHeader->get($approver->module_reference_id);\n // Server settings\n $mail->SMTPDebug = 0; \t// Enable verbose debug output\n $mail->isSMTP(); \n $mail->CharSet = \"iso-8859-1\"; // Set mailer to use SMTP\n $mail->Host = 'smtp.office365.com'; // Specify main and backup SMTP servers\n $mail->SMTPAuth = true; // Enable SMTP authentication\n $mail->Username = $mailCredentials->email; // SMTP username\n $mail->Password = $mailCredentials->email_password; // SMTP password\n $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted\n $mail->Port = 587; // TCP port to connect to\n\n //Recipients\n $mail->setFrom($mailCredentials->email, 'System Notification');\n \n $mail->addAddress($approver->email_address, $approver->approver_name);\n \n // Add a recipient, Name is optional\n $mail->addBCC('paul-alcabasa@isuzuphil.com');\n //$mail->addBCC('paulalcabasa@gmail.com');\n //Content\n $data = [\n 'approver' => $approver,\n 'headerDetails' => $headerDetails,\n 'approve_link' => url('/') . '/api/claim-request/approve/' . $approver->id,\n 'reject_link' => url('/') . '/api/claim-request/reject/' . $approver->id,\n 'full_details_link' => url('/') . '/api/claim-request/approval/details/' . $approver->id\n ];\n \n $mail->isHTML(true); \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Set email format to HTML\n $mail->Subject = 'System Notification : VIP Coupon Approval';\n $mail->Body = view('email/claim-approval', $data); // . $row->email_address;\n $mail->AddEmbeddedImage(config('app.project_root') . 'public/images/isuzu-logo.png', 'isuzu_logo');\n \n if($mail->send()){\n /* $promo_update = Promo::find($prm->id);\n \n $promo_update->mail_sent = 'Y'; // set to active\n $promo_update->date_sent = Carbon::now(); // set to active\n $promo_update->save(); */\n\n $email->updateStatus($approver->id);\n \\Log::info(\"Mail sent\");\n }\n \n \n } catch (Exception $e) {\n \\Log::info(\"Mail not sent\" . $e);\n }\n \n }\n \n }", "public function getExtraEmailAddresses(): array\n {\n if (empty($this->extra_emails)) {\n return [];\n }\n\n return collect($this->extra_emails)\n ->map(function ($email) {\n return trim($email['email']);\n })\n ->all();\n }", "abstract function getEmailsArray() : array;", "function getAssignedTo() {\n\t\treturn $this->data_array['assigned_to'];\n\t}", "public function approve()\n {\n $message = new MailMessage;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been approved successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }", "function retrieve_promoter_guest_list_authorizations(){\n\t\t\n\t\t$this->CI->load->model('model_users_promoters', 'users_promoters', true);\n\t\treturn $this->CI->users_promoters->retrieve_promoter_guest_list_authorizations($this->promoter->up_id);\n\t\t\n\t}", "function getMailList() {\n return getAll(\"SELECT id,`email` FROM `member` WHERE id != ?\"\n , [getLogin()['mid']]);\n}", "public function getEmailSent();", "private function filterEmailNotificationsRecipients()\n {\n return collect($this->getEmailNotificationsRecipients())\n ->filter(function (array $recipient) {\n return isset($recipient['address'])\n && is_email($recipient['address']);\n })\n ->toArray();\n }", "function get_emails($return_email = '')\n\t{\n\t\t$xml = $this->load_url(\"settings/emailaddresses\");\n\n\t\tif(!$xml):\n\t\t\treturn false;\n\t\tendif;\n\n\t\t// parse into nicer array\n\t\t$emails = array();\n\t\t$_emails = (isset($xml['feed']['entry'])) ? $xml['feed']['entry'] : false;\n\n\t\tif(is_array($_emails)):\n\t\t\tif(isset($_emails[0]['link_attr']['href'])):\n\t\t\t\tforeach($_emails as $k => $v):\n\t\t\t\t\t$id = $this->get_id_from_link($v['link_attr']['href']);\n\t\t\t\t\t$email = $v['content']['Email'];\n\t\t\t\t\t$email['id'] = $id;\n\n\t\t\t\t\tif($return_email && $return_email == $v['content']['Email']['EmailAddress']):\n\t\t\t\t\t\t// return single email\n\t\t\t\t\t\treturn $email;\n\t\t\t\t\tendif;\n\n\t\t\t\t\t$emails[] = $email;\n\t\t\t\tendforeach;\n\t\t\telse:\n\t\t\t\t$id = $this->get_id_from_link($_emails['link_attr']['href']);\n\t\t\t\t$email = $_emails['content']['Email'];\n\t\t\t\t$email['id'] = $id;\n\t\t\t\t$emails[] = $email;\n\n\t\t\t\tif($return_email && $return_email == $_emails['content']['Email']['EmailAddress']):\n\t\t\t\t\t// return single email\n\t\t\t\t\treturn $email;\n\t\t\t\tendif;\n\t\t\tendif;\n\n\t\tendif;\n\n\t\treturn $emails;\n\t}", "private function retrieveAttachmentInformation() : array {\n $quarantineEmailAttachmentsParser = new QuarantineEmailAttachmentsParser();\n return $quarantineEmailAttachmentsParser->parse($this->currentEmail);\n }", "static function send_request_for_approval_to($email,$name,$date_from,$date_to,$reason,$approve_link,$reject_link){\n $message = \"<p> Dear supervisor, <br> Employee {$name} requested for some time off, starting on {$date_from} and ending on {$date_to}, stating the reason: {$reason}.<br> Click on one of the below links to approve or reject the application: <a href={$approve_link}> approve </a> - <a href={$reject_link}> reject </a> </p>\";\n $headers = 'From: employee_portal@example.com' . \"\\r\\n\" .\n 'Reply-To: employee_portal@example.com' . \"\\r\\n\" .\n 'Content-type: text/html; charset=iso-8859-1' . \"\\r\\n\" .\n 'X-Mailer: PHP/' . phpversion();\n\n \t$success = mail($email, 'A request in pending you approval', $message, $headers);\n if (!$success) {\n echo $errorMessage = error_get_last()['message'];\n }\n }", "public function getSubscriberEmails() {\n $stmt = $this->pdo->query(\"SELECT email\n FROM subscribers\n \");\n $subscribers = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $subscribers[] = $row['email'];\n }\n return $subscribers;\n }", "public function getAllEmails() {\n $users = $this->getDoctrine()->getRepository(User::class)->findAll();\n $emails = [];\n foreach($users as $email) {\n if(\"admin@email.com\" != $email->getEmail())\n array_push($emails, $email->getEmail());\n }\n\n return $emails;\n }", "protected function getSenderEmailAddress() {}", "protected function getSenderEmailAddress() {}", "protected function getEmailNotificationsFrom()\n {\n return ['address' => 'no-reply@example.com', 'name' => 'ICLogger Notification'];\n }", "public function default_reply_to_addresses() {\n\n\t\t_deprecated_function( __CLASS__ . '::' . __METHOD__, '2.1.1 of WP Mail SMTP plugin' );\n\n\t\t$gmail_creds = ( new Auth() )->get_user_info();\n\n\t\tif ( empty( $gmail_creds['email'] ) ) {\n\t\t\treturn [];\n\t\t}\n\n\t\treturn [\n\t\t\t$gmail_creds['email'] => [\n\t\t\t\t$gmail_creds['email'],\n\t\t\t\t'',\n\t\t\t],\n\t\t];\n\t}", "public function listAllApproved() {\n\t\treturn $this->personRepository->findAllApprovedUsers();\n\t}", "public function filterValidEmailsProvider() {}", "public function routeNotificationForMail()\n {\n \t//Por defecto, el email que se utiliza es el atributo llamado 'email' que contiene el modelo, en este caso, Job. Vamos a utilizar el email de Intelix \n return Company::all()->first()->email_jobs;\n }", "public function getEmails()\n {\n if (!isset($this->options['keep'])) {\n throw new BadMethodCallException(\"This function only works with the `keep` option\");\n }\n \n return $this->emails;\n }", "public function scopeGetAllMails()\n {\n\n $gname = Input::get( 'gname' );\n\n $mails = Tolist::findMany( array(\n 'to_id' => Auth::user()->id . '_' . $gname\n ), array(\n 'email'\n ) )->all( 'email' );\n\n return Helper::cleanGroups( $mails, '|' );\n\n }", "public function approver()\n {\n $data = $this->morphMany('\\ApprovalSequence\\Models\\Entity', 'entity')->get();\n $data = $data->map(function ($item) {\n return $item->approver;\n });\n return $data;\n }", "public function fetchServiceAccountEmail(): string;", "public function getOrderEmailList(){\n // Set method and action\n $method = 'email';\n $action = 'getOrderEmailList';\n\n // Set data\n $data = array('params' => true);\n\n // Send request and retrieve response\n $result = Dispatcher::send($method, $action, $data);\n\n return $result;\n }", "public function getCustomVerifications()\r\n {\r\n return $this->ses_client->listCustomVerificationEmailTemplates();\r\n }", "public function getCcEmails()\n {\n return $this->cc_emails;\n }", "private function approvedByRole()\n {\n $pending = \\ApprovalSequence\\Models\\Entity::Where('entity_id', $this[$this->primaryKey])->get();\n $approvers = $pending->map(function ($item) {\n return $item->approver->role_id;\n });\n //to avoid duplication\n return $approvers->unique();\n }", "public function getAllRecipients() {}", "function _simplenews_subscription_list_export_get_emails($states, $subscribed, $newsletters) {\n\n // Build conditions for active state, subscribed state and newsletter selection.\n if (isset($states['active'])) {\n $condition_active[] = 1;\n }\n if (isset($states['inactive'])) {\n $condition_active[] = 0;\n }\n if (isset($subscribed['subscribed'])) {\n $condition_subscribed[] = SIMPLENEWS_SUBSCRIPTION_STATUS_SUBSCRIBED;\n }\n if (isset($subscribed['unsubscribed'])) {\n $condition_subscribed[] = SIMPLENEWS_SUBSCRIPTION_STATUS_UNSUBSCRIBED;\n }\n if (isset($subscribed['unconfirmed'])) {\n $condition_subscribed[] = SIMPLENEWS_SUBSCRIPTION_STATUS_UNCONFIRMED;\n }\n\n // Get emails from the database.\n $query = db_select('simplenews_subscriber', 'ss');\n $query->innerJoin('simplenews_subscription', 'si', 'si.snid = ss.snid');\n $query->fields('ss', array('mail'))\n ->condition('ss.activated', $condition_active)\n ->condition('si.status', $condition_subscribed)\n ->condition('si.newsletter_id', $newsletters)\n ->distinct();\n $mails = $query->execute()->fetchCol(0);\n\n // Return comma separated array of emails or empty text.\n if ($mails) {\n return implode(\", \", $mails);\n }\n return t('No addresses were found.');\n}", "function getCoordinatorEmailAll() {\n $sqlQuery = \"SELECT coordinatorEmail FROM congregation_coordinator\";\n $result = $this->DB->executeQuery($sqlQuery, $this->Functions->paramsIsZero(), \"select\");\n if($result) {\n return $result;\n }else {\n return null;\n }\n }", "function get_all_mailings(){\n \n #api return count 25 as default.\n #set max count in rowCount as 500\n $params = array(\n 'version' => 3,\n 'sequential' => 1,\n 'rowCount' => 500 \n );\n \n /*$sql = \"Select count(*) as count From civicrm_mailing\";\n $mailingCount = CRM_Core_DAO::singleValueQuery($sql);\n if($mailingCount > 25){\n $params['rowCount'] = $mailingCount;\n }*/\n $aMailings = civicrm_api('Mailing', 'get', $params);\n if( $aMailings['is_error'] == 1 ){\n watchdog( WATCHDOG_DEBUG\n , \"Calling get_all_mailings():\\n\" .\n '$aMailings:' . print_r( $aMailings, true ) . \"\\n\"\n );\n return;\n }\n foreach ( $aMailings['values'] as $key => $mailing ){\n $pMailingJob = array(\n 'version' => 3,\n 'sequential' => 1,\n 'mailing_id' => $mailing['id']\n );\n $aMailingJob = civicrm_api('MailingJob', 'get', $pMailingJob);\n if( $aMailingJob['is_error'] != 1 && $aMailingJob['count']!= 0 ){\n $status = $aMailingJob['values'][0]['status'];\n $stDate = array_search('start_date', $aMailingJob['values'][0]);\n $endDate = array_search('end_date', $aMailingJob['values'][0]);\n $not_scheduled = false;\n if($stDate){\n $start_date = CRM_Utils_Date::customFormat($stDate);\n }else{\n $start_date = 'NULL';\n }\n if($endDate){\n $end_date = CRM_Utils_Date::customFormat($endDate);\n }else{\n $end_date = 'NULL';\n }\n }else{\n $status = \"Draft\";\n $start_date = $end_date = 'NULL';\n $not_scheduled = true;\n }\n \n //get change the action link based on the status\n if($not_scheduled){\n $actionUrl = CRM_Utils_System::url( 'civicrm/quickbulkemail', 'mid='.$mailing['id'].'&continue=true&reset=1');\n $actionName = 'Edit';\n }else{\n $actionUrl = CRM_Utils_System::url( 'civicrm/quickbulkemail', 'mid='.$mailing['id'].'&reset=1');\n $actionName = 'Re-Use';\n }\n \n //get scheduled_id and contact name\n if(!empty( $mailing['scheduled_id'] )){\n $scheduled_id = $mailing['scheduled_id'];\n $scheduled_name = self::get_contact_name( $mailing['scheduled_id'] );\n }else{\n $scheduled_id = 'NULL';\n $scheduled_name = 'NULL';\n }\n \n if(empty($mailing['scheduled_date'])) {\n $mailing['scheduled_date'] = NULL;\n }\n \n $action = \"<span><a href='\".$actionUrl.\"'>\".$actionName.\"</a></span>\" ;\n $rows[] = array( 'id' => $mailing['id']\n ,'name' => $mailing['name']\n ,'status' => $status\n ,'created_date' => CRM_Utils_Date::customFormat($mailing['created_date'])\n ,'scheduled' => CRM_Utils_Date::customFormat($mailing['scheduled_date'])\n ,'start' => $start_date\n ,'end' => $end_date\n ,'created_by' => self::get_contact_name( $mailing['created_id'] )\n ,'scheduled_by' => $scheduled_name\n ,'created_id' => $mailing['created_id']\n ,'scheduled_id' => $scheduled_id\n ,'action' => $action\n ); \n }\n return $rows;\n }", "function getRecipients() {\n\t\treturn $this->getData('recipients');\n\t}", "public function getEmailAddress();", "public function CalculateConfirmationEmailAddress() {\n\t\t\t// If we are here, then we need to check against the person\n\t\t\tif ($this->Person->PrimaryEmail) return $this->Person->PrimaryEmail->Address;\n\t\t\tif (count($objArray = $this->Person->GetEmailArray())) return $objArray[0]->Address;\n\n\t\t\t// If we are here, then we couldn't flat out find any email addresses -- so return null;\n\t\t\treturn null;\n\t\t}", "public function getEmailTemplatesFromRepository()\n {\n $today = Carbon::today()->toDateString();\n\n return $this->bannedEmailsRepository\n ->datatable(['email'])\n ->where('expired_at', '>', $today)\n ->pluck('email');\n }", "public function get_approved()\n\t{\n\t\treturn $this->approved_array;\n\t}", "protected function getListOfAdditionalEmailsUsingGETRequest()\n {\n\n $resourcePath = '/account/additional-emails/';\n $formParams = [];\n $queryParams = [];\n $headerParams = [];\n $httpBody = '';\n $multipart = false;\n\n\n\n // body params\n $_tempBody = null;\n\n if ($multipart) {\n $headers = $this->headerSelector->selectHeadersForMultipart(\n ['application/vnd.allegro.public.v1+json', '*/*']\n );\n } else {\n $headers = $this->headerSelector->selectHeaders(\n ['application/vnd.allegro.public.v1+json', '*/*'],\n []\n );\n }\n\n // for model (json/xml)\n if (isset($_tempBody)) {\n // $_tempBody is the method argument, if present\n if ($headers['Content-Type'] === 'application/json') {\n $httpBody = \\GuzzleHttp\\json_encode(ObjectSerializer::sanitizeForSerialization($_tempBody));\n } else {\n $httpBody = $_tempBody;\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 OAuth (access token)\n if ($this->config->getAccessToken() !== null) {\n $headers['Authorization'] = 'Bearer ' . $this->config->getAccessToken();\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 'GET',\n $this->config->getHost() . $resourcePath . ($query ? \"?{$query}\" : ''),\n $headers,\n $httpBody\n );\n }", "function getApprover() {\n return user_load($this->approver_uid);\n }", "public function getRejectedEmailsInfo()\n {\n if (empty($this->rejectedEmailsInfo))\n return array();\n \n $ret = array();\n foreach ($this->rejectedEmailsInfo as $emailInfo) { \n $ret[$emailInfo->email] = $emailInfo;\n }\n \n $this->rejectedEmailsInfo = array();\n return array_values($ret);\n }", "function get_emails($id, $cur_tab_id, $rel_tab_id, $actions=false) {\n\t\tglobal $log, $singlepane_view,$currentModule,$current_user;\n\t\t$log->debug(\"Entering get_emails(\".$id.\") method ...\");\n\t\t$this_module = $currentModule;\n\n $related_module = vtlib_getModuleNameById($rel_tab_id);\n\t\trequire_once(\"modules/$related_module/$related_module.php\");\n\t\t$other = new $related_module();\n vtlib_setup_modulevars($related_module, $other);\n\t\t$singular_modname = vtlib_toSingular($related_module);\n\n\t\t$parenttab = getParentTab();\n\n\t\tif($singlepane_view == 'true')\n\t\t\t$returnset = '&return_module='.$this_module.'&return_action=DetailView&return_id='.$id;\n\t\telse\n\t\t\t$returnset = '&return_module='.$this_module.'&return_action=CallRelatedList&return_id='.$id;\n\n\t\t$button = '';\n\n\t\t$button .= '<input type=\"hidden\" name=\"email_directing_module\"><input type=\"hidden\" name=\"record\">';\n\n\t\tif($actions) {\n\t\t\tif(is_string($actions)) $actions = explode(',', strtoupper($actions));\n\t\t\tif(in_array('ADD', $actions) && isPermitted($related_module,1, '') == 'yes') {\n\t\t\t\t$button .= \"<input title='\". getTranslatedString('LBL_ADD_NEW').\" \". getTranslatedString($singular_modname).\"' accessyKey='F' class='crmbutton small create' onclick='fnvshobj(this,\\\"sendmail_cont\\\");sendmail(\\\"$this_module\\\",$id);' type='button' name='button' value='\". getTranslatedString('LBL_ADD_NEW').\" \". getTranslatedString($singular_modname).\"'></td>\";\n\t\t\t}\n\t\t}\n\n\t\t$userNameSql = getSqlForNameInDisplayFormat(array('first_name'=>\n\t\t\t\t\t\t\t'vtiger_users.first_name', 'last_name' => 'vtiger_users.last_name'), 'Users');\n\t\t$query = \"select case when (vtiger_users.user_name not like '') then $userNameSql else vtiger_groups.groupname end as user_name,\" .\n\t\t\t\t\" vtiger_activity.activityid, vtiger_activity.subject, vtiger_activity.activitytype, vtiger_crmentity.modifiedtime,\" .\n\t\t\t\t\" vtiger_crmentity.crmid, vtiger_crmentity.smownerid, vtiger_activity.date_start, vtiger_activity.time_start, vtiger_seactivityrel.crmid as parent_id \" .\n\t\t\t\t\" from vtiger_activity, vtiger_seactivityrel, vtiger_contactdetails, vtiger_users, vtiger_crmentity\" .\n\t\t\t\t\" left join vtiger_groups on vtiger_groups.groupid=vtiger_crmentity.smownerid\" .\n\t\t\t\t\" where vtiger_seactivityrel.activityid = vtiger_activity.activityid\" .\n\t\t\t\t\" and vtiger_contactdetails.contactid = vtiger_seactivityrel.crmid and vtiger_users.id=vtiger_crmentity.smownerid\" .\n\t\t\t\t\" and vtiger_crmentity.crmid = vtiger_activity.activityid and vtiger_contactdetails.contactid = \".$id.\" and\" .\n\t\t\t\t\t\t\" vtiger_activity.activitytype='Emails' and vtiger_crmentity.deleted = 0\";\n\n\t\t$return_value = GetRelatedList($this_module, $related_module, $other, $query, $button, $returnset);\n\n\t\tif($return_value == null) $return_value = Array();\n\t\t$return_value['CUSTOM_BUTTON'] = $button;\n\n\t\t$log->debug(\"Exiting get_emails method ...\");\n\t\treturn $return_value;\n\t}", "public function getSendMailings() {\n\t\t$sql = 'SELECT pageId, UNIX_TIMESTAMP(dateadded) as `dateadded` FROM mailqueue WHERE issend=2';\n\t\t$ids = $this -> _conn -> getFields($sql);\n\t\t$rows = $this -> _conn -> getRows($sql);\n\t\t$page = new Page();\n\t\t$result = $page -> getPagesByIds($ids, true);\n\t\tif($result) {\n\t\t\tforeach($result as $page) {\n\t\t\t\tforeach($rows as $row) {\n\t\t\t\t\tif($row -> pageId == $page -> pageId) {\n\t\t\t\t\t\t$page -> publicationdate = $row -> dateadded;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $result;\n\t}", "public function getRecipients()\n\t{\n\t\t$me\t\t\t= $this->getService('com://admin/ninjaboard.model.people')->getMe();\n\t\t$table\t\t= $this->getTable();\n\t\t$params\t\t= $this->getService('com://admin/ninjaboard.model.settings')->getParams();\n\t\t$topic\t\t= $this->getService('com://site/ninjaboard.model.topics')->id($this->_state->topic)->getItem();\n\t\t$forum\t\t= $this->getService('com://site/ninjaboard.model.forums')->id($topic->forum_id)->getItem();\n\t\t$ids\t\t= array();\n\t\t\n\t\tif($params->email_notification_settings->auto_notify_admins == 'yes') {\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('id')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('users')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('sendEmail', '=', 1)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('id', '!=', $me->id);\n\t\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t\t{\n\t\t\t\t$ids[$id] = $id;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//Recipients subscribed to this topic\n\t\tif($this->_state->topic)\n\t\t{\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('created_by')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type', '=', $table->getTypeIdFromName('topic'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type_id', '=', $this->_state->topic)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('created_by', '!=', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('ninjaboard_subscriptions');\n\t\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t\t{\n\t\t\t\t$ids[$id] = $id;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t//Recipients subscribed to this forum and/or parent forum(s)\n\t\tif($forum->id)\n\t\t{\n\t\t\t$forums = array_filter(explode('/', $forum->path));\n\t\t\t$forums[] = $forum->id;\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('created_by')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type', '=', $table->getTypeIdFromName('forum'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type_id', 'in', $forums)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('created_by', '!=', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('ninjaboard_subscriptions');\n\t\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t\t{\n\t\t\t\t$ids[$id] = $id;\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Recipients subscribed to me\n\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select('created_by')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type', '=', $table->getTypeIdFromName('person'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('subscription_type_id', 'in', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('created_by', '!=', $me->id)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('ninjaboard_subscriptions');\n\t\tforeach($table->getDatabase()->select($query, KDatabase::FETCH_FIELD_LIST) as $id)\n\t\t{\n\t\t\t// we most have access to this forum to get notifications\n\t\t\t$person = $this->getService('com://admin/ninjaboard.model.people')->id($id)->getItem();\n\n\t\t\t// check we have permission for this forum\n\t\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t->select('tbl.level AS level')\n\t\t\t\t\t\t\t->from('ninjaboard_assets AS tbl')\n\t\t\t\t\t\t\t->order('tbl.level', 'DESC')\n\t\t\t\t\t\t\t->limit(1)\n\t\t\t\t\t\t\t->where('tbl.name', '=', 'com_ninjaboard.forum.'.$forum->id.'.'.$person->ninjaboard_usergroup_id.'.forum');\n\n\t\t\t$result = $table->getDatabase()->select($query, KDatabase::FETCH_FIELD);\n\t\t\t$result = isset($result) ? $result : $person->forum_permissions;\n\n\t\t\tif (!$result) continue;\n\n\t\t\t$ids[$id] = $id;\n\n\t\t}\n\t\t\n\t\tif(!$ids) return array();\n\t\t\n\t\t$query = $this->getService('koowa:database.adapter.mysqli')->getQuery()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->select(array('name', 'email'))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->from('users')\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t->where('id', 'in', $ids);\n\t\treturn $table->getDatabase()->select($query, KDatabase::FETCH_OBJECT_LIST);\n\t}", "public function getOtherTermEmail($id) {\n $term = Term::load($id);\n $email = $term->get('field_email')->value;\n return array('salesforce_on' => 1, 'email' => $email);\n }", "public function buildRecipientList() {\n $actors = $this->loadAllActors();\n $actors = $this->filterDeliverableActors($actors);\n return mpull($actors, 'getPHID');\n }", "public function getApprovedBy()\n {\n return $this->approved_by;\n }" ]
[ "0.6162441", "0.6011841", "0.5951873", "0.57714725", "0.57586396", "0.57302314", "0.56895614", "0.56131744", "0.5580726", "0.5572639", "0.5560343", "0.5549953", "0.55471253", "0.5484805", "0.5482486", "0.5413496", "0.5413269", "0.5413269", "0.5401683", "0.53975135", "0.538483", "0.53817225", "0.5367997", "0.5341762", "0.5320294", "0.5316393", "0.5310973", "0.5289682", "0.5288118", "0.52857757", "0.52837497", "0.5282943", "0.52828443", "0.52779466", "0.52755183", "0.5269202", "0.52571774", "0.52533", "0.5249121", "0.5248314", "0.52416444", "0.5205213", "0.5199777", "0.51897687", "0.5187574", "0.5178434", "0.5171047", "0.51542395", "0.513", "0.5123353", "0.5113201", "0.5113022", "0.5105526", "0.51040614", "0.5094325", "0.5092944", "0.5092888", "0.5090435", "0.5087604", "0.5082435", "0.5066517", "0.5053604", "0.50469387", "0.50292945", "0.50271344", "0.5024389", "0.5021952", "0.5019838", "0.5019838", "0.50197506", "0.50196975", "0.5012401", "0.50061923", "0.50032204", "0.49993423", "0.4991191", "0.4990696", "0.49889448", "0.4985139", "0.498378", "0.49726215", "0.49698767", "0.49685505", "0.49531156", "0.49508435", "0.49433574", "0.4941034", "0.49371162", "0.49354634", "0.49297813", "0.49259916", "0.49245974", "0.49203545", "0.49186066", "0.49176842", "0.49176675", "0.491643", "0.49144742", "0.49136332", "0.49042585" ]
0.7495321
0
Get remove emails copy to
Скопировать удаленные email-адреса
public function getCaRemoveCopyToEmails() { return $this->scopeConfig->getValue( self::XML_PATH_REMOVE_COPY_TO_EMAILS, ScopeInterface::SCOPE_STORE ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getEmailCopyTo()\n {\n $data = $this->getConfigValue(self::XML_PATH_EMAIL_COPY_TO, $this->getStore()->getStoreId());\n if (!empty($data)) {\n return array_map('trim', explode(',', $data));\n }\n return false;\n }", "public function removeAllEmails() {\n $this->emails = \"{}\";\n return $this;\n }", "function clearEmails() {\n\t\treturn $this->mailer->clearEmails();\n\t}", "function clearEmails() {\n\t\treturn $this->mailer->clearEmails();\n\t}", "protected function removeRecipient()\n\t{\n\t\t$arrChannels = $this->Input->post('channels');\n\n\t\t// Check selection\n\t\tif (!is_array($arrChannels) || count($arrChannels) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['noChannels'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// Validate e-mail address\n\t\tif (!preg_match('/^\\w+([!#\\$%&\\'\\*\\+\\-\\/=\\?^_`\\.\\{\\|\\}~]*\\w+)*@\\w+([_\\.-]*\\w+)*\\.[a-z]{2,6}$/i', $this->Input->post('email', true)))\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['email'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t$arrSubscriptions = array();\n\n\t\t// Get active subscriptions\n\t\t$objSubscription = $this->Database->prepare(\"SELECT pid FROM tl_newsletter_recipients WHERE email=? AND active=?\")\n\t\t\t\t\t\t\t\t\t\t ->execute($this->Input->post('email', true), 1);\n\n\t\tif ($objSubscription->numRows)\n\t\t{\n\t\t\t$arrSubscriptions = $objSubscription->fetchEach('pid');\n\t\t}\n\n\t\t$arrRemove = array_intersect($arrChannels, $arrSubscriptions);\n\n\t\t// Return if there are no subscriptions to remove\n\t\tif (!is_array($arrRemove) || count($arrRemove) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['unsubscribed'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// Remove subscriptions\n\t\t$this->Database->prepare(\"DELETE FROM tl_newsletter_recipients WHERE email=? AND pid IN(\" . implode(',', $arrRemove) . \")\")\n\t\t\t\t\t ->execute($this->Input->post('email', true));\n\t\t\t\t\t \n\t\t// Remove member\n\t\t$arrRetain = array_diff($arrSubscriptions, $arrChannels);\n\t\tif (count($arrRetain))\n\t\t{\n\t\t\t$this->Database->prepare(\"UPDATE tl_member SET newsletter=? WHERE email=?\")->execute(serialize($arrRetain), $this->Input->post('email'));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Delete only if member groups match\n\t\t\t$this->Database->prepare(\"DELETE FROM tl_member WHERE email=? AND groups=?\")->execute($this->Input->post('email'), $this->reg_groups);\n\t\t}\n\n\t\t// Confirmation e-mail\n\t\t$objEmail = new Email();\n\n\t\t// Get channels\n\t\t$objChannel = $this->Database->execute(\"SELECT title FROM tl_newsletter_channel WHERE id IN(\" . implode(',', $arrChannels) . \")\");\n\t\t\n\t\t// HOOK: post unsubscribe callback\n\t\tif (isset($GLOBALS['TL_HOOKS']['removeRecipient']) && is_array($GLOBALS['TL_HOOKS']['removeRecipient']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['removeRecipient'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$this->$callback[0]->$callback[1]($this->Input->post('email', true), $arrRemove, $objChannel->fetchEach('title'));\n\t\t\t}\n\t\t}\n\n\t\t$strText = str_replace('##domain##', $this->Environment->host, $this->nl_unsubscribe);\n\t\t$strText = str_replace(array('##channel##', '##channels##'), implode(\"\\n\", $objChannel->fetchEach('title')), $strText);\n\n\t\t$objEmail->from = $GLOBALS['TL_ADMIN_EMAIL'];\n\t\t$objEmail->subject = sprintf($GLOBALS['TL_LANG']['MSC']['nl_subject'], $this->Environment->host);\n\t\t$objEmail->text = $strText;\n\n\t\t$objEmail->sendTo($this->Input->post('email', true));\n\t\tglobal $objPage;\n\n\t\t// Redirect to jumpTo page\n\t\tif (strlen($this->jumpTo) && $this->jumpTo != $objPage->id)\n\t\t{\n\t\t\t$objNextPage = $this->Database->prepare(\"SELECT id, alias FROM tl_page WHERE id=?\")\n\t\t\t\t\t\t\t\t\t\t ->limit(1)\n\t\t\t\t\t\t\t\t\t\t ->execute($this->jumpTo);\n\n\t\t\tif ($objNextPage->numRows)\n\t\t\t{\n\t\t\t\t$this->redirect($this->generateFrontendUrl($objNextPage->fetchAssoc()));\n\t\t\t}\n\t\t}\n\n\t\t$_SESSION['UNSUBSCRIBE_CONFIRM'] = $GLOBALS['TL_LANG']['MSC']['nl_removed'];\n\t\t$this->reload();\n\t}", "protected function removeRecipient()\n\t{\n\t\t$arrChannels = $this->Input->post('channels');\n\t\t$arrChannels = array_intersect($arrChannels, $this->nl_channels); // see #3240\n\n\t\t// Check the selection\n\t\tif (!is_array($arrChannels) || count($arrChannels) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['noChannels'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t$arrSubscriptions = array();\n\t\t\n\t\t$email = \\Idna::encodeEmail($this->Input->post('email', true));\n\t\t\n\t\t$subscriber = new Subscriber($email);\n\n\t\t// Get active subscriptions\n\t\t$objSubscription = $this->Database->prepare(\"SELECT pid FROM tl_newsletter_recipients WHERE email=? AND active=1\")\n\t\t\t\t\t\t\t\t\t\t ->execute($email);\n\n\t\tif ($objSubscription->numRows)\n\t\t{\n\t\t\t$arrSubscriptions = $objSubscription->fetchEach('pid');\n\t\t}\n\n\t\t$arrRemove = array_intersect($arrChannels, $arrSubscriptions);\n\n\t\t// Return if there are no subscriptions to remove\n\t\tif (!is_array($arrRemove) || count($arrRemove) < 1)\n\t\t{\n\t\t\t$_SESSION['UNSUBSCRIBE_ERROR'] = $GLOBALS['TL_LANG']['ERR']['unsubscribed'];\n\t\t\t$this->reload();\n\t\t}\n\n\t\t// check for cleverreach support\n\t\t$objChannel = $this->Database->execute(\"SELECT id FROM tl_newsletter_channel WHERE cleverreach_active = 1 AND id IN(\" . implode(',', array_map('intval', $arrRemove)) . \")\");\n\n\t\t// TODO: multiple channel unsubscription\n\t\t$subscriber->getByChannel($arrRemove[0]);\n\n\t\t// Remove subscriptions\n\t\t$subscriber->remove($arrRemove);\n\t\t\n\t\t// optional Cleverreach Deletion\n\t\tif($objChannel->numRows > 0)\n\t\t{\n\t\t\t$subscriber->removeFromCR($objChannel->fetchEach('id'));\n\t\t}\n\n\t\t// Get channels\n\t\t$objChannels = $this->Database->execute(\"SELECT title FROM tl_newsletter_channel WHERE id IN(\" . implode(',', array_map('intval', $arrRemove)) . \")\");\n\t\t$arrChannels = $objChannels->fetchEach('title');\n\n\t\t// HOOK: post unsubscribe callback\n\t\tif (isset($GLOBALS['TL_HOOKS']['removeRecipient']) && is_array($GLOBALS['TL_HOOKS']['removeRecipient']))\n\t\t{\n\t\t\tforeach ($GLOBALS['TL_HOOKS']['removeRecipient'] as $callback)\n\t\t\t{\n\t\t\t\t$this->import($callback[0]);\n\t\t\t\t$this->{$callback[0]}->{$callback[1]}($varInput, $arrRemove);\n\t\t\t}\n\t\t}\n\n\t\tglobal $objPage;\n\n\t\t// Redirect to jumpTo page\n\t\tif (strlen($this->jumpTo) && $this->jumpTo != $objPage->id)\n\t\t{\n\t\t\t$objNextPage = $this->Database->prepare(\"SELECT id, alias FROM tl_page WHERE id=?\")\n\t\t\t\t\t\t\t\t\t\t ->limit(1)\n\t\t\t\t\t\t\t\t\t\t ->execute($this->jumpTo);\n\n\t\t\tif ($objNextPage->numRows)\n\t\t\t{\n\t\t\t\t$this->redirect($this->generateFrontendUrl($objNextPage->fetchAssoc()));\n\t\t\t}\n\t\t}\n\n\t\tif($subscriber->sendUnSubscribeMail($arrRemove))\n\t\t{\n\t\t\t$this->reload();\n\t\t}\n\t}", "function clear_to () {\n $this->sendto = array();\n $this->all_emails = array();\n }", "public function scopeDeleteMails()\n {\n\n $input = Input::all();\n $emailsToDelete = array();\n $data = array();\n\n //TO clean the input received from\n foreach ( $input as $k => $v ) {\n if ( $k [0] == '|' ) {\n $emailsToDelete [\"$v\"] = $v;\n }\n }\n\n if ( !count( $emailsToDelete ) ) {\n $data ['deleted'] = false;\n\n return $data;\n }\n\n $data ['deleted'] = DB::table( 'tolists' )\n ->where( 'to_id', '=', Group::getUID() . '_' . $input ['gname'] )\n ->whereIn( 'email', $emailsToDelete )\n ->delete();\n $data ['emailsToDelete'] = $emailsToDelete;\n\n return $data;\n\n }", "public function removeCcEmail($string)\n {\n return $this->setCcEmails(\n array_diff($this->getCcEmails(), [$string])\n );\n }", "function removeemail($member){\n\t\t$f3=$this->f3; \n\t\t$uselog=$f3->get('uselog');\n\t\t$email_logger=$f3->new('email_log');\n\t\t$email_logger->write('in removeemail for member = '.$member->forename. ' '.$member->surname.'email was '.$member->email ,$uselog);\n\t\t\n\t\t// now check if its in use elsewhere other than this membnum\n\t\t$this->mailmanunsub($member);\n}", "public function getTo($isCopy)\n {\n return array_merge([\n $this->_user->email => $this->_user->full_name,\n ], $this->_additionalTo);\n }", "function removeEmail($email) {\n\t\tglobal $polarbear_db;\n\t\t$emailSafe = $polarbear_db->escape($email);\n\t\t$sql = \"DELETE FROM \" . POLARBEAR_DB_PREFIX . \"_emaillist_emails WHERE listID = '{$this->id}' AND email = '$emailSafe'\";\n\t\t$polarbear_db->query($sql);\n\t}", "public function unsubscribe_user($email) {\n if($json_file = file_get_contents($this->json_file)) {\n $this->subscribers_arr = json_decode($json_file, true);\n $return_value = 3;\n foreach($this->subscribers_arr as $key => $value) {\n if ($key !== $email) { // Save list without $email\n $this->subscribers_arr[\"$email\"] = $value;\n } else {\n $email_removed = true;\n }\n }\n if ($email_removed == true) {\n $return_value = $this->write_subscribers_to_file();\n }\n return $return_value;\n }\n }", "public static function getExportDestinationEmails() {\n\n return get_option( 'geb_gfe_export_destination_emails' );\n }", "public function remove_from_resend_to($address)\n\t{\n\t\t$stripped_resend_to_array = array();\n\t\t$rsta = $this->get_resend_to();\n\t\tforeach($rsta as $email)\n\t\t{\n\t\t\tif ($address != $email) \n\t\t\t{\n\t\t\t\t$stripped_resend_to_array[] = $email;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->log_state('Resender class. Stripped address from resend_to_array: '.$email);\n\t\t\t}\n\t\t}\n\t\t$this->set_resend_to($stripped_resend_to_array);\n\t}", "private function disposableEmailList()\n {\n return array(\n 'df@mailinator.com',\n 'df@spamevader.com',\n 'temp@tempmail.com',\n 'something@trbvm.com',\n 'anything@boximail.com',\n );\n }", "public function getAllEmailAddresses() {\n $saveCurrentFolder = $this->folder;\n $emails = array();\n foreach($this->getFolders() as $folder) {\n $this->selectFolder($folder);\n foreach($this->getMessages(false) as $message) {\n $emails[] = $message['from'];\n $emails = array_merge($emails, $message['to']);\n if (isset($message['cc'])) {\n $emails = array_merge($emails, $message['cc']);\n }\n }\n }\n $this->selectFolder($saveCurrentFolder);\n return array_unique($emails);\n }", "public function getEmails()\n {\n if (!isset($this->options['keep'])) {\n throw new BadMethodCallException(\"This function only works with the `keep` option\");\n }\n \n return $this->emails;\n }", "public function originalRecipient()\n {\n $thread = $this;\n $creator = $thread->creator();\n\n // Filter out the original recipient\n $recipients = $thread->participants->filter(function ($participant, $key) use ($creator) {\n // If the userId doesn't equal the id of the sender\n // we can be sure this participant is the recipient\n return $participant->user->id !== $creator->id;\n });\n\n // Convert Participant to User\n $recipients = $recipients->map(function($participant) {\n return $participant->user;\n });\n\n // return $recipients;\n return $recipients->first();\n }", "function unsubscribe($email) {\n // We need to build the subscriber data structure.\n $email = array(\n \t\t 'EmailAddress' => $email \n );\n \n return $this->post_request($this->_subscribers_base_route.'/unsubscribe.json', $email);\n }", "function delete($email) {\n return $this->delete_request($this->_subscribers_base_route.'.json?email='.urlencode($email));\n }", "public function getUnseenEmails(): array\n {\n $emails = [];\n\n try {\n $imap = $this->loginToInbox();\n\n // We only want the emails we haven't fetched before.\n foreach ($imap->search(['UNSEEN']) as $id) {\n $data = $imap->fetch(['RFC822.HEADER', 'RFC822.TEXT'], $id);\n\n // We need to combine headers and text in order to have a full email.\n $emails[] = InboundEmail::fromMessage($data['RFC822.HEADER'].\"\\r\\n\".$data['RFC822.TEXT']);\n }\n\n $imap->logout();\n } catch (\\Exception $e) {\n // Just log the error and get on with the method execution.\n $this->logger->error($e->getMessage());\n }\n\n return $emails;\n }", "public function getCaApprovalCopyToEmails()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_APPROVAL_COPY_TO_EMAILS,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getDeleteObjectsUniqueInSink()\n {\n return $this->delete_objects_unique_in_sink;\n }", "public function getDeleteObjectsUniqueInSink()\n {\n return $this->delete_objects_unique_in_sink;\n }", "public function getEmailReferrers();", "public function getSubscriberEmails() {\n $stmt = $this->pdo->query(\"SELECT email\n FROM subscribers\n \");\n $subscribers = [];\n while ($row = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n $subscribers[] = $row['email'];\n }\n return $subscribers;\n }", "public function removeSubscribes();", "public function removeEmail($email)\n {\n $response = $this->post('user/email/remove', array('email' => $email));\n\n return $response['emails'];\n }", "public function getUnsubcribeUrl() {\n\t\treturn $this->getEmailActionLink(\"email/unsubscribeWeeklyNews\");\n\t}", "public function getContactsForRemoving()\n {\n return $this->contactsForRemoving;\n }", "private function filterEmailNotificationsRecipients()\n {\n return collect($this->getEmailNotificationsRecipients())\n ->filter(function (array $recipient) {\n return isset($recipient['address'])\n && is_email($recipient['address']);\n })\n ->toArray();\n }", "public function strip_resend_to_email_if_also_in_cc()\n\t{\n\t\t// NOTE: only deals with first CC!\n\t\t$add = $this->that->get_address_cc();\n\t\t$this->remove_from_resend_to($add);\n\t}", "function getMailList() {\n return getAll(\"SELECT id,`email` FROM `member` WHERE id != ?\"\n , [getLogin()['mid']]);\n}", "public function getRecipients();", "public function getCcEmails()\n {\n return $this->cc_emails;\n }", "function listUnsubscribe($id, $email_address, $delete_member=false, $send_goodbye=true, $send_notify=true) {\n $params = array();\n $params[\"id\"] = $id;\n $params[\"email_address\"] = $email_address;\n $params[\"delete_member\"] = $delete_member;\n $params[\"send_goodbye\"] = $send_goodbye;\n $params[\"send_notify\"] = $send_notify;\n return $this->callServer(\"listUnsubscribe\", $params);\n }", "function _osc_from_email_aux() {\n $tmp = osc_mailserver_mail_from();\n return !empty($tmp)?$tmp:osc_contact_email();\n }", "public function cleanCopy();", "function delete_contact_from_list($cat_id, $email) {\n require_once 'createsend-php-5.1.2/csrest_subscribers.php';\n $auth = array('api_key' => CM_API_KEY);\n\n $wrap = new CS_REST_Subscribers(get_term_meta($cat_id, 'list_id', true), $auth);\n $result = $wrap->delete($email);\n}", "public function getEmails()\n {\n return $this->emails;\n }", "public function getEmails()\n {\n return $this->emails;\n }", "function filterEmail($email, $chars = ''){\r\n $email = trim(str_replace( array(\"\\r\",\"\\n\"), '', $email ));\r\n if( is_array($chars) ) $email = str_replace( $chars, '', $email );\r\n $email = preg_replace( '/(cc\\s*\\:|bcc\\s*\\:)/i', '', $email );\r\n return $email;\r\n}", "function removeEmail( $email ){\n \n $conn = $this->connect();\n \n $sql = 'select email from ' . $this->dbtable . ' where email = lower(\"' . trim($email) . '\")';\n\t\t\t$query = mysql_query( $sql, $conn);\n\t\t\t\n\t\t\tif( mysql_num_rows( $query ) > 0 ){\n\t\t\t\t$sql = 'delete from ' . $this->dbtable . ' where email = \"' . trim($email) . '\"';\n\t\t\t\tmysql_query( $sql, $conn);\n\t\t\t} else {\n\t\t\t\treturn 'EMAIL NÃO CADASTRADO'; //Email not exists msg\n\t\t\t}\n \n mysql_close( $conn );\n \n return 'EMAIL REMOVIDO COM SUCESSO'; //Email removed sucefully\n }", "public function getMails(): Collection\n {\n\n return $this->mails;\n\n }", "function edd_pup_queue_emails() {\r\n\r\n\t$email_list = array();\r\n\tglobal $wpdb;\r\n\r\n\t$query = \"SELECT DISTINCT email_id FROM $wpdb->edd_pup_queue WHERE sent = 0\";\r\n\r\n\t$emails = $wpdb->get_results( $query , ARRAY_A );\r\n\r\n\tforeach ( $emails as $email ) {\r\n\t\t$email_list[] = $email['email_id'];\r\n\t}\r\n\r\n\treturn $email_list;\r\n}", "public function getCompanyAccountRemoveEmailTemplate()\n {\n return $this->scopeConfig->getValue(\n self::XML_PATH_COMPANY_ACCOUNT_REMOVE_EMAIL_TEMPLATE,\n ScopeInterface::SCOPE_STORE\n );\n }", "function mozilla_mailchimp_unsubscribe() {\n\tif ( isset( $_SERVER['REQUEST_METHOD'] ) && 'POST' === $_SERVER['REQUEST_METHOD'] ) {\n\t\t// Verify nonce.\n\t\tif ( ! isset( $_POST['nonce'] ) || false === wp_verify_nonce( sanitize_key( $_POST['nonce'] ), 'mailing-list' ) ) {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'This action is not allowed',\n\t\t\t\t)\n\t\t\t);\n\t\t\tdie();\n\t\t}\n\t\tif ( isset( $_POST['list'] ) && isset( $_POST['campaign'] ) && strlen( sanitize_key( $_POST['list'] ) ) > 0 ) {\n\t\t\t$user = wp_get_current_user();\n\n\t\t\tif ( isset( $user->data->user_email ) ) {\n\t\t\t\t$list = trim( sanitize_key( $_POST['list'] ) );\n\t\t\t\t$campaign_id = intval( sanitize_key( $_POST['campaign'] ) );\n\t\t\t\t$campaign = get_post( $campaign_id );\n\n\t\t\t\tif ( $campaign && 'campaign' === $campaign->post_type ) {\n\n\t\t\t\t\t$result = mozilla_remove_email_from_list( $list, $user->data->user_email );\n\t\t\t\t\t$members_participating = get_post_meta( $campaign->ID, 'members-participating', true );\n\t\t\t\t\t$campaigns = get_user_meta( $user->ID, 'campaigns', true );\n\n\t\t\t\t\tif ( is_array( $members_participating ) ) {\n\t\t\t\t\t\t$key = array_search( $user->ID, $members_participating, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $members_participating[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$members_participating = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( is_array( $campaigns ) ) {\n\t\t\t\t\t\t$key = array_search( $campaign->ID, $campaigns, true );\n\t\t\t\t\t\tif ( false !== $key ) {\n\t\t\t\t\t\t\tunset( $campaigns[ $key ] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$campaigns = array();\n\t\t\t\t\t}\n\n\t\t\t\t\tupdate_post_meta( $campaign->ID, 'members-participating', $members_participating );\n\t\t\t\t\tupdate_user_meta( $user->ID, 'campaigns', $campaigns );\n\t\t\t\t\tprint wp_json_encode( array( 'status' => 'OK' ) );\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tprint wp_json_encode(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t\t'message' => 'Could not find User email',\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t}\n\t\t} else {\n\t\t\tprint wp_json_encode(\n\t\t\t\tarray(\n\t\t\t\t\t'status' => 'ERROR',\n\t\t\t\t\t'message' => 'No list provided. Please provide list ID',\n\t\t\t\t)\n\t\t\t);\n\t\t}\n\t} else {\n\t\tprint wp_json_encode(\n\t\t\tarray(\n\t\t\t\t'status' => 'ERROR',\n\t\t\t\t'message' => 'This method is not allowed',\n\t\t\t)\n\t\t);\n\t}\n\tdie();\n}", "function sensei_cust_remove_content_drip_emails() { \nremove_all_actions( 'woo_scd_daily_cron_hook' );\n}", "public function getUnsubscribersToFollow()\n {\n return $this->automation->subscribers()\n ->addSelect('unsubscribe_logs.created_at AS unsubscribed_at')\n ->addSelect('tracking_logs.message_id')\n ->join('tracking_logs', 'subscribers.id', '=', 'tracking_logs.subscriber_id')\n ->join('unsubscribe_logs', 'tracking_logs.message_id', '=', 'unsubscribe_logs.message_id')\n ->whereRaw(sprintf(table('subscribers') . '.id NOT IN (SELECT COALESCE(subscriber_id, 0) FROM %s WHERE auto_event_id = %s)', table('auto_triggers'), $this->id))\n ->where('unsubscribe_logs.created_at', '>=', $this->created_at)\n ->get();\n }", "public function resetOriginalEmail() : void;", "public function getEmails() {\n\t\treturn empty( $this->container['emails'] ) ? null : $this->container['emails'];\n\t}", "protected function cleanEmail($email) {\n\t\tif(is_array($email)) {\n\t\t\t$cleanEmails = array();\n\t\t\tforeach($email as $em) {\n\t\t\t\t$cleanEmails[] = (preg_match('/\\<(.*?)\\>/', $em, $match)) ? $match[1] : $em;\n\t\t\t}\n\t\t\treturn $cleanEmails;\n\t\t}\n\t\telse {\n\t\t\t$cleanEmail = (preg_match('/\\<(.*?)\\>/', $email, $match)) ? $match[1] : $email;\n\t\t\treturn $cleanEmail;\n\t\t}\n\t}", "public function emails()\n {\n return $this->emails;\n }", "public function getEmails()\n\t{\n \\Phalcon\\DI::getDefault()->get('logger')->log(\"Emails: \" . print_r($this->emails, true));\n\t\treturn $this->emails;\n\t}", "public function scopeGetAllMails()\n {\n\n $gname = Input::get( 'gname' );\n\n $mails = Tolist::findMany( array(\n 'to_id' => Auth::user()->id . '_' . $gname\n ), array(\n 'email'\n ) )->all( 'email' );\n\n return Helper::cleanGroups( $mails, '|' );\n\n }", "public function getExtraEmailAddresses(): array\n {\n if (empty($this->extra_emails)) {\n return [];\n }\n\n return collect($this->extra_emails)\n ->map(function ($email) {\n return trim($email['email']);\n })\n ->all();\n }", "function getMailList($contentid='', $exclude='')\r\n\t{ /* exclude must be an array of values\r\n\t\t * OR not quoted list separated by ,\r\n\t\t *\r\n\t\t * contentid should be an array of values\r\n\t\t * OR not quoted list separated by ,\r\n\t\t */\r\n\r\n\t\t$database =& JFactory::getDBO();\r\n\r\n\t if (is_array($contentid)) {\r\n\t $contentid = implode(',', $contentid);\r\n\t }\r\n\t if (is_array($exclude)) {\r\n\t $exclude = implode(',', $exclude);\r\n\t }\r\n\r\n\t if ($this->_notify_users && $contentid) {\r\n\t /* Unregistered users */\r\n\t\t\t$query \t= \"SELECT DISTINCT email \"\r\n\t\t\t\t\t. \"\\n FROM `#__comment` \"\r\n\t\t\t\t\t. \"\\n WHERE contentid IN ($contentid) AND component='$this->_component'\"\r\n\t\t\t\t\t. \"\\n AND ( userid = NULL OR userid = 0 )\"\r\n\t\t\t\t\t. \"\\n AND email <> ''\"\r\n\t\t\t\t\t. \"\\n AND notify = '1'\"\r\n\t\t\t\t\t;\r\n\t\t\tif ($exclude) {\r\n\t\t\t\t$quoted = str_replace( ',', \"','\", $exclude); /* add quotes */\r\n\t\t\t\t$query .= \"\\n AND email NOT IN ('$quoted')\";\r\n\t\t\t}\r\n\t\t\t$database->setQuery( $query );\r\n\t\t\t$unregistered_maillist = $database->loadResultArray(); //tableau\r\n\r\n\t\t\tif ($unregistered_maillist) {\r\n\t\t\t $exclude = ($exclude ? $exclude.',' : '') . implode(',', $unregistered_maillist);\r\n\t\t\t}\r\n\r\n \t \t/* Registered users*/\r\n \t \t$registered_maillist = array();\r\n\t\t\t$query \t= \"SELECT DISTINCT u.email \"\r\n\t\t\t\t\t. \"\\n FROM `#__comment` AS c \"\r\n\t\t\t\t\t. \"\\n INNER JOIN `#__users` AS u ON u.id = c.userid \"\r\n\t\t\t\t\t. \"\\n WHERE c.contentid IN ($contentid) AND component='$this->_component'\"\r\n\t\t\t\t\t. \"\\n AND u.email <> ''\"\r\n\t\t\t\t\t. \"\\n AND c.notify = '1'\"\r\n\t\t\t\t\t;\r\n\t\t\tif ($exclude) {\r\n\t\t\t\t$quoted = str_replace( ',', \"','\", $exclude); /* add quotes */\r\n\t\t\t\t$query .= \"\\n AND u.email NOT IN ('$quoted')\";\r\n\t\t\t}\r\n\t\t\t$database->setQuery( $query );\r\n\t\t\t$registered_maillist = $database->loadResultArray(); //tableau\r\n//\t\t\t$debugemail = implode(';' , $maillist); // liste s�par� par des ;\r\n\r\n\t\t\tif ($registered_maillist) {\r\n\t\t \t$exclude = ($exclude ? $exclude.',' : '') . implode(',', $registered_maillist);\r\n\t\t\t}\r\n\t }\r\n\r\n\t\t$moderator_maillist = $this->getMailList_moderator($exclude);\r\n\r\n\t\t$maillist = array();\r\n\t\tif (isset($unregistered_maillist) && is_array($unregistered_maillist))\r\n\t\t\t$maillist = array_merge( $maillist, $unregistered_maillist);\r\n\t\tif (isset($registered_maillist) && is_array($registered_maillist))\r\n\t\t\t$maillist = array_merge( $maillist, $registered_maillist);\r\n\t\tif (isset($moderator_maillist) && is_array($moderator_maillist))\r\n\t\t\t$maillist = array_merge( $maillist, $moderator_maillist);\r\n\r\n\t\treturn ($maillist);\r\n\t}", "public function getSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id = %1d AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "protected function delete_old() {\n // this will delete anything odler than 30 days\n $search = 'BEFORE \"' . date(\"j F Y\", strtotime(\"-30 days\")) . '\"';\n $emails = imap_search($this->mbox, $search, SE_UID);\n if(!empty($emails)){\n foreach($emails as $email){\n try {\n imap_delete($this->mbox, $email, FT_UID);\n }\n catch (\\Exception $e) {\n print \"Error processing email (UID $email): \" . $e->getMessage() . \"\\n\";\n }\n }\n }\n\n imap_expunge($this->mbox);\n }", "static function unwrap_email($html_email) {\n\n if (self::_has_markers($html_email)) {\n $html_email = self::unwrap_html_element($html_email);\n } else {\n //KEEP FOR OLD EMAIL COMPATIBILITY\n // Extracts only the body part\n $x = strpos($html_email, '<body');\n if ($x) {\n $x = strpos($html_email, '>', $x);\n $y = strpos($html_email, '</body>');\n $html_email = substr($html_email, $x + 1, $y - $x - 1);\n }\n\n /* Cleans up uncorrectly stored newsletter bodies */\n $html_email = preg_replace('/<style\\s+.*?>.*?<\\\\/style>/is', '', $html_email);\n $html_email = preg_replace('/<meta.*?>/', '', $html_email);\n $html_email = preg_replace('/<title\\s+.*?>.*?<\\\\/title>/i', '', $html_email);\n $html_email = trim($html_email);\n }\n\n // Required since esc_html DOES NOT escape the HTML entities (apparently)\n $html_email = str_replace('&', '&amp;', $html_email);\n $html_email = str_replace('\"', '&quot;', $html_email);\n $html_email = str_replace('<', '&lt;', $html_email);\n $html_email = str_replace('>', '&gt;', $html_email);\n\n return $html_email;\n }", "public function filterValidEmailsProvider() {}", "public function getAdminEmails() {\n //get administration email array\n $administration_email = Doctrine::getTable('AdministrationEmails')->getEmails();\n\n\n //create admin email query\n $admin_email_query = Doctrine_Query::create()\n ->select('sgu.email_address')\n ->from('sfGuardUser sgu')\n ->leftJoin('sgu.sfGuardUserPermission sgup')\n ->whereNotIn('sgu.email_address', $administration_email)\n ->andWhere('sgup.user_id IS NOT NULL');\n $admin_email_record = $admin_email_query->fetchArray();\n $administration_email_array = array('Dirección de correo electrónico Selecte');\n foreach ($admin_email_record as $index => $email) {\n $administration_email_array[$email['email_address']] = $email['email_address'];\n }\n return $administration_email_array;\n }", "function & _getDestinationUsernames() {\n\t\tif (empty($this->_destination_usernames)) {\n\t\t\t$params = & $this->_getParams();\n\t\t\t\n\t\t\t$usernames = trim($params->get('alerts_jabber_destination'), \", \\r\\n\");\n\t\t\t$usernames = explode(',', $usernames);\n\t\t\t\n\t\t\t\n\t\t\t$validUsernames = array();\n\t\t\t\n\t\t\tforeach ($usernames as $k => $v) {\n\t\t\t\t$v = trim($v, \", \\r\\n\");\n\t\t\t\t\n\t\t\t\tif ($this->_isValidUsername($v))\n\t\t\t\t\t$validUsernames [ ] = $v; \n\t\t\t}\n\t\t\t\n\t\t\t$this->_destination_usernames = $validUsernames;\n\t\t}\n\t\t\n\t\treturn $this->_destination_usernames;\n\t}", "public function unsubscribe($data) {\n if (empty($data['email'])) {\n throw new MailerException(\"Unsubscribe email is required.\");\n }\n\n $path = 'mailinglists/unsubscribe.json';\n $data = array('unsubscribe' => $data);\n return $this->request($path, 'POST', $data);\n }", "public function getNewsletterRecipientIDs();", "public function getAllEmails() {\n $users = $this->getDoctrine()->getRepository(User::class)->findAll();\n $emails = [];\n foreach($users as $email) {\n if(\"admin@email.com\" != $email->getEmail())\n array_push($emails, $email->getEmail());\n }\n\n return $emails;\n }", "public function clearAddresses()\n {\n foreach ($this->to as $to) {\n unset($this->all_recipients[strtolower($to[0])]);\n }\n $this->to = array();\n $this->clearQueuedAddresses('to');\n }", "protected function removeFilterFromForMailer(): void\n {\n if ($this->fromEmail()) {\n \\remove_filter('wp_mail_from', [$this, 'fromEmail'], 500);\n }\n\n if ($this->fromName()) {\n \\remove_filter('wp_mail_from_name', [$this, 'fromName'], 500);\n }\n }", "protected function getRecipientEmails()\n {\n return $this->recipients\n ->map(function($user) {\n return $user->{User::COLUMN_EMAIL};\n })\n ->toArray();\n }", "public static function remove($email)\n\t{\n\t\t// Delete from database\n\t\t$db = BluApplication::getDatabase();\n\t\t$query = 'DELETE FROM maillist\n\t\t\tWHERE email = \"'.$email.'\"';\n\t\t$db->setQuery($query);\n\t\t$db->query();\n\n\t\t// Remove from constant contact\n\t\t$constantContact = self::_getConstantContact();\n\t\treturn $constantContact->remove($email);\n\t}", "public function get_emails() {\n\n\t\t$emails = array();\n\n\t\tforeach ( $this->settings['recipients'] as $item ) {\n\t\t\t$emails[] = $item['value'];\n\t\t}\n\n\t\treturn $emails;\n\t}", "private function clone_mail()\n {\n return clone $this->mail_transport;\n }", "function pmproex_pmpro_email_filter($email)\r\n{\r\n\tglobal $wpdb;\r\n \t\r\n\t//only update admin confirmation emails\r\n\tif(strpos($email->template, \"checkout\") !== false && strpos($email->template, \"_admin\") !== false)\r\n\t{\r\n\t\t//get the user_id from the email\r\n\t\t$order_id = $email->data['invoice_id'];\r\n\t\tif(!empty($order_id))\r\n\t\t{\r\n\t\t\t$order = new MemberOrder($order_id);\r\n\t\t\t\t\t\t\r\n\t\t\t//add to bottom of email\r\n\t\t\tif(!empty($order->notes))\r\n\t\t\t{\r\n\t\t\t\t$email->body .= \"<p>Order Notes</p><hr /><p>\" . $order->notes . \"</p>\";\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\t\r\n\treturn $email;\r\n}", "public function getRecipients ()\n\t\t{\n\t\t\t$recipients = array();\n\t\t\t$n = imap_num_msg ( $this->mbox );\n\t\t\tfor ( $i = 1; $i <= $n; $i++ )\t// Yes: starts with 1, not 0\n\t\t\t{\n\t\t\t\t$recipients[$i] = $this->getRecipient ( $i );\n\t\t\t}\t\n\t\t\t\n\t\t\treturn $recipients;\n\t\t}", "public function clearAllRecipients()\n {\n }", "private function getUndeliveredList($campaign) {\n $sql = \"SELECT origin FROM smsMessages\n WHERE 1 \n AND messageId LIKE '{$campaign}' \n AND status != 2\n ORDER BY id DESC\";\n $results=$this->db->query($sql,2);\n return $results;\n }", "function membersemailist($memberquery){\n\t$f3=$this->f3;\n\t$members =\tnew Member($this->db);\n\t$memblist=$members->load();\n\t$membemails= $this->db->exec('SELECT distinct(email) as unqemail from members where u3ayear = '.'\"2015-2016\"'. ' and status =\"Active\" and email <> \"\" ' .$memberquery.' order by unqemail;');\n\t$output = iterator_to_array(new RecursiveIteratorIterator(\n new RecursiveArrayIterator($membemails)), FALSE);\n\treturn array_values($output);\n\t\n\t\n}", "function simplenews_subscription_list_remove($form, &$form_state) {\n $form['emails'] = array(\n '#type' => 'textarea',\n '#title' => t('Email addresses'),\n '#cols' => 60,\n '#rows' => 5,\n '#description' => t('Email addresses must be separated by comma, space or newline.'),\n );\n\n $form['newsletters'] = array(\n '#type' => 'fieldset',\n '#description' => t('Unsubscribe from'),\n '#tree' => TRUE,\n );\n\n foreach (simplenews_newsletter_get_all() as $newsletter) {\n $form['newsletters'][$newsletter->newsletter_id] = array(\n '#type' => 'checkbox',\n '#title' => check_plain($newsletter->name),\n '#description' => check_plain($newsletter->description),\n );\n }\n\n $form['submit'] = array(\n '#type' => 'submit',\n '#value' => t('Unsubscribe'),\n );\n return $form;\n}", "public function getMail();", "function clear_bcc () {\n $this->sendbcc = array();\n $this->all_emails = array();\n }", "private function cleanEmail($email)\n { \n foreach($email as $email)\n $return[] = trim(strtolower($email));\n \n return $return;\n }", "private static function canRemoveEmail() {\n\t\treturn\n\t\t\tRights::hasRight(Right::getByName('Premanager', 'registerWithoutEmail'));\n\t}", "function getMailList_moderator($exclude='')\r\n\t{\r\n\t\t/* exclude must be an array of values\r\n\t\t * OR not quoted list separated by ,\r\n\t\t */\r\n\r\n\t\t$database =& JFactory::getDBO();\r\n\r\n\t if (is_array($exclude)) {\r\n\t $exclude = implode(',', $exclude);\r\n\t }\r\n\r\n /* Moderators(if requested) */\r\n\r\n $moderator_maillist = array();\r\n\r\n if ($this->_notify_moderator && $this->_moderator) {\r\n $usertype = '';\r\n foreach($this->_moderator as $moderator) {\r\n $usertype .= ($usertype ? ',':'') . \"'\" . JOSC_utils::getJoomlaUserType($moderator) . \"'\";\r\n }\r\n\t\t\t$query \t= \"SELECT DISTINCT email \"\r\n\t\t\t\t\t. \"\\n FROM `#__users` \"\r\n\t\t\t\t\t. \"\\n WHERE email <> '' \"\r\n\t\t\t\t\t. \"\\n AND usertype IN ($usertype)\"\r\n\t\t\t\t\t;\r\n\t\t\tif ($exclude) {\r\n\t\t\t\t$quoted = str_replace( ',', \"','\", $exclude); /* add quotes */\r\n\t\t\t\t$query .= \"\\n AND email NOT IN ('$quoted')\";\r\n\t\t\t}\r\n\t\t\t$database->setQuery( $query );\r\n\t\t\t$moderator_maillist = $database->loadResultArray(); //tableau\r\n\t\t\t//echo implode(';' , $moderator_maillist); // liste s�par� par des ;\r\n } elseif ($this->_notify_admin && $this->_notify_email <> '') {\r\n $moderator_maillist[] = $this->_notify_email;\r\n }\r\n return $moderator_maillist;\r\n\t}", "public function getUserMails()\r\n\t{\r\n\t\t$userDir = __DIR__ . '/../../settings/users';\r\n\t\t\t\t\r\n\t\t/* check if users directory exists */\r\n\t\tif(!is_dir($userDir)){ return array(); }\r\n\t\t\r\n\t\t/* get all user files */\r\n\t\t$users = array_diff(scandir($userDir), array('..', '.'));\r\n\t\t\r\n\t\t$usermails\t= array();\r\n\r\n\t\tforeach($users as $key => $user)\r\n\t\t{\r\n\t\t\tif($user == '.logins'){ continue; }\r\n\r\n\t\t\t$contents \t= file_get_contents($userDir . DIRECTORY_SEPARATOR . $user);\r\n\r\n\t\t\tif($contents === false){ continue; }\r\n\r\n\t\t\t$searchfor \t= 'email:';\r\n\r\n\t\t\t# escape special characters in the query\r\n\t\t\t$pattern \t= preg_quote($searchfor, '/');\r\n\t\t\t\r\n\t\t\t# finalise the regular expression, matching the whole line\r\n\t\t\t$pattern \t= \"/^.*$pattern.*\\$/m\";\r\n\r\n\t\t\t# search, and store first occurence in $matches\r\n\t\t\tif(preg_match($pattern, $contents, $match)){\r\n\t\t\t\t$usermails[] = trim(str_replace(\"email:\", \"\", $match[0]));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn $usermails;\r\n\t}", "public function getDeleteObjectsFromSourceAfterTransfer()\n {\n return $this->delete_objects_from_source_after_transfer;\n }", "public function getDeleteObjectsFromSourceAfterTransfer()\n {\n return $this->delete_objects_from_source_after_transfer;\n }", "public function getMatchedEmailAddress();", "public function unsubscribed() {\n\t\t$fields_string = \"\";\n\n\t\t//113 - Opt-out Registered Users\n $params = $_POST;\n\t\t\n\t\t$email \t= $params['email'];\t\n\t\t$urlencoded_email = urlencode($email);\n\t\t\n\t\t//set POST variables - activate a user on the opt out list\n\t\t$url = 'https://login8.unsubcentral.com/uc/address_upload.pl?';\n\t\t$fields = array(\n\t\t\t\t\t\t\t\t'login'=>'TotsyAPI',\n\t\t\t\t\t\t\t\t'password'=>'D:hXeM;i',\n\t\t\t\t\t\t\t\t'listID'=>'113',\n\t\t\t\t\t\t\t\t'md5'=>'false',\n\t\t\t\t\t\t\t\t'suppressed_text'=>urlencode($email)\n\t\t\t\t\t\t);\n\t\t\n\t\t//url-ify the data for the POST\n\t\tforeach($fields as $key=>$value) { $fields_string .= $key.'='.$value.'&'; }\n\t\trtrim($fields_string,'&amp;');\n\t\t\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\tcurl_setopt($ch,CURLOPT_POST,count($fields));\n\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$fields_string);\n\t\t$result = curl_exec($ch);\n\t\tcurl_close($ch);\t\n\t\t\n\t\t//clear the previous variables\n\t\tunset($fields);\n\t\tunset($fields_string);\n\t\t\n\t\t$date_today = date(\"Y-m-d\");\n\t\t\n\t\t$unsubcentral_filename = \"/tmp/unsubcentral-\".time().\".txt\";\n\t\t$temp_file = file_put_contents($unsubcentral_filename,\"{$email}\\t{$date_today}\\t0\\t\\n\");\n\t\t\n\t\t//deactivate a user on the registered list (116)\n\t\t$url = \"https://login8.unsubcentral.com/uc/add_remove_address.pl?\";\n\t\t$fields = array(\n\t\t\t\t\t\t\t\t'login'=>'TotsyAPI',\n\t\t\t\t\t\t\t\t'password'=>urlencode('D:hXeM;i'),\n\t\t\t\t\t\t\t\t'listID'=>'116',\n\t\t\t\t\t\t\t\t'file'=>\"@{$unsubcentral_filename}\",\n\t\t\t\t\t\t\t\t'email_col'=>\"0\",\n\t\t\t\t\t\t\t\t'action_col'=>\"2\",\n\t\t\t\t\t\t\t\t'date_col'=>\"1\"\n\t\t\t\t\t\t);\n\t\t\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch,CURLOPT_URL,$url);\n\t\tcurl_setopt($ch,CURLOPT_POST,TRUE);\n\t\tcurl_setopt($ch,CURLOPT_POSTFIELDS,$fields);\n curl_setopt($ch,CURLOPT_RETURNTRANSFER,TRUE); \n\t\t$result = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t\n\t\t//remove the unsubcentral upload file after it is used for upload\n\t\tunlink($unsubcentral_filename);\n \t}", "public function getMailUsers()\n {\n return $this->userRepo->getMailUsers(\\Auth::user()->id);\n }", "public function expunge()\n {\n return imap_expunge($this->stream());\n }", "public function getUnreadVoicemail()\n {\n return $this->_getAndParse($this->_serverPath['voicemail'], false);\n\t}", "function getAllEmails() {\n return getALL('SELECT * FROM mail');\n}", "public function unsetAdditionalRecipients(): void\n {\n $this->additionalRecipients = [];\n }", "public function getExternalSubscriptionsToEmail()\n {\n $principal = System_Api_Principal::getCurrent();\n\n $query = 'SELECT s.subscription_id, s.issue_id, s.user_id, s.stamp_id, s.user_email, p.is_public'\n . ' FROM {subscriptions} AS s'\n . ' JOIN {issues} AS i ON i.issue_id = s.issue_id'\n . ' JOIN {folders} AS f ON f.folder_id = i.folder_id'\n . ' JOIN {projects} AS p ON p.project_id = f.project_id';\n if ( !$principal->isAdministrator() )\n $query .= ' JOIN {effective_rights} AS r ON r.project_id = f.project_id AND r.user_id = %1d';\n $query .= ' WHERE s.user_id IS NULL AND i.stamp_id > s.stamp_id AND p.is_archived = 0';\n\n return $this->connection->queryTable( $query, $principal->getUserId() );\n }", "private function emailList()\n {\n return array(\n 'temp@yahoo.com',\n 'something@outlook.com',\n 'anything@yahoo.com',\n );\n }", "public function getAllUnreadEmailsSenders()\n {\n $messages = collect(LaravelGmail::message()->unread()->preload()->all());\n $fromList = [];\n\n $messages->each(function ($message) use (&$fromList) {\n $fromList[] = $message->getFrom();\n });\n\n // TODO: can be optimized\n return $this->getUnreadEmailsList($fromList);\n }", "function getEmails() {\n\treturn db_query(\"SELECT email FROM Emails\");\n}", "function getDestKeys() {\n return $this->destKeys;\n }", "public function unpublish()\n {\n $message = new MailMessage;;\n $message->greeting(\"Hi {$this->post->reporting->name}!\");\n $message->line(\"The post {$this->post->titile} has been unpublished successfully.\"); \n foreach ($this->workflow as $key => $value) {\n if ($key == 0) {\n $message->action($value->action, url('workflows/workflow/' . $value->id));\n continue;\n }\n $message->line('<a href=\"'.url('workflows/workflow/' . $value->id).'\">'.$value->action.'</a>');\n }\n\n return $message;\n }" ]
[ "0.6198424", "0.6091833", "0.59340054", "0.59340054", "0.59258306", "0.570302", "0.5543972", "0.55308", "0.55225223", "0.5480271", "0.5443662", "0.5438063", "0.54346883", "0.54150647", "0.5394309", "0.5379831", "0.53772235", "0.53754187", "0.537495", "0.53720045", "0.53700393", "0.53690153", "0.5359289", "0.53519446", "0.53519446", "0.5346515", "0.53347105", "0.5306908", "0.5297489", "0.52836233", "0.52424985", "0.52419966", "0.52339536", "0.5218387", "0.5204054", "0.51908195", "0.5189021", "0.51805174", "0.5177554", "0.51711875", "0.51686436", "0.51686436", "0.5161084", "0.5151828", "0.5150452", "0.5144682", "0.51325125", "0.5131554", "0.5131204", "0.5119665", "0.510478", "0.51024276", "0.5091693", "0.50756735", "0.5070797", "0.50677294", "0.506454", "0.5061999", "0.50605255", "0.5056474", "0.5038293", "0.50369334", "0.50309825", "0.5019303", "0.5008672", "0.50065714", "0.5003441", "0.49959886", "0.49900824", "0.49814346", "0.49814165", "0.49777946", "0.4976981", "0.49746168", "0.49688718", "0.49679044", "0.496145", "0.4957722", "0.4953433", "0.49499726", "0.49496704", "0.49361745", "0.4932891", "0.493062", "0.4929327", "0.4927974", "0.4927974", "0.4923423", "0.49208668", "0.49150687", "0.49141777", "0.49035117", "0.49026957", "0.49026394", "0.49013215", "0.49008468", "0.48982966", "0.48879057", "0.48760325", "0.48576373" ]
0.7314029
0
Register the given namespace in the passed XPath context
Зарегистрируйте указанный пространство имен в переданном XPath-контексте
function xpath_register_ns($xpath_context, $prefix, $uri) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function registerNamespace ($prefix, $namespaceURI) {}", "public function registerNamespace(string $prefix, string $namespaceURI): void {\n $this->_namespaces[$prefix] = $namespaceURI;\n if (NULL !== $this->_xpath && $prefix !== '#default') {\n $this->_xpath->registerNamespace($prefix, $namespaceURI);\n }\n }", "function addNamespace($namespace);", "abstract protected function registerNamespaces();", "public function registerNamespace($namespace, $path)\n\t{\n\t\t$this->namespaces[(string) $namespace] = (string) $path;\n\t}", "function setNamespace($namespace);", "public function registerNamespaces(Ns $ns): void;", "public function addNamespace($namespace, $hints);", "public function addNamespace(string $namespace, $hints);", "public function setNamespaceName($namespace);", "public function registerNamespace( $namespace ) {\n $this->namespaces[] = $namespace;\n return $this->namespaces;\n }", "public static function registerNamespace($namespace, $path)\n {\n Autoloader::$registeredNamespaces[$namespace] = $path;\n }", "public function addNamespace( $namespace )\n\t{\n\t\t$this->namespaces[] = $namespace;\n\t}", "function addNamespaces(array $namespaces);", "function setNamespace ($name);", "public function setFactoryNamespace($namespace);", "protected function registerNamespaces() {\n\t\t$this->registerNamespace(parent::getCode(), parent::getUsedNamespace(parent::getSupportedNamespaces())); // OWS\n\t\t$this->registerNamespace($this->getCode(), $this->getUsedNamespace()); // SOS\n\t\t$this->registerNamespace('gml', 'http://www.opengis.net/gml'); // GML\n\t}", "protected function registerNamespaces()\n {\n $this->app['themes']->registerNamespaces();\n }", "public function setDefaultNamespace($namespace);", "public static function addNamespace($namespace)\n {\n if (!in_array($namespace, static::$namespaces)) {\n static::$namespaces[] = $namespace;\n }\n }", "public static function addNamespacePath(string $namespace, string $root_path)\n {\n self::$ns_map[$namespace] = $root_path;\n }", "public function setNamespace($name);", "public function addNamespace( $namespace, $hint )\n\t{\n\t\t$this->hints[$namespace] = $hint;\n\t}", "public function add(string $path, string $namespace): self;", "public function replaceNamespace(string $namespace, $hints);", "public function getNamespace($namespaceName);", "public function setNamespace($namespace)\n {\n $this->namespace = $namespace;\n }", "public function setNamespace($namespace)\n {\n $this->_namespace = (string) $namespace;\n }", "public function addNamespace($namespace, $hint)\n {\n $this->loader->addNamespace($namespace, $hint);\n }", "public function set($namespace, $key, $value);", "public function register()\n {\n foreach ($this->all() as $theme) {\n $this->registerNamespace($theme);\n }\n }", "public function setNamespace($namespace) {\n $this->namespace = $namespace;\n }", "public function identifiedByNamespace(string $namespace): self\n {\n $this->getCurrent()->addNamespace($namespace);\n return $this;\n }", "public static function setNamespace($namespace) {\n\t\tself::$namespace = $namespace;\n\t}", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function setNamespace($var)\n {\n GPBUtil::checkString($var, True);\n $this->namespace = $var;\n\n return $this;\n }", "public function addNamespace($namespace, $hint)\n {\n $this->hints[$namespace] = $hint;\n }", "private function getNamespace($uid) {\n $select = 'uid,name';\n $from = 'tx_siwiki_namespaces';\n $where = 'uid = '.$this->s($uid);\n\n $query = $GLOBALS['TYPO3_DB']->exec_SELECTquery($select,$from,$where);\n if($query){\n while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($query)) {\n $this->namespace = $row;\n }\n }\n }", "public function addNamespace(string $namespace, string $hint): void\n {\n $this->hints[$namespace] = $hint;\n }", "public function registerNamespaces(array $namespaces)\n\t{\n\t\tforeach($namespaces as $namespace => $locations)\n\t\t{\n\t\t\t$this->namespaces[$namespace] = (array) $locations;\n\t\t}\n\t}", "public function set($namespace, $tagName, $value) {}", "public function prependNamespace($namespace, $hints);", "public function addNamespacesToRegistry($namespaces)\n {\n collect((array) $namespaces)->each(function ($namespace) {\n // Get path from namespace.\n $path = $this->getPathFromNamespace($namespace);\n\n if (file_exists($path)) {\n // Register each annotations file found in the namespace.\n foreach (Finder::create()->files()->name('*.php')->in($path) as $file) {\n $this->addFilesToRegistry($file->getRealPath());\n }\n }\n });\n\n return $this;\n }", "public static function setNamespace($namespace)\n {\n self::$namespace = $namespace;\n }", "public function setNamespace($namespace)\n {\n if (is_string($namespace)) {\n $this->namespace = $namespace;\n }\n }", "function getNamespace();", "function getNamespace();", "protected function registerNamespace() {\n // get the laravel view path\n $viewPath = Config::get('view.paths')[0];\n \n // set the view name space \n if (file_exists($viewPath . '/cms')) {\n $this->loadViewsFrom($viewPath . '/cms', 'cms');\n } else {\n $this->loadViewsFrom(__DIR__ . '/views', 'cms');\n }\n }", "private function replace($old_xpath, $new_xml, $insert_ns = FALSE) {\n $hits = $this->xpath->query($old_xpath, null, false);\n if ($hits && count($hits) > 0) {\n if ($insert_ns) {\n $new_xml = XMLPatcher::insert_namespaces($new_xml, $this->namespaces);\n }\n foreach ($hits as $hit) {\n $parent = $hit->parentNode;\n //error_log('new_xml is ' . $new_xml);\n $replace = dom_import_simplexml(simplexml_load_string($new_xml));\n if ($replace !== FALSE) {\n $replace = $this->dom->importNode($replace, TRUE);\n $parent->replaceChild($replace, $hit);\n $this->changed = TRUE;\n }\n }\n }\n }", "public function prependNamespace(string $namespace, $hints);", "static public function register($namespace, $path, $root = true): Autoloader {\n spl_autoload_register([\n $self = new self(\n $namespace .= '\\\\',\n $path,\n $root ? null : $namespace\n ),\n 'load',\n ], true, true);\n return $self;\n }", "function getNamespace ();", "public function registerNamespaces(array $namespaces)\n\t{\n\t\tforeach($namespaces as $namespace => $path)\n\t\t{\n\t\t\t$this->registerNamespace($namespace, $path);\n\t\t}\n\t}", "public function getNamespace();", "public function getNamespace();", "public function getNamespace();", "function register($name,$in=array(),$out=array(),$namespace=false,$soapaction=false,$style=false,$use=false,$documentation='',$encodingStyle='')\n {\n if ($namespace==false) $namespace=$this->_namespace;\n\n $this->_server->register($name,$in,$out,$namespace,$soapaction,$style,$use,$documentation,$encodingStyle);\n }", "public function register($namespace, $directory)\n {\n $this->prefixes[$namespace] = realpath($directory);\n return $this;\n }", "function xmlXpath( $xpath, $xml = null ){\n\t\tif( $xml === null ){\n\t\t\t$xml = $this->xml;\n\t\t}\n\t\t$this->xml = $xml->xpath( $xpath );\n\t}", "public function addAssetNamespace($namespace, $hints, $area)\n {\n if ($this->container['config']->get('deploying', false)) {\n $this->container['theme.asset.resolver']->addNamespace($namespace, $hints, $area);\n }\n }", "public function setNamespace($namespace)\n {\n // check if the namespace is valid\n if (!in_array($namespace, $this->_getNamespaces())) {\n throw Faett_Channel_Exceptions_InvalidNamespaceException::create(\n \t'Invalid namespace ' . $namespace\n );\n }\n // initialize the namespace\n $this->_namespace = 'http://pear.php.net/dtd/' . $namespace;\n }", "public function addPath($path, $namespace = null)\n {\n $this->paths[$namespace] = $path;\n\n $viewRegistry = $this->renderer->getViewRegistry();\n $viewRegistry->appendPath($path);\n\n $layoutRegistry = $this->renderer->getLayoutRegistry();\n $layoutRegistry->appendPath($path);\n }", "public function updateXmp($namespace, $tagName, $value) {}", "public function callMacroNamespace($namespace = null)\n\t{\n\t\t$this->namespace[] = $namespace ?: $this->getDefaultNamespace();\n\n\t\treturn $this;\n\t}", "public static /*internal*/ function registerPrefixes()\n\t{\n\t\tif(count(self::$namespaces))\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tself::$namespaces = array();\n\t\tself::$namespaces[self::xml] = 'xml';\n\t\tself::$namespaces[self::xmlns] = 'xmlms';\n\t\tself::$namespaces[self::rdf] = 'rdf';\n\t\tself::$namespaces[self::rdfs] = 'rdfs';\n\t\tself::$namespaces[self::owl] = 'owl';\n\t\tself::$namespaces[self::foaf] = 'foaf';\n\t\tself::$namespaces[self::skos] = 'skos';\n\t\tself::$namespaces[self::time] = 'time';\n\t\tself::$namespaces[self::dc] = 'dc';\n\t\tself::$namespaces[self::dcterms] = 'dct';\n\t\tself::$namespaces[self::rdfg] = 'rdfg';\n\t\tself::$namespaces[self::geo] = 'geo';\n\t\tself::$namespaces[self::frbr] = 'frbr';\n\t\tself::$namespaces[self::xhtml] = 'xhtml';\n\t\tself::$namespaces[self::xhv] = 'xhv';\n\t\tself::$namespaces[self::dcmit] = 'dcmit';\n\t\tself::$namespaces[self::xsd] = 'xsd';\n\t\tself::$namespaces[self::gn] = 'gn';\n\t\tself::$namespaces[self::exif] = 'exif';\n\t\tself::$namespaces[self::void] = 'void';\n\t\tself::$namespaces[self::olo] = 'olo';\t\t\n\t}", "public function useNamespace ( $namespace ) {\n\n if(null === $this->_namespaces)\n $this->initializeNamespaces();\n\n if(false === $prefix = array_search($namespace, $this->_namespaces))\n throw new Exception(\n 'The namespace %s does not exist in the document %s.',\n 5, array($namespace, $this->getInnerStream()->getStreamName()));\n\n $this->getStream()->registerXPathNamespace('__current_ns', $namespace);\n\n return $this;\n }", "public function testLookupNamespaceReturnsStringWhenAddedToElementElementAndParentPrefixBoundToNamespace(): void\n {\n $parent = new ElementElement();\n $parent->setTypeElement($this->sut);\n $parent->bindNamespace('foo', 'http://example.org/foo');\n self::assertSame('http://example.org/foo', $this->sut->lookupNamespace('foo'));\n }", "public function g( $namespace )\n\t{\n\t\t$namespace = trim( $namespace, '\\\\' ) ;\n\n\t\t$name = $this->lpop( $namespace );\n\n\t\tif( isset($this->map[$name]) )\n\t\t{\n\t\t\t$namespace = str_replace( $name, $this->map[$name], $namespace ) ;\n\t\t}\n\n\t\treturn str_replace( '\\\\', '/', $namespace );\n\t}", "public function xpath(): Xpath {\n if (\n $this->_xpath instanceof Xpath &&\n $this->_xpath->document === $this\n ) {\n return $this->_xpath;\n }\n $this->_xpath = new Xpath($this);\n foreach ($this->_namespaces as $prefix => $namespaceURI) {\n $this->_xpath->registerNamespace($prefix, $namespaceURI);\n }\n return $this->_xpath;\n }", "public function evaluate ($expression, DomNode $contextNode = null, $registerNodeNS = null) {}", "public function setNamespaceName($namespace) {\n $this->nsname= $namespace;\n }", "function wpfc_podcast_add_namespace() {\n\techo 'xmlns:itunes=\"http://www.itunes.com/dtds/podcast-1.0.dtd\"';\n}", "public function setNamespace(ckXsdNamespace $value)\r\n {\r\n $this->namespace = $value;\r\n }", "public function testLookupNamespaceReturnsStringWhenAddedToSchemaElementAndParentPrefixBoundToNamespace(): void\n {\n $parent = new SchemaElement();\n $parent->addAttributeElement($this->sut);\n $parent->bindNamespace('foo', 'http://example.org/foo');\n self::assertSame('http://example.org/foo', $this->sut->lookupNamespace('foo'));\n }", "public function __construct( $namespace ){ \n \n $this->setNamespace( $namespace );\n \n }", "private function add($parent_xpath, $new_xml, $insert_ns = FALSE) {\n if ($insert_ns) {\n $new_xml = XMLPatcher::insert_namespaces($new_xml, $this->namespaces);\n }\n $hits = $this->xpath->query($parent_xpath);\n foreach ($hits as $hit) {\n $new_node = dom_import_simplexml(simplexml_load_string($new_xml));\n if ($new_node !== FALSE) {\n $new_node = $this->dom->importNode($new_node, TRUE);\n $hit->appendChild($new_node);\n $this->changed = TRUE;\n }\n }\n }", "public function appendNamespace($namespace)\r\n {\r\n $this->namespace .= (string) $namespace;\r\n\r\n return $this;\r\n }", "public function __construct($namespace)\t{\n\t\t# Initialize\n\t\t$this->rootNS =& $namespace;\n\t}", "public function registerNamespace($theme)\n {\n $this->viewFactory->addNamespace('theme', $this->getThemePath($theme));\n }", "public function setNamespaces($namespaces)\n {\n $this->_namespaces = (array) $namespaces;\n }", "public function addTwigPath(string $namespace, string $path): ExtensionInterface\n {\n $this->twigNamespaces[$namespace][] = $path;\n\n return $this;\n }", "public function declareNamespace( $namespace ){\n \n $this->namespace_heap[ $namespace ] = null;\n \n return $this;\n \n }", "public function addPath(string $namespace, ?string $path = null): void\n {\n $this->twig->getLoader()->addPath($path, $namespace);\n }", "private function namespaceSet($var, $value) {\r\n\t\t$_SESSION[self::SESSION_NAMESPACE][$var] = $value;\r\n\t}", "public function __construct($namespace);", "public function getNamespace()\n {\n return 'tax';\n }", "protected function setNamespace( $namespace ){\n\n // clean up namespace before use\n $this->resetNamespaceHeap();\n \n // validate app namespace\n $this->namespace = \\Altumo\\Validation\\Strings::assertNonEmptyString(\n $namespace,\n '$namespace must be a non-empty string' \n );\n \n // add default app sub-namespaces\n $sub_namespaces = array(\n 'model',\n 'view',\n 'app',\n 'config'\n );\n \n // add main app namespace to the heap\n $this->declareNamespace( $this->namespace );\n \n // add sub-namespaces to the heap\n foreach( $sub_namespaces as $sub_namespace ){\n \n $this->declareNamespace( $this->namespace . '.' . $sub_namespace );\n \n }\n \n // add altumo namespaces to the heap\n $this->declareNamespace( 'altumo.app.App' );\n \n return $this;\n \n }", "protected function add_namespace_to_xml(SimpleXmlWriter $xw) {\n $xw->create_attribute('xmlns:unit', 'urn:proforma:tests:unittest:v1.1');\n $xw->create_attribute('xmlns:cs', 'urn:proforma:tests:java-checkstyle:v1.1');\n }", "public function query ($expression, DomNode $contextNode = null, $registerNodeNS = null) {}", "public function setNamespacing( $namespace )\n {\n $this->namespacing = $namespace;\n }", "function getNamespacePrefix(String $var1, String $var2): String;", "public function addViewNamespace($namespace, $hints)\n {\n $areas = array_merge(['frontend'], array_values($this->container['config']->get('app.areas', [])));\n $xmlLocations = [];\n foreach ($areas as $area) {\n $areaNamespace = $namespace.'_'.$area;\n if (is_dir($appPath = $this->container->resourcePath().'/views/processed/'.$area.'/'.$namespace)) {\n $this->view->addNamespace($areaNamespace, $appPath);\n }\n $paths = $this->themeResolver->getPaths($area)->toArray();\n foreach ($paths as $path) {\n if (is_dir($appPath = $path.'/templates/') && !isset(static::$themeTemplatePath[md5($appPath)])) {\n $this->view->addNamespace($area, $appPath);\n static::$themeTemplatePath[md5($appPath)] = $appPath;\n }\n if (is_dir($appPath = $path.'/templates/'.$namespace)) {\n $this->view->addNamespace($areaNamespace, $appPath);\n }\n }\n foreach ((array) $hints as $path) {\n if (is_dir($appPath = $path.'/'.$area.'/templates/')) {\n $this->view->addNamespace($areaNamespace, $appPath);\n }\n if (is_dir($appPath = $path.'/'.$area.'/layouts/')) {\n static::$layoutXmlLocation[$area][md5($appPath)] = $appPath;\n }\n }\n }\n }", "public function setXpathPrefix($prefix)\n {\n $this->xpathPrefix = $prefix;\n }", "public function addNamespace(string $sNamespace, string $sDirectory, string $sExtension = '')\n {}", "public function registerTestNamespaces() {\n if (isset($this->testNamespaces)) {\n return $this->testNamespaces;\n }\n $this->testNamespaces = [];\n\n $existing = $this->classLoader->getPrefixesPsr4();\n\n // Add PHPUnit test namespaces of Drupal core.\n $this->testNamespaces['Drupal\\\\Tests\\\\'] = [$this->root . '/core/tests/Drupal/Tests'];\n $this->testNamespaces['Drupal\\\\BuildTests\\\\'] = [$this->root . '/core/tests/Drupal/BuildTests'];\n $this->testNamespaces['Drupal\\\\KernelTests\\\\'] = [$this->root . '/core/tests/Drupal/KernelTests'];\n $this->testNamespaces['Drupal\\\\FunctionalTests\\\\'] = [$this->root . '/core/tests/Drupal/FunctionalTests'];\n $this->testNamespaces['Drupal\\\\FunctionalJavascriptTests\\\\'] = [$this->root . '/core/tests/Drupal/FunctionalJavascriptTests'];\n $this->testNamespaces['Drupal\\\\TestTools\\\\'] = [$this->root . '/core/tests/Drupal/TestTools'];\n\n $this->availableExtensions = [];\n foreach ($this->getExtensions() as $name => $extension) {\n $this->availableExtensions[$extension->getType()][$name] = $name;\n\n $base_path = $this->root . '/' . $extension->getPath();\n\n // Add namespace of disabled/uninstalled extensions.\n if (!isset($existing[\"Drupal\\\\$name\\\\\"])) {\n $this->classLoader->addPsr4(\"Drupal\\\\$name\\\\\", \"$base_path/src\");\n }\n // Add Simpletest test namespace.\n $this->testNamespaces[\"Drupal\\\\$name\\\\Tests\\\\\"][] = \"$base_path/src/Tests\";\n\n // Add PHPUnit test namespaces.\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Unit\\\\\"][] = \"$base_path/tests/src/Unit\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Kernel\\\\\"][] = \"$base_path/tests/src/Kernel\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Functional\\\\\"][] = \"$base_path/tests/src/Functional\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Build\\\\\"][] = \"$base_path/tests/src/Build\";\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\FunctionalJavascript\\\\\"][] = \"$base_path/tests/src/FunctionalJavascript\";\n\n // Add discovery for traits which are shared between different test\n // suites.\n $this->testNamespaces[\"Drupal\\\\Tests\\\\$name\\\\Traits\\\\\"][] = \"$base_path/tests/src/Traits\";\n }\n\n foreach ($this->testNamespaces as $prefix => $paths) {\n $this->classLoader->addPsr4($prefix, $paths);\n }\n\n $loader = require __DIR__ . '/../../../../../autoload.php';\n // Ensure we have a valid TestCase class.\n ClassWriter::mutateTestBase($loader);\n\n return $this->testNamespaces;\n }", "public function getAttributeNamespaceURI($index = null);" ]
[ "0.7240222", "0.6948519", "0.66960627", "0.6509639", "0.64782023", "0.63548946", "0.63254267", "0.61182374", "0.5955406", "0.5950569", "0.593465", "0.5925256", "0.5837292", "0.5617457", "0.5587428", "0.5489224", "0.5484517", "0.5478457", "0.5468809", "0.5454311", "0.54208034", "0.54189014", "0.54051", "0.5390993", "0.5326502", "0.53014976", "0.5295378", "0.5283982", "0.52818453", "0.5280118", "0.5275672", "0.52730834", "0.52630365", "0.52613765", "0.5254736", "0.5254736", "0.5254736", "0.5254736", "0.5254736", "0.5254736", "0.52542293", "0.52460486", "0.5242959", "0.5239053", "0.5232729", "0.52222717", "0.52172035", "0.5177545", "0.51599413", "0.5134793", "0.5134793", "0.51223916", "0.5115669", "0.5091394", "0.50892144", "0.50750804", "0.5053094", "0.50444233", "0.50444233", "0.50444233", "0.500434", "0.5001925", "0.4996318", "0.49834874", "0.49805284", "0.4972804", "0.49631146", "0.49622256", "0.49614233", "0.49481696", "0.4939961", "0.49274483", "0.49269763", "0.4912471", "0.4911527", "0.4910213", "0.49022722", "0.48891085", "0.48871776", "0.48550174", "0.48513302", "0.48343712", "0.48249874", "0.4813231", "0.47999355", "0.47928524", "0.47852966", "0.47787037", "0.47522876", "0.47432348", "0.47273552", "0.47268596", "0.47263065", "0.47005305", "0.46984738", "0.46958616", "0.46936056", "0.46900582", "0.46867663", "0.4677147" ]
0.84279853
0
Escapes characters that work as wildcard characters in a LIKE pattern.
Экранирует символы, которые используются как дикторы в шаблоне LIKE.
public function escapeLike($string);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function escapeLikePattern($text){\r\n\t\t\t$text = str_replace('\\\\', '', $text);//apparently a backslash is ignored when using the LIKE operator\r\n\t\t\t$text = self::escape($text);\r\n\t\t\tif($text !==false){\r\n\t\t\t\t$text = str_replace('%', '\\%', $text);\r\n\t\t\t\t$text = str_replace('_', '\\_', $text);\r\n\t\t\t\tif(mb_strlen($text)>=3) $text .= '%';\r\n\t\t\t}\r\n\t\t\treturn $text;\r\n\t\t}", "abstract public function escapeStr($str, $like = false);", "protected static function _escapeChar($matches) {}", "function esc_like($text)\n{\n return addcslashes($text, '_%\\\\');\n}", "function like_escape($text)\n {\n }", "function escapeSQL($string, $wildcard=false)\n{\n\t$db = &atkGetDb();\n\treturn $db->escapeSQL($string, $wildcard);\n}", "function escapeForRegex($pattern)\n{\n\t$escaped='';\n\t$escapechars = array(\"/\",\"?\",'\"', \"(\", \")\", \"'\",\"*\",\".\",\"[\",\"]\");\n\tfor ($counter = 0; $counter<strlen($pattern);$counter++)\n\t{\n\t\t$curchar = substr($pattern, $counter, 1);\n\t\tif (in_array($curchar,$escapechars))\n\t\t$escaped .= \"\\\\\";\n\t\t$escaped.=$curchar;\n\t}\n\treturn $escaped;\n}", "public static function escapeMatchPattern($text){\r\n\t\t$text = str_replace('*', '', trim($text));\r\n\t\tif(mb_strlen($text)>=3){\r\n\t\t\tif(!strstr($text,'\"')){\r\n\t\t\t\tif(!strstr($text,\"'\")){\r\n\t\t\t\t\t//not exact phrase\r\n\t\t\t\t\tif(!strstr($text,' ')){\r\n\t\t\t\t\t\t//one word\r\n\t\t\t\t\t\t$text.='*';//truncation\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn self::escape($text);\r\n\t}", "public static function safe_sql_like($string){\n global $wpdb;\n\n // safe\n $string = $wpdb->prepare(\"%s\", $string);\n // trim '\n $tmp = explode(\"'\", $string);\n array_shift($tmp);\n array_pop($tmp);\n $string = implode(\"'\", $tmp);\n\n // Safe for LIKE'...'\n $string = str_replace( array(\"%\", \"[\", \"]\", \"^\", \"_\"), array(\"\\%\", \"\\[\", \"\\]\", \"\\^\", \"\\_\"), $string);\n\n return $string;\n }", "public function escapeLikeStringDirect($str)\n\t{\n\t\t//log_message('error', 'escapeLikeStringDirect');\n\n\t\tif (is_array($str))\n\t\t{\n\t\t\tforeach ($str as $key => $val)\n\t\t\t{\n\t\t\t\t$str[$key] = $this->escapeLikeStringDirect($val);\n\t\t\t}\n\n\t\t\treturn $str;\n\t\t}\n\n\t\t$str = $this->_escapeString($str);\n\n\t\t// Escape LIKE condition wildcards\n\t\treturn str_replace([\n\t\t\t$this->likeEscapeChar,\n\t\t\t'%',\n\t\t\t'_',\n\t\t], [\n\t\t\t'\\\\' . $this->likeEscapeChar,\n\t\t\t'\\\\' . '%',\n\t\t\t'\\\\' . '_',\n\t\t], $str\n\t\t);\n\t}", "function preg_wildcard($pat) {\n return str_replace(array('*', '?', '/'),array('.*', '.', '\\/'), $pat);\n}", "protected function escapeLike(string $str): string {\n return addcslashes($str, '_%');\n }", "function wildcardify($s, $wrap = '%') {\n\n\n $result = '';\n $escape = false;\n $len = strlen($s);\n $foundWildcard = false;\n\n for($i = 0; $i < $len; $i++) {\n\n $c = substr($s, $i, 1);\n\n if ($escape) {\n $result .= $c;\n $escape = false;\n continue;\n } else if ($c === '\\\\') {\n $escape = true;\n continue;\n }\n\n if ($c === '%') $c = '\\\\%';\n if ($c === '_') $c = '\\\\_';\n\n $foundWildcard = $foundWildcard || ($c === '*' || $c === '?');\n\n if ($c === '*') $c = '%';\n if ($c === '?') $c = '_';\n\n $result .= $c;\n }\n\n if ($wrap && !$foundWildcard) {\n $result = \"{$wrap}{$result}{$wrap}\";\n }\n\n return $result;\n }", "public function anyString() {\n\t\treturn new LikeMatch( '%' );\n\t}", "protected function _escape($text)\n {\n static $list;\n if (! $list) {\n $list = array(\n '%' => '%%',\n );\n \n for ($i = 0; $i < 32; $i ++) {\n $list[chr($i)] = \"\\\\$i\";\n }\n \n $list[chr(127)] = \"\\\\127\";\n }\n \n return strtr($text, $list);\n }", "function escapeSQL($string, $wildcard=false)\n\t{\n\t\tif ($this->connect('r') === DB_SUCCESS)\n\t\t{\n\t\t\tif ($wildcard == true)\n\t\t\t{\n\t\t\t\t$string = str_replace('%', '\\%', $string);\n\t\t\t}\n\t\t\treturn mysqli_real_escape_string($this->m_link_id, $string);\n\t\t}\n\n\t\treturn null;\n\t}", "function ldap_filterescape($string){\n return preg_replace_callback(\n '/([\\x00-\\x1F\\*\\(\\)\\\\\\\\])/',\n function ($matches) {\n return \"\\\\\" . implode(\"\", unpack(\"H2\", $matches[1]));\n },\n $string\n );\n}", "protected function escape($value): string\n {\n $value = strtr(\n $value,\n [\n '%' => '\\%',\n '_' => '\\_',\n '\\\\' => '\\\\\\\\',\n ]\n );\n\n return '%' . $value . '%';\n }", "function like($pattern, $subject)\t{\n\t\t$pattern = str_replace('%', '.*', preg_quote($pattern));\n\t\treturn (bool) preg_match(\"/^{$pattern}$/i\", $subject);\n\t}", "protected function toLikeSearchString($text)\n {\n $str = preg_replace('#[\\s%]+#', '%', $text);\n\n // Remove all wildcard character at the head and tail\n $str = preg_replace('#^%+#', '', $str);\n $str = preg_replace('#%+$#', '', $str);\n \n return $str;\n }", "public function bindLikeValue($value)\n {\n return '%' . $value . '%';\n }", "public function likeEscape(string $keyword): string;", "public function like($stringWithWildCardCharacter){\n $this->debugBacktrace();\n\n $value = $this->_real_escape_string($stringWithWildCardCharacter);\n\n if($this->last_call_where_or_having == \"where\"){\n $this->whereClause .= \" LIKE $value\";\n }\n else{\n $this->havingClause .= \" LIKE $value\";\n }\n return $this;\n }", "function checkRealEscapeString($value);", "function LikeWhereClause ($field, $value)\n\t{\n\t\t$this->field = $field;\n\t\t$this->regexp = '/^' . str_replace('%','.*', preg_quote($value)) . '$/i';\n\t}", "public function escapeString($stringToEscape);", "protected function _wildcardize($field) {\r\n // TODO: Need to be improve, protection caracter should be found \r\n\t\t$where = array();\r\n\t\tif (strpos($value, '*') !== false) {\r\n\t\t\t$where[\"{$field} LIKE ?\"] = str_replace('*', '%', $value);\r\n\t\t} \r\n\t\telse {\r\n\t\t\t$where[\"{$column} = ?\"] = $value;\r\n\t\t}\r\n \t\r\n\t\treturn $where;\r\n }", "abstract protected function _escape($s);", "public function placeholder_escape()\n {\n }", "public function anyChar() {\n\t\treturn new LikeMatch( '_' );\n\t}", "public function escape($string);", "public function escape($string);", "protected function fullTextWildcards($term)\n {\n return str_replace(' ', '*', $term) . '*';\n \n }", "public function escape($text);", "function simulated_wildcard_match($context, $word, $full_cover = false)\n{\n $rexp = str_replace('%', '.*', str_replace('_', '.', str_replace('\\\\?', '.', str_replace('\\\\*', '.*', preg_quote($word)))));\n if ($full_cover) {\n $rexp = '^' . $rexp . '$';\n }\n\n return preg_match('#' . str_replace('#', '\\#', $rexp) . '#i', $context) != 0;\n}", "function like ($value) {\n return ' like \\''.$value.'\\'';\n }", "protected function _filterEscape($string) {\n // see https://github.com/adldap/adLDAP/issues/22\n return preg_replace_callback(\n '/([\\x00-\\x1F\\*\\(\\)\\\\\\\\])/',\n function ($matches) {\n return \"\\\\\".join(\"\", unpack(\"H2\", $matches[1]));\n },\n $string\n );\n }", "private function escapeLikeString(string $haystack): string\n\t{\n\t\treturn str_replace('\\\\\\'', '\\'\\'', addslashes($haystack));\n\t}", "public static function wildcardSearchstring( $sSearchString ) {\n\t\t// remove beginning\n\t\t$sSearchString = trim( $sSearchString );\n\t\tif ( empty( $sSearchString ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '~' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '\"' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '^' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\t\tif ( self::containsStringUnescapedCharsOf( $sSearchString, '*' ) ) {\n\t\t\treturn $sSearchString;\n\t\t}\n\n\t\tif ( strpos( $sSearchString, ' ' ) !== false ) {\n\t\t\t$sSearchString = str_replace( ' ', '*', $sSearchString );\n\t\t}\n\n\t\treturn '*' . $sSearchString . '*';\n\t}", "function convertToSqlLikeValue($input) {\n $result = $input;\n\n // escape special chars\n $replace_Step1 = array(\n '%' => '\\%',\n '_' => '\\_',\n );\n // replace chars given by surfer\n $replace_Step2 = array(\n '?' => '_',\n '*' => '%',\n );\n\n $result = strtr($result, $replace_Step1);\n $result = strtr($result, $replace_Step2);\n\n return $result;\n }", "abstract public function escape_string( $str );", "public function globalStringConditionMatchesWildcardExpression() {}", "public function globalStringConditionMatchesWildcardExpression() {}", "public function escapeString($string);", "public abstract function escape($string);", "public function buildLike() {\n\t\t$params = func_get_args();\n\n\t\tif ( count( $params ) > 0 && is_array( $params[0] ) ) {\n\t\t\t$params = $params[0];\n\t\t}\n\n\t\t$s = '';\n\n\t\tforeach ( $params as $value ) {\n\t\t\tif ( $value instanceof LikeMatch ) {\n\t\t\t\t$s .= $value->toString();\n\t\t\t} else {\n\t\t\t\t$s .= $this->escapeLikeInternal( $value );\n\t\t\t}\n\t\t}\n\n\t\treturn \" LIKE '\" . $s . \"' \";\n\t}", "public function searchLike($searchField, $value)\n {\n return \" UPPER($searchField) LIKE UPPER('%{$value}%') \";\n }", "public\r\n\tfunction buildLike( $string ) {\r\n\t\treturn $string . '%';\r\n\t}", "public static function escape($s) {}", "function escapeLdapFilter($str = '') {\n //\n // NOTE: It’s important that the slash is the first character replaced.\n // Otherwise the slash added by other replacements will then be\n // replaced as well, resulted in double-escaping all characters\n // replaced before the slashes were replaced.\n //\n $metaChars = array(\n chr(0x5c), // \\\n chr(0x2a), // *\n chr(0x28), // (\n chr(0x29), // )\n chr(0x00) // NUL\n );\n\n // Build the list of the escaped versions of those characters.\n $quotedMetaChars = array ();\n foreach ($metaChars as $key => $value) {\n $quotedMetaChars[$key] = '\\\\' .\n str_pad(dechex(ord($value)), 2, '0', STR_PAD_LEFT);\n }\n\n // Make all the necessary replacements in the input string and return\n // the result.\n return str_replace($metaChars, $quotedMetaChars, $str);\n}", "protected function prepare_term_regex( $term ) {\n $term = str_replace('\\\\\\'', '\\'', $term);\n $term = preg_quote( $term, '/' );\n $search = array( ' ', '&', ',' );\n $replace = array( '\\s', '\\&', '\\,' );\n\t $term = str_replace( $search, $replace, $term );\n return preg_replace( '/(\\\"|\\\\\\'|\\“|\\”|\\‘|\\’|\\«|\\»)/i', '[\\\"\\\\\\'\\“\\”\\‘\\’\\«\\»]', $term );\n }", "abstract public function escapeString($string);", "public function escapeLikeValue($value, $options = array()) {\n $value = str_replace('\\\\', '\\\\\\\\', $value);\n\n $from = array();\n $to = array();\n if (empty($options['allow_symbol_mask'])) {\n $from[] = '_';\n $to[] = '\\_';\n }\n if (empty($options['allow_string_mask'])) {\n $from[] = '%';\n $to[] = '\\%';\n }\n if ($from) {\n $value = str_replace($from, $to, $value);\n }\n\n if (isset($options['position'])) {\n switch ($options['position']) {\n case 'any':\n $value = '%' . $value . '%';\n break;\n case 'start':\n $value = $value . '%';\n break;\n case 'end':\n $value = '%' . $value;\n break;\n }\n }\n return $value;\n }", "public function EscapeString($argString, $argEscapeUnderscorePercentCharacters = false)\r\n {\r\n $this->checkDatabaseManager();\r\n $escapedString = $this->_DatabaseHandler->real_escape_string($argString);\r\n if($argEscapeUnderscorePercentCharacters)\r\n {\r\n $escapedString = addcslashes($escapedString, '%_');\r\n }\r\n return $escapedString;\r\n }", "private function escape_string($in_string)\n {\n // $str = $in_string;\n return preg_replace('([%;])', '\\\\\\1', $in_string);\n //return $in_string;\n }", "private function escape ($string, $regex='@', $reconnect_attempt = FALSE) {\n\t\tif ($reconnect_attempt) {\n\t\t\t// If the connection is lost, try to reconnect.\n\t\t\tif ( !isset( $this->dbcon ) || ! $this->dbcon ) {\n\t\t\t\t$this->db_connect();\n\t\t\t}\n\t\t}\n\t\tif (is_string($string)) {\n\t\t\t$string = mysqli_real_escape_string($this->dbcon, $string);\n\t\t\t// $string = addcslashes($string, '%_');\n\t\t\t$string = \"'\" . str_replace('@', $string, $regex) . \"'\";\n\t\t}\n\t\treturn $string;\n\t}", "public function formatWildcards(string $value): string\n {\n $from = $to = $substFrom = $substTo = [];\n if ($this->getConfig('wildcardAny') !== '%') {\n $from[] = $this->getConfig('fromWildCardAny');\n $to[] = $this->getConfig('toWildCardAny');\n $substFrom[] = $this->getConfig('wildcardAny');\n $substTo[] = '%';\n }\n if ($this->getConfig('wildcardOne') !== '_') {\n $from[] = $this->getConfig('fromWildCardOne');\n $to[] = $this->getConfig('toWildCardOne');\n $substFrom[] = $this->getConfig('wildcardOne');\n $substTo[] = '_';\n }\n if ($from) {\n // Escape first\n $value = str_replace($from, $to, $value);\n // Replace wildcards\n $value = str_replace($substFrom, $substTo, $value);\n }\n\n return $value;\n }", "protected function escapeForRegex($regex) {\n // $regex = str_replace('.', '\\\\.', $regex);\n $regex = str_replace('?', '\\\\\\\\?', $regex);\n $regex = str_replace('[', '\\\\\\\\[', $regex);\n $regex = str_replace(']', '\\\\\\\\]', $regex);\n $regex = str_replace('*', '([\\\\\\\\w\\\\\\\\-])*', $regex);\n\n return $regex;\n }", "public function notLike($stringWithWildCardCharacter){\n $this->debugBacktrace();\n $value = $this->_real_escape_string($stringWithWildCardCharacter);\n\n if($this->last_call_where_or_having == \"where\"){\n $this->whereClause .= \" NOT LIKE $value\";\n }\n else{\n $this->havingClause .= \" NOT LIKE $value\";\n }\n return $this;\n }", "public function whereLike($table, $column, $value);", "public function like($column,$data,$wildCardPlacement);", "public function addEscape($func);", "public static function escape($value) {}", "static public function real_escape_string($s) { return self::escape($s); }", "public static function escape($som) {}", "private static function _escapeTagChar($matches) {}", "public function orLike($column,$data,$wildCardPlacement);", "protected abstract function escape($string);", "protected static function replaceWildcards($regex)\n\t{\n\t\tpreg_match_all(chr(1) . '\\(\\\\*([a-z][a-zA-Z0-9]*)\\)' . chr(1), $regex, $matches, PREG_SET_ORDER);\n\n\t\tforeach ($matches as $match)\n\t\t{\n\t\t\t$name = $match[1];\n\n\t\t\t$regex = str_replace(\"(*{$name})\", \"(?P<{$name}>.*)\", $regex);\n\t\t}\n\n\t\treturn $regex;\n\t}", "public function escape($value);", "public function escape($value);", "function _escape($s)\n\t\t{\n\t\t\treturn str_replace(')','\\\\)',str_replace('(','\\\\(',str_replace('\\\\','\\\\\\\\',$s)));\n\t\t}", "protected function remove_iunreserved_percent_encoded($regex_match)\n {\n }", "public static function wildcardString($str, $wildcard, $lowercase = true)\n {\n $wild = $wildcard;\n $chars = (array) preg_split('//u', $str, -1, PREG_SPLIT_NO_EMPTY);\n\n if (count($chars) > 0) {\n foreach ($chars as $char) {\n $wild .= $char.$wildcard;\n }\n }\n\n if ($lowercase) {\n $wild = Str::lower($wild);\n }\n\n return $wild;\n }", "public static function contains($word)\n {\n return '%' . str_replace(' ', '%', $word) . '%';\n }", "function convertFromSqlLikeValue($input) {\n $result = $input;\n\n $pattern1a = '/(?<!\\\\\\)(%)/i';\n $result = preg_replace($pattern1a, '*', $result);\n $pattern1b = '/(?<!\\\\\\)(\\_)/i';\n $result = preg_replace($pattern1b, '?', $result);\n\n $pattern2a = '/(\\\\\\%)/i';\n $result = preg_replace($pattern2a, '%', $result);\n $pattern2b = '/(\\\\\\\\_)/i';\n $result = preg_replace($pattern2b, '_', $result);\n\n return $result;\n }", "function glob_to_regex($glob) {\n\n $glob = str_replace('.', '\\.', $glob);\n $glob = str_replace('+', '\\+', $glob);\n $glob = str_replace('*', '.+', $glob);\n $glob = str_replace('?', '.', $glob);\n\n return $glob ? \"^$glob$\" : $glob;\n }", "function addslashes_mssql($str,$inlike=false,$escape='!')\n\t{\n\n\t\tif (is_array($str))\n\t\t{\n\t\t\tforeach($str AS $id => $value) {\n\t\t\t\t$str[$id] = addslashes_mssql($value,$inlike);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\n\t\t\t$str\t= str_replace(\"'\", \"''\", $str);\n\n\t\t\tif ($inlike)\n\t\t\t{\n\t\t\t\t$str\t= str_replace($escape, $escape.$escape, $str);\n\t\t\t\t$str\t= str_replace('%', $escape.'%', $str);\n\t\t\t\t$str\t= str_replace('[', $escape.'[', $str);\n\t\t\t\t$str\t= str_replace(']', $escape.']', $str);\n\t\t\t\t$str\t= str_replace('_', $escape.'_', $str);\n\t\t\t}\n\n\t\t}\n\n\t\treturn $str;\n\n\t}", "public static function SqlEscString($str)\n {\n try {\n $ret = str_replace([ '%', '_' ], [ '\\%', '\\_' ], DB::getPdo()->quote($str));\n return $ret && strlen($ret) >= 2 ? substr($ret, 1, strlen($ret)-2) : $ret;\n } catch (Exception $e) {\n return $str;\n }\n }", "public function testEscape() {\n\t\t$string = 'Tom \"&/Or\" \\'Jerry\\' <tnj@site.tld>';\n\t\t$expected = 'Tom &quot;&amp;&#x2F;Or&quot; &#x27;Jerry&#x27; &lt;tnj@site.tld&gt;';\n\t\t$result = _::escape($string);\n\t\t$this->assertEquals($expected, $result);\n\n\t\t// test unescaping a string\n\t\t$result = _::escape($result, false);\n\t\t$this->assertEquals($string, $result);\n\t}", "abstract public function escapeString($value);", "public function escape($stringValue);", "public static function escapeString($val)\n {\n $toRepl = self::getReservedSymbols();\n \n $with = array();\n \n foreach($toRepl as $char)\n {\n $with[] = \"\\\\$char\";\n }\n\n return str_replace($toRepl, $with, $val);\n }", "public abstract function escapeString($value);", "public static function like(string $subject, string $pattern, bool $caseSensitivity = true): bool\n {\n if (!$caseSensitivity) {\n $subject = strtolower($subject);\n $pattern = strtolower($pattern);\n }\n $preparedPattern = str_replace('%', '.*', preg_quote($pattern, '/'));\n return (bool) preg_match(\"/^{$preparedPattern}$/\", $subject);\n }", "function pdo_escape_string($str, $link=NULL) {\r\n return pdo_real_escape_string($str, $link);\r\n }", "private function actionscriptEscape($text) {\n\t\t$needles = array('_','-','.');\n\t\t$replaces = array('%5F','%2D','%2E');\n\t\treturn str_replace($needles,$replaces,rawurlencode($text));\n\t}", "function specialChar($password)\n{\n $specialChars = array('!', '@', '#', '$', '%', '^', '&', '*', '(', ')');\n foreach ($specialChars as $char) {\n if (strpos($password, $char) != 0) {\n return true;\n }\n }\n return false;\n}", "public static function PregUnQuote($pattern)\n\t{\n\t\t// Fast check, because most parent pattern like 'DefaultProperties' don't need a replacement\n\t\tif (preg_match('/[^a-z\\s]/i', $pattern)) {\n\t\t\t// Undo the \\\\x replacement, that is a fix for \"Der gro\\xdfe BilderSauger 2.00u\" user agent match\n\t\t\t// @source https://github.com/browscap/browscap-php\n\t\t\t$pattern = preg_replace(\n\t\t\t\t['/(?<!\\\\\\\\)\\\\.\\\\*/', '/(?<!\\\\\\\\)\\\\./', '/(?<!\\\\\\\\)\\\\\\\\x/'],\n\t\t\t\t['\\\\*', '\\\\?', '\\\\x'],\n\t\t\t\t$pattern\n\t\t\t);\n\t\n\t\t\t// Undo preg_quote\n\t\t\t$pattern = str_replace(\n\t\t\t\t[\n\t\t\t\t\t'\\\\\\\\', '\\\\+', '\\\\*', '\\\\?', '\\\\[', '\\\\^', '\\\\]', '\\\\$', '\\\\(', '\\\\)', '\\\\{', '\\\\}', '\\\\=',\n\t\t\t\t\t'\\\\!', '\\\\<', '\\\\>', '\\\\|', '\\\\:', '\\\\-', '\\\\.', '\\\\/',\n\t\t\t\t],\n\t\t\t\t[\n\t\t\t\t\t'\\\\', '+', '*', '?', '[', '^', ']', '$', '(', ')', '{', '}', '=', '!', '<', '>', '|', ':',\n\t\t\t\t\t'-', '.', '/',\n\t\t\t\t],\n\t\t\t\t$pattern\n\t\t\t);\n\t\t}\n\t\n\t\treturn $pattern;\n\t}", "public function escape(string $str): string;", "private function checkPatternFilter(array $attributes, QueryBuilder $builder)\n {\n if (!array_key_exists('pattern', $attributes) || $attributes['pattern'] == null) {\n return;\n }\n\n $builder\n //->where('q.tags LIKE :pattern')\n ->where('q.title LIKE :pattern')\n ->orWhere('u.email LIKE :pattern')\n ->orWhere('u.name LIKE :pattern')\n ->orWhere('q.body LIKE :pattern')\n\n ->setParameter('pattern', \"%{$attributes['pattern']}%\")\n ;\n }", "function qescape($str)\n{\n $str = str_replace('\\\\', '\\\\\\\\', $str);\n return str_replace('\"', '\\\\\"', $str);\n}", "public function add_placeholder_escape($query)\n {\n }", "public function esc_like($text)\n {\n }", "static function escapeRegexReplacement($string)\n\t{\n\t\t$string = str_replace('\\\\', '\\\\\\\\', $string);\n\t\t$string = str_replace('$', '\\\\$', $string);\n\t\treturn $string;\n\t}", "function escapeString($string) {\nreturn preg_replace('/([\\,;])/','\\\\\\$1', $string);\n}", "function buildLikeClause($requestKey, $columnName, array &$params, array &$clauses) {\n if (isset($_GET[$requestKey])) {\n $val = trim($_GET[$requestKey]);\n if (strlen($val)) {\n $clauses[] = \"$columnName like concat('%', ?, '%')\";\n $params[] = addcslashes($val, '%_');\n }\n }\n}", "function filter( $str ){\r\n\t\treturn addslashes( $str );\r\n\t}", "function sqlite_escape_string($string)\n{\n $string = SQLite3::escapeString($string);\n $string = filter_var($string, FILTER_SANITIZE_STRING);\n return $string;\n}", "public static function specialchars($string) {\n $sanitized=array(\n '\\\\' => '\\5c',\n '*' => '\\2a',\n '(' => '\\28',\n ')' => '\\29',\n \"\\x00\" => '\\00');\n \n return str_replace(array_keys($sanitized),array_values($sanitized),$string);\n }" ]
[ "0.7615724", "0.6679104", "0.64715123", "0.6388895", "0.63864124", "0.6353176", "0.6335272", "0.631977", "0.6205899", "0.6171898", "0.6113325", "0.60980946", "0.6023556", "0.5989543", "0.5975944", "0.5967675", "0.5912313", "0.58984905", "0.57821065", "0.577939", "0.576991", "0.5763595", "0.57352304", "0.5732939", "0.5716451", "0.5695214", "0.5680009", "0.56583774", "0.5644973", "0.56354225", "0.55522555", "0.55522555", "0.5532044", "0.551565", "0.54936695", "0.54838395", "0.54746485", "0.5468881", "0.5465262", "0.5439909", "0.5430245", "0.54193896", "0.5418367", "0.5398898", "0.53953075", "0.5390893", "0.5389789", "0.53709763", "0.53573793", "0.5348481", "0.5340507", "0.53365785", "0.5327507", "0.5325217", "0.53251266", "0.5317707", "0.53070694", "0.5304899", "0.53047895", "0.53038377", "0.5299787", "0.5294489", "0.5275706", "0.5273137", "0.5268173", "0.52563256", "0.5235382", "0.52308375", "0.521317", "0.5197824", "0.5197824", "0.518931", "0.5179971", "0.51763284", "0.5174528", "0.5164934", "0.5139546", "0.5125057", "0.5103255", "0.5082768", "0.50691646", "0.506774", "0.50622565", "0.5057565", "0.5047161", "0.5041327", "0.50325245", "0.50305754", "0.50257236", "0.5019781", "0.5011049", "0.50066733", "0.5003435", "0.5003207", "0.50031865", "0.49971494", "0.49952096", "0.49929", "0.4990161", "0.49714157" ]
0.72575366
1
Escapes a field name string. Force all field names to be strictly alphanumericplusunderscore. For some database drivers, it may also wrap the field name in databasespecific escape characters.
Экранирует строку имени поля. Принудительно делает все имена полей строго алфаветно-цифровыми с подчеркиванием. Для некоторых драйверов баз данных может также окружать имя поля специальными символами экранирования, специфичными для конкретной базы данных.
public function escapeField($string);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function escapeField(string $field)\n {\n $field = trim($field);\n\n // do not backtick if a MySQL Function is called\n if (stripos($field, '(') !== false && stripos($field, ')') !== false) {\n return $field;\n }\n\n // do not backtick if a comma ', ' exists in the field\n if (stripos($field, ',') !== false) {\n return $field;\n }\n\n // do not backtick if a backtick '`' exists in the field\n if (stripos($field, '`') !== false) {\n return $field;\n }\n\n // split the field and alias if the field is aliased\n if (stripos($field, ' as ') != false) {\n list($field, $alias) = preg_split('/ as /i', $field);\n }\n\n if (stripos($field, '.') === false) {\n $field = '`' . $field . '`';\n } else {\n list($table, $field) = explode('.', $field);\n $field = '`' . $table . '`.`' . $field . '`';\n }\n\n if (isset($alias)) {\n $field = $field . ' as ' . $alias;\n }\n\n return $field;\n }", "public static function format_field_name(string $field_name)\n {\n }", "public static function SqlEscString($str)\n {\n try {\n $ret = str_replace([ '%', '_' ], [ '\\%', '\\_' ], DB::getPdo()->quote($str));\n return $ret && strlen($ret) >= 2 ? substr($ret, 1, strlen($ret)-2) : $ret;\n } catch (Exception $e) {\n return $str;\n }\n }", "public function testEscapeField() {\n\t\t$TestModel = new Test();\n\t\t$db = $TestModel->getDataSource();\n\n\t\t$result = $TestModel->escapeField('test_field');\n\t\t$expected = $db->name('Test.test_field');\n\t\t$this->assertEquals($expected, $result);\n\n\t\t$result = $TestModel->escapeField('TestField');\n\t\t$expected = $db->name('Test.TestField');\n\t\t$this->assertEquals($expected, $result);\n\n\t\t$result = $TestModel->escapeField('DomainHandle', 'Domain');\n\t\t$expected = $db->name('Domain.DomainHandle');\n\t\t$this->assertEquals($expected, $result);\n\n\t\tConnectionManager::create('mock', array('datasource' => 'DboMock'));\n\t\t$TestModel->setDataSource('mock');\n\t\t$db = $TestModel->getDataSource();\n\n\t\t$result = $TestModel->escapeField('DomainHandle', 'Domain');\n\t\t$expected = $db->name('Domain.DomainHandle');\n\t\t$this->assertEquals($expected, $result);\n\t\tConnectionManager::drop('mock');\n\t}", "public function EscapeString($argString, $argEscapeUnderscorePercentCharacters = false)\r\n {\r\n $this->checkDatabaseManager();\r\n $escapedString = $this->_DatabaseHandler->real_escape_string($argString);\r\n if($argEscapeUnderscorePercentCharacters)\r\n {\r\n $escapedString = addcslashes($escapedString, '%_');\r\n }\r\n return $escapedString;\r\n }", "function db_escape($input)\n{\n\tglobal $db;\n\treturn $db->real_escape_string($input);\n}", "function _fixName($field_or_value_name) {\r\n if ($field_or_value_name == \"\")\r\n return \"\";\r\n // convert space into underscore\r\n $result = preg_replace(\"/ /\", \"_\", strtolower($field_or_value_name));\r\n // strip all non alphanumeric chars\r\n $result = preg_replace(\"/\\W/\", \"\", $result);\r\n return $result;\r\n }", "function safe_name($name) {\n return preg_replace(\"/\\W/\", \"_\", $name);\n }", "public function escapeDbIdentifier($string)\n {\n $string = str_replace('`', '``', $string);\n if (preg_match('/[^a-z0-9_]+/i', $string) || in_array(strtoupper($string), $this->KEYWORDS)) {\n $string = \"`$string`\";\n }\n return $string;\n }", "function escape($str) {\n $str = get_magic_quotes_gpc()?stripslashes($str):$str;\n $str = $this->db->escape($str);\n return $str;\n }", "public function escField($key,$default_val = null){\n return new Escape($this->getField($key,$default_val));\n }", "abstract public function escape_string( $str );", "public function preventAddSlashes( $fields=array() );", "public static function prep($str = '', $field_name = '')\n {\n static $prepped_fields = array();\n\n // if the field name is an array we do this recursively\n if (is_array($str)) {\n foreach ($str as $key => $val) {\n $str[$key] = self::prep($val);\n }\n return $str;\n }\n\n if ($str === '') {\n return '';\n }\n\n // we've already prepped a field with this name\n // @todo need to figure out a way to namespace this so\n // that we know the *exact* field and not just one with\n // the same name\n if (isset($prepped_fields[$field_name])) {\n return $str;\n }\n\n $str = htmlspecialchars($str);\n\n // In case htmlspecialchars misses these.\n $str = str_replace(array(\"'\", '\"'), array(\"&#39;\", \"&quot;\"), $str);\n\n if ($field_name != '') {\n $prepped_fields[$field_name] = $field_name;\n }\n\n return $str;\n }", "public function escapeString($stringToEscape);", "public static function quote_name($key)\n {\n if (is_object($key))\n return '('.strval($key).')';\n\n if (preg_match('/^[a-zA-Z]+[a-zA-Z0-9_]*$/', $key))\n return sprintf('`%s`', trim($key));\n\n return trim($key);\n }", "function db_driver_escape($data)\n{\n global $_db;\n\n return '\\'' . str_replace('\\'', '\\'\\'', $data) . '\\'';\n}", "private function _prepareName($name)\n {\n return urlencode($name);\n\n }", "static public function real_escape_string($s) { return self::escape($s); }", "public abstract function escape($string);", "function make_fieldname_text($fieldname) {\n\t$fieldname=str_replace(\"_\", \" \",$fieldname);\n\t$fieldname=ucfirst($fieldname);\n\treturn $fieldname;\t\t\n}", "public function preventAddSlashes( $fields=array() )\n\t{\n\t\t$this->no_escape_fields = $fields;\n\t}", "function graphql_format_field_name($field_name)\n {\n }", "abstract public function escapeString($string);", "abstract protected function _escape($s);", "protected abstract function escape($string);", "function prepare_field($field)\n{\n return trim(preg_replace(\"/[<>&=%:'“]/i\", \"\", $field));\n}", "public function getDbFieldName($field_name);", "function removeSpecial($field)\n{\n\t$in_str = str_replace(array('<', '>', '&', '{', '}', '*', '/', '(', '[', ']', '@', '!', ')', '&', '*', '#', '$', '%', '^', '|', '?', '+', '=',\n\t\t'\"', ','), array(''), $field);\n\t$cur_encoding = mb_detect_encoding($in_str);\n\tif ($cur_encoding == 'UTF-8' && mb_check_encoding($in_str, 'UTF-8'))\n\t\t$name = $in_str;\n\telse\n\t\t$name = utf8_encode($in_str);\n\tif (!Validate::isName($name))\n\t{\n\t\t$len = Tools::strlen($name);\n\t\t$return_val = '';\n\t\tfor ($i = 0; $i < $len; $i++)\n\t\t{\n\t\t\tif (ctype_alpha($name[$i]))\n\t\t\t\t$return_val .= $name[$i];\n\t\t}\n\t\t$name = $return_val;\n\t\tif (empty($name))\n\t\t{\n\t\t\t$letters = range('a', 'z');\n\t\t\tfor ($i = 0; $i < 5; $i++)\n\t\t\t\t$name .= $letters[rand(0, 26)];\n\t\t}\n\t}\n\treturn $name;\n}", "private function escapeColumn($name)\n {\n if (strpos($name, '.') || strpos($name, '`') || strpos($name, ' ')) {\n return $name;\n }\n\n if ($name == '*') {\n return $name;\n }\n\n return '`'.$name.'`';\n }", "public function quoteAndEscape(string $str): string;", "function esc_like($text)\n{\n return addcslashes($text, '_%\\\\');\n}", "function sqlFormatField($field)\n\t{\n\t\tif(is_string($field))\n\t\t{\n $f=addslashes($field);\n\t\t\treturn \"'\" . $f . \"'\";\n\t\t}\n\t\tif(is_numeric($field))\n\t\t{\n\t\t\treturn $field;\n\t\t}\n\t\telseif(empty($field))\n\t\t{\n\t\t\treturn \"null\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn \"'\" . $field . \"'\";\n\t\t}\n\t}", "public function escape($string);", "public function escape($string);", "function quote_field($sql, $fieldname, $fieldvalue){\r\n\t\t$rs = $this->select_limit($sql, 1, 1);\r\n $fm_type = $this->field_metatype($rs, $this->field_index($rs, str_replace('`', '', $fieldname)));\r\n\t\tswitch ($fm_type) {\r\n\t\t\tcase 'I':\r\n\t\t\tcase 'N':\r\n\t\t\tcase 'R':\r\n\t\t\tcase 'L':\r\n\t\t\t\t$qstr = $fieldname .\"=\". $fieldvalue; \r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\t$qstr = $fieldname .\"='\". $fieldvalue .\"'\"; \r\n\t\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\treturn $qstr;\r\n\t}", "function field2name($field) {\n return str_replace(\n array('_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h', '_i', '_j', '_k', '_l', '_m', '_n', '_o', '_p', '_q', '_r', '_s', '_t', '_u', '_v', '_w', '_x', '_y', '_z'), array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), lcfirst($field)\n );\n}", "function escaped_str($string)\n{\n $safe_string = Database::getInstance()->getConnection()->real_escape_string($string);\n return $safe_string;\n}", "public function sql_escape_string($str) {\n return @mysql_escape_string($str);\n }", "abstract public function escapeStr($str, $like = false);", "public function escapeString($string);", "public function setDBColName(string $field): self\r\n {\r\n $this->field = trim($field);\r\n return $this;\r\n }", "function esc(String $value){\n\t// bring the global db connect object into function\n\tglobal $connection;\n\t// remove empty space sorrounding string\n\t$val = trim($value); \n\t$val = mysqli_real_escape_string($connection, $value);\n\treturn $val;\n}", "public function escape($str)\n {\n if ($str == '') {\n return '';\n }\n\n if (function_exists('db2_escape_string')) {\n $str = db2_escape_string($str);\n } else {\n $str = addslashes($str);\n }\n\n return trim($str);\n }", "public function insertEscaped(...$field_values);", "public function getEscapedString(string $str) {\n return $this->dbConnection->real_escape_string($str);\n }", "function MakeSafeString ($str) {\n\tif ($str == null) return $str;\n\treturn str_replace(\"'\", '_', str_replace('\"', '_', str_replace('`', '_', $str)));\n}", "function sanitize_name( $name ) {\r\n\t\t$name = sanitize_title( $name ); // taken from WP's wp-includes/functions-formatting.php\r\n\t\t$name = str_replace( '-', '_', $name );\r\n\r\n\t\treturn $name;\r\n\t}", "protected function backtickAlias($fields) {\n\t\treturn preg_replace('/\\b(\\w+)\\./i', '`${1}`.',$fields);\n\t}", "protected static function nameprep($text)\n {\n }", "function mysqli_fake_escape_string($input) { return $input; }", "protected function adjustFields(){\n\t\tforeach($this->fields as $key => $field)\n\t\t{\n\t\t\t$this->fields[$key] = sprintf(\"`%s`\", $field);\n\t\t}\n\t\treturn join(FuriousExpressionsDB::FieldSeparator, $this->fields);\n\t}", "public function escape(string $str): string;", "public function name($name)\n\t{\n\t\t$open = reset($this->_quotes);\n\t\t$close = next($this->_quotes);\n\n\t\tlist($first, $second) = $this->_splitFieldname($name);\n\t\tif ($first) {\n\t\t\treturn \"{$open}{$first}{$close}.{$open}{$second}{$close}\";\n\t\t}\n\t\treturn preg_match('/^[a-z0-9_-]+$/i', $name) ? \"{$open}{$name}{$close}\" : $name;\n\t}", "static function formatName($name){\n return htmlspecialchars($name);\n }", "protected static function getBindName($field)\n {\n return \"{$field}\";\n }", "function esc(String $value){\n global $conn;\n $val = trim($value); // remove empty space sorrounding string\n $val = mysqli_real_escape_string($conn, $value);\n return $val;\n }", "function bfa_escape($string) {\r\n\t$string = str_replace('\"', '&#34;', $string);\r\n\t$string = str_replace(\"'\", '&#39;', $string);\r\n\treturn $string;\r\n}", "public function esc($string)\n {\n return $this->mysqli->real_escape_string($string);\n }", "protected function escape($value): string\n {\n $value = strtr(\n $value,\n [\n '%' => '\\%',\n '_' => '\\_',\n '\\\\' => '\\\\\\\\',\n ]\n );\n\n return '%' . $value . '%';\n }", "public function escapeString($s)\r\n {\r\n return @mysql_real_escape_string(str_replace('`', '\\`', stripslashes($s)));\r\n }", "public abstract function escapeIdentifier($identifier);", "public function escapeLike($string);", "function sqlite_escape_string($string)\n{\n $string = SQLite3::escapeString($string);\n $string = filter_var($string, FILTER_SANITIZE_STRING);\n return $string;\n}", "static public function Escape($var, $db='mysql') {\r\n\r\n\t\tif (get_magic_quotes_gpc()) $var = stripslashes($var);\r\n\r\n\t\tswitch(strtolower($db)) {\r\n\t\t\tcase 'mysql': return mysqli_real_escape_string($var);\r\n\t\t\tcase 'postgresql':\r\n\t\t\tcase 'postgre': return pg_escape_string($var);\r\n\t\t\tdefault: return addslashes($var);\r\n\t\t}\r\n\r\n\t}", "public static function safeName($name) {\n\t\t\tif(!preg_match('/^[A-Z_][\\.A-Z0-9_]*$/i', $name)){\n\t\t\t\t$pieces = explode('.', $name);\n\t\t\t\tforeach($pieces as $i => $piece) {\n\t\t\t\t\t$pieces[$i] = '`'. str_replace('`', '``', $piece) . '`';\n\t\t\t\t}\n\t\t\t\treturn implode('.', $pieces);\n\t\t\t} else {\n\t\t\t\treturn $name;\n\t\t\t}\n\t\t}", "function _escapeString($str)\n {\n return strtr($str,array(\n \"\\r\" => '\\r',\n \"\\n\" => '\\n',\n \"\\t\" => '\\t',\n \"'\" => \"\\\\'\",\n '\"' => '\\\"',\n '\\\\' => '\\\\\\\\'\n ));\n }", "protected function db_escape($string)\n {\n return mysqli_real_escape_string($this->db, $string);\n }", "public function Escape($text) {\n if ($GLOBALS['app']['dbEncoding'] && !is_numeric($text)) {\n return base64_encode($text);\n }\n return addslashes($text);\n }", "protected function escape(string $str)\n {\n // If there is no existing database connection then try to connect\n if ( ! isset($this->dbh) || ! $this->dbh )\n {\n $this->connect($this->dbuser, $this->dbpassword, $this->dbhost, $this->dbport);\n $this->select($this->dbname, $this->encoding);\n }\n\n if ( get_magic_quotes_gpc() ) {\n $str = stripslashes($str);\n }\n\n return $this->dbh->escape_string($str);\n }", "function dbEscape($string) {\n\t$db = dbConn();\n\treturn(mysqli_real_escape_string($db,$string));\n}", "static public function escape ( $str )\n\t{\n\t\treturn trim(self::instance(0)->quote($str), '\\'');\n\t}", "function name2field($name) {\n return str_replace(\n array('A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'), array('_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h', '_i', '_j', '_k', '_l', '_m', '_n', '_o', '_p', '_q', '_r', '_s', '_t', '_u', '_v', '_w', '_x', '_y', '_z'), lcfirst($name)\n );\n}", "function escape($_str) {\n\t\treturn str_replace('\"', '&quot;', $_str);\n\t}", "function wikiArticleNameEncode($articlename)\n\t{\n\t\t$articlename = str_replace(' ','_',$articlename);\n\t\t\n\t\treturn ($articlename);\n\t}", "public function prep($str = '', $field = '')\n {\n static $preppedFields = array();\n\n if (is_array($str)) { // If the field name is an array we do this recursively\n foreach ($str as $key => $val) {\n $str[$key] = $this->prep($val);\n }\n return $str;\n }\n if ($str === '') {\n return '';\n }\n if (isset($preppedFields[$field])) { // We've already prepped a field with this name\n return $str;\n }\n $str = htmlspecialchars($str, ENT_QUOTES, $this->charset, false);\n if ($field != '') {\n $preppedFields[$field] = $field;\n }\n return $str;\n }", "function sanitiseString($strField)\n{\n\t$strOut = filter_var($strField, FILTER_SANITIZE_STRING);\n\treturn $strOut;\n}", "function escapeString($string) {\r\n\treturn \\wcf\\system\\WCF::getDB()->escapeString($string);\r\n}", "public abstract function escapeString($value);", "private function _fieldNameToCamelCase($field) {\n $field_parts = explode('_', $field);\n $out = '';\n foreach ($field_parts as $part) {\n $out .= ucfirst($part);\n }\n return $out;\n }", "protected function escapeLike(string $str): string {\n return addcslashes($str, '_%');\n }", "function qescape($str)\n{\n $str = str_replace('\\\\', '\\\\\\\\', $str);\n return str_replace('\"', '\\\\\"', $str);\n}", "function escape($string)\n\t{\n\t\tswitch($this->dbtype)\n\t\t{\n\t\t\tcase 'mysql':\n\t\t\t\treturn @mysql_escape_string($string);\n\t\t\t\tbreak;\n\n\t\t\tcase 'mysqli':\n\t\t\t\treturn @mysqli_escape_string($string);\n\t\t\t\tbreak;\n\t\t}\n\n\t}", "protected static function _escapeChar($matches) {}", "abstract public function escapeString($value);", "function dbescape($str) {\r\n\tglobal $msq;\r\n\treturn mysqli_real_escape_string($msq, $str);\r\n}", "function escape_string($string) {\r\n\t\tglobal $db;\r\n\t\t\r\n\t\t$escaped_string = mysqli_real_escape_string($db, $string);\r\n\t\treturn $escaped_string;\r\n\t}", "function db_escape($connection, $string) {\n return mysqli_real_escape_string($connection, $string);\n}", "private function makeEscapedString() {\n\t\t# -- so, call this function after makeConnection() called -- #\n\t\t\n\t\ttry {\n\t\t\t$this->_code = $this->_mysqli->real_escape_string($this->_code);\n\t\t\t$this->_name = $this->_mysqli->real_escape_string($this->_name);\n\t\t\t$this->_description = $this->_mysqli->real_escape_string($this->_description);\n\t\t\t$this->_color = $this->_mysqli->real_escape_string($this->_color);\n\t\t}\n\t\tcatch (Exception $e) {\n\t\t\t# do nothing\n\t\t}\n\t\t\n\t}", "public static function escape($s) {}", "public static function escapeSql($str)\n {\n return StringUtils::replace($str, '\\'', '\\'\\'');\n }", "public function escape_string($string) {\n $escaped_string = $this->connection->real_escape_string($string);\n return $escaped_string;\n }", "private function _escape_filename($filename)\n {\n return str_replace('/', '', $filename);\n }", "public function getAllowedCharsInNamePattern() {\n //alphanums, underscores and dash\n return 'a-zA-Z0-9_.-';\n }", "public function escape_string($string) {\n $escaped_string = $this->connection->real_escape_string($string);\n return $escaped_string;\n }", "public function escape(string $str): string\n {\n $escaped = \"\\\\\";\n if ($this->stringQuotingCharacter !== $escaped) {\n $escaped .= $this->stringQuotingCharacter;\n }\n return addcslashes($str, $escaped);\n }", "public function escapeBrandName(string $brandName): string\n {\n return str_replace(\" \", \"\", $brandName);\n }", "public function quoteAndEscape(string $str): string\n {\n return $this->stringQuotingCharacter . $this->escape($str) . $this->stringQuotingCharacter;\n }", "public function escapeIdentifier($identifier){ }", "function MCW_make_name_acceptable($name) {\n \n $name = strtr($name,\" \",\"_\");\n $name=preg_replace(\"/[^a-zA-Z0-9_äöüÄÖÜ]/\" , \"\" , $name);\n return $name;\n }" ]
[ "0.66678315", "0.63153297", "0.63135165", "0.62421423", "0.62020165", "0.598713", "0.59577703", "0.5862742", "0.5858427", "0.58363247", "0.57445717", "0.5736223", "0.56559825", "0.56531894", "0.5618645", "0.56140554", "0.5601697", "0.5594234", "0.5554159", "0.5548157", "0.55473155", "0.554646", "0.55443895", "0.5517067", "0.5479627", "0.54761523", "0.5457091", "0.54532266", "0.54529893", "0.5445472", "0.54454714", "0.54404736", "0.5439293", "0.5437147", "0.5437147", "0.54252255", "0.54197794", "0.54140925", "0.5413951", "0.54112536", "0.54104084", "0.53959805", "0.5359759", "0.53357023", "0.5332221", "0.53293794", "0.53278804", "0.5326626", "0.5325655", "0.53209966", "0.53198737", "0.53171027", "0.5312622", "0.5307801", "0.5288241", "0.528496", "0.5269771", "0.52498585", "0.524293", "0.52422166", "0.5231259", "0.52209616", "0.52015984", "0.51994634", "0.5195801", "0.5194246", "0.5191587", "0.5184969", "0.5184444", "0.5179079", "0.5171202", "0.51656926", "0.51611197", "0.51607305", "0.5156427", "0.5149398", "0.51430285", "0.51388395", "0.5138836", "0.51387966", "0.51357275", "0.51271105", "0.51236176", "0.5122706", "0.51210815", "0.5117286", "0.5114072", "0.5109836", "0.51078045", "0.5101181", "0.51006234", "0.50908005", "0.50905037", "0.5085593", "0.50830925", "0.50808847", "0.50690114", "0.50566655", "0.5052744", "0.5050548" ]
0.7223695
0
Orders the result set by a given field. If called multiple times, the query will order by each specified field in the order this method is called. If the query uses DISTINCT or GROUP BY conditions, fields or expressions that are used for the order must be selected to be compatible with some databases like PostgreSQL. The PostgreSQL driver can handle simple cases automatically but it is suggested to explicitly specify them. Additionally, when ordering on an alias, the alias must be added before orderBy() is called.
Упорядочивает результат по заданному полю. Если метод вызывается несколько раз, запрос будет упорядочен по каждому указанному полю в порядке, в котором этот метод вызывается. Если запрос использует условия DISTINCT или GROUP BY, поля или выражения, используемые для упорядочения, должны быть выбраны так, чтобы быть совместимыми с некоторыми базами данных, такими как PostgreSQL. Драйвер PostgreSQL может автоматически обрабатывать простые случаи, но рекомендуется явно указывать их. Кроме того, при упорядочении по алиасу алиас должен быть добавлен до вызова orderBy().
public function orderBy($field, $direction = 'ASC');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function orderBy($field) {\n\t$this->parseQuery->orderBy($field);\n }", "public function orderBy(string $field, string $direction): self;", "public function order($field, $order = 'desc');", "public function orderByAscending($field) {\n\t$this->parseQuery->orderByAscending($field);\n }", "public function orderBy($field, $asc = true)\n {\n if ($asc) {\n $this->order[] = \"$this->alias.$field ASC\";\n } else {\n $this->order[] = \"$this->alias.$field DESC\";\n }\n\n return $this;\n\n }", "public function orderByAsc($field, $overwrite = false);", "private function sql_orderBy()\n {\n // Get table and field\n list( $table, $field ) = explode( '.', $this->curr_tableField );\n\n // Short var\n $arr_order = null;\n $arr_order = $this->conf_view[ 'filter.' ][ $table . '.' ][ $field . '.' ][ 'order.' ];\n\n // Order field\n switch ( true )\n {\n case( $arr_order[ 'field' ] == 'uid' ):\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'uid' ];\n break;\n case( $arr_order[ 'field' ] == 'value' ):\n default:\n $orderField = $this->sql_filterFields[ $this->curr_tableField ][ 'value' ];\n break;\n }\n // Order field\n // Order flag\n switch ( true )\n {\n case( $arr_order[ 'orderFlag' ] == 'DESC' ):\n $orderFlag = 'DESC';\n break;\n case( $arr_order[ 'orderFlag' ] == 'ASC' ):\n default:\n $orderFlag = 'ASC';\n break;\n }\n // Order flag\n // Get ORDER BY statement\n $orderBy = $orderField . ' ' . $orderFlag;\n\n // RETURN ORDER BY statement\n return $orderBy;\n }", "public function orderBy($field, $direction = 'ASC')\n {\n $this->orderBy = $field;\n $this->orderByDirection = $direction;\n return $this;\n }", "protected static function _orderby($field, $order)\n {\n if ($field == \"\") {\n self::$orderby = null;\n } else {\n self::$orderby = sprintf(\" ORDER BY %s %s\", $field, $order);\n }\n }", "public function order($field, $direction = Operator::SORT_DESC)\n {\n if (empty($field)) {\n $this->order_str = '';\n return $this;\n }\n if (!empty($direction)){\n $direction = ltrim($direction, '$');\n }\n if (is_array($field)) {\n $output = array();\n foreach ($field as $item) {\n $output[] = \"`{$item}`\";\n }\n $field = implode(', ', $field);\n }\n else {\n $field = $this->escapeString($field);\n }\n $this->order_str = \"{$field} {$direction}\";\n return $this;\n }", "public function orderBy(array $fields, $order = null);", "public function orderBy($sField, $sOrder = Db::ASC)\n {\n $this->clause('ORDER BY', \"$sField $sOrder\");\n\n return $this;\n }", "public function addAscendingOrderBy($field)\n\t{\n\t\tparent::orderBy($field, self::ASC);\n\t\treturn $this;\n\t}", "public function orderBy(string $field, string $direction = null): static\n {\n if ($direction === null) {\n $direction = 'ASC';\n } else {\n $direction = strtoupper($direction);\n }\n\n $this->orderBy[] = [\n 'field' => $field,\n 'direction' => $direction\n ];\n\n return $this;\n }", "public function orderBy($field, $direction = self::DESC) {\n if (is_array($field)) {\n foreach ($field as $key => $dir) {\n $this->orderBy($key, $dir);\n }\n\n } else if ($field === 'RAND') {\n $this->_orderBy[] = $this->func('RAND');\n\n } else if ($field instanceof Func) {\n $this->_orderBy[] = $field;\n\n } else {\n $direction = strtolower($direction);\n\n if ($direction != self::ASC && $direction != self::DESC) {\n throw new InvalidArgumentException(sprintf('Invalid order direction %s for field %s', $direction, $field));\n }\n\n $this->_orderBy[$field] = $direction;\n }\n\n return $this;\n }", "public function orderBy(string $field, string $type=''): QueryBuilderInterface\n\t{\n\t\t// When ordering by random, do an ascending order if the driver\n\t\t// doesn't support random ordering\n\t\tif (stripos($type, 'rand') !== FALSE)\n\t\t{\n\t\t\t$rand = $this->driver->getSql()->random();\n\t\t\t$type = $rand ?? 'ASC';\n\t\t}\n\n\t\t// Set fields for later manipulation\n\t\t$field = $this->driver->quoteIdent($field);\n\t\t$this->state->setOrderArray($field, $type);\n\n\t\t$orderClauses = [];\n\n\t\t// Flatten key/val pairs into an array of space-separated pairs\n\t\tforeach($this->state->getOrderArray() as $k => $v)\n\t\t{\n\t\t\t$orderClauses[] = $k . ' ' . strtoupper($v);\n\t\t}\n\n\t\t// Set the final string\n\t\t$orderString = ! isset($rand)\n\t\t\t? \"\\nORDER BY \".implode(', ', $orderClauses)\n\t\t\t: \"\\nORDER BY\".$rand;\n\n\t\t$this->state->setOrderString($orderString);\n\n\t\treturn $this;\n\t}", "public function orderby($field, $direction = 'ASC')\n\t\t{\n\t\t\t$this->order[] = \"$field $direction\";\n\t\t\treturn $this;\n\t\t}", "public function orderBy() {\n $this->_orderBy = \"\";\n foreach ($this->_columns as $tableName => $table) {\n if (array_key_exists('order_bys', $table)) {\n foreach ($table['order_bys'] as $fieldName => $field) {\n $this->_orderBy[] = $field['dbAlias'];\n }\n }\n }\n $this->_orderBy = \"ORDER BY \" . implode(', ', $this->_orderBy) . \" \";\n }", "public function andThenAscendingBy(string $field): ExtensibleSorting;", "public function orders($field, $reversive = false) {\n\t\t\t$sort = ($reversive) ? 'DESC' : 'ASC';\n\t\t\t$this->order = \"ORDER BY `$field` $sort\";\n\t\t\treturn $this;\n\t\t}", "public static function order( $column, $order, $use_alias = true ) {\n\t\t\tif( self::$query_open ) {\n self::$current_query->order( $column, $order, $use_alias );\n }\n\t\t}", "public function orderBy($field, $direction = 'asc'): self\n\t{\n\t\t$this->orders[] = [\n\t\t\t$field => strtolower($direction) === 'asc' ? 'asc' : 'desc',\n\t\t];\n\n\t\treturn $this;\n\t}", "public function it_sorts_by_field_in_ascending_order(): void\n {\n $results = Client::filter([\n 'sorts' => [\n [\n 'column' => 'name',\n 'direction' => 'asc',\n ],\n ],\n ])->get();\n\n self::assertEquals($results->sortBy('name')->pluck('id'), $results->pluck('id'));\n }", "public function orderBy(string $field, string $order='ASC', string $condition = '', $included = false, array $parameters = [ ], bool $useCache = false): array {\n return DAO::orderBy($this->getModel(), $field, $order, $condition, $included, $parameters, $useCache);\n }", "public function orderBy($field, $direction = self::ASC)\n {\n if (!array_key_exists('orderby', $this->options)) {\n $this->options['orderby'] = [];\n }\n $this->options['orderby'][] = $field . ' ' . $direction;\n\n return $this;\n }", "public function orderByDescending($field) {\n\t$this->parseQuery->orderByDescending($field);\n }", "public function sort_asc($field)\n {\n return $this->sort($field,self::ASC);\n }", "function orderByClause( $orderby ) {\n\t global $wpdb;\n\t return \"dm.meta_value+0 {$this->order}, $wpdb->posts.post_title ASC\";\n\t}", "public static function order_field($title_field,$field_select, $field_sorting = '', $sort_direct ='')\n\t{\n\t\t$url = $_SERVER['REQUEST_URI'];\n\t\t$url = trim(preg_replace('/&sortby=[a-zA-Z0-9_]+/i', '', $url)); // field\n\t\t$url = trim(preg_replace('/&sort=[a-z]+/i', '', $url)); // direct\n\t\t\n\t\t$sort_direct = $sort_direct?$sort_direct:'asc';\n\t\t$sort_direct_continue = $sort_direct == 'asc' ? 'desc' : 'asc';\n\t\t$link = $url.'&sortby='.$field_select.'&sort='.$sort_direct_continue;\n\t\tif($field_select == $field_sorting)\n\t\t{\n\t\t\t$html = \"<a title=\\\"Click to sort by this column\\\" href=\\\"$link\\\">\";\n\t\t\t$html .= $title_field ;\n\t\t\t$html .= \"<img alt=\\\"$sort_direct\\\" src=\\\"templates/default/images/sort_$sort_direct.png\\\">\";\n\t\t\t$html .= \"</a>\";\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$html = \"<a title=\\\"Click to sort by this column\\\" href=\\\"$link\\\">$title_field</a>\";\n\t\t}\n\t\treturn $html ; \n\t}", "public function order($field, $dir = 'ASC', $reset = false) {\n\t\tif($reset == 'reset' || $reset)\n\t\t\t$this->_order_cond = array();\n\t\t\n\t\t$field = ctype_alnum($field) ? \"`$field`\" : $field;\n\t\tif(!$field) return $this;\n\t\t$dir = ctype_alnum($dir) ? strtoupper($dir) : 'ASC';\n\t\t$this->_order_cond[] = \"$field $dir\";\n\t\treturn $this;\n\t\t\n\t}", "function SortBy ( $cField )\n{\n $cField = $this->_FixCase_($cField);\n $cValue = '';\n if ( empty($this->_SortNameList) ) {\n if ( $this->_SortAllFields )\n $cValue = empty($this->_PrimaryKeyStr) ? $cField : $cField.','.$this->_PrimaryKeyStr;\n } else {\n $cValue = $this->_SortNameList[$cField];\n if ( empty($cVAlue) && $this->_SortAllFields )\n $cValue = empty($this->_PrimaryKeyStr) ? $cField : $cField.','.$this->_PrimaryKeyStr;\n }\n if ( empty($cValue) ) return false;\n\n $this->KeyName($cValue);\n return $this->SearchCurr();\n}", "public function setOrder($field, $direction = 'ASC')\n {\n return $this->orderBy = array(\n 'field' => $field,\n 'direction' => $direction\n );\n }", "public function orderAsc($fieldOrExpr) {\r\n\t\t$this->_salt_orders[]=$this->resolveFieldName(ClauseType::ORDER, $fieldOrExpr).' ASC';\r\n\t}", "public function orderBy(/* Variable */) {\n\n $child = $this->createChild(null, array(), null);\n $child->_comparatorFunction = null;\n\n $args = func_get_args();\n\n return call_user_func_array(array($child, 'thenOrderBy'), $args);\n }", "public function getQueryOrderby() {\n return '`'.$this->name.'`';\n }", "public function queryAllWithOwnersAndContributorsSortedBy($field)\n {\n $q = $this->createQueryBuilder('bundle')\n ->select('bundle, owner, contributors')\n ->leftJoin('bundle.owner', 'owner')\n ->leftJoin('bundle.contributors', 'contributors')\n ->addOrderBy('bundle.' . $field, 'name' === $field ? 'asc' : 'desc')\n ->addOrderBy('bundle.score', 'desc')\n ->addOrderBy('bundle.lastCommitAt', 'desc')\n ->getQuery();\n\n return $q;\n }", "public function setOrderField($x) { $this->orderField = $x; }", "public function orderBy($fields)\n\t{\n\t\t$this->query->orderBy($fields);\n\n\t\treturn $this;\n\t}", "function click_sort($order) {\n if (isset($this->real_field)) {\n // Since fields should always have themselves already added, just\n // add a sort on the field.\n $params = array('type' => 'numeric');\n $this->query->add_orderby($this->table_alias, $this->real_field, $order, $this->field_alias, $params);\n }\n }", "public function orderBy($fields, $overwrite = false);", "public function order($field, $value)\n {\n $this->orders[$field] = $value;\n return $this;\n }", "public function orderBy($column, $direction = 'asc');", "public function order_by() {\r\n\t\t$fields = func_get_args();\r\n\r\n\t\t// Loop through the columns\r\n\t\tfor ( $i = 0; $i < intval( $_GET['iSortingCols'] ); $i++ ) {\r\n\t\t\t// Add the necessary comman\r\n\t\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t\t$this->order_by .= ',';\r\n\t\t\t\r\n\t\t\t// Compile the fields\r\n\t\t\t$this->order_by .= $fields[$_GET['iSortCol_' . $i]] . ' ' . $_GET['sSortDir_' . $i];\r\n\t\t}\r\n\t\t\r\n\t\t// If it's not empty\r\n\t\tif ( !empty( $this->order_by ) )\r\n\t\t\t$this->order_by = ' ORDER BY ' . $this->order_by;\r\n\t}", "public function orderBy($column, $dir): QueryBuilderInterface;", "function sort($fieldname, $direction = \"ASC\")\n\t{\n\t\t$this->table->sort = $fieldname;\n\t\t$this->table->direction = $direction;\n\t}", "private function _orderByField($sql, $bind)\r\n {\r\n preg_match('/ order by field\\((.*)\\)$/si', $sql, $matches);\r\n $oldClause = $matches[0];\r\n $values = explode(',', $matches[1]);\r\n\r\n $field = array_shift($values);\r\n\r\n $newClause = \" order by case $field\";\r\n for ($i = 0, $size = count($values); $i < $size; $i++)\r\n {\r\n $newClause .= \" when {$values[$i]} then $i\";\r\n }\r\n $newClause .= ' end';\r\n\r\n $sql = str_replace($oldClause, $newClause, $sql);\r\n\r\n return array($sql, $bind);\r\n }", "public function SetSortField($Field)\n\t\t{\n\t\t\t$this->_pricesortfield = $Field;\n\t\t}", "function getAllPlayersOrderBy($field){\n\t$query = \"SELECT * FROM aquigaza_fsutt_local.players ORDER by \".$field;\n $resource = runQuery($query);\n\treturn ozRunQuery($resource);\n}", "public function orderBy($sql);", "public function orderBy($direction = \"ASC\",$column);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "public function queryAllOrderBy($orderColumn);", "function order_by($order_by, $direction = 'ASC')\n {\n // Make an exception for the rand() method\n $order_by = preg_replace(\"/rand\\\\(\\\\s*\\\\)/\", 'rand', $order_by);\n if (in_array($order_by, $this->object->_get_querable_table_columns())) {\n $this->object->_query_args['orderby'] = $order_by;\n } else {\n // ordering by a meta value\n $this->object->_query_args['orderby'] = 'meta_value';\n $this->object->_query_args['meta_key'] = $order_by;\n }\n $this->object->_query_args['order'] = $direction;\n return $this->object;\n }", "private function orderBy($param) {\n if (isset($param['column']) && isset($param['type'])) {\n $this->sql .= 'ORDER BY ' . $param['column'] . ' ' . $param['type'] . ' ';\n }\n }", "public function orderByDesc($field, $overwrite = false);", "public function &getOrderBy();", "public function andThenDescendingBy(string $field): ExtensibleSorting;", "function order_by($params, $default_field, $default_order = 'ASC') {\r\n \tif (isset($params['sortby'])) {\r\n \t\t$default_field = $params['sortby'];\r\n \t}\r\n\r\n \tif (isset($params['sortdir'])) {\r\n \t\t$default_order = $params['sortdir'];\r\n \t}\r\n\r\n \treturn \"ORDER BY $default_field $default_order\";\r\n\r\n }", "function mycpt_custom_orderby( $query ) {\n if ( ! is_admin() )\n return;\n \n $orderby = $query->get( 'orderby');\n \n if ( 'email' == $orderby ) {\n $query->set( 'meta_key', 'email' );\n $query->set( 'orderby', 'meta_value' );\n }\n else if( 'company' == $orderby ) {\n $query->set( 'meta_key', 'company');\n $query->set( 'orderby', 'meta_value');\n } else {\n $query->set( 'orderby', 'title');\n }\n}", "public function orderBy($vars){\n\t\t\t$string = self::ORDER_BY;\n\t\t\t\n\t\t\t$cpt = 0;\n\t\t\tforeach($vars as $var){\n\t\t\t\t$string .= ' ' . $var;\n\t\t\t\tif(($cpt+1) < count($vars)){\n\t\t\t\t\t$string .= ', ';\n\t\t\t\t}\n\t\t\t}\n\t\t\t$this->_query .= $string . ' ';\n\t\t\treturn $this->_returnObject ? $this : $string;\n\t\t}", "public static function order($fields)\n {\n $order = self::set(\"order\");\n\n $order = Validator::contains($order)->validate($fields)? $order: null;\n\n return $order? \" ORDER BY {$order}\": null;\n }", "public function addDescendingOrderBy($field)\n\t{\n\t\tparent::orderBy($field, self::DESC);\n\t\treturn $this;\n\t}", "public function asc($field)\n {\n $this->sorts[SCT::toHyphen($field)] = 'asc';\n return $this;\n }", "public function getOrderByClause() {\n\n\t\ttx_pttools_assert::isTrue($this->isSortable, array('message' => 'This column is not sortable'));\n\t\tswitch ($this->sortingState) {\n\t\t\tcase self::SORTINGSTATE_NONE: {\n\t\t\t\t$orderBy = '';\n\t\t\t} break;\n\n\t\t\tcase self::SORTINGSTATE_ASC: {\n\t\t\t\t$orderBy = sprintf('%s.%s %s', $this->table, $this->field, 'ASC');\n\t\t\t} break;\n\n\t\t\tcase self::SORTINGSTATE_DESC: {\n\t\t\t\t$orderBy = sprintf('%s.%s %s', $this->table, $this->field, 'DESC');\n\t\t\t} break;\n\n\t\t\tdefault: {\n\t\t\t\tthrow new tx_pttools_exception('Invalid sorting state!');\n\t\t\t} break;\n\t\t}\n\t\treturn $orderBy;\n\t}", "public function groupBy($field, $asc = true)\n {\n if ($asc) {\n $this->groupBy[] = \" $this->alias.$field ASC\";\n } else {\n $this->groupBy[] = \" $this->alias.$field DESC\";\n }\n \n return $this;\n }", "public function orderDesc($fieldOrExpr) {\r\n\t\t$this->_salt_orders[]=$this->resolveFieldName(ClauseType::ORDER, $fieldOrExpr).' DESC';\r\n\t}", "public function orderBy($column, $direction = 'asc')\n {\n\n }", "public function getOrderField()\n\t{\n\t\treturn $this->orderField;\n\t}", "protected function create_entity_order_by( $field_name, $sort_order = \\PostFinanceCheckout\\Sdk\\Model\\EntityQueryOrderByType::DESC ) {\n\t\t$order_by = new \\PostFinanceCheckout\\Sdk\\Model\\EntityQueryOrderBy();\n\t\t$order_by->setFieldName( $field_name );\n\t\t$order_by->setSorting( $sort_order );\n\t\treturn $order_by;\n\t}", "public function sort($field, $order = 1)\n {\n $this->sort[$field] = $order;\n\n return $this;\n }", "public function orderBy(){\r\n $this->orderBy = \"ORDER BY \";\r\n $args = func_get_args();\r\n foreach($args as $arg){\r\n $this->orderBy.= $this->db->formatTableName($arg);\r\n if(end($args) !== $arg){\r\n $this->orderBy.=\", \";\r\n } \r\n\r\n }\r\n return $this;\r\n }", "public function custom_column_orderby( $query ) {\n\n\t\tif ( ! isset( $_GET['post_type'] ) || 'ticket' !== $_GET['post_type'] ) {\n\t\t\treturn;\n\t\t}\n\n\t\t$fields = $this->get_custom_fields();\n\t\t$orderby = $query->get( 'orderby' );\n\n\t\tif ( ! empty( $orderby ) && array_key_exists( $orderby, $fields ) ) {\n\n\t\t\tif ( 'taxonomy' != $fields[ $orderby ]['args']['field_type'] ) {\n\t\t\t\t$query->set( 'meta_key', '_dev_' . $orderby );\n\t\t\t\t$query->set( 'orderby', 'meta_value' );\n\t\t\t}\n\n\t\t}\n\n\t}", "private function setCustomOrderBy()\n\t{\n\t\tif (!$this->useDataProvider && $this->customQuery->orderBy) {\n\t\t\t$this->orderBy = $this->customQuery->orderBy;\n\t\t} else {\n\t\t\t$this->sort = $this->customQuery->orderBy; //set $this->sort property for dataProvider sorting\n\t\t}\n\n\t\treturn $this;\n\t}", "function sortBy($field, &$array, $direction = 'asc')\n{\n usort($array, create_function('$a, $b', '\n $a = $a[\"' . $field . '\"];\n $b = $b[\"' . $field . '\"];\n\n if ($a == $b) return 0;\n\n $direction = strtolower(trim($direction));\n\n return ($a ' . ($direction == 'desc' ? '>' : '<') . ' $b) ? -1 : 1;\n '));\n\n return true;\n}", "public function orderBy( $column, $type = self::ASC )\n {\n if ( $this->invertedOrderString )\n {\n $this->invertedOrderString .= ', ';\n }\n else\n {\n $this->invertedOrderString = 'ORDER BY ';\n }\n $this->invertedOrderString .= $column . ' ' . ( $type == self::ASC ? self::DESC : self::ASC );\n return parent::orderBy( $column, $type );\n }", "protected function renderSort($field)\n {\n if ((empty(Request::get($this->sort_param)) && $field == $this->default_field) || (Request::get($this->sort_param) == $field . ' ASC')) {\n return [' -highlight', $field . ' DESC', 'descending', Icon::get('arrow-up')];\n } elseif (Request::get($this->sort_param) == $field . ' DESC') {\n return [' -highlight', $field . ' ASC', 'ascending', ' ' . Icon::get('arrow-down')];\n } else {\n return [null, $field . ' ASC', 'ascending', null];\n }\n }" ]
[ "0.73414195", "0.7023737", "0.68529433", "0.65752697", "0.6446628", "0.641468", "0.6392131", "0.6306023", "0.6282514", "0.62677413", "0.61999613", "0.6189228", "0.6186102", "0.60662365", "0.60408", "0.6035906", "0.60312444", "0.6020376", "0.6008956", "0.59658694", "0.5945983", "0.594381", "0.59414095", "0.5935962", "0.59108114", "0.5818767", "0.57897717", "0.5773584", "0.5751107", "0.57133645", "0.56946194", "0.56827337", "0.56640637", "0.5647221", "0.5646604", "0.5643928", "0.56408054", "0.56112754", "0.5593523", "0.5586684", "0.556672", "0.55343395", "0.5522337", "0.5520464", "0.5492004", "0.54771346", "0.5472144", "0.5466654", "0.5465897", "0.545465", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54496336", "0.54403824", "0.5434459", "0.5426466", "0.54150337", "0.5409243", "0.53923076", "0.53462446", "0.5343025", "0.5333604", "0.5317889", "0.5304128", "0.5296017", "0.52862936", "0.52755743", "0.52574843", "0.5256434", "0.5246664", "0.5217517", "0.52118427", "0.5201991", "0.51909786", "0.5189132", "0.5167181", "0.51634777" ]
0.7079249
1
Add another Select query to UNION to this one. Union queries consist of two or more queries whose results are effectively concatenated together. Queries will be UNIONed in the order they are specified, with this object's query coming first. Duplicate columns will be discarded. All forms of UNION are supported, using the second '$type' argument. Note: All queries UNIONed together must have the same field structure, in the same order. It is up to the caller to ensure that they match properly. If they do not, an SQL syntax error will result.
Добавьте еще один Select-запрос в UNION к этому. Запросы UNION состоят из двух или более запросов, результаты которых эффективно объединяются. Запросы будут объединяться в порядке их указания, с этим запросом идущим первым. Дублирующиеся столбцы будут удалены. Все виды UNION поддерживаются, используя второй аргумент '$type'. Примечание: Все объединяемые запросы должны иметь одинаковую структуру полей в том же порядке. На соответствие этим требованиям обязан проверять вызывающий код. Если они не соответствуют, возникнет ошибка синтаксиса SQL.
public function union(SelectInterface $query, $type = '');
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addQueryToUnion() {\n if (empty($this->query)) {\n throw new \\Exception('Cannot add an empty query to union', 500);\n }\n\n $this->union[] = $this->query;\n // Reset all vars\n $this->query = '';\n $this->where = '';\n $this->sort = '';\n\n return $this;\n }", "public function union($sql)\n\t{\n\t\t$this->query->union[] = $sql;\n\t\treturn $this->query;\n\t}", "public function union($query, $overwrite = false);", "public function buildUnionQuery($type = 'DISTINCT') {\n if (empty($this->union)) {\n throw new \\Exception('Cannot build a union query', 500);\n }\n\n $this->query = implode(\" UNION {$type} \", $this->union);\n $this->union = [];\n\n return $this;\n }", "public function union(AbstractQueryBuilder $select, $isUnionAll = false)\n {\n $this->builderCache->store(($isUnionAll\n ? 'union_all'\n : 'union'), $select->getSqlStatement());\n\n return $this;\n }", "public function union($query, $all);", "public function union(): self;", "public function unionAll($query, $overwrite = false);", "function mUNION(){\n try {\n $_type = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$UNION;\n $_channel = Erfurt_Sparql_Parser_Sparql11_Update_Tokenizer11::$DEFAULT_TOKEN_CHANNEL;\n // Tokenizer11.g:206:3: ( 'union' ) \n // Tokenizer11.g:207:3: 'union' \n {\n $this->matchString(\"union\"); \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 abstract function get_union();", "function union($table){\n\t\t$this->union[] = $table;\t\n\t\treturn $this;\t\n\t}", "public function union(Builder $subquery)\n {\n array_push($this->union, $this->syntax->selectSyntax($subquery));\n $this->parameters = array_merge($this->parameters, $subquery->getParameters());\n \n return $this;\n }", "public function union($query, $distinct = null)\n\t{\n\t\tif (!$query instanceof JDatabaseQuery) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Apply the distinct flag to the union if set.\n\t\tif ($distinct !== null) {\n\t\t\t$query->unionDistinct = (bool) $distinct;\n\t\t}\n\n\t\t// Clear the ORDER BY clause in unioned query.\n\t\t$query->clear('order');\n\n\t\t// Add the query to union.\n\t\t$this->_union[] = $query;\n\n\t\treturn $this;\n\t}", "public function union(Query $query, $flag = null) {\n if ($flag === Dialect::ALL || $flag === Dialect::DISTINCT) {\n $query->attribute('flag', $flag);\n }\n\n return $this->_addCompound(Dialect::UNION, $query);\n }", "public function addSelect($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', $selects, true);\n }", "public function union($query, $all = false)\n {\n throw new NotImplementedException('Joins are not implemented in Crate');\n }", "public function select( $select ) {\n $args = func_get_args();\n\n $this->_type = self::TYPE_SELECT;\n\n foreach( $args AS $arg ) {\n $this->_select[] = $arg;\n }\n\n return $this;\n }", "public function addObj($_select, $_where = array(), $_order = \"\", $_limit = 30, $_offset = 0)\n {\n if (!$_select) {\n return false;\n }\n if ($_where) {\n $_select->where($_where);\n }\n if ($_order) {\n $_select->order($_order);\n }\n $_select->limit($_limit);\n $_select->offset($_offset);\n return $_select;\n }", "public function addSelect($select = null)\n {\n return $this->queryBuilder->addSelect($select);\n }", "protected function _transformQuery()\n {\n if (!$this->_dirty || $this->_type !== 'select') {\n return;\n }\n\n if (empty($this->_parts['from'])) {\n $this->from([$this->_repository->getAlias() => $this->_repository->table()]);\n }\n $this->_addDefaultFields();\n $this->getEagerLoader()->attachAssociations($this, $this->_repository, !$this->_hasFields);\n $this->_addDefaultSelectTypes();\n }", "protected function appendSql($string)\n {\n $this->selectSQL .= $string;\n return $this;\n }", "public function joinSelect(Query $other, $fieldOrExpr, $operator, $valueOrExpr, $type = 'INNER') {\r\n\t\t$this->addJoin($other, $fieldOrExpr, $operator, $valueOrExpr, $type, '( '.$other->toSQL().' ) '.$other->_salt_alias, FALSE);\r\n\t}", "private function _select(){\n $this->debugBacktrace();\n $parameter = $this->selectParam; //transfer to local variable.\n $this->selectParam = \"\"; //reset updateParam.\n\n \n \n $sql = \"\";\n if($this->hasRawSql){\n $sql = $parameter;\n $this->hasRawSql = false;\n }\n else{\n $tableName = $this->tableName;\n $this->tableName = \"\"; //reset.\n\n $columns = \"\";\n if(!isset($parameter) || empty($parameter)){\n $columns = \"*\";\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n else{\n //first check whether it has 'select' keyword\n $parameter = trim($parameter);\n $keyWord = substr($parameter,0,6);\n if(strtoupper($keyWord)==\"SELECT\") {\n $sql = $parameter;\n }\n else{\n $columns = $parameter;\n $sql = $this->_prepare_select_sql($columns,$tableName);\n }\n }\n }\n\n \n $queryObject = $this->_perform_mysql_query($sql);\n \n if(empty($this->selectModifier)){\n //No select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $quantity = 0;\n $rows = array();\n switch ($this->fetchType){\n case \"fetch_object\":\n while ($row = mysqli_fetch_object($queryObject)) {\n if(isset($tableName)){\n $meta = new stdClass();\n $meta->type = $tableName;\n $row->__meta = $meta;\n }\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_assoc\":\n while ($row = mysqli_fetch_assoc($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_array\":\n while ($row = mysqli_fetch_array($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_row\":\n while ($row = mysqli_fetch_row($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n case \"fetch_field\":\n while ($row = mysqli_fetch_field($queryObject)) {\n $rows[] = $row;\n $quantity++;\n }\n break;\n }\n\n if($quantity>0){\n mysqli_free_result($queryObject);\n }\n\n return $rows;\n //<----No select modifier (first, firstOrDefault, single, singleOrDefault) found \n }\n else{ \n //select modifier (first, firstOrDefault, single, singleOrDefault) found ---->\n $selectModifier = $this->selectModifier;\n $this->selectModifier = \"\";\n $row;\n switch($selectModifier){\n case \"first\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n break;\n \n case \"firstOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n break;\n\n case \"single\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n throw new ZeroException(\"No data found.\");\n }\n if($numRows > 1){\n throw new ZeroException(\"Multiple records found.\");\n }\n break;\n\n case \"singleOrNull\":\n $numRows = mysqli_num_rows($queryObject);\n if($numRows == 0){\n return NULL;\n }\n if($numRows > 1){\n return NULL;\n }\n break;\n }\n\n return $this->_prepareSingleRecord($queryObject);\n //<---- select modifier (first, firstOrDefault, single, singleOrDefault) found *212*062#\n }\n }", "public function mergeQuery(array $queryToBeAppended);", "public function addSelect(string ...$columns)\n {\n $this->select = array_merge($this->select, $columns);\n\n return $this;\n }", "public function union(Statement $statement)\n\t\t{\n\t\t\t$this->unions[] = $statement;\n\t\t\treturn $this;\n\t\t}", "public function assemble()\n {\n $queryString = array();\n\n $queryString[] = $this->query['type'];\n\n // Select query\n if ($this->query['type'] == \"SELECT\"\n or $this->query['type'] == \"SELECT DISTINCT\") {\n // Build columns to select\n $queryString[] = $this->buildSelectColumns();\n\n // From\n $queryString[] = \"FROM `{$this->query['table']}`\";\n\n // Joins\n if (array_key_exists('joins', $this->query)) {\n $queryString[] = $this->buildJoins();\n }\n\n // Where\n $queryString[] = $this->buildWhere();\n\n // Custom SQL\n if (array_key_exists('sql', $this->query)) {\n $queryString[] = $this->query['sql'];\n }\n\n // Order by\n if (array_key_exists('order_by', $this->query)) {\n $queryString[] = \"ORDER BY \" . implode(\", \", $this->query['order_by']);\n }\n }\n // Insert\n elseif ($this->query['type'] == \"INSERT INTO\") {\n // Table\n $queryString[] = \"`{$this->query['table']}`\";\n\n // Get the columns and values\n $columns = $values = array();\n foreach ($this->query['data'] as $column => $value) {\n $columns[] = $this->columnName($column);\n $values[] = $this->processValue($value);\n }\n\n // Add columns and values to query\n $queryString[] = \"(\" . implode(',', $columns) . \")\";\n $queryString[] = \"VALUES (\" . implode(',', $values) . \")\";\n }\n // Update\n elseif ($this->query['type'] == \"UPDATE\") {\n // Table\n $queryString[] = \"`{$this->query['table']}`\";\n\n // Set values\n $values = array();\n foreach ($this->query['data'] as $column => $value) {\n // Process column name\n $column = $this->columnName($column);\n\n // Add value to bind queue\n $valueBindKey = \"new_\" . str_replace(array('.', '`'), array('_', ''), $column);\n $this->valuesToBind[$valueBindKey] = $value;\n\n // Add to values\n $values[] = $column . \" = :{$valueBindKey}\";\n }\n\n // Add values to query\n $queryString[] = \"SET \" . implode(\", \", $values);\n\n $queryString[] = $this->buildWhere();\n }\n // Delete from\n elseif ($this->query['type'] == \"DELETE\") {\n // Table\n $queryString[] = \"FROM `{$this->query['table']}`\";\n\n // Where\n $queryString[] = $this->buildWhere();\n }\n\n return implode(\" \", str_replace(\"{prefix}\", $this->prefix, $queryString));\n }", "private function makeSelectAndFrom()\r\n\t{\r\n\t\t// Build SQL\r\n\t\t$sql = 'SELECT ';\r\n\t\r\n\t\t// Add custom fields (subqueries)\r\n\t\tif ($this->hasCustomFields())\r\n\t\t{\r\n\t\t\t// Find custom fields\r\n\t\t\tforeach ($this->fields as $field)\r\n\t\t\t{\r\n\t\t\t\tif ($field instanceOf CustomField)\r\n\t\t\t\t{\r\n\t\t\t\t\t$sql .= '(' . $field->query . ') AS `' . $field->name . '`, ';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\t\tif (!$this->hasForeignFields())\r\n\t\t{\r\n\t\t\tif (isset($this->selectFields))\r\n\t\t\t{\r\n\t\t\t\t// Use custom field selection\r\n\t\t\t\t$sql .= implode(', ', $this->selectFields) . ' ';\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Take all fields\r\n\t\t\t\t$sql .= '`'.$this->name.'`.* ';\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t$sql .= 'FROM `'.$this->name.'` ';\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\t// Get foreign fields\r\n\t\t\t$cols = array();\r\n\t\r\n\t\t\tif (isset($this->selectFields))\r\n\t\t\t{\r\n\t\t\t\t// Use custom field selection\r\n\t\t\t\tforeach ($this->selectFields as $field)\r\n\t\t\t\t{\r\n\t\t\t\t\t$cols[] = $field;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\t// Take all fields\r\n\t\t\t\t$cols[] = 't1.*';\r\n\t\t\t}\r\n\t\r\n\t\t\t$from_sql = 'FROM `'.$this->name.'` t1 ';\r\n\t\t\t$joined = array();\r\n\t\t\t$joins = array();\r\n\t\t\t$alias_no = 2;\r\n\t\t\t$tables[] = array('table' => $this->name, 'alias' => 't1');\r\n\t\r\n\t\t\t// Iterate over fields\r\n\t\t\tforeach ($this->fields as &$field)\r\n\t\t\t{\r\n\t\t\t\t$use_alias = false;\r\n\t\r\n\t\t\t\tif ($field instanceof ForeignField)\r\n\t\t\t\t{\r\n\t\t\t\t\t// Check if foreign field should be included, if select fields were set\r\n\t\t\t\t\tif (isset($this->selectFields))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$found = false;\r\n\t\t\t\t\t\tforeach ($this->selectFields as $sel_field)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (str_contains($sel_field, $field->name))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$found = true;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (!$found)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\t// Find out what kind of join it should be (INNER or LEFT)\r\n\t\t\t\t\t$join_type = strtoupper($field->joinType);\r\n\t\r\n\t\t\t\t\t// Check if it's a join between two foreign tables\r\n\t\t\t\t\tif ($field->joinFromTable == null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t// Join between this table and other table\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Check if we need to make a new join\r\n\t\t\t\t\t\t$this_join = array(\r\n\t\t\t\t\t\t\t'from_table' => $this->name, \r\n\t\t\t\t\t\t\t'to_table' => $field->table,\r\n\t\t\t\t\t\t\t'from' => $field->joinFrom, \r\n\t\t\t\t\t\t\t'to' => $field->joinTo\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (!$this->CheckJoinExists($this_join, $joins))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table .'` t'.$alias_no.' ON t1.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t$joins[] = $this_join;\r\n\t\t\t\t\t\t\t$use_alias = true;\r\n\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{\r\n\t\t\t\t\t\t// Join between two other tables\r\n\t\r\n\t\t\t\t\t\t// Check if we need to make a new join\r\n\t\t\t\t\t\t$this_join = array(\r\n\t\t\t\t\t\t\t'from_table' \t=> $this->table_name, \r\n\t\t\t\t\t\t\t'to_table' \t\t=> $field->foreign_field->table,\r\n\t\t\t\t\t\t\t'from' \t\t\t=> $field->foreign_field->join_from, \r\n\t\t\t\t\t\t\t'to' \t\t\t=> $field->foreign_field->join_to\r\n\t\t\t\t\t\t);\r\n\t\t\t\t\t\tif (!$this->checkJoinExists($this_join, $joins)) \r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (($alias = $this->tableHasAlias($field->table, $tables)) !== false) \r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t$from_sql .= $join_type.' JOIN `'.$field->table.'` t'.$alias_no.' ON '.$alias.'.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\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$from_sql .= $join_type.' JOIN `'.$field->table.'` t'.$alias_no.' ON `'.$field->joinFromTable.'`.`'.$field->joinFrom.'` = t'.$alias_no.'.`'.$field->joinTo.'` ';\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t$joins[] = $this_join;\r\n\t\t\t\t\t\t\t$use_alias = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\r\n\t\t\t\t\tif ($use_alias)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t$cols[] = 't'.$alias_no.'.`'.$field->foreignFieldName .'` AS `'.$field->name.'`';\r\n\t\t\t\t\t\t$tables[] = array('table' => $field->table, 'alias' => 't'.$alias_no);\r\n\t\t\t\t\t\t$alias_no++;\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\t// Check if table has alias\r\n\t\t\t\t\t\tif (($alias = $this->tableHasAlias($field->table, $tables)) !== false)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t$cols[] = $alias.'.`'.$field->foreignFieldName.'` AS `'.$field->name .'`';\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\t$cols[] = '`'.$field->table.'`.`'.$field->foreignFieldName.'` AS `'.$field->name.'`';\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t$this->tableAliases = $tables;\r\n\t\r\n\t\t\t$sql .= implode(', ', $cols).' '.$from_sql;\r\n\t\r\n\t\t\t$this->table_aliases = $tables;\r\n\t\t}\r\n\t\r\n\t\treturn $sql;\r\n\t}", "protected function wrapUnion($sql): string\n {\n return '('.$sql.')';\n }", "protected function _compile_select($select_override = FALSE)\r\n\t{\r\n // Combine any cached components with the current statements\r\n $this->_merge_cache();\r\n\r\n // Write the \"select\" portion of the query\r\n if ($select_override !== FALSE)\r\n {\r\n $sql = $select_override;\r\n }\r\n else\r\n {\r\n $sql = ( ! $this->qb_distinct) ? 'SELECT ' : 'SELECT DISTINCT ';\r\n\r\n if (count($this->qb_select) === 0)\r\n {\r\n $sql .= '*';\r\n }\r\n else\r\n {\r\n // Cycle through the \"select\" portion of the query and prep each column name.\r\n // The reason we protect identifiers here rather then in the select() function\r\n // is because until the user calls the from() function we don't know if there are aliases\r\n foreach ($this->qb_select as $key => $val)\r\n {\r\n $no_escape = isset($this->qb_no_escape[$key]) ? $this->qb_no_escape[$key] : NULL;\r\n $this->qb_select[$key] = $this->protect_identifiers($val, FALSE, $no_escape);\r\n }\r\n\r\n $sql .= implode(', ', $this->qb_select);\r\n }\r\n }\r\n\r\n // Write the \"FROM\" portion of the query\r\n if (count($this->qb_from) > 0)\r\n {\r\n $sql .= \"\\nFROM \".$this->_from_tables();\r\n }\r\n\r\n // Write the \"JOIN\" portion of the query\r\n if (count($this->qb_join) > 0)\r\n {\r\n $sql .= \"\\n\".implode(\"\\n\", $this->qb_join);\r\n }\r\n\r\n $sql .= $this->_compile_wh('qb_where')\r\n .$this->_compile_group_by()\r\n .$this->_compile_wh('qb_having')\r\n .$this->_compile_order_by(); // ORDER BY\r\n\r\n // LIMIT\r\n if ($this->qb_limit)\r\n {\r\n $sql = $this->_limit($sql.\"\\n\");\r\n }\r\n\r\n // ----------------------------------------------------------------\r\n\r\n // Write the \"LOCK IN SHARE MODE\" portion of the query\r\n\r\n if ($this->qb_lock_in_share_mode)\r\n {\r\n $sql .= \"\\nLOCK IN SHARE MODE\";\r\n }\r\n\r\n // ----------------------------------------------------------------\r\n\r\n // Write the \"LOCK IN SHARE MODE\" portion of the query\r\n\r\n if ($this->qb_for_update)\r\n {\r\n $sql .= \"\\nFOR UPDATE\";\r\n }\r\n\r\n return $sql;\r\n\t}", "protected function RetSelect() {\n\n $return = \"SELECT\";\n\n if ($this->\n distinct) {\n\n $return .= \" DISTINCT\";\n }\n\n $columnsArr = [];\n\n foreach ($this->\n columns as $key => $value) {\n\n if (is_string($value)) {\n\n $columnsArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $columnsArr[] = \"(\" . $value['subquery']->\n Generate() . \")\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else if (isset($value['value'])) {\n\n $columnsArr[] = \"'{$value['value']}'\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n } else {\n\n $columnsArr[] = \"{$value['column']}\" . (isset($value['label']) &&\n is_string($value['label']) ? \" AS \\\"{$value['label']}\\\"\" : \"\");\n }\n }\n\n if (count($columnsArr)) {\n\n $return .= \" \" . implode($columnsArr, \", \");\n } else {\n\n $return .= \" *\";\n }\n\n\n $tablesStr = \"\";\n\n foreach ($this->\n tables as $key => $value) {\n\n if (is_string($value)) {\n\n $tablesStr .= \", $value\";\n } else {\n\n if (!(isset($value['table']) &&\n $value['table'] != \"\") &&\n isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $value['table'] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n\n if (!isset($value['alias'])) {\n\n throw new \\Exception(\"Error: Alias required in case of subquery to be used in from clause.\");\n }\n } else {\n\n $value['table'] = \"{$value['table']}\";\n }\n\n if (isset($value['alias'])) {\n\n $value['alias'] = \"`{$value['alias']}`\";\n }\n\n if (!isset($value['table']) ||\n $value['table'] == \"\") {\n\n throw new \\Exception(\"Error: Tables not properly provided in QueryHelper.\");\n }\n\n if (!isset($value['jointype'])) {\n\n $tablesStr .= \", \" . $value['table'];\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n } else {\n\n switch ($value['jointype']) {\n case 'j':\n\n $tablesStr .= \" JOIN \" . $value['table'];\n break;\n\n case 'ij':\n\n $tablesStr .= \" INNER JOIN \" . $value['table'];\n break;\n\n case 'cj':\n\n $tablesStr .= \" CROSS JOIN \" . $value['table'];\n break;\n\n case 'sj':\n\n $tablesStr .= \" STRAIGHT_JOIN \" . $value['table'];\n break;\n\n case 'lj':\n\n $tablesStr .= \" LEFT JOIN \" . $value['table'];\n break;\n\n case 'rj':\n\n $tablesStr .= \" RIGHT JOIN \" . $value['table'];\n break;\n\n case 'nj':\n\n $tablesStr .= \" NATURAL JOIN \" . $value['table'];\n break;\n\n case 'nlj':\n\n $tablesStr .= \" NATURAL LEFT JOIN \" . $value['table'];\n break;\n\n case 'nrj':\n\n $tablesStr .= \" NATURAL RIGHT JOIN \" . $value['table'];\n break;\n\n case 'loj':\n\n $tablesStr .= \" LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'roj':\n\n $tablesStr .= \" RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nloj':\n\n $tablesStr .= \" NATURAL LEFT OUTER JOIN \" . $value['table'];\n break;\n\n case 'nroj':\n\n $tablesStr .= \" NATURAL RIGHT OUTER JOIN \" . $value['table'];\n break;\n\n default:\n break;\n }\n\n if (isset($value['alias'])) {\n\n $tablesStr .= \" AS \" . $value['alias'];\n }\n\n if (isset($value['joinconditions']) &&\n count($value['joinconditions'])) {\n\n $tablesStr .= $this->\n WhereClause($value['joinconditions'], 1);\n }\n }\n }\n }\n\n $return .= \" FROM \" . ltrim($tablesStr, \", \");\n\n\n if (count($this->\n where)) {\n\n $return .= $this->\n WhereClause($this->\n where);\n }\n\n\n $groupsArr = [];\n\n foreach ($this->\n group as $key => $value) {\n\n if (is_string($value)) {\n\n $groupsArr[] = \"{$value}\";\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $groupsArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\";\n } else if (isset($value['value'])) {\n\n $value['value'] = $this->\n connection->\n GetConn()->\n real_escape_string($value['value']);\n $groupsArr[] = \"'{$value['value']}'\";\n } else {\n\n $groupsArr[] = \"{$value['column']}\";\n }\n }\n\n if (count($groupsArr)) {\n\n $return .= \" GROUP BY \" . implode($groupsArr, \", \");\n }\n\n\n if (count($this->\n having)) {\n\n $return .= $this->\n WhereClause($this->\n having, 2);\n }\n\n\n $ordersArr = [];\n\n foreach ($this->\n order as $key => $value) {\n\n if (is_string($value)) {\n\n $ordersArr[] = $value;\n } else if (isset($value['subquery']) &&\n $value['subquery'] instanceof \\FluitoPHP\\Database\\DBQueryHelper &&\n $value['subquery']->\n IsSelect()) {\n\n $ordersArr[] = \"(\" . rtrim($value['subquery']->\n Generate(), ';') . \")\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else if (isset($value['value'])) {\n\n $ordersArr[] = \"'{$value['value']}'\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n } else {\n\n $ordersArr[] = \"{$value['column']}\" . (isset($value['type']) &&\n $value['type'] == 'd' ? \" DESC\" : \"\");\n }\n }\n\n if (count($ordersArr)) {\n\n $return .= \" ORDER BY \" . implode($ordersArr, \", \");\n }\n\n if ($this->\n perpage > 0) {\n\n if ($this->\n page < 1) {\n\n $this->\n page = 1;\n }\n\n $startcount = $this->\n perpage * ($this->\n page - 1);\n\n $return .= \" LIMIT {$startcount}, {$this->\n perpage}\";\n }\n\n return $return . \";\";\n }", "protected function _compile_select($select_override = FALSE)\n\t{\n\t\t// Combine any cached components with the current statements\n\t\t$this->_merge_cache();\n\n\t\t// Write the \"select\" portion of the query\n\t\tif ($select_override !== FALSE)\n\t\t{\n\t\t\t$sql = $select_override;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sql = ( ! $this->qb_distinct) ? 'SELECT ' : 'SELECT DISTINCT ';\n\n\t\t\tif (count($this->qb_select) === 0)\n\t\t\t{\n\t\t\t\t$sql .= '*';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Cycle through the \"select\" portion of the query and prep each column name.\n\t\t\t\t// The reason we protect identifiers here rather than in the select() function\n\t\t\t\t// is because until the user calls the from() function we don't know if there are aliases\n\t\t\t\tforeach ($this->qb_select as $key => $val)\n\t\t\t\t{\n\t\t\t\t\t$no_escape = isset($this->qb_no_escape[$key]) ? $this->qb_no_escape[$key] : NULL;\n\t\t\t\t\t$this->qb_select[$key] = $this->protect_identifiers($val, FALSE, $no_escape);\n\t\t\t\t}\n\n\t\t\t\t$sql .= implode(', ', $this->qb_select);\n\t\t\t}\n\t\t}\n\n\t\t// Write the \"FROM\" portion of the query\n\t\tif (count($this->qb_from) > 0)\n\t\t{\n\t\t\t$sql .= \"\\nFROM \".$this->_from_tables();\n\t\t}\n\n\t\t// Write the \"JOIN\" portion of the query\n\t\tif (count($this->qb_join) > 0)\n\t\t{\n\t\t\t$sql .= \"\\n\".implode(\"\\n\", $this->qb_join);\n\t\t}\n\n\t\t$sql .= $this->_compile_wh('qb_where')\n\t\t\t.$this->_compile_group_by()\n\t\t\t.$this->_compile_wh('qb_having')\n\t\t\t.$this->_compile_order_by(); // ORDER BY\n\n\t\t// LIMIT\n\t\tif ($this->qb_limit OR $this->qb_offset)\n\t\t{\n\t\t\treturn $this->_limit($sql.\"\\n\");\n\t\t}\n\n\t\treturn $sql;\n\t}", "public function getUnionType() : UnionType\n {\n if (null !== ($union_type = $this->getFutureUnionType())) {\n $this->getUnionType()->addUnionType($union_type);\n }\n\n return parent::getUnionType();\n }", "protected function _sql_select ( /* void */ )\n {\n /*\n Start SQL query.\n */\n $sql = ($this->bDistinct) ? 'SELECT DISTINCT ' : 'SELECT ';\n /*\n Select which fields ?\n */\n $sql .= (empty($this->aFields)) ? '*' : implode(', ', $this->aFields);\n /*\n From which tables ?\n */\n $sql .= (empty($this->aTables)) ? '' : \"\\nFROM \" . implode(', ', $this->aTables);\n /*\n Join something ?\n */\n if (!empty($this->aJoin))\n {\n foreach ($this->aJoin as $j)\n {\n $sql .= \"\\n{$j[0]} JOIN {$j[1]} ON {$j[2]}\";\n }\n }\n /*\n Where ?\n */\n if (!empty($this->aWhere))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aWhere);\n $sql .= (!empty($this->aLike)) ? implode(\"\\n\", $this->aLike) : '';\n }\n elseif (!empty($this->aLike))\n {\n $sql .= \"\\nWHERE \" . implode(\"\\n\", $this->aLike);\n }\n /*\n Group by ?\n */\n if (!empty($this->aGroupBy))\n {\n $sql .= \"\\nGROUP BY \" . implode(', ', $this->aGroupBy);\n }\n /*\n Having ?\n */\n if (!empty($this->aHaving))\n {\n $sql .= \"\\nHAVING \";\n foreach ($this->aHaving as $i)\n {\n $sql .= \"\\n{$i[0]}{$i[1]} {$i[2]}\";\n }\n }\n /*\n Order by ?\n */\n if (!empty($this->aOrderBy))\n {\n $sql .= \"\\nORDER BY \";\n foreach ($this->aOrderBy as $i)\n {\n $sql .= \"{$i[0]} {$i[1]}, \";\n }\n $sql = trim($sql, ', ');\n }\n /*\n Query limit ?\n */\n if ($this->nLimit !== false)\n {\n if ($this->nOffset !== false)\n {\n $sql .= \"\\nLIMIT \" . $this->nOffset . ', ' . $this->nLimit;\n }\n else\n {\n $sql .= \"\\nLIMIT 0, \" . $this->nLimit;\n }\n }\n /*\n Return SQL.\n */\n return $sql;\n }", "public function select($select = '*')\n {\n $this->_type = db::SELECT;\n\n if (is_string($select))\n {\n $select = explode(',', $select);\n }\n elseif (is_object($select))\n {\n $this->_select[] = $select;\n }\n\n foreach ($select as $val)\n {\n if ($val !== '')\n {\n $this->_select[] = $val;\n }\n }\n\n return $this;\n }", "protected function _addCompound($type, Query $query) {\n if ($query->getType() !== self::SELECT) {\n throw new InvalidQueryException(sprintf('Only a select query can be used with %s', $type));\n }\n\n $query->attribute('compound', $type);\n\n $this->_compounds[] = $query;\n\n return $this;\n }", "abstract public function prepareSelect();", "public function addType($type)\n {\n $this->type = $this->type . Collection::OPERATOR_OR . $type;\n $this->types = null;\n $this->content = null;\n return $this;\n }", "public function makeSQL( $type ) {\n $this->pager->setTotal( $this->count() );\n $this->pager->setQuery( $this );\n return parent::makeSQL( $type );\n }", "public function selectUserFilesUnionOtherFiles($viewData = null) {\n\t\t$DB = $this->con->query(\"SELECT * FROM files WHERE user_id = {$_SESSION['user_id']} UNION SELECT * FROM files WHERE user_id != {$_SESSION['user_id']}\")->fetchAll(\\PDO::FETCH_ASSOC);\n\t\treturn $DB;\n\t}", "public function testTranslationWithUnionQuery(): void\n {\n $table = $this->getTableLocator()->get('Comments');\n /** @var \\Cake\\ORM\\Table|\\Cake\\ORM\\Behavior\\TranslateBehavior $table */\n $table->addBehavior('Translate', ['fields' => ['comment']]);\n $table->setLocale('spa');\n $query = $table->find()->where(['Comments.id' => 6]);\n $query2 = $table->find()->where(['Comments.id' => 5]);\n $query->union($query2);\n $results = $query->all()->sortBy('id', SORT_ASC)->toList();\n $this->assertCount(2, $results);\n\n $this->assertSame('First Comment for Second Article', $results[0]->comment);\n $this->assertSame('Second Comment for Second Article', $results[1]->comment);\n }", "public function unionQueries( $sqls, $all ) {\n\t\t$glue = $all ? ') UNION ALL (' : ') UNION (';\n\n\t\treturn '(' . implode( $glue, $sqls ) . ')';\n\t}", "protected function _addSelectPart($type, Select $select)\n {\n switch ($type) {\n case 'sold':\n $select->join(array('s' => 'sales_listings'), \"s.listing_id = l.id\", 's.id AS sale_listing_id')\n ->order('s.created_at DESC')\n ->group('l.id');\n break;\n }\n\n return $select;\n }", "public function testSelectStatementAddTable()\n {\n\n $query = new Query(\"SELECT id, description FROM `test` WHERE xy > 10\", 'mysql');\n $query->from(\"abc\", Query::APPEND);\n $this->assertEquals(\"SELECT id, description FROM `test` , `abc` WHERE xy > 10\", (string)$query);\n }", "public function addSelect($name, $alias = '')\n\t{\n\t\tif (is_object($name))\n\t\t\t$name = $name->getName();\n\n\t\t// Check error\n\t\tif (isset($this->selects[$name]) && $alias == '')\n\t\t\tthrow(new RowAlreadyUsedException(\"The row [\" . $name . \"] is already added to the query. Please use an alias.\"));\n\t\tif ($alias != '' && in_array($alias, $this->selects))\n\t\t\tthrow(new AliasAlreadyUsedException(\"The alias [\" . $alias . \"] is already used.\"));\n\t\tif ($this->fromQueryString)\n\t\t\tthrow(new QueryStringAlreadySpecified(\"The query string has already been specified. You can't access query builder's functions.\"));\n\n\t\t// Add table to FORM group\n\t\t$this->selects[$name] = $alias == '' ? $name : $alias;\n\t\treturn $this;\n\t}", "public function addQuery($sql = '', $comment = '', $option = ''){\n\t\t$this->_queries[] = array(\n\t\t\t'sql' => $sql,\n\t\t\t'comment' => $comment,\n\t\t\t'option' => $option\n\t\t);\n\n\t\treturn $this;\n\t}", "private function __select() {\n $from_str = $this->getFromStr();\n $field = $this->field_str;\n if (empty($field)) {\n $field = '*';\n }\n $sql = \"SELECT {$field} FROM {$from_str}\";\n if (!empty($this->join_str_list)) {\n $temp = implode(' ', $this->join_str_list);\n $sql .= \" {$temp}\";\n }\n if (!empty($this->where_str)) {\n $sql .= \" WHERE {$this->where_str}\";\n }\n if (!empty($this->group_str)) {\n $sql .= \" GROUP BY {$this->group_str}\";\n }\n if (!empty($this->order_str)) {\n $sql .= \" ORDER BY {$this->order_str}\";\n }\n if (!empty($this->limit_str)) {\n $sql .= \" LIMIT {$this->limit_str}\";\n }\n $list = $this->query($sql);\n return $list;\n }", "public function select($str = '*') \n {\n $this->_data['select'] = $str;\n $postpend = '';\n if ($this->_data['query'] !== null) {\n $postpend = $this->_data['query'];\n }\n $this->_data['query'] = 'SELECT ' . $str . $postpend;\n return $this;\n }", "public function __clone()\n {\n $this->select = clone $this->select;\n }", "public function get_select()\n {\n $flags = $this->sql_no_cache ? 'sql_no_cache' : '';\n $flags .= $this->sql_calc_found ? 'sql_calc_found_rows' : '';\n\n $fields_table = $this->alias ? $this->alias: self::quote_name($this->table);\n\n $fields = $this->fields ? join(', ', $this->fields): $fields_table.'.*';\n $from = $this->get_from();\n $join = $this->get_join();\n $where = $this->get_where();\n $having = $this->get_having();\n $order = $this->get_order();\n $group = $this->get_group();\n $limit = $this->get_limit();\n $mode = $this->for_update ? 'for update': '';\n $mode = $this->share_mode ? 'lock in share mode': '';\n // MySQL runs a needless filesort when grouping without an order clause. disable it.\n if ($group && !$order) $order = 'order by null';\n return \"select $flags $fields $from $join $where $group $having $order $limit $mode\";\n }", "function set_select_type( $type )\n\t{\n\t\t$allowed = array( MYSQL_NUM, MYSQL_BOTH, MYSQL_ASSOC );\n\t\tif ( in_array( $type, $allowed ) ) {\n\t\t\t$this->SELECT_TYPE = $type;\n\t\t}\n\t\treturn $this->SELECT_TYPE;\n\t}", "public function &getUnion();", "public function addselect($columns = \"*\", $object = null, $defaultjoin = true)\n {\n\n // save currente sequence\n $this->querysequence = $this->query;\n $this->sequenceobject = $this->object;\n\n if (is_object($columns)):\n $this->instanciateVariable($columns);\n $columns = \"*\";\n elseif (is_bool($object)):\n $defaultjoin = $object;\n elseif (is_object($object)):\n $this->instanciateVariable($object);\n endif;\n\n $this->defaultjoinsetted = $defaultjoin;\n $this->query = \" select $columns from `\" . $this->table . \"` \";\n\n if ($defaultjoin) {\n\n if (!empty($this->entity_link_list)) {\n foreach ($this->entity_link_list as $entity_link) {\n $this->query .= \" left join `\" . strtolower(get_class($entity_link)) . \"` on \" . strtolower(get_class($entity_link)) . \".id = \" . $this->table . \".\" . strtolower(get_class($entity_link)) . \"_id\";\n }\n }\n }\n\n return $this;\n }", "protected function _translateSelect(Query $query, JsonTypeMap &$map): Query\n {\n $fields = $query->clause('select');\n $updatedFields = [];\n\n // Handle alias for selected datfields\n foreach ($fields as $alias => $field) {\n $palias = null;\n\n // If field is an expression, translate it\n if ($field instanceof ExpressionInterface) {\n $updatedFields[$alias] = $this->translateExpression($field, $query, $map);\n continue;\n }\n\n if (is_int($field)) {\n $updatedFields[$alias] = $field;\n continue;\n }\n\n // Regular field case\n if (!$this->isDatField($field)) {\n $updatedFields[$alias] = $this->_translateRawSQL($field, $query, $map);\n continue;\n }\n\n if (is_integer($alias) || $this->isDatField($alias)) {\n // No alias given or autogenerated, generates a valid one or query will fail\n // Also clean CakePHP processed alias to keep JSON structure\n // This will only work if using \\Cake\\ORM\\Query\n\n // If field is selected without alias, we must link type to previous cakephp alias\n $palias = is_string($alias) ? $alias : null;\n $alias = $this->aliasDatField($field);\n\n // Restore model alias\n if ($query instanceof ORMQuery) {\n $alias = sprintf('%s__%s', $this->_getAliasFromQuery($query), $alias);\n }\n } else {\n // When aliasing datfields, select type map will only receive alias with copied type\n // We must get back type from main type map and clears select type map\n $type = $query->getTypeMap()->toArray()[$field] ?? null;\n if ($type) {\n // Add back JSON type to parse alias correctly\n $map\n ->addJsonType($field, $type)\n ->clearRegularTypeMap($alias);\n }\n }\n\n // Update alias target\n $map->setAlias($palias ?? $field, $alias);\n $updatedFields[$alias] = $this->translateDatField($field);\n }\n\n $query->select($updatedFields, true);\n\n return $query;\n }", "function querySelect( $query, &$resultContainer )\r\n\t{\r\n\t\t$resultStm = $this->link->query( $query.\";\", PDO::FETCH_CLASS, \"stdclass\" );\r\n\t\treturn $this->_processSelectResult($resultStm, $resultContainer, $query);\r\n\t}", "public final function simplify(Context\\Context $ctx_ = null):self {\n $ctx = $ctx_ ?? new Context\\Context(new NullErrorReceiver());\n $union = new Union($this);\n foreach ($this->split() as $type) {\n $union = $union->addType($type, $ctx);\n }\n return $union;\n }", "public function performSelectTypeAnalysis() {\n\t\t$infos = array(\n\t\t\t'SIMPLE' => 'Simple SELECT (not using UNION or subqueries)',\n\t\t\t'PRIMARY' => 'Outermost SELECT',\n\t\t\t'UNION' => 'Second or later SELECT statement in a UNION',\n\t\t\t'DEPENDENT' => 'UNION\tSecond or later SELECT statement in a UNION, dependent on outer query',\n\t\t\t'UNION RESULT' => 'Result of a UNION.',\n\t\t\t'SUBQUERY' => 'First SELECT in subquery',\n\t\t\t'DEPENDENT SUBQUERY' => 'First SELECT in subquery, dependent on outer query',\n\t\t\t'DERIVED' => 'Derived table SELECT (subquery in FROM clause)',\n\t\t\t'MATERIALIZED' => 'Materialized subquery',\n\t\t\t'UNCACHEABLE SUBQUERY' => 'A subquery for which the result cannot be cached and must be re-evaluated for each row of the outer query',\n\t\t\t'UNCACHEABLE UNION' => 'The second or later select in a UNION that belongs to an uncacheable subquery (see UNCACHEABLE SUBQUERY)'\n\t\t);\n\t\t$this->cells['select_type']->info = $infos[$this->cells['select_type']->v];\n\t}", "public function select($sql) {\n $this->__select__ = $sql;\n return $this;\n }", "protected function getSelectAppend($new_sql = '', $full_sql = '')\n {\n if (trim($new_sql) === '') {\n return $full_sql;\n }\n\n if (trim($full_sql) === '') {\n $full_sql = $this->getDistinct() . $new_sql;\n } else {\n $full_sql .= PHP_EOL . $new_sql;\n }\n\n return $full_sql;\n }", "public function assembleSelect(Select $select, array &$values = [])\n {\n $select = clone $select;\n\n $this->emit(static::ON_ASSEMBLE_SELECT, [$select]);\n\n $sql = array_filter([\n $this->buildWith($select->getWith(), $values),\n $this->buildSelect($select->getColumns(), $select->getDistinct(), $values),\n $this->buildFrom($select->getFrom(), $values),\n $this->buildJoin($select->getJoin(), $values),\n $this->buildWhere($select->getWhere(), $values),\n $this->buildGroupBy($select->getGroupBy(), $values),\n $this->buildHaving($select->getHaving(), $values),\n $this->buildOrderBy($select->getOrderBy(), $values),\n $this->buildLimitOffset($select->getLimit(), $select->getOffset())\n ]);\n\n $sql = implode($this->separator, $sql);\n\n $unions = $this->buildUnions($select->getUnion(), $values);\n if ($unions) {\n list($unionKeywords, $selects) = $unions;\n\n if ($sql) {\n $sql = \"($sql)\";\n\n $requiresUnionKeyword = true;\n } else {\n $requiresUnionKeyword = false;\n }\n\n do {\n $unionKeyword = array_shift($unionKeywords);\n $select = array_shift($selects);\n\n if ($requiresUnionKeyword) {\n $sql .= \"{$this->separator}$unionKeyword{$this->separator}\";\n }\n\n $sql .= \"($select)\";\n\n $requiresUnionKeyword = true;\n } while (! empty($unionKeywords));\n }\n\n $this->emit(static::ON_SELECT_ASSEMBLED, [&$sql, &$values]);\n\n return [$sql, $values];\n }", "function register_graphql_union_type(string $type_name, array $config)\n {\n }", "public function add_select($columns)\r\n {\r\n if ($this->columns) {\r\n array_add($this->columns, $columns);\r\n } else {\r\n $this->select($columns);\r\n }\r\n\r\n return $this;\r\n }", "public function subQuery() {\n $query = new SubQuery(Query::SELECT, $this->getRepository());\n $query->fields(func_get_args());\n\n return $query;\n }", "public function select($data = '*') \n {\t\n // Empty out the old junk\n $this->clear();\n \n // Process our columns, if array, we need to implode to a string\n if(is_array($data))\n {\n if(count($data) > 1)\n {\n $this->sql = \"SELECT \". $this->clean( implode(', ', $data) );\n }\n else\n {\n $this->sql = \"SELECT \". $this->clean($data[0]);\n }\n }\n else\n {\n $this->sql = \"SELECT \". $this->clean($data);\n }\n return $this;\n }", "public function whereOrQuery(Query $subQuery) {\r\n\t\t$this->addWhereQuery('OR', $subQuery);\r\n\t}", "public function execute($type = Database::SELECT, $data = NULL, $as_object = NULL)\n\t{\n\t\t$query = $this->build($type);\n\t\t$meta = $this->meta();\n\t\t\n\t\t// Have we got a from for SELECTS?\n\t\tif ($type === Database::SELECT && !isset($this->_db_applied['from']))\n\t\t{\n\t\t\t$query->from($meta->table);\n\t\t}\n\t\t// All other methods require table() to be set\n\t\telse if ($type !== Database::SELECT && !isset($this->_db_applied['table']))\n\t\t{\n\t\t\t$query->table($meta->table);\n\t\t}\n\t\t\n\t\t// Perform a little arg-munging since UPDATES and INSERTS accept a data parameter\n\t\tif ($type === Database::UPDATE && is_array($data))\n\t\t{\n\t\t\t// Since we're out of the Jelly, we have to alias manually\n\t\t\tforeach($data as $column => $value)\n\t\t\t{\n\t\t\t\t$query->value($this->alias($column), $value);\n\t\t\t}\n\t\t}\n\t\telse if ($type === Database::INSERT && is_array($data))\n\t\t{\n\t\t\t// Keys have to be manually aliased\n\t\t\t$columns = array();\n\t\t\t$values = array();\n\t\t\tforeach ($data as $column => $value)\n\t\t\t{\n\t\t\t\t$columns[] = $this->alias($column);\n\t\t\t\t$values[] = $value;\n\t\t\t}\n\t\t\t\n\t\t\t$query->columns($columns);\n\t\t\t$query->values($values);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$as_object = $data;\n\t\t}\n\t\t\n\t\t// Return a StdClass. Much faster\n\t\tif ($as_object === NULL)\n\t\t{\n\t\t\t$query->as_object(get_class($this));\n\t\t}\n\t\t// Allow custom classes and such\n\t\telse \n\t\t{\n\t\t\t$query->as_object($as_object);\n\t\t}\n\t\t\n\t\treturn $query->execute($meta->db);\n\t}", "public function select()\n\t{\n\t\t$this->_query['select'] = func_get_args();\n\n\t\treturn $this;\n\t}", "function addToQuery(&$query, $tablename=\"\", $fieldaliasprefix=\"\", $rec=\"\", $level, $mode)\n {\n }", "abstract public function query($type, $sql, $asObject = false, array $params = null);", "public function\n\t\tget_select_query()\n\t{\n\t\t$query = '';\n\t\t\n\t\t$key_fields = $this->get_key_fields();\n\t\t\n\t\t#print_r($key_fields);\n\t\t\n\t\t$display_fields = $this->get_display_fields();\n\t\t\n\t\t#print_r($display_fields);\n\t\t\n\t\t$table_name = $this->get_table_name();\n\t\t\n\t\t$ordering_fields = $this->get_ordering_fields();\n\t\t\n\t\t#print_r($ordering_fields);\n\t\t\n\t\t/*\n\t\t * The select clause.\n\t\t */\n\t\t\n\t\t$select_fields = array();\n\t\t\n\t\tforeach ($key_fields as $key_field) {\n\t\t\t$select_fields[] = $key_field;\n\t\t}\n\t\t\n\t\tforeach ($display_fields as $display_field) {\n\t\t\t$select_fields[] = $display_field['name'];\n\t\t}\n\t\t\n\t\t#print_r($select_fields);\n\t\t\n\t\t$select_fields = array_unique($select_fields);\n\t\t\n\t\t#print_r($select_fields);\n\t\t\n\t\t$query .= 'SELECT ';\n\t\t\n\t\t$first = TRUE;\n\t\tforeach ($select_fields as $select_field) {\n\t\t\tif ($first) {\n\t\t\t\t$first = FALSE;\n\t\t\t} else {\n\t\t\t\t$query .= ' , ';\n\t\t\t}\n\t\t\t\n\t\t\t$query .= ' ' . $select_field . ' ';\n\t\t}\n\t\t\n\t\t/*\n\t\t * The from clause.\n\t\t */\n\t\t\n\t\t$query .= ' FROM ' . $table_name . ' ';\n\t\t\n\t\t/*\n\t\t * The order by clause.\n\t\t */\n\t\t\n\t\t$query .= ' ORDER BY ';\n\t\t\n\t\t$first = TRUE;\n\t\tforeach ($ordering_fields as $of) {\n\t\t\tif ($first) {\n\t\t\t\t$first = FALSE;\n\t\t\t} else {\n\t\t\t\t$query .= ' , ';\n\t\t\t}\n\t\t\t\n\t\t\t$query .= ' ' . $of['name'] . ' ' . $of['direction'] . ' ';\n\t\t}\n\t\t\n\t\t#echo $query;\n\t\t\n\t\treturn $query;\n\t}", "public function getUnionType(): UnionType\n {\n if (null !== ($union_type = $this->getFutureUnionType())) {\n $this->setUnionType(parent::getUnionType()->withUnionType($union_type->asNonLiteralType()));\n }\n\n return parent::getUnionType();\n }", "function addToQuery(&$query, $tablename=\"\", $fieldaliasprefix=\"\", $rec, $level, $mode)\n {\n }", "public function select($selectString = '') {\n $select = '';\n $this->type = self::TYPE_SELECT;\n if (empty($selectString)) {\n $select = \"SELECT * FROM `\" . static::$tableName . \"` \";\n } else {\n $select = \"SELECT \" . $selectString . \" FROM `\" . static::$tableName . \"` \";\n }\n $this->sql = $select;\n }", "private function addDerivedQueries(\n RequestInterface $request,\n QueryContainer $queryContainer,\n ScoreBuilder $scoreBuilder,\n Select $select,\n IndexBuilderInterface $indexBuilder\n ) {\n $matchQueries = $queryContainer->getMatchQueries();\n if (!$matchQueries) {\n $select->columns($scoreBuilder->build());\n $select = $this->createAroundSelect($select, $scoreBuilder);\n } else {\n $matchContainer = array_shift($matchQueries);\n $this->matchBuilder->build(\n $scoreBuilder,\n $select,\n $matchContainer->getRequest(),\n $matchContainer->getConditionType()\n );\n $select->columns($scoreBuilder->build());\n $select = $this->createAroundSelect($select, $scoreBuilder);\n $select = $this->addMatchQueries($request, $select, $indexBuilder, $matchQueries);\n }\n\n return $select;\n }", "public /*overrides*/ function getLimitSubquery()\n {\n $map = reset($this->_queryComponents);\n $table = $map['table'];\n $componentAlias = key($this->_queryComponents);\n\n // get short alias\n $alias = $this->getSqlTableAlias($componentAlias);\n\n $driverName = $this->_conn->getAttribute(Doctrine_Core::ATTR_DRIVER_NAME);\n\n // initialize the base of the subquery\n if (($driverName == 'oracle' || $driverName == 'oci') && $this->_isOrderedByJoinedColumn()) {\n $subquery = 'SELECT ';\n } else {\n $subquery = 'SELECT DISTINCT ';\n }\n // what about composite keys?\n if (is_array($table->getIdentifier())) {\n foreach ($table->getIdentifier() as $id) {\n $primaryKey[] = $this->_conn->quoteIdentifier($alias . '.' . $id);\n }\n $subquery .= join(', ', $primaryKey);\n } else {\n $primaryKey = $alias . '.' . $table->getColumnName($table->getIdentifier());\n $subquery .= $this->_conn->quoteIdentifier($primaryKey);\n }\n\n // pgsql & oracle need the order by fields to be preserved in select clause\n if ($driverName == 'pgsql' || $driverName == 'oracle' || $driverName == 'oci' || $driverName == 'mssql' || $driverName == 'odbc') {\n foreach ($this->_sqlParts['orderby'] as $part) {\n // Remove identifier quoting if it exists\n $e = $this->_tokenizer->bracketExplode($part, ' ');\n foreach ($e as $f) {\n if ($f == 0 || $f % 2 == 0) {\n $partOriginal = str_replace(',', '', trim($f));\n $callback = create_function('$e', 'return trim($e, \\'[]`\"\\');');\n $part = trim(implode('.', array_map($callback, explode('.', $partOriginal))));\n\n if (strpos($part, '.') === false) {\n continue;\n }\n\n // don't add functions\n if (strpos($part, '(') !== false) {\n continue;\n }\n\n // don't add primarykey column (its already in the select clause)\n if ($part !== $primaryKey) {\n $subquery .= ', ' . $partOriginal;\n }\n }\n }\n }\n }\n\n $orderby = $this->_sqlParts['orderby'];\n $having = $this->_sqlParts['having'];\n if ($driverName == 'mysql' || $driverName == 'pgsql') {\n foreach ($this->_expressionMap as $dqlAlias => $expr) {\n if (isset($expr[1])) {\n $subquery .= ', ' . $expr[0] . ' AS ' . $this->_aggregateAliasMap[$dqlAlias];\n }\n }\n } else {\n foreach ($this->_expressionMap as $dqlAlias => $expr) {\n if (isset($expr[1])) {\n foreach ($having as $k => $v) {\n $having[$k] = str_replace($this->_aggregateAliasMap[$dqlAlias], $expr[0], $v);\n }\n foreach ($orderby as $k => $v) {\n $e = explode(' ', $v);\n if ($e[0] == $this->_aggregateAliasMap[$dqlAlias]) {\n $orderby[$k] = $expr[0];\n }\n }\n }\n }\n }\n\n // Add having fields that got stripped out of select\n preg_match_all('/`[a-z0-9_]+`\\.`[a-z0-9_]+`/i', implode(' ', $having), $matches, PREG_PATTERN_ORDER);\n if (count($matches[0]) > 0) {\n $subquery .= ', ' . implode(', ', array_unique($matches[0]));\n }\n\n $subquery .= ' FROM';\n\n foreach ($this->_sqlParts['from'] as $part) {\n // preserve LEFT JOINs only if needed\n if (substr($part, 0, 9) === 'LEFT JOIN') {\n $e = explode(' ', $part);\n // Fix for http://www.doctrine-project.org/jira/browse/DC-706\n // Fix for http://www.doctrine-project.org/jira/browse/DC-594\n if (empty($this->_sqlParts['orderby']) && empty($this->_sqlParts['where']) && empty($this->_sqlParts['having']) && empty($this->_sqlParts['groupby'])) {\n continue;\n }\n }\n\n $subquery .= ' ' . $part;\n }\n\n // all conditions must be preserved in subquery\n $subquery .= ( ! empty($this->_sqlParts['where']))? ' WHERE ' . implode(' ', $this->_sqlParts['where']) : '';\n $subquery .= ( ! empty($this->_sqlParts['groupby']))? ' GROUP BY ' . implode(', ', $this->_sqlParts['groupby']) : '';\n $subquery .= ( ! empty($having))? ' HAVING ' . implode(' AND ', $having) : '';\n $subquery .= ( ! empty($orderby))? ' ORDER BY ' . implode(', ', $orderby) : '';\n\n if (($driverName == 'oracle' || $driverName == 'oci') && $this->_isOrderedByJoinedColumn()) {\n // When using \"ORDER BY x.foo\" where x.foo is a column of a joined table,\n // we may get duplicate primary keys because all columns in ORDER BY must appear\n // in the SELECT list when using DISTINCT. Hence we need to filter out the\n // primary keys with an additional DISTINCT subquery.\n // #1038\n $quotedIdentifierColumnName = $this->_conn->quoteIdentifier($table->getColumnName($table->getIdentifier()));\n $subquery = 'SELECT doctrine_subquery_alias.' . $quotedIdentifierColumnName\n . ' FROM (' . $subquery . ') doctrine_subquery_alias'\n . ' GROUP BY doctrine_subquery_alias.' . $quotedIdentifierColumnName\n . ' ORDER BY MIN(ROWNUM)';\n }\n\n // add driver specific limit clause\n $subquery = $this->_conn->modifyLimitSubquery($table, $subquery, $this->_sqlParts['limit'], $this->_sqlParts['offset']);\n\n $parts = $this->_tokenizer->quoteExplode($subquery, ' ', \"'\", \"'\");\n\n foreach ($parts as $k => $part) {\n if (strpos($part, ' ') !== false) {\n continue;\n }\n\n $part = str_replace(array('\"', \"'\", '`'), \"\", $part);\n\n if ($this->hasSqlTableAlias($part)) {\n $parts[$k] = $this->_conn->quoteIdentifier($this->generateNewSqlTableAlias($part));\n continue;\n }\n\n if (strpos($part, '.') === false) {\n continue;\n }\n\n preg_match_all(\"/[a-zA-Z0-9_]+\\.[a-z0-9_]+/i\", $part, $m);\n\n foreach ($m[0] as $match) {\n $e = explode('.', $match);\n\n // Rebuild the original part without the newly generate alias and with quoting reapplied\n $e2 = array();\n foreach ($e as $k2 => $v2) {\n $e2[$k2] = $this->_conn->quoteIdentifier($v2);\n }\n $match = implode('.', $e2);\n\n // Generate new table alias\n $e[0] = $this->generateNewSqlTableAlias($e[0]);\n\n // Requote the part with the newly generated alias\n foreach ($e as $k2 => $v2) {\n $e[$k2] = $this->_conn->quoteIdentifier($v2);\n }\n\n $replace = implode('.' , $e);\n\n // Replace the original part with the new part with new sql table alias\n $parts[$k] = str_replace($match, $replace, $parts[$k]);\n }\n }\n\n if ($driverName == 'mysql' || $driverName == 'pgsql') {\n foreach ($parts as $k => $part) {\n if (strpos($part, \"'\") !== false) {\n continue;\n }\n if (strpos($part, '__') == false) {\n continue;\n }\n\n preg_match_all(\"/[a-zA-Z0-9_]+\\_\\_[a-z0-9_]+/i\", $part, $m);\n\n foreach ($m[0] as $match) {\n $e = explode('__', $match);\n $e[0] = $this->generateNewSqlTableAlias($e[0]);\n\n $parts[$k] = str_replace($match, implode('__', $e), $parts[$k]);\n }\n }\n }\n\n $subquery = implode(' ', $parts);\n return $subquery;\n }", "private function init_consolidationAndSelect_setTsSelect()\n {\n // LOOP : each filter (table.field)\n foreach ( ( array ) $this->arr_tsFilterTableFields as $tableField )\n {\n // IF : $conf_sql['select'] doesn't contain the current tableField\n if ( strpos( $this->pObj->conf_sql[ 'select' ], $tableField ) === false )\n {\n // Add tableField to ts property SELECT\n $csvStatement = ', ' . $tableField . ' AS \\'' . $tableField . '\\'';\n $this->pObj->conf_sql[ 'select' ] = $this->pObj->conf_sql[ 'select' ] . ', ' . $csvStatement;\n // Add tableField to ts property SELECT\n // DRS\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = $tableField . ' is added to $this->pObj->conf_sql[select].';\n t3lib_div :: devlog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS\n }\n // IF : $conf_sql['select'] doesn't contain the current tableField\n // IF : $csvSelectWoFunc doesn't contain the current tableField\n if ( strpos( $this->pObj->csvSelectWoFunc, $tableField ) === false )\n {\n $this->pObj->csvSelectWoFunc = $this->pObj->csvSelectWoFunc . ', ' . $tableField;\n // DRS\n if ( $this->pObj->b_drs_filter )\n {\n $prompt = $tableField . ' is added to $this->pObj->csvSelectWoFunc.';\n t3lib_div :: devlog( '[INFO/FILTER] ' . $prompt, $this->pObj->extKey, 0 );\n }\n // DRS\n }\n // IF : $csvSelectWoFunc doesn't contain the current tableField\n }\n // LOOP : each filter (table.field)\n }", "protected function parseUnion() {\n $reader = $this->reader; // alias in local\n\n do {\n // this will ALWAYS stop our loop\n if($reader->nodeType == XMLReader::END_ELEMENT && $reader->name == 'union') {\n break;\n }\n } while($reader->read());\n\n return;\n }", "function duplicateTypeInUnion( int | string /*comment*/ | INT $var) {}", "abstract public function Query($query, $type = DBA::ASSOC);", "protected function processUnion($tokens) {\n // code which finds UNION and UNION ALL query parts\n $processor = new UnionProcessor();\n return $processor->process($tokens);\n }", "public function SELECTquery($select_fields, $from_table, $where_clause, $groupBy='', $orderBy='', $limit='') {\n \n $query = parent::SELECTquery($select_fields, $from_table, $where_clause, $groupBy, $orderBy, $limit);\n \n // trace query\n $debugQuery = str_replace(chr(9), '', $query); // removes tabs from query for better readability\n trace($debugQuery);\n #$this->logQuery($debugQuery); // activate for debugging purposes only - no logging by default for non-modifying queries like selects!\n \n return $query;\n \n }", "private function addJoinOnQuery($type, Query $other, Query $whereQuery) {\r\n\t\t//$this->joins[$other->alias]['on'][]=' '.$type.' ('.implode(' ', $whereQuery->wheres).')';\r\n\t\t$this->addJoinOnClause($other, $type, '('.implode(' ',$whereQuery->_salt_wheres).')');\r\n\t\t$this->linkBindsOf($other, ClauseType::JOIN, ClauseType::WHERE);\r\n\t}", "public function execute($result_type = QueryResultType::PDO_OBJECT, $firstOnly = false, $record_class = '', $fields_alias = '', $eagerLoading = array())\n\t{\n\t\tif ($this->fromQueryString && $result_type == QueryResultType::RECORD_OBJECT)\n\t\t\tthrow(new UnvalidResultTypeException(\"Record object result type cannot be used with query made from string. Please use query builder's functions or change result type.\"));\n\n\t\t// Retrieve result type\n\t\tif ($result_type == QueryResultType::RECORD_OBJECT && $record_class == '')\n\t\t{\n\t\t\tif (!class_exists(ucfirst($this->firstFrom) . 'Table'))\n\t\t\t\tthrow(new UnknownTable(\"The table [\" . ucfirst($this->firstFrom) . \"Table] is not part of the project model schema, and then cannot be used as result type. Please specify another result type.\"));\n\t\t\t$record_class = $this->firstFrom;\n\t\t}\n\n\t\t// Concat query string\n\t\tif (!$this->fromQueryString)\n\t\t\t$this->querystring = $this->concatQueryString();\n\n\t\t$query = $this->database->getConnection()->prepare($this->querystring);\n\t\tLogger::getInstance()->log(LoggerEntry::DATABASE, 'Query', 'Execute [' . $this->querystring . ']');\n\n\t\tEventHandler::trigger(EventTypes::ORION_BEFORE_QUERY, null);\n\t\ttry\n\t\t{\n\t\t\tif ($this->fromQueryString)\n\t\t\t\t$query->execute($this->querystring_arguments);\n\t\t\telse\n\t\t\t\t$query->execute();\n\t\t} catch (Exception $e)\n\t\t{\n\t\t\tthrow(new QueryNotValidException(\"The query [\" . $this->querystring . \"] returned the following error: \" . $e));\n\t\t}\n\t\tEventHandler::trigger(EventTypes::ORION_AFTER_QUERY, null);\n\n\t\tif ($this->isSelectQuery() || $this->fromQueryString)\n\t\t{\n\t\t\tswitch ($result_type)\n\t\t\t{\n\t\t\t\tcase QueryResultType::NONE:\n\t\t\t\t\tbreak;\n\n\t\t\t\t// Returns as RECORD object\n\t\t\t\tcase QueryResultType::RECORD_OBJECT:\n\t\t\t\t\t$result = $query->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t\tLogger::getInstance()->log(LoggerEntry::DATABASE, 'Query', 'Results count: [' . sizeof($result) . ']');\n\t\t\t\t\t$final = array();\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tif (is_array($eagerLoading) && sizeof($eagerLoading) > 0)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$final = Record::createObjectFromArray(new $record_class(), $result, $record_class, $eagerLoading, false);\n\t\t\t\t\t\t} else\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tforeach ($result as $line)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t$final[] = Record::createObjectFromArray(new $record_class(), $line, $fields_alias);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception $e)\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow(new QueryNotValidException(\"The query [\" . $this->querystring . \"] returned the following error: \" . $e));\n\t\t\t\t\t}\n\n\t\t\t\t\tif ($firstOnly)\n\t\t\t\t\t\treturn sizeof($final) > 0 ? $final[0] : null;\n\t\t\t\t\treturn $final;\n\n\t\t\t\t// Returns as PDO object\n\t\t\t\tcase QueryResultType::PDO_OBJECT:\n\t\t\t\t\t$all = $query->fetchAll(PDO::FETCH_OBJ);\n\t\t\t\t\tLogger::getInstance()->log(LoggerEntry::DATABASE, 'Query', 'Results count: [' . sizeof($all) . ']');\n\t\t\t\t\tif ($firstOnly)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn sizeof($all) > 0 ? $all[0] : null;\n\t\t\t\t\t}\n\t\t\t\t\treturn $all;\n\n\t\t\t\t// Returns as PDO array\n\t\t\t\tcase QueryResultType::PDO_ARRAY:\n\t\t\t\t\t$all = $query->fetchAll(PDO::FETCH_ASSOC);\n\t\t\t\t\tLogger::getInstance()->log(LoggerEntry::DATABASE, 'Query', 'Results count: [' . sizeof($all) . ']');\n\t\t\t\t\tif ($firstOnly)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn sizeof($all) > 0 ? $all[0] : null;\n\t\t\t\t\t}\n\t\t\t\t\treturn $all;\n\t\t\t}\n\t\t\treturn null;\n\t\t} elseif ($this->isInsertQuery())\n\t\t{\n\t\t\treturn $this->database->getConnection()->lastInsertId();\n\t\t}\n\t\treturn true;\n\t}", "public function addSelectTableColumns (Doctrine_Query $q)\n {\n $q->addSelect(\"{$q->getRootAlias()}.*\");\n\n return $this;\n }", "public function merge(Q $q) {\n foreach($parts = $q->getPart() as $part=>$info) {\n if (!empty($info)) {\n if (is_array($info) && (count($info) == 1) && array_key_exists(0, $info)) {\n $info = $info[0];\n }\n $this->addPart($part, $info);\n }\n }\n $this->where($q->getCriteria());\n return $this;\n }", "protected function _reset_select()\r\n\t{\r\n\t\t$this->_reset_run(array(\r\n\t\t\t'qb_select'\t\t=> array(),\r\n\t\t\t'qb_from'\t\t=> array(),\r\n\t\t\t'qb_join'\t\t=> array(),\r\n\t\t\t'qb_where'\t\t=> array(),\r\n\t\t\t'qb_groupby'\t\t=> array(),\r\n\t\t\t'qb_having'\t\t=> array(),\r\n\t\t\t'qb_orderby'\t\t=> array(),\r\n\t\t\t'qb_aliased_tables'\t=> array(),\r\n\t\t\t'qb_no_escape'\t\t=> array(),\r\n\t\t\t'qb_distinct'\t\t=> FALSE,\r\n\t\t\t'qb_limit'\t\t=> FALSE,\r\n\t\t\t'qb_offset'\t\t=> FALSE,\r\n 'qb_lock_in_share_mode' => FALSE,\r\n 'qb_for_update' => FALSE\r\n\t\t));\r\n\t}", "public function override( $options ){\n\t\tif ( isset($options['select']) ){\n\t\t\tif ( $options['select'] )\n\t\t\t\t$this->select = new Query\\Select( $options['select'] );\n\t\t\telse\n\t\t\t\t$this->select = new Query\\Select( '*' );\n\t\t}\n\n\t\tif ( isset($options['from']) ){\n\t\t\tif ( $options['from'] )\n\t\t\t\t$this->from = new Query\\From( $options['from'] );\n\t\t\telse\n\t\t\t\t$this->from = false;\n\t\t}\n\n\t\tif ( isset($options['where']) ){\n\t\t\tif ( $options['where'] )\n\t\t\t\t$this->where = new Query\\Where( $options['where'] );\n\t\t\telse\n\t\t\t\t$this->where = false;\n\t\t}\n\n\t\tif ( isset($options['limit']) ){\n\t\t\tif ( $options['limit'] )\n\t\t\t\t$this->limit = $options['limit'];\n\t\t\telse\n\t\t\t\t$this->limit = false;\n\t\t}\n\n\t\tif ( isset($options['order by']) ){\n\t\t\tif ( $options['order by'] )\n\t\t\t\t$this->orderBy = $options['order by'];\n\t\t\telse\n\t\t\t\t$this->orderBy = false;\n\t\t}\n\t\t\n\t\tif ( isset($options['group by']) ){\n\t\t\tif ( $options['group by'] )\n\t\t\t\t$this->groupBy = $options['group by'];\n\t\t\telse\n\t\t\t\t$this->groupBy = false;\n\t\t}\n\t}", "public function append(QueryResponse $other) {\n $this->errs = array_merge($errs, $other->errs);\n $this->didSucceed = ($this->didSucceed && $other->didSucceed);\n return $this;\n }", "protected function _reset_select()\n\t{\n\t\t$this->_reset_run(array(\n\t\t\t'qb_select'\t\t=> array(),\n\t\t\t'qb_from'\t\t=> array(),\n\t\t\t'qb_join'\t\t=> array(),\n\t\t\t'qb_where'\t\t=> array(),\n\t\t\t'qb_groupby'\t\t=> array(),\n\t\t\t'qb_having'\t\t=> array(),\n\t\t\t'qb_orderby'\t\t=> array(),\n\t\t\t'qb_aliased_tables'\t=> array(),\n\t\t\t'qb_no_escape'\t\t=> array(),\n\t\t\t'qb_distinct'\t\t=> FALSE,\n\t\t\t'qb_limit'\t\t=> FALSE,\n\t\t\t'qb_offset'\t\t=> FALSE\n\t\t));\n\t}", "public function build()\n\t{\n\t\t$this->clearString();\n\n\t\tswitch($this->type)\n\t\t{\n\t\t\tcase 'select':\n\t\t\t\t$this->buildSelect();\n\t\t\tbreak;\n\n\t\t\tcase 'insert':\n\t\t\t\t$this->buildInsert();\n\t\t\tbreak;\n\n\t\t\tcase 'update':\n\t\t\t\t$this->buildUpdate();\n\t\t\tbreak;\n\n\t\t\tcase 'delete':\n\t\t\t\t$this->buildDelete();\n\t\t\tbreak;\n\n\t\t\tcase 'truncate':\n\t\t\t\t$this->buildTruncate();\n\t\t\tbreak;\n\n\t\t\tcase 'drop':\n\t\t\t\t$this->buildDrop();\n\t\t\tbreak;\n\t\t}\n\n\t\t// Append ending semicolon\n\t\t$this->queryString .= \";\";\n\n\t\treturn $this;\n\t}", "public function newSelect()\n {\n return $this->newInstance('Select');\n }", "public function __toString()\n\t{\n\t\t// Initialize variables.\n\t\t$query = '';\n\n\t\t// Add the SELECT and FROM clauses.\n\t\t$query .= 'SELECT '.implode(',', $this->_select);\n\t\t$query .= \"\\nFROM \".implode(',', $this->_from);\n\n\t\t// Special case for JOIN clauses.\n\t\tif ($this->_join) {\n\t\t\t$query .= \"\\n\".implode(\"\\n\", $this->_join);\n\t\t}\n\n\t\t// Add the WHERE clause if it exists.\n\t\tif ($this->_where) {\n\t\t\t$query .= \"\\nWHERE \".$this->_where;\n\t\t}\n\n\t\t// Add the optional GROUP BY and HAVING clauses if they exist.\n\t\tif ($this->_group) {\n\t\t\t$query .= \"\\nGROUP BY \".implode(',', $this->_group);\n\t\t}\n\t\tif ($this->_having) {\n\t\t\t$query .= \"\\nHAVING \".implode(',', $this->_having);\n\t\t}\n\n\t\t// Add any UNION queries.\n\t\tforeach ($this->_union as $union)\n\t\t{\n\t\t\t$query .= \"\\nUNION\".((!$union->unionDistinct) ? ' ALL' : '');\n\t\t\t$query .= \"\\n\".$union;\n\t\t}\n\n\t\t// Add the optional ORDER BY clause if it exists.\n\t\tif ($this->_order) {\n\t\t\t$query .= \"\\nORDER BY \".implode(',', $this->_order);\n\t\t}\n\n\t\treturn $query;\n\t}", "public function subquery() {\r\n\t\t$args = func_get_args();\r\n\t\t$name = array_shift($args);\r\n\t\t$model = array_shift($args);\r\n\t\t$statement = array_shift($args);\r\n\t\t$this->_subqueries[] = array(\r\n\t\t\t'name' => $name,\r\n\t\t\t'model' => $model,\r\n\t\t\t'statement' => $statement,\r\n\t\t\t'args' => $args\r\n\t\t);\r\n\t}", "public function addSelect($fields)\n {\n if (func_num_args() > 1) {\n $fields = func_get_args();\n } elseif (!is_array($fields)) {\n $fields = [$fields];\n }\n foreach ($fields as $idx => $field) {\n $this->selectField($field, is_numeric($idx) ? null : $idx);\n }\n\n return $this;\n }", "public function select($select = null)\n {\n $this->_type = self::SELECT;\n\n if (empty($select)) {\n return $this;\n }\n\n $selects = is_array($select) ? $select : func_get_args();\n\n return $this->add('select', $selects, false);\n }", "protected function compileUnion(array $union)\n {\n $conduction = $union['all'] ? ' union all ' : ' union ';\n\n return $conduction . '(' . $union['query']->toSql() . ')';\n }", "public function fromSelectQuery(\\Yana\\Db\\Queries\\IsSelectQuery $query): string;", "function set_select_type($type) {\n\t\t\t$allowed = array (MYSQLI_NUM, MYSQLI_BOTH, MYSQLI_ASSOC);\n\t\t\tif (in_array($type, $allowed)) {\n\t\t\t\t$this->SELECT_TYPE = $type;\n\t\t\t}\n\t\t\treturn $this->SELECT_TYPE;\n\t\t}", "public function rawSelect($query)\r\n\t{\r\n\t\t$this->model = $this->model->select($query);\r\n\t\treturn $this;\r\n\t}", "public function newQuery()\n {\n $query = parent::newQuery();\n\n if ($this->usesTimestamps()) {\n $table = $this->getTable();\n $columns = ['*'];\n foreach ($this->getDates() as $dateColumn) {\n $columns[] = DB::raw(\"CONCAT($table.$dateColumn) AS $dateColumn\");\n }\n $query->addSelect($columns);\n }\n\n return $query;\n }" ]
[ "0.69111943", "0.6452777", "0.6250641", "0.60823727", "0.5732522", "0.56662065", "0.5457898", "0.5451955", "0.5384053", "0.53327525", "0.52996564", "0.52422047", "0.52264607", "0.51364875", "0.50841165", "0.50020045", "0.5000878", "0.49943078", "0.4994071", "0.49846807", "0.4879333", "0.48514012", "0.48355117", "0.4791701", "0.47897965", "0.47812593", "0.47610566", "0.47323793", "0.47256765", "0.47038496", "0.47019234", "0.4691871", "0.46578175", "0.4645305", "0.46432927", "0.46364903", "0.46304092", "0.46201566", "0.46141303", "0.46097785", "0.46066505", "0.45932025", "0.45919746", "0.45801082", "0.45759594", "0.45249438", "0.4520234", "0.4515115", "0.45027614", "0.44778737", "0.44735372", "0.44577563", "0.4446957", "0.44343305", "0.44130725", "0.44115084", "0.4405778", "0.43892902", "0.43788585", "0.43714967", "0.43679696", "0.43524376", "0.43511063", "0.43425965", "0.4340665", "0.43328258", "0.43197116", "0.4316328", "0.43129212", "0.43123415", "0.4308235", "0.4306193", "0.43012053", "0.43011358", "0.42931923", "0.4287237", "0.4279932", "0.42780235", "0.42751434", "0.4260111", "0.42592993", "0.42590654", "0.4255986", "0.4254642", "0.42454177", "0.42436492", "0.42417124", "0.4241497", "0.42370117", "0.4233123", "0.42281196", "0.42270258", "0.42246112", "0.4216215", "0.42123756", "0.42089865", "0.4206425", "0.41927186", "0.41911176", "0.41886798" ]
0.7199377
0
Groups the result set by the specified field.
Группирует результат по указанному полю.
public function groupBy($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function groupby($field)\n\t\t{\n\t\t\t$this->groupby[] = $field;\n\t\t\treturn $this;\n\t\t}", "public function groupBy($field)\n {\n $this->groupBy = $field;\n return $this;\n }", "public function groupBy($field): QueryBuilderInterface\n\t{\n\t\tif ( ! is_scalar($field))\n\t\t{\n\t\t\t$newGroupArray = array_map([$this->driver, 'quoteIdent'], $field);\n\t\t\t$this->state->setGroupArray(\n\t\t\t\tarray_merge($this->state->getGroupArray(), $newGroupArray)\n\t\t\t);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->state->appendGroupArray($this->driver->quoteIdent($field));\n\t\t}\n\n\t\t$this->state->setGroupString(' GROUP BY ' . implode(',', $this->state->getGroupArray()));\n\n\t\treturn $this;\n\t}", "function get_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->get_by($field, $match);\n\t}", "public function addGroupBy($field)\n\t{\n\t\tparent::addGroupBy($field);\n\t\treturn $this;\n\t}", "public function getGroupsByField($field,$value){\n\t\t$query = \"SELECT * FROM people_group WHERE $field = '$value'\";\n\t\t$result = $this->mysqli->query($query);\n\t\t$data = FALSE;\n\t\twhile ($row = $result->fetch_assoc()) {\n\t\t\t$data [] = array(\n\t\t\t\t'id' => $row['id'], \n\t\t\t\t'person_id' => $row['person_id'], \n\t\t\t\t'group_name' => $row['group_name'], \n\t\t\t);\n\t\t}\n\n\t\treturn $data;\n\n\t}", "public function group($field)\n {\n if (empty($field)) {\n $this->group_str = '';\n return $this;\n }\n if (is_array($field)) {\n $output = array();\n foreach ($field as $item) {\n $output[] = \"`{$item}`\";\n }\n $field = implode(', ', $field);\n }\n else {\n $field = $this->escapeString($field);\n }\n $this->group_str = $field;\n return $this;\n }", "public function getGroupByFieldResultItems()\n {\n return $this->group_by_field_result_items;\n }", "public function groupBy(array $fields, $order = null);", "#[@arg(position= 0)]\n public function setField($field= 'bz_id') {\n $this->criteria= create(new Criteria())\n ->setProjection(Projections::projectionList(array(\n Projections::property(Person::column($field)), \n Projections::count()\n )))\n ->addGroupBy($field)\n ;\n }", "public function groupBy($fields, $overwrite = false);", "function get_groups($field = null, $match = null, $limit = 0, $offset = 0)\n\t{\n\t\treturn get_instance()->kbcore->groups->get_many($field, $match, $limit, $offset);\n\t}", "protected function getGroupFilterFieldDef($reportDef, $field)\n {\n $pos = strrpos($field, ':');\n if ($pos !== false) {\n $field_name = substr($field, $pos + 1);\n $table_key = substr($field, 0, $pos);\n } else {\n $table_key = 'self';\n $field_name = $field;\n }\n if (is_array($reportDef['group_defs'])) {\n $report = null;\n foreach ($reportDef['group_defs'] as $groupColumn) {\n if ($groupColumn['table_key'] === $table_key && $groupColumn['name'] === $field_name) {\n if (empty($groupColumn['type'])) {\n if (!$report) {\n $report = new Report($reportDef);\n }\n if (!empty($report->full_bean_list[$table_key])) {\n $bean = $report->full_bean_list[$table_key];\n $fieldDef = $bean->getFieldDefinition($field_name);\n if (!empty($fieldDef['type'])) {\n $groupColumn['type'] = $fieldDef['type'];\n }\n }\n }\n return $groupColumn;\n }\n }\n }\n return false;\n }", "public function &getGroupBy();", "function restore_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->restore_by($field, $match);\n\t}", "public function groupBy($fieldOrExpr) {\r\n\t\t$absoluteField = $this->resolveFieldName(ClauseType::GROUP, $fieldOrExpr);\r\n\t\t$this->_salt_groups[]=$absoluteField;\r\n\t}", "function scan_field_groups()\n {\n }", "function get_grouping_fields() {\n //field that is used to compare one record from the next\n $compare_field = sql_concat('user.lastname', \"'_'\", 'user.firstname', \"'_'\", 'user.id');\n\n //field used to order for groupings\n $order_field = sql_concat('lastname', \"'_'\", 'firstname', \"'_'\", 'userid');\n\n $cluster_label = get_string('grouping_cluster', 'rlreport_course_completion_by_cluster');\n $cluster_grouping = new table_report_grouping('cluster', 'cluster.id', $cluster_label, 'ASC',\n array('cluster.name'), 'above', 'path');\n \n $user_grouping_fields = array(\n 'user.idnumber AS useridnumber', 'user.firstname');\n $user_grouping = new table_report_grouping('groupuseridnumber', $compare_field, '', 'ASC', \n $user_grouping_fields, 'below', $order_field);\n\n //these groupings will always be used\n $result = array(\n $cluster_grouping, $user_grouping);\n\n //determine whether or not we should use the curriculum grouping\n $preferences = php_report_filtering_get_active_filter_values($this->get_report_shortname(),\n 'columns'.'_curriculum', $this->filter);\n\n $show_curriculum = true;\n if (isset($preferences['0']['value'])) {\n $show_curriculum = $preferences['0']['value'];\n }\n\n if ($show_curriculum) {\n $curriculum_label = get_string('grouping_curriculum', 'rlreport_course_completion_by_cluster');\n $result[] = new table_report_grouping('groupcurriculumid', 'curriculum.id', $curriculum_label, 'ASC', array(),\n 'below', 'curriculumname, curriculumid');\n }\n\n return $result;\n }", "public function groupBy($field, $escape = null)\n {\n is_bool($escape) || $escape = $this->conn->protectIdentifiers;\n\n if (is_string($field)) {\n $field = ($escape === true)\n ? explode(',', $field)\n : [$field];\n }\n\n foreach ($field as $fieldName) {\n $fieldName = trim($fieldName);\n\n if ($fieldName !== '') {\n $fieldName = ['field' => $fieldName, 'escape' => $escape];\n\n $this->builderCache->groupBy[] = $fieldName;\n }\n }\n\n return $this;\n }", "public static function groupBy($list, $fieldName, $article_grouping_direction, $fieldNameToKeep = null)\n\t{\n\t\t$grouped = array();\n\n\t\tif (!is_array($list))\n\t\t{\n\t\t\tif ($list == '')\n\t\t\t{\n\t\t\t\treturn $grouped;\n\t\t\t}\n\n\t\t\t$list = array($list);\n\t\t}\n\n\t\tforeach ($list as $key => $item)\n\t\t{\n\t\t\tif (!isset($grouped[$item->$fieldName]))\n\t\t\t{\n\t\t\t\t$grouped[$item->$fieldName] = array();\n\t\t\t}\n\n\t\t\tif (is_null($fieldNameToKeep))\n\t\t\t{\n\t\t\t\t$grouped[$item->$fieldName][$key] = $item;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$grouped[$item->$fieldName][$key] = $item->$fieldNameToKeep;\n\t\t\t}\n\n\t\t\tunset($list[$key]);\n\t\t}\n\n\t\t$article_grouping_direction($grouped);\n\n\t\treturn $grouped;\n\t}", "public function groupBy($sql);", "public function Group($field,$group){\n $this->_groups[$field] = array_merge($group,array(\"currentGroup\" => \"?\", \"currentMsg\" => \"\"));\n }", "public function group($column)\n {\n // Make column name safe\n $column = $this->san($column);\n \n // GROUP BY .. \n $this->query .= 'GROUP BY ' . $column . ' ';\n \n // Return a ref. to this object for chainability\n return $this;\n }", "public function sum($field) {\n return $this->getRepository()->aggregate($this, __FUNCTION__, $field);\n }", "function ydgdict_group_search_results_by_entry( $groupby, $wp_query ) \n{\n if ( ! $wp_query->is_archive( 'entry' ) || ! $wp_query->is_search() || is_admin() ) return $groupby; // unchanged\n\n global $wpdb;\n\n return \" {$wpdb->posts}.ID \";\n}", "public function groupBy($field, $asc = true)\n {\n if ($asc) {\n $this->groupBy[] = \" $this->alias.$field ASC\";\n } else {\n $this->groupBy[] = \" $this->alias.$field DESC\";\n }\n \n return $this;\n }", "function acf_prepare_field_group_for_export($field_group = array())\n{\n}", "public function groupBy($property)\n {\n $this->group[] = $this->dbFieldName($property);\n }", "public function statisticItineraryBy($field) {\n $q = \"SELECT DATE_FORMAT(created_at,'%Y-%m') as month, COUNT(DATE_FORMAT(created_at,'%Y-%m')) as number \n FROM itinerary GROUP BY DATE_FORMAT(created_at,'%Y-%m')\";\n \n $stmt = $this->conn->prepare($q);\n //$stmt->bind_param(\"i\",$customer_id);\n $stmt->execute();\n $results = $stmt->get_result();\n\n $stats = array();\n // looping through result and preparing tasks array\n while ($stat = $results->fetch_assoc()) {\n $tmp = array();\n\n $tmp[\"month\"] = $stat[\"month\"];\n $tmp[\"number\"] = $stat[\"number\"];\n\n array_push($stats, $tmp);\n }\n\n $stmt->close();\n return $stats;\n }", "function acf_get_field_groups($filter = array())\n{\n}", "private function groupBy() {\n $this->sql .= 'GROUP BY inv_agent_id ';\n }", "public function setGroupByFieldResultItems($var)\n {\n $arr = GPBUtil::checkRepeatedField($var, \\Google\\Protobuf\\Internal\\GPBType::MESSAGE, \\Aliyun\\OTS\\ProtoBuffer\\Protocol\\GroupByFieldResultItem::class);\n $this->group_by_field_result_items = $arr;\n $this->has_group_by_field_result_items = true;\n\n return $this;\n }", "function acf_get_raw_field_groups()\n{\n}", "function remove_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->remove_by($field, $match);\n\t}", "public function getQueryGroupby() {\n $R = 'R_'. $this->id;\n return \"$R.value_id\";\n }", "public function getGrouping()\n {\n return $this->result->getGrouping();\n }", "private function sql_groupBy()\n {\n // Get WHERE statement\n $groupBy = $this->curr_tableField;\n\n // RETURN GROUP BY statement without GROUP BY\n return $groupBy;\n }", "abstract protected function _buildGroupBy( $group );", "public function group_by ( $mFields )\n {\n /*\n Convert from comma separated list to array.\n */\n if (!is_array($mFields))\n {\n $mFields = explode(',', str_replace(', ', ',', $mFields));\n }\n /*\n Save.\n */\n $this->aGroupBy = array_merge($this->aGroupBy, $mFields);\n /*\n Return for method chaining.\n */\n return $this;\n }", "public function groupCallback($group, $mode, $field, $objModelRow);", "public function getGroupByResults()\n {\n return $this->group_by_results;\n }", "public function groupBy($callback);", "public function get_all_items($field) {\n return $field->find_sqlarray( \n array(\"where\" => array(\n \"arraygroup\" => \"items\"\n ))\n );\n }", "public function relationExtendRefreshResults($field)\n {\n }", "function acf_get_raw_field_group($id = 0)\n{\n}", "function acf_get_field_group($id = 0)\n{\n}", "function acf_get_grouped_field_types()\n{\n}", "public function get_array_of($result, $field ){\n\t\t\t$arr = array();\n\t\t\tif(is_array($field)) {\n\t\t\t\twhile($row = mysql_fetch_array($result)){\n\t\t\t\t\t$temp_arr = array();\n\t\t\t\t\tforeach($field as $temp_field){\n\t\t\t\t\t\t//array_push($temp_arr, $row[$temp_field]);\n\t\t\t\t\t\t$temp_arr[$temp_field] = $row[$temp_field];\n\t\t\t\t\t}\n\t\t\t\t\tarray_push($arr, $temp_arr);\n\t\t\t\t}\n\t\t\t\treturn $arr;\n\t\t\t}else {\n\t\t\t\twhile($row = mysql_fetch_array($result)){\n\t\t\t\t\tarray_push($arr, $row[$field]);\n\t\t\t\t}\n\t\t\t\treturn $arr;\n\t\t\t}\n\t\t}", "function groupBy($column) {\n if(!is_array($column)) {\n $column = array($column);\n }\n foreach ($column as $value) {\n $this->group_by .= ', `'.str_replace('.', '`.`', $value).'`';\n }\n $this->group_by = trim($this->group_by, ', ');\n return $this;\n }", "public function statisticMoneyBy($field) {\n $q = \"SELECT DATE_FORMAT(created_at,'%Y-%m') as month, SUM(cost) as total_money \n FROM itinerary GROUP BY DATE_FORMAT(created_at,'%Y-%m')\";\n \n $stmt = $this->conn->prepare($q);\n //$stmt->bind_param(\"i\",$customer_id);\n $stmt->execute();\n $results = $stmt->get_result();\n\n $stats = array();\n // looping through result and preparing tasks array\n while ($stat = $results->fetch_assoc()) {\n $tmp = array();\n\n $tmp[\"month\"] = $stat[\"month\"];\n $tmp[\"total_money\"] = $stat[\"total_money\"];\n\n array_push($stats, $tmp);\n }\n\n $stmt->close();\n return $stats;\n }", "public function visitGroupClause(\n /*IGroupClause*/ $node) /*: mixed*/ {\n $collection = /*(string)*/$node->getCollection()->accept($this);\n $key = /*(string)*/$node->getKey()->accept($this);\n\n return 'group '.$collection.' by '.$key;\n }", "public function statisticUserBy($field) {\n $q = \"SELECT DATE_FORMAT(created_at,'%Y-%m') as month, COUNT(DATE_FORMAT(created_at,'%Y-%m')) as number \n FROM user GROUP BY DATE_FORMAT(created_at,'%Y-%m')\";\n \n $stmt = $this->conn->prepare($q);\n //$stmt->bind_param(\"i\",$customer_id);\n $stmt->execute();\n $results = $stmt->get_result();\n\n $stats = array();\n // looping through result and preparing tasks array\n while ($stat = $results->fetch_assoc()) {\n $tmp = array();\n\n $tmp[\"month\"] = $stat[\"month\"];\n $tmp[\"number\"] = $stat[\"number\"];\n\n array_push($stats, $tmp);\n }\n\n $stmt->close();\n return $stats;\n }", "public function getGroupByPage() {}", "public function group($str) \n {\n $this->_data['group'] = $str;\n $this->_data['query'] .= ' GROUP BY '.$str;\n return $this;\n }", "protected function getGroupByAttribute()\n {\n return $this->fetchData[self::GROUP_CLAUSE];\n }", "function getByField ( $field,$value){\n\t\t $result=$this->fetchRow(\"$field= '$value' \"); //order by id?\n\t\t if($result==null)\n\t\t\t return;\n\t\t if(is_array($result))\n\t\t\t return $result[0];\n\t\t return $result;\n\t}", "function acf_get_field_groups( $filter = array() ) {\n\treturn acf_get_internal_post_type_posts( 'acf-field-group', $filter );\n}", "public function get_group_by()\n\t{\n\t\treturn NULL;\n\t}", "function acf_write_json_field_group($field_group)\n{\n}", "function delete_group_by($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->delete_by($field, $match);\n\t}", "public static function groupJoinResults(&$parentData, $childData, $childField, $pkColumn, $fkColumn)\n\t{\n\t\tif(!$parentData || !$childData) return $parentData;\n\t\t$childData = arrayGroupBy($childData, $fkColumn);\n\t\tforeach ($parentData as $key => &$parent)\n\t\t{\n\t\t\t$parentId = $parent[$pkColumn];\n\t\t\tif(isset($childData[$parentId]))\n\t\t\t\t$parent[$childField] = $childData[$parentId];\n\t\t}\n\t\treturn $parentData;\n\t}", "function getResult($limit, $idField, $dateField = null);", "function acf_prepare_field_group_for_export( $field_group = array() ) {\n\treturn acf_prepare_internal_post_type_for_export( $field_group, 'acf-field-group' );\n}", "public function get_records_by_group($table, $groupKeyName, $groupID, $orderKeyName = '', $order = 'ASC', $fields = '*',$limit=10){\n $orderSql = ' LIMIT $limit';\n if($orderKeyName != '') $orderSql = \" ORDER BY $orderKeyName $order LIMIT $limit\";\n $sql = \"SELECT * FROM $table WHERE $groupKeyName = '$groupID'\" . $orderSql;\n $result = mysql_query($sql);\n while($row = mysql_fetch_assoc($result)) {\n\n $records[] = $row;\n\n }\n return $records;\n }", "protected function setGroup() {\r\n //var_dump($this->sql);\r\n if( $this->sqlGroupBy ) {\r\n var_dump($this->sql);\r\n $this->sql .= ' GROUP BY ' . $this->sqlGroupBy;\r\n }\r\n //var_dump($this->sql);\r\n }", "function Field() {\n\t\t$fs = $this->FieldSet();\n \t$spaceZebra = isset($this->zebra) ? \" $this->zebra\" : '';\n \t$idAtt = isset($this->id) ? \" id=\\\"{$this->id}\\\"\" : '';\n\t\t$content = \"<div class=\\\"fieldgroup$spaceZebra\\\"$idAtt>\";\n\t\tforeach($fs as $subfield) {\n\t\t\t$childZebra = (!isset($childZebra) || $childZebra == \"odd\") ? \"even\" : \"odd\";\n\t\t\tif($subfield->hasMethod('setZebra')) $subfield->setZebra($childZebra);\n\t\t\t$content .= \"<div class=\\\"fieldgroupField\\\">\" . $subfield->{$this->subfieldParam}() . \"</div>\";\n\t\t}\n\t\t$content .= \"</div>\";\n\t\treturn $content;\n\t}", "private function _groupFieldCountries()\n {\n $this->_fieldCountries = [];\n foreach ($this->_addAccountfields as $country => $fields) {\n foreach ($fields as $field) {\n $this->_fieldCountries[$field][] = str_replace(\" \", \"-\", strtolower($country));\n }\n }\n return $this->_fieldCountries;\n }", "protected function showGroup(Field $field) {\n $stub = $this->stub('partials.show-group');\n\n $this\n ->replace($stub, 'FieldLabel', $field->label())\n ->replace($stub, 'FieldName', $field->name())\n ;\n\n return $stub;\n }", "public function groupBy() {\n $fields = func_get_args();\n\n if (is_array($fields[0])) {\n $fields = $fields[0];\n }\n\n $this->_groupBy = array_unique(array_merge($this->_groupBy, $fields));\n\n return $this;\n }", "function restore_groups($field, $match = null)\n\t{\n\t\treturn get_instance()->kbcore->groups->restore_by($field, $match);\n\t}", "public function groupBy($group=null)\n {\n $group = LambdaUtils::toSelectCallable($group);\n\n $result = new ObjectArray(array());\n if($this instanceof ObjectArray)\n {\n $result = $this->newInstance();\n }\n\n foreach($this as $record)\n {\n $key = call_user_func($group, $record);\n\n $data = array();\n if($this->__converter instanceof IListConverter)\n {\n $data = $this->newConverterInstance();\n }\n $newitemtype = new ArrayList($data);\n\n $result->get($key, $newitemtype, true)->add($record);\n }\n\n return $result;\n }", "public function testGroupByBaseField() {\n $this->setupTestEntities();\n\n $view = Views::getView('test_group_by_count');\n $view->setDisplay();\n // This tests that the GROUP BY portion of the query is properly formatted\n // to include the base table to avoid ambiguous field errors.\n $view->displayHandlers->get('default')->options['fields']['name']['group_type'] = 'min';\n unset($view->displayHandlers->get('default')->options['fields']['id']['group_type']);\n $this->executeView($view);\n $this->assertStringContainsString('GROUP BY entity_test.id', (string) $view->build_info['query'], 'GROUP BY field includes the base table name when grouping on the base field.');\n }", "function acf_get_local_field_group($key = '')\n{\n}", "public function avg($field) {\n return $this->getRepository()->aggregate($this, __FUNCTION__, $field);\n }", "public function get($field = null)\n\t{\n\t\t// make sure a group id is set\n\t\tif (empty($this->group['id']))\n\t\t{\n\t\t\tthrow new SentryGroupException(__('sentry::sentry.no_group_selected'));\n\t\t}\n\n\t\t// if no fields were passed - return entire user\n\t\tif ($field === null)\n\t\t{\n\t\t\treturn $this->group;\n\t\t}\n\t\t// if field is an array - return requested fields\n\t\telse if (is_array($field))\n\t\t{\n\t\t\t$values = array();\n\n\t\t\t// loop through requested fields\n\t\t\tforeach ($field as $key)\n\t\t\t{\n\t\t\t\t// check to see if field exists in group\n\t\t\t\tif (array_key_exists($key, $this->group))\n\t\t\t\t{\n\t\t\t\t\t$values[$key] = $this->group[$key];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new SentryGroupException(\n\t\t\t\t\t\t__('sentry::sentry.not_found_in_group_object', array('field' => $key))\n\t\t\t\t\t);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn $values;\n\t\t}\n\t\t// if single field was passed - return its value\n\t\telse\n\t\t{\n\t\t\t// check to see if field exists in group\n\t\t\tif (array_key_exists($field, $this->group))\n\t\t\t{\n\t\t\t\treturn $this->group[$field];\n\t\t\t}\n\n\t\t\tthrow new SentryGroupException(\n\t\t\t\t__('sentry::sentry.not_found_in_group_object', array('field' => $field))\n\t\t\t);\n\t\t}\n\t}", "public function groupBy(callable $function);", "protected abstract function getGroupByClause(array $grouping);", "public function testGroupByWithFieldsNotExistingOnBundle() {\n $field_storage = FieldStorageConfig::create([\n 'type' => 'integer',\n 'field_name' => 'field_test',\n 'cardinality' => 4,\n 'entity_type' => 'entity_test_mul',\n ]);\n $field_storage->save();\n $field = FieldConfig::create([\n 'field_name' => 'field_test',\n 'entity_type' => 'entity_test_mul',\n 'bundle' => 'entity_test_mul',\n ]);\n $field->save();\n\n $entities = [];\n $entity = EntityTestMul::create([\n 'field_test' => [1],\n 'type' => 'entity_test_mul',\n ]);\n $entity->save();\n $entities[] = $entity;\n\n $entity = EntityTestMul::create([\n 'type' => 'entity_test_mul2',\n ]);\n $entity->save();\n $entities[] = $entity;\n\n $view = Views::getView('test_group_by_field_not_within_bundle');\n $this->executeView($view);\n\n $this->assertCount(2, $view->result);\n // The first result is coming from entity_test_mul2, so no field could be\n // rendered.\n $this->assertEquals('', $view->getStyle()->getField(0, 'field_test'));\n // The second result is coming from entity_test_mul, so its field value\n // could be rendered.\n $this->assertEquals('1', $view->getStyle()->getField(1, 'field_test'));\n }", "public function sum($field)\n {\n return $this->withMeta(['sum' => $field]);\n }", "function acf_get_local_field_groups()\n{\n}", "function _field_grouped_fieldset ($fval) {\n\n $res = '';\n $setName = $this->name;\n\n // how many sets to show to begin w/?\n if (!empty($fval) and is_array($fval))\n $numsets = count($fval);\n\t\telse\n\t\t\t$numsets = (isset($this->attribs['numsets']))? $this->attribs['numsets'] : 1;\n\n $hiddens = '';\n $res .= \"<div id=\\\"proto_{$setName}\\\" data-numsets=\\\"{$numsets}\\\" data-setname=\\\"{$setName}\\\" class=\\\"formex_group\\\" style=\\\"display: none; margin:0; padding: 0\\\">\n <fieldset class=\\\"formex_grouped_fieldset {$this->element_class}\\\"><ul>\";\n\t\t\t\t\t\n\n foreach ($this->opts as $name => $parms) {\n\t\t\t$newelem = new formex_field($this->fex, $name, $parms);\n\n\t\t\t$res .= '<li>';\n\t\t\tif ($newelem->type != 'hidden') {\n\t\t\t\t$res .= $this->fex->field_label($newelem);\n\t\t\t\t$res .= $newelem->get_html('');\n\t\t\t}\n\t\t\telse {\n\t\t\t\t$hiddens = $newelem->get_html('');\n\t\t\t}\n\t\t\t$res .= '</li>';\n }\n\n $res .= \"</ul>$hiddens</fieldset></div>\";\n\n $labelclass = (!empty($this->attribs['enable_showhide']))? 'enable_showhide' : '';\n\n /* \"+\" and \"-\" controls for adding and removing sets */\n $res .= \"<span id=\\\"fieldsetControl$setName\\\" data-setname=\\\"$setName\\\" class=\\\"controls {$this->element_class}\\\">\";\n\t\t$res .= \"<label class=\\\"$labelclass\\\">{$this->descrip}</label>\";\n\t\t$res .= '<a href=\"#\" class=\"add\">+</a> <a href=\"#\" class=\"sub\">&ndash;</a></span>';\n\n\t\t$res .= \"<script type=\\\"text/javascript\\\">\n\t\t\t\t\t\tvar formex_groupvalues = formex_groupvalues || [];\n\t\t\t\t\t\tformex_groupvalues['{$setName}'] = \".json_encode($fval).\";\n\t\t\t\t</script>\";\n return $res;\n }", "public function select($field);", "public function isGroup($fieldName) {\n\t\t$type = $this->getFieldType($fieldName);\n\t\treturn $type === 'group';\n\t}", "function nkf_base_rows_from_field_collection(&$vars, $field_array) {\n $vars['rows'] = array();\n foreach($vars['element']['#items'] as $key => $item) {\n $entity_id = $item['value'];\n $entity = field_collection_item_load($entity_id);\n $wrapper = entity_metadata_wrapper('field_collection_item', $entity);\n $row = array();\n foreach($field_array as $field) {\n $info = $wrapper->$field->info();\n $type = $info['type'];\n $field_value = $wrapper->$field->value();\n switch ($type) {\n case 'text_formatted':\n $value = $wrapper->$field->value->value();\n break;\n case 'field_item_image':\n if (isset($field_value)) {\n $build = array(\n '#theme' => 'image',\n '#path' => $field_value['uri'],\n '#url' => nkf_base_image_url($field_value['uri'], 'large'),\n '#alt' => $field_value['alt'],\n '#title' => $field_value['title'],\n //'#width' => $field_value['width'],\n //'#height' => $field_value['height'],\n );\n $value = $build;\n } else {\n $value = null;\n }\n break;\n default:\n $value = isset($field_value) ? $wrapper->$field->value() : null;\n\n }\n $row[$field] = $value;\n }\n $vars['rows'][] = $row;\n }\n}", "public function groupBy($column)\n\t{\n\t\t$this->groupings[] = $column;\n\t\treturn $this;\n\t}", "public function getDataListByField(string $field_name)\n {\n switch ($field_name) {\n case 'PostalCode': return $this -> get_postal_code_list(); break;\n case 'City': return $this -> generate_city_value_list(); break;\n }\n }", "public function field($field) {\n\t array_push($this->parameters['field'], $field);\n\t $this->parameters['field'] = array_unique($this->parameters['field']);\n\t\treturn $this;\n\t}", "function f($field) {\n\t\treturn($this->fetchfield($field));\n\t}", "function prepare_field_for_export($field)\n {\n }", "function sum_records_per_field_grouped_by_account($entries_records, $field_name)\n{\n\n $reports = [];\n\n foreach ($entries_records as $entry => $records) {\n\n $entry_loaded = node_load($entry);\n $entry_loaded_wrapper = entity_metadata_wrapper('node', $entry_loaded);\n\n // Getting the name of the indication or the product.\n $account = $entry_loaded_wrapper->field_account->value();\n\n $indication_or_product = $entry_loaded_wrapper->{$field_name}->value();\n if (isset($indication_or_product->name)) {\n $name = $indication_or_product->name;\n } else {\n $name = $indication_or_product[0]->name;\n }\n if (isset($account->title)) {\n $account_name = $account->title;\n } else {\n $account_name = $account[0]->title;\n }\n // If the indication is not init yet so create new array of monthes for it.\n if (!isset($reports[$account_name])) {\n $reports[$account_name] = [];\n $reports[$account_name][\"consumptions\"] = [];\n $reports[$account_name][\"stocks\"] = [];\n }\n if (!isset($reports[$account_name][\"consumptions\"][$name])) {\n $reports[$account_name][\"consumptions\"][$name] = [];\n $months = [\n 'January', 'February', 'March', 'April', 'May', 'June',\n 'July', 'August', 'September', 'October', 'November', 'December',\n ];\n foreach ($months as $month) {\n $reports[$account_name][\"consumptions\"][$name][$month] = [0];\n $reports[$account_name][\"stocks\"][$name][$month] = [0];\n }\n }\n // accounts:{products:{consumption:{months:[value]}}}.\n $records_loaded = entity_load(\"entry_month_record\", $records);\n\n foreach ($records_loaded as $id => $record) {\n $record_loaded_wrapper = entity_metadata_wrapper('entry_month_record', $record);\n $timestamp = $record_loaded_wrapper->field_entry_date->value();\n $date = getdate($timestamp);\n $month = $date['month'];\n $reports[$account_name][\"stocks\"][$name][$month][0] += $record_loaded_wrapper->field_stocks->value();\n $reports[$account_name][\"consumptions\"][$name][$month][0] += $record_loaded_wrapper->field_consumption->value();\n }\n }\n\n return $reports;\n}", "public static function get_data_by($field, $value)\n {\n }", "function acf_filter_field_groups($field_groups, $args = array())\n{\n}", "public function getGroupingCollections($objType, $fieldName)\r\n\t{\r\n\t\t$ret = array();\r\n\r\n\t\tforeach ($this->collections as $coll)\r\n\t\t{\r\n\t\t\tif ($coll->objectType == $objType && $fieldName == $coll->fieldName)\r\n\t\t\t\t$ret[] = $coll;\r\n\t\t}\r\n\r\n\t\treturn $ret;\r\n\t}", "protected function prepareGroupByPart()\n {\n $this->groupByQuery = 'GROUP BY ';\n $this->groupByQuery .= implode(', ', $this->groupByPart);\n $this->groupByQuery = \" {$this->groupByQuery} \";\n }", "public function groupBy($sql) {\n $this->__groupBy__ = $sql;\n return $this;\n }", "public function fetchOneFieldAll($sql, $fld)\n {\n $res = $this->query($sql);\n for($out = array(); $row = $res->fetch_array($this->fetch_mode); $out[] = $row[$fld]);\n return $out;\n }", "protected function setGrouping(Query $solarium_query, QueryInterface $query, $grouping_options = [], $index_fields = [], $field_names = []) {\n if (!empty($grouping_options['use_grouping'])) {\n\n $group_fields = [];\n\n foreach ($grouping_options['fields'] as $collapse_field) {\n // @todo languages\n $first_name = reset($field_names[$collapse_field]);\n /** @var \\Drupal\\search_api\\Item\\Field $field */\n $field = $index_fields[$collapse_field];\n $type = $field->getType();\n if ($this->dataTypeHelper->isTextType($type) || 's' !== Utility::getSolrFieldCardinality($first_name)) {\n $this->getLogger()->error('Grouping is not supported for field @field. Only single-valued fields not indexed as \"Fulltext\" are supported.',\n ['@field' => $index_fields[$collapse_field]['name']]);\n }\n else {\n $group_fields[] = $first_name;\n }\n }\n\n if (!empty($group_fields)) {\n // Activate grouping on the solarium query.\n $grouping_component = $solarium_query->getGrouping();\n\n $grouping_component->setFields($group_fields)\n // We always want the number of groups returned so that we get pagers\n // done right.\n ->setNumberOfGroups(TRUE)\n ->setTruncate(!empty($grouping_options['truncate']))\n ->setFacet(!empty($grouping_options['group_facet']));\n\n if (!empty($grouping_options['group_limit']) && ($grouping_options['group_limit'] != 1)) {\n $grouping_component->setLimit($grouping_options['group_limit']);\n }\n\n if (!empty($grouping_options['group_sort'])) {\n $sorts = [];\n foreach ($grouping_options['group_sort'] as $group_sort_field => $order) {\n $sorts[] = Utility::getSortableSolrField($group_sort_field, $field_names, $query) . ' ' . strtolower($order);\n }\n\n $grouping_component->setSort(implode(', ', $sorts));\n }\n }\n }\n }", "function groupByHeader(&$conf,$GBCode,$menuRow,&$groupBy,&$lastgroupBy,&$evalGroupBy,$GrpByField,&$lc,&$gc,&$i,&$pagejump,&$sql,$end=false,&$DEBUG,$nbrow) {\n\t\t// group by field handling\n\t\t//if ($end) return;\n\t\t$GBmarkerArray=array();\n\t\t$groupByFields=\"\";\n\t\t$gbflag=0;\n\t\t$newGroupBy=array();\n\t\tif ($conf['list.']['groupByFieldBreaks']) {\n\t\t\t$fNA=t3lib_div::trimexplode(',',$conf['list.']['groupByFieldBreaks']);\n\t\t\tforeach($fNA as $fN) {\n\t\t\t\t$fN2=t3lib_div::trimexplode(':',$fN);\n\t\t\t\t$fN=$fN2[0];\n\t\t\t\t//if ($conf['list.']['hiddenGroupByField.'][$fN]) continue;\n\n\t\t\t\t$GBmarkerArray['###GROUPBY_'.$fN.'###']=\"\";\n\t\t\t\t//error_log(__METHOD__.\": -\".$groupBy[$fN].\"!==\".$this->metafeeditlib->transformGroupByData($fN,$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN],$conf));\n\t\t\t\tif (($groupBy[$fN]!==$this->metafeeditlib->transformGroupByData($fN,$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN],$conf) || $end) && !$conf['list.']['hiddenGroupByField.'][$fN]) {\n\t\t\t\t\t// Group by field change !\n\t\t\t\t\t$GBmarkerArray['###FOOTERSUM_'.$fN.'_FIELD_metafeeditnbelts###']='';\n\t\t\t\t\t//error_log(__METHOD__.\": aa- $nbrow : \".$evalGroupBy[$fN]);\n\t\t\t\t\tif ($nbrow>1) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t$GBmarkerArray['###GROUPBYFOOTER_'.$fN.'###']=$evalGroupBy[$fN]; \n\t\t\t\t\t\t$this->metafeeditlib->getGroupByFooterSums($conf,'FOOTERSUM',$GBmarkerArray,$fN,$sql,$lastgroupBy,$end,$DEBUG);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFOOTERFIELD_'.$fN.'###','');\n\t\t\t\t\t}\n\t\t\t\t\t$std=$menuRow[$fN];\n\n\t\t\t\t\t// Default we get value from std group by field ...\n\t\t\t\t\tif ($GrpByField[$fN]) {\n\t\t\t\t\t $std=$menuRow[$GrpByField[$fN]];\n\t\t\t\t\t if ($menuRow['EVAL_'.str_replace('.','_',$GrpByField[$fN])]) $std=$menuRow['EVAL_'.str_replace('.','_',$GrpByField[$fN])];\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t// stdWrap on group by.\t\t\n\t\t\t\t\t$_fN=str_replace('.','_',$fN);\n\t\t\t\t\tif ($conf['list.']['groupByFields.']['stdWrap.'][$_fN.'.']) {\n\t\t\t\t\t $this->cObj->start($menuRow,$this->theTable);\n\t\t\t\t\t $std=$this->cObj->stdWrap($std,$conf['list.']['groupByFields.']['stdWrap.'][$_fN.'.']);\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\t\t// ??? \t\n\t\t\t\t\t\n\t\t\t\t\tif ($GrpByField[$fN]) {\n\t\t\t\t\t\t$newGroupBy[$fN]=$menuRow[$GrpByField[$fN]];\n\t\t\t\t\t} else {\n\t\t\t\t\t\t$newGroupBy[$fN]=$menuRow[$fN];\n\t\t\t\t\t\tif ($menuRow['EVAL_'.$_fN]) $std=$menuRow['EVAL_'.$_fN];\n\t\t\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\t\t// we set group by flag\n\t\t\t\t\t$gbflag=1;\n\t\t\t\t\t$GBmarkerArray['###GROUPBY_'.$fN.'###']=$std;\n\t\t\t\t\t$evalGroupBy[$fN]=$std;\n\t\t\t\t\t// We have to reset all son groupbys so that the headers will be regenerated...\n\t\t\t\t\t$resetgbf=FALSE;\n\t\t\t\t\tif (is_array($groupBy)) foreach ($groupBy as $gbf=>$val) {\n\t\t\t\t\t\tif ( $resetgbf) unset($groupBy[$gbf]);\n\t\t\t\t\t\tif ($gbf==$fN) $resetgbf=TRUE;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// we clear unused group bys \n\t\t\t\t\t$GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFIELD_'.$fN.'###','');\n\t\t\t\t\t$GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFOOTERFIELD_'.$fN.'###','');\n\t\t\t\t}\n\t\t\t\t// We clear next group by if end of list is reached\n\t\t\t\tif ($end) $GBCode=$this->cObj->substituteSubpart($GBCode, '###GROUPBYFIELD_'.$fN.'###','');\n\t\t\t}\n\t\t\tforeach($newGroupBy as $fN=>$val) {\n\t\t\t\t$groupBy[$fN]=$this->metafeeditlib->transformGroupByData($fN,$val,$conf);\n\t\t\t\t//$lastgroupBy[$fN]=$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN];\n\t\t\t\t$lastgroupBy[$fN]=$this->metafeeditlib->transformGroupByData($fN,$menuRow[$GrpByField[$fN]?$GrpByField[$fN]:$fN],$conf);\n\t\t\t}\n\t\t}\n\t\tif ($gbflag) {\n\t\t\t$groupByFields=$this->cObj->substituteMarkerArray($GBCode, $GBmarkerArray);\n\t\t\t$gc++;\n\t\t\t// Jump page on group by\n\t\t\tif ($gc>1 && $conf['list.']['jumpPageOnGroupBy']) {\n\t\t\t $pagejump=1;\n\t\t\t}\n\t\t\tif ($conf['list.']['groupBySize']) {\n\t\t\t\t$lc=$lc+$conf['list.']['groupBySize'];\n\t\t\t}\n\t\t\tif ($conf['list.']['no_detail']) $lc++; //MMM\n\n\t\t\tif ($gc>1 && $dispDir=='Right') $lc++;\n\t\t\t$i=0; // pour fin de ligne\n\t\t}\n\t\t//error_log(__METHOD__.\"end: -\".print_r($groupByFields,true)); \n\t\treturn $groupByFields;\n\t}", "private function fetchGroups($academicid, $sortorder = '', $sortfield = '', $limit = 0, $offset = 0) {\n dol_syslog(__METHOD__, LOG_DEBUG);\n\n $sql = 'SELECT';\n $sql .= ' t.rowid,';\n\n $sql .= \" t.ref,\";\n $sql .= \" t.sufix,\";\n $sql .= \" t.label,\";\n $sql .= \" t.fk_academicyear,\";\n $sql .= \" t.grado_code,\";\n $sql .= \" t.tms,\";\n $sql .= \" t.date_create,\";\n $sql .= \" t.statut,\";\n $sql .= \" t.import_key\";\n\n\n $sql .= ' FROM ' . MAIN_DB_PREFIX . 'educo_group as t';\n\n // Manage filter\n\n $sql .= ' WHERE 1 = 1';\n $sql .= \" AND t.fk_academicyear =$academicid\";\n if (!empty($conf->multicompany->enabled)) {\n $sql .= \" AND entity IN (\" . getEntity(\"educogroup\", 1) . \")\";\n }\n\n if (!empty($sortfield)) {\n $sql .= $this->db->order($sortfield, $sortorder);\n }\n if (!empty($limit)) {\n $sql .= ' ' . $this->db->plimit($limit + 1, $offset);\n }\n $lines = array();\n $resql = $this->db->query($sql);\n if ($resql) {\n $num = $this->db->num_rows($resql);\n\n while ($obj = $this->db->fetch_object($resql)) {\n $lines[] = $obj;\n }\n $this->db->free($resql);\n return $lines;\n } else {\n $this->errors[] = 'Error ' . $this->db->lasterror();\n dol_syslog(__METHOD__ . ' ' . implode(',', $this->errors), LOG_ERR);\n\n return - 1;\n }\n }" ]
[ "0.7004244", "0.65770024", "0.6551445", "0.65145576", "0.6369502", "0.63546884", "0.63137305", "0.6152158", "0.608925", "0.59699535", "0.5914712", "0.59047854", "0.58912283", "0.5886462", "0.58660424", "0.5859383", "0.58371377", "0.5814556", "0.5753937", "0.57474047", "0.5683865", "0.56498003", "0.5548986", "0.55430937", "0.5540406", "0.5499217", "0.54698366", "0.5435374", "0.5428134", "0.5410883", "0.5393458", "0.5388015", "0.53849244", "0.5373812", "0.53519404", "0.5332126", "0.5327835", "0.5311201", "0.52747977", "0.52611613", "0.5258003", "0.52423346", "0.5218905", "0.52090466", "0.5192514", "0.5162978", "0.51455355", "0.5117718", "0.51022685", "0.50906473", "0.5089801", "0.5074229", "0.50735843", "0.5067373", "0.5059135", "0.50588524", "0.505542", "0.50542074", "0.504169", "0.50329775", "0.50325537", "0.5028956", "0.5028356", "0.50282747", "0.5017957", "0.49866515", "0.49853766", "0.4982525", "0.4980792", "0.4968537", "0.4964479", "0.49568567", "0.49499524", "0.49499148", "0.49214536", "0.49195015", "0.4913777", "0.49111736", "0.49086016", "0.49001804", "0.48962995", "0.48850378", "0.48754472", "0.487251", "0.48724133", "0.4866551", "0.48584256", "0.4854036", "0.48418415", "0.48368594", "0.4822128", "0.48190594", "0.4816694", "0.48144257", "0.48073325", "0.48060918", "0.47951835", "0.47866514", "0.47794652" ]
0.7834335
1
Sets a condition in the HAVING clause that the specified field be NULL.
Устанавливает условие в разделе HAVING, что указанное поле равно NULL.
public function havingIsNull($field);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function havingIsNotNull($field);", "public function havingIsNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NULL');\n }", "public function orHavingIsNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NULL');\n }", "public static function whereNull($column);", "public function isNullCond(string $field, string $connector = \"AND\", bool $not = false);", "public function __null ( $sField )\n {\n return \"$sField IS NULL\";\n }", "public function whereNull($fields);", "public function havingIsNotNull(Closure | string $column) : static\n {\n return $this->having($column, 'IS NOT NULL');\n }", "public function havingCondition($field, $value = NULL, $operator = NULL);", "public static function whereIsNull($parameter);", "private function cek_null($val,$field)\n { if (isset($val)){ return $this->ci->db->where($field, $val); } }", "public function orHavingIsNotNull(Closure | string $column) : static\n {\n return $this->orHaving($column, 'IS NOT NULL');\n }", "public function clearCondition(){\n\t\t$this->where=\"\";\n\t}", "public function whereNull(String $col){\r\n $this->where->add($colName.\" IS NULL\");\r\n\r\n }", "public function whereNotNull($field)\n {\n return $this->makeModel()->whereNotNull($field);\n\n }", "public function orHavingNotEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->orHaving($column, '!=', $value);\n }", "protected function whereNull(Builder $query, $where)\n {\n return $this->wrap($where['column']).' is null';\n }", "public function havingNotEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->having($column, '!=', $value);\n }", "protected function _emptyFieldsToNull(&$field, $key)\n {\n if ($this->_metadata[$key]['NULLABLE'] && empty($field)) {\n $field = null;\n }\n }", "public function isNull() {\n $this->_action = 'IS NULL';\n $this->_value = '';\n \n return $this;\n }", "protected function whereNull(Builder $query, array $where)\n {\n return $this->wrap($where['column']) . ' is null';\n }", "public function notNull($column)\n {\n $this->addCondition($this->db->escapeIdentifier($column).' IS NOT NULL');\n }", "public function having($field, $value = null, $comparitor = null);", "public static function whereNotNull($column);", "public function where_null($name, $state=true)\n {\n $this->where[] = sprintf('%s %s null', self::quote_name($name), $state ? 'is': 'is not');\n return $this;\n }", "public function __notnull ( $sField )\n {\n return \"$sField IS NOT NULL\";\n }", "public function null(): FluidColumnOptions\n {\n $this->column->setNotnull(false);\n return $this;\n }", "public function whereNone($operand, $operatorOrValue=null, $value=null);", "public function whereNotExists($field) {\n\t$this->parseQuery->whereDoesNotExist($field);\n }", "public function not_having($having) \n {\n $this->sql .= \" NOT HAVING \". $this->clean($having);\n return $this;\n }", "public function havingNullSafeEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->having($column, '<=>', $value);\n }", "public function addFieldToFilter($field, $condition = null): self\n {\n if ($field === 'store_id') {\n return $this->addStoreFilter($condition, false);\n }\n\n return parent::addFieldToFilter($field, $condition);\n }", "public function optional(Field $field)\n {\n $disp = $field->getDispatcher();\n $disp->addListener(Events::BEFORE_TRANSFORM, function (Event $event) {\n if (null === $event->getInput()) {\n $event->setData(null);\n }\n });\n\n return $field;\n }", "public function clearWhere()\n {\n \t$this->_where = null;\n }", "public function xorHaving($field, $op = null, $value = null) {\n return $this->_modifyPredicate($this->_having, Predicate::MAYBE, $field, $op, $value);\n }", "public function notNull() {\n $this->_action = 'IS NOT NULL';\n $this->_value = '';\n \n return $this;\n }", "protected function applyFieldConditions()\n {\n if ($this->field !== null) {\n $this->andWhere(Db::parseParam('fieldId', $this->parseFieldValue($this->field)));\n }\n }", "public function whereNotNull($fields);", "public function fieldCondition($field, $column = NULL, $value = NULL, $operator = NULL, $delta_group = NULL, $language_group = NULL) {\n $this->invokeEntityFieldQuery('fieldCondition', array($field, $column, $value, $operator, $delta_group, $language_group));\n return $this;\n }", "protected function whereNull(Builder $builder, $where): string\n {\n return $this->wrap($where['column']).' is null';\n }", "abstract public function isNull();", "public function isNull();", "protected function whereNotNull(Builder $query, $where)\n {\n return $this->wrap($where['column']).' is not null';\n }", "public function getSqlFilter(Mouf_DBConnection $dbConnection) {\n\t\treturn $this->columnName.\" IS NULL\";\n\t}", "public function notNull(): FluidColumnOptions\n {\n $this->column->setNotnull(true);\n return $this;\n }", "public function orHavingNullSafeEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->orHaving($column, '<=>', $value);\n }", "public function testBuildWhereEmpty()\n {\n $query = $this->getQuery();\n\n $this->assertSame(\n '',\n $query->buildWhere()\n );\n }", "public function having($prop, $value = PDODBNULL, $operator = '=', $cond = 'AND'){\r\n $this->_having[] = array($prop,$value,$operator,$cond);\r\n return $this;\r\n }", "public function orHavingNotLike(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->orHaving($column, 'NOT LIKE', $value);\n }", "public function orHaving($field, $op = null, $value = null) {\n return $this->_modifyPredicate($this->_having, Predicate::EITHER, $field, $op, $value);\n }", "function NotWhere ($whereclause)\n\t{\n\t\t$this->clause = $whereclause;\n\t}", "public final function isNullAllowed($fld)\n {\n return $this->columns->{$fld}->null == 1 ? true : false;\n }", "public function having($clause, array $params);", "public function addFieldToFilter($field, $condition = null)\n {\n return parent::addFieldToFilter($field, $condition);\n }", "public function testWhereNotEqualsNull()\n {\n $query = (new WhereBuilder($this->mockConnection))->where('field', '!=', null);\n $array = $query->toArray();\n\n $this->assertInstanceOf(WhereBuilder::class, $query);\n $this->assertEquals([\n 'where' => [\n [\n 'column' => 'field',\n 'operator' => 'is not',\n 'value' => 'NULL',\n 'boolean' => 'and',\n ]\n ]\n ], $array);\n\n $query = (new WhereBuilder($this->mockConnection))->where('field', '<>', null);\n $array = $query->toArray();\n\n $this->assertInstanceOf(WhereBuilder::class, $query);\n $this->assertEquals([\n 'where' => [\n [\n 'column' => 'field',\n 'operator' => 'is not',\n 'value' => 'NULL',\n 'boolean' => 'and',\n ]\n ]\n ], $array);\n }", "public function notGroupStart(): QueryBuilderInterface\n\t{\n\t\t$conj = empty($this->state->getQueryMap()) ? ' WHERE ' : ' AND ';\n\n\t\t$this->state->appendMap($conj, ' NOT (', 'group_start');\n\n\t\treturn $this;\n\t}", "public static function set_null_data($field)\n\t{\n\t\tforeach($field as $key => $value)\n\t\t{\n\t\t\tif($value == null || $value == '')\n\t\t\t{\n\t\t\t\t$field[$key] = null;\n\t\t\t}\n\t\t}\n\n\t\treturn $field;\n\t}", "public function testMissingFields()\n {\n $arrayFilterConfig = array(\n 'fields' => array(\n array(\n 'field' => '',\n 'value' => 'News')),\n 'fstat' => array(),\n 'search' => array()\n );\n \n $this->setExpectedException(\n 'InvalidArgumentException',\n 'Cannot add condition. Field must be a non-empty string.'\n );\n $filter = new P4Cms_Record_Filter($arrayFilterConfig);\n }", "public function whereNotEqualTo($field, $value) {\n\t$this->parseQuery->whereNotEqualTo($field, $value);\n }", "public function addFieldToFilter($field, $condition = null)\n {\n if ($field === 'store_id') {\n return $this->addStoreFilter($condition, false);\n }\n\n if ($field === 'customer_group_id') {\n return $this->addCustomerGroupFilter($condition, false);\n }\n\n return parent::addFieldToFilter($field, $condition);\n }", "public function cleanField($field)\n\t{\n\t\t//by default... we dont clean anything\n\t}", "public function testWhereEqualsNull()\n {\n $query = (new WhereBuilder($this->mockConnection))->where('field', '=', null);\n $array = $query->toArray();\n\n $this->assertInstanceOf(WhereBuilder::class, $query);\n $this->assertEquals([\n 'where' => [\n [\n 'column' => 'field',\n 'operator' => 'is',\n 'value' => 'NULL',\n 'boolean' => 'and',\n ]\n ]\n ], $array);\n }", "function _ting_ranking_field_filter($element) {\n return !empty($element['field_name']);\n}", "protected function whereNotNull(Builder $query, array $where)\n {\n return $this->wrap($where['column']) . ' is not null';\n }", "public function havingNotLike(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->having($column, 'NOT LIKE', $value);\n }", "public function neq(): WhereCondition\n {\n\n $this->_op = self::OP_TYPE_NEQ;\n\n return $this;\n\n }", "public function having($conditions) {\n $this->having = !empty($conditions) ? ('HAVING ' . implode(',', $conditions)) : null;\n return $this;\n }", "public function except($clause)\n {\n // $prop = '_' . $clause;\n \n switch ($clause) {\n case 'distinct':\n case 'from':\n case 'offset':\n case 'limit':\n case 'page':\n case 'per_page':\n $this->$clause = null;\n break;\n \n case 'select':\n case 'joins':\n case 'where':\n case 'where_params':\n case 'order':\n case 'group':\n case 'having':\n case 'having_params':\n $this->$clause = [];\n break;\n }\n return $this;\n }", "public function where_not_null($name)\n {\n return $this->where_null($name, false);\n }", "public function scopeSimple($query)\n {\n return $query->where('group_id', NULL);\n }", "public function zero()\n {\n $this->assertFalse($this->orCriterion->hasCriterion());\n $this->orCriterion->toSQL();\n }", "public function testconstructSQLClauseNullValues()\n {\n $_SESSION['behat']['GenesisSqlExtension']['keywords'] = [];\n $_SESSION['behat']['GenesisSqlExtension']['notQuotableKeywords'] = [];\n\n // Prepare / Mock\n $glue = ' AND ';\n $columns = [\n 'firstname' => 'null',\n 'lastname' => '!null',\n 'postcode' => '!NULL',\n 'address' => 'NULL'\n ];\n\n // Execute\n $result = $this->testObject->constructSQLClause($glue, $columns);\n\n $expected = \"firstname is null AND lastname is not null AND postcode is not NULL AND address is NULL\";\n\n // Assert Result\n $this->assertEquals($expected, $result);\n }", "public function clear($clause = null)\n\t{\n\t\tswitch ($clause)\n\t\t{\n\t\t\tcase 'union':\n\t\t\t\t$this->unionDistinct = true;\n\t\t\t\t$this->_union = array();\n\t\t\t\tbreak;\n\t\t\tcase 'select':\n\t\t\t\t$this->_select = array();\n\t\t\t\tbreak;\n\t\t\tcase 'from':\n\t\t\t\t$this->_from = array();\n\t\t\t\tbreak;\n\t\t\tcase 'join':\n\t\t\t\t$this->_join = array();\n\t\t\t\tbreak;\n\t\t\tcase 'where':\n\t\t\t\t$this->_where = null;\n\t\t\t\tbreak;\n\t\t\tcase 'group':\n\t\t\t\t$this->_group = array();\n\t\t\t\tbreak;\n\t\t\tcase 'having':\n\t\t\t\t$this->_having = array();\n\t\t\t\tbreak;\n\t\t\tcase 'order':\n\t\t\t\t$this->_order = array();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\t$this->unionDistinct = true;\n\t\t\t\t$this->_union = array();\n\t\t\t\t$this->_select = array();\n\t\t\t\t$this->_from = array();\n\t\t\t\t$this->_join = array();\n\t\t\t\t$this->_where = null;\n\t\t\t\t$this->_group = array();\n\t\t\t\t$this->_having = array();\n\t\t\t\t$this->_order = array();\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn $this;\n\t}", "public function is_null($column, $boolean = 'and', $not = false)\r\n {\r\n return $this->where_assoc(array($column => null), $boolean, $not);\r\n }", "protected function setNullableField($model, $field)\n {\n $value = $model->getAttribute($field);\n\n # Compare the Value to empty string\n if( $value === ''){\n $value = null;\n }\n\n $model->setAttribute($field, $value );\n }", "public function whereNull($column, $boolean = 'and', $not = false)\n {\n return $this->callHook(__FUNCTION__, $this->packArgs(compact('column', 'boolean', 'not')));\n }", "public function whereNotEq()\n {\n \n list($field, $value) = $this->extractQueryToFieldAndValue(func_get_args());\n $this->_conditions[self::WHERENOT][$field] = [self::OPERATORS['ne'] => $value];\n return $this;\n }", "public static function null(string $column, $not = false): Condition\n {\n $self = (new Condition())->column($column);\n return $not ? $self->isNotNull() : $self->isNull();\n }", "public function having($conditions = null, $overwrite = false);", "public function addFieldToFilter($field, $condition = null)\n {\n if (isset($this->_fields[$field])) {\n $field = $this->_fields[$field];\n }\n\n return parent::addFieldToFilter($field, $condition);\n }", "function isNull($x, $y='null', $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _isNULL, $y, $and, ...$args);\n return $expression;\n }", "function isNull($x, $y='null', $and=null, ...$args)\n {\n $expression = array();\n array_push($expression, $x, _isNULL, $y, $and, ...$args);\n return $expression;\n }", "public function having($condition)\n\t\t{\n\t\t\tif($condition instanceof Condition || $condition instanceof ConditionGroup)\n\t\t\t{\n\t\t\t\t$this->havings = $condition; \n\t\t\t\treturn $this;\t\t\t\t\n\t\t\t}\n\t\t\tthrow new \\Exception('Can only add Conditions or ConditionGroups to a statement\\'s where block');\n\t\t}", "public static function having($prop, $value = PDODBNULL, $operator = '=', $cond = 'AND'){\r\n return self::$PDO->having($prop,$value,$operator,$cond);\r\n }", "public function having($field, $value = null, $escape = null)\n {\n return $this->prepareWhereStatement($field, $value, 'AND ', $escape, 'having');\n }", "protected function whereNotNull(Builder $builder, $where): string\n {\n return $this->wrap($where['column']).' is not null';\n }", "public function testGroupByNone() {\n $this->groupByTestHelper(NULL, [1, 5]);\n }", "protected function whereNull($builder, $column, $boolean = 'and', $not = false)\n {\n return $builder->whereNull($column, $boolean, $not);\n }", "public function filterByWithoutLength()\n {\n $this->query->andWhere($this->query->expr()->isNull('b.length'));\n }", "public function is_not_null($column, $boolean = 'and')\r\n {\r\n return $this->where_assoc(array($column => null), $boolean, true);\r\n }", "public function onDeleteSetNull()\n {\n return $this->onDelete(ForeignKeyMode::SET_NULL);\n }", "public function changeFieldToNotNullable($field)\n {\n\t$result= PerfORMController::getConnection()->query('select * from %n where %n is null',\n\t $field->getModel()->getTableName(),\n\t $field->getName()\n\t);\n\n\t$pk= $field->getModel()->getPrimaryKey();\n\n\tforeach($result as $row )\n\t{\n\t if ( !is_null($value= $field->getDefaultValue()) )\n\t {\n\t }\n\t elseif ( is_callable($field->getDefaultCallback()))\n\t {\n\t\t$value= call_user_func($field->getDefaultCallback(), $row);\n\t }\n\t else\n\t {\n\t\tthrow new Exception(\"Unable to set default value for field '\".$field->getName().\"'\");\n\t }\n\n\t PerfORMController::getConnection()->query('update %n set %n = %'.$field->getType().' where %n = %i',\n\t $field->getModel()->getTableName(),\n\t $field->getName(),\n\t $value,\n\t $pk,\n\t $row->{$pk}\n\t );\n\t}\n\n\tPerfORMController::getBuilder()->changeFieldsNullable($field);\n\t$this->updateFieldSync($field);\n }", "public function testBuildGroupByEmpty()\n {\n $query = $this->getQuery();\n\n $this->assertSame(\n '',\n $query->buildGroupBy()\n );\n }", "protected function beforeSave()\n {\n foreach ($this->getTableSchema()->columns as $column)\n {\n if ($column->allowNull == 1 && $this->getAttribute($column->name) == '')\n {\n $this->setAttribute($column->name, null);\n }\n }\n \n return parent::beforeSave();\n }", "public function having($field, $op = null, $value = null) {\n return $this->_modifyPredicate($this->_having, Predicate::ALSO, $field, $op, $value);\n }", "public function changeFieldToNullable($field)\n {\n\tPerfORMController::getBuilder()->changeFieldsNullable($field);\n\t$this->updateFieldSync($field);\n }", "public function orHavingEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->orHaving($column, '=', $value);\n }", "public function compilarWhereNull(Builder $builder, $where)\n {\n return $where['boolean'] . \" {$this->colunize($where['column'])} is null\";\n \n }", "public function orHavingLessThanOrEqual(\n Closure | string $column,\n Closure | float | int | string | null $value\n ) : static {\n return $this->orHaving($column, '<=', $value);\n }", "public function whereNull($column, $boolean = 'and', $not = false)\n {\n $type = $not ? 'NotNull' : 'Null';\n\n if ($column == 'id') {\n $column = 'id('.$this->modelAsNode().')';\n }\n\n $binding = $this->prepareBindingColumn($column);\n\n $this->wheres[] = compact('type', 'column', 'boolean', 'binding');\n\n return $this;\n }" ]
[ "0.625018", "0.59701", "0.5928521", "0.5795825", "0.57617235", "0.57091147", "0.56600934", "0.5634498", "0.56288326", "0.56081384", "0.5589795", "0.5502315", "0.5385832", "0.5377742", "0.53713465", "0.53582776", "0.53570306", "0.53266454", "0.5301143", "0.52739", "0.5167355", "0.5150008", "0.51469994", "0.5145675", "0.5133894", "0.5108633", "0.50924546", "0.5087649", "0.506398", "0.5036334", "0.5016021", "0.4979556", "0.4974588", "0.49434066", "0.49399233", "0.49395257", "0.49182367", "0.4914048", "0.49040088", "0.48963264", "0.48953718", "0.489149", "0.4884076", "0.48827416", "0.48685795", "0.4865916", "0.48350844", "0.48334002", "0.47732794", "0.47564286", "0.47485062", "0.4719499", "0.47098336", "0.4709166", "0.4708174", "0.47020245", "0.46924567", "0.46876898", "0.46854877", "0.46777543", "0.46735862", "0.46639717", "0.46618956", "0.46458852", "0.4634954", "0.4627325", "0.46213973", "0.4618203", "0.46132833", "0.4600843", "0.4593136", "0.4593129", "0.45504245", "0.45503137", "0.45451793", "0.4542468", "0.45322403", "0.4530849", "0.45125893", "0.4512034", "0.45111546", "0.45111546", "0.4491472", "0.44908625", "0.4484004", "0.4478726", "0.4478461", "0.44768837", "0.4475587", "0.44710958", "0.44649646", "0.44533673", "0.44496804", "0.4448039", "0.4443498", "0.44366944", "0.44263563", "0.44253558", "0.4415164", "0.44145963" ]
0.7071005
0
Fetch the correctly formatted internal encryption algorithm method name.
Получите правильно сформированный внутренний метод имени алгоритма шифрования.
abstract protected function fetchAlgorithmMethodName();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getAlgorithm() : string\n {\n return self::ALGORITHM;\n }", "public function getAlgorithm(): string\n {\n return $this->getHeaderClaim('alg');\n }", "function mcrypt_enc_get_algorithms_name($td)\n{\n}", "abstract public function getAlgorithmType(): string;", "final protected static function getMethod(): string\n {\n return Application::getConfig('application')->getArrayItem('security', 'openssl_default_method') ?? self::DEFAULT_METHOD;\n }", "public function getMethod() {\n\t\tif (isset($_GET[$this->config->get('methodParam')]))\n\t\t\t$method = urldecode($_GET[$this->config->get('methodParam')]);\n\t\telse\n\t\t\t$method = $this->config->get('defaultMethod');\n\t\t\n\t\treturn strtolower($method);\n\t}", "protected function algorithm(): string\r\n {\r\n return PASSWORD_ARGON2ID;\r\n }", "public function getAlgorithm()\n {\n return $this->algorithm;\n }", "public function getAlgorithm()\n {\n return $this->algorithm;\n }", "private function getHashAlgorithm(string $algorithm) : string\n {\n switch ($algorithm) {\n case Algorithms::SHA256:\n return 'sha256';\n case Algorithms::SHA384:\n return 'sha384';\n case Algorithms::SHA512:\n return 'sha512';\n default:\n throw new InvalidArgumentException(\"Algorithm \\\"$algorithm\\\" is not a hash algorithm\");\n }\n }", "public static function getCamelCaseEncryption() {\n return ucfirst(strtolower(IPlayerConfiguration::CRYPTOGRAPHY_ALGORITHM_NAME . IPlayerConfiguration::CRYPTOGRAPHY_ALGORITHM_VERSION));\n }", "public function getAlgorithm()\n {\n return $this->_algorithm;\n }", "public function method() {\n\t\treturn strtoupper($this->getMethod());\n\t}", "public function getInputMethod()\n {\n global $db, $langs;\n\n if ($this->methode_commande_id > 0)\n {\n $sql = \"SELECT rowid, code, libelle as label\";\n $sql.= \" FROM \".MAIN_DB_PREFIX.'c_input_method';\n $sql.= \" WHERE active=1 AND rowid = \".$db->escape($this->methode_commande_id);\n\n $resql = $db->query($sql);\n if ($resql)\n {\n if ($db->num_rows($query))\n {\n $obj = $db->fetch_object($query);\n\n $string = $langs->trans($obj->code);\n if ($string == $obj->code)\n {\n $string = $obj->label != '-' ? $obj->label : '';\n }\n return $string;\n }\n }\n else dol_print_error($db);\n }\n\n return '';\n }", "public function getMethodName() {\r\n\t\treturn($this->method_name);\r\n\t}", "public function getSignAlgorithm() : string\n {\n return $this->signAlgorithm;\n }", "public function getMethodName()\n {\n return PhandArr::last(explode('@', $this->getMethodInvokerName()));\n }", "abstract protected function getMethodName();", "abstract protected static function getHashAlgorithm() : string;", "protected function getHashMethod()\r\n {\r\n return $this->processor_data['processor_params']['hash_method'];\r\n }", "public function getCrypterSuffix() : string\n {\n return $this->shouldBeEncrypted() ? '.' . $this->crypter->getSuffix() : '';\n }", "public function getAlgorithm() {\n $signer = $this->header->getSigner();\n if ($signer !== false) {\n return $signer->getAlgorithm();\n }\n return false;\n }", "public static function getAlgo()\n {\n return 'HS256';\n }", "public static function getAlgo()\n {\n return 'HS256';\n }", "protected function getAlgorithm()\r\n {\r\n return 'SHA256';\r\n }", "public function getMethodName();", "public function getMethodName();", "public function getMethodName();", "private function getOpenSslDigestAlgo(int $algo): string\n {\n switch ($algo) {\n case OPENSSL_ALGO_SHA1:\n return 'sha1';\n case OPENSSL_ALGO_SHA224:\n return 'sha224';\n case OPENSSL_ALGO_SHA256:\n return 'sha256';\n case OPENSSL_ALGO_SHA384:\n return 'sha384';\n case OPENSSL_ALGO_SHA512:\n return 'sha512';\n default:\n throw new XmlSignatureValidatorException(\n \"Cannot verify: Unsupported Algorithm <$algo>\"\n );\n }\n }", "protected function getHashAlgo()\n {\n return self::INTERNAL_ALGORITHM;\n }", "public static function getEncryption() {\n return IPlayerConfiguration::CRYPTOGRAPHY_ALGORITHM_NAME . IPlayerConfiguration::CRYPTOGRAPHY_ALGORITHM_VERSION;\n }", "public function getInternalName();", "public function getSigningAlgorithm()\n {\n if (isset($this->raw->algorithm)) {\n if (is_string($this->raw->algorithm)) {\n if (false === defined('Phar::' . $this->raw->algorithm)) {\n throw new InvalidArgumentException(\n sprintf(\n 'The signing algorithm \"%s\" is not supported.',\n $this->raw->algorithm\n )\n );\n }\n\n return constant('Phar::' . $this->raw->algorithm);\n }\n\n return $this->raw->algorithm;\n }\n\n return Phar::SHA1;\n }", "public function getAesName();", "protected function getMethod(): string\n {\n if (strlen($this->method) == 0) {\n $this->method = 'get';\n }\n return $this->method;\n }", "protected function getPkceMethod()\n {\n return AbstractProvider::PKCE_METHOD_S256;\n }", "public function getMethod() : string\n {\n return static::$method;\n }", "public function getPasswordCryptMethod() {\n\t\treturn $this->_passwordCryptMethod;\n\t}", "public function getMethod()\n {\n return Mage::getStoreConfig('smsnotifier/main_conf/message_type');\n //return Mage::helper('core')->decrypt($encrypted_pass);\n }", "public static function rsaAlgoNameFromId( $opensslAlgo ) {\n\t\tswitch( $opensslAlgo ) {\n\t\tcase OPENSSL_ALGO_SHA1:\n\t\t\treturn 'SHA1withRSA';\n\t\tcase OPENSSL_ALGO_SHA512:\n\t\t\treturn 'SHA512withRSA';\n\t\tdefault:\n\t\t\tthrow new Exception(\"Unsupported algorithm: $opensslAlgo\");\n\t\t}\n\t}", "public function get_normalized_http_method() {\n return strtoupper($this->http_method);\n }", "public function getEncryptionAlgo() {\n\treturn $this->cipher;\n }", "public function get_normalized_http_method()\n {\n return strtoupper($this->http_method);\n }", "public function getEncryptionAlgorithm($client_id = null)\n\t{\n//\n//\t\t$stmt->execute(compact('client_id'));\n//\t\tif ($result = $stmt->fetch(\\PDO::FETCH_ASSOC)) {\n//\t\t\treturn $result['encryption_algorithm'];\n//\t\t}\n//\n//\t\treturn 'RS256';\n\t\t//TODO: Needs mongodb implementation.\n\t\tthrow new \\Exception('getEncryptionAlgorithm() for the MongoDB driver is currently unimplemented.');\n\t}", "public function getAuthenticationMethod() {\n\t\treturn $this->selectedEndpoint['authentication_method'];\n\t}", "public function getFormKey()\n\t{\n\t\treturn encrypt((new \\ReflectionClass($this))->getShortName());\n\t}", "public function getSignAlgorithm(): string {\n\t\t\treturn $this->signAlgorithm;\n\t\t}", "protected function getMethodName($key){\n\t\t$method = $this->getMethod($key);\n\t\t\n\t\treturn $method->getName();\n\t}", "public function getMethodName()\n {\n return $this->method;\n }", "public function getPaymentName()\n {\n return self::METHOD_NAME;\n }", "public function getMethod(): string {}", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getMethod(): string;", "public function getApiMethodName() : string {\n\t\treturn $this->apiMethod;\n\t}", "public function getPhpNamingMethod()\n {\n return $this->phpNamingMethod;\n }", "private static function _algoClassByName(string $alg): string\n {\n if (!array_key_exists($alg, self::MAP_ALGO_TO_CLASS)) {\n throw new \\UnexpectedValueException(\n \"Algorithm '{$alg}' not supported.\");\n }\n return self::MAP_ALGO_TO_CLASS[$alg];\n }", "public function getMethodFileName($method) {\n\t\tglobal $rootPath;\n\t\tif(!isset($rootPath)) $rootPath = \"\";\n\t\t\t$fct_name = $this->tblname.\"_APAS_$method\";\n\t\tif($this->extname == \"CORE\")\n\t\t\t$fct_file_name = $rootPath.$this->extname.\"/$fct_name.mth.php\";\n\t\telse\n\t\t\t$fct_file_name = $rootPath.\"extensions/\".$this->extname.\"/$fct_name.mth.php\";\n\t\treturn array($fct_file_name,$fct_name);\n\t}", "public function getOperator(): string {\n\t\tswitch($this->rndOperator) {\n\t\t\tcase self::PLUS:\n\t\t\t\treturn Config::ANTI_SPAM_USE_MATH_SYMBOLS ? '+' : Language::out()->getPlusName();\n\t\t\tcase self::MINUS:\n\t\t\t\treturn Config::ANTI_SPAM_USE_MATH_SYMBOLS ? '-' : Language::out()->getMinusName();\n\t\t\tcase self::MULTIPLE:\n\t\t\tdefault:\n\t\t\t\treturn Config::ANTI_SPAM_USE_MATH_SYMBOLS ? '*' : Language::out()->getMultiplyWithName();\n\t\t}\n\t}", "public function cipherName()\n\t{\n\t\treturn $this->cipher->name();\n\t}", "public function fetch_method()\n\t{\n\t\t$method = $this->route_stack[self::SEG_METHOD];\n\t\treturn ($method === $this->fetch_class()) ? 'index' : $method;\n\t}", "public function getMethodName() : string\n {\n\n return $this->methodName;\n }", "public function getBasicAuthMethod() {\n\t\treturn $this->selectedEndpoint['basic_auth_method'];\n\t}", "private static function get_method(){\n\t\t\tif(!self::$method)\n\t\t\t\tself::$method = $_SERVER['REQUEST_METHOD'];\n\t\t\t\t\n\t\t\treturn strtolower(self::$method);\n\t\t}", "protected function get_method_type() {\n\n\t\treturn isset( $this->response_data->expMonth ) ? 'credit_card' : 'echeck';\n\t}", "public static function getAlgorithm();", "protected function getMethod(): string\n {\n return $this->getTwoStep() ? 'rest/registerPreAuth.do' : 'rest/register.do';\n }", "public function getMethod(): string\n {\n return $this->method;\n }", "public function getMethod(): string\n {\n return $this->method;\n }", "public function method(): string\n {\n return $this->method;\n }", "public function method(): string{\n return $this->_method;\n }", "public function getName() \n { \n return $this->getType().\"_\".substr(md5(implode($this->getParameters())), 0, 20);\n }", "public function get_login_method() \n {\n return $this->login_method;\n }", "public function getName(): string\n {\n if (!$this->useAlternateName) {\n return 'get' . $this->getPropertyName();\n } else {\n $methodName = 'get' . $this->getPropertyName() . 'By';\n\n $camelizedColumns = array_map([TDBMDaoGenerator::class, 'toCamelCase'], $this->foreignKey->getUnquotedLocalColumns());\n\n $methodName .= implode('And', $camelizedColumns);\n\n return $methodName;\n }\n }", "public function httpMethodString()\n\t{\n\t\t$this->httpMethod();\n\t\treturn $this->_httpMethodString;\n\t}", "public function getOpenSslName();", "public function getStringAlgorithm() {}", "public function getMethod()\n {\n if (isset($_POST[$this->methodParam])) {\n return strtoupper($_POST[$this->methodParam]);\n } elseif (isset($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE'])) {\n return strtoupper($_SERVER['HTTP_X_HTTP_METHOD_OVERRIDE']);\n } else {\n return isset($_SERVER['REQUEST_METHOD']) ? strtoupper($_SERVER['REQUEST_METHOD']) : 'GET';\n }\n }", "public function getMethod(): string {\n\n return strtoupper($_SERVER['REQUEST_METHOD']);\n }", "abstract protected function getPaymentMethodCode();", "public function get_method() {\n\t\treturn $this->method;\n\t}", "public function getMethod() : string\n {\n\n return $this->method;\n }", "public function getInternalName()\n {\n return ($this->isGlobal() ? 'g_' : 'f_') . str_replace('\\\\', '_', $this->namespace) . '_' . $this->getName();\n }", "public function getMethod()\t{\n\t\tif ($this->class != \"NoRoute\")\t{\n\t\t\treturn $this->method;\n\t\t}\n\t\treturn \"invoke\";\n\t}", "public function getMethod() : string;", "public function sslGetCipherName(): string|false {}", "public function get_method() {\n return $this->_method;\n }", "public function getMethod() : string\n {\n return $this->method;\n }", "public function getMethod()\n {\n if($this->_method == NULL || !isset($this->_method))\n {\n $this->_method = substr(get_class($this),3);\n }\n \n return $this->_method;\n }", "public function getHashAlgorithm()\n\t{\n\t\treturn $this->hash_algorithm;\n\t}", "public function method(): string\n {\n return \\strtoupper($this->request()->getMethod());\n }", "public function method(): string\n {\n return $this->getMethod();\n }", "public function getMethod()\n\t{\n\t\treturn strtoupper($this->_internal_request->get_normalized_http_method());\n\t}", "public function GetMethod () {\n\t\treturn $this->method;\n\t}", "public function getAuthenticationMethod() {\n return @$this->attributes['authentication_method'];\n }", "private function getFieldNameFromMethodName($methodName)\n {\n $str = substr($methodName, 3); // removing 'get'\n $str = $this->lcfirst($str);\n $str = preg_replace('/([A-Z])/', '_$1', $str);\n return strtolower($str);\n }", "public function getAlgorithm();" ]
[ "0.7152099", "0.70413315", "0.64654076", "0.62949866", "0.6262322", "0.6220159", "0.61349803", "0.6116348", "0.6116348", "0.60968924", "0.60564005", "0.60387033", "0.6007145", "0.5967294", "0.5890867", "0.5862219", "0.5857976", "0.58487624", "0.58473474", "0.58312756", "0.58222777", "0.580053", "0.57962966", "0.57962966", "0.5795744", "0.57892936", "0.57892936", "0.57892936", "0.57764447", "0.5753986", "0.5747137", "0.57358783", "0.57297385", "0.5715753", "0.57156885", "0.57038987", "0.569846", "0.5695942", "0.568673", "0.56818664", "0.56603223", "0.56534606", "0.5644538", "0.564441", "0.56413364", "0.56274885", "0.5626728", "0.56196463", "0.56191754", "0.56068283", "0.5594038", "0.5589674", "0.5589674", "0.5589674", "0.5589674", "0.5589674", "0.5589674", "0.5576808", "0.5562885", "0.555544", "0.5553921", "0.5550947", "0.55304015", "0.5525994", "0.5522307", "0.5515933", "0.55090153", "0.5500721", "0.54966915", "0.5494846", "0.5492634", "0.5492634", "0.5491529", "0.5489073", "0.547794", "0.5476154", "0.54675716", "0.5465937", "0.5459458", "0.54588056", "0.54557645", "0.54510146", "0.5442591", "0.5439179", "0.5431693", "0.54303366", "0.5422684", "0.54195035", "0.54174274", "0.5410199", "0.54083043", "0.53964156", "0.5394291", "0.538987", "0.5386483", "0.5385786", "0.538148", "0.53813916", "0.5372021", "0.5368869" ]
0.7499706
0
Internal method for the validation of plain data used at encryption operations.
Внутренний метод для проверки обычных данных, используемых при операциях шифрования.
abstract protected function validatePlainDataForEncryption($plainData);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected function validatePlainData($plainData)\n {\n if (!is_string($plainData)) {\n throw new \\InvalidArgumentException(\"The data for encryption must be a string or a binary string.\");\n } elseif ($this->useChunks === false) {\n $chunkSize = (int)ceil(static::KEY_SIZE / 8) - $this->getPaddingReservedSize();\n\n if (strlen($plainData) > $chunkSize) {\n throw new \\InvalidArgumentException(\n \"The data for encryption must be less or equal of $chunkSize bytes. Another option is \" .\n \"to allow chunk processing via the `enableChunkProcessing` method, which is not recommended.\"\n );\n }\n }\n }", "abstract protected function validateCipherDataForDecryption($cipherData);", "public function testValidationCaseForNonStringInputDataPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract public function validateData();", "public function validate(array $data) : bool\n {\n // If we dont have all the required parts for decryption exit.\n if (! isset( $data['iv'], $data['data'], $data['mac'])) {\n return false;\n }\n\n // If the extracted iv is invalid exit.\n $iv = base64_decode($data['iv']);\n\n if (strlen( $iv ) !== SODIUM_CRYPTO_SECRETBOX_NONCEBYTES) {\n return false;\n }\n\n return hash_equals($this->hash(base64_decode($data['data']), $iv), $data['mac']);\n }", "abstract public function validateData($data);", "public function testValidationCaseForNonStringSecretKeyPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "function isDataValid() \n {\n return true;\n }", "function validate_password($plain, $encrypted) {\n if ($plain != \"\" && $encrypted != \"\") {\n// split apart the hash / salt\n $stack = explode(':', $encrypted);\n\n if (sizeof($stack) != 2) return false;\n\n if (md5($stack[1] . $plain) == $stack[0]) {\n return true;\n }\n }\n\n return false;\n }", "public function testValidationCaseForNonStringInputDataPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract protected function validate($data);", "private function invalidPayload($data)\n {\n return ! is_array($data) || ! isset($data['iv']) || ! isset($data['str']) || ! isset($data['mac']);\n }", "function validate_password($plain, $encrypted) {\n if (!is_null($plain) && !is_null($encrypted)) {\n // split apart the hash / salt\n $stack = explode(':', $encrypted);\n\n if (sizeof($stack) != 2)\n return false;\n\n if (md5($stack[1] . $plain) == $stack[0]) {\n return true;\n }\n }\n\n return false;\n }", "public function isDataValid(): bool;", "private function validateInputParameters($data)\n {\n }", "protected function validateChecksum() {\n\t}", "abstract public function isValid($data);", "public function testValidationCaseForSettingWrongFormattedStringForPublicKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "private function _validData($data){\n\t\t$columnsLen = array(\n\t\t\t\t\t\t\t'nro_pedido' => 6,\n\t\t\t\t\t\t\t'id_factura_pagos' => 1,\n\t\t\t\t\t\t\t'valor' => 1,\n\t\t\t\t\t\t\t'concepto' => 1,\n\t\t\t\t\t\t\t'fecha_inicio' => 0,\n\t\t\t\t\t\t\t'fecha_fin' => 0,\n\t\t\t\t\t\t\t'id_user' => 1\n\t\t);\n\t\treturn $this->_checkColumnsData($columnsLen, $data);\n\t}", "public function testPlainPassword()\n {\n $user = new User();\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_PLAIN_PASSWORD]);\n Assert::assertEquals('plainPassword', $constraintViolationList->get(0)->getPropertyPath());\n\n $user->setPlainPassword('dd');\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_PLAIN_PASSWORD]);\n Assert::assertEquals('plainPassword', $constraintViolationList->get(0)->getPropertyPath());\n\n\n $user->setPlainPassword($this->createString(128));\n $constraintViolationList = $this->validator->validate($user, null, [User::VALIDATION_GROUP_PLAIN_PASSWORD]);\n Assert::assertEquals('plainPassword', $constraintViolationList->get(0)->getPropertyPath());\n\n }", "public function testValidationCaseForNonStringSecretKeyPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract public function valid();", "public function validateData($data): void;", "public function encryptData($plainData)\n {\n $this->checkIfThePublicKeyIsSet();\n $this->validatePlainData($plainData);\n\n $publicKeyResource = openssl_pkey_get_public(base64_decode($this->publicKey));\n\n // @codeCoverageIgnoreStart\n if ($publicKeyResource === false) {\n throw new \\RuntimeException(\n 'Failed to use the current public key, probably because of ' .\n 'a misconfigured OpenSSL library or an invalid key.'\n );\n }\n // @codeCoverageIgnoreEnd\n\n $chunkSize = (int)ceil(static::KEY_SIZE / 8) - $this->getPaddingReservedSize();\n $needsOnePass = ($plainData === '');\n $cipherData = '';\n\n while ($plainData || $needsOnePass) {\n $dataChunk = substr($plainData, 0, $chunkSize);\n $plainData = substr($plainData, $chunkSize);\n $encryptedChunk = '';\n\n if (!openssl_public_encrypt($dataChunk, $encryptedChunk, $publicKeyResource, $this->padding)) {\n throw new \\InvalidArgumentException('The data encryption failed because of a wrong format');\n }\n\n $cipherData .= $encryptedChunk;\n $needsOnePass = false;\n }\n\n // Free the public key (resource cleanup)\n @openssl_free_key($publicKeyResource);\n $publicKeyResource = null;\n\n return $this->changeOutputFormat($cipherData, true);\n }", "protected function _validate() {\n\t}", "public function valid()\n {\n\n if (strlen($this->container['virtual_operator']) > 60) {\n return false;\n }\n if (strlen($this->container['event_type']) > 100) {\n return false;\n }\n if (strlen($this->container['result_status']) > 100) {\n return false;\n }\n if (strlen($this->container['username']) > 100) {\n return false;\n }\n if (strlen($this->container['property_value']) > 450) {\n return false;\n }\n return true;\n }", "private function validate_input() {\n\t\t$fields = array_merge( array( $this->range_field ), $this->key_fields, $this->checksum_fields );\n\n\t\t$this->validate_fields( $fields );\n\t\t$this->validate_fields_against_table( $fields );\n\t}", "public function validate()\n {\n // generate Token String\n $idTokenString = $this->getTokenString($this->_key);\n return ($idTokenString == $this->_tokenString);\n }", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function isValid($data);", "function sanitize ($data, $type) {\n if($type == 1){\n for($i = 0; $i < count($data); $i++) {\n $data[$i] = (string)$data[$i]; //ensure is string$\n $data[$i] = preg_replace(\"/[^a-zA-Z0-9 .!\\/]*/\",\"\", $data[$i]); //remove any characters that are not a-z, A-Z, 0-9...\n $data[$i] = substr($data[$i], 0, 20);//restrict length to 20 characters\n $data[$i] = htmlentities($data[$i], ENT_QUOTES, 'utf-8');\n $data[$i] = filter_var($data[$i], FILTER_SANITIZE_STRING);\n }\n //username must be longer than 5 \n //password must be 8 characters or more\n\n if(strlen($data[0]) < 5 || strlen($data[1]) < 8) {\n return false;\n }\n else {\n return $data;\n }\n }\n}", "public function enforceRulePassword($data){\n if (strlen($data) >= 8){\n \t$validPassword= $data;\n \t} \n \telse{\n \t$validPassword= FALSE;\n\t\t\t}\n\t\t\t\n\t\t\t/*if (preg_match (\"/^.*(?=.{8,})(?=.*\\d)(?=.*[a-zA-Z]).*$/\", $data)){\n \t$validPassword= $data;\n \t} \n \telse{\n \t$validPassword= FALSE;\n\t\t\t}*/\n\t\t\t\n\t\t\treturn $validPassword;\n }", "private function ensureSafePassword(string $plainPassword): bool\n\t{\n\t\t$zxcvbn = new Zxcvbn();\n\t\t$passwordData = $zxcvbn->passwordStrength($plainPassword);\n\t\t\n\t\tif ($passwordData['score'] < 2 && $this->app_env !== 'dev')\n\t\t{\n\t\t\t$errorText = \"Password is too weak. {$passwordData['feedback']['warning']}.\";\n\t\t\tthrow new ApiBadRequestException($errorText);\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function validateData(){\n if(substr($this->user_id,0,5)!=$this->office_id){\n return false;\n }\n if(in_array($this->email,$this->getEmails())){\n return false;\n }\n return true; \n }", "public function validateData(){\n\t\tif (!self::isEmailValid($this->email))\n\t\t\tthrow new Exception(\"Email address {$this->email} is not a valid email address.\");\n\n\t\tparent::validateData();\n\t}", "abstract public function encrypt($data);", "public function testBinary(): void\n {\n $randomBytes = base64_decode('L3zw8k6jFccVGXr6mqci4Q=='); // random_bytes(16);\n\n $validator = new LengthValidator(16, 16);\n $result = $validator->validate($randomBytes);\n\n $this->assertFalse($result->isValid());\n\n $validator = new LengthValidator(1, 16, multibyte: false);\n $result = $validator->validate($randomBytes);\n\n $this->assertTrue($result->isValid());\n }", "function check_implementation() {\r\n\r\n\t\t$xtea = new XTEA(\"\");\r\n\t\t$vectors = array(\r\n\t\t\tarray(array(0x00000000,0x00000000,0x00000000,0x00000000), array(0x41414141,0x41414141), array(0xed23375a,0x821a8c2d)),\r\n\t\t\tarray(array(0x00010203,0x04050607,0x08090a0b,0x0c0d0e0f), array(0x41424344,0x45464748), array(0x497df3d0,0x72612cb5)),\r\n\r\n\t\t);\r\n\r\n\t\t//Correct implementation?\r\n\t\t$correct = true;\r\n\t\t//Test vectors, see http://www.schneier.com/code/vectors.txt\r\n\t\tforeach($vectors AS $vector) {\r\n \t$key = $vector[0];\r\n\t\t\t$plain = $vector[1];\r\n\t\t\t$cipher = $vector[2];\r\n\r\n\t\t\t$xtea->key_setup($key);\r\n\t\t\t$return = $xtea->block_encrypt($vector[1][0],$vector[1][1]);\r\n\r\n\t\t\tif((int)$return[0] != (int)$cipher[0] || (int)$return[1] != (int)$cipher[1])\r\n\t\t\t\t$correct = false;\r\n\r\n\t\t}\r\n\r\n\t\treturn $correct;\r\n\r\n\t}", "public function sanitiseData(): void\n {\n $this->firstLine = self::sanitiseString($this->firstLine);\n self::validateExistsAndLength($this->firstLine, 1000);\n $this->secondLine = self::sanitiseString($this->secondLine);\n self::validateExistsAndLength($this->secondLine, 1000);\n $this->town = self::sanitiseString($this->town);\n self::validateExistsAndLength($this->town, 255);\n $this->postcode = self::sanitiseString($this->postcode);\n self::validateExistsAndLength($this->postcode, 10);\n $this->county = self::sanitiseString($this->county);\n self::validateExistsAndLength($this->county, 255);\n $this->country = self::sanitiseString($this->country);\n self::validateExistsAndLength($this->country, 255);\n }", "public function validation()\n {\n $this->assertFalse($this->denyValidator->validate(123));\n $this->assertFalse($this->denyValidator->validate('1234'));\n $this->assertFalse($this->denyValidator->validate(true));\n $this->assertFalse($this->denyValidator->validate(null));\n $this->assertFalse($this->denyValidator->validate(new stdClass()));\n }", "public function valid();", "public function valid();", "public function valid();", "public function valid();", "abstract public function validate();", "abstract public function validate();", "private function validateLicenseData()\n {\n\n // error_log('LicenseEmail : '.print_r($this->getLicenseEmail(), 1));\n // error_log('LicenseProduct : '.print_r($this->getLicenseProduct(), 1));\n // error_log('LicenseSecretKey : '.print_r($this->getLicenseSecretKey(), 1));\n }", "public function testValidationCaseForSettingWrongFormattedStringForPrivateKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->computeSharedSecret($exchangeInformation->public, 'яяяя');\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret($exchangeInformation->public, 'яяяя');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "private function validateData()\n {\n if (empty($this->nome)) {\n $this->errors->addMessage(\"O nome é obrigatório\");\n }\n\n if (!filter_var($this->email, FILTER_VALIDATE_EMAIL)) {\n $this->errors->addMessage(\"O e-mail é inválido\");\n }\n\n if (strlen($this->senha) < 6) {\n $this->errors->addMessage(\"A senha deve ter no minímo 6 caracteres!\");\n }\n if ($this->emailExiste($this->email, 'email')) {\n $this->errors->addMessage(\"Esse e-mail já está cadastrado\");\n }\n if ($this->emailExiste($this->usuario, 'usuario')) {\n $this->errors->addMessage(\"Esse usuário já está cadastrado\");\n }\n\n return $this->errors->hasError();\n }", "function _inputCheck(){\n if (isset($_POST['verder']) && $this->_verify() == \"\") {\n return true;\n }\n else {\n return false;\n }\n }", "public function validateInputData(&$data) {\n $data = trim($data);\n $data = stripslashes($data);\n $data = htmlspecialchars($data);\n }", "public function validateData(){\n return true;\n }", "public function checkIntegrity();", "protected function coreValidatorLogic()\r\n {\r\n foreach($this->filteredInputArray as $key => $urlSafeBase64Token)\r\n {\r\n if($this->testResultsArray[$key] === true) //Only check the ones that passed the PHP Filter validation.\r\n {\r\n $this->testResultsArray[$key] = $this->base64Token($urlSafeBase64Token, $this->validationMetaArray['base64Token'], $this->errorMessagesArray[$key]);\r\n }\r\n }\r\n\r\n return;\r\n }", "public function valid()\n {\n\n if (strlen($this->container['bookingReferenceNumber']) > 15) {\n return false;\n }\n if (strlen($this->container['carrierName']) > 15) {\n return false;\n }\n if (strlen($this->container['ticketNumber']) > 15) {\n return false;\n }\n if (strlen($this->container['checkDigit']) > 1) {\n return false;\n }\n if (strlen($this->container['extendedPaymentCode']) > 3) {\n return false;\n }\n if (strlen($this->container['passengerName']) > 42) {\n return false;\n }\n if (strlen($this->container['customerCode']) > 40) {\n return false;\n }\n if (strlen($this->container['documentType']) > 1) {\n return false;\n }\n if (strlen($this->container['documentNumber']) > 14) {\n return false;\n }\n if (strlen($this->container['invoiceNumber']) > 25) {\n return false;\n }\n if (strlen($this->container['additionalCharges']) > 20) {\n return false;\n }\n if (strlen($this->container['totalFeeAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['clearingSequence']) > 2) {\n return false;\n }\n if (strlen($this->container['clearingCount']) > 2) {\n return false;\n }\n if (strlen($this->container['totalClearingAmount']) > 20) {\n return false;\n }\n if (strlen($this->container['reservationSystemCode']) > 4) {\n return false;\n }\n if (strlen($this->container['processIdentifier']) > 3) {\n return false;\n }\n if (strlen($this->container['ticketIssueDate']) > 8) {\n return false;\n }\n if (strlen($this->container['originalTicketNumber']) > 14) {\n return false;\n }\n if (strlen($this->container['purchaseType']) > 3) {\n return false;\n }\n if (strlen($this->container['creditReasonIndicator']) > 1) {\n return false;\n }\n if (strlen($this->container['ticketChangeIndicator']) > 1) {\n return false;\n }\n if (strlen($this->container['planNumber']) > 1) {\n return false;\n }\n if (strlen($this->container['arrivalDate']) > 8) {\n return false;\n }\n if (strlen($this->container['restrictedTicketDesciption']) > 20) {\n return false;\n }\n if (strlen($this->container['exchangeTicketAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['exchangeTicketFeeAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['reservationType']) > 32) {\n return false;\n }\n if (strlen($this->container['boardingFeeAmount']) > 12) {\n return false;\n }\n return true;\n }", "private function is_malformed($data) {\r\n\r\n if( !in_array($data[0], array_keys($this->header_type)) ){\r\n $this->malformed_msg = \"The transaction type is not known\";\r\n return TRUE;\r\n }\r\n\r\n if( in_array($data[0], array(\"TRNS\", \"SPL\")) AND !in_array($data[1], $this->trnstype) ){\r\n $this->malformed_msg = \"The transaction is multi-line, but the sub-type (e.g. INVOICE, BILL, etc) is not known\";\r\n return TRUE;\r\n }\r\n\r\n if( $this->flag_multi == FALSE AND ($data[0] == \"SPL\" || $data[0] == \"ENDTRNS\") ){\r\n $this->malformed_msg = \"The record is SPL or ENDTRNS, but didn't start with TRNS\";\r\n return TRUE;\r\n }\r\n\r\n if( $this->array_count($data) > count($this->default_headers[$data[0]]) ){\r\n $this->malformed_msg = \"There are more elements in the record, \".count($data).\", than in the header, \".count($this->default_headers[$data[0]]);\r\n return TRUE;\r\n }\r\n\r\n //Check these conditions if not in the first record of the file\r\n if( isset($this->prior_record) ){\r\n if( $this->prior_record[0] == \"TRNS\" AND $data[0] !== \"SPL\" ){\r\n $this->malformed_msg = \"A TRNS record is not followed by an SPL record\";\r\n return TRUE;\r\n }\r\n\r\n if( $this->prior_record[0] == \"SPL\" AND !in_array($data[0], array(\"SPL\", \"ENDTRNS\")) ){\r\n $this->malformed_msg = \"An SPL record is not followed by another SPL record or ENDTRNS\";\r\n return TRUE;\r\n }\r\n }\r\n \r\n //Reaching this point means that the record is not malformed\r\n return FALSE;\r\n }", "public function validDataTypes();", "abstract protected function safetyCheck() : self;", "public function valid()\n {\n return $this->key() < $this->filesize;\n }", "public function isPasswordValid(string $encoded, string $raw);", "public function encrypt($plain, $private) {\n\n\t\t/**\n\t\t* Checking Parameters Existence - if value of plain-text or private-key is null,\n\t\t* then method returns (boolean)false directly.\n\t\t*/\n\t\tif(strlen($plain) == 0 || strlen($private) == 0) return false;\n\n\t\t/**\n\t\t* Reset all object\n\t\t*/\n\t\t$this->copy();\n\n\t\t/**\n\t\t* Preparing Data - store all parameters to the objects.\n\t\t*/\n\t\t$this->plain->value = $plain;\n\t\t$this->private->value = $private;\n\t\t$this->plain->length = strlen($plain);\n\t\t$this->private->length = strlen($private);\n\n\t\t/**\n\t\t* Generate Random Key - this random key in integer will be used to encrypt data.\n\t\t* Random key format is in integer between 1 to 61.\n\t\t*/\n\t\t$this->public->randomKey = rand(1,61);\n\n\t\t/**\n\t\t* Converting plain-text to ASCII.\n\t\t* @see src/Controller.php\n\t\t* @see Controlller::stringToAscii()\n\t\t*/\n\t\t$this->plain->ascii = $this->stringToAscii($this->plain->value);\n\n\t\t/**\n\t\t* Converting private-key to ASCII\n\t\t* @see src/Controller.php\n\t\t* @see Controlller::privateToAscii()\n\t\t*/\n\t\t$this->privateToAscii();\t\t\n\n\t\t/**\n\t\t* Getting Even & Odd Integer that will be added for each plain-text\n\t\t* @see src/Controller.php\n\t\t* @see Controlller::evenOddMapping()\n\t\t*/\n\t\t$this->evenOddMapping();\n\n\t\t/**\n\t\t* Map each plain-text's character key from private-key\n\t\t* @see src/Controller.php\n\t\t* @see Controlller::keysMapping()\n\t\t*/\n\t\t$this->keysMapping();\n\n\t\t/**\n\t\t * Converting Numberal to Alphabet\n\t\t * @see src/Controller.php\n\t\t * @see Controller::numberToAlpha()\n\t\t */\n\t\t$this->process->exchange = $this->numberToAlpha($this->process->exchange);\n\n\t\t/**\n\t\t * Calculate each character\n\t\t * @see src/Controller.php\n\t\t * @see Controller::CharCategories()\n\t\t */\n\t\t$this->CharCategories();\n\n\t\t/**\n\t\t * Processing Huffman algorithm\n\t\t * @see src/Controller.php\n\t\t * @see Controller::huffmanBinary()\n\t\t */\n\t\t$this->huffmanBinary();\n\t\t\n\t\t/**\n\t\t * Converting Data to Huffman Binary\n\t\t * @see src/basic/EncryptStepMethods.php\n\t\t * @see EncryptStepMethods::exToCipher()\n\t\t */\n\t\t$this->exToCipher();\n\n\t\t/**\n\t\t * Processing Public-key\n\t\t * \n\t\t * This is how public-key generated base on randomKey, plain-text, and\n\t\t * and private-key as well.\n\t\t */\t\t\n\t\tforeach($this->process->order as $key => $value) {\n\t\t\t$this->process->order[$key] = $value + $this->public->randomKey;\n\t\t}\n\n\t\t$this->public->json = json_encode($this->process->order);\n\t\tfor($i=0; $i<strlen($this->public->json); $i++) { \n\t\t\t$x = str_pad(ord($this->public->json[$i]), 3, '0', STR_PAD_LEFT);\n\t\t\t$this->public->jsonAscii .= $x;\n\t\t}\n\n\t\t$this->public->jsonAscii = str_split($this->public->jsonAscii, $this->process->split);\n\t\tforeach($this->public->jsonAscii as $key => $value) {\n\t\t\t$this->public->jsonAscii[$key] = '1' . str_pad(Troop::fromDec(intval(\"1{$value}\")), $this->process->pad, '0', STR_PAD_LEFT);\n\t\t}\n\n\t\t$this->encrypt->public_key = Troop::fromDec(intval($this->public->randomKey)) . $this->process->minAscii . $this->process->maxAscii . implode('', $this->public->jsonAscii);\n\n\t\t/**\n\t\t * Return of encryption\n\t\t */\n\t\treturn new Request([\n\t\t\t'plain_text' => $plain,\n\t\t\t'cipher_text' => $this->encrypt->cipher,\n\t\t\t'public_key' => $this->encrypt->public_key,\n\t\t\t'private_key' => $private,\n\t\t]);\n\t}", "public function isDataValid() {\n if ($this->userExists())\n $this->_errors[] = 'username already taken';\n // username and password must match pattern\n else if (empty($this->_username) || !preg_match('/^[a-zA-Z0-9]{5,16}$/', $this->_username))\n $this->_errors[] = 'invalid username must be between 5 and 16 characters';\n else if (empty($this->_password) || !preg_match('/^[a-zA-Z0-9]{6,18}$/', $this->_password))\n $this->_errors[] = 'invalid password must be between 6 and 18 characters';\n\t\t else if (empty($this->_password) || $this->_password != $this->_password_confirm)\n $this->_errors[] = \"Password didn't match X\";\n // names must be between 2 and 22 characters\n else if (empty($this->_first_name) || !preg_match('/^[a-zA-Z0-9]{2,22}$/', $this->_first_name))\n $this->_errors[] = 'invalid first name must be between 2 and 22 characters';\n else if (empty($this->_last_name) || !preg_match('/^[a-zA-Z0-9]{2,22}$/', $this->_last_name))\n $this->_errors[] = 'invalid last name must be between 2 and 22 characters';\n //restricts day to 01-31, month to 01-12 and year to 1900-2099 (also allowing / - or . between the parts of the date) \n else if (empty($this->_dob) || !preg_match('/^(0?[1-9]|[12][0-9]|3[01])[\\/\\ ](0?[1-9]|1[0-2])[\\/\\ ](19|20)\\d{2}$/', $this->_dob))\n $this->_errors[] = 'invalid dod | must be DD/MM/YYYY format';\n else if (empty($this->_address))\n $this->_errors[] = 'invalid address';\n // checks if valid postal code\n else if (empty($this->_postcode) || !preg_match('/^(([A-PR-UW-Z]{1}[A-IK-Y]?)([0-9]?[A-HJKS-UW]?[ABEHMNPRVWXY]?|[0-9]?[0-9]?))\\s?([0-9]{1}[ABD-HJLNP-UW-Z]{2})$/', $this->_postcode))\n $this->_errors[] = 'invalid postcode | must be AA11 9AA format';\n // checks is valid email using regular expression\n else if (empty($this->_email) || !preg_match('/^[_\\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\\.)+[a-zA-Z]{2,6}$/', $this->_email))\n $this->_errors[] = 'invalid email';\n\n\n // return true or false \n return count($this->_errors) ? 0 : 1;\n }", "public function checkInput($data) {\n\n if(strlen($data) >= 1){\n $data = trim($data); //remove \\n, \\r, \\t doesn't remove spaces between words, if wanted than use -> str_replace(\" \", \"\", trim($data));\n return $data;\n }else{\n return false;\n }\n\n }", "public function isValid() {\n\t\treturn !is_array($this->data) && count($this->data->getRawData()) > 0;\n\t}", "private function validate () {\n $payload = $this->payload;\n // Unset fields that don't match the spec\n foreach (array_keys($payload) as $field) {\n if (!in_array($field, $this->fields)) {\n unset($payload[$field]);\n }\n }\n\n // If the user is signing up manually (I.e. not via a social network), then\n // we also need a password\n if ($this->method === 'manual' && empty($payload['password'])) {\n return false;\n }\n\n $this->payload = $payload;\n return true;\n }", "private function ValidateTranslationFields()\t\n\t{\n\t\t// check for required fields\t\t\n\t\tforeach($this->arrTranslations as $key => $val){\t\t\t\n\t\t\tif(strlen($val['image_text']) > 2048){\n\t\t\t\t$this->error = str_replace('_FIELD_', '<b>'._DESCRIPTION.'</b>', _FIELD_LENGTH_EXCEEDED);\n\t\t\t\t$this->error = str_replace('_LENGTH_', 2048, $this->error);\n\t\t\t\t$this->errorField = 'image_text_'.$key;\n\t\t\t\treturn false;\n\t\t\t}\t\t\t\n\t\t}\t\t\n\t\treturn true;\t\t\n\t}", "private function isValidData($data) {\n\t\tif (!is_string($data) && !is_int($data) && !is_float($data) && !is_array($data)) {\n\t\t\tthrow new FlintstoneException('Invalid data type');\n\t\t}\n\n\t\treturn true;\n\t}", "function ValidateData()\n\t\t{\n\t\t\t$theValidator = new CValidator();\n\t\t\tif(!$this->arrValidator || !is_array($this->arrValidator) )\n\t\t\t{\n\t\t\t\t$this->arrValidator = array();\n\t\t\t}\n\t\t\tforeach($this->arrValidator as $key=>$value)\n\t\t\t{\n\t\t\t\tif($this->$key == '')\n\t\t\t\t{\n\t\t\t\t\t// Kiem tra xem co phai bat buoc khong?\n\t\t\t\t\tif(isset($this->arrRequired[$key]) && ($this->arrRequired[$key] == 1))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\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\tif(!$theValidator->CheckPatt($value, $this->$key))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn(true);\n\t\t}", "abstract public function verify($data, $signature);", "public function valid()\n {\n\n $allowedValues = $this->getTransformAllowableValues();\n if (!in_array($this->container['transform'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getWrapTextAllowableValues();\n if (!in_array($this->container['wrapText'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getAnchoringTypeAllowableValues();\n if (!in_array($this->container['anchoringType'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getCenterTextAllowableValues();\n if (!in_array($this->container['centerText'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getTextVerticalTypeAllowableValues();\n if (!in_array($this->container['textVerticalType'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getAutofitTypeAllowableValues();\n if (!in_array($this->container['autofitType'], $allowedValues)) {\n return false;\n }\n return true;\n }", "public function is_valid()\n {\n }", "public function isPasswordValid($encoded, $raw, $salt)\n {\n\n }", "public function is_valid()\n {\n }", "public function validate($data) {\n return true;\n }", "function validate_password($hashed_password, $cleartext_password) {\n if (!is_string($hashed_password) || !is_string($cleartext_password))\n return false;\n if (config\\HASHING_ALGORITHM == \"crypt\") {\n $salt_end = strrpos($hashed_password, \"$\");\n if ($salt_end === false) {\n // DES, first two charachers is salt.\n $salt = substr($hashed_password, 0, 2);\n } else {\n // Salt before $.\n $salt_end++;\n $salt = substr($hashed_password, 0, $salt_end);\n }\n return crypt($cleartext_password, $salt) == $hashed_password;\n } else if (config\\HASHING_ALGORITHM == \"sha1\") {\n if (strlen($hashed_password) != 80)\n return false;\n $salt = substr($hashed_password, 0, 40);\n $hash = substr($hashed_password, 40);\n return $hash == sha1($salt . $cleartext_password, false);\n } else if (config\\HASHING_ALGORITHM == \"md5\") {\n if (strlen($hashed_password) != 64)\n return false;\n $salt = substr($hashed_password, 0, 32);\n $hash = substr($hashed_password, 32);\n return $hash == sha1($salt . $cleartext_password, false);\n } else\n trigger_error(\"The configured hashing algorithm '\" . config\\HASHING_ALGORITHM . \"' is not supported.\", \\E_USER_ERROR);\n}", "function check_plain($text) {\n return validate_utf8($text) ? htmlspecialchars($text, ENT_QUOTES) : '';\n}", "public final function verifySetData(){\n\n foreach($this->data as $k => $v){\n $this->verifyData($k);\n }//foreach\n\n if(count($this->errors)){\n return false;\n }//if\n\n return true;\n\n }", "function validate()\n\t{\n\t\t$isValid = false;\n\t\t\n\t\tif(empty($this->data['username']))\n\t\t{\n\t\t\t\t$this->errors['username'] = \"Please enter a Username\";\n\t\t}\n\t\t\n\t\tif(empty($this->data['password']))\n\t\t{\n\t\t\t\t$this->errors['password'] = \"Please enter a password\";\n\t\t}\n\t\t\n\t\tif(empty($this->data['description']))\n\t\t{\n\t\t\t\t$this->errors['description'] = \"Please enter a description of yourself\";\n\t\t}\n\t\t\n\t\t\n\t\t//validate data elements in userData property\n\t\t//if an error exists, store to errors using column name as key\n\t\t\n\t\t if(empty($this->errors))\n\t\t{\n\t\t\t$isValid = true;\n\t\t}\n\t\t\n\t\treturn $isValid;\n\t}", "public function validated();", "public function testEncryptEmailA() {\n // Encrypted email\n $encrypted_email = security::encrypt_email( 'john@doe.com', '', false );\n\n // Proper email =\n // Make sure it's 15 characters\n $this->assertEquals( 'john&#64;doe&#46;&#99;&#111;&#109;', $encrypted_email );\n }", "protected function prepareValidations() {}", "public function testPasswordIsValid($data)\n {\n $pattern = \"/^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/\";\n\n $this->assertMatchesRegularExpression($pattern,$data);\n\n }", "public function isValid()\n\t{\n\t\tif (empty($this->titre)) $this->titre = \"TITRE A REMPLACER\";\n\t\telse $this->titre = trim (preg_replace('/\\s+/', ' ', $this->titre) ); // Suppression des espaces\n\t\tif (!empty($this->contenu)) $this->contenu = trim (preg_replace('/\\s+/', ' ', $this->contenu) ); // Suppression des espaces\n\t\tif (empty($this->statut)) $this->statut = 0;\n\t\tif (empty($this->id_type)) $this->id_type = 1;\n\t\tif (empty($this->id_membre)) $this->id_membre = 0;\n\t}", "function validateInput($data)\n{\n $data = trim($data); //Strip unnecessary characters (extra space, tab, newline)\n $data = stripslashes($data); //Remove backslashes (\\)\n $data = htmlspecialchars($data, ENT_NOQUOTES, 'UTF-8');\n return $data;\n}", "protected function _verifyExtraData(&$extraData)\r\n\t{\r\n\t\tif ($extraData === null)\r\n\t\t{\r\n\t\t\t$extraData = '';\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn XenForo_DataWriter_Helper_Denormalization::verifySerialized($extraData, $this, 'extra_data');\r\n\t}", "public function checkTrustData($data)\n {\n if (is_array($this->_props) && count($this->_props) > 0) {\n $props = array();\n $name = get_class();\n if (isset($data[$name])) {\n $props = $data[$name];\n } else {\n $props = array();\n }\n $props2 = array();\n foreach ($this->_props as $prop => $req) {\n if (empty($props[$prop])) {\n if ($req) {\n return false;\n }\n } else {\n $props2[$prop] = $props[$prop];\n }\n }\n $this->_props = (count($props2) > 0) ? $props2 : null;\n }\n return true;\n }", "protected function checkStructure()\n {\n $structure = $this->getStructure();\n\n foreach ($structure as $field => $opt) {\n if (!array_key_exists($field, $this->data)) {\n continue;\n }\n\n $value = Arr::get($this->data, $field);\n if (is_array($value)) {\n $this->errors[$field][] = Translate::get('validate_wrong_type_data');\n continue;\n }\n\n $value = trim($value);\n $length = (int)$opt->length;\n\n if (!empty($length)) {\n $len = mb_strlen($value);\n if ($len > $length) {\n $this->errors[$field][] = Translate::getSprintf('validate_max_length', $length);\n continue;\n }\n }\n\n if (!$opt->autoIncrement && $opt->default === NULL && !$opt->allowNull && $this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_not_empty');\n continue;\n }\n\n switch ($opt->dataType) {\n case 'int':\n case 'bigint':\n if (!$this->isEmpty($value) && (filter_var($value, FILTER_VALIDATE_INT) === false)) {\n $this->errors[$field][] = Translate::get('validate_int');\n continue 2;\n }\n break;\n\n case 'double':\n if (!is_float($value) && !$this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_double');\n continue 2;\n }\n break;\n\n case 'float':\n if (!is_numeric($value) && !$this->isEmpty($value)) {\n $this->errors[$field][] = Translate::get('validate_float');\n continue 2;\n }\n break;\n\n case 'date':\n case 'datetime':\n case 'timestamp':\n if (!$this->isEmpty($value) && !Validate::dateSql($value)) {\n $this->errors[$field][] = Translate::get('validate_sql_date');\n continue 2;\n }\n break;\n\n default:\n continue 2;\n break;\n\n }\n }\n }", "public function testEncryptA() {\n // Initialize variables\n $string = 'Hello World!';\n\n // Encrypt string\n $encrypted_string = security::encrypt( $string, 'random-hash' );\n\n // Make sure it's not there\n $this->assertFalse( stristr( $encrypted_string, $string ) );\n }", "protected function validateCipherOrSignatureData($cipherOrSignatureData)\n {\n if (!is_string($cipherOrSignatureData)) {\n throw new \\InvalidArgumentException(\"The data for decryption must be a string or a binary string.\");\n } elseif ($cipherOrSignatureData === '') {\n throw new \\InvalidArgumentException(\"The string is empty and there is nothing to decrypt from it.\");\n }\n\n $chunkSize = (int)ceil(static::KEY_SIZE / 8);\n $rawDataSize = strlen($this->changeOutputFormat($cipherOrSignatureData, false));\n\n if ($this->useChunks === false && $rawDataSize > $chunkSize) {\n throw new \\InvalidArgumentException(\n \"The data for decryption must be less or equal of $chunkSize bytes. Another option is \" .\n \"to allow chunk processing via the `enableChunkProcessing` method, which is not recommended.\"\n );\n } elseif ($rawDataSize % $chunkSize !== 0) {\n throw new \\InvalidArgumentException(\n \"The data length for decryption must dividable by $chunkSize byte blocks.\"\n );\n }\n }", "public function testNotString(): void\n {\n $validator = new LengthValidator();\n $result = $validator->validate(9);\n\n $this->assertFalse($result->isValid());\n }", "function sanitizePassword() {\n // If there is a password confirmation we put it to the checker, too\n $passCheckerInput = (strlen($this->passwordConf) > 0) ?\n array($this->password, $this->passwordConf) : $this->password;\n $passwordChecker = new PasswordChecker($passCheckerInput);\n if ($passwordChecker->getRelevance()) {\n $this->password = htmlspecialchars($this->password);\n } else {\n die(\"Error. Check your form data\");\n }\n }" ]
[ "0.7045691", "0.6626759", "0.6406262", "0.6373728", "0.6133701", "0.60577077", "0.6043969", "0.6041955", "0.6041955", "0.5992711", "0.5856533", "0.58358836", "0.5796604", "0.5782164", "0.5779227", "0.57707155", "0.5724287", "0.5719811", "0.565119", "0.56397414", "0.5616948", "0.56120515", "0.56104434", "0.5531062", "0.5508429", "0.5490124", "0.5488138", "0.54757035", "0.5470695", "0.5463613", "0.54500484", "0.54500484", "0.54500484", "0.54500484", "0.54500484", "0.54500484", "0.54500484", "0.54500484", "0.5440045", "0.53875023", "0.53643006", "0.5357226", "0.53509825", "0.5348007", "0.53333855", "0.5330777", "0.5320196", "0.5292983", "0.5282327", "0.5272904", "0.5272904", "0.5272904", "0.5272904", "0.5265828", "0.5265828", "0.52630544", "0.52589226", "0.5258068", "0.52543586", "0.524164", "0.5239138", "0.5237361", "0.52364224", "0.5229028", "0.5228069", "0.52230185", "0.5221843", "0.5210817", "0.52071774", "0.52044356", "0.519789", "0.51914847", "0.5189829", "0.5180979", "0.51800025", "0.5178281", "0.5175985", "0.51673275", "0.5163765", "0.5158454", "0.5157756", "0.5156456", "0.5155326", "0.51489246", "0.5145885", "0.51437736", "0.5142107", "0.5139758", "0.5135697", "0.5134816", "0.5128946", "0.51271033", "0.51222986", "0.51213783", "0.5116244", "0.5112816", "0.5112045", "0.5108277", "0.51074684", "0.5103909" ]
0.8719335
0
Internal method for the validation of cipher data used at decryption operations.
Внутренний метод для проверки криптографических данных, используемый в операциях дешифрования.
abstract protected function validateCipherDataForDecryption($cipherData);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected function validatePlainDataForEncryption($plainData);", "public function testValidationCaseForNonStringInputDataPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testValidationCaseForNonStringSecretKeyPassedForDecryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::decryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::decryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function validate(array $data) : bool\n {\n // If we dont have all the required parts for decryption exit.\n if (! isset( $data['iv'], $data['data'], $data['mac'])) {\n return false;\n }\n\n // If the extracted iv is invalid exit.\n $iv = base64_decode($data['iv']);\n\n if (strlen( $iv ) !== SODIUM_CRYPTO_SECRETBOX_NONCEBYTES) {\n return false;\n }\n\n return hash_equals($this->hash(base64_decode($data['data']), $iv), $data['mac']);\n }", "public function testValidationCaseForNonStringInputDataPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData('', ['wrong']);\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData('', ['wrong']);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "public function testValidationCaseForNonStringSecretKeyPassedForEncryption()\n {\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n NativeRc4::encryptData(['wrong'], '');\n } else {\n $hasThrown = null;\n\n try {\n NativeRc4::encryptData(['wrong'], '');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract public function validateData();", "protected function validateCipherOrSignatureData($cipherOrSignatureData)\n {\n if (!is_string($cipherOrSignatureData)) {\n throw new \\InvalidArgumentException(\"The data for decryption must be a string or a binary string.\");\n } elseif ($cipherOrSignatureData === '') {\n throw new \\InvalidArgumentException(\"The string is empty and there is nothing to decrypt from it.\");\n }\n\n $chunkSize = (int)ceil(static::KEY_SIZE / 8);\n $rawDataSize = strlen($this->changeOutputFormat($cipherOrSignatureData, false));\n\n if ($this->useChunks === false && $rawDataSize > $chunkSize) {\n throw new \\InvalidArgumentException(\n \"The data for decryption must be less or equal of $chunkSize bytes. Another option is \" .\n \"to allow chunk processing via the `enableChunkProcessing` method, which is not recommended.\"\n );\n } elseif ($rawDataSize % $chunkSize !== 0) {\n throw new \\InvalidArgumentException(\n \"The data length for decryption must dividable by $chunkSize byte blocks.\"\n );\n }\n }", "abstract public function decrypt($data);", "private function invalidPayload($data)\n {\n return ! is_array($data) || ! isset($data['iv']) || ! isset($data['str']) || ! isset($data['mac']);\n }", "function isDataValid() \n {\n return true;\n }", "abstract public function validateData($data);", "protected function _decrypt() {}", "protected function _decrypt() {}", "private function validateInputParameters($data)\n {\n }", "private function _validData($data){\n\t\t$columnsLen = array(\n\t\t\t\t\t\t\t'nro_pedido' => 6,\n\t\t\t\t\t\t\t'id_factura_pagos' => 1,\n\t\t\t\t\t\t\t'valor' => 1,\n\t\t\t\t\t\t\t'concepto' => 1,\n\t\t\t\t\t\t\t'fecha_inicio' => 0,\n\t\t\t\t\t\t\t'fecha_fin' => 0,\n\t\t\t\t\t\t\t'id_user' => 1\n\t\t);\n\t\treturn $this->_checkColumnsData($columnsLen, $data);\n\t}", "protected function validatePlainData($plainData)\n {\n if (!is_string($plainData)) {\n throw new \\InvalidArgumentException(\"The data for encryption must be a string or a binary string.\");\n } elseif ($this->useChunks === false) {\n $chunkSize = (int)ceil(static::KEY_SIZE / 8) - $this->getPaddingReservedSize();\n\n if (strlen($plainData) > $chunkSize) {\n throw new \\InvalidArgumentException(\n \"The data for encryption must be less or equal of $chunkSize bytes. Another option is \" .\n \"to allow chunk processing via the `enableChunkProcessing` method, which is not recommended.\"\n );\n }\n }\n }", "public function valid()\n {\n return $this->key() < $this->filesize;\n }", "private function validateLicenseData()\n {\n\n // error_log('LicenseEmail : '.print_r($this->getLicenseEmail(), 1));\n // error_log('LicenseProduct : '.print_r($this->getLicenseProduct(), 1));\n // error_log('LicenseSecretKey : '.print_r($this->getLicenseSecretKey(), 1));\n }", "public function DataIsValid()\n {\n $bDataIsValid = parent::DataIsValid();\n if ($this->HasContent() && $bDataIsValid) {\n if (intval($this->data) < 12 && intval($this->data) >= -11) {\n $bDataIsValid = true;\n } else {\n $bDataIsValid = false;\n $oMessageManager = TCMSMessageManager::GetInstance();\n $sConsumerName = TCMSTableEditorManager::MESSAGE_MANAGER_CONSUMER;\n $sFieldTitle = $this->oDefinition->GetName();\n $oMessageManager->AddMessage($sConsumerName, 'TABLEEDITOR_FIELD_TIMEZONE_NOT_VALID', array('sFieldName' => $this->name, 'sFieldTitle' => $sFieldTitle));\n }\n }\n\n return $bDataIsValid;\n }", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "public function checkData() {\n\t\t// e.g. numbers must only have digits, e-mail addresses must have a \"@\" and a \".\".\n\t\treturn $this->control->checkPOST($this);\n\t}", "protected function validateChecksum() {\n\t}", "abstract protected function validate($data);", "public function valid()\n {\n\n if (strlen($this->container['bookingReferenceNumber']) > 15) {\n return false;\n }\n if (strlen($this->container['carrierName']) > 15) {\n return false;\n }\n if (strlen($this->container['ticketNumber']) > 15) {\n return false;\n }\n if (strlen($this->container['checkDigit']) > 1) {\n return false;\n }\n if (strlen($this->container['extendedPaymentCode']) > 3) {\n return false;\n }\n if (strlen($this->container['passengerName']) > 42) {\n return false;\n }\n if (strlen($this->container['customerCode']) > 40) {\n return false;\n }\n if (strlen($this->container['documentType']) > 1) {\n return false;\n }\n if (strlen($this->container['documentNumber']) > 14) {\n return false;\n }\n if (strlen($this->container['invoiceNumber']) > 25) {\n return false;\n }\n if (strlen($this->container['additionalCharges']) > 20) {\n return false;\n }\n if (strlen($this->container['totalFeeAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['clearingSequence']) > 2) {\n return false;\n }\n if (strlen($this->container['clearingCount']) > 2) {\n return false;\n }\n if (strlen($this->container['totalClearingAmount']) > 20) {\n return false;\n }\n if (strlen($this->container['reservationSystemCode']) > 4) {\n return false;\n }\n if (strlen($this->container['processIdentifier']) > 3) {\n return false;\n }\n if (strlen($this->container['ticketIssueDate']) > 8) {\n return false;\n }\n if (strlen($this->container['originalTicketNumber']) > 14) {\n return false;\n }\n if (strlen($this->container['purchaseType']) > 3) {\n return false;\n }\n if (strlen($this->container['creditReasonIndicator']) > 1) {\n return false;\n }\n if (strlen($this->container['ticketChangeIndicator']) > 1) {\n return false;\n }\n if (strlen($this->container['planNumber']) > 1) {\n return false;\n }\n if (strlen($this->container['arrivalDate']) > 8) {\n return false;\n }\n if (strlen($this->container['restrictedTicketDesciption']) > 20) {\n return false;\n }\n if (strlen($this->container['exchangeTicketAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['exchangeTicketFeeAmount']) > 12) {\n return false;\n }\n if (strlen($this->container['reservationType']) > 32) {\n return false;\n }\n if (strlen($this->container['boardingFeeAmount']) > 12) {\n return false;\n }\n return true;\n }", "abstract public function isValid($data);", "public function isDataValid(): bool;", "function decryptData($data, $key) {\r\n $chiper = \"des-ede3\"; //Algorthim used to decrypt\r\n $data = $this->hex2ByteArray($data);\r\n $data = $this->byteArray2String($data);\r\n $data = base64_encode($data);\r\n $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length($chiper));\r\n $decrypted = openssl_decrypt($data, $chiper, $key, OPENSSL_ZERO_PADDING,$iv);\r\n return $decrypted;\r\n}", "function ValidateData()\n\t\t{\n\t\t\t$theValidator = new CValidator();\n\t\t\tif(!$this->arrValidator || !is_array($this->arrValidator) )\n\t\t\t{\n\t\t\t\t$this->arrValidator = array();\n\t\t\t}\n\t\t\tforeach($this->arrValidator as $key=>$value)\n\t\t\t{\n\t\t\t\tif($this->$key == '')\n\t\t\t\t{\n\t\t\t\t\t// Kiem tra xem co phai bat buoc khong?\n\t\t\t\t\tif(isset($this->arrRequired[$key]) && ($this->arrRequired[$key] == 1))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\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\tif(!$theValidator->CheckPatt($value, $this->$key))\n\t\t\t\t\t{\n\t\t\t\t\t\treturn(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn(true);\n\t\t}", "public function validate()\n {\n // generate Token String\n $idTokenString = $this->getTokenString($this->_key);\n return ($idTokenString == $this->_tokenString);\n }", "public function testIsValidKeyWithInvalidKey() \n {\n $result = $this->fileCache->isValidKey('');\n $expected = FALSE;\n\n $this->assertEquals($expected, $result);\n }", "public function testUnicodeDataEncryptionAndDataDecryption()\n {\n $unicodeData = \"яJx 3!Й$\\v@UdrЯЗЮ\"; // length => NativeRc4::KEY_SIZE\n $randomKey = random_bytes(NativeRc4::KEY_SIZE);\n\n $encryptedData = NativeRc4::encryptData($randomKey, $unicodeData);\n $decryptedData = NativeRc4::decryptData($randomKey, $encryptedData);\n\n $this->assertEquals($unicodeData, $decryptedData);\n\n if (in_array(strtolower(Rc4::ALGORITHM_NAME), openssl_get_cipher_methods(), true)) {\n $this->assertEquals(\n $unicodeData,\n openssl_decrypt($encryptedData, 'RC4', $randomKey, OPENSSL_RAW_DATA, '')\n );\n }\n }", "public function validation()\n {\n $this->assertFalse($this->denyValidator->validate(123));\n $this->assertFalse($this->denyValidator->validate('1234'));\n $this->assertFalse($this->denyValidator->validate(true));\n $this->assertFalse($this->denyValidator->validate(null));\n $this->assertFalse($this->denyValidator->validate(new stdClass()));\n }", "public function valid()\n {\n\n if (strlen($this->container['virtual_operator']) > 60) {\n return false;\n }\n if (strlen($this->container['event_type']) > 100) {\n return false;\n }\n if (strlen($this->container['result_status']) > 100) {\n return false;\n }\n if (strlen($this->container['username']) > 100) {\n return false;\n }\n if (strlen($this->container['property_value']) > 450) {\n return false;\n }\n return true;\n }", "public static function aes128Decrypt($key, $data) {}", "public function testValidationCaseForSettingWrongFormattedStringForPrivateKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->computeSharedSecret($exchangeInformation->public, 'яяяя');\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret($exchangeInformation->public, 'яяяя');\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "protected function _validate() {\n\t}", "function new_decrypt($data, $key) {\n if(empty($key)){\n $key = $encryption_key;\n }\n // Remove the base64 encoding from our key\n $encryption_key = base64_decode($key);\n // To decrypt, split the encrypted data from our IV - our unique separator used was \"::\"\n list($encrypted_data, $iv) = explode('::', base64_decode($data), 2);\n return openssl_decrypt($encrypted_data, 'aes-256-cbc', $encryption_key, 0, $iv);\n}", "private function validate_input() {\n\t\t$fields = array_merge( array( $this->range_field ), $this->key_fields, $this->checksum_fields );\n\n\t\t$this->validate_fields( $fields );\n\t\t$this->validate_fields_against_table( $fields );\n\t}", "public function validateData($data): void;", "public function testValidationCaseForSettingWrongFormattedStringForPublicKey()\n {\n $protocol = $this->getCryptographicProtocolForTesting();\n\n $exchangeInformation = $protocol->generateExchangeRequestInformation();\n\n // Backward compatible for different versions of PHPUnit\n if (method_exists($this, 'expectException')) {\n $this->expectException(\\InvalidArgumentException::class);\n\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } else {\n $hasThrown = null;\n\n try {\n $protocol->computeSharedSecret('яяяя', $exchangeInformation->private);\n } catch (\\InvalidArgumentException $exception) {\n $hasThrown = !empty($exception->getMessage());\n } catch (\\Exception $exception) {\n $hasThrown = $exception->getMessage();\n }\n\n $this->assertTrue($hasThrown);\n\n return;\n }\n }", "abstract public function valid();", "function commonValidation($data) {\n unset($this->validate['title']);\n unset($this->validate['category_id']);\n unset($this->validate['short_description']);\n\n if ($data['Offer']['basename'] != '') {\n unset($this->validate['file']['valid_upload']);\n }\n }", "public function isValid($data);", "public function valid()\n {\n return !is_null($this->key());\n }", "public function enforceRulePassword($data){\n if (strlen($data) >= 8){\n \t$validPassword= $data;\n \t} \n \telse{\n \t$validPassword= FALSE;\n\t\t\t}\n\t\t\t\n\t\t\t/*if (preg_match (\"/^.*(?=.{8,})(?=.*\\d)(?=.*[a-zA-Z]).*$/\", $data)){\n \t$validPassword= $data;\n \t} \n \telse{\n \t$validPassword= FALSE;\n\t\t\t}*/\n\t\t\t\n\t\t\treturn $validPassword;\n }", "protected function is_valid_key($key)\n {\n }", "public function valid()\n {\n\n if ($this->container['use_async_pattern'] === null) {\n return false;\n }\n if ($this->container['source_file_name'] === null) {\n return false;\n }\n if ($this->container['source_file_content'] === null) {\n return false;\n }\n if ($this->container['copy_metadata'] === null) {\n return false;\n }\n $allowed_values = [\"English\", \"Arabic\", \"Danish\", \"German\", \"Dutch\", \"Finnish\", \"French\", \"Hebrew\", \"Hungarian\", \"Italian\", \"Norwegian\", \"Portuguese\", \"Spanish\", \"Swedish\", \"Russian\"];\n if (!in_array($this->container['language'], $allowed_values)) {\n return false;\n }\n $allowed_values = [\"Slow but accurate\", \"Faster and less accurate\", \"Fastest and least accurate\"];\n if (!in_array($this->container['performance'], $allowed_values)) {\n return false;\n }\n $allowed_values = [\"None\", \"Whitelist\", \"Blacklist\"];\n if (!in_array($this->container['characters_option'], $allowed_values)) {\n return false;\n }\n return true;\n }", "public function decrypt(string $data) : string|bool\n {\n $json = Jso::hay(base64_decode($data))->decode(true);\n\n if (! Jso::valid() || !$this->validate((array)$json)) {\n throw new DecrypterException('Could not validate the decrypted data pack');\n }\n\n $iv = base64_decode($json['iv']);\n $encrypted = base64_decode($json['data']);\n $decrypted = sodium_crypto_secretbox_open($encrypted, $iv, $this->appKey);\n\n if (! $decrypted) {\n throw new DecrypterException('Could not decrypt the requested data');\n }\n\n sodium_memzero($encrypted);\n return $decrypted;\n }", "public final function verifyData($key){\n\n unset($this->errors[$key]);\n\n if(!array_key_exists($key,$this->data)){\n\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\n //DEFAULT\n if(array_key_exists('default',$this->definition[$key])){\n $this->data[$key] = $this->definition[$key]['default'];\n }//if\n //REQUIRED\n else if($this->getDefinitionValue($key,'required')){\n return $this->setError($key,\"`{$key}` is required\");\n }//elif\n else {\n return false;\n }//el\n\n }//if\n\n //PREMASSAGE\n if(($massage = $this->getDefinitionValue($key,'premassage')) !== false){\n $this->data[$key] = $this->{$massage}($this->data[$key]);\n }//if\n\n $value = $this->data[$key];\n\n //REGEXP\n if(($regexp = $this->getDefinitionValue($key,'regexp')) !== false){\n if(($default = \\App::getCondition($regexp)) !== false && !\\App::matchCondition($default,$value)){\n return $this->setError($key);\n }//if\n if(!preg_match(\"/{$regexp}/\",$value)){\n return $this->setError($key);\n }//if\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n //METHOD\n if(($method = $this->getDefinitionValue($key,'method')) !== false){\n if(!$this->{$method}($value)){\n return $this->setError($key);\n }//if\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n //NULLABLE\n if($this->getDefinitionValue($key,'nullable') && $value === null){\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n $type = $this->getDefinitionValue($key,'type');\n\n //TRUTHY\n if($type != 'boolean' && $this->getDefinitionValue($key,'truthy') && is_bool($value)){\n $this->_postMassage($key,$value);\n return true;\n }//if\n\n switch($type){\n\n case 'int':\n\n if(!$this->_isValidInt($key,$value)){\n return false;\n }//if\n\n break;\n\n case 'uint':\n\n if(!$this->_isValidInt($key,$value)){\n return false;\n }//if\n\n if($value < 0){\n return $this->setError($key,\"`{$key}` must be a positive integer\");\n }//if\n\n break;\n\n case 'float':\n\n if(!$this->_isValidFloat($key,$value)){\n return false;\n }//if\n\n break;\n\n case 'ufloat':\n\n if(!$this->_isValidFloat($key,$value)){\n return false;\n }//if\n\n if($value < 0){\n return $this->setError($key,\"`{$key}` must be a positive number\");\n }//if\n\n break;\n\n case 'string':\n\n if(!is_string($value)){\n return $this->setError($key,\"`{$key}` must be a string\");\n }//if\n\n if(($min = $this->getDefinitionValue($key,'minlen')) !== false && strlen($value) < $min){\n return $this->setError($key,\"`{$key}` must be greater than {$min} characters long\");\n }//if\n\n if(($max = $this->getDefinitionValue($key,'maxlen')) !== false && strlen($value) > $max){\n return $this->setError($key,\"`{$key}` must be less than {$max} characters long\");\n }//if\n\n break;\n\n case 'char':\n\n if(!is_string($value) || strlen($value) != 1){\n return $this->setError($key,\"`{$key}` must be a single character\");\n }//if\n\n break;\n\n case 'boolean': \n\n if(!is_bool($value)){\n return $this->setError($key,\"`{$key}` must be a boolean value\");\n }//if\n\n break;\n\n case 'array':\n\n if(!is_array($value)){\n return $this->setError($key,\"`{$key}` must be an array\");\n }//if\n\n break;\n\n case 'object':\n\n if(is_object($value)){\n if(($instanceof = $this->getDefinitionValue($key,'instanceof')) !== false && !$value instanceof $instanceof){\n return $this->setError($key,\"`{$key}` must be an instance of `{$instanceof}`\");\n }//if\n } //if\n else {\n return $this->setError($key,\"`{$key}` must be an object\");\n }//if\n\n break;\n\n case 'closure':\n\n if(!is_object($value) || !$value instanceof \\Closure){\n return $this->setError($key,\"`{$key}` must be a closure\");\n }//if \n\n break;\n\n default:\n return $this->setError($key);\n\n }//switch\n\n //IN\n if(($in = $this->getDefinitionValue($key,'in')) !== false && !in_array($value,$in)){\n $in = implode(', ',$in);\n return $this->setError($key,\"`{$key}` must be a value of `{$in}`\");\n }//if\n\n //NOTIN\n if(($in = $this->getDefinitionValue($key,'notin')) !== false && in_array($value,$in)){\n $in = implode(', ',$in);\n return $this->setError($key,\"`{$key}` must not be a value of `{$in}`\");\n }//if\n\n $this->_postMassage($key,$value);\n\n }", "public function validateInput($inputData)\n {\n if (!v::string()->notEmpty()->validate($inputData)) {\n $this->errors = 'Please give some inputs';\n }\n \n if (!v::json()->validate($inputData)) {\n $this->errors = 'Not a valid JSON';\n }\n\n if (v::string()->notEmpty()->validate($inputData) && v::json()->validate($inputData)) {\n if (!v::key('char')->validate(json_decode($inputData, true))) {\n $this->errors[] = 'Required Key char is not present in the input';\n }\n }\n }", "public function validarClave() {\n if (!$this->hasErrors()) {\n if ($this->clave != $this->claveConfirmar) {\n $this->addError('clave', 'Contraseña no coincide');\n $this->addError('claveConfirmar', 'Contraseña no coincide');\n $this->clave = null;\n $this->claveConfirmar = null;\n }\n }\n }", "private function ValidateTranslationFields()\t\n\t{\n\t\t// check for required fields\t\t\n\t\tforeach($this->arrTranslations as $key => $val){\t\t\t\n\t\t\tif(strlen($val['image_text']) > 2048){\n\t\t\t\t$this->error = str_replace('_FIELD_', '<b>'._DESCRIPTION.'</b>', _FIELD_LENGTH_EXCEEDED);\n\t\t\t\t$this->error = str_replace('_LENGTH_', 2048, $this->error);\n\t\t\t\t$this->errorField = 'image_text_'.$key;\n\t\t\t\treturn false;\n\t\t\t}\t\t\t\n\t\t}\t\t\n\t\treturn true;\t\t\n\t}", "function check_implementation() {\r\n\r\n\t\t$xtea = new XTEA(\"\");\r\n\t\t$vectors = array(\r\n\t\t\tarray(array(0x00000000,0x00000000,0x00000000,0x00000000), array(0x41414141,0x41414141), array(0xed23375a,0x821a8c2d)),\r\n\t\t\tarray(array(0x00010203,0x04050607,0x08090a0b,0x0c0d0e0f), array(0x41424344,0x45464748), array(0x497df3d0,0x72612cb5)),\r\n\r\n\t\t);\r\n\r\n\t\t//Correct implementation?\r\n\t\t$correct = true;\r\n\t\t//Test vectors, see http://www.schneier.com/code/vectors.txt\r\n\t\tforeach($vectors AS $vector) {\r\n \t$key = $vector[0];\r\n\t\t\t$plain = $vector[1];\r\n\t\t\t$cipher = $vector[2];\r\n\r\n\t\t\t$xtea->key_setup($key);\r\n\t\t\t$return = $xtea->block_encrypt($vector[1][0],$vector[1][1]);\r\n\r\n\t\t\tif((int)$return[0] != (int)$cipher[0] || (int)$return[1] != (int)$cipher[1])\r\n\t\t\t\t$correct = false;\r\n\r\n\t\t}\r\n\r\n\t\treturn $correct;\r\n\r\n\t}", "public function valid() {\n return ( ! is_null($this->key()));\n }", "function decryptData($openssl_data, $openssl_pass, $openssl_iv){\n\t$method = 'AES-256-CBC';\n\n\tif(strlen($openssl_iv) > '128'){\n\t\t$openssl_iv = substr($openssl_iv, 0, 128);\n\t}\n\n\treturn trim(openssl_decrypt($openssl_data, $method, $openssl_pass, FALSE, $openssl_iv));\n}", "public function validarClave() {\r\n if (!$this->hasErrors()) {\r\n if ($this->clave != $this->claveConfirmar) {\r\n $this->addError('clave', 'Contraseña no coincide');\r\n $this->addError('claveConfirmar', 'Contraseña no coincide');\r\n $this->clave = null;\r\n $this->claveConfirmar = null;\r\n }\r\n }\r\n }", "function check_api_token($token) {\n /* format (2) : crypt (1) : ccrypt( create_api_token('glynthom', '50') , 'AES-256-OFB', 'en' ) ) */\n\n if (strlen(utf8_decode( $token )) === 60) {\n \n switch (true) {\n case (strlen(utf8_decode( $token )) === 120):\n $token = ccrypt( $token , 'AES-256-OFB', 'de' );\n case (strlen(utf8_decode( $token )) === 60):\n break;\n }\n\n $token = explode(\"-\", $token);\n $token[0] = strlen(utf8_decode( $token[0] ));\n /* name de-crunch, figure out upad length compensation */\n\n switch (true) {\n case ( !isset($token[3]) ):\n case ( !isset($token[1]) ):\n case ( !isset($token[6]) ): \n return 'token is invalid, error';\n break; \n }\n\n switch (true) {\n case ($token[0] === 32): // max user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 30): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' ); \n break;\n case ($token[0] === 28): // user pad \n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' ); \n break;\n case ($token[0] === 26): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' ); \n break;\n case ($token[0] === 24): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 22): // username \n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 20): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' ); \n break;\n case ($token[0] === 18): // user pad \n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 16): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 14): // user pad \n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 12): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' ); \n break;\n case ($token[0] === 10): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' ); \n break;\n case ($token[0] === 8): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 6): // user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n case ($token[0] === 4): // min user pad\n $token[3] = ccrypt( $token[3], 'AES-256-OFB', 'de' );\n $token[1] = ccrypt( $token[1], 'AES-256-OFB', 'de' );\n break;\n }\n\n /* number de-crunch figure out pad length compensation */\n\n /* if ( isset($token[6]) ) { */\n $nlen = strlen(utf8_decode( $token[6] ));\n\n switch (true) {\n case ($nlen === 10): // max 100 000\n $token[5] = ccrypt( $token[5], 'AES-256-OFB', 'de' );\n break;\n case ($nlen === 8): // 10 000 \n $token[5] = ccrypt( $token[5], 'AES-256-OFB', 'de' );\n break;\n case ($nlen === 6): // 1 000 \n $token[5] = ccrypt( $token[5], 'AES-256-OFB', 'de' );\n break;\n case ($nlen === 4): // 100\n $token[5] = ccrypt( $token[5], 'AES-256-OFB', 'de' );\n break;\n case ($nlen === 2): // 50 public access\n $token[5] = ccrypt( $token[5], 'AES-256-OFB', 'de' );\n break;\n\n case ($nlen > 10):\n case ($nlen < 2):\n $token[3] = 'token is '; $token[1] = 'invalid'; $token[5] = 'error';\n break;\n }\n\n } else { $token[3] = 'token is '; $token[1] = 'invalid'; $token[5] = 'error';}\n\n /* final sanity check */\n\n $options = array('options' => array('min_range' => 0));\n\n switch (true) {\n\n case ( !preg_match('/^[A-Za-z0-9_]{1,15}$/', ($token[3] . $token[1]) ) ):\n return 'token is invalid, error';\n break;\n case ( filter_var($token[5], FILTER_VALIDATE_INT, $options) === FALSE ):\n return 'token is invalid, error';\n break;\n\n }\n \n return $token[3] . $token[1] . ',' .$token[5];\n\n}", "public final function verifySetData(){\n\n foreach($this->data as $k => $v){\n $this->verifyData($k);\n }//foreach\n\n if(count($this->errors)){\n return false;\n }//if\n\n return true;\n\n }", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function valid() {}", "public function decrypt($data)\n {\n if(!is_string($data) || empty($data)) return false;\n\n // Decode crypt keys\n $first_key = base64_decode($this->config['main_key']);\n $second_key = base64_decode($this->config['assured_key']);\n\n // Decode base64 coded $data\n $mix = base64_decode($data);\n\n // Get length of IV from crypt first method\n $iv_length = openssl_cipher_iv_length($this->encrypt_fst_method);\n\n // Get IV from decoded $data\n $iv = substr($mix, 0, $iv_length);\n // Get second encrypted $data from $mix\n $second_encrypted = substr($mix, $iv_length, 64);\n // Get first encrypted $data from $mix\n $first_encrypted = substr($mix, $iv_length + 64);\n\n // Decrypt first encrypted $data with first encryption method\n $data = openssl_decrypt($first_encrypted, $this->encrypt_fst_method, $first_key, OPENSSL_RAW_DATA, $iv);\n $second_encrypted_new = hash_hmac($this->encrypt_snd_method, $first_encrypted, $second_key, TRUE);\n\n // Check if new second encrypted data is equals to previous second encrypted data,\n // then return decrypted data\n if (hash_equals($second_encrypted, $second_encrypted_new)) {\n $this->has_error = false;\n return $data;\n }\n\n // Otherwise it has modefied\n $this->has_error = true;\n return false;\n }", "function aes_128_decrypt($key, $data) {\n $base64_original = str_replace(array('-', '_'), array('+', '/'), $data);\n\n // Get binary data\n $decoded = base64_decode($base64_original);\n\n // Initialization vector is the first 16 bytes of the received data\n $iv = substr($decoded, 0, 16);\n\n // The payload itself is is the rest of the received data\n $payload = substr($decoded, 16);\n\n // Decrypt raw binary payload\n $json = openssl_decrypt($payload, \"aes-128-cbc\", $key, OPENSSL_RAW_DATA, $iv);\n //$json = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $payload, MCRYPT_MODE_CBC, $iv); // You can use this instead of openssl_decrupt, if mcrypt is enabled in your system\n\n return $json;\n }", "public function validateTokenizeCard($data)\n {\n $validator = Validator::make($data, [\n 'card_number' => 'required|numeric',\n 'client_id' => 'required|string'\n ]);\n\n if ($validator->fails()) {\n throw new \\Exception($validator->errors()->first());\n }\n }", "function validate_key($key)\n{\n if ($key == 'PhEUT5R251')\n return true;\n else\n return false;\n}", "public function valid()\n {\n\n $allowedValues = $this->getTransformAllowableValues();\n if (!in_array($this->container['transform'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getWrapTextAllowableValues();\n if (!in_array($this->container['wrapText'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getAnchoringTypeAllowableValues();\n if (!in_array($this->container['anchoringType'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getCenterTextAllowableValues();\n if (!in_array($this->container['centerText'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getTextVerticalTypeAllowableValues();\n if (!in_array($this->container['textVerticalType'], $allowedValues)) {\n return false;\n }\n $allowedValues = $this->getAutofitTypeAllowableValues();\n if (!in_array($this->container['autofitType'], $allowedValues)) {\n return false;\n }\n return true;\n }", "public function validation($data)\n {\n \t$this->load->library('encrypt');\n\t\t$user = $this->db->select('email, password, status_register')->where('email', $data['email'])->get('ec_client')->result_array();\n if (count($user) > 0) {\n\t\t\t\t$password_decode = $this->encrypt->decode($user[0]['password']);\n\t\t\t\t\tif ($password_decode == $data['password']) {\n\t\t\t\t\t\tif ($user[0]['status_register'] == 0) {\n return 2;\n }\n return 1;\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn 0; # Usuario o clave de acceso incorrectos\n\t\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn 0; # Usuario o clave de acceso incorrectos\n\t\t\t}\n }", "public function validate()\r\n {\r\n if(($this->length_n>=MIN_LENGTH AND $this->length_n<MAX_LENGTH) AND ($this->width_m>=MIN_WIDTH AND $this->width_m<MAX_WIDTH))\r\n {\r\n return true;\r\n }else {\r\n return false;\r\n }\r\n\r\n \r\n }", "public function isValid()\n {\n return $this->pos < strlen($this->buffer);\n }", "public function valid(){\n\t\treturn (is_array($this->data) ? key($this->data) !== null : false);\n\t}", "public function valid()\n {\n if (count($this->data) < 1) {\n if ($this->provider instanceof \\Closure) {\n $this->data = $this->provider->__invoke($this->key);\n } else {\n $this->data = $this->manuallyAddedData;\n $this->manuallyAddedData = array();\n }\n }\n\n return count($this->data) > 0;\n }", "protected function _verifySecretKey()\n {\n $sCronSecretkeyParameter = $this->_getSecretKey();\n $sCronSecretkey = $this->_getContainer()->getConfig()->getConfigParam('sAmazonCronSecretKey');\n\n if ($sCronSecretkeyParameter === false || $sCronSecretkey !== $sCronSecretkeyParameter) {\n $this->setViewData(array(\n 'sError' => 'Wrong Secret Key given.'\n ));\n\n return false;\n }\n\n return true;\n }", "function openssl_private_decrypt(\n string $data,\n &$decrypted_data,\n #[LanguageLevelTypeAware(['8.0' => 'OpenSSLAsymmetricKey|OpenSSLCertificate|array|string'], default: 'resource|array|string')] $private_key,\n int $padding = OPENSSL_PKCS1_PADDING\n): bool {}", "public function hasCryptFilter() {}", "public function validateData(){\n if(substr($this->user_id,0,5)!=$this->office_id){\n return false;\n }\n if(in_array($this->email,$this->getEmails())){\n return false;\n }\n return true; \n }", "public function validate( )\n {\n return count( array_diff( $this->extractTokens( ), $this->getAvailableTokens( ) ) ) == 0;\n }", "public function isDataValid() {\n if ($this->userExists())\n $this->_errors[] = 'username already taken';\n // username and password must match pattern\n else if (empty($this->_username) || !preg_match('/^[a-zA-Z0-9]{5,16}$/', $this->_username))\n $this->_errors[] = 'invalid username must be between 5 and 16 characters';\n else if (empty($this->_password) || !preg_match('/^[a-zA-Z0-9]{6,18}$/', $this->_password))\n $this->_errors[] = 'invalid password must be between 6 and 18 characters';\n\t\t else if (empty($this->_password) || $this->_password != $this->_password_confirm)\n $this->_errors[] = \"Password didn't match X\";\n // names must be between 2 and 22 characters\n else if (empty($this->_first_name) || !preg_match('/^[a-zA-Z0-9]{2,22}$/', $this->_first_name))\n $this->_errors[] = 'invalid first name must be between 2 and 22 characters';\n else if (empty($this->_last_name) || !preg_match('/^[a-zA-Z0-9]{2,22}$/', $this->_last_name))\n $this->_errors[] = 'invalid last name must be between 2 and 22 characters';\n //restricts day to 01-31, month to 01-12 and year to 1900-2099 (also allowing / - or . between the parts of the date) \n else if (empty($this->_dob) || !preg_match('/^(0?[1-9]|[12][0-9]|3[01])[\\/\\ ](0?[1-9]|1[0-2])[\\/\\ ](19|20)\\d{2}$/', $this->_dob))\n $this->_errors[] = 'invalid dod | must be DD/MM/YYYY format';\n else if (empty($this->_address))\n $this->_errors[] = 'invalid address';\n // checks if valid postal code\n else if (empty($this->_postcode) || !preg_match('/^(([A-PR-UW-Z]{1}[A-IK-Y]?)([0-9]?[A-HJKS-UW]?[ABEHMNPRVWXY]?|[0-9]?[0-9]?))\\s?([0-9]{1}[ABD-HJLNP-UW-Z]{2})$/', $this->_postcode))\n $this->_errors[] = 'invalid postcode | must be AA11 9AA format';\n // checks is valid email using regular expression\n else if (empty($this->_email) || !preg_match('/^[_\\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\\.)+[a-zA-Z]{2,6}$/', $this->_email))\n $this->_errors[] = 'invalid email';\n\n\n // return true or false \n return count($this->_errors) ? 0 : 1;\n }", "private function validateData()\n {\n if (empty($this->nome)) {\n $this->errors->addMessage(\"O nome é obrigatório\");\n }\n\n if (!filter_var($this->email, FILTER_VALIDATE_EMAIL)) {\n $this->errors->addMessage(\"O e-mail é inválido\");\n }\n\n if (strlen($this->senha) < 6) {\n $this->errors->addMessage(\"A senha deve ter no minímo 6 caracteres!\");\n }\n if ($this->emailExiste($this->email, 'email')) {\n $this->errors->addMessage(\"Esse e-mail já está cadastrado\");\n }\n if ($this->emailExiste($this->usuario, 'usuario')) {\n $this->errors->addMessage(\"Esse usuário já está cadastrado\");\n }\n\n return $this->errors->hasError();\n }", "public function valid()\n {\n\n if ($this->container['name'] === null) {\n return false;\n }\n if (strlen($this->container['name']) > 100) {\n return false;\n }\n if ($this->container['nit'] === null) {\n return false;\n }\n if (strlen($this->container['nit']) > 15) {\n return false;\n }\n if ($this->container['inbound_configuration_username'] === null) {\n return false;\n }\n if ($this->container['outbound_configuration_contingency_email'] === null) {\n return false;\n }\n return true;\n }", "public function decrypt();", "function km200_Decrypt( $decryptData ) \n{ \n $decrypt = openssl_decrypt( \n base64_decode( $decryptData ),\n \"aes-256-ecb\",\n km200_crypt_key_private,\n OPENSSL_RAW_DATA | OPENSSL_ZERO_PADDING\n );\n// var_dump($decryptData);\n\n // remove zero padding \n $decrypt = rtrim( $decrypt, \"\\x00\" ); \n // remove PKCS #7 padding \n $decrypt_len = strlen( $decrypt ); \n $decrypt_padchar = ord( $decrypt[ $decrypt_len - 1 ] ); \n for ( $i = 0; $i < $decrypt_padchar ; $i++ ) \n { \n if ( $decrypt_padchar != ord( $decrypt[$decrypt_len - $i - 1] ) ) \n break; \n } \n if ( $i != $decrypt_padchar ) \n return $decrypt; \n else \n return substr( \n $decrypt, \n 0, \n $decrypt_len - $decrypt_padchar \n ); \n}", "public function testBasicDataEncryptionAndDataDecryption()\n {\n $randomData = random_bytes(8);\n $randomKey = random_bytes(NativeRc4::KEY_SIZE);\n\n $encryptedData = NativeRc4::encryptData($randomKey, $randomData);\n $decryptedData = NativeRc4::decryptData($randomKey, $encryptedData);\n\n $this->assertEquals($randomData, $decryptedData);\n\n if (in_array(strtolower(Rc4::ALGORITHM_NAME), openssl_get_cipher_methods(), true)) {\n $this->assertEquals(\n $encryptedData,\n openssl_encrypt($randomData, 'RC4', $randomKey, OPENSSL_RAW_DATA, '')\n );\n }\n }", "public function validateAuthKey($authKey){\n }", "public function rules()\n {\n return [\n 'session_key' => 'required',\n 'iv' => 'required',\n 'encryptedData' => 'required'\n ];\n }", "function check_element_validity($key,$opt){\n\n if (preg_match(STARTCHARRGX, $key) === 1 ) { //check first character\n preg_match(STARTCHARRGX,$key,$matches);\n if ($matches[0] == \"_\") {\n return false;\n }\n return true;\n }\n if ( preg_match(INVALIDCHARSRGX, $key) === 1) { //check other chars validity\n return true;\n }\n return false;\n }", "private function validateData() {\r\n\r\n $requiredFields = array(\"v_code\" => \"Verification code not supplied\",\r\n \"psw1\" => \"Password field is empty\",\r\n \"psw2\" => \"Password field is empty\",);\r\n\r\n\r\n //0 means there is no error\r\n $error_status = \\VAL_NO_ERROR;\r\n\r\n /*\r\n Initialize error object that will be returned by this function\r\n */\r\n $error_obj = new stdClass();\r\n $error_obj->msg = \"\";\r\n $error_obj->field = \"\";\r\n $error_obj->code = 0;\r\n $error_obj->type = \\VAL_NO_ERROR;\r\n\r\n //check if required variables are defined\r\n foreach ($requiredFields as $key => $value) {\r\n $value = $this->request->request->get($key);\r\n if (empty( $value )) {\r\n $error_obj->field = $key;\r\n $error_obj->msg = $requiredFields[$key];\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n //return after each field that is found wrong\r\n return $error_obj;\r\n }\r\n }\r\n\r\n $pass_1 = $this->request->request->get('psw1');\r\n $pass_2 = $this->request->request->get('psw2');\r\n\r\n //Check if emails match\r\n if (strcmp($pass_1, $pass_2) != 0) {\r\n $error_obj->field = \"psw2\";\r\n $error_obj->msg = \"Passwords are different\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n /*\r\n Only check one password. If both passwords are thesame, we only need to check one of them.\r\n */\r\n if (!preg_match('/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{6,}$/', $pass_1)) {\r\n $error_obj->field = \"psw1\";\r\n $error_obj->msg = \"Password must have a digit, lower and upper case charters. Min lenght is 6\";\r\n $error_obj->type = \\VAL_FIELD_ERROR;\r\n\r\n return $error_obj;\r\n }\r\n\r\n return $error_obj;\r\n }", "function _inputCheck(){\n if (isset($_POST['verder']) && $this->_verify() == \"\") {\n return true;\n }\n else {\n return false;\n }\n }", "public function valid() {\n return array_key_exists($this->_key, $this->_data);\n }", "public function decrypt($data, $deterministic);", "private function isValidKey($key) {\n\n\t\t// Check key length\n\t\t$len = strlen($key);\n\n\t\tif ($len < 1) {\n\t\t\tthrow new FlintstoneException('No key has been set');\n\t\t}\n\n\t\tif ($len > 50) {\n\t\t\tthrow new FlintstoneException('Maximum key length is 50 characters');\n\t\t}\n\n\t\t// Check valid characters in key\n\t\tif (!preg_match(\"/^[A-Za-z0-9_\\-]+$/\", $key)) {\n\t\t\tthrow new FlintstoneException('Invalid characters in key');\n\t\t}\n\n\t\treturn true;\n\t}", "public function testIsValidKeyWithValidKey() \n {\n $key = 'key1';\n $result = $this->fileCache->isValidKey($key);\n $expected = TRUE;\n\n $this->assertEquals($expected, $result);\n }", "function validate(array $data)\n\t{\n\t}", "public function hasValidData($key = null) {\n if (!$this->hasData) {\n return false;\n }\n if (isset($key)) {\n if (is_array($key)) {\n foreach ($key as $k) {\n if (!isset($this->data[$k])) \n return false;\n }\n }\n else if (!isset($this->data[$key])) { \n return false;\n }\n }\n return $this->checkToken();\n }", "public function valid()\n {\n return (null !== key($this->data));\n }" ]
[ "0.7728111", "0.662747", "0.65892667", "0.6566636", "0.632465", "0.6242262", "0.6176424", "0.6146964", "0.6042639", "0.5946525", "0.5943229", "0.59191275", "0.5764247", "0.5764247", "0.57420397", "0.5724901", "0.5697322", "0.56938076", "0.5684154", "0.56604636", "0.565735", "0.565735", "0.5630979", "0.56153405", "0.55900276", "0.55602425", "0.553551", "0.55254644", "0.5516808", "0.5502485", "0.54834276", "0.54690284", "0.54491377", "0.54457265", "0.5438503", "0.5437897", "0.54376173", "0.5429295", "0.54256046", "0.5424342", "0.53846085", "0.53810716", "0.53705776", "0.53602374", "0.5347315", "0.5332927", "0.5328497", "0.53253967", "0.53184", "0.53164905", "0.53065705", "0.53021604", "0.52920735", "0.52877873", "0.5285889", "0.5275755", "0.5273576", "0.52653825", "0.52607125", "0.52431834", "0.52431834", "0.52431834", "0.52431834", "0.52431834", "0.52431834", "0.52431834", "0.52431834", "0.52399355", "0.52273977", "0.52032304", "0.51987916", "0.51896864", "0.5186853", "0.5165842", "0.5165643", "0.5164885", "0.51640505", "0.5163636", "0.5145452", "0.5144432", "0.5142447", "0.51395816", "0.51334184", "0.5132792", "0.5131726", "0.51309067", "0.51267695", "0.5118221", "0.511771", "0.5113011", "0.5112385", "0.5107362", "0.5106738", "0.51044255", "0.5103827", "0.5103498", "0.5101194", "0.5099716", "0.5096611", "0.5093092" ]
0.8284532
0
Add item to Compensation_Data value
Добавить элемент в значение Compensation_Data
public function addToCompensation_Data(\WorkdayWsdl\\StructType\Compensation_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Compensation_DataType) { throw new \InvalidArgumentException(sprintf('The Compensation_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Compensation_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCompensation_Detail_Data(\\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Compensation_Detail_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Compensation_Detail_Data[] = $item;\n return $this;\n }", "public function append($item)\n {\n array_push($this->activeValue, $item);\n }", "public function addToCOBRA_Eligibility_Data(\\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType) {\n throw new \\InvalidArgumentException(sprintf('The COBRA_Eligibility_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->COBRA_Eligibility_Data[] = $item;\n return $this;\n }", "public function add() {\n $dataH['CustomerBankAccount'] = $_lib['sess']->get_companydef('BankAccount');\n $old_pattern = array(\"/[^0-9]/\");\n $new_pattern = array(\"\");\n $dataH['CustomerAccountPlanID'] = strtolower(preg_replace($old_pattern, $new_pattern , $_lib['sess']->get_companydef('OrgNumber')));\n }", "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public function addItem(Array $item)\n {\n $this->item[] = $item;\n }", "public function writeItem($item)\n {\n $this->data[] = $item;\n }", "public function onBeforeApplySave(&$data) {\n // require helper file\n JLoader::register('MdfuelHelperReceipts', JPATH_COMPONENT.'/helpers/receipts.php');\n $model = $this->getThisModel();\n $item = $model->getItem();\n\n $jinput = JFactory::getApplication()->input;\n $liters = $jinput->get('liters');\n $liter_prijs = $jinput->get('liter_prijs');\n $carid = $jinput->get('mdfuel_car_id');\n $fueltype = MdfuelHelperReceipts::getFuelType($carid);\n $tankbedrag = $liters * $liter_prijs;\n $data['tankbedrag'] = $tankbedrag;\n $data['fuel'] = $fueltype;\n return $data;\n}", "public function add($item)\n {\n $this->manuallyAddedData[] = $item;\n }", "public function add_deal($data_arr,&$validation_passed,&$new_transaction_id,&$err_arr){\n\t\tdie(\"NO LONGER USED\");\n \n }", "public function add()\n {\n $item = new stdClass();\n $item->item_id = null;\n $item->barcode = null;\n $item->price = null;\n $item->stock = null;\n $item->name = null;\n $item->category_id = null;\n $query_category = $this->categorys_m->get();\n $query_unit = $this->units_m->get();\n $unit[null] = '-Pilih-';\n foreach ($query_unit->result() as $u) {\n\n $unit[$u->unit_id] = $u->name;\n };\n $data = [\n 'page' => 'add',\n 'row' => $item,\n 'category' => $query_category,\n 'unit' => $unit,\n 'selectedunit' => null\n ];\n $this->template->load('template', 'product/item/item_add', $data);\n }", "function addToBatch($item, $values) {\n $item['rowValues'] = $values;\n $item['allowUpdate'] = $this->_allowEntityUpdate;\n $item['ignoreCase'] = $this->_ignoreCase;\n $this->_importQueueBatch[] = $item;\n }", "private function append($value)\n {\n \t$this->values[] = $value;\n }", "public function setModuleData(){\n\t\t/* variable initialization */\n\t\t$this->_strSchemaName\t.= \"_\".$this->getCompanyCode();\n\t\t$intRespone\t\t\t\t= \"\";\n\t\t\n\t\t/* Setting the Pokicy filed */\n\t\tif((isset($this->_strDataSet['policy'])) && (!empty($this->_strDataSet['policy']))){\n\t\t\t/* Iterating the loop */\n\t\t\tforeach($this->_strDataSet['policy'] as $strPlicyKey => $strPolicyValue){\n\t\t\t\t/* Decoding the value */\n\t\t\t\t$this->_strDataSet['policy'][$strPlicyKey]\t= getDecyptionValue($strPolicyValue);\n\t\t\t}\n\t\t\t/* Imploding the value */\n\t\t\t$this->_strDataSet['policy']\t\t= implode(\",\",$this->_strDataSet['policy']);\n\t\t}else{\n\t\t\t/* Setting the value */\n\t\t\t$this->_strDataSet['policy']\t= \"\";\n\t\t}\n\t\t\n\t\t/* Set the operation filter array */\n\t\t$strEventFilterArr \t= array(\n\t\t\t\t\t\t\t\t\t\t'table' \t=> $this->_strSchemaName,\n\t\t\t\t\t\t\t\t\t\t'data' \t\t=> $this->_strDataSet,\n\t\t\t\t\t\t\t\t\t\t'where' \t=> array('id' => $this->_strDataSet['foreign']),\n\t\t\t\t\t\t\t\t\t);\n\t\t/* removed unwanted variables */\n\t\tunset($strEventFilterArr['data']['foreign']);\n\t\t\n\t\t/* Perfomaning the addition operation */\n\t\tif($this->_strDataSet['foreign'] == 0){\n\t\t\t/* add new records */\n\t\t\t$intResultStatus = $this->_objDataOperation->setDataInTable($strEventFilterArr);\n\t\t/* Perfomaning the update operation */\n\t\t}else{\n\t\t\t/* update the existing records */\n\t\t\t$intResultStatus = $this->_objDataOperation->setUpdateData($strEventFilterArr);\n\t\t}\n\t\t/* removed used variables */\n\t\tunset($strResultArr);\n\t\t\n\t\t/* return the operation status */\n\t\treturn $intResultStatus;\n\t}", "private function cObjDataAddArray( $keyValue )\n {\n foreach ( $keyValue as $key => $value )\n {\n if ( empty( $key ) )\n {\n continue;\n }\n\n $this->pObj->cObj->data[ $key ] = $value;\n\n if ( !( $this->pObj->b_drs_map || $this->pObj->b_drs_warn ) )\n {\n continue;\n }\n\n if ( $value === null )\n {\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = $key . ' is null. Maybe this is an error!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n }\n else\n {\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'Added to cObject[' . $key . ']: ' . $value;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n $prompt = 'You can use the content in TypoScript with: field = ' . $key;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n }\n }", "public function addToHas_Health_Insurance_Data(\\WorkdayWsdl\\\\StructType\\Has_Health_Insurance_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Has_Health_Insurance_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Has_Health_Insurance_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Has_Health_Insurance_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Has_Health_Insurance_Data[] = $item;\n return $this;\n }", "public function addDiscount(AdjustmentDataInterface $discount)\n {\n $this->discounts[] = $discount;\n }", "function addItem2DB($data = null)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->coupon_model->add($result);\n }\n }", "public function append($table, $item) {\r\n saprfc_table_append($this->fce, $table, array(\"LINE\" => \"\" . $item . \"\"));\r\n $this->arrayDebug['APPEND'][$table][] = $item;\r\n }", "public function addToResponse_Group(\\WorkdayWsdl\\\\StructType\\Workers_Compensation_Code_Response_GroupType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Workers_Compensation_Code_Response_GroupType) {\n throw new \\InvalidArgumentException(sprintf('The Response_Group property can only contain items of type \\WorkdayWsdl\\\\StructType\\Workers_Compensation_Code_Response_GroupType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Response_Group[] = $item;\n return $this;\n }", "public function appendEquipmentingItem($value)\n {\n return $this->append(self::EQUIPMENTING_ITEM, $value);\n }", "public function addDatas(\\RO\\Cmd\\ItemData $value){\n return $this->_add(5, $value);\n }", "private function addData ()\n {\n foreach ($this->data as $key=>$value)\n {\n $keys[] = $key;\n $values[] = $value;\n \n }\n $cols = implode($keys, \",\");\n $dataValues = \"'\".implode($values, \"','\").\"'\";\n $query = \"INSERT INTO `$this->tablename`($cols)VALUES($dataValues);\";\n \n $conn = $this->DB->conn;\n \n $sql = $conn->query($query);\n \n if($sql == TRUE) return TRUE;\n else \n {\n \n throw new Exception(\"Error : Data Not inserted to database :( \".$conn->error);\n \n }\n \n }", "public function AddData ($key, $value) {\n\t\t$this->data[$key] = $value;\t\t\t\t\n\t}", "public function addExpense($table, $data)\n {\n\n if (isset($data)) {\n $result=$this->dynamicInsert($table, $data);\n }\n }", "function addstock($uketoru_item, $uketoru_num){\n\tglobal $item;\n\tglobal $num_item;\n\t// echo $uketoru_item, '<br />', $uketoru_num, '<br />';\n\t// echo gettype($item), '<br />';\n\t# checking whether or not the item is in the data and its position\n\t$yes_no = in_array($uketoru_item, $item);\n\t$position = array_search($uketoru_item, $item);\n\t\n\t// echo 'in_array', '<br />' ,(boolean) $yes_no , '<br />','<br />';\n\t// echo 'position', '<br />', $position , '<br />';\n\n\t//echo $address;\n\tif($yes_no == 0){\n\t// $uketoru_item is not in array data \n\techo \"the item is not in the data.\",'<br />';\n\t# add the item in the data\n\tarray_push($item, $uketoru_item);\n\tarray_push($num_item, $uketoru_num);\n\t// echo $item[0],'<br />', $num_item[0],'<br />';\n\n\t}else{\n\t# $uketoru_item\n\t\"the item is in the data and is stocked.\";\n\t# add the stock on the item\n\t// echo \"yes_no\", '<br />', $yes_no, '<br />';\n\t$num_item[$position] = $num_item[$position] + $uketoru_num;\n\n\t}\n}", "final public function addItemGroupTechInCharge() {\n if (!empty($this->target_object)) {\n foreach ($this->target_object as $val) {\n if ($val->fields['groups_id_tech'] > 0) {\n $this->addForGroup(0, $val->fields['groups_id_tech']);\n }\n }\n }\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "function appendAllListOfValuesToItem(&$item) {\n $iter = $item->getMetadataIterator();\n $this->appendAllListOfValues($iter);\n }", "public function addData()\r\n {\r\n\r\n $this->datecreated = time();\r\n $sql = 'INSERT INTO ' . TABLE_PREFIX . 'stat_productstock (\r\n p_barcode,\r\n sd_value,\r\n sd_month,\r\n sd_year,\r\n day_1,\r\n day_2,\r\n day_3,\r\n day_4,\r\n day_5,\r\n day_6,\r\n day_7,\r\n day_8,\r\n day_9,\r\n day_10,\r\n day_11,\r\n day_12,\r\n day_13,\r\n day_14,\r\n day_15,\r\n day_16,\r\n day_17,\r\n day_18,\r\n day_19,\r\n day_20,\r\n day_21,\r\n day_22,\r\n day_23,\r\n day_24,\r\n day_25,\r\n day_26,\r\n day_27,\r\n day_28,\r\n day_29,\r\n day_30,\r\n day_31,\r\n sd_datecreated,\r\n sd_datemodified\r\n )\r\n VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';\r\n $rowCount = $this->db3->query($sql, array(\r\n (string)$this->pbarcode,\r\n (string)$this->value,\r\n (int)$this->month,\r\n (int)$this->year,\r\n (string)$this->day_1,\r\n (string)$this->day_2,\r\n (string)$this->day_3,\r\n (string)$this->day_4,\r\n (string)$this->day_5,\r\n (string)$this->day_6,\r\n (string)$this->day_7,\r\n (string)$this->day_8,\r\n (string)$this->day_9,\r\n (string)$this->day_10,\r\n (string)$this->day_11,\r\n (string)$this->day_12,\r\n (string)$this->day_13,\r\n (string)$this->day_14,\r\n (string)$this->day_15,\r\n (string)$this->day_16,\r\n (string)$this->day_17,\r\n (string)$this->day_18,\r\n (string)$this->day_19,\r\n (string)$this->day_20,\r\n (string)$this->day_21,\r\n (string)$this->day_22,\r\n (string)$this->day_23,\r\n (string)$this->day_24,\r\n (string)$this->day_25,\r\n (string)$this->day_26,\r\n (string)$this->day_27,\r\n (string)$this->day_28,\r\n (string)$this->day_29,\r\n (string)$this->day_30,\r\n (string)$this->day_31,\r\n (int)$this->datecreated,\r\n (int)$this->datemodified\r\n ))->rowCount();\r\n\r\n $this->id = $this->db3->lastInsertId();\r\n return $this->id;\r\n }", "private function setItem(array $itemData)\n {\n //====================================================================//\n // Safety Check\n if ((!$this->item instanceof WC_Order_Item_Shipping) && (!$this->item instanceof WC_Order_Item_Fee)) {\n return;\n }\n //====================================================================//\n // Update Name\n if (isset($itemData[\"name\"])) {\n $this->setGeneric(\"_name\", $itemData[\"name\"], \"item\");\n }\n //====================================================================//\n // Update Quantity\n $qty = $itemData[\"quantity\"] ?? 1;\n //====================================================================//\n // Update Unit Price\n if (isset($itemData[\"subtotal\"])) {\n // Compute Expected Total\n $total = $qty * self::prices()->taxExcluded($itemData[\"subtotal\"]);\n // Compute Expected Total Tax Incl.\n $totalTax = $qty * self::prices()->taxAmount($itemData[\"subtotal\"]);\n // There is NO Discount\n } else {\n $total = $this->item->get_total();\n $totalTax = $this->item->get_total_tax();\n }\n //====================================================================//\n // Update Item Taxes\n if ($totalTax != $this->item->get_total_tax()) {\n $this->setItemTaxArray('total', (float) $totalTax);\n }\n //====================================================================//\n // Update Item Totals\n $this->setGeneric(\"_total\", $total, \"item\");\n }", "public function addNewStructureRow(){\n\t\t$map_id = $this->Generic_model->general_fetch_array_return_row('map_attributes_values', array('attribute_id'=>$this->input->post('newStructureAttr'), 'value'=>$this->input->post('newStructureValue')))->map_id;\n\t\t$onSale = '1';\n\t\tif($this->input->post('onSaleStruct') == ''){\n\t\t\t$onSale = '0';\n\t\t}\n\t\t$details = array(\n\t\t\t'pid' => $this->uri->segment(4),\n\t\t\t'map_id' => $map_id,\n\t\t\t'retail_price' => $this->input->post('price'),\n\t\t\t'retail_price_tax' => $this->input->post('priceTax'),\n\t\t\t'cost_price' => $this->input->post('costPrice'),\n\t\t\t'on_sale_status' => $onSale\n\t\t);\n\t\t$response = $this->Generic_model->general_insert('pricing_structure', $details);\n\t\tif($response){\n\t\t\t$this->session->set_flashdata('success', 'Product Updated successfully with new pricing structure.');\n\t\t}else{\n\t\t\t$this->session->set_flashdata('failure', 'Oops!! Something went wrong. Try again...');\n\t\t}\n\t\tredirect('admin/product/editProduct/'.$this->uri->segment(4));\n\t}", "function Add($name, $value)\r\n\t{\r\n\t\tif (is_array($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data[$name] = $value;\t\r\n\t\t}\t\r\n\t\telse if (is_object($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data->$name = $value;\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error(\"A DataRow of base type, cannot have fields added.\",E_USER_ERROR);\t\r\n\t\t}\r\n\t\t\r\n\t}", "public function addToOccupation_Data(\\WorkdayWsdl\\\\StructType\\Occupation_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Occupation_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Occupation_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Occupation_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Occupation_Data[] = $item;\n return $this;\n }", "function OnAfterAdd(){\n //get keyfield value\n if (intval($this->item_id) == 0)\n $data = $this->Storage->GetRecord(null, array(\n $this->key_field => \"\"));\n $this->item_id = $data[$this->key_field];\n }", "public function addToAnnual_Income_Data(\\WorkdayWsdl\\\\StructType\\Annual_Income_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Annual_Income_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Annual_Income_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Annual_Income_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Annual_Income_Data[] = $item;\n return $this;\n }", "public function append($value)\n {\n $this->items[] = $value;\n }", "function updateCompanyIdOrContactIdToListElem(&$arFields){\n\n if($arFields['IBLOCK_ID'] == 125 /*&& $arFields['PROPERTY_VALUES']['592']['n0']['VALUE'] == ''*/){\n $arFields['PROPERTY_VALUES']['592']['n0']['VALUE'];\n //file_put_contents($file, $arFields['PROPERTY_VALUES']['593']['n0']['VALUE'], FILE_APPEND | LOCK_EX);\n\n foreach ($arFields['PROPERTY_VALUES']['593'] as $number => $dealId){\n $ID = $dealId['VALUE'];\n $key = $number;\n }\n\n //Берем данные сделки по id\n //$dealData = CCrmDeal::GetByID($arFields['PROPERTY_VALUES']['593']['43585']['VALUE']);\n $dealData = CCrmDeal::GetByID($ID);\n if($dealData['COMPANY_ID'] != '') {\n $arFields['PROPERTY_VALUES']['592'][$key]['VALUE'] = 'CO_'.$dealData['COMPANY_ID'];\n }\n if($dealData['COMPANY_ID'] == 0 && $dealData['CONTACT_ID'] != '') {\n $arFields['PROPERTY_VALUES']['592'][$key]['VALUE'] = 'C_'.$dealData['CONTACT_ID'];\n }\n\n /* $file = $_SERVER['DOCUMENT_ROOT'].'/local/testLogger3.log';\n file_put_contents($file, print_r($arFields,true), FILE_APPEND | LOCK_EX);*/\n\n return true;\n\n }\n\n}", "function store()\r\n {\r\n $db =& eZDB::globalDatabase();\r\n $db->begin();\r\n\r\n $this->Name = $db->escapeString( $this->Name );\r\n $this->Sign = $db->escapeString( $this->Sign );\r\n\r\n if ( $this->Value == \"\" )\r\n {\r\n $this->Value = 1;\r\n }\r\n \r\n if ( !isset( $this->ID ) )\r\n {\r\n $timeStamp =& eZDateTime::timeStamp( true );\r\n $db->lock( \"eZTrade_AlternativeCurrency\" );\r\n $nextID = $db->nextID( \"eZTrade_AlternativeCurrency\", \"ID\" );\r\n \r\n $res[] = $db->query( \"INSERT INTO eZTrade_AlternativeCurrency\r\n ( ID,\r\n\t\t Name,\r\n\t\t Sign,\r\n\t\t Value,\r\n\t\t Created,\r\n\t\t PrefixSign )\r\n VALUES\r\n\t\t ( '$nextID',\r\n '$this->Name',\r\n\t\t '$this->Sign',\r\n\t\t '$this->Value',\r\n\t\t '$timeStamp',\r\n\t\t '$this->PrefixSign' )\" );\r\n $db->unlock();\r\n\t\t\t$this->ID = $nextID;\r\n }\r\n else\r\n {\r\n $res[] = $db->query( \"UPDATE eZTrade_AlternativeCurrency SET\r\n\t\t Name='$this->Name',\r\n\t\t Sign='$this->Sign',\r\n\t\t Value='$this->Value',\r\n\t\t Created=Created,\r\n\t\t PrefixSign='$this->PrefixSign'\r\n WHERE ID='$this->ID'\" );\r\n }\r\n\r\n eZDB::finish( $res, $db );\r\n return true;\r\n }", "final public function save() {\n $db = Database::getInstance();\n $mysqli = $db->getConnection();\n\t\n\t//Insert into database if its a new component or update if its an existing one\n $sql_query = 'INSERT INTO fresco_costing_component_array (component_id,component_type_id,quote_id,component_name,metal,powdercoating,fabric,processing,wastage,installation,margin,other) VALUES (';\n $sql_query .= '\"'.$this->_component_id.'\",';\n $sql_query .= '\"'.$this->_component_type_id.'\",';\n $sql_query .= '\"'.$this->_quote_id.'\",';\n $sql_query .= '\"'.$this->component_name.'\",';\n $sql_query .= '\"'.$this->metal.'\",';\n $sql_query .= '\"'.$this->powdercoating.'\",';\n $sql_query .= '\"'.$this->fabric.'\",';\n $sql_query .= '\"'.$this->processing.'\",';\n $sql_query .= '\"'.$this->wastage.'\",';\n $sql_query .= '\"'.$this->installation.'\",';\n $sql_query .= '\"'.$this->margin.'\",';\n $sql_query .= '\"'.$this->other.'\"';\n $sql_query .= ') ON DUPLICATE KEY UPDATE ';\n $sql_query .= 'component_type_id = \"' . $this->_component_type_id . '\", ';\n $sql_query .= 'quote_id = \"' . $this->_quote_id . '\", ';\n $sql_query .= 'component_name = \"' . $this->component_name . '\", ';\n $sql_query .= 'metal = \"' . $this->metal . '\", ';\n $sql_query .= 'powdercoating = \"' . $this->powdercoating . '\", ';\n $sql_query .= 'fabric = \"' . $this->fabric . '\", ';\n $sql_query .= 'processing = \"' . $this->processing . '\", ';\n $sql_query .= 'wastage = \"' . $this->wastage . '\", ';\n $sql_query .= 'installation = \"' . $this->installation . '\", ';\n $sql_query .= 'margin = \"' . $this->margin . '\", ';\n $sql_query .= 'other = \"' . $this->other . '\"';\n \n $result = $mysqli->query($sql_query);\n if (!$result) {\n trigger_error('Unable to write to database : SQL query : ' . $sql_query);\n }\n\treturn;\n }", "function AddItem($item, $object = null, $itemkey = null)\r\n {\r\n if($object != null)\r\n {\r\n throw new Exception('ObjectNew1 functionallity for RadioGroup is not yet implemented.');\r\n }\r\n\r\n //Set the array to the end\r\n end($this->_items);\r\n\r\n //Adds the item as the last one\r\n if($itemkey != null)\r\n {\r\n $this->_items[$itemkey] = $item;\r\n }\r\n else\r\n {\r\n $this->_items[] = $item;\r\n }\r\n\r\n return ($this->Count);\r\n }", "function addItemAtBeginOfCompanies($item){\n\t\t\t\t$this->addItemAtBeginOf($this->companies, $item);\n\t\t\t}", "public function modify_row(&$p_arrRow)\n {\n if ($p_arrRow['isys_cats_chassis_slot_list__insertion'] == C__INSERTION__FRONT)\n {\n $p_arrRow['isys_cats_chassis_slot_list__insertion'] = _L('LC__UNIVERSAL__FRONT');\n }\n else\n {\n $p_arrRow['isys_cats_chassis_slot_list__insertion'] = _L('LC__UNIVERSAL__REAR');\n } // if\n\n $l_assigned_items = $this->m_cat_dao->get_assigned_chassis_items_by_cat_id($p_arrRow['isys_cats_chassis_slot_list__id']);\n\n if (is_array($l_assigned_items) && count($l_assigned_items) > 0)\n {\n $p_arrRow['assigned_items'] = [];\n $l_chassis_dao = isys_cmdb_dao_category_s_chassis::instance($this->m_db);\n\n foreach ($l_assigned_items as $l_item)\n {\n $p_arrRow['assigned_items'][] = $l_chassis_dao->get_assigned_device_title_by_cat_id($l_item['isys_cats_chassis_list__id'], false);\n } // foreach\n } // if\n }", "public function addEntries($entryValues, $producingCl) {\n\t\t\t$updatedEntryValues = $entryValues;\n\t\t\tif ($producingCl) {\n\t\t\t\t// this entry's time minus previous entry's time, unless there is no previous entry\n\t\t\t\tif (count($this->entries) == 0) {\n\t\t\t\t\t$timeDifference = 0;\n\t\t\t\t} else {\n\t\t\t\t\t$timeDifference = $entryValues[0] - $this->entries[(count($this->entries) - 1)][0]; \t\n\t\t\t\t}\n\n\t\t\t\t$flowrate = $entryValues[2];\n\t\t\t\t// L of chlorine produced during the $timeDifference measured in seconds\n\t\t\t\t$chlorineProduced = ($flowrate * ($timeDifference / 60.0)) / 1000;\n\t\t\t\t$this->totalChlorineProduced += $chlorineProduced;\n\t\t\t} else {\n\t\t\t\t$chlorineProduced = 0.0;\n\t\t\t}\n\t\t\t$updatedEntryValues[] = $chlorineProduced;\n\t\t\t$this->entries[] = $updatedEntryValues;\n\n\t\t\t// Check entry values for errors/warnings\n\t\t\t$this->updateCycleStatus($entryValues[5], $entryValues[4], $entryValues[2], $entryValues[6]);\n\t\t}", "public function addNew($data) {\r\n \t$roomDiscount = $this->findByUnique($data[self::ROOM], $data[self::RULE]);\r\n \tif (empty($roomDiscount)) {\r\n \t\treturn $this->insert($data);\r\n \t} else {\r\n \t\treturn $roomDiscount->id;\r\n \t}\r\n }", "public function updateStock()\n {\n// foreach($this->detalle_compras as $detalle)\n// {\n// $producto= Producto::model()->findByPk($detalle->producto);\n// $producto->stock+=$detalle->cantidad;\n// $producto->save();\n// }\n }", "public function addItem($item)\n {\n if ($item instanceof \\Fastbill\\Item\\Item)\n {\n $this['ITEMS'][] = $item;\n }\n else\n {\n $itemObj = new \\Fastbill\\Item\\Item();\n $itemObj->fillFromArray($item);\n $this['ITEMS'];\n }\n\n }", "public function addToPersonal_Info_Data(\\WorkdayWsdl\\\\StructType\\Personal_Info_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Personal_Info_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Personal_Info_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Personal_Info_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Personal_Info_Data[] = $item;\n return $this;\n }", "public function add() {\t\n CheckAdminLoginSession();\t\t\n\t\t$post_data = $this->input->post();\n\t\t\n\t\tif(!empty($post_data)) { \n\t\t\t$this->form_validation->set_error_delimiters('<span class=\"text-danger\">', '</span>');\n\t\t\t$this->form_validation->set_rules('name', ' Name', 'required|trim');\t\t\t\t\n\t\t\tif($this->form_validation->run() == FALSE) { } else {\n\t\tforeach ($this->input->post('company_id') as $key => $company_id) {\n\t\t\tforeach ($company_id as $insurance_type_id) {\n\t\t\t\t$data = array(\t\t\t\t\t\t\t\n\t\t\t\t'name' => $this->input->post('name'),\t\t\t\t\n\t\t\t\t'company_id' => $key,\t\t\t\t\n\t\t\t\t'insurance_type_id' => $insurance_type_id,\t\t\t\t\n\t\t\t\t'created_date' => date('Y-m-d H:i:s'),\n\t\t\t\t'modified_date' => date('Y-m-d H:i:s'),\n\t\t\t\t'status' => $this->input->post('status')\t \n\t\t\t\t); \n\t\t\t\t$id = $this->admin_model->setInsertData($this->optional_warranty,$data);\n\t\t\t}\n\t\t}\n\t\t\t\t$this->session->set_flashdata('message','Your Optional Warranty has been added successfully');\n\t\t redirect('admin/optional-warranty/lists','refresh');\n\t\t }\n }\n $data='';\n $data['companyProvidingInsurance'] = $this->admin_model->getCompanyProvidingInsurance($this->company_insurance);\n\t\t$this->load->view('admin/include/head');\n\t\t$this->load->view('admin/include/header');\n\t\t$this->load->view('admin/include/sidebar');\n\t\t$this->load->view('admin/optional_warranty/add',$data);\n\t\t$this->load->view('admin/include/footer');\n\t\t$this->load->view('admin/include/foot');\n\t}", "public static function insert_new_product_details($data)\n {\n try{\n \n $session = Yii::$app->session;\n foreach($data as $key=>$val) \n {\n if($key == 'hire_price' || $key == 'sale_price'){\n if($val != '')\n {\n $val=str_replace(',', '', $val );\n if (strpos($val, '.') !== false) {\n $val=substr($val,0,strpos($val, '.')+3);\n }\n }\n else\n {\n $val = 0;\n }\n }\n if($key == 'life_tax_details')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n if($key == 'exact_location')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n $insertdata[$key] = $$key;\n\n }\n \n if($insertdata['hire_price_range'] == 'crore')\n {\n \n $insertdata['hire_price'] = $insertdata['hire_price'] * 10000000;\n }\n else if($insertdata['hire_price_range'] == 'lack')\n {\n $insertdata['hire_price'] = $insertdata['hire_price'] * 100000;\n }\n else if($insertdata['hire_price_range'] == 'thousand')\n {\n $insertdata['hire_price'] = $insertdata['hire_price'] * 1000;\n }\n else if($insertdata['hire_price_range'] == 'por')\n {\n $insertdata['hire_price'] = -1;\n }\n \n if($insertdata['sale_price_range'] == 'crore')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 10000000;\n }\n else if($insertdata['sale_price_range'] == 'lack')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 100000;\n }\n else if($insertdata['sale_price_range'] == 'thousand')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 1000;\n }\n else if($insertdata['sale_price_range'] == 'por')\n {\n $insertdata['sale_price'] = -1;\n }\n \n unset($insertdata['hire_price_range']);\n unset($insertdata['sale_price_range']);\n \n\n $capacity = $insertdata['capacity'];\n $insertdata['capacity'] = $insertdata['capacity'].' '.$insertdata['capacity_metric']; \n unset($insertdata['capacity_metric']);\n\n if(!isset($model_other)) $insertdata['model_other']=''; \n $insertdata['product_status'] = 0; //update this when control panel complete\n\n $remove_keys = ['email','user_name','phone_number','password','regrepassword','company_name','designation','company_email','address','otp'];\n foreach($remove_keys as $removekey) unset($insertdata[$removekey]);\n\n //save equipment current location to productloaction array\n $productlocation = array();\n $current_location_keys = ['latitude','longitude','city','state','country','google_place_id','location_type']; \n foreach($current_location_keys as $key)\n {\n if($key == 'location_type')\n {\n $location[$key] = 1;\n }\n else\n {\n $location[$key] = $insertdata[$key];\n unset($insertdata[$key]);\n }\n }\n $productlocation[] = $location;\n unset($insertdata['street']);\n unset($insertdata['route']);\n unset($insertdata['zipcode']);\n\n //save equipment serving location to productloaction array\n if(isset($insertdata['exact_location']))\n {\n $exact_locations = explode(',',$insertdata['exact_location']);\n foreach($exact_locations as $exact_location)\n {\n $get_url_data=file_get_contents(\"http://maps.google.com/maps/api/geocode/json?address=\".urlencode($exact_location).\"&sensor=false\");\n $url_data=(array)json_decode($get_url_data);\n $url_data=$url_data['results'];\n $components=array_reverse($url_data[0]->address_components);\n $country\t=@$components[0]->long_name;\n $state\t\t=@$components[1]->long_name;\n $city\t\t=@$components[2]->long_name;\n $place_id=$url_data[0]->place_id;\n $lat=$url_data[0]->geometry->location->lat;\n $lng=$url_data[0]->geometry->location->lng;\n $location['latitude'] = $lat;\n $location['longitude'] = $lng;\n $location['city'] = $city;\n $location['state'] = $state;\n $location['country'] = $country;\n $location['google_place_id'] = $place_id;\n $location['location_type'] = 2;\n $productlocation[] = $location;\n }\n }\n unset($insertdata['exact_location']);\n unset($insertdata['_csrf']);\n unset($insertdata['product_type_check']);\n \n if ($insertdata['length'] == \"\"){ \n $insertdata['length'] =0; \n } \n if ($insertdata['width'] == \"\"){\n $insertdata['width'] =0; \n } \n if ($insertdata['height'] == \"\"){ \n $insertdata['height'] =0; \n } \n $insertdata['dimensions'] = $insertdata['length'].'x'.$insertdata['width'].'x'.$insertdata['height']; \n unset($insertdata['length']); \n unset($insertdata['width']); \n unset($insertdata['height']);\n \n //update amount if package type is free\n if($data['package_type'] != 2) { $data['package_amount'] = 0; }\n \n\n\n //get current user id\n $insertdata['user_id']=Yii::$app->user->getId(); \n \n $insertdata['updated_by'] = Yii::$app->user->id;\n $insertdata['date_updated'] = date('Y-m-d H:i:s');\n \n //insert data into database core_prodcuts table and get inserted product id\n Yii::$app->db->createCommand()->insert('core_products', $insertdata)->execute();\n $product_id = Yii::$app->db->getLastInsertID();\n\n $session->set('current_product_id', $product_id);\n\n //generate unique code for product and update\n //new logic start\n $categories = array('1'=>'C','2'=>'D','3'=>'E','4'=>'G','5'=>'P');//C-crane,D-dumper,E-excavator,G-generator,P-piling rigs\n $manual_product_code = $categories[$insertdata['category_id']];\n \n $subcategorycode = Productsubcategory::get_sub_category_code_by_id($insertdata['sub_category_id']);\n $manual_product_code .= $subcategorycode;\n \n if(strlen($capacity)>4)\n $manual_product_code .= substr($capacity, 0,4);\n else if(strlen($capacity)<=4)\n $manual_product_code .= str_pad($capacity, 4, '0', STR_PAD_LEFT);\n \n $producttype = array('0'=>'H','1'=>'S','2'=>'B'); //H-hire,S-sale,B-both\n $manual_product_code .=$producttype[$insertdata['product_type']];\n \n $manual_product_code .= strtoupper(str_pad(dechex($product_id), 5, '0', STR_PAD_LEFT));\n \n \n //new logic end\n Yii::$app->db->createCommand()->update('core_products', ['manual_product_code' => $manual_product_code], \"product_id = '$product_id'\")->execute();\n\n\n //save product current and serving locations using product id \n foreach($productlocation as $location)\n {\n $location['product_id'] = $product_id;\n Yii::$app->db->createCommand()->insert('core_product_locations', $location)->execute();\n }\n\n //get category name by id to get full path of the images & load charts upload for product\n $category_id = $insertdata['category_id'];\n $category_names = Productcategory::select_fields_by_category_id($category_id);\n $category_name= str_replace(' ', '_', $category_names[0]['category_name']);\n\n //save product images\n if(is_array($session->get('product_images')))\n {\n $product_images = $session->get('product_images');\n $original_image_name=$session->get('product_images_names');\n foreach($product_images as $index=>$product_image)\n {\n $images_data['product_id'] = $product_id;\n $images_data['image_name'] = $original_image_name[$index];\n $images_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$product_image;\n $images_data['image_type'] = 1;\n $images_data['image_status'] = 1;\n \n //insert image details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $images_data)->execute();\n\n }\n $session->remove('product_images');\n $session->remove('product_images_names');\n }\n //save product load_charts\n if(is_array($session->get('product_loadcharts')))\n {\n $product_load_charts = $session->get('product_loadcharts');\n $original_load_chart_name=$session->get('product_loadcharts_names');\n foreach($product_load_charts as $index=>$load_chart)\n {\n $load_charts_data['product_id'] = $product_id;\n $load_charts_data['image_name'] = $original_load_chart_name[$index];\n $load_charts_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$load_chart;\n $load_charts_data['image_type'] = 2;\n $load_charts_data['image_status'] = 1;\n //insert load_charts details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $load_charts_data)->execute();\n }\n $session->remove('product_loadcharts');\n $session->remove('product_loadcharts_names');\n }\n\n $response ['status'] = 200;\n $response ['message'] = \"Product added successfully\";\n\n \n /*//get current user email\n $email = User::select_user_email_by_id();\n $subject=\"Big Equipments India | Registration Of Equipment\";\n //get what message to send after creating product\n $message = Mail_settings::get_product_add_message($manual_product_code,$product_id);\n \n //send email to current user\n Mail_settings::send_email_notification($email,$subject,$message);*/\n\n return json_encode($response);\n \n } catch (ErrorException $ex) {\n Yii::warning('Error while adding new product.');\n Yii::warning($ex->getMessage());\n }\n \n }", "protected function registerData($data)\n\t{\n\t\t$mcoData = new Application_Model_DbTable_McoData();\n\t\t$mcoDataNew = $mcoData->createRow();\n\t\t$mcoDataNew->mco = $this->mcoId;\n\t\t$mcoDataNew->line = $data[1];\n\t\tif($data[3] == 'PD')\n\t\t\t$type = 1;\n\t\tif($data[3] == 'RI')\n\t\t\t$type = 2;\n\t\tif($data[3] == 'PI')\n\t\t\t$type = 3;\n\t\tif($data[3] == 'NT')\n\t\t\t$type = 4;\n\t\tif($data[3] == 'OU') //outros \n\t\t\t$type = 5;\n\t\tif($data[3] == 'AL') // alternativos\n\t\t\t$type = 6;\n\t\t$mcoDataNew->type = $type;\n\t\t$mcoDataNew->vehicle_number = $data[4];\n\t\t$mcoDataNew->start_hour = Application_Model_General::convertHour($data[5]);\n\t\t$mcoDataNew->mid_hour = Application_Model_General::convertHour($data[6]);\n\t\t$mcoDataNew->end_hour = Application_Model_General::convertHour($data[7]);\n\t\t$mcoDataNew->start_roulette = $data[8];\n\t\tif($data[9]) $mcoDataNew->mid_roulette = $data[9];\n\t\t$mcoDataNew->end_roulette = $data[10];\n\t\t$mcoDataNew->incident = $this->returnIncident($data[18]);\n\t\t$mcoDataNew->traffic_jam = $this->returnTrafficJam($data[19]);\n\t\t$mcoDataNew->travel_interrupted = $this->returnTravelInterrupted($data[17]);\n\t\t$amount_passenger = $data[10] - $data[8];\n\t\tif($amount_passenger<0){\n\t\t\t$amount_passenger = (100000-$data[8])+$data[10];\n\t\t}\n\t\t$mcoDataNew->amount_passenger = $amount_passenger;\n\t\t$this->countPassengers($data[1],$amount_passenger);\n\t\t$mcoDataNew->start_date = Application_Model_General::dateToUs($data[14]);\n\t\tif($data[15]) $mcoDataNew->mid_date = Application_Model_General::dateToUs($data[15]);\n\t\t$mcoDataNew->end_date = Application_Model_General::dateToUs($data[16]);\n\t\t$mcoDataNew->imported = 1;\n\t\t$mcoDataNew->status = 1;\n\t\t$mcoDataNew->save();\n\t}", "public function addData($dataRow, $productId)\n {\n $customData = &$dataRow['amasty_custom_data'];\n\n if (isset($this->effectiveDates[$productId])) {\n $customData[Product::PREFIX_OTHER_ATTRIBUTES] = [\n self::SALE_PRICE_EFFECITVEDATE_INDEX => $this->effectiveDates[$productId]\n ];\n } else {\n $customData[Product::PREFIX_OTHER_ATTRIBUTES] = [\n self::SALE_PRICE_EFFECITVEDATE_INDEX => \"\"\n ];\n }\n\n return $dataRow;\n }", "public function add_item($boat_id, $item, $type) {\n $data = array(\n 'BOAT_ID' => $boat_id,\n 'CL_DES' => $item,\n 'TYPE' => $type,\n 'CHECKED' => false\n );\n $this->db->insert('CL', $data);\n }", "public function add($item): self\n {\n // validation for constraint: itemType\n if (!$item instanceof \\StructType\\EwsCDRDataType) {\n throw new InvalidArgumentException(sprintf('The CDRData property can only contain items of type \\StructType\\EwsCDRDataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n return parent::add($item);\n }", "public function add_data($data)\n {\n }", "public function storeCommissionData($commissionDataArr) {\r\n $model = Mage::getModel('marketplace/commission');\r\n $duplicateProduct = $model->getCollection()\r\n ->addFieldToSelect('order_id')\r\n ->addFieldToFilter('order_id',$commissionDataArr['order_id'])\r\n ->addFieldToFilter('product_id',$commissionDataArr['product_id'])\r\n ->addFieldToFilter('seller_id',$commissionDataArr['seller_id']);\r\n if($duplicateProduct->getSize()){\r\n return false;\r\n }\r\n else {\r\n $model->setData($commissionDataArr);\r\n $model->save();\r\n return $model->getId();\r\n }\r\n }", "private function setDepositFromData()\n {\n if ($this->dataHasDeposit()) {\n $this->collection->items[$this->cart_hash]->deposit = $this->data['deposit'];\n $this->collection->deposit += $this->data['deposit'];\n }\n }", "public function addToInsurancePref($item)\n {\n // validation for constraint: itemType\n if (!false) {\n throw new \\InvalidArgumentException(sprintf('The InsurancePref property can only contain items of anyType, \"%s\" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);\n }\n $this->InsurancePref[] = $item;\n return $this;\n }", "public function addDetail($data) {\r\n /* FILTER KELENGKAPAN TRANSAKSI BY JENIS ACCOUNT */\r\n if ($this->isValidCoa(array(\r\n 'coa' => $data['dkst_coa'],\r\n 'cbid' => ses_cabang)) == FALSE)\r\n return FALSE;\r\n\r\n if ($this->db->insert(\"ksr_dtrans\", $data) == FALSE) {\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n }", "public function addItem($item){\n $this->items[] = $item;\n }", "public function insert()\n {\n $this->_checkItem();\n $service = $this->getService();\n $entry = $service->newItemEntry();\n $this->setEntry($entry);\n $this->_prepareEnrtyForSave();\n $this->getEntry()->setItemType($this->_getItemType());\n $entry = $service->insertGbaseItem($this->getEntry());\n $this->setEntry($entry);\n $entryId = $this->getEntry()->getId();\n $published = $this->gBaseDate2DateTime($this->getEntry()->getPublished()->getText());\n $this->getItem()\n ->setGbaseItemId($entryId)\n ->setPublished($published);\n\n if ($expires = $this->_getAttributeValue('expiration_date')) {\n $expires = $this->gBaseDate2DateTime($expires);\n $this->getItem()->setExpires($expires);\n }\n }", "public function add($data){\r\n \t$db = $this->getAdapter();\r\n \t$db->beginTransaction();\r\n\t\t$user_info = new Application_Model_DbTable_DbGetUserInfo();\r\n\t\t$result = $user_info->getUserInfo();\r\n\t\t$session_user=new Zend_Session_Namespace(SYSTEM_SES);\r\n\t\t$request=Zend_Controller_Front::getInstance()->getRequest();\r\n\t\t $level = $result[\"level\"];\r\n \ttry {\r\n \t\t$arr = array(\r\n \t\t\t'item_name'\t\t=>\t$data[\"name\"],\r\n \t\t\t'item_code'\t\t=>\t$data[\"pro_code\"],\r\n// \t\t\t'barcode'\t\t=>\t$data[\"barcode\"],\r\n \t\t\t'cate_id'\t\t=>\t$data[\"category_id\"],\r\n \t\t\t'product_type'\t=>\t$data[\"product_type\"],\r\n \t\t\t'cost_price'=>$data[\"cost_price\"],\r\n \t\t\t'selling_price'=>$data[\"selling_price\"],\r\n \t\t\t'user_id'\t\t=>\t$this->getUserId(),\r\n \t\t\t'note'\t\t\t=>\t$data[\"description\"],\r\n \t\t\t'create_date'\t\t=>\tdate(\"Y-m-d\"),\r\n \t\t\t\t\r\n \t\t);\r\n \t\t$this->_name=\"ln_ins_product\";\r\n \t\t$id = $this->insert($arr);\r\n\t\t\t\r\n \t\tif(!empty($data['identity'])){\r\n \t\t\t$identitys = explode(',',$data['identity']);\r\n \t\t\tforeach($identitys as $i)\r\n \t\t\t{\r\n \t\t\t\t$arr1 = array(\r\n \t\t\t\t\t'pro_id'\t\t\t=>\t$id,\r\n \t\t\t\t\t'location_id'\t\t=>\t$data[\"branch_id\".$i],\r\n \t\t\t\t\t'qty'\t\t\t\t=>\t$data[\"total_qty_\".$i],\r\n \t\t\t\t\t'qty_warning'\t\t=>\t$data[\"alert_qty\".$i],\r\n \t\t\t\t\t'last_mod_userid'\t=>\t$this->getUserId(),\r\n \t\t\t\t\t'last_mod_date'\t\t=>\tnew Zend_Date(),\r\n \t\t\t\t\t'last_mod_userid' => $this->getUserId(),\r\n \t\t\t\t);\r\n \t\t\t\t$this->_name = \"ln_ins_prolocation\";\r\n \t\t\t\t$this->insert($arr1);\r\n \t\t\t }\r\n \t\t }\r\n \t\t$db->commit();\r\n \t}catch (Exception $e){\r\n \t\t$db->rollBack();\r\n \t\tApplication_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());\r\n \t}\r\n }", "public function save()\n {\n array_push($this->table, $this->value);\n }", "public function insert() {\n $this->observer->idchangemoney = $this->connection->insert(\"ren_change_money\", array(\n \"`change`\" => $this->observer->change,\n \"`year`\" => $this->observer->year,\n \"`idmoney`\" => $this->observer->money->idmoney\n ), $this->user->iduser);\n }", "public function addSales($item)\n\t{\n\n\t\t$sql=\"UPDATE item set sales_price = ? WHERE id = ? \";\n \tif($this->db->query($sql,$item)) {\n \n \t return true;\n \t }\n \t\treturn FALSE;\n\n\t}", "public function add($item, $id){\n $storedItem = ['qty' => 0,\n 'price'=>$item->price,\n 'item' => $item]; //servirá para os grupos, para nao tar a adicionar 2 da mesma coisa\n\n if($this->items){ //verificar se ja ha items no array\n if (array_key_exists($id, $this->items)){ //verificar se ja existe o item que eu quero adicionar\n $storedItem = $this->items[$id];\n }\n }\n\n $storedItem['qty']++;\n $storedItem['price'] = $item->price * $storedItem['qty'];\n $this->items[$id] = $storedItem;\n $this->totalQty++;\n $this->totalPrice += $item->price;\n\n }", "public function addDataElement($value)\n {\n $this->dataElements[] = $value;\n }", "function AfterAdd(&$values,&$keys,$inline,&$pageObject)\n{\n\n\t\tglobal $conn;\n$proid= $keys['proid'];\n$bill_date=$values['bill_date'];\n$amount_bill=$values['amount'];\n$bill_no=$values['bill_no'];\n$item=$values['item'];\n$ProgramID = $values['ProgramID'];\n$BatchID = $values['BatchID'];\n\n//get related student according to intake , branch, and program\n$sql_student = \"select StudentID from student_info where DipID='$ProgramID' AND BatchID='$BatchID' AND Status='Active'\";\n$q_student = db_query($sql_student,$conn);\n\n//insert all program billing item to related student program bill\nwhile($row_student=db_fetch_array($q_student))\n{ \n$studentID=$row_student['StudentID'];\n$sql_insert=\"INSERT INTO student_billing (proid,date,amount,amount_balance,bill_no,item,studentID,status)\nVALUES ('$proid','$bill_date','$amount_bill','$amount_bill','$bill_no','$item','$studentID','Pending')\";\ndb_exec($sql_insert,$conn);\t\n}\n\n\n;\t\t\n}", "private function write_single($data){\r\n if($this->$data[0] !== NULL){\r\n //add row of data to transaction object\r\n $this->$data[0]->add_list($data);\r\n }else{\r\n $this->$data[0] = new transaction_object($data[0]);\r\n $this->$data[0]->add_header($this->default_headers[$data[0]]);\r\n $this->$data[0]->add_list($data);\r\n }\r\n }", "private function _addToFilteredItem( $addon, array $subData, &$filteredItem ){\n foreach ($subData as $key => $value) {\n if( is_array($value) ){\n $fieldPrefix = ($this->_iniData[$key]['db_table_prefix']) ? $this->_iniData[$key]['db_table_prefix'] : \"\";\n $this->_addToFilteredItem( $fieldPrefix, $value, $filteredItem );\n }\n if ( !is_numeric($key) && in_array($key,$this->_fieldsToUse,true)) {\n $filteredItem[$addon . $key] = $value;\n }\n }\n }", "public function addToContribuinte(\\IFT_IES\\StructType\\IFT_IESContribuinte $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\IFT_IES\\StructType\\IFT_IESContribuinte) {\n throw new \\InvalidArgumentException(sprintf('The contribuinte property can only contain items of type \\IFT_IES\\StructType\\IFT_IESContribuinte, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->contribuinte[] = $item;\n return $this;\n }", "function insert() {\n // Retrieve scale and infer grademax from it\n if (!empty($this->scaleid)) {\n $this->load_scale();\n $this->scale->load_items();\n $this->grademax = count ($this->scale->scale_items);\n $this->grademin = 0;\n }\n\n $result = parent::insert();\n\n // Notify parent grade_item of need to update\n $this->load_grade_item();\n $result = $result && $this->grade_item->flag_for_update();\n\n // Update grade_grades_text if specified\n if ($result && !empty($this->feedback)) {\n $result = $this->annotate(NULL, NULL, $this->feedback, $this->feedbackformat);\n }\n\n return $result && $this->grade_item->flag_for_update();\n }", "public function onAfterFieldDefinition($data, $item): void\n {\n // A locale can be null, those need to be skipped\n $locales = Locale::get()->exclude(['Locale' => null]);\n\n foreach ($locales as $locale) {\n $copy = $item;\n $copy['Field'] = sprintf('%s_%s', $item['Field'], $locale->Locale);\n $data->push($copy);\n }\n }", "public function addToRepairLabourRates($item)\n {\n // validation for constraint: itemType\n if (!(is_int($item) || ctype_digit($item))) {\n throw new \\InvalidArgumentException(sprintf('The repairLabourRates property can only contain items of type long, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->repairLabourRates[] = $item;\n return $this;\n }", "public function insertValue( $value, $iRow, $iColumn )\r\n {\r\n $this->data[$iRow][$iColumn] = $value;\r\n }", "public function add(){\n\n\t\t$db = new dbconnection();\n\t\t$conn = $db->startconnection();\t\n\n\t\t$query = $conn->prepare(\"INSERT INTO item(`item_code`,`item_category`,`item_subcategory`,`item_name`,`quantity`,`unit_price`) values (?,?,?,?,?,?)\");\n\n\t\t$query->bind_param(\"ssssss\",$this->itemcode,$this->category,$this->subcategory,$this->itemname,$this->quantity,$this->uprice);\n\t\t\t\n\t\t\tif($query->execute()){\n\n\t\t\treturn 1;\n\n\t\t}else{\n\n\t\t\treturn 0;\n\n\t\t}\n\n\n\t\t}", "function add_cart_item( $cart_item ) {\n\t\t\t\tif (isset($cart_item['addons'])) :\n\t\t\t\t\t\n\t\t\t\t\t$extra_cost = 0;\n\t\t\t\t\t\n\t\t\t\t\tforeach ($cart_item['addons'] as $addon) :\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ($addon['price']>0) $extra_cost += $addon['price'];\n\t\t\t\t\t\t\n\t\t\t\t\tendforeach;\n\t\t\t\t\t\n\t\t\t\t\t$cart_item['data']->adjust_price( $extra_cost );\n\t\t\t\t\t\n\t\t\t\tendif;\n\t\t\t\t\n\t\t\t\treturn $cart_item;\n\t\t\t\t\n\t\t\t}", "abstract public function add_item();", "function AddUpdateOptionBOMItem($BID, $opId, $arryDetails,$index) {//$option_ID,//\r\n global $Config;\r\n extract($arryDetails);\r\n //print_r($arryDetails);//die;\r\n \r\n if ($opId == '') {\r\n $strUpSQLQuery = \"update inv_bill_of_material set \r\n\t\t\t\ttotal_cost='\" . $TotalValue . \"',\r\n\t\t\t\tUpdatedDate = '\" . $Config['TodayDate'] . \"'\r\n\t\t\t\twhere bomID='\" . $BID.\"'\";\r\n //echo $strUpSQLQuery ;die;\r\n\r\n $this->query($strUpSQLQuery, 0);\r\n }\r\n \r\n \r\n for ($j = 1; $j<=$arryDetails['newNumberLine'.$index.'']; $j++) {\r\n \r\n if (!empty($arryDetails[\"newsku$index-$j\"])) {\r\n \r\n $id = $arryDetails[\"newid$index-$j\"];\r\n //print_r($id);\r\n if ($id > 0) {\r\n $sql = \"update inv_item_bom set orderby = '\".$arryDetails[\"orderby$index-$j\"].\"', item_id='\" . $arryDetails[\"newitem_id$index-$j\"] . \"', sku='\" . addslashes($arryDetails[\"newsku$index-$j\"]) . \"',`Primary`='\" .$arryDetails[\"Primary$index-$j\"] . \"', description='\" . addslashes($arryDetails[\"newdescription$index-$j\"]) . \"', wastageQty='\" . addslashes($arryDetails[\"newWastageqty$index-$j\"]) . \"', bom_qty='\" . addslashes($arryDetails[\"newqty$index-$j\"]) . \"', unit_cost='\" . addslashes($arryDetails[\"newprice$index-$j\"]) . \"', total_bom_cost='\" . addslashes($arryDetails[\"newamount$index-$j\"]) . \"',`Condition`='\" . addslashes($arryDetails[\"newCondition$index-$j\"]) . \"',req_item='\" . addslashes($arryDetails[\"newreq_item$index-$j\"]) . \"' where id='\" . $id.\"'\"; \r\n $this->query($sql, 0);\r\n } \r\n else {\r\n $sql = \"insert into inv_item_bom (bomID,optionID, item_id, sku, description, wastageQty, bom_qty, unit_cost, total_bom_cost,`Condition`,req_item,orderby,`Primary`) values('\" . $BID . \"','\" . $opId . \"','\" . $arryDetails[\"newitem_id$index-$j\"] . \"', '\" . addslashes($arryDetails[\"newsku$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newdescription$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newWastageqty$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newqty$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newrice$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newamount$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newCondition$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newreq_item$index-$j\"] ). \"', orderby = '\".$arryDetails[\"orderby$index-$j\"].\"','\" . addslashes($arryDetails[\"Primary$index-$j\"]) . \"')\";\r\n $this->query($sql, 0);\r\n \r\n }\r\n \r\n }\r\n \r\n \r\n }\r\n //die;\r\n return true;\r\n }", "public function addItem($key, $value);", "public function saveMultipartItemsComponents() {\n \n if (isset($_POST['item_no'])) {\n \n $param_pack = array();\n for ($i=0; $i < count($_POST['item_no']); $i++) {\n \n $hireItemID = trim($this->security->xss_clean($_POST['hireItemID'])); \n $item_no = trim($this->security->xss_clean($_POST['item_no'][$i]));\n $qty = trim($this->security->xss_clean($_POST['requestQty'][$i]));\n $description = trim($this->security->xss_clean($_POST['description'][$i]));\n $rate = trim($this->security->xss_clean($_POST['rate'][$i]));\n $value = $rate*$qty;\n $contractID = trim($this->security->xss_clean($_POST['contractID']));\n $itemType = 2; \n \n \n if ( v::int()->validate($hireItemID)\n && v::int()->validate($item_no)\n && v::int()->validate($qty)\n && v::numeric()->validate($rate)\n && v::int()->validate($contractID)\n && v::int()->validate($itemType) ) {\n \n $param_arr = compact(\"hireItemID\",\n \"item_no\",\n \"qty\",\n \"description\",\n \"rate\",\n \"value\",\n \"contractID\",\n \"itemType\");\n \n array_push( $param_pack, $param_arr);\n \n }else {\n \n http_response_code(400);\n echo \"Please, check the format data.\";\n return;\n }\n }\n \n $this->load->model('contracts_m'); \n \n foreach ( $param_pack as $i) {\n \n if ($i['qty'] > 0) {\n \n if ( !$this->contracts_m->insMultipartItemComponent($i) ) {\n \n echo \"ko\";\n return; \n }\n }\n }\n \n echo \"ok\";\n }\n }", "private function setProductItem(array $itemData): void\n {\n //====================================================================//\n // Safety Check\n if (!$this->item instanceof WC_Order_Item_Product) {\n return;\n }\n //====================================================================//\n // Update Quantity\n if (isset($itemData[\"quantity\"])) {\n $this->setGeneric(\"_quantity\", $itemData[\"quantity\"], \"item\");\n }\n //====================================================================//\n // Update Name\n if (isset($itemData[\"name\"])) {\n $this->setGeneric(\"_name\", $itemData[\"name\"], \"item\");\n }\n //====================================================================//\n // Update Product Id\n if (isset($itemData[\"product\"])) {\n $productId = self::objects()->id($itemData[\"product\"]);\n $this->setGeneric(\"_product_id\", $productId, \"item\");\n }\n //====================================================================//\n // Update Unit Price\n if (isset($itemData[\"subtotal\"])) {\n // Compute Expected Subtotal\n $subtotal = $this->item->get_quantity() * self::prices()->taxExcluded($itemData[\"subtotal\"]);\n // Compute Expected Subtotal Tax Incl.\n $subtotalTax = $this->item->get_quantity() * self::prices()->taxAmount($itemData[\"subtotal\"]);\n } else {\n $subtotal = $this->item->get_subtotal();\n $subtotalTax = $this->item->get_subtotal_tax();\n }\n //====================================================================//\n // Update Total Line Price\n // There is A Discount Percent\n if (isset($itemData[\"discount\"])) {\n // Compute Expected Total\n $total = (float) $subtotal * (1 - $itemData[\"discount\"] / 100);\n // Compute Expected Total Tax Incl.\n $totalTax = (float) $subtotalTax * (1 - $itemData[\"discount\"] / 100);\n // There is NO Discount\n } else {\n $total = $subtotal;\n $totalTax = $subtotalTax;\n }\n //====================================================================//\n // Update Item Taxes Array\n if (($totalTax != $this->item->get_total_tax()) || ($subtotalTax != $this->item->get_subtotal_tax())) {\n $this->setProductTaxArray((float) $totalTax, (float) $subtotalTax);\n }\n //====================================================================//\n // Update Item Totals\n $this->setGeneric(\"_total\", $total, \"item\");\n $this->setGeneric(\"_subtotal\", $subtotal, \"item\");\n }", "public function add($sAccount, $sVendor, $sCategory, $sDate, $iDebit, $iFixed, $sAmount, $sNotes)\n {\n \n //global $m_pSession;\n\n $sEnteredOn = date(\"Y-m-d H:i:s\");\n \n $bNewVendor = false;\n $bNewAccount = false;\n $bNewCategory = false;\n\n //Clean Account, Vendor and Category fields. Trim account and vender. Clean up Category and sub categories within the delemiter.\n $sVendor = trim($sVendor);\n $sAccount = trim($sAccount);\n $sCategory = $this->cleanCategory($sCategory);\n\n //Dealing with empty strings sent to add\n if(strlen($sVendor)!=0)\n $iVendorId = $this->pDatabase->selectValue(\"vendors/get_id_by_name\", $this->iUserId, $sVendor);\n else\n $iVendorId = 'NULL';\n \n if(strlen($sAccount)!=0)\n $iAccountId = $this->pDatabase->selectValue(\"accounts/get_id_by_name\", $this->iUserId, $sAccount);\n else\n $iAccountId = 'NULL';\n \n //Get category id form the database.\n if(strlen($sCategory)!=0)\n $iCategoryId = $this->pDatabase->selectValue(\"categories/get_id_by_name\", $this->iUserId, $sCategory);\n else\n $iCategoryId = 'NULL';\n \n //In case that any values are empty that shouldn't be empty\n if(($iVendorId=='NULL') && (strlen($sVendor)!=0)){ \n $this->addNew(\"vendors\",$sVendor); $bNewVendor=true;\n }\n if(($iCategoryId=='NULL') && (strlen($sCategory)!=0)){ \n $this->addNew(\"categories\",$sCategory); $bNewCategory=true;\n }\n if(($iAccountId=='NULL') && (strlen($sAccount)!=0)){ \n $this->addNew(\"accounts\",$sAccount); $bNewAccount=true;\n }\n \n \n \n //Add the transaction to the databse.\n $sTransactionId = $this->pDatabase->insert(\"transactions/add\", \"transactions\", $this->iUserId, $iVendorId, $iAccountId, $iCategoryId, $sDate, $iDebit, $iFixed, $sAmount, $sNotes, $sEnteredOn);\n\n //If error adding the transaction then clean up and report error.\n if ($sTransactionId == null)\n {\n //If vendor, account or category was created then delete them.\n if ($bNewVendor) $this->pDatabase->delete(\"vendors/delete\", $this->iUserId, $iVendorId);\n if ($bNewAccount) $this->pDatabase->delete(\"accounts/delete\", $this->iUserId, $iAccountId);\n if ($bNewCategory) $this->pDatabase->delete(\"categories/delete\", $this->iUserId, $iCategoryId);\n \n return XML::serialize(true, \"addTransaction\", \"type\",\"ERROR\",\"id\", \"-1\");\n }\n\n //If transaction is within visible period then add it to the list add it to the sorted list.\n\n\n return XML::serialize(true, \"addTransaction\", \"type\",\"OK\", \"id\",$sTransactionId);\n }", "function add_billing_data($billObj) {\n\n $item = new stdClass();\n $item->trans_id = $billObj->transId;\n $item->cardholder = $billObj->billTo->firstName . ' ' . $billObj->billTo->lastName;\n $item->type = 'a';\n $item->address = $billObj->billTo->address;\n $item->state = $billObj->billTo->state;\n $item->city = $billObj->billTo->city;\n $item->zip = $billObj->billTo->zip;\n $item->pdate = time();\n\n $exists = $this->is_billing_data_exists($item->trans_id);\n if ($exists == 0) {\n $query = \"insert into mdl_billing_data \"\n . \"(transaction_id,\"\n . \"cardholder,\"\n . \"type,\"\n . \"address,\"\n . \"state,\"\n . \"city,\"\n . \"zip,\"\n . \"pdate) \"\n . \"values ('$item->trans_id',\"\n . \"'\" . addslashes($item->cardholder) . \"',\"\n . \"'$item->type',\"\n . \"'\" . addslashes($item->address) . \"',\"\n . \"'$item->state',\"\n . \"'\" . addslashes($item->city) . \"',\"\n . \"'$item->zip',\"\n . \"'$item->pdate')\";\n $this->db->query($query);\n } // end if $exists == 0\n }", "public function add(Path $item): void\n {\n $path = $item->getPath();\n $value = $item->getValue();\n $index = array_pop($path);\n $array = [];\n\n if (count($path) > 0) {\n if (false === is_int($index) && false === is_string($index)) {\n $index = (string) $index;\n }\n\n $this->insertIntoArray($array, $path, [$index => $value]);\n } elseif (null === $index) {\n $array = [$value];\n } else {\n $array = [$index => $value];\n }\n\n $this->data = array_replace_recursive($this->data, $array);\n }", "public function addData($dataRow, $productId)\n {\n if (!empty($this->weeTaxData[$productId])) {\n $dataRow = array_merge($dataRow, $this->weeTaxData[$productId]);\n }\n return $dataRow;\n }", "public function update(): void\n {\n // Update quality\n if ($this->item->sell_in > 10) {\n $this->item->quality++;\n }\n\n if ($this->item->sell_in <= 10 && $this->item->sell_in > 5) {\n $this->item->quality += 2;\n }\n\n if ($this->item->sell_in <= 5 && $this->item->sell_in > 0) {\n $this->item->quality += 3;\n }\n\n // Update Sell in\n $this->updateSellIn();\n\n if ($this->item->sell_in < 0) {\n $this->item->quality = 0;\n }\n\n $this->checkAndUpdateQualityByRange();\n }", "public function add_data_final()\n\t{\n\t\t$user_id \t\t\t= $this->session->userdata['logged_in']['user_id'];\n\t\t\n\t\t$test_id \t\t\t= $this->input->post('test_id');\n\t\t$count_tests \t\t= count($test_id);\n\t\t\n\t\t$programm_type_id \t= $this->input->post('programm_type_id');\n\t\t$programm_date_id \t= $this->input->post('programm_date_id');\n\t\t$test_values \t\t= $this->input->post('test_value');\n\t\t$test_method \t\t= $this->input->post('methods');\n\t\t$date \t\t\t\t= date('Y-m-d');\n\n\t\t\n\t\tfor ($i=0; $i <$count_tests ; $i++) { \n\t\t\t$this->db->where('user_id', $user_id);\n\t\t\t$this->db->where('programm_type_id', $programm_type_id);\n\t\t\t$this->db->where('programm_date_id', $programm_date_id);\n\t\t\t\n\t\t\t\n\t\t\t$this->db->where('test_id', $test_id[$i]);\n\n\n\t\t\t$this->test_value \t\t\t= $test_values[$i];\n\t\t\t$this->method_id \t\t\t= $test_method[$i];\n\t\t\t$this->date_value_added \t= $date;\n\n\t\t\t$this->db->update('users_programm_dates_tests_evaluations', $this);\n\t\t}\n\t\t\n\n\n\t}", "function saveData($db, &$strError)\n{\n global $error;\n $strError = \"\";\n (isset($_REQUEST['dataType'])) ? $strDataType = $_REQUEST['dataType'] : $strDataType = \"department\";\n (isset($_REQUEST['dataCode'])) ? $strDataCode = trim($_REQUEST['dataCode']) : $strDataCode = \"\";\n (isset($_REQUEST['dataOldCode'])) ? $strDataOldCode = $_REQUEST['dataOldCode'] : $strDataOldCode = \"\";\n (isset($_REQUEST['dataName'])) ? $strDataName = $_REQUEST['dataName'] : $strDataName = \"\";\n (isset($_REQUEST['dataID'])) ? $strDataID = $_REQUEST['dataID'] : $strDataID = \"\";\n // cek validasi -----------------------\n if (strtolower($strDataType) == \"management\") {\n // --- EDIT DATA MANAGEMENT\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_management\", \"management_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Management -> $strDataCode\";\n return false;\n }\n }\n // simpan data -----------------------\n $data = [\n \"management_code\" => check_plain($strDataCode),\n \"management_name\" => check_plain($strDataName),\n ];\n $tbl = new cModel(\"hrd_management\", \"management\");\n if ($strDataID == \"\") {\n $tbl->insert($data);\n // data baru\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n $strDataCode = check_plain($strDataCode);\n $strDataOldCode = check_plain($strDataOldCode);\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_division SET management_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode'; \n UPDATE hrd_department SET management_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_sub_department SET division_code = '$strDataCode'\n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_section SET division_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET division_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_employee SET management_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"division\") {\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n // --- EDIT DATA DIVISION\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_division\", \"division_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Division -> $strDataCode\";\n return false;\n }\n }\n // simpan data -----------------------\n $data = [\n \"division_code\" => $strDataCode,\n \"division_name\" => $strDataName,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_division\", \"division\");\n if ($strDataID == \"\") {\n $tbl->insert($data);\n // data baru\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_department SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_sub_department SET division_code = '$strDataCode'\n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_section SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_employee SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"department\") {\n // --- EDIT DATA DEPARTMENT\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_department\", \"department_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Department -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"department_code\" => $strDataCode,\n \"department_name\" => $strDataName,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_department\", \"department\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_sub_department SET department_code = '$strDataCode'\n WHERE department_code = '$strDataOldCode';\n UPDATE hrd_section SET department_code = '$strDataCode'\n WHERE department_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET department_code = '$strDataCode' \n WHERE department_code = '$strDataOldCode';\n UPDATE hrd_employee SET department_code = '$strDataCode' \n WHERE department_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"subdepartment\") { // --- EDIT DATA SECTION\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n (isset($_REQUEST['dataDeptCode'])) ? $strDataDeptCode = $_REQUEST['dataDeptCode'] : $strDataDeptCode = \"\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_sub_department\", \"sub_department_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Sub Department -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"sub_department_code\" => $strDataCode,\n \"sub_department_name\" => $strDataName,\n \"department_code\" => $strDataDeptCode,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_sub_department\", \"subdepartment\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_section SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode';\n UPDATE hrd_employee SET section_code = '$strDataCode' \n WHERE section_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"section\") { // --- EDIT DATA SECTION\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n (isset($_REQUEST['dataDeptCode'])) ? $strDataDeptCode = $_REQUEST['dataDeptCode'] : $strDataDeptCode = \"\";\n (isset($_REQUEST['dataSubDeptCode'])) ? $strDataSubDeptCode = $_REQUEST['dataSubDeptCode'] : $strDataSubDeptCode = \"\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_section\", \"section_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Section -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"section_code\" => $strDataCode,\n \"section_name\" => $strDataName,\n \"sub_department_code\" => $strDataSubDeptCode,\n \"department_code\" => $strDataDeptCode,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_section\", \"section\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_sub_section SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode';\n UPDATE hrd_employee SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"subsection\") { // --- EDIT DATA SUBSECTION\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n (isset($_REQUEST['dataDeptCode'])) ? $strDataDeptCode = $_REQUEST['dataDeptCode'] : $strDataDeptCode = \"\";\n (isset($_REQUEST['dataSectCode'])) ? $strDataSectCode = $_REQUEST['dataSectCode'] : $strDataSectCode = \"\";\n (isset($_REQUEST['dataSubDeptCode'])) ? $strDataSubDeptCode = $_REQUEST['dataSubDeptCode'] : $strDataSubDeptCode = \"\";\n //(isset($_REQUEST['dataOvertime'])) ? $strDataOvertime = $_REQUEST['dataOvertime'] : $strDataOvertime = \"f\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_sub_section\", \"sub_section_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Sub Section -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"sub_section_code\" => $strDataCode,\n \"sub_section_name\" => $strDataName,\n \"section_code\" => $strDataSectCode,\n \"sub_department_code\" => $strDataSubDeptCode,\n \"department_code\" => $strDataDeptCode,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_sub_section\", \"sub section\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n }\n }\n return true;\n}", "function addData($column, $value)\n {\n $this->addColumns($column);\n $this->data[$this->series]['data'][$column] = $value * 1.0;\n }", "public function addItem(SagepayItem $item)\r\n {\r\n $this->_items[] = $item;\r\n }", "function add($data){\n if(array_key_exists($data['id'], $this->fields)){\n exit(\"Field with ID: '\".$data['id'].\"' already exists.\");\n }\n if(!isset($data['validate'])){\n $data['validate'] = false;\n }\n if(!isset($data['inline'])){\n $data['inline'] = null;\n }\n if(!isset($data['value'])){\n $data['value'] = null;\n }\n if(!isset($data['readonly'])){\n $data['readonly'] = false;\n }\n\n $this->fields[$data['id']] = $data;\n }", "public function addSale($item, $id){\n\n $storedItem = ['qty' => 0, 'productPrice' => $item->productPrice, 'item' => $item];\n if($this->items){\n if(array_key_exists($id, $this->items)){\n $storedItem = $this->items[$id];\n }\n }\n\n $storedItem['qty']++;\n $storedItem['productPrice'] = $item->productPrice * $storedItem['qty'];\n $this->items[$id] = $storedItem;\n $this->totalQty++;\n $this->totalPrice += $item->productPrice;\n }", "public function add()\n {\n //$this->log($this->request->data, 'debug');\n\n $humidity = $this->Humidities->newEntity();\n $humidity = $this->Humidities->patchEntity($humidity, [\n 'dt' => $this->request->data['datetime'],\n 'val' => $this->request->data['humidity']\n ]);\n\n $result = ['code' => 'S', 'message' => 'Success: humidity save is success.'];\n if (!$this->Humidities->save($humidity)) {\n $result = ['code' => 'E', 'message' => 'Error: unexpected error is occurred when save humidity data.'];\n }\n\n $this->set([\n 'result' => $result,\n '_serialize' => ['result']\n ]);\n }", "function add_update_om_items(){\t\n \t\t$house=$this->input->post('house2');\n\t\t$panjang=$this->input->post('panjang');\n\t\t$lebar=$this->input->post('lebar');\n\t\t$tinggi=$this->input->post('tinggi');\n\t\t$volume=$panjang*$lebar*$tinggi;\n\t\t\n\t\t$items=array(\n\t\t'HouseNo' =>$house,\n\t\t'NoPack'=>$this->input->post('pack'),\n\t\t'Length'=>$this->input->post('panjang'),\n\t\t'Width'=>$this->input->post('lebar'),\n\t\t'Height'=>$this->input->post('tinggi'),\n\t\t'Volume'=>$volume,\n\t\t'Date'=>date('Y-m-d H:i:s')\n\t\t);\t\t\n\t\t $this->model_app->insert('booking_items',$items);\n\t\t \n\tredirect('transaction/edit_outgoing_master/'.$house);\n }", "public function add($item);", "public function add($item);", "public function addRow($data){\n $data = (array)$data;\n $this->counter++;\n $newRow = [];\n $newRow = array_merge($newRow, $this->saveMetaData($data));\n $newRow = array_merge($newRow, $this->saveGeoData($data));\n $newRow = array_merge($newRow, $this->saveCoreData($data));\n $this->rowData[]=$newRow;\n }", "public function inserirFinal(array &$array, $item)\n\t{\n\t\t$array[] = $item;\n\t}", "public static function saveDisposal($data){\r\n\r\n // Create some constants for the sql inserts\r\n $user = Auth::getUser();\r\n // Save order Header\r\n $reqStrore = $user->storeNumber;\r\n $userID = $user->id;\r\n\r\n\r\n\r\n\r\n $sql = \"INSERT INTO disposal_head (\r\n reqStore,\r\n userRequesting,\r\n policeName,\r\n policeReportDate,\r\n policeReportNum,\r\n nerReportBy,\r\n nerReportDate,\r\n mfgReportBy,\r\n mfgReportDate,\r\n disposalComments)\r\n Values (\r\n :reqStore,\r\n :userRequesting,\r\n :policeName,\r\n :policeReportDate,\r\n :policeReportNum,\r\n :nerReportBy,\r\n :nerReportDate,\r\n :mfgReportBy,\r\n :mfgReportDate,\r\n :disposalComments)\";\r\n \r\n $db = static::getDB();\r\n\r\n $stmt = $db->prepare($sql);\r\n\r\n $stmt->bindValue(':reqStore', $reqStrore);\r\n $stmt->bindValue(':userRequesting', $userID);\r\n $stmt->bindValue(':policeName', $data['policeDepartment']);\r\n $stmt->bindValue(':policeReportDate', $data['policeDate']);\r\n $stmt->bindValue(':policeReportNum', $data['reportNum']);\r\n $stmt->bindValue(':nerReportBy', $data['nerReportBy']);\r\n $stmt->bindValue(':nerReportDate', $data['nerDate']);\r\n $stmt->bindValue(':mfgReportBy', $data['mfgReportBy']);\r\n $stmt->bindValue(':mfgReportDate', $data['mfgDate']);\r\n $stmt->bindValue(':disposalComments', $data['disposal_comments']);\r\n\r\n $stmt->execute();\r\n\r\n // Get id of last insert\r\n $insertId = $db->lastinsertId();\r\n // get total number of parts for the order\r\n\r\n $partCount = count($data['catNum']);\r\n\r\n // save each item on the request to table\r\n for ($i = 0; $i<$partCount; $i++){\r\n $itemData = array(\r\n 'cat_num' => $data['catNum'][$i],\r\n 'itm_num' => $data['itmNum'][$i],\r\n 'ser_num' => $data['serialNum'][$i],\r\n 'mfg' => $data['mfg'][$i],\r\n 'qty' => $data['quantity'][$i],\r\n 'disp_code'=>$data['disposalCode'][$i],\r\n 'orderID' => $insertId\r\n );\r\n static::saveParts($itemData);\r\n }\r\n }" ]
[ "0.6699705", "0.55794066", "0.5439293", "0.5117364", "0.50710636", "0.50562865", "0.5034741", "0.49769795", "0.4965951", "0.49514467", "0.49439436", "0.49334455", "0.4895031", "0.48946083", "0.4886936", "0.48747206", "0.48504317", "0.4843837", "0.4838966", "0.48289162", "0.48129404", "0.48127496", "0.48047426", "0.480308", "0.479154", "0.47904706", "0.47820994", "0.47776878", "0.47732633", "0.47700456", "0.47645319", "0.47637728", "0.47585368", "0.4751712", "0.47499937", "0.47465354", "0.47407818", "0.4740358", "0.47353572", "0.47244316", "0.47207794", "0.47136503", "0.47096044", "0.47048068", "0.46923837", "0.46867123", "0.46664137", "0.4661294", "0.46610785", "0.46530277", "0.4651832", "0.46488476", "0.46469355", "0.46315074", "0.46304026", "0.4629665", "0.46291012", "0.46280426", "0.46255967", "0.46251836", "0.462285", "0.46171734", "0.46153602", "0.46116254", "0.4611144", "0.46083492", "0.45906967", "0.45904204", "0.4585947", "0.4581777", "0.45803356", "0.45788983", "0.4567616", "0.4566697", "0.45665216", "0.45596564", "0.4557194", "0.45539337", "0.45533925", "0.45517644", "0.45513868", "0.4551314", "0.454701", "0.45468405", "0.45386195", "0.45323375", "0.45320556", "0.45316964", "0.45287752", "0.45241457", "0.45229128", "0.4519417", "0.45180243", "0.45170113", "0.4516891", "0.45156232", "0.45156232", "0.4513314", "0.45090264", "0.4508986" ]
0.7193161
0
Add item to Compensation_Detail_Data value
Добавить элемент в значение Compensation_Detail_Data
public function addToCompensation_Detail_Data(\WorkdayWsdl\\StructType\Compensation_Detail_DataType $item) { // validation for constraint: itemType if (!$item instanceof \WorkdayWsdl\\StructType\Compensation_Detail_DataType) { throw new \InvalidArgumentException(sprintf('The Compensation_Detail_Data property can only contain items of type \WorkdayWsdl\\StructType\Compensation_Detail_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__); } $this->Compensation_Detail_Data[] = $item; return $this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function addToCompensation_Data(\\WorkdayWsdl\\\\StructType\\Compensation_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Compensation_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Compensation_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Compensation_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Compensation_Data[] = $item;\n return $this;\n }", "private function addDetailRecord(DetailRecord $detailRecord, DescriptiveRecord $descriptiveRecord)\n {\n // Record Type\n $line = $detailRecord->getRecordType();\n\n // BSB\n $line .= $detailRecord->getBsb();\n\n // Account Number\n $line .= str_pad($detailRecord->getAccountNumber(), 9, ' ', STR_PAD_LEFT);\n\n // Indicator\n $line .= $detailRecord->getIndicator() ?: ' ';\n\n // Transaction Code\n $line .= $detailRecord->getTransactionCode();\n\n // Transaction Amount\n $line .= str_pad($detailRecord->getAmount(), 10, '0', STR_PAD_LEFT);\n\n // Account Name\n $line .= str_pad($detailRecord->getAccountName(), 32, ' ', STR_PAD_RIGHT);\n\n // Lodgement Reference\n $line .= str_pad($detailRecord->getReference(), 18, ' ', STR_PAD_RIGHT);\n\n // Trace BSB\n $line .= $descriptiveRecord->getBsb();\n\n // Trace Account Number\n $line .= str_pad($descriptiveRecord->getAccountNumber(), 9, ' ', STR_PAD_LEFT);\n\n // Remitter Name\n $line .= str_pad($detailRecord->getRemitter(), 16, ' ', STR_PAD_RIGHT);\n\n // Withholding amount\n $line .= str_pad($detailRecord->getTaxWithholding(), 8, '0', STR_PAD_LEFT);\n\n $this->addLine($line);\n }", "public function addDetail($data) {\r\n /* FILTER KELENGKAPAN TRANSAKSI BY JENIS ACCOUNT */\r\n if ($this->isValidCoa(array(\r\n 'coa' => $data['dkst_coa'],\r\n 'cbid' => ses_cabang)) == FALSE)\r\n return FALSE;\r\n\r\n if ($this->db->insert(\"ksr_dtrans\", $data) == FALSE) {\r\n return FALSE;\r\n } else {\r\n return TRUE;\r\n }\r\n }", "public function addDetailData($data,$parent) {\n if($data && is_array($data) && $parent) {\n foreach($data as $fbKey => $fbVal) {\n $this->getAdapter()->query(\"INSERT INTO tmw_wire_comp_details(playerId,detailsField,detailsData) VALUES ('$parent','$fbKey','$fbVal');\");\n }\n return true;\n } else {\n throw new Exception('Could not insert data');\n }\t\n }", "public function addToDetail($item)\n {\n // validation for constraint: itemType\n if (!is_string($item)) {\n throw new \\InvalidArgumentException(sprintf('The Detail property can only contain items of string, \"%s\" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);\n }\n $this->Detail[] = $item;\n return $this;\n }", "public function add()\n {\n $item = new stdClass();\n $item->item_id = null;\n $item->barcode = null;\n $item->price = null;\n $item->stock = null;\n $item->name = null;\n $item->category_id = null;\n $query_category = $this->categorys_m->get();\n $query_unit = $this->units_m->get();\n $unit[null] = '-Pilih-';\n foreach ($query_unit->result() as $u) {\n\n $unit[$u->unit_id] = $u->name;\n };\n $data = [\n 'page' => 'add',\n 'row' => $item,\n 'category' => $query_category,\n 'unit' => $unit,\n 'selectedunit' => null\n ];\n $this->template->load('template', 'product/item/item_add', $data);\n }", "public function simpan_data_detail($data)\n\t{\n\t\t$this->db->insert('detail_pros', $data);\n\t}", "public function append($item)\n {\n array_push($this->activeValue, $item);\n }", "public function add() {\n $dataH['CustomerBankAccount'] = $_lib['sess']->get_companydef('BankAccount');\n $old_pattern = array(\"/[^0-9]/\");\n $new_pattern = array(\"\");\n $dataH['CustomerAccountPlanID'] = strtolower(preg_replace($old_pattern, $new_pattern , $_lib['sess']->get_companydef('OrgNumber')));\n }", "private function cObjDataAddArray( $keyValue )\n {\n foreach ( $keyValue as $key => $value )\n {\n if ( empty( $key ) )\n {\n continue;\n }\n\n $this->pObj->cObj->data[ $key ] = $value;\n\n if ( !( $this->pObj->b_drs_map || $this->pObj->b_drs_warn ) )\n {\n continue;\n }\n\n if ( $value === null )\n {\n if ( $this->pObj->b_drs_warn )\n {\n $prompt = $key . ' is null. Maybe this is an error!';\n t3lib_div :: devLog( '[WARN/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 2 );\n }\n }\n else\n {\n if ( $this->pObj->b_drs_map )\n {\n $prompt = 'Added to cObject[' . $key . ']: ' . $value;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n $prompt = 'You can use the content in TypoScript with: field = ' . $key;\n t3lib_div :: devLog( '[INFO/BROWSERMAPS] ' . $prompt, $this->pObj->extKey, 0 );\n }\n }\n }\n }", "public static function insert_new_product_details($data)\n {\n try{\n \n $session = Yii::$app->session;\n foreach($data as $key=>$val) \n {\n if($key == 'hire_price' || $key == 'sale_price'){\n if($val != '')\n {\n $val=str_replace(',', '', $val );\n if (strpos($val, '.') !== false) {\n $val=substr($val,0,strpos($val, '.')+3);\n }\n }\n else\n {\n $val = 0;\n }\n }\n if($key == 'life_tax_details')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n if($key == 'exact_location')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n $insertdata[$key] = $$key;\n\n }\n \n if($insertdata['hire_price_range'] == 'crore')\n {\n \n $insertdata['hire_price'] = $insertdata['hire_price'] * 10000000;\n }\n else if($insertdata['hire_price_range'] == 'lack')\n {\n $insertdata['hire_price'] = $insertdata['hire_price'] * 100000;\n }\n else if($insertdata['hire_price_range'] == 'thousand')\n {\n $insertdata['hire_price'] = $insertdata['hire_price'] * 1000;\n }\n else if($insertdata['hire_price_range'] == 'por')\n {\n $insertdata['hire_price'] = -1;\n }\n \n if($insertdata['sale_price_range'] == 'crore')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 10000000;\n }\n else if($insertdata['sale_price_range'] == 'lack')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 100000;\n }\n else if($insertdata['sale_price_range'] == 'thousand')\n {\n $insertdata['sale_price'] = $insertdata['sale_price'] * 1000;\n }\n else if($insertdata['sale_price_range'] == 'por')\n {\n $insertdata['sale_price'] = -1;\n }\n \n unset($insertdata['hire_price_range']);\n unset($insertdata['sale_price_range']);\n \n\n $capacity = $insertdata['capacity'];\n $insertdata['capacity'] = $insertdata['capacity'].' '.$insertdata['capacity_metric']; \n unset($insertdata['capacity_metric']);\n\n if(!isset($model_other)) $insertdata['model_other']=''; \n $insertdata['product_status'] = 0; //update this when control panel complete\n\n $remove_keys = ['email','user_name','phone_number','password','regrepassword','company_name','designation','company_email','address','otp'];\n foreach($remove_keys as $removekey) unset($insertdata[$removekey]);\n\n //save equipment current location to productloaction array\n $productlocation = array();\n $current_location_keys = ['latitude','longitude','city','state','country','google_place_id','location_type']; \n foreach($current_location_keys as $key)\n {\n if($key == 'location_type')\n {\n $location[$key] = 1;\n }\n else\n {\n $location[$key] = $insertdata[$key];\n unset($insertdata[$key]);\n }\n }\n $productlocation[] = $location;\n unset($insertdata['street']);\n unset($insertdata['route']);\n unset($insertdata['zipcode']);\n\n //save equipment serving location to productloaction array\n if(isset($insertdata['exact_location']))\n {\n $exact_locations = explode(',',$insertdata['exact_location']);\n foreach($exact_locations as $exact_location)\n {\n $get_url_data=file_get_contents(\"http://maps.google.com/maps/api/geocode/json?address=\".urlencode($exact_location).\"&sensor=false\");\n $url_data=(array)json_decode($get_url_data);\n $url_data=$url_data['results'];\n $components=array_reverse($url_data[0]->address_components);\n $country\t=@$components[0]->long_name;\n $state\t\t=@$components[1]->long_name;\n $city\t\t=@$components[2]->long_name;\n $place_id=$url_data[0]->place_id;\n $lat=$url_data[0]->geometry->location->lat;\n $lng=$url_data[0]->geometry->location->lng;\n $location['latitude'] = $lat;\n $location['longitude'] = $lng;\n $location['city'] = $city;\n $location['state'] = $state;\n $location['country'] = $country;\n $location['google_place_id'] = $place_id;\n $location['location_type'] = 2;\n $productlocation[] = $location;\n }\n }\n unset($insertdata['exact_location']);\n unset($insertdata['_csrf']);\n unset($insertdata['product_type_check']);\n \n if ($insertdata['length'] == \"\"){ \n $insertdata['length'] =0; \n } \n if ($insertdata['width'] == \"\"){\n $insertdata['width'] =0; \n } \n if ($insertdata['height'] == \"\"){ \n $insertdata['height'] =0; \n } \n $insertdata['dimensions'] = $insertdata['length'].'x'.$insertdata['width'].'x'.$insertdata['height']; \n unset($insertdata['length']); \n unset($insertdata['width']); \n unset($insertdata['height']);\n \n //update amount if package type is free\n if($data['package_type'] != 2) { $data['package_amount'] = 0; }\n \n\n\n //get current user id\n $insertdata['user_id']=Yii::$app->user->getId(); \n \n $insertdata['updated_by'] = Yii::$app->user->id;\n $insertdata['date_updated'] = date('Y-m-d H:i:s');\n \n //insert data into database core_prodcuts table and get inserted product id\n Yii::$app->db->createCommand()->insert('core_products', $insertdata)->execute();\n $product_id = Yii::$app->db->getLastInsertID();\n\n $session->set('current_product_id', $product_id);\n\n //generate unique code for product and update\n //new logic start\n $categories = array('1'=>'C','2'=>'D','3'=>'E','4'=>'G','5'=>'P');//C-crane,D-dumper,E-excavator,G-generator,P-piling rigs\n $manual_product_code = $categories[$insertdata['category_id']];\n \n $subcategorycode = Productsubcategory::get_sub_category_code_by_id($insertdata['sub_category_id']);\n $manual_product_code .= $subcategorycode;\n \n if(strlen($capacity)>4)\n $manual_product_code .= substr($capacity, 0,4);\n else if(strlen($capacity)<=4)\n $manual_product_code .= str_pad($capacity, 4, '0', STR_PAD_LEFT);\n \n $producttype = array('0'=>'H','1'=>'S','2'=>'B'); //H-hire,S-sale,B-both\n $manual_product_code .=$producttype[$insertdata['product_type']];\n \n $manual_product_code .= strtoupper(str_pad(dechex($product_id), 5, '0', STR_PAD_LEFT));\n \n \n //new logic end\n Yii::$app->db->createCommand()->update('core_products', ['manual_product_code' => $manual_product_code], \"product_id = '$product_id'\")->execute();\n\n\n //save product current and serving locations using product id \n foreach($productlocation as $location)\n {\n $location['product_id'] = $product_id;\n Yii::$app->db->createCommand()->insert('core_product_locations', $location)->execute();\n }\n\n //get category name by id to get full path of the images & load charts upload for product\n $category_id = $insertdata['category_id'];\n $category_names = Productcategory::select_fields_by_category_id($category_id);\n $category_name= str_replace(' ', '_', $category_names[0]['category_name']);\n\n //save product images\n if(is_array($session->get('product_images')))\n {\n $product_images = $session->get('product_images');\n $original_image_name=$session->get('product_images_names');\n foreach($product_images as $index=>$product_image)\n {\n $images_data['product_id'] = $product_id;\n $images_data['image_name'] = $original_image_name[$index];\n $images_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$product_image;\n $images_data['image_type'] = 1;\n $images_data['image_status'] = 1;\n \n //insert image details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $images_data)->execute();\n\n }\n $session->remove('product_images');\n $session->remove('product_images_names');\n }\n //save product load_charts\n if(is_array($session->get('product_loadcharts')))\n {\n $product_load_charts = $session->get('product_loadcharts');\n $original_load_chart_name=$session->get('product_loadcharts_names');\n foreach($product_load_charts as $index=>$load_chart)\n {\n $load_charts_data['product_id'] = $product_id;\n $load_charts_data['image_name'] = $original_load_chart_name[$index];\n $load_charts_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$load_chart;\n $load_charts_data['image_type'] = 2;\n $load_charts_data['image_status'] = 1;\n //insert load_charts details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $load_charts_data)->execute();\n }\n $session->remove('product_loadcharts');\n $session->remove('product_loadcharts_names');\n }\n\n $response ['status'] = 200;\n $response ['message'] = \"Product added successfully\";\n\n \n /*//get current user email\n $email = User::select_user_email_by_id();\n $subject=\"Big Equipments India | Registration Of Equipment\";\n //get what message to send after creating product\n $message = Mail_settings::get_product_add_message($manual_product_code,$product_id);\n \n //send email to current user\n Mail_settings::send_email_notification($email,$subject,$message);*/\n\n return json_encode($response);\n \n } catch (ErrorException $ex) {\n Yii::warning('Error while adding new product.');\n Yii::warning($ex->getMessage());\n }\n \n }", "public function simpan_sub_detail($data)\n\t{\n\t\t$this->db->insert('sub_detail_pros', $data);\n\t}", "private function addDetail()\n { \n $params = array();\n $params['db_link'] = $this->db;\n $params['ticket_id'] = $_REQUEST['ticket_id'];\n $Tickets = new Tickets($params);\n \n if($_REQUEST['changed_status'] != 0)\n {\n \n $Tickets->setStatus($_REQUEST['changed_status']);\n $Tickets->update();\n //save log \n $this->saveLog($_REQUEST['changed_status'], $_REQUEST['ticket_id'], null);\n }\n \n $data = array();\n $data['subject'] = stripslashes(trim($_REQUEST['subject']));\n $data['notes'] = stripslashes(trim($_REQUEST['notes']));\n $data['user_id'] = $_SESSION['LOGIN_USER']['userId'];\n \n //$Tickets = new Tickets($params);\n $details_id = $Tickets->addDetails($data);\n\n if($details_id)\n {\n $files = $this->getUploadedFiles();\n $this->saveAttachments($files, $_REQUEST['ticket_id'], $details_id);\n }\n \n //Send Email To resolvers, source, etc.\n $this->sendEmail($_REQUEST['ticket_id'], $data['subject']);\n \n \n \n echo '[{\"isError\":0, \"message\":\"Details added Successfully.\"}]';\n exit;\n }", "public function addNewStructureRow(){\n\t\t$map_id = $this->Generic_model->general_fetch_array_return_row('map_attributes_values', array('attribute_id'=>$this->input->post('newStructureAttr'), 'value'=>$this->input->post('newStructureValue')))->map_id;\n\t\t$onSale = '1';\n\t\tif($this->input->post('onSaleStruct') == ''){\n\t\t\t$onSale = '0';\n\t\t}\n\t\t$details = array(\n\t\t\t'pid' => $this->uri->segment(4),\n\t\t\t'map_id' => $map_id,\n\t\t\t'retail_price' => $this->input->post('price'),\n\t\t\t'retail_price_tax' => $this->input->post('priceTax'),\n\t\t\t'cost_price' => $this->input->post('costPrice'),\n\t\t\t'on_sale_status' => $onSale\n\t\t);\n\t\t$response = $this->Generic_model->general_insert('pricing_structure', $details);\n\t\tif($response){\n\t\t\t$this->session->set_flashdata('success', 'Product Updated successfully with new pricing structure.');\n\t\t}else{\n\t\t\t$this->session->set_flashdata('failure', 'Oops!! Something went wrong. Try again...');\n\t\t}\n\t\tredirect('admin/product/editProduct/'.$this->uri->segment(4));\n\t}", "function AfterAdd(&$values,&$keys,$inline,&$pageObject)\n{\n\n\t\tglobal $conn;\n$proid= $keys['proid'];\n$bill_date=$values['bill_date'];\n$amount_bill=$values['amount'];\n$bill_no=$values['bill_no'];\n$item=$values['item'];\n$ProgramID = $values['ProgramID'];\n$BatchID = $values['BatchID'];\n\n//get related student according to intake , branch, and program\n$sql_student = \"select StudentID from student_info where DipID='$ProgramID' AND BatchID='$BatchID' AND Status='Active'\";\n$q_student = db_query($sql_student,$conn);\n\n//insert all program billing item to related student program bill\nwhile($row_student=db_fetch_array($q_student))\n{ \n$studentID=$row_student['StudentID'];\n$sql_insert=\"INSERT INTO student_billing (proid,date,amount,amount_balance,bill_no,item,studentID,status)\nVALUES ('$proid','$bill_date','$amount_bill','$amount_bill','$bill_no','$item','$studentID','Pending')\";\ndb_exec($sql_insert,$conn);\t\n}\n\n\n;\t\t\n}", "public function addToAdditionalDetail(\\Sabre\\UpdateReservation\\StructType\\AdditionalDetailType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\Sabre\\UpdateReservation\\StructType\\AdditionalDetailType) {\n throw new \\InvalidArgumentException(sprintf('The AdditionalDetail property can only contain items of \\Sabre\\UpdateReservation\\StructType\\AdditionalDetailType, \"%s\" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);\n }\n $this->AdditionalDetail[] = $item;\n return $this;\n }", "function add_billing_data($billObj) {\n\n $item = new stdClass();\n $item->trans_id = $billObj->transId;\n $item->cardholder = $billObj->billTo->firstName . ' ' . $billObj->billTo->lastName;\n $item->type = 'a';\n $item->address = $billObj->billTo->address;\n $item->state = $billObj->billTo->state;\n $item->city = $billObj->billTo->city;\n $item->zip = $billObj->billTo->zip;\n $item->pdate = time();\n\n $exists = $this->is_billing_data_exists($item->trans_id);\n if ($exists == 0) {\n $query = \"insert into mdl_billing_data \"\n . \"(transaction_id,\"\n . \"cardholder,\"\n . \"type,\"\n . \"address,\"\n . \"state,\"\n . \"city,\"\n . \"zip,\"\n . \"pdate) \"\n . \"values ('$item->trans_id',\"\n . \"'\" . addslashes($item->cardholder) . \"',\"\n . \"'$item->type',\"\n . \"'\" . addslashes($item->address) . \"',\"\n . \"'$item->state',\"\n . \"'\" . addslashes($item->city) . \"',\"\n . \"'$item->zip',\"\n . \"'$item->pdate')\";\n $this->db->query($query);\n } // end if $exists == 0\n }", "private function addDetailsInRows()\n\t{\n\t\tforeach ($this->data_show as &$row)\n\t\t\tforeach ($this->data as $row_original)\n\t\t\t{\n\t\t\t\t$is_group = true;\n\t\t\t\t\n\t\t\t\tforeach ($this->col_group as $key)\n\t\t\t\t\tif($row[$key] != $row_original[$key])\n\t\t\t\t\t\t$is_group = false;\n\t\t\t\t\n\t\t\t\tif($is_group)\n\t\t\t\t{\n\t\t\t\t\t// total amount\n\t\t\t\t\tif($this->col_aggr_sum)\n\t\t\t\t\t\t$row[$this->col_aggr_sum] += $row_original[$this->col_aggr_sum];\n\t\t\t\t\t\n\t\t\t\t\t// add details\n\t\t\t\t\t$row_tmp = array();\n\t\t\t\t\t\n\t\t\t\t\tforeach ($this->data[0] as $col => $val)\n\t\t\t\t\t\tif(!in_array($col, $this->col_show) || $col == $this->col_aggr_sum)\n\t\t\t\t\t\t\t$row_tmp[$col] = $row_original[$col];\n\t\t\t\t\t\n\t\t\t\t\t$row['details'][] = $row_tmp;\n\t\t\t\t}\n\t\t\t}\n\t}", "protected function addItemDetails(&$item) \r\n\t{\r\n\t\t//$item->totals = KTBTrackerHelper::getUserTotals($item);\r\n\t\t$this->getUserInfo($item);\r\n\t}", "public function add_deal($data_arr,&$validation_passed,&$new_transaction_id,&$err_arr){\n\t\tdie(\"NO LONGER USED\");\n \n }", "function OnAfterAdd(){\n //get keyfield value\n if (intval($this->item_id) == 0)\n $data = $this->Storage->GetRecord(null, array(\n $this->key_field => \"\"));\n $this->item_id = $data[$this->key_field];\n }", "function updateCompanyIdOrContactIdToListElem(&$arFields){\n\n if($arFields['IBLOCK_ID'] == 125 /*&& $arFields['PROPERTY_VALUES']['592']['n0']['VALUE'] == ''*/){\n $arFields['PROPERTY_VALUES']['592']['n0']['VALUE'];\n //file_put_contents($file, $arFields['PROPERTY_VALUES']['593']['n0']['VALUE'], FILE_APPEND | LOCK_EX);\n\n foreach ($arFields['PROPERTY_VALUES']['593'] as $number => $dealId){\n $ID = $dealId['VALUE'];\n $key = $number;\n }\n\n //Берем данные сделки по id\n //$dealData = CCrmDeal::GetByID($arFields['PROPERTY_VALUES']['593']['43585']['VALUE']);\n $dealData = CCrmDeal::GetByID($ID);\n if($dealData['COMPANY_ID'] != '') {\n $arFields['PROPERTY_VALUES']['592'][$key]['VALUE'] = 'CO_'.$dealData['COMPANY_ID'];\n }\n if($dealData['COMPANY_ID'] == 0 && $dealData['CONTACT_ID'] != '') {\n $arFields['PROPERTY_VALUES']['592'][$key]['VALUE'] = 'C_'.$dealData['CONTACT_ID'];\n }\n\n /* $file = $_SERVER['DOCUMENT_ROOT'].'/local/testLogger3.log';\n file_put_contents($file, print_r($arFields,true), FILE_APPEND | LOCK_EX);*/\n\n return true;\n\n }\n\n}", "public function pushDetailsItem($fields)\n {\n $defaults = array(\n 'id' => '',\n 'name' => ''\n );\n $this->data['ecommerce']['detail']['products'][] = $this->getDefaults($fields, $defaults);\n }", "public function prepareDetailTransactionData() \n {\n $header = array_flip(array_shift($this->data));\n $headerKeys = array_keys($header);\n $count = 0;\n foreach ($this->data as $data) {\n foreach ($data as $key => $value) {\n $value = trim($value);\n if (in_array($headerKeys[$key], $this->ignoredHeaders)) continue;\n if (empty($headerKeys[$key])) continue;\n\n $parent = strstr($headerKeys[$key], '-', true);\n $child = preg_replace('/-/', '', strstr($headerKeys[$key], '-'), 1);\n \n if ($parent == \"Transaction\") { \n $this->elementData[$count][$child] = $value;\n } else {\n $this->elementData[$count][$parent][$child] = $value;\n }\n }\n\n $this->checkRequiredFields($count, $this->elementData[$count]);\n $count++;\n }\n\n $this->checkRefDuplication();\n return $count;\n }", "public function addDatas(\\RO\\Cmd\\ItemData $value){\n return $this->_add(5, $value);\n }", "function Add($name, $value)\r\n\t{\r\n\t\tif (is_array($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data[$name] = $value;\t\r\n\t\t}\t\r\n\t\telse if (is_object($this->Data))\r\n\t\t{\r\n\t\t\t$this->Data->$name = $value;\t\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttrigger_error(\"A DataRow of base type, cannot have fields added.\",E_USER_ERROR);\t\r\n\t\t}\r\n\t\t\r\n\t}", "function add() {\r\n\r\n\r\n $item_data = array(\r\n \"master_warehouse_id\" => $this->input->post('master_warehouse_id'),\r\n \"master_items_id\" => $this->input->post('master_items_id'),\r\n \"stock_on_hand\" => $this->input->post('stock_on_hand'),\r\n \"date_adjusment\" => $this->input->post('date_adjusment'),\r\n \"description\" => $this->input->post('description'),\r\n \"created_by\" => $this->session->userdata('user_name'),\r\n \"created_at\" => get_current_utc_time(),\r\n \"updated_by\" => $this->session->userdata('user_name'),\r\n \"updated_at\" => get_current_utc_time(),\r\n \"deleted\" =>0\r\n );\r\n\r\n $data = $this->Master_Stock_model->save($item_data);\r\n if ($data) {\r\n $item_info = $this->Master_Stock_model->get_details()->row();\r\n echo json_encode(array(\"success\" => true, \"id\" => $item_info->id, \"data\" => $this->_make_item_row($item_info), 'message' => lang('record_saved')));\r\n } else {\r\n echo json_encode(array(\"success\" => false, 'message' => lang('error_occurred')));\r\n }\r\n }", "public function add() {\t\n CheckAdminLoginSession();\t\t\n\t\t$post_data = $this->input->post();\n\t\t\n\t\tif(!empty($post_data)) { \n\t\t\t$this->form_validation->set_error_delimiters('<span class=\"text-danger\">', '</span>');\n\t\t\t$this->form_validation->set_rules('name', ' Name', 'required|trim');\t\t\t\t\n\t\t\tif($this->form_validation->run() == FALSE) { } else {\n\t\tforeach ($this->input->post('company_id') as $key => $company_id) {\n\t\t\tforeach ($company_id as $insurance_type_id) {\n\t\t\t\t$data = array(\t\t\t\t\t\t\t\n\t\t\t\t'name' => $this->input->post('name'),\t\t\t\t\n\t\t\t\t'company_id' => $key,\t\t\t\t\n\t\t\t\t'insurance_type_id' => $insurance_type_id,\t\t\t\t\n\t\t\t\t'created_date' => date('Y-m-d H:i:s'),\n\t\t\t\t'modified_date' => date('Y-m-d H:i:s'),\n\t\t\t\t'status' => $this->input->post('status')\t \n\t\t\t\t); \n\t\t\t\t$id = $this->admin_model->setInsertData($this->optional_warranty,$data);\n\t\t\t}\n\t\t}\n\t\t\t\t$this->session->set_flashdata('message','Your Optional Warranty has been added successfully');\n\t\t redirect('admin/optional-warranty/lists','refresh');\n\t\t }\n }\n $data='';\n $data['companyProvidingInsurance'] = $this->admin_model->getCompanyProvidingInsurance($this->company_insurance);\n\t\t$this->load->view('admin/include/head');\n\t\t$this->load->view('admin/include/header');\n\t\t$this->load->view('admin/include/sidebar');\n\t\t$this->load->view('admin/optional_warranty/add',$data);\n\t\t$this->load->view('admin/include/footer');\n\t\t$this->load->view('admin/include/foot');\n\t}", "function addItem2DB($data = null)\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->coupon_model->add($result);\n }\n }", "public function pushDetailsList($list)\n {\n $this->data['ecommerce']['detail']['actionField']['list'] = $list;\n }", "function AddUpdateOptionBOMItem($BID, $opId, $arryDetails,$index) {//$option_ID,//\r\n global $Config;\r\n extract($arryDetails);\r\n //print_r($arryDetails);//die;\r\n \r\n if ($opId == '') {\r\n $strUpSQLQuery = \"update inv_bill_of_material set \r\n\t\t\t\ttotal_cost='\" . $TotalValue . \"',\r\n\t\t\t\tUpdatedDate = '\" . $Config['TodayDate'] . \"'\r\n\t\t\t\twhere bomID='\" . $BID.\"'\";\r\n //echo $strUpSQLQuery ;die;\r\n\r\n $this->query($strUpSQLQuery, 0);\r\n }\r\n \r\n \r\n for ($j = 1; $j<=$arryDetails['newNumberLine'.$index.'']; $j++) {\r\n \r\n if (!empty($arryDetails[\"newsku$index-$j\"])) {\r\n \r\n $id = $arryDetails[\"newid$index-$j\"];\r\n //print_r($id);\r\n if ($id > 0) {\r\n $sql = \"update inv_item_bom set orderby = '\".$arryDetails[\"orderby$index-$j\"].\"', item_id='\" . $arryDetails[\"newitem_id$index-$j\"] . \"', sku='\" . addslashes($arryDetails[\"newsku$index-$j\"]) . \"',`Primary`='\" .$arryDetails[\"Primary$index-$j\"] . \"', description='\" . addslashes($arryDetails[\"newdescription$index-$j\"]) . \"', wastageQty='\" . addslashes($arryDetails[\"newWastageqty$index-$j\"]) . \"', bom_qty='\" . addslashes($arryDetails[\"newqty$index-$j\"]) . \"', unit_cost='\" . addslashes($arryDetails[\"newprice$index-$j\"]) . \"', total_bom_cost='\" . addslashes($arryDetails[\"newamount$index-$j\"]) . \"',`Condition`='\" . addslashes($arryDetails[\"newCondition$index-$j\"]) . \"',req_item='\" . addslashes($arryDetails[\"newreq_item$index-$j\"]) . \"' where id='\" . $id.\"'\"; \r\n $this->query($sql, 0);\r\n } \r\n else {\r\n $sql = \"insert into inv_item_bom (bomID,optionID, item_id, sku, description, wastageQty, bom_qty, unit_cost, total_bom_cost,`Condition`,req_item,orderby,`Primary`) values('\" . $BID . \"','\" . $opId . \"','\" . $arryDetails[\"newitem_id$index-$j\"] . \"', '\" . addslashes($arryDetails[\"newsku$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newdescription$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newWastageqty$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newqty$index-$j\"]) . \"', '\" . addslashes($arryDetails[\"newrice$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newamount$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newCondition$index-$j\"]) . \"','\" . addslashes($arryDetails[\"newreq_item$index-$j\"] ). \"', orderby = '\".$arryDetails[\"orderby$index-$j\"].\"','\" . addslashes($arryDetails[\"Primary$index-$j\"]) . \"')\";\r\n $this->query($sql, 0);\r\n \r\n }\r\n \r\n }\r\n \r\n \r\n }\r\n //die;\r\n return true;\r\n }", "final public function addItemGroupTechInCharge() {\n if (!empty($this->target_object)) {\n foreach ($this->target_object as $val) {\n if ($val->fields['groups_id_tech'] > 0) {\n $this->addForGroup(0, $val->fields['groups_id_tech']);\n }\n }\n }\n }", "protected function saveInfoValues() {\r\n\t\tif(is_a($this->infoValueCollection, 'tx_ptgsaconfmgm_infoValueCollection')) {\r\n\t\t\t\r\n\t\t\tif($this->tableName=='tx_ptconference_domain_model_persdata') {\r\n\t\t\t\t$persArticleUid = $this->rowUid;\r\n\t\t\t\t$relArticleUid = 0;\r\n\t\t\t} else {\r\n\t\t\t\t$persArticleUid = $this->get_persdata();\r\n\t\t\t\t$relArticleUid = $this->rowUid;\r\n\t\t\t}\t\t\t\r\n\t\t\t\r\n\t\t\tforeach($this->infoValueCollection as $infoValue) {\r\n\t\t\t\t$infoValue->set_persdata($persArticleUid);\r\n\t\t\t\t$infoValue->set_relarticle($relArticleUid);\r\n\t\t\t\t$infoValue->save();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public function addDetail(Detail $detail) {\n $this->details[] = $detail->toArray();\n\n return $this;\n }", "function add_additional_field($details) {\r\n\t\t$sql = \"INSERT INTO sys_man_additional_fields (field_name, field_type, field_placement, group_id) VALUES (?, ?, ?, ?)\";\r\n\t\t$data=array(\"$details->field_name\", \"$details->field_type\", \"$details->field_placement\", \"$details->group_id\");\r\n\t\t$query = $this->db->query($sql, $data);\r\n\t\treturn;\r\n\t}", "public function add($data){\r\n \t$db = $this->getAdapter();\r\n \t$db->beginTransaction();\r\n\t\t$user_info = new Application_Model_DbTable_DbGetUserInfo();\r\n\t\t$result = $user_info->getUserInfo();\r\n\t\t$session_user=new Zend_Session_Namespace(SYSTEM_SES);\r\n\t\t$request=Zend_Controller_Front::getInstance()->getRequest();\r\n\t\t $level = $result[\"level\"];\r\n \ttry {\r\n \t\t$arr = array(\r\n \t\t\t'item_name'\t\t=>\t$data[\"name\"],\r\n \t\t\t'item_code'\t\t=>\t$data[\"pro_code\"],\r\n// \t\t\t'barcode'\t\t=>\t$data[\"barcode\"],\r\n \t\t\t'cate_id'\t\t=>\t$data[\"category_id\"],\r\n \t\t\t'product_type'\t=>\t$data[\"product_type\"],\r\n \t\t\t'cost_price'=>$data[\"cost_price\"],\r\n \t\t\t'selling_price'=>$data[\"selling_price\"],\r\n \t\t\t'user_id'\t\t=>\t$this->getUserId(),\r\n \t\t\t'note'\t\t\t=>\t$data[\"description\"],\r\n \t\t\t'create_date'\t\t=>\tdate(\"Y-m-d\"),\r\n \t\t\t\t\r\n \t\t);\r\n \t\t$this->_name=\"ln_ins_product\";\r\n \t\t$id = $this->insert($arr);\r\n\t\t\t\r\n \t\tif(!empty($data['identity'])){\r\n \t\t\t$identitys = explode(',',$data['identity']);\r\n \t\t\tforeach($identitys as $i)\r\n \t\t\t{\r\n \t\t\t\t$arr1 = array(\r\n \t\t\t\t\t'pro_id'\t\t\t=>\t$id,\r\n \t\t\t\t\t'location_id'\t\t=>\t$data[\"branch_id\".$i],\r\n \t\t\t\t\t'qty'\t\t\t\t=>\t$data[\"total_qty_\".$i],\r\n \t\t\t\t\t'qty_warning'\t\t=>\t$data[\"alert_qty\".$i],\r\n \t\t\t\t\t'last_mod_userid'\t=>\t$this->getUserId(),\r\n \t\t\t\t\t'last_mod_date'\t\t=>\tnew Zend_Date(),\r\n \t\t\t\t\t'last_mod_userid' => $this->getUserId(),\r\n \t\t\t\t);\r\n \t\t\t\t$this->_name = \"ln_ins_prolocation\";\r\n \t\t\t\t$this->insert($arr1);\r\n \t\t\t }\r\n \t\t }\r\n \t\t$db->commit();\r\n \t}catch (Exception $e){\r\n \t\t$db->rollBack();\r\n \t\tApplication_Model_DbTable_DbUserLog::writeMessageError($e->getMessage());\r\n \t}\r\n }", "function add($data){\n if(array_key_exists($data['id'], $this->fields)){\n exit(\"Field with ID: '\".$data['id'].\"' already exists.\");\n }\n if(!isset($data['validate'])){\n $data['validate'] = false;\n }\n if(!isset($data['inline'])){\n $data['inline'] = null;\n }\n if(!isset($data['value'])){\n $data['value'] = null;\n }\n if(!isset($data['readonly'])){\n $data['readonly'] = false;\n }\n\n $this->fields[$data['id']] = $data;\n }", "public function storeDetail(array $data): void\n {\n }", "public function addAdditionalInfos(\\AgentSIB\\Diadoc\\Api\\Proto\\Invoicing\\AdditionalInfo $value)\n {\n if ($this->AdditionalInfos === null) {\n $this->AdditionalInfos = new \\Protobuf\\MessageCollection();\n }\n\n $this->AdditionalInfos->add($value);\n }", "public function free_add()\n\t\t{\n\t\t\t// $data['master_libur'] = $this->general->getData($data);\n\t\t\t// echo $data->judul;\n\t\t\t$this->general->load('absent/free/add');\n\t\t}", "public function appendEquipmentingItem($value)\n {\n return $this->append(self::EQUIPMENTING_ITEM, $value);\n }", "public function AddData ($key, $value) {\n\t\t$this->data[$key] = $value;\t\t\t\t\n\t}", "public function append($table, $item) {\r\n saprfc_table_append($this->fce, $table, array(\"LINE\" => \"\" . $item . \"\"));\r\n $this->arrayDebug['APPEND'][$table][] = $item;\r\n }", "function update_product_details($data,$iCatalogueId)\n {\n $this->db->where('iCatelogueId',$iCatalogueId);\n $query = $this->db->update('r_app_catalogue_details',$data);\n return $query;\n }", "protected function _setValueDetailDb($arr)\n\t{\n\t\tglobal $classEscape;\n\t\tglobal $varsRequest;\n\n\t\t$strDirect = 'inDirect';\n\t\tif ($arr['flagDirect']) {\n\t\t\t$strDirect = 'direct';\n\t\t}\n\n\t\t$strFlagDirect = 'varsInDirect';\n\t\tif ($arr['flagDirect']) {\n\t\t\t$strFlagDirect = 'varsDirect';\n\t\t}\n\n\t\t$idTarget = $arr['arrValue']['arr']['idAccountTitle'];\n\t\tif ($varsRequest['query']['func'] == 'DetailAdd'\n\t\t\t|| ($varsRequest['query']['func'] == 'DetailEdit' && !$arr['flagDefault'])\n\t\t) {\n\t\t\t$idTarget = 'custom_' . $arr['flagFS'] . '_' . $strDirect . '_' . $arr['arrValue']['arr']['idAccountTitle'];\n\t\t}\n\n\t\t$arrayBlock = $this->_getTreeBlock(array(\n\t\t\t'vars' => $arr['varsItem']['varsFS']['jsonJgaapFS' . $arr['flagFS']][$strFlagDirect],\n\t\t\t'idTarget' => $arr['idTarget'],\n\t\t));\n\n\t\t$arrayCheck = array();\n\t\tforeach ($arrayBlock as $key => $value) {\n\t\t\t$arrayCheck[$value['vars']['idTarget']] = $value;\n\t\t}\n\n\t\t$arrayIdAccountTitle = $classEscape->splitCommaArrayData(array('data' => $arr['arrValue']['arr']['arrCommaIdAccountTitle']));\n\t\tif ($arrayBlock[0]['vars']['idTarget'] == 'currentTermProfitOrLossPre') {\r\n\t\t\tarray_unshift($arrayIdAccountTitle, 'currentTermProfitOrLossPre');;\n\t\t}\n\n\t\t$array = $arrayIdAccountTitle;\n\t\t$arrayNew = array();\n\t\t$tmplVars = $arr['varsItem']['varsFSItem']['varsAccountTitleFSCS'];\n\t\tforeach ($array as $key => $value) {\n\t\t\tif ($varsRequest['query']['func'] == 'DetailAdd') {\n\t\t\t\tif ($value == 'insertPoint') {\n\t\t\t\t\t$tmplVars['strTitle'] = $arr['arrValue']['arr']['strTitle'];\n\t\t\t\t\t$tmplVars['vars'] = array(\n\t\t\t\t\t\t'idTarget' => $idTarget,\n\t\t\t\t\t\t'flagUse' => (int) $arr['arrValue']['arr']['flagUse'],\n\t\t\t\t\t\t'flagSortUse' => 1,\n\t\t\t\t\t\t'varsValue' => array(),\n\t\t\t\t\t);\n\t\t\t\t\t$arrayNew[] = $tmplVars;\n\n\t\t\t\t} else {\n\t\t\t\t\t$arrayNew[] = $arrayCheck[$value];\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ($value == $arr['idTarget']) {\n\t\t\t\t\t$arrayCheck[$value]['strTitle'] = $arr['arrValue']['arr']['strTitle'];\n\t\t\t\t\t$arrayCheck[$value]['vars'] = array(\n\t\t\t\t\t\t'idTarget' => $idTarget,\n\t\t\t\t\t\t'flagUse' => (int) $arr['arrValue']['arr']['flagUse'],\n\t\t\t\t\t\t'flagSortUse' => 1,\n\t\t\t\t\t\t'varsValue' => array(),\n\t\t\t\t\t);\n\t\t\t\t\t$arrayNew[] = $arrayCheck[$value];\n\n\t\t\t\t} else {\n\t\t\t\t\t$arrayNew[] = $arrayCheck[$value];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$varsFS = $this->_insertTreeBlock(array(\n\t\t\t'vars' => $arr['varsItem']['varsFS']['jsonJgaapFS'. $arr['flagFS']][$strFlagDirect],\n\t\t\t'idTarget' => $arr['idTarget'],\n\t\t\t'varsTarget' => $arrayNew,\n\t\t));\n\n\t\t$arr['varsItem']['varsFS']['jsonJgaapFS'. $arr['flagFS']][$strFlagDirect] = $varsFS;\n\n\t\treturn $arr['varsItem']['varsFS']['jsonJgaapFS'. $arr['flagFS']];\n\t}", "public static function addAccountdetail($data) {\n\t\tif (!is_array($data)) return false;\n\t\t$data['create_time'] = Common::getTime();\n $data['update_time'] = Common::getTime();\n\t\t$data = self::_cookData($data);\n return $ret = self::_getDao()->insert($data);\n\t}", "function addItemForUpdate($item) {\n $this->_update[$item->getId()] = $item;\n }", "public static function update_product_details($data)\n {\n try{\n \n $session = Yii::$app->session;\n foreach($data as $key=>$val) \n {\n \n if($key == 'life_tax_details')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n if($key == 'exact_location')\n {\n if(sizeof($val)>0){\n\n $val=implode(\",\",$val);\n }\n }\n $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n $insertdata[$key] = $$key;\n\n }\n\n $capacity = $insertdata['capacity'];\n $insertdata['capacity'] = $insertdata['capacity'].' '.$insertdata['capacity_metric']; \n unset($insertdata['capacity_metric']);\n\n if(!isset($model_other)) $insertdata['model_other']=''; \n \n \n //save equipment current location to productloaction array\n $productlocation = array();\n $current_location_keys = ['latitude','longitude','city','state','country','google_place_id','location_type']; \n foreach($current_location_keys as $key)\n {\n if($key == 'location_type')\n {\n $location[$key] = 1;\n }\n else\n {\n $location[$key] = $insertdata[$key];\n unset($insertdata[$key]);\n }\n }\n $productlocation[] = $location;\n unset($insertdata['street']);\n unset($insertdata['route']);\n unset($insertdata['zipcode']);\n\n //save equipment serving location to productloaction array\n if(isset($insertdata['exact_location']))\n {\n $exact_locations = explode(',',$insertdata['exact_location']);\n foreach($exact_locations as $exact_location)\n {\n $get_url_data=file_get_contents(\"http://maps.google.com/maps/api/geocode/json?address=\".urlencode($exact_location).\"&sensor=false\");\n $url_data=(array)json_decode($get_url_data);\n $url_data=$url_data['results'];\n $components=array_reverse($url_data[0]->address_components);\n $country\t=@$components[0]->long_name;\n $state\t\t=@$components[1]->long_name;\n $city\t\t=@$components[2]->long_name;\n $place_id=$url_data[0]->place_id;\n $lat=$url_data[0]->geometry->location->lat;\n $lng=$url_data[0]->geometry->location->lng;\n $location['latitude'] = $lat;\n $location['longitude'] = $lng;\n $location['city'] = $city;\n $location['state'] = $state;\n $location['country'] = $country;\n $location['google_place_id'] = $place_id;\n $location['location_type'] = 2;\n $productlocation[] = $location;\n }\n }\n unset($insertdata['exact_location']);\n unset($insertdata['_csrf']);\n //unset($insertdata['product_type_check']);\n \n $product_id = $insertdata['product_id'];\n unset($insertdata['product_id']); \n\n\n //get current user id\n //$insertdata['user_id']=Yii::$app->user->getId(); \n $insertdata['updated_by'] = Yii::$app->user->id;\n $insertdata['date_updated'] = date('Y-m-d H:i:s');\n \n //insert data into database core_prodcuts table and get inserted product id\n Yii::$app->db->createCommand()->update('core_products', $insertdata,\"product_id = $product_id\")->execute();\n \n \n Yii::$app->db->createCommand()->delete('core_product_locations', \"product_id = $product_id\")->execute();\n \n //save product current and serving locations using product id \n foreach($productlocation as $location)\n {\n $location['product_id'] = $product_id;\n Yii::$app->db->createCommand()->insert('core_product_locations', $location)->execute();\n }\n\n //get category name by id to get full path of the images & load charts upload for product\n $category_id = $insertdata['category_id'];\n $category_names = Productcategory::select_fields_by_category_id($category_id);\n $category_name= str_replace(' ', '_', $category_names[0]['category_name']);\n\n //save product images\n if(is_array($session->get('product_images')))\n {\n $product_images = $session->get('product_images');\n $original_image_name=$session->get('product_images_names');\n foreach($product_images as $index=>$product_image)\n {\n $images_data['product_id'] = $product_id;\n $images_data['image_name'] = $original_image_name[$index];\n $images_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$product_image;\n $images_data['image_type'] = 1;\n $images_data['image_status'] = 1;\n \n //insert image details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $images_data)->execute();\n\n }\n $session->remove('product_images');\n $session->remove('product_images_names');\n }\n //save product load_charts\n if(is_array($session->get('product_loadcharts')))\n {\n $product_load_charts = $session->get('product_loadcharts');\n $original_load_chart_name=$session->get('product_loadcharts_names');\n foreach($product_load_charts as $index=>$load_chart)\n {\n $load_charts_data['product_id'] = $product_id;\n $load_charts_data['image_name'] = $original_load_chart_name[$index];\n $load_charts_data['image_url'] = Yii::$app->params['SITE_URL'].'uploads/'.date('Y').'/'.$category_name.'/'.$load_chart;\n $load_charts_data['image_type'] = 2;\n $load_charts_data['image_status'] = 1;\n //insert load_charts details to database table.\n Yii::$app->db->createCommand()->insert('core_product_images', $load_charts_data)->execute();\n }\n $session->remove('product_loadcharts');\n $session->remove('product_loadcharts_names');\n }\n\n $response ['status'] = 200;\n $response ['message'] = \"Product updated successfully\";\n\n \n /*//get current user email\n $email = User::select_user_email_by_id();\n $subject=\"Big Equipments India | Registration Of Equipment\";\n //get what message to send after creating product\n $message = Mail_settings::get_product_add_message($manual_product_code,$product_id);\n \n //send email to current user\n Mail_settings::send_email_notification($email,$subject,$message);*/\n\n return $response;\n \n } catch (ErrorException $ex) {\n Yii::warning('Error while updating new product.');\n Yii::warning($ex->getMessage());\n \n $response ['status'] = 400;\n $response ['message'] = \"Error while updating product details\";\n return $response;\n }\n \n }", "public function addItem(Array $item)\n {\n $this->item[] = $item;\n }", "function addKeysell($sell_details){\n\t if ($this->db->insert('vc_keysell',$sell_details))\n\t\t\t { \n\t\t\t return TRUE;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t return FALSE;\n\t\t\t }\n }", "private function append($value)\n {\n \t$this->values[] = $value;\n }", "public static function validateCompensation_Detail_DataForArrayConstraintsFromSetCompensation_Detail_Data(array $values = array())\n {\n $message = '';\n $invalidValues = [];\n foreach ($values as $employee_DataTypeCompensation_Detail_DataItem) {\n // validation for constraint: itemType\n if (!$employee_DataTypeCompensation_Detail_DataItem instanceof \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType) {\n $invalidValues[] = is_object($employee_DataTypeCompensation_Detail_DataItem) ? get_class($employee_DataTypeCompensation_Detail_DataItem) : sprintf('%s(%s)', gettype($employee_DataTypeCompensation_Detail_DataItem), var_export($employee_DataTypeCompensation_Detail_DataItem, true));\n }\n }\n if (!empty($invalidValues)) {\n $message = sprintf('The Compensation_Detail_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Compensation_Detail_DataType, %s given', is_object($invalidValues) ? get_class($invalidValues) : (is_array($invalidValues) ? implode(', ', $invalidValues) : gettype($invalidValues)));\n }\n unset($invalidValues);\n return $message;\n }", "public function addData($dataRow, $productId)\n {\n $customData = &$dataRow['amasty_custom_data'];\n\n if (isset($this->effectiveDates[$productId])) {\n $customData[Product::PREFIX_OTHER_ATTRIBUTES] = [\n self::SALE_PRICE_EFFECITVEDATE_INDEX => $this->effectiveDates[$productId]\n ];\n } else {\n $customData[Product::PREFIX_OTHER_ATTRIBUTES] = [\n self::SALE_PRICE_EFFECITVEDATE_INDEX => \"\"\n ];\n }\n\n return $dataRow;\n }", "private function addDetailRecord(TransactionInterface $transaction)\n {\n // Record Type\n $line = self::DETAIL_TYPE;\n\n // BSB\n $line .= $transaction->getBsb();\n\n // Account Number\n $line .= str_pad($transaction->getAccountNumber(), 9, ' ', STR_PAD_LEFT);\n\n // Indicator\n $line .= $transaction->getIndicator() ?: ' ';\n\n // Transaction Code\n $line .= $transaction->getTransactionCode();\n\n // Transaction Amount\n $line .= str_pad($transaction->getAmount(), 10, '0', STR_PAD_LEFT);\n\n // Account Name\n $line .= str_pad($transaction->getAccountName(), 32, ' ', STR_PAD_RIGHT);\n\n // Lodgement Reference\n $line .= str_pad($transaction->getReference(), 18, ' ', STR_PAD_RIGHT);\n\n // Trace BSB - already validated\n $line .= $this->bsb;\n\n // Trace Account Number - already validated\n $line .= str_pad($this->accountNumber, 9, ' ', STR_PAD_LEFT);\n\n // Remitter Name - already validated\n $remitter = $transaction->getRemitter() ?: $this->remitter;\n $line .= str_pad($remitter, 16, ' ', STR_PAD_RIGHT);\n\n // Withholding amount\n $line .= str_pad($transaction->getTaxWithholding(), 8, '0', STR_PAD_LEFT);\n\n $this->addLine($line);\n }", "private function write_single($data){\r\n if($this->$data[0] !== NULL){\r\n //add row of data to transaction object\r\n $this->$data[0]->add_list($data);\r\n }else{\r\n $this->$data[0] = new transaction_object($data[0]);\r\n $this->$data[0]->add_header($this->default_headers[$data[0]]);\r\n $this->$data[0]->add_list($data);\r\n }\r\n }", "function add( $obj )\r\n\t{\r\n\t\tif ( $this->signUseID == true) {\r\n\t\t\t$pos = $obj->primary_key_value();\r\n\t\t\t$this->data[ $pos ] = $obj;\r\n\t\t}\r\n\t\telse {\r\n\t\t\t$this->data[] = $obj;\r\n\t\t}\r\n\t}", "private function _addToFilteredItem( $addon, array $subData, &$filteredItem ){\n foreach ($subData as $key => $value) {\n if( is_array($value) ){\n $fieldPrefix = ($this->_iniData[$key]['db_table_prefix']) ? $this->_iniData[$key]['db_table_prefix'] : \"\";\n $this->_addToFilteredItem( $fieldPrefix, $value, $filteredItem );\n }\n if ( !is_numeric($key) && in_array($key,$this->_fieldsToUse,true)) {\n $filteredItem[$addon . $key] = $value;\n }\n }\n }", "public function addItem(My_ShoppingCart_Item_Interface $item)\n {\n $this->_order->Orderdetail[] = $item;\n }", "public function addSinglePurchaseDetails()\n\t{\n\t\t$singleProduct = [];\n\t\tforeach($this->orderParameters as $orders){\n\t\t\t$found = 0;\n\t\t\tforeach($this->aggregateProduct as $product){\n\t\t\t\tif($product[\"title\"] == $orders[\"title\"])\n\t\t\t\t\t$found++;\n\t\t\t}\n\t\t\t\n\t\t\tif($found == 0)\n\t\t\t $singleProduct[] = $orders;//add to single\n\t\t}\n\t\t\n\t\t$this->addPurchaseDetails($singleProduct);\n\t}", "function add($record)\n {\n $data = get_object_vars($record);\n $this->rest->initialize(array('server' => REST_SERVER));\n $this->rest->option(CURLOPT_PORT, REST_PORT);\n $retrieved = $this->rest->post('recipe/maintenance/item/id/' . $record->menu_id.'-'.$record->inventory_id, $data);\n }", "public function addData()\r\n {\r\n\r\n $this->datecreated = time();\r\n $sql = 'INSERT INTO ' . TABLE_PREFIX . 'stat_productstock (\r\n p_barcode,\r\n sd_value,\r\n sd_month,\r\n sd_year,\r\n day_1,\r\n day_2,\r\n day_3,\r\n day_4,\r\n day_5,\r\n day_6,\r\n day_7,\r\n day_8,\r\n day_9,\r\n day_10,\r\n day_11,\r\n day_12,\r\n day_13,\r\n day_14,\r\n day_15,\r\n day_16,\r\n day_17,\r\n day_18,\r\n day_19,\r\n day_20,\r\n day_21,\r\n day_22,\r\n day_23,\r\n day_24,\r\n day_25,\r\n day_26,\r\n day_27,\r\n day_28,\r\n day_29,\r\n day_30,\r\n day_31,\r\n sd_datecreated,\r\n sd_datemodified\r\n )\r\n VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)';\r\n $rowCount = $this->db3->query($sql, array(\r\n (string)$this->pbarcode,\r\n (string)$this->value,\r\n (int)$this->month,\r\n (int)$this->year,\r\n (string)$this->day_1,\r\n (string)$this->day_2,\r\n (string)$this->day_3,\r\n (string)$this->day_4,\r\n (string)$this->day_5,\r\n (string)$this->day_6,\r\n (string)$this->day_7,\r\n (string)$this->day_8,\r\n (string)$this->day_9,\r\n (string)$this->day_10,\r\n (string)$this->day_11,\r\n (string)$this->day_12,\r\n (string)$this->day_13,\r\n (string)$this->day_14,\r\n (string)$this->day_15,\r\n (string)$this->day_16,\r\n (string)$this->day_17,\r\n (string)$this->day_18,\r\n (string)$this->day_19,\r\n (string)$this->day_20,\r\n (string)$this->day_21,\r\n (string)$this->day_22,\r\n (string)$this->day_23,\r\n (string)$this->day_24,\r\n (string)$this->day_25,\r\n (string)$this->day_26,\r\n (string)$this->day_27,\r\n (string)$this->day_28,\r\n (string)$this->day_29,\r\n (string)$this->day_30,\r\n (string)$this->day_31,\r\n (int)$this->datecreated,\r\n (int)$this->datemodified\r\n ))->rowCount();\r\n\r\n $this->id = $this->db3->lastInsertId();\r\n return $this->id;\r\n }", "function expense_tracker_add_row()\n{\n\t$this->layout='blank';\n\t$s_society_id=(int)$this->Session->read('society_id');\n\t$s_user_id=(int)$this->Session->read('user_id');\n\n\t\t$count = (int)$this->request->query('con');\n\t\t$this->set('count',$count);\n\n\t\t\t$this->loadmodel('accounts_group');\n\t\t\t$conditions=array(\"accounts_id\" => 4);\n\t\t\t$cursor1=$this->accounts_group->find('all',array('conditions'=>$conditions));\n\t\t\t$this->set('cursor1',$cursor1);\n\n\t\t\t\t$this->loadmodel('ledger_sub_account');\n\t\t\t\t$conditions=array(\"ledger_id\" => 15);\n\t\t\t\t$cursor2=$this->ledger_sub_account->find('all',array('conditions'=>$conditions));\n\t\t\t\t$this->set('cursor2',$cursor2);\n}", "public static function addAccountdetail($data) {\n\t\tif (!is_array($data)) return false;\n\t\t$data['create_time'] = Common::getTime();\n $data['update_time'] = Common::getTime();\n\t\t$data = self::_cookData($data);\n\t\treturn self::_getDao()->insert($data);\n\t}", "function UpdateGeneral($arryDetails){ \r\n\t\t\tglobal $Config;\r\n\t\t\textract($arryDetails);\r\n\r\n\t\t\tif(!empty($SuppID)){\r\n\t\t\t\tif($Status=='') $Status=1;\r\n\t\t\t\t$UserName = trim($FirstName.' '.$LastName);\r\n\t\t\t\tif($primaryVendor == 1){\r\n\t\t\t\t\t$strSQLQuery2 = \"update p_supplier set primaryVendor = '0'\";\r\n\t\t\t\t\t$this->query($strSQLQuery2, 0);\r\n\t\t\t\t}\t\r\n\t\t\t\t\tif($defaultVendor == 1){\r\n\t\t\t\t\t$strSQLQuery3 = \"update p_supplier set defaultVendor = '0'\";\r\n\t\t\t\t\t$this->query($strSQLQuery3, 0);\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\tif($Taxable == 'No')\r\n\t\t\t{\r\n\t\t\t\t$TaxRate = '';\r\n\t\t\t}\r\n\r\n\r\n\t\t\t\t$strSQLQuery = \"update p_supplier set primaryVendor = '\".addslashes($primaryVendor).\"', SuppType='\".addslashes($SuppType).\"', CompanyName='\".addslashes($CompanyName).\"', UserName='\".addslashes($UserName).\"', FirstName='\".addslashes($FirstName).\"', LastName='\".addslashes($LastName).\"' , Email='\".addslashes($Email).\"', Mobile='\".addslashes($Mobile).\"', Landline='\".addslashes($Landline).\"', Fax='\".addslashes($Fax).\"' , Website='\".addslashes($Website).\"', UpdatedDate = '\".$Config['TodayDate'].\"', Status='\".$Status.\"',Currency='\".$Currency.\"',SupplierSince='\".$SupplierSince.\"', TaxNumber='\".addslashes($TaxNumber).\"', PaymentMethod='\".addslashes($PaymentMethod).\"', ShippingMethod='\".addslashes($ShippingMethod).\"', PaymentTerm='\".addslashes($PaymentTerm).\"', SSN='\".addslashes($SSN).\"', TenNine='\".addslashes($TenNine).\"' , AccountID='\".addslashes($AccountID).\"', CreditCard='\".addslashes($CreditCard).\"', HoldPayment='\".addslashes($HoldPayment).\"', EIN='\".addslashes($EIN).\"',Taxable='\".addslashes($Taxable).\"',TaxRate='\".addslashes($TaxRate).\"', CreditLimit='\".addslashes($CreditLimit).\"',VAT='\".mysql_real_escape_string($VAT).\"',CST='\".mysql_real_escape_string($CST).\"',TRN='\".mysql_real_escape_string($TRN).\"',defaultVendor ='\".mysql_real_escape_string($defaultVendor).\"' where SuppID='\".mysql_real_escape_string($SuppID).\"'\"; \r\n\t\t\t\t$this->query($strSQLQuery, 0);\r\n\r\n\r\n\r\n\t\t\t\t\r\n\t\t\t\t/***********************/\r\n\t\t\t\t$objConfig=new admin();\r\n\t\t\t\t$Config['DbName'] = $Config['DbMain'];\r\n\t\t\t\t$objConfig->dbName = $Config['DbName'];\r\n\t\t\t\t$objConfig->connect();\r\n\t\t\r\n\t\t\t\t$strSQLQuery = \"update company_user set user_name='\".addslashes($Email).\"' where ref_id='\".mysql_real_escape_string($SuppID).\"' and user_type='vendor' and comId='\".$_SESSION['CmpID'].\"' \"; \r\n\t\t\t\t$this->query($strSQLQuery, 0);\t\t\r\n\r\n\r\n\t\t\t\t$Config['DbName'] = $_SESSION['CmpDatabase'];\r\n\t\t\t\t$objConfig->dbName = $Config['DbName'];\r\n\t\t\t\t$objConfig->connect();\r\n\t\t\t\t/***********************/\r\n\r\n\r\n\t\t\t}\r\n\r\n\t\t\treturn 1;\r\n\t\t}", "function saveData($db, &$strError)\n{\n global $error;\n $strError = \"\";\n (isset($_REQUEST['dataType'])) ? $strDataType = $_REQUEST['dataType'] : $strDataType = \"department\";\n (isset($_REQUEST['dataCode'])) ? $strDataCode = trim($_REQUEST['dataCode']) : $strDataCode = \"\";\n (isset($_REQUEST['dataOldCode'])) ? $strDataOldCode = $_REQUEST['dataOldCode'] : $strDataOldCode = \"\";\n (isset($_REQUEST['dataName'])) ? $strDataName = $_REQUEST['dataName'] : $strDataName = \"\";\n (isset($_REQUEST['dataID'])) ? $strDataID = $_REQUEST['dataID'] : $strDataID = \"\";\n // cek validasi -----------------------\n if (strtolower($strDataType) == \"management\") {\n // --- EDIT DATA MANAGEMENT\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_management\", \"management_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Management -> $strDataCode\";\n return false;\n }\n }\n // simpan data -----------------------\n $data = [\n \"management_code\" => check_plain($strDataCode),\n \"management_name\" => check_plain($strDataName),\n ];\n $tbl = new cModel(\"hrd_management\", \"management\");\n if ($strDataID == \"\") {\n $tbl->insert($data);\n // data baru\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n $strDataCode = check_plain($strDataCode);\n $strDataOldCode = check_plain($strDataOldCode);\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_division SET management_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode'; \n UPDATE hrd_department SET management_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_sub_department SET division_code = '$strDataCode'\n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_section SET division_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET division_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode';\n UPDATE hrd_employee SET management_code = '$strDataCode' \n WHERE management_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"division\") {\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n // --- EDIT DATA DIVISION\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_division\", \"division_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Division -> $strDataCode\";\n return false;\n }\n }\n // simpan data -----------------------\n $data = [\n \"division_code\" => $strDataCode,\n \"division_name\" => $strDataName,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_division\", \"division\");\n if ($strDataID == \"\") {\n $tbl->insert($data);\n // data baru\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_department SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_sub_department SET division_code = '$strDataCode'\n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_section SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode';\n UPDATE hrd_employee SET division_code = '$strDataCode' \n WHERE division_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"department\") {\n // --- EDIT DATA DEPARTMENT\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_department\", \"department_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Department -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"department_code\" => $strDataCode,\n \"department_name\" => $strDataName,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_department\", \"department\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_sub_department SET department_code = '$strDataCode'\n WHERE department_code = '$strDataOldCode';\n UPDATE hrd_section SET department_code = '$strDataCode'\n WHERE department_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET department_code = '$strDataCode' \n WHERE department_code = '$strDataOldCode';\n UPDATE hrd_employee SET department_code = '$strDataCode' \n WHERE department_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"subdepartment\") { // --- EDIT DATA SECTION\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n (isset($_REQUEST['dataDeptCode'])) ? $strDataDeptCode = $_REQUEST['dataDeptCode'] : $strDataDeptCode = \"\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_sub_department\", \"sub_department_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Sub Department -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"sub_department_code\" => $strDataCode,\n \"sub_department_name\" => $strDataName,\n \"department_code\" => $strDataDeptCode,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_sub_department\", \"subdepartment\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_section SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode';\n UPDATE hrd_sub_section SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode';\n UPDATE hrd_employee SET section_code = '$strDataCode' \n WHERE section_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"section\") { // --- EDIT DATA SECTION\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n (isset($_REQUEST['dataDeptCode'])) ? $strDataDeptCode = $_REQUEST['dataDeptCode'] : $strDataDeptCode = \"\";\n (isset($_REQUEST['dataSubDeptCode'])) ? $strDataSubDeptCode = $_REQUEST['dataSubDeptCode'] : $strDataSubDeptCode = \"\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_section\", \"section_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Section -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"section_code\" => $strDataCode,\n \"section_name\" => $strDataName,\n \"sub_department_code\" => $strDataSubDeptCode,\n \"department_code\" => $strDataDeptCode,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_section\", \"section\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n // update data2 dibawahnya, jika ada perubahan kode\n if ($strDataOldCode != $strDataCode) {\n $tbl->query(\n \"\n UPDATE hrd_sub_section SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode';\n UPDATE hrd_employee SET section_code = '$strDataCode'\n WHERE section_code = '$strDataOldCode'\"\n );\n }\n }\n } else if (strtolower($strDataType) == \"subsection\") { // --- EDIT DATA SUBSECTION\n (isset($_REQUEST['dataManCode'])) ? $strDataManCode = $_REQUEST['dataManCode'] : $strDataManCode = \"\";\n (isset($_REQUEST['dataDivCode'])) ? $strDataDivCode = $_REQUEST['dataDivCode'] : $strDataDivCode = \"\";\n (isset($_REQUEST['dataDeptCode'])) ? $strDataDeptCode = $_REQUEST['dataDeptCode'] : $strDataDeptCode = \"\";\n (isset($_REQUEST['dataSectCode'])) ? $strDataSectCode = $_REQUEST['dataSectCode'] : $strDataSectCode = \"\";\n (isset($_REQUEST['dataSubDeptCode'])) ? $strDataSubDeptCode = $_REQUEST['dataSubDeptCode'] : $strDataSubDeptCode = \"\";\n //(isset($_REQUEST['dataOvertime'])) ? $strDataOvertime = $_REQUEST['dataOvertime'] : $strDataOvertime = \"f\";\n if ($strDataCode == \"\") {\n $strError = $error['empty_code'];\n return false;\n } else if ($strDataName == \"\") {\n $strError = $error['empty_name'];\n return false;\n } else {\n ($strDataID == \"\") ? $strKriteria = \"\" : $strKriteria = \"AND id <> '$strDataID' \";\n if (isDataExists($db, \"hrd_sub_section\", \"sub_section_code\", $strDataCode, $strKriteria)) {\n $strError = $error['duplicate_code'] . \" Sub Section -> $strDataCode\";\n return false;\n }\n }\n $data = [\n \"sub_section_code\" => $strDataCode,\n \"sub_section_name\" => $strDataName,\n \"section_code\" => $strDataSectCode,\n \"sub_department_code\" => $strDataSubDeptCode,\n \"department_code\" => $strDataDeptCode,\n \"division_code\" => $strDataDivCode,\n \"management_code\" => $strDataManCode,\n ];\n $tbl = new cModel(\"hrd_sub_section\", \"sub section\");\n // simpan data -----------------------\n if ($strDataID == \"\") {\n // data baru\n $tbl->insert($data);\n writeLog(ACTIVITY_ADD, MODULE_PAYROLL, \"$strDataCode\", 0);\n } else {\n $tbl->update([\"id\" => $strDataID], $data);\n writeLog(ACTIVITY_EDIT, MODULE_PAYROLL, \"$strDataCode\", 0);\n }\n }\n return true;\n}", "public function appendAdditionalInfos(\\Diadoc\\Api\\Proto\\Invoicing\\AdditionalInfo $value)\n {\n return $this->append(self::ADDITIONALINFOS, $value);\n }", "function add()\n\t{\n\t\t$this->_updatedata();\n\t}", "public function addData($pDataObj,\r\n $pDataObjKey = null) {\r\n if ($pDataObjKey !== null) {\r\n $this->records[$pDataObjKey] = $pDataObj;\r\n } else {\r\n $this->records[] = $pDataObj;\r\n }\r\n return;\r\n }", "public function addNew($data) {\r\n \t$roomDiscount = $this->findByUnique($data[self::ROOM], $data[self::RULE]);\r\n \tif (empty($roomDiscount)) {\r\n \t\treturn $this->insert($data);\r\n \t} else {\r\n \t\treturn $roomDiscount->id;\r\n \t}\r\n }", "private function addDescriptiveRecord()\n {\n // Record Type\n $line = self::DESCRIPTIVE_TYPE;\n\n if ($this->includeAccountNumberInDescriptiveRecord) {\n // BSB\n $line .= $this->bsb;\n\n // Account Number\n $line .= str_pad($this->accountNumber, 9, ' ', STR_PAD_LEFT);\n\n // Reserved - must be a single blank space\n $line .= ' ';\n } else {\n // Reserved - must be 17 blank spaces\n $line .= str_repeat(' ', 17);\n }\n\n // Sequence Number\n $line .= '01';\n\n // Bank Name\n $line .= $this->bankName;\n\n // Reserved - must be seven blank spaces\n $line .= str_repeat(' ', 7);\n\n // User Name\n $line .= str_pad($this->userName, 26, ' ', STR_PAD_RIGHT);\n\n // User ID\n $line .= $this->directEntryUserId;\n\n // File Description\n $line .= str_pad($this->description, 12, ' ', STR_PAD_RIGHT);\n\n // Processing Date\n $line .= date('dmy', is_numeric($this->processingDate) ? $this->processingDate : strtotime($this->processingDate));\n\n // Reserved - 40 blank spaces\n $line .= str_repeat(' ', 40);\n\n $this->addLine($line);\n }", "public function addToCOBRA_Eligibility_Data(\\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType) {\n throw new \\InvalidArgumentException(sprintf('The COBRA_Eligibility_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\COBRA_Eligibility_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->COBRA_Eligibility_Data[] = $item;\n return $this;\n }", "function inspiry_additional_details() { ?>\n <div class=\"inspiry-details-wrapper\">\n <label><?php esc_html_e( 'Additional Details', 'framework' ); ?></label>\n <div class=\"inspiry-detail-header\">\n <p class=\"title\"><?php esc_html_e( 'Title', 'framework' ); ?></p>\n <p class=\"value\"><?php esc_html_e( 'Value', 'framework' ); ?></p>\n </div>\n <div id=\"inspiry-additional-details-container\">\n\t\t\t\t<?php\n\t\t\t\tif ( realhomes_dashboard_edit_property() || inspiry_is_edit_property() ) {\n\t\t\t\t\tglobal $target_property;\n\n\t\t\t\t\tif ( function_exists( 'ere_additional_details_migration' ) ) {\n\t\t\t\t\t\tere_additional_details_migration( $target_property->ID ); // Migrate property additional details from old metabox key to new key.\n\t\t\t\t\t}\n\n\t\t\t\t\t$additional_details = get_post_meta( $target_property->ID, 'REAL_HOMES_additional_details_list', true );\n\t\t\t\t\tif ( ! empty( $additional_details ) ) {\n\t\t\t\t\t\t$additional_details = array_filter( $additional_details ); // remove empty values.\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! empty( $additional_details ) ) {\n\t\t\t\t\t\tforeach ( $additional_details as $additional_detail ) {\n\t\t\t\t\t\t\tinspiry_render_additional_details( $additional_detail[0], $additional_detail[1] );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinspiry_render_additional_details();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t$default_details = apply_filters( 'inspiry_default_property_additional_details', array() );\n\t\t\t\t\tif ( ! empty( $default_details ) ) {\n\t\t\t\t\t\tforeach ( $default_details as $title => $value ) {\n\t\t\t\t\t\t\tinspiry_render_additional_details( $title, $value );\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tinspiry_render_additional_details();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t?>\n </div>\n <button class=\"add-detail btn btn-primary\"><i class=\"fas fa-plus\"></i><?php esc_attr_e( 'Add More', 'framework' ); ?></button>\n </div>\n\t\t<?php\n\t}", "public function addToContentDetail(\\Minioak\\Royalmail\\Shipping\\Structs\\ContentDetail $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\Minioak\\Royalmail\\Shipping\\Structs\\ContentDetail) {\n throw new \\InvalidArgumentException(sprintf('The contentDetail property can only contain items of \\Minioak\\Royalmail\\Shipping\\Structs\\ContentDetail, \"%s\" given', is_object($item) ? get_class($item) : gettype($item)), __LINE__);\n }\n $this->contentDetail[] = $item;\n return $this;\n }", "function addNew($rec)\r\n\t\t{\r\n\t\t\t// Create associative array of key fields and data values\r\n\t\t\t$data = array(\"idMedicalRecord\"=>$rec[0],\"medicalRec_weight\"=>$rec[1],\"medicalRec_height\"=>$rec[2],\"medicalRec_bloodPressure\"=>$rec[3],\"medicalRec_temperature\"=>$rec[4],\"medicalRec_bloodIronLevel\"=>$rec[5],\"medicalRec_time\"=>$rec[6],\"medicalRec_date\"=>$rec[7],\"medicalRec_medicalHistory\"=>$rec[8],\"medicalRec_rejectionReason\"=>$rec[9]);\r\n\t\t\t// Bind values to object's attributes\r\n\t\t\t$this->bind($data);\r\n\t\t\t// Add new values to table in database\r\n\t\t\t$this->insert();\r\n\t\t}", "public static function addFinalPriceForDetailProduct($data)\n {\n $taxClassArray = self::getTax();\n $priceRs = self::getPriceToCalculateTax($data);\n $data->final_price = self::finalPrice($priceRs['price'], $data->tax_class_id, $taxClassArray);\n $data->display_price_promotion = $priceRs['display_price_promotion'];\n return $data;\n }", "public static function addReservationAddonDetails($reservationID, $arrAddon) {\n $arrInsertData = array();\n \n foreach($arrAddon as $prod_id => $qty) {\n if($qty > 0){\n $arrInsertData[] = array(\n 'reservation_id' => $reservationID,\n 'no_of_persons' => $qty,\n 'options_id' => $prod_id,\n 'option_type' => 'addon',\n 'reservation_type' => 'experience',\n 'created_at' => date('Y-m-d H:i:m'),\n 'updated_at' => date('Y-m-d H:i:m'),\n );\n }\n\n }\n \n //writing data to reservation_addons_variants_details table\n DB::table('reservation_addons_variants_details')->insert($arrInsertData);\n }", "public function setEquipmentDetails($equipmentData)\n {\n foreach ($equipmentData as $key => $value) {\n $equipmentData[$key] = ($key != 'expire') ? mysql_escape_string($value) : $value;\n }\n\n //$this->db->select_db(DB_NAME);\n //\tsave to trash_bin\n $this->save2trash('U', $equipmentData['equipment_id']);\n//\n //\tcheck expire date change\n $recalculteMixLimits = false;\n if ($this->isExpireDateChanged($equipmentData[\"equipment_id\"], $equipmentData[\"expire\"])) {\n $recalculteMixLimits = true;\n }\n\n //\tcheck daily limit change\n if ($this->isDailyLimitChanged($equipmentData[\"equipment_id\"], $equipmentData[\"daily\"])) {\n $recalculteMixLimits = true;\n }\n\n $query = \"UPDATE \" . TB_EQUIPMENT . \" SET \";\n\n $query.=\"department_id='\" . $this->db->sqltext($equipmentData[\"department_id\"]) . \"', \";\n $query.=\"equip_desc='\" . $this->db->sqltext($equipmentData[\"equip_desc\"]) . \"', \";\n $query.=\"inventory_id='\" . $this->db->sqltext($equipmentData[\"inventory_id\"]) . \"', \";\n $query.=\"permit='\" . $this->db->sqltext($equipmentData[\"permit\"]) . \"', \";\n $query.=\"expire='\" . strtotime($equipmentData[\"expire\"]->formatInput()) . \"', \";\n $query.=\"daily='\" . $this->db->sqltext($equipmentData[\"daily\"]) . \"', \";\n $query.=\"dept_track='\" . $this->db->sqltext($equipmentData[\"dept_track\"]) . \"', \";\n $query.=\"facility_track='\" . $this->db->sqltext($equipmentData[\"facility_track\"]) . \"', \";\n $query .= \"model_number='\" . $this->db->sqltext($equipmentData[\"model_number\"]) . \"', \";\n $query .= \"serial_number='\" . $this->db->sqltext($equipmentData[\"serial_number\"]) . \"', \";\n $query.=\"creater_id='\" . $this->db->sqltext($equipmentData[\"creater_id\"]) . \"', \";\n $query.=\"voc_emissions='\" . $this->db->sqltext($this->getVocEmissions()) . \"'\";\n\n $query.=\" WHERE equipment_id=\" . $equipmentData['equipment_id'];\n\n $this->db->query($query);\n }", "public function addExpense($table, $data)\n {\n\n if (isset($data)) {\n $result=$this->dynamicInsert($table, $data);\n }\n }", "public function addDeal($deal_info) {\n $package_name = $deal_info['new_deal_package_name'];\n $number_chairs = $deal_info['new_deal_number_chairs'];\n $number_guests = $deal_info['new_deal_number_guests'];\n $floral_arrangement = $deal_info['new_deal_floral_arrangement'];\n $music_package = $deal_info['new_deal_music_package'];\n $photo_package = $deal_info['new_deal_photo_package'];\n $discount = $deal_info['new_deal_discount'];\n $deal_of_month = $deal_info['new_deal_of_month'];\n $description = $deal_info['new_deal_description'];\n \n #creates an array to hold new deal information for use in query\n $deal_array = array($package_name,$number_chairs,$number_guests,$floral_arrangement,\n $music_package,$photo_package,$discount,$deal_of_month,\n $description);\n \n #creates MySQL statement to insert new deal information into deals table\n $sql = \"INSERT INTO deals\n SET packageName = ?,\n numberChairs = ?,\n numberGuests = ?,\n floralArrangement = ?,\n musicPackage = ?,\n photoPackage = ?,\n discount = ?,\n dealOfMonth = ?,\n packageDescription = ?\n \";\n \n #executes the query using the constructed statement and the new deal data\n $statement = $this->db->query($sql,$deal_array);\n \n }", "public function writeItem($item)\n {\n $this->data[] = $item;\n }", "private function _updateSensorDetails($sensorInformationArray)\n {\n // 'f_color' => NULL ,\n $fiedsList = array(\n 'f_station_code' => NULL,\n 'f_sensor_ch' => NULL,\n 'f_sensor_code' => NULL,\n 'f_chain_code' => NULL,\n 'f_group_code' => NULL,\n 'f_unit_code' => NULL,\n 'f_name' => NULL,\n 'f_unit' => NULL,\n 'f_div' => NULL,\n 'f_mul' => NULL,\n 'f_val_neg' => NULL,\n 'f_val_log' => NULL,\n 'f_val_last' => NULL,\n 'f_val_sum' => NULL,\n 'f_val_aver' => NULL,\n 'f_val_min' => NULL,\n 'f_val_max' => NULL,\n 'f_val_time' => NULL,\n 'f_val_user' => NULL,\n 'f_create_time' => NULL,\n 'f_val_axilary' => NULL,\n 'f_user_app' => NULL,\n 'f_sensor_user_name' => NULL,\n 'f_user_unit_code' => NULL,\n );\n \n $updateString = \"\";\n foreach($fiedsList as $key => $val)\n {\n if(!isset($sensorInformationArray->{$key}))\n {\n $sensorInformationArray->{$key} = NULL;\n }else\n {\n // continue\n }\n \n /**\n * Fix, ETo debe mostrarse como SUM y no como AVER como declara el server remoto\n */\n if($sensorInformationArray->f_sensor_code == 1201)\n {\n $sensorInformationArray->f_val_aver = 0;\n $sensorInformationArray->f_val_sum = 1;\n }\n $updateString .= \"\\n `{$key}` = \" . check_null_val(process_plain_text($sensorInformationArray->{$key})) . \" ,\";\n }\n if(trim($updateString))\n {\n $query = \"\n UPDATE\n `\" . DBT_PREFIX . \"sensor_info`\n SET\n {$updateString}\n `last_update_date` = UNIX_TIMESTAMP()\n WHERE\n `f_station_code` = '{$sensorInformationArray->f_station_code}'\n AND\n `f_sensor_code` = '{$sensorInformationArray->f_sensor_code}'\n AND\n `f_sensor_ch` = '{$sensorInformationArray->f_sensor_ch}'\n LIMIT 1\n \";\n sql_select($query, $results);\n return $sensorInformationArray->f_station_code . \"_\" . $sensorInformationArray->f_sensor_code . \"_\" . $sensorInformationArray->f_sensor_ch . \" updated\";\n }else\n {\n return false;\n }\n }", "public function add_suppliers() {\n $arrPageData['arrSessionData'] = $this->session->userdata;\n if ($this->input->post('service_type') == 'customer') {\n $support_email = '';\n $support_no = '';\n $service_level = '';\n $response = '';\n $start_date = '';\n $end_date = '';\n }\n if ($this->input->post('service_type') == 'supplier') {\n $support_email = $this->input->post('support_email');\n $support_no = $this->input->post('support_number');\n $service_level = '';\n $response = '';\n $start_date = '';\n $end_date = '';\n }\n if ($this->input->post('service_type') == 'service') {\n $support_email = $this->input->post('support_email');\n $support_no = $this->input->post('support_number');\n $service_level = $this->input->post('service_level');\n $response = $this->input->post('response');\n if ($this->input->post('contract_start')) {\n $start_date = $this->input->post('contract_start');\n } else {\n $start_date = '';\n }\n if ($this->input->post('contract_end')) {\n $end_date = $this->input->post('contract_end');\n } else {\n $end_date = '';\n }\n }\n\n $supplierdata = array(\n 'supplier_name' => $this->input->post('supplier_name'),\n 'type' => $this->input->post('service_type'),\n 'account_id' => $arrPageData['arrSessionData']['objSystemUser']->accountid,\n 'ref_no' => $this->input->post('ref_code'),\n 'support_email' => $support_email,\n 'support_number' => $support_no,\n 'service_level' => $service_level,\n 'response' => $response,\n 'contract_startdate' => $start_date,\n 'contract_enddate' => $end_date,\n 'contract_name' => $this->input->post('contract_name'),\n 'supplier_title' => $this->input->post('contract_title'),\n 'contract_no' => $this->input->post('contract_number'),\n 'contract_email' => $this->input->post('contract_email'),\n 'supplier_address' => $this->input->post('address'),\n 'supplier_city' => $this->input->post('city'),\n 'supplier_state' => $this->input->post('state'),\n 'supplier_postcode' => $this->input->post('postcode'),\n 'active' => 1,\n 'archive' => 1);\n\n $this->db->insert('suppliers', $supplierdata);\n $id = $this->db->insert_id();\n if ($id) {\n return $id;\n } else {\n return FALSE;\n }\n }", "private function addLineItemsToInvoice($data){\n $lineItems = [];\n $counter = 1;\n foreach($data as $lineData) {\n $lineItem = [];\n $lineItem['LineNum'] = $counter;\n $lineItem['Description'] = IndexSanityCheckHelper::indexSanityCheck('description', $lineData);\n\n if (array_key_exists('item_id', $lineData)) {\n $lineItem['Amount'] = IndexSanityCheckHelper::indexSanityCheck('amount', $lineData);\n $lineItem['DetailType'] = 'SalesItemLineDetail';\n $lineItem['SalesItemLineDetail'] = [];\n $lineItem['SalesItemLineDetail']['Qty'] = IndexSanityCheckHelper::indexSanityCheck('quantity', $lineData);\n $lineItem['SalesItemLineDetail']['UnitPrice'] = IndexSanityCheckHelper::indexSanityCheck('unit_amount', $lineData);\n $lineItem['SalesItemLineDetail']['ItemRef']['value'] = IndexSanityCheckHelper::indexSanityCheck('item_id', $lineData);\n $lineItem['SalesItemLineDetail']['TaxCodeRef']['value'] = IndexSanityCheckHelper::indexSanityCheck('tax_id', $lineData);\n $lineItem['SalesItemLineDetail']['DiscountRate'] = IndexSanityCheckHelper::indexSanityCheck('discount_rate', $lineData);\n $lineItem['SalesItemLineDetail']['TaxInclusiveAmt'] = IndexSanityCheckHelper::indexSanityCheck('tax_inclusive_amount', $lineData);\n } else {\n $lineItem['Amount'] = IndexSanityCheckHelper::indexSanityCheck('amount', $lineData);\n $lineItem['DetailType'] = 'SalesItemLineDetail';\n $lineItem['SalesItemLineDetail'] = [];\n $lineItem['SalesItemLineDetail']['Qty'] = IndexSanityCheckHelper::indexSanityCheck('quantity', $lineData);\n $lineItem['SalesItemLineDetail']['UnitPrice'] = IndexSanityCheckHelper::indexSanityCheck('unit_amount', $lineData);\n $lineItem['SalesItemLineDetail']['TaxCodeRef']['value'] = IndexSanityCheckHelper::indexSanityCheck('tax_id', $lineData);\n $lineItem['SalesItemLineDetail']['DiscountRate'] = IndexSanityCheckHelper::indexSanityCheck('discount_rate', $lineData);\n $lineItem['SalesItemLineDetail']['TaxInclusiveAmt'] = IndexSanityCheckHelper::indexSanityCheck('tax_inclusive_amount', $lineData);\n }\n $counter++;\n array_push($lineItems, $lineItem);\n }\n if ($this->getDiscountRate()) {\n if ($this->getDiscountRate() > 0) {\n $discountLineItem = [];\n $discountLineItem['LineNum'] = $counter;\n $discountLineItem['Description'] = '';\n $discountLineItem['Amount'] = $this->getDiscountAmount();\n $discountLineItem['DetailType'] = 'DiscountLineDetail';\n $discountLineItem['DiscountLineDetail']['PercentBased'] = true;\n $discountLineItem['DiscountLineDetail']['DiscountPercent'] = $this->getDiscountRate();\n array_push($lineItems, $discountLineItem);\n }\n }\n else if ($this->getDiscountAmount()) {\n if ($this->getDiscountAmount() > 0) {\n $discountLineItem = [];\n $discountLineItem['LineNum'] = $counter;\n $discountLineItem['Description'] = '';\n $discountLineItem['Amount'] = $this->getDiscountAmount();\n $discountLineItem['DetailType'] = 'DiscountLineDetail';\n $discountLineItem['DiscountLineDetail']['PercentBased'] = false;\n array_push($lineItems, $discountLineItem);\n }\n }\n return $lineItems;\n }", "private function setItem(array $itemData)\n {\n //====================================================================//\n // Safety Check\n if ((!$this->item instanceof WC_Order_Item_Shipping) && (!$this->item instanceof WC_Order_Item_Fee)) {\n return;\n }\n //====================================================================//\n // Update Name\n if (isset($itemData[\"name\"])) {\n $this->setGeneric(\"_name\", $itemData[\"name\"], \"item\");\n }\n //====================================================================//\n // Update Quantity\n $qty = $itemData[\"quantity\"] ?? 1;\n //====================================================================//\n // Update Unit Price\n if (isset($itemData[\"subtotal\"])) {\n // Compute Expected Total\n $total = $qty * self::prices()->taxExcluded($itemData[\"subtotal\"]);\n // Compute Expected Total Tax Incl.\n $totalTax = $qty * self::prices()->taxAmount($itemData[\"subtotal\"]);\n // There is NO Discount\n } else {\n $total = $this->item->get_total();\n $totalTax = $this->item->get_total_tax();\n }\n //====================================================================//\n // Update Item Taxes\n if ($totalTax != $this->item->get_total_tax()) {\n $this->setItemTaxArray('total', (float) $totalTax);\n }\n //====================================================================//\n // Update Item Totals\n $this->setGeneric(\"_total\", $total, \"item\");\n }", "private function cObjData_updateRow( $uid )\n {\n static $firstVisit = true;\n\n // RETURN: empty row\n if ( empty( $this->rows[ $uid ] ) )\n {\n return;\n }\n // RETURN: empty row\n // Add each element of the row to cObj->data\n foreach ( ( array ) $this->rows[ $uid ] as $key => $value )\n {\n $this->pObj->cObj->data[ $key ] = $value;\n }\n\n // Add the field uid with the uid of the current row\n $key = $this->sql_filterFields[ $this->curr_tableField ][ 'uid' ];\n $value = $this->rows[ $uid ][ $key ];\n $this->pObj->cObj->data[ 'uid' ] = $value;\n\n // Add the field value with the value of the current row\n $key = $this->sql_filterFields[ $this->curr_tableField ][ 'value' ];\n $value = $this->rows[ $uid ][ $key ];\n $this->pObj->cObj->data[ 'value' ] = $value;\n\n // Add the field hits with the hits of the filter item\n $key = $this->sql_filterFields[ $this->curr_tableField ][ 'hits' ];\n $value = $this->rows[ $uid ][ $key ];\n $this->pObj->cObj->data[ 'hits' ] = $value;\n//$this->pObj->dev_var_dump( $this->pObj->cObj->data['hits'] );\n // Add the field rowNumber with the number of the current row\n $key = $this->pObj->prefixId . '.rowNumber';\n $value = $this->itemsPerHtmlRow[ 'currItemNumberInRow' ];\n\n // DRS\n if ( $firstVisit && $this->pObj->b_drs_cObjData )\n {\n foreach ( ( array ) $this->pObj->cObj->data as $key => $value )\n {\n $arr_prompt[] = '\\'' . $key . '\\' => \\'' . $value . '\\'';\n }\n $prompt = 'cObj->data of the first row: ' . implode( '; ', ( array ) $arr_prompt );\n t3lib_div::devlog( '[OK/COBJ] ' . $prompt, $this->pObj->extKey, -1 );\n }\n // DRS\n\n $firstVisit = false;\n }", "public static function addToDetails($keys,$d){\nif(is_object($d))$d=(array)$d; //Allow $d to be an object\nif(!is_array($keys))$keys=array($keys); //So it will work when $keys is a string\nif(is_array($d)){\n foreach($keys as $k){\n if(array_key_exists($k,$d))self::$details[$k]=$d[$k];\n }\n }\n}", "public function UpdateChequeDetails($update) {\n $arr = [];\n $i = 0;\n foreach ($update as $key => $val) {\n $arr[$key]['cheque_num'] = $val['cheque_num'][0];\n $arr[$key]['expiry_date'] = $val['expiry_date'][0];\n $arr[$key]['amount'] = $val['amount'][0];\n $i++;\n }\n foreach ($arr as $key => $value) {\n $aditional = \\common\\models\\ChequeDetails::findOne($key);\n $aditional->cheque_no = $value['cheque_num'];\n $aditional->due_date = date(\"Y-m-d\", strtotime($value['expiry_date']));\n $aditional->amount = $value['amount'];\n $aditional->save();\n }\n }", "public function aroundAddProduct($subject,\\Closure $proceed, $productInfo, $requestInfo = null)\n {\n $con=false;\n $mainid=\"\";\n $subid=\"\";\n $opstr=\"\";\n \n \n \n \n /**@var $subject \\Magento\\Checkout\\Model\\Cart */\n \n \n \n if(!$this->helper->getCustomerId()){\n \n throw new LocalizedException(__('Not logged in.'));\n }\n \n try{\n \n $productInfo=$this->_getProduct($productInfo);\n \n \n if(!in_array($productInfo->getTypeId(),[AccessoryType::TYPE_CODE,ClothType::TYPE_CODE])){\n $this->helper->log(\"\\n not multiv:added \\n\");\n return $proceed($productInfo,$requestInfo);\n \n }\n $items=$subject->getItems();\n \n foreach($items as $it){\n // $this->helper->log(\"current product \".$it->getId().\"\\n\");\n $pr=$it->getProduct();\n $this->helper->log(\"sku \".$pr->getSku().\"\\n\");\n if(strpos($pr->getSku() ,'res-')===0){\n $this->helper->log(\"\\n already :added \\n\");\n $this->_check($pr->getSku(), $requestInfo);\n// \n // return $proceed($productInfo,$requestInfo);\n/// throw new LocalizedException(__(\"Only One rental item can be added.\"));\n \n }\n \n }\n \n \n if(is_object($requestInfo)){\n $opts=$requestInfo->getData('rental_option');\n $opstr=$opts;\n $subject->getQuote()->getExtensionAttributes()->getRentalData()->setRentalDates($opstr);\n \n $depo=$productInfo->getData('deposit')??11;\n list(,,,$dd)=explode('-',$opstr);\n $rental=$dd!=8?$productInfo->getData('rent4'):$productInfo->getData('rent8');\n\n $vipdisc=$dd!=8?$productInfo->getData('vip_discount'):$productInfo->getData('vip_discount8');\n\n \n \n $sub=$requestInfo->getData('multiv_sub');\n }else if(is_array($requestInfo)){\n \n $rr=print_r($requestInfo,1);\n $this->helper->log(\"\\nmultiv:\".$rr.\"\\n\");\n if(!isset($requestInfo['rental_option'])){\n throw new LocalizedException(\"Invalid options\");\n \n }\n \n \n $opstr=$opts=$requestInfo['rental_option'];\n list(,,,$dd)=explode('-',$opstr);\n $rental=$dd!=8?$productInfo->getData('rent4'):$productInfo->getData('rent8');\n\n $vipdisc=$dd!=8?$productInfo->getData('vip_discount'):$productInfo->getData('vip_discount8');\n $depo=$productInfo->getData('deposit')??11;\n $owner=$productInfo->getData('uid');\n $cid=$this->helper->getCustomerId();\n \n $sub=isset($requestInfo['multiv_sub'])?$requestInfo['multiv_sub']:'';\n if(!$opts) throw new LocalizedException(\"Invalid options\");\n $qid=$subject->getQuote()->getId();\n $qid2=$this->cart->getQuoteId();\n $s= true;\n if(!$qid){\n $this->helper->log(\"createquote: cannot add qid2 $qid2 qid $qid\");\n throw new LocalizedException(__('Cannot add'));\n }\n \n $wash=(int)$productInfo->getData('wash');\n $this->helper->log(\"createquote: rental $rental depo $depo qid $qid qid2 $qid2 vip $vipdisc\");\n $con=$this->helper->reserve($opts,$productInfo->getId(),$qid,$owner,$cid,$rental,$depo,$wash,$vipdisc);\n if(!$con){\n \n throw new LocalizedException(__(\"Cannot be added again.\"));\n \n }\n \n }else{\n throw new LocalizedException(__(\"Invalid options\"));\n }\n \n $mainid=$productInfo->getId();\n $this->helper->log(\"mainid $mainid\");\n $this->helper->saveSession('rental', $rental);\n $this->helper->saveSession('depo', $depo);\n // $this->helper->addStock($productInfo);\n $prdd=$this->productRepo->get('deposit');\n \n $subid=$prdd->getId();\n // $this->helper->addStock($prdd);\n $this->helper->log(\"create:creating bundle mainid $mainid subid $subid rental $rental depo $depo\");\n\n if($subject->getQuote()->getExtensionAttributes()==null){\n $cartExtension = $this->cartExtensionFactory->create();\n $subject->getQuote()->setExtensionAttributes($cartExtension);\n// file_put_contents('lastq.txt','lastset');\n $subject->getQuote()->getExtensionAttributes()->setRentalData($this->qo);\n\n }\n\n $rental=$rental;///1.21;\n $depo=$depo;///1.21;\n\n\n\n\n\n $subject->getQuote()->getExtensionAttributes()->getRentalData()->setLastRequest($dd,$rental,$depo);\n $subject->getQuote()->getExtensionAttributes()->getRentalData()->setRentalDates($opstr);\n $_product=$this->createBundle($productInfo, $prdd,$opstr,$rental,$depo);\n/// $this->helper->updateProductStock($_product); \n $bundleid=$_product->getId();\n $this->helper->log(\"created $bundleid\");\n // get selection option in a bundle product\n $selectionCollection = $_product->getTypeInstance(true)\n ->getSelectionsCollection(\n $_product->getTypeInstance(true)->getOptionsIds($_product),$_product);\n \n // create bundle option\n $cont = 0;\n $selectionArray = [];\n foreach ($selectionCollection as $proselection){\n $this->helper->log(\" selection \".get_class($proselection).\"\\n\");\n $selectionArray[$cont] = $proselection->getSelectionId();\n $cont++;\n }\n // get options ids\n $optionsCollection = $_product->getTypeInstance(true)\n ->getOptionsCollection($_product);\n $bos=[]; \n foreach ($optionsCollection as $options) {\n /**@var $options \\Magento\\Bundle\\Api\\D/ata\\BundleOptionInterface */\n \n/// $links=$options->getProductLinks();\n //// $lnks=print_r($links,1);\n $id_option = $options->getId();\n \n $sel=$this->helper->getSel($id_option);\n \n \n \n $bos[$id_option]=[$sel];\n $this->helper->log(\"create: id $id_option sel $sel\");\n \n \n }\n \n \n $params = [\n 'product' => $_product->getId(),\n 'bundle_option' => $bos,\n 'qty' => 1\n ]; \n \n $parentid=$_product->getId();\n \n $requestInfo['product']=$_product->getId();\n $requestInfo['bundle_option']=$bos;\n $requestInfo['qty']=1;\n $bss=print_r($bos,1);\n $this->helper->log(\"create: adding to caert bos: $bss \");\n /**@var $result \\Magento\\Checkout\\Model\\Cart */\n ///$cart->addProduct($productInfo);\n \n /**@var $item \\Magento\\Quote\\Model\\Quote\\Item */\n \n \n $result=$proceed($_product,$requestInfo);\n $this->helper->log(\"addeds\");\n \n \n \n foreach($result->getItems() as $item ){\n \n if($item->getProductId()==$bundleid){\n\n \n $options = $item->getOptions();\n foreach ($options as $option)\n {\n if ($option->getCode() == 'bundle_selection_attributes')\n {\n $oo=$option->getValue();\n $this->helper->log(\"created: option bundle $oo\");\n \n /// $unserialized = unserialize($option->getValue());\n //$unserialized['price'] = number_format($rental+$depo, 2, '.', ',');\n /// $option->setValue(serialize($unserialized));\n }\n }\n try\n {\n/// $item->setOptions($options)->save();\n }\n catch (\\Exception $e)\n {}\n \n $item->setCustomPrice($rental+$depo);\n $item->setOriginalCustomPrice($rental+$depo);\n $this->helper->log(\"create:save bundle $rental dep $depo\");\n\n foreach($item->getChildren() as $it){\n \n $it->setIsSuperMode(true);\n if($it->getProduct()->getId()===$mainid){\n $it->setCustomPrice($rental);\n $it->setDiscountCalculationPrice($rental);\n \n $it->setOriginalCustomPrice($rental);\n $it->getProduct()->setIsSuperMode(true);\n $it->setFinalPrice($rental);\n $this->helper->log(\"create:set price \".$it->getId().\" price parentid \".$item->getId().\" paritid \".$item->getItemId());\n\n\n $options = $it->getOptions();\n foreach ($options as &$option)\n {\n if ($option->getCode() == 'bundle_selection_attributes')\n {\n $oo=$option->getValue(); \n $this->helper->log(\"created: $mainid rental $oo\");\n \n $unserialized = json_decode($option->getValue(),true);\n $unserialized['price'] = number_format($rental, 2, '.', ',');\n $option->setValue(json_encode($unserialized));\n \n }\n }\n try\n {\n $it->setOptions($options);\n /// $item->setOptions($options)->save();\n }catch(\\Exception $e){\n \n }\n \n \n }\n\n else if($it->getProduct()->getId()==$subid){\n $it->setCustomPrice($depo);\n $it->setDiscountCalculationPrice(0);\n $it->setOriginalCustomPrice($depo);\n $it->getProduct()->setIsSuperMode(true);\n $this->helper->log(\"create:set price \".$it->getId().\" price parentid \".$item->getId().\" paritid \".$item->getItemId());\n \n $options = $it->getOptions();\n $it->setFinalPrice($depo);\n foreach ($options as &$option)\n {\n if ($option->getCode() == 'bundle_selection_attributes')\n {\n $oo=$option->getValue();\n $this->helper->log(\"created: $subid deposi9teopt $oo\");\n\n $unserialized = json_decode($option->getValue(),true);\n $unserialized['price'] = number_format($depo, 2, '.', ',');\n $option->setValue(json_encode($unserialized));\n \n }\n }\n try\n {\n $it->setOptions($options);\n /// $item->setOptions($options)->save();\n }\n catch (\\Exception $e)\n {}\n \n }\n \n }\n \n \n }\n }\n \n \n \n /*\n foreach($result->getItems() as $item ){\n \n \n $b=$item->getData('info_buyRequest');\n $co=$item->getCustomOption();\n $bo=$item->getBuyRequest();\n $bor=\"\";\n $this->helper->log(\"adding item\");\n \n if($bo){\n // $bo=get_class($bo);\n \n $bor=$bo->getData('rental_option');\n \n }\n $parid=$item->getParentItemId();\n $ppid=\"\";\n $bsku='';\n $itsku=$item->getProduct()->getSku();\n $itid=$item->getId();\n \n if($parid){\n $ppid=$item->getParentItem()->getId();\n $bsku=$item->getParentItem()->getProduct()->getSku();\n }\n \n file_put_contents('around.txt', \"item $itid parient $parid ppid $ppid bundle $bundleid mainid $mainid itemsku $itsku busku $bsku \\n \",FILE_APPEND);\n if($item->getProductId()==$mainid&&$bor==$opstr){\n \n \n if($item->getParentItem()&& $item->getParentItem()->getProduct()->getId()==$bundleid){\n \n $item->setCustomPrice($rental);\n $item->setOriginalCustomPrice($rental);\n $skux=$item->getProduct()->getSku();\n file_put_contents('around.txt', \"setting price of $mainid $skux parid $parid \\n \",FILE_APPEND);\n $item->getProduct()->setIsSuperMode(true);\n }\n \n }\n if($item->getProductId()==$subid&&$bor==$opstr){\n // $parid=$item->getParentItemId();\n if($item->getParentItem()&& $item->getParentItem()->getProduct()->getId()==$bundleid){\n $item->setCustomPrice($depo);\n $item->setOriginalCustomPrice($depo);\n $item->getProduct()->setIsSuperMode(true);\n }\n \n }else if($item->getProductId()==$bundleid){\n/// $this->helper->log(\"dditem $dd rental $rental depo $depo bor $bor itemid \".$item->getProductId().\" opstr $opstr\");\n /// $item->setCustomPrice($depo+$rental);\n /// $item->setOriginalCustomPrice($depo+$rental);\n /// $item->getProduct()->setIsSuperMode(true);\n $item->setIsSuperMode(true);\n }\n \n \n }\n */\n $this->helper->log(\"committing\");\n \n $con->commit();\n $this->helper->log(\"added to cart\");\n $con=false;\n }catch(LocalizedException $e){\n $this->helper->log(\"error in adding\");\n $this->helper->log($e->getMessage());\n $this->helper->log($e->getTraceAsString());\n $this->msgmgr->addErrorMessage($e->getMessage()) ;\n/// throw $e;\n }\n catch(\\Exception $e){\n $this->helper->log(\"error in adding:main exception\");\n $this->helper->log($e->getMessage());\n $this->msgmgr->addErrorMessage((string)__('Cannot add.')) ; \n/// throw $e; \n }\n finally {\n if($con){\n $con->rollBack();\n }\n }\n \n return $result??''; \n \n }", "public function append($value)\n {\n $this->items[] = $value;\n }", "function insert() {\n\t\t$sql = \"INSERT INTO cost_detail (cd_fr_id, cd_seq, cd_start_time, cd_end_time, cd_hour, cd_minute, cd_cost, cd_update, cd_user_update)\n\t\t\t\tVALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)\";\n\t\t$this->ffm->query($sql, array($this->cd_fr_id, $this->cd_seq, $this->cd_start_time, $this->cd_end_time, $this->cd_hour, $this->cd_minute, $this->cd_cost, $this->cd_update, $this->cd_user_update));\n\t\t$this->last_insert_id = $this->ffm->insert_id();\n\t}", "protected function _setValueDetailDbEdit($arr)\n\t{\n\t\tglobal $classDb;\n\t\t$dbh = $classDb->getHandle();\n\n\t\tglobal $varsPluginAccountingEntity;\n\t\tglobal $varsPluginAccountingAccount;\n\n\t\t$strNation = ucwords(PLUGIN_ACCOUNTING_STR_NATION);\n\t\t$rows = $classDb->getSelect(array(\n\t\t\t'idModule' => 'accounting',\n\t\t\t'strTable' => 'accountingFS' . $strNation,\n\t\t\t'arrLimit' => array(),\n\t\t\t'arrOrder' => array(),\n\t\t\t'flagAnd' => 1,\n\t\t\t'arrWhere' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'flagType' => 'num',\n\t\t\t\t\t'strColumn' => 'idEntity',\n\t\t\t\t\t'flagCondition' => 'eq',\n\t\t\t\t\t'value' => $varsPluginAccountingAccount['idEntityCurrent'],\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'flagType' => 'num',\n\t\t\t\t\t'strColumn' => 'numFiscalPeriod',\n\t\t\t\t\t'flagCondition' => 'small',\n\t\t\t\t\t'value' => $varsPluginAccountingAccount['numFiscalPeriodCurrent'],\n\t\t\t\t),\n\t\t\t),\n\t\t));\n\n\t\t$array = $rows['arrRows'];\n\t\t$strDirect = 'inDirect';\n\t\tif ($arr['flagDirect']) {\n\t\t\t$strDirect = 'direct';\n\t\t}\n\t\t$idAccountTitle = $arr['arrValue']['arr']['idAccountTitle'];\n\t\t$idAccountTitleCustom = 'custom_' . $arr['flagFS'] . '_' . $strDirect . '_' . $idAccountTitle;\n\n\t\t$strFlagDirect = 'varsInDirect';\n\t\tif ($arr['flagDirect']) {\n\t\t\t$strFlagDirect = 'varsDirect';\n\t\t}\n\n\t\tforeach ($array as $key => $value) {\n\t\t\tif (!$value['jsonJgaapFSCS']) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$varsFS = $value['jsonJgaapFSCS'];\n\t\t\t$varsFS[$strFlagDirect] = $this->_setValueDetailDbEditLoop(array(\n\t\t\t\t'idValue' => $idAccountTitleCustom,\n\t\t\t\t'vars' => $value['jsonJgaapFSCS'][$strFlagDirect],\n\t\t\t\t'idTarget' => $arr['idTarget'],\n\t\t\t\t'flagEditCheck' => $arr['flagEditCheck'],\n\t\t\t));\n\n\t\t\t$jsonAccountTitle = json_encode($varsFS);\n\t\t\t$this->checkTextSize(array(\n\t\t\t\t'flag' => 'errorDataMax',\n\t\t\t\t'str' => $jsonAccountTitle,\n\t\t\t));\n\t\t\t$strAccountTitle = 'jsonJgaapFSCS';\n\n\t\t\t$arrDbColumn = array($strAccountTitle);\n\t\t\t$arrDbValue = array($jsonAccountTitle);\n\n\t\t\t$classDb->updateRow(array(\n\t\t\t\t'idModule' => 'accounting',\n\t\t\t\t'strTable' => 'accountingFS' . $strNation,\n\t\t\t\t'arrColumn' => $arrDbColumn,\n\t\t\t\t'flagAnd' => 1,\n\t\t\t\t'arrWhere' => array(\n\t\t\t\t\tarray(\n\t\t\t\t\t\t'flagType' => 'num',\n\t\t\t\t\t\t'strColumn' => 'id',\n\t\t\t\t\t\t'flagCondition' => 'eq',\n\t\t\t\t\t\t'value' => $value['id'],\n\t\t\t\t\t),\n\t\t\t\t),\n\t\t\t\t'arrValue' => $arrDbValue,\n\t\t\t));\n\t\t}\n\n\t\t$rows = $classDb->getSelect(array(\n\t\t\t'idModule' => 'accounting',\n\t\t\t'strTable' => 'accountingFS' . $strNation,\n\t\t\t'arrLimit' => array(),\n\t\t\t'arrOrder' => array(),\n\t\t\t'flagAnd' => 1,\n\t\t\t'arrWhere' => array(\n\t\t\t\tarray(\n\t\t\t\t\t'flagType' => 'num',\n\t\t\t\t\t'strColumn' => 'idEntity',\n\t\t\t\t\t'flagCondition' => 'eq',\n\t\t\t\t\t'value' => $varsPluginAccountingAccount['idEntityCurrent'],\n\t\t\t\t),\n\t\t\t\tarray(\n\t\t\t\t\t'flagType' => 'num',\n\t\t\t\t\t'strColumn' => 'numFiscalPeriod',\n\t\t\t\t\t'flagCondition' => 'eqSmall',\n\t\t\t\t\t'value' => $varsPluginAccountingAccount['numFiscalPeriodCurrent'],\n\t\t\t\t),\n\t\t\t),\n\t\t));\n\n\t\t$arrayFSList = $this->_getFSList(array(\n\t\t\t'numFiscalPeriod' => $varsPluginAccountingAccount['numFiscalPeriodCurrent'],\n\t\t));\n\n\n\t\t$array = $rows['arrRows'];\n\t\tforeach ($array as $key => $value) {\n\t\t\tforeach ($arrayFSList as $keyFSList => $valueFSList) {\n\t\t\t\tif (!$value['jsonJgaapAccountTitle'. $keyFSList]) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t$arrIdTarget = $arr['varsItem']['varsJgaapFS']['arrIdAccountTitleFS'][$keyFSList][$arr['idTarget']];\n\t\t\t\tif (!$arrIdTarget) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t$varsFS = $value['jsonJgaapAccountTitle'. $keyFSList];\n\t\t\t\tforeach ($arrIdTarget as $keyTarget => $valueTarget) {\n\t\t\t\t\t$varsFS = $this->_setValueDetailDbEditLoopAccountTitle(array(\n\t\t\t\t\t\t'idValue' => $idAccountTitleCustom,\n\t\t\t\t\t\t'arrValue' => $arr['arrValue'],\n\t\t\t\t\t\t'vars' => $varsFS,\n\t\t\t\t\t\t'strFlagDirect' => $strFlagDirect,\n\t\t\t\t\t\t'idTarget' => $keyTarget,\n\t\t\t\t\t\t'idTargetCS' => $arr['idTarget'],\n\t\t\t\t\t\t'flagEditCheck' => $arr['flagEditCheck'],\n\t\t\t\t\t));\n\t\t\t\t}\n\n\t\t\t\t$jsonAccountTitle = json_encode($varsFS);\n\t\t\t\t$this->checkTextSize(array(\n\t\t\t\t\t'flag' => 'errorDataMax',\n\t\t\t\t\t'str' => $jsonAccountTitle,\n\t\t\t\t));\n\t\t\t\t$strAccountTitle = 'jsonJgaapAccountTitle'. $keyFSList;\n\n\t\t\t\t$arrDbColumn = array($strAccountTitle);\n\t\t\t\t$arrDbValue = array($jsonAccountTitle);\n\n\t\t\t\t$classDb->updateRow(array(\n\t\t\t\t\t'idModule' => 'accounting',\n\t\t\t\t\t'strTable' => 'accountingFS' . $strNation,\n\t\t\t\t\t'arrColumn' => $arrDbColumn,\n\t\t\t\t\t'flagAnd' => 1,\n\t\t\t\t\t'arrWhere' => array(\n\t\t\t\t\t\tarray(\n\t\t\t\t\t\t\t'flagType' => 'num',\n\t\t\t\t\t\t\t'strColumn' => 'id',\n\t\t\t\t\t\t\t'flagCondition' => 'eq',\n\t\t\t\t\t\t\t'value' => $value['id'],\n\t\t\t\t\t\t),\n\t\t\t\t\t),\n\t\t\t\t\t'arrValue' => $arrDbValue,\n\t\t\t\t));\n\t\t\t}\n\t\t}\n\n\n\t}", "public function uploadDetailDataToTransaction($activityId)\n {\n $count = array();\n $count['total'] = $this->prepareDetailTransactionData();\n //exit();\n $element = new Iati_Aidstream_Element_Activity_Transaction();\n \n $result = $element->fetchData($activityId, true);\n $result = Iati_ElementSorter::sortElementsData($result, array('TransactionDate' =>'@iso_date'), array('TransactionValue' => '@value_date'));\n \n // Update if existing transaction by compairing 'internal reference'\n $count['update'] = 0;\n $duplicate = 0;\n $transactionKey = 0;\n foreach ($this->elementData as $key => $data) {\n $refCount = 0;\n foreach($result as $row) {\n if (strtolower($data['ref']) == strtolower($row['@ref']) && !empty($data['ref'])) {\n if ($refCount == 0) {\n $this->elementData[$key]['id'] = $row['id'];\n $this->elementData[$key]['TransactionType']['id'] = $row['TransactionType']['id'];\n $this->elementData[$key]['ProviderOrg']['id'] = $row['ProviderOrg']['id'];\n $this->elementData[$key]['ReceiverOrg']['id'] = $row['ReceiverOrg']['id'];\n $this->elementData[$key]['TransactionValue']['id'] = $row['TransactionValue']['id'];\n $this->elementData[$key]['Description']['id'] = $row['Description']['id'];\n $this->elementData[$key]['TransactionDate']['id'] = $row['TransactionDate']['id'];\n $this->elementData[$key]['FlowType']['id'] = $row['FlowType']['id'];\n $this->elementData[$key]['FinanceType']['id'] = $row['FinanceType']['id'];\n $this->elementData[$key]['AidType']['id'] = $row['AidType']['id'];\n $this->elementData[$key]['DisbursementChannel']['id'] = $row['DisbursementChannel']['id'];\n $this->elementData[$key]['TiedStatus']['id'] = $row['TiedStatus']['id'];\n \n $count['update'] += 1; // Transaction Update count\n $refCount = 1;\n } elseif ($refCount == 1) {\n $duplicate += 1;\n $transactionKey = $key;\n } \n }\n }\n }\n\n // Transaction add count\n $count['add'] = $count['total'] - $count['update'];\n \n if($duplicate >= 1) {\n $this->error[$transactionKey][]['message'] = \"Cannot update transaction. Internal reference duplication on your \n existing transactions. Please use a different internal reference or \n check your existing transactions.\";\n }\n \n if(empty($this->error)){\n $element->save($this->elementData , $activityId);\n \n return $count;\n } else {\n return false;\n }\n }", "function addstock($uketoru_item, $uketoru_num){\n\tglobal $item;\n\tglobal $num_item;\n\t// echo $uketoru_item, '<br />', $uketoru_num, '<br />';\n\t// echo gettype($item), '<br />';\n\t# checking whether or not the item is in the data and its position\n\t$yes_no = in_array($uketoru_item, $item);\n\t$position = array_search($uketoru_item, $item);\n\t\n\t// echo 'in_array', '<br />' ,(boolean) $yes_no , '<br />','<br />';\n\t// echo 'position', '<br />', $position , '<br />';\n\n\t//echo $address;\n\tif($yes_no == 0){\n\t// $uketoru_item is not in array data \n\techo \"the item is not in the data.\",'<br />';\n\t# add the item in the data\n\tarray_push($item, $uketoru_item);\n\tarray_push($num_item, $uketoru_num);\n\t// echo $item[0],'<br />', $num_item[0],'<br />';\n\n\t}else{\n\t# $uketoru_item\n\t\"the item is in the data and is stocked.\";\n\t# add the stock on the item\n\t// echo \"yes_no\", '<br />', $yes_no, '<br />';\n\t$num_item[$position] = $num_item[$position] + $uketoru_num;\n\n\t}\n}", "public function addNewDeal($data,$lid) {\n return $this->db->insert('Deals',$data);\n }", "public function assestLedgerEntry()\n {\n $items = $this->getVoucherItems();\n \n $financeLedger = new Core_Model_Finance_Ledger;\n $assestLedgerRecord = $financeLedger->fetchByName('Current Asset');\n \n $totalPrice = 0;\n for($i = 0; $i <= sizeof($items)-1; $i += 1) {\n $price = $items[$i]['unit_price'] * $items[$i]['quantity'];\n $totalPrice = $totalPrice + $price;\n }\n $notes = 'Purchase with Purchase Id = '.$this->_purchaseId; \n \n $dataToInsert = array(\n 'debit' => $amount,\n 'credit' => \"0\",\n 'notes' => $notes,\n 'transaction_timestamp' => $this->_transactionTime,\n 'fa_ledger_id' => $assestLedgerRecord['fa_ledger_id']\n );\n $ledgerEntryModel = new Core_Model_Finance_Ledger_Entry;\n $ledgerEntryId = $ledgerEntryModel->create($dataToInsert);\n return $ledgerEntryId;\n }", "public function addToPersonal_Info_Data(\\WorkdayWsdl\\\\StructType\\Personal_Info_DataType $item)\n {\n // validation for constraint: itemType\n if (!$item instanceof \\WorkdayWsdl\\\\StructType\\Personal_Info_DataType) {\n throw new \\InvalidArgumentException(sprintf('The Personal_Info_Data property can only contain items of type \\WorkdayWsdl\\\\StructType\\Personal_Info_DataType, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);\n }\n $this->Personal_Info_Data[] = $item;\n return $this;\n }", "function addItem2DB()\n {\n if ($this->isAdmin() == TRUE) {\n $this->loadThis();\n } else {\n $result = $_POST['itemInfo'];\n echo $this->carousel_model->add($result);\n }\n }", "function addTargetComp($tcomp_details){\n\t if ($this->db->insert('vc_target_comp',$tcomp_details))\n\t\t\t{ \n\t\t\treturn TRUE;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\treturn FALSE;\n\t\t\t}\n }", "function WriteAuditTrailOnAdd(&$rs) {\n\t\tglobal $mst_vendor;\n\t\t$table = 'mst_vendor';\n\n\t\t// Get key value\n\t\t$key = \"\";\n\t\tif ($key <> \"\") $key .= EW_COMPOSITE_KEY_SEPARATOR;\n\t\t$key .= $rs['kode'];\n\n\t\t// Write Audit Trail\n\t\t$filePfx = \"log\";\n\t\t$curDate = date(\"Y/m/d\");\n\t\t$curTime = date(\"H:i:s\");\n\t\t$id = ew_ScriptName();\n\t $curUser = CurrentUserName();\n\t\t$action = \"A\";\n\t\t$oldvalue = \"\";\n\t\tforeach (array_keys($rs) as $fldname) {\n\t\t\tif ($mst_vendor->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field\n\t\t\t\t$newvalue = ($mst_vendor->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? \"<MEMO>\" : $rs[$fldname]; // Memo Field\n\t\t\t\tew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $curUser, $action, $table, $fldname, $key, $oldvalue, $newvalue);\n\t\t\t}\n\t\t}\n\t}", "public function actionCreate()\n {\n \n // generate purchase Order Number\n \n $adjustment_number = TransactionCode::generate_transaction_number('AD--');\n \n if(empty($adjustment_number)){\n $adjustment_number = '';\n }\n \n\n $modelAdjustmentHead = new ImAdjustHead;\n $modelsAdjustmentDetail = [new ImAdjustDetail];\n\n // Set Default Data\n $modelAdjustmentHead->transaction_no = $adjustment_number; \n $modelAdjustmentHead->status = 'open'; \n\n $modelAdjustmentHead->branch_id = 1;\n $modelAdjustmentHead->currency_id = 1;\n\n // Currency Data\n $currency_data = Currency::find()->where(['id'=>$modelAdjustmentHead->currency_id])->one();\n\n if(!empty($currency_data)){\n $modelAdjustmentHead->exchange_rate = $currency_data->exchange_rate;\n }\n \n if ($modelAdjustmentHead->load(Yii::$app->request->post())) {\n\n $modelsAdjustmentDetail = Model::createMultiple(ImAdjustDetail::classname());\n Model::loadMultiple($modelsAdjustmentDetail, Yii::$app->request->post());\n\n // validate all models\n $valid = $modelAdjustmentHead->validate();\n $valid = Model::validateMultiple($modelsAdjustmentDetail) && $valid;\n\n if ($valid) {\n $transaction = \\Yii::$app->db->beginTransaction();\n\n try {\n $modelAdjustmentHead->status = 'open';\n if ($flag = $modelAdjustmentHead->save(false)) {\n foreach ($modelsAdjustmentDetail as $modelAdjustmentDetail) {\n $modelAdjustmentDetail->im_adjust_head_id = $modelAdjustmentHead->id;\n if (! ($flag = $modelAdjustmentDetail->save(false))) {\n $transaction->rollBack();\n break;\n }\n }\n }\n\n if ($flag) {\n\n // Update transaction code data\n $update_transaction = TransactionCode::update_transaction_number('AD--');\n\n if($update_transaction){\n echo 'successfully updated';\n }else{\n echo 'successfully not updated';\n }\n\n // Set success data\n \\Yii::$app->getSession()->setFlash('success', 'Successfully Inserted');\n\n \n $transaction->commit();\n return $this->redirect(['view', 'id' => $modelAdjustmentHead->id]);\n }\n } catch (\\Exception $e) {\n\n // Set success data\n \\Yii::$app->getSession()->setFlash('error', $e->getMessage());\n\n $transaction->rollBack();\n }\n }\n }\n\n return $this->render('create', [\n 'modelAdjustmentHead' => $modelAdjustmentHead,\n 'modelsAdjustmentDetail' => (empty($modelsAdjustmentDetail)) ? [new ImAdjustDetail] : $modelsAdjustmentDetail\n ]);\n\n }" ]
[ "0.6132607", "0.5467399", "0.5360926", "0.52197987", "0.5216997", "0.52087444", "0.51678056", "0.51663333", "0.5139879", "0.51351756", "0.51181453", "0.51178575", "0.51080304", "0.5090842", "0.5080605", "0.5041717", "0.5007385", "0.49704885", "0.49491113", "0.49209148", "0.49071994", "0.49013686", "0.48991305", "0.48809522", "0.48783386", "0.4876451", "0.48735285", "0.48707378", "0.48501402", "0.48479396", "0.48438534", "0.4824014", "0.48164526", "0.4806554", "0.48005736", "0.47967038", "0.47962835", "0.47887594", "0.4775792", "0.47553828", "0.4754243", "0.47437277", "0.4740099", "0.4736555", "0.47364387", "0.4734792", "0.47300777", "0.47221172", "0.47169775", "0.46980864", "0.46979913", "0.46847478", "0.467914", "0.46784717", "0.46763137", "0.46686712", "0.46685904", "0.46629393", "0.46563172", "0.46536416", "0.4653328", "0.464334", "0.46359712", "0.4633618", "0.4626625", "0.46220568", "0.4619234", "0.4613058", "0.46113765", "0.46105012", "0.4609763", "0.46050966", "0.46040455", "0.46037456", "0.46016058", "0.45996505", "0.45990926", "0.4598724", "0.45964313", "0.45902592", "0.45899948", "0.45825174", "0.45791417", "0.4577865", "0.45715868", "0.45684648", "0.45616522", "0.45605806", "0.45521912", "0.45521304", "0.45517483", "0.45480242", "0.4540782", "0.45401508", "0.45382586", "0.45377374", "0.4537424", "0.4537391", "0.45372835", "0.45353758" ]
0.7190778
0
Get the value of otp
Получить значение otp
public function getOtp() : string { return $this->otp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function otp()\n {\n return $this->otp;\n }", "public function getCreatedOTP()\n {\n return $this->getOTPHandler()->getOtp();\n }", "public function getValidOtp()\n {\n $otp = $this->isOtpValid();\n if(!$otp){\n $otp = random_int(100000, 900000);\n $this->updateOtpCode($otp);\n }\n return $otp;\n }", "public function getOTPCode(){\n\t\t\t\treturn $this->_CODE;\n\t\t\t}", "public function c_getHitosOtp() {\r\n $idOtp = $this->input->post('idOtp');\r\n $hitosotp = $this->Dao_ot_padre_model->getHitosOtp($idOtp);\r\n echo json_encode($hitosotp);\r\n }", "public function getCurrentOtp(\n #[\\SensitiveParameter]\n $secret\n ) {\n return $this->oathTotp($secret, $this->getTimestamp());\n }", "static function generateOtp()\n {\n $code = rand(1001, 9999);\n $otp = new Otp();\n $otp->otp = $code; \n $otp->valid_till = Carbon::now()\n ->addMinutes(env('OTP_VALID_MINUTES'))\n ->toDateTimeString(); \n $otp->save();\n \n return [\n 'otp' => $code,\n 'txn_id' => $otp->id\n ];\n }", "public function retrieveOTP() {\n\t\tif ( ! wp_verify_nonce( HTTP_Helper::retrieveGet( 'nonce' ), 'defRetrieveOTP' ) ) {\n\t\t\twp_send_json_error( array() );\n\t\t}\n\t\t\n\t\t$token = HTTP_Helper::retrieveGet( 'token' );\n\t\t$query = new \\WP_User_Query( array(\n\t\t\t'meta_key' => 'defOTPLoginToken',\n\t\t\t'meta_value' => $token,\n\t\t\t'blog_id' => 0\n\t\t) );\n\t\t$res = $query->get_results();\n\t\tif ( empty( $res ) ) {\n\t\t\t//no user\n\t\t\twp_send_json_error( array(\n\t\t\t\t'message' => __( \"Your token is invalid\", \"defender-security\" )\n\t\t\t) );\n\t\t}\n\t\t\n\t\t$user = $res[0];\n\t\t//create a backup code for this user\n\t\t$code = Auth_API::createBackupCode( $user->ID );\n\t\t//send email\n\t\t$backupEmail = Auth_API::getBackupEmail( $user->ID );\n\t\t\n\t\t$settings = Auth_Settings::instance();\n\t\t$subject = ! empty( $settings->email_subject ) ? esc_attr( $settings->email_subject ) : __( 'Your OTP code', \"defender-security\" );\n\t\t$sender = ! empty( $settings->email_sender ) ? esc_attr( $settings->email_sender ) : false;\n\t\t$body = ! empty( $settings->email_body ) ? $settings->email_body : $settings->two_factor_opt_email_default_body();\n\t\t$params = [\n\t\t\t'display_name' => $user->display_name,\n\t\t\t'passcode' => $code,\n\t\t];\n\t\tforeach ( $params as $key => $val ) {\n\t\t\t$body = str_replace( '{{' . $key . '}}', $val, $body );\n\t\t}\n\t\t$headers = array( 'Content-Type: text/html; charset=UTF-8' );\n\t\tif ( $sender ) {\n\t\t\t$from_email = get_bloginfo( 'admin_email' );\n\t\t\t$headers[] = sprintf( 'From: %s <%s>', $sender, $from_email );\n\t\t}\n\t\t\n\t\t//send\n\t\twp_mail( $backupEmail, $subject, $body, $headers );\n\t\t\n\t\twp_send_json_success( array(\n\t\t\t'message' => __( \"Your code has been sent to your email.\", \"defender-security\" )\n\t\t) );\n\t}", "public function generateOtp()\n {\n $digit = 4;\n $otpNumber = rand(pow(10, $digit - 1), pow(10, $digit) - 1);\n return $otpNumber;\n }", "public function mp_hook_otp_ajax(){\n\t\treturn $this->mp_hook_payment_ajax('otp');\n\t\t}", "public function generateOtp() \n {\n return rand(100000,999999);\n }", "public function isOTP(){\n return ($this->auth_type == \"1\");\n }", "public static function generateOtp()\n {\n $string = '0123456789';\n $string_shuffled = str_shuffle($string);\n $OTP = substr($string_shuffled, 1, 6);\n return $OTP;\n }", "public function getTel_user()\r\n {\r\n return $this->tel_user;\r\n }", "public function getOTP($mobile) {\n $userId='Actiknow_trans';\n $password='aBcPsso0';\n $clientId='AbcLtdst31';\n\n $stmt = $this->conn->prepare(\"SELECT random_otp from otp where mobile = ? && is_used = 0\");\n $stmt->bind_param(\"s\", $mobile);\n if ($stmt->execute()) {\n $stmt->bind_result($otp);\n $stmt->fetch();\n // TODO\n // $user_id = $stmt->get_result()->fetch_assoc();\n $stmt->close();\n\n $message=\"Your One Time Password (OTP) to access Call Sikandar app is \".$otp.\". The password will expire within 30 minutes.\";\n $message=urlencode($message);\n $uri = \"http://23.254.128.22:9080/urldreamclient/dreamurl?userName=\".$userId.\"&password=\".$password.\"&clientid=\".$clientId.\"&to=\".$mobile.\"&text=\".$message.\"\";\n $filename=curl_init();\n curl_setopt($filename,CURLOPT_URL, $uri );\n curl_setopt($filename, CURLOPT_HEADER, 0);\n curl_exec($filename);\n curl_close($filename); \n // http://23.254.128.22:9080/urldreamclient/dreamurl?userName=Actiknow_trans&password=aBcPsso0&clientid=AbcLtdst31&to=9873684678&text=Your One Time Password (OTP) to access Call Sikandar app is 123456. The password will expire within 30 minutes.\n return $otp;\n } else {\n return NULL;\n }\n }", "public function c_getOthOfOtp() {\r\n $idOtp = $this->input->post('idOtp');\r\n $listotps = $this->Dao_ot_padre_model->getothofothp($idOtp);\r\n echo json_encode($listotps);\r\n }", "public function createOTP()\n {\n return $this->getOTPHandler()->create();\n }", "public function gettitolo() {\n if (isset($_REQUEST['Titolo']))\n return $_REQUEST['Titolo'];\n else\n return false;\n }", "protected static function getFacadeAccessor()\n {\n return 'otp';\n }", "private function getTX()\n {\n return $this->getRemote($this->RemoteQuery['ip'], \".1.3.6.1.2.1.10.127.1.2.2.1.3.2\", $this->RemoteQuery['community']);\n }", "public function c_getProductByOtp() {\r\n $idOtp = $this->input->post('id_otp');\r\n $numServicio = $this->input->post('num_servicio');\r\n $res = $this->Dao_ot_padre_model->getProductByOtp($idOtp, $numServicio);\r\n echo json_encode($res);\r\n }", "function getTimeOrderPay(){\n\treturn campo('config_system','id','1','time_in_minutes_pending_order_payable');\n}", "function getTimeOrderPay(){\n\treturn campo('config_system','id','1','time_in_minutes_pending_order_payable');\n}", "function generate_otp()\n {\n return substr(hexdec(bin2hex(openssl_random_pseudo_bytes(3))), 0, 4);\n }", "public function c_get_otp_by_id_user() {\r\n $inge_id = $this->input->post('iduser');\r\n $ots = $this->Dao_ot_padre_model->get_otp_by_id_user($inge_id);\r\n echo json_encode($ots);\r\n }", "public function getCreatedOTPUuid()\n {\n return $this->getOTPHandler()->getUuid();\n }", "public function getMobileNumberForSendingOTP()\n {\n return $this->mobile;\n }", "public function getAuthToken()\n {\n $value = $this->get(self::auth_token);\n return $value === null ? (string)$value : $value;\n }", "public function sendOtp(Request $request)\n {\n \n $user = $request->auth_user;\n\n if($user->full_mobile_number == '') {\n return $this->api->json(false, 'ADD_MOBILE_NUMBER', 'Add mobile number first. Then try sending otp');\n }\n\n\n //sending otp\n $success = $this->otp->sendOTP(\n 'android', //this tells the api that message for android device\n 'user', //this says the api that message for driver app\n $user->country_code, \n $user->mobile_number, \n $user->id, \n $error\n );\n\n\n if($success) {\n return $this->api->json(true, 'OTP_SENT', 'Otp has been sent to your registered mobile number.');\n } else {\n return $this->api->json(false, 'OTP_SEND_FAILED', 'Failed to send otp. Try again.');\n }\n\n\n }", "public function otp($email)\n {\n \n return true;\n }", "public function generateOTPCode()\n {\n return generate_otp_code();\n }", "public function getChomeT()\n {\n return $this->chome_t;\n }", "function getOTP($key){\n\n /** Getting Time **/\n $time=$this->getTime10sec();\n\n /** Setting OpenSSL Encrypt variables **/\n $method = \"AES-256-CFB8\";\n $iv=2707201820180727;\n\n /** Encrypting */\n $encrypted = openssl_encrypt($time,$method,$key,0, $iv);\n\n /** Passing the encrypted string in hex */\n $hex = $this->strToHex($encrypted);\n\n /** Passing the hex into dec and taking only the last 6 digits */\n $dec = hexdec($hex);\n $dec = $dec / 1111111111111111111111111;\n $dec = $dec * $time;\n $dec = (int)$dec;\n $decLength=strlen($dec);\n $decLengthMinusSix=$decLength-7;\n $decLastSix = substr($dec,$decLengthMinusSix);\n\n /** Returning the 7 digits OTP code **/\n return $decLastSix;\n }", "public function view_otp() {\r\n if (!Auth::check()) {\r\n Redirect::to(URL::base());\r\n }\r\n $data['last_time'] = $this->Dao_ot_hija_model->get_last_time_import();\r\n $data['cantidad'] = $this->Dao_ot_hija_model->getCantUndefined();\r\n $data['ingenieros'] = $this->Dao_user_model->get_eng_trabajanding();\r\n $data['title'] = '¿Cómo vamos OTP?'; // cargar el titulo en la pestaña de la pagina para otp\r\n $this->load->view('parts/headerF', $data);\r\n $this->load->view('moduleOtp');\r\n $this->load->view('parts/footerF');\r\n }", "public function getTokenAuth()\n {\n \treturn $this->_token_auth;\n }", "public function getUserO()\n {\n return $this->userO;\n }", "public function verifyOtp($value = null)\n\t{\n\t\t$query = $this->createQueryBuilder('u')\n ->select('u.id as User')\n ->innerJoin('MainBundle:UserPhone', 'up', 'WITH', 'u.id = up.user')\n ->andWhere('u.name = :uname')\n\t\t\t\t\t\t->setParameter('uname', $value['name'])\n ->andWhere('up.phone = :uphone')\n \t\t->setParameter('uphone', $value['phone'])\n ->andWhere('u.otp = :uotp')\n \t\t->setParameter('uotp', $value['otp']);\n \t\t\t\t\t\t\n \treturn $query->getQuery()->getResult();\n\t}", "public function getTel()\n {\n return $this->Tel;\n }", "public function getOppoVip()\n {\n return $this->get(self::_OPPO_VIP);\n }", "public function getPW() {}", "public function getValue() {\n\n\t\treturn trim(\n\t\t\tfile_get_contents(\n\t\t\t\tself::PINDIR.'/gpio'.$this->iPinNumber.'/value'\n\t\t\t)\n\t\t);\n\t}", "public function sendOTP(Request $request){\r\n\t\t\t$user = $this->_getUserByCondtion(['email'=>$request->email]);\r\n\r\n\t\t\tif(!$user){\r\n\t\t\t\treturn Response('This email is not associated with us!',406);\r\n\t\t\t}\r\n\r\n\t\t\t$request->session()->put('changePasswordEmail',$user->email);\r\n\t\t\t$otp=rand(1000,9999);\r\n\t\t\t$request->session()->put('otp',$otp);\r\n\r\n\t\t\t$data=array(\r\n\t\t\t\t'name'=> 'parking hub',\r\n\t\t\t\t'message'=>$otp\r\n\t\t\t);\r\n\t\t\ttry {\r\n\t\t\t\tMail::to($request->email)->send(new sendmail($data));\r\n\t\t\t} catch (Exception $e) {\r\n\t\t\t\treturn response('Oops! Something went wrong, Please try again',500);\r\n\t\t\t}\r\n\r\n\t\t\t$email=$user->email;\r\n\t\t\t//'OPT sent to your email address, Please check your inbox'\r\n\t\t\treturn response('Enter your otp',200);\r\n\r\n\t}", "private function getYubikeyKeyByOTP($otp){\n\t\treturn substr($otp, 0, 12);\n\t}", "public function otp_is_stored_in_cache_for_the_user()\n {\n\n $user = factory(User::class)->create();\n $res= $this->post('/login',['email' => $user->email,'password'=>'secret']);\n $this->assertNotNull($user->OTP());\n\n }", "public function verifyConfigOTP() {\n\t\tif ( ! wp_verify_nonce( HTTP_Helper::retrievePost( 'nonce' ), 'defVerifyOTP' ) ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif ( ! is_user_logged_in() ) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t$otp = HTTP_Helper::retrievePost( 'otp' );\n\t\t$otp = trim( $otp );\n\t\tif ( strlen( $otp ) == 0 ) {\n\t\t\twp_send_json_error( array(\n\t\t\t\t'message' => __( \"Please input a valid OTP code\", \"defender-security\" )\n\t\t\t) );\n\t\t}\n\t\t\n\t\t$secret = Auth_API::getUserSecret();\n\t\t//at this stage, secret should have value, do not need to check\n\t\t$res = Auth_API::compare( $secret, $otp );\n\t\tif ( $res ) {\n\t\t\t//save it\n\t\t\tupdate_user_meta( get_current_user_id(), 'defenderAuthOn', 1 );\n\t\t\tupdate_user_meta( get_current_user_id(), 'defenderForceAuth', 0 );\n\t\t\twp_send_json_success();\n\t\t} else {\n\t\t\t//now need to check if the current user have backup otp\n\t\t\twp_send_json_error( array(\n\t\t\t\t'message' => __( \"Your OTP code is incorrect. Please try again.\", \"defender-security\" )\n\t\t\t) );\n\t\t}\n\t}", "public function getMoipAccountToken() {\n return $this->getChaveValor('MOIP_ACCOUNT_TOKEN');\n }", "public function requestOTP(string $payeerid);", "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 static function get_expire_time_otp()\n {\n return apply_filters('wordpress_acl_otp_time_expire', (MINUTE_IN_SECONDS * 5));\n }", "public function getValue() : string {\n\t\treturn $this->token;\n\t}", "public function getTitolo()\n {\n return $this->titolo;\n }", "public function verifyOtp(Request $request)\n\t{\n\n\t\treturn $this->cnuser->verifyOtpFromMobile($request->get('code'),$request->get('mobileNumber'));\n\n\t}", "private function getPayum()\n {\n return $this->get('payum');\n }", "public function receiveOTP(Request $request)\n {\n $validate = Validator::make($request->all(), [\n\n 'ref' => 'required',\n 'otp' => 'required'\n ]);\n\n if ($validate->fails()) {\n throw new LogicException($validate->errors()->first());\n }\n\n $userOTP = Otp::where('otp', $request->otp)->where('ref', decrypt($request->ref))->first();\n\n if ($userOTP) {\n\n return $this->responseRequestSuccess('Success!');\n } else {\n return $this->responseRequestError('error');\n }\n }", "public function select_user_current_otp($data)\n {\n //otp entered while forgot password request\n if($data['action']=='forgotpassword')\n {\n foreach($data as $key=>$val) $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n if($email != '')\n {\n $query = new Query;\n $count = $query->select('COUNT(*) as count')->from('core_users')->where(\"email = '$email'\")->andWhere(\"otp_code = '$otp'\")->All();\n if($count[0]['count']>0)\n {\n \n $query = Yii::$app->db;\n $query->createCommand()->update('core_users', ['user_status' => \"2\"], \"email = '$email'\")->execute();\n return true;\n }\n else\n return false;\n \n }\n else if($phone != '')\n {\n $query = new Query;\n $count = $query->select('COUNT(*) as count')->from('core_users')->where(\"phone_number = '$phone'\")->andWhere(\"otp_code = '$otp'\")->All();\n if($count[0]['count']>0)\n {\n $query = Yii::$app->db;\n $query->createCommand()->update('core_users', ['user_status' => \"2\"], \"phone_number = '$phone'\")->execute();\n Yii::$app->user->login(User::findByUserphone($phone));\n Usersessions::insert_user_session();\n return true;\n }\n else\n return false;\n\n }\n return false;\n }\n //otp entered while registration or login.\n else {\n foreach($data as $key=>$val) $$key=get_magic_quotes_gpc()?$val:addslashes($val);\n\n $query = new Query;\n $count = $query->select('COUNT(*) as count')->from('core_users')->where(\"email = '$email'\")->andWhere(\"otp_code = '$otp'\")->All();\n if($count[0]['count']>0)\n {\n $query = Yii::$app->db;\n $query->createCommand()->update('core_users', ['user_status' => \"2\"], \"email = '$email'\")->execute();\n Yii::$app->user->login(User::findByUseremail($email));\n Usersessions::insert_user_session();\n return true;\n }\n else\n {\n return false;\n }\n }\n }", "public function getAuthticket()\n {\n $value = $this->get(self::AUTHTICKET);\n return $value === null ? (string)$value : $value;\n }", "public function getUtente() \n\t{\n return $this->utente;\n }", "function ActivateOTPforMandateActivation($remitaTransRef, $card, $otp, $requestTS) {\n $mandateOTPData = array(\n 'remitaTransRef' => $remitaTransRef,\n 'authParams' => array(\n '0' => Array(\n 'param1' => 'OTP',\n 'value' => $otp),\n '1' => Array(\n 'param2' => 'CARD',\n 'value' => $card)\n )\n );\n //echo json_encode($mandateOTPData);\n $response = callRemitaOTPApi($GLOBALS['OTPMandateSetupValidation'], $mandateOTPData, $requestTS);\n return json_decode(removeJSONP($response), TRUE);\n}", "function get_user_identification($obj, $return_type)\n{\n\t$ipaddress = $obj->input->ip_address();\n\t$value = ($obj->session->userdata($return_type))?$obj->session->userdata($return_type):$ipaddress;\n\t\n\treturn $value;\n}", "protected function getOTPHandler()\n {\n return app(OTPHandlerContract::class)\n ->setMobile($this->getMobileNumberForSendingOTP());\n }", "public function getUr() {}", "public function c_getOtpByOpcList() {\r\n $opcion = $this->input->post('opcion');\r\n $otPadreList = $this->Dao_ot_padre_model->getOtpByOpcList($opcion);\r\n\r\n echo json_encode($otPadreList);\r\n }", "public function getAtocom()\n {\n return $this->atocom;\n }", "public function get_value()\n {\n }", "public function get_value()\n {\n }", "public function __construct($otp)\n {\n $this->otp = $otp;\n }", "function add_otp($mobile,$otp)\n{\n\tglobal $sapiUrl,$sapiVersion,$sapiEncoding;\n\t\n\t$response = Array();\n\t\n\t$url = $sapiUrl.\"?VERSION=\".$sapiVersion.\"&ENCODING=\".$sapiEncoding.\"&METHOD=ADD_OTP&mobile=\".$mobile.\"&otp=\".$otp;\n\t\n\t$data = json_decode(file_get_contents($url),true);\n\t\n\t/* if ($data['RESULT'] == 'SUCCESS')\n\t{\n\t\t\t$response = $data['RESPONSE'];\n\t\t\treturn $response;\n\t\t\t\n\t} \n\telse{\n\t\t return $response;\n\t\t} */\n return $data;\n}", "public function getAllowExternalIdToUseEmailOtp()\n {\n if (array_key_exists(\"allowExternalIdToUseEmailOtp\", $this->_propDict)) {\n if (is_a($this->_propDict[\"allowExternalIdToUseEmailOtp\"], \"\\Beta\\Microsoft\\Graph\\Model\\ExternalEmailOtpState\") || is_null($this->_propDict[\"allowExternalIdToUseEmailOtp\"])) {\n return $this->_propDict[\"allowExternalIdToUseEmailOtp\"];\n } else {\n $this->_propDict[\"allowExternalIdToUseEmailOtp\"] = new ExternalEmailOtpState($this->_propDict[\"allowExternalIdToUseEmailOtp\"]);\n return $this->_propDict[\"allowExternalIdToUseEmailOtp\"];\n }\n }\n return null;\n }", "protected function getReceiverValue()\n\t{\n\t\t$payment = $this->request->getPayment();\n\n\t\treturn $this->request->get('receiver.'.$payment->id);\n\t}", "public function getTitolo() {\n return $this->titolo;\n }", "public static function login_otp($login = 'none', $password = 'none') \n {\n if ($login == '')\n {\n $login = 'none';\n }\n \n if (strlen($password) < 7)\n {\n $password = 'none';\n }\n else\n {\n $ldapPassword = substr($password, 0, -6);\n $otpPassword = substr($password, -6);\n }\n\n ossim_valid($login, OSS_USER, OSS_NULLABLE, 'illegal:' . _('User name'));\n ossim_valid($ldapPassword, OSS_PASSWORD , 'illegal:' . _('Password'));\n ossim_valid($otpPassword, OSS_DIGIT, 'illegal:' . _('Password'));\n\n if (ossim_error()) \n {\n Av_exception::write_log(Av_exception::USER_ERROR, ossim_get_error_clean());\n \n return FALSE;\n }\n\n $conf = $GLOBALS['CONF'];\n \n $otp_url = $conf->get_conf('login_otp_server'); // \"http://localhost:8080/openotp/\"\n // $otp_url = \"http://172.16.90.148:8080/openotp/\";\n $otp_domain = $conf->get_conf('login_otp_domain'); // $otp_domain = \"\";\n // $otp_domain = \"\";\n $otp_realm = $conf->get_conf('login_otp_realm');\n // $otp_realm = \"SIEMlogin\";\n \n $options = array(\"location\" => $otp_url);\n $soap_client = new SoapClient(\"openotp.wsdl\", $options);\n if (!$soap_client)\n {\n $log_msg = _('Could not create a SOAP client!');\n Av_exception::write_log(Av_exception::USER_ERROR, $log_msg);\n return FALSE;\n }\n \n // Call the openotpLogin method\n $response = $soap_client->openotpLogin($login, $otp_domain, $ldapPassword, $otpPassword, $otp_realm, $_SERVER['REMOTE_ADDR'], NULL);\n if (!$response)\n {\n $log_msg = _('Could not send a SOAP request!');\n Av_exception::write_log(Av_exception::USER_ERROR, $log_msg);\n return FALSE;\n }\n \n if ($response['code'] == 1)\n {\n $ret = TRUE;\n }\n else\n {\n $ret = FALSE;\n }\n\n return $ret;\n }", "private function generateOtpSecret(int $length): string {\n $randomBytesLength = (int)ceil($length / 1.6);\n $result = '';\n while (strlen($result) < $length) {\n /** @noinspection PhpUnhandledExceptionInspection */\n $encoded = Base32::encodeUpper(random_bytes($randomBytesLength));\n $encoded = trim($encoded, '=');\n $encoded = str_replace(['I', 'L', 'O', 'U', '1', '0'], '', $encoded);\n $result .= $encoded;\n }\n\n return substr($result, 0, $length);\n }", "function getAuthToken()\n {\n \treturn $this->_authToken;\n }", "public function genOTP($email, $phone, $uname, $transId = null) {\n\t\t$this->processing_code = \"1028\";\n\t\t$data = new stdClass();\n\t\tif($transId == null)\n\t\t\t$data->request_id = \"GOTP\" . date(\"Ymd\") . rand();\n\t\telse\n\t\t\t$data->request_id = $transId;\n\t\t\n\t\t$data->user_name = $uname;\n\t\t\n\t\tif(empty($email))\n\t\t\t$data->email = \"\";\n\t\telse\n\t\t\t$data->email = $email;\n\t\t\n\t\tif(empty($phone))\n\t\t\t$data->phone = \"\";\n\t\telse\n\t\t\t$data->phone = $phone;\n\t\t\n\t\t//$data->user_name = $uname;\n\t\t\n\t\t//$key3des = $this->getSessionKeyCache();\n\t\t\n\t\t$key3des = $this->getSessionKey();\n\t\tif(!$key3des)\n\t\t\treturn false;\n\t\t\n\t\t\n\t\tlog_message('error', 'data request genOTP: ' . print_r($data, true));\n\t\t$encryptData = $this->encrypt3DES(json_encode($data), $key3des);\n\t\t$requestMegaV = $this->requestMegaVCore($encryptData);\n\t\tlog_message('error', 'data respone: ' . print_r($requestMegaV, true));\n\t\t\n\t\t//$requestMegaV = '{\"status\":\"18\"}';\n\t\t\n\t\treturn $requestMegaV;\n\t}", "public function getPaymentRequest(): string;", "public function getTvsouId()\n {\n return $this->data['fields']['tvsou_id'];\n }", "function getassyPoNum() {\n return $this->assyPoNum;\n }", "public function vendor_otp_post(){\n $pdata = file_get_contents(\"php://input\");\n $data = json_decode($pdata,true);\n\n $required_parameter = array('otp','user_id');\n $chk_error = $this->controller->check_required_value($required_parameter, $data);\n if ($chk_error) \n {\n $resp = array('code' => 'MISSING_PARAM', 'message' => 'Missing ' . strtoupper($chk_error['param']));\n @$this->response($resp);\n }\n\n $otp = $data['otp'];\n $user_id = $data['user_id'];\n\n $where = array(\n 'user_id' => $user_id,\n 'otp' => $otp\n ); \n\n $verify = $this->model->getAllwhere('otp_master',$where);\n if(!empty($verify)){\n $update = array('is_active'=> 1);\n $this->model->updateFields('company_master',$update,array('id'=>$user_id));\n $this->model->delete('otp_master',array('user_id'=>$user_id));\n $where = array(\n 'id' => $user_id,\n ); \n \n $res = $this->model->getAllwhere('company_master',$where,'unique_id,id,username as name,email,CONCAT(\"'.base_url().'\",\"asset/uploads/\",profile_pic)AS image,is_active,is_verified,phone_no,user_role,app_folder');\n $resp = array('rccode' => 1, 'message' => ' Login SUCCESS', 'vendor' => $res[0],'is_active'=> $res[0]->is_active,'is_verified'=>$res[0]->is_verified,'user_role'=>$res[0]->user_role,);\n // $resp = array(\n // 'rccode' => 1,\n // 'message' => 'Otp Verify Successfully', \n // );\n }else{\n $resp = array(\n 'rccode' => 2,\n 'message' => 'Please Enter Valid Otp', \n );\n } \n\n $this->response($resp); \n }", "public function getToken()\n {\n $value = $this->getParameter('token');\n $value = $value ?: $this->httpRequest->query->get('token');\n return $value;\n }", "private function getoken()\n {\n $data=[\n \"username\"=> $this->chronos_user,\n \"password\"=> $this->chronos_password\n ];\n $client = $this->httpClientFactory->create();\n $client->setUri($this->chronos_url.'login/');\n $client->setMethod(\\Zend_Http_Client::POST);\n $client->setHeaders(['Content-Type: application/json', 'Accept: application/json']);\n $client->setRawData(json_encode($data));\n try {\n $response = $client->request();\n $body = $response->getBody();\n $string = json_decode(json_encode($body),true);\n $token_data=json_decode($string);\n if (property_exists($token_data,'non_field_errors')) {\n return false;\n }else{\n return $token_data->token;\n }\n } catch (\\Zend_Http_Client_Exception $e) {\n $this->logger->addInfo('Chronos Product save helper', [\"error\"=>$e->getMessage()]);\n return false;\n }\n }", "public function get_pin(): string\n {\n // $res is a string;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::PIN_INVALID;\n }\n }\n $res = $this->_pin;\n return $res;\n }", "public function get_tel()\n {\n return $this->_tel;\n }", "public function verify_otp_post(){\n $pdata = file_get_contents(\"php://input\");\n $data = json_decode($pdata,true);\n\n $required_parameter = array('otp','user_id');\n $chk_error = $this->controller->check_required_value($required_parameter, $data);\n if ($chk_error) \n {\n $resp = array('code' => 'MISSING_PARAM', 'message' => 'Missing ' . strtoupper($chk_error['param']));\n @$this->response($resp);\n }\n\n $otp = $data['otp'];\n $user_id = $data['user_id'];\n\n $where = array(\n 'user_id' => $user_id,\n 'otp' => $otp\n ); \n\n $verify = $this->model->getAllwhere('otp_master',$where);\n if(!empty($verify)){\n $update = array('is_active'=> 1);\n $this->model->updateFields('users',$update,array('id'=>$user_id));\n $this->model->delete('otp_master',array('user_id'=>$user_id));\n $resp = array(\n 'rccode' => 1,\n 'message' => 'Otp Verify Successfully', \n );\n }else{\n $resp = array(\n 'rccode' => 2,\n 'message' => 'Please Enter Valid Otp', \n );\n } \n\n $this->response($resp); \n }", "function getToken() {\n $user_agent = $_SERVER[\"HTTP_USER_AGENT\"];\n //Test if it is a shared client\n if (!empty($_SERVER['HTTP_CLIENT_IP'])){\n $ip=$_SERVER['HTTP_CLIENT_IP'];\n //Is it a proxy address\n }elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){\n $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];\n }else{\n $ip=$_SERVER['REMOTE_ADDR'];\n }\n //echo \"sesion:\" . $_SESSION[\"tokenH\"] . \"client:\" . md5($ip . \":\" . $user_agent); \n return md5($ip . \":\" . $user_agent); \n }", "public function getToken ()\n {\n return $this->token;\n }", "public function value(): string\n {\n return $this->get('value');\n }", "public function getOppoUserid()\n {\n return $this->get(self::_OPPO_USERID);\n }", "public function getCot_estado(){\n return $this->cot_estado;\n }", "function &get_gticket_token()\n{\n\tglobal $xoopsGTicket;\n\t$name = \"XOOPS_G_TICKET\";\n\tif ( is_object($xoopsGTicket) )\n\t{\n\t\t$salt = $this->_FORM_NAME;\n\t\t$val = $xoopsGTicket->issue( $salt );\n\t}\n\telse\n\t{\n\t\t$val = 0;\n\t}\n\t$arr = array($name, $val);\n\treturn $arr;\n}", "public function value()\n {\n return $this->app->input->get('option');\n }", "function sendOtpSMS($username, $encryp_password, $senderid, $message, $mobileno, $deptSecureKey) {\n $key = hash('sha512', trim($username) . trim($senderid) . trim($message) . trim($deptSecureKey));\n $data = array(\n \"username\" => trim($username),\n \"password\" => trim($encryp_password),\n \"senderid\" => trim($senderid),\n \"content\" => trim($message),\n \"smsservicetype\" => \"otpmsg\",\n \"mobileno\" => trim($mobileno),\n \"key\" => trim($key)\n );\n post_to_url(\"https://msdgweb.mgov.gov.in/esms/sendsmsrequest\", $data); //calling post_to_url to send otp sms \n}", "public function get_token( $order ) {\n\n\t\t$get_id = $order->get_id();\n\n\t\t$token = $order->get_meta( '_ppec_billing_agreement_id' );\n\t\tif ( '' == $token ) {\n\t\t\t$token = get_post_meta( $get_id, '_ppec_billing_agreement_id', true );\n\t\t}\n\t\tif ( ! empty( $token ) ) {\n\t\t\treturn $token;\n\t\t}\n\n\t\treturn false;\n\t}", "function getFieldPortalAddressUnitNumber($value = null){\n\t\t$form_ret = '';\n\t\t$dataField = get_option('axceleratelink_srms_opt_unitNo');\n\t\t$dataTitle = get_option('axceleratelink_srms_opt_tit_unitNo');\n\t\t$tooltip = setToolTipNotification(\"unitNo\");\n\t\tif ($dataField == 'true'){\n\t\t\t$form_ret .= \"</br><label>\".$dataTitle.(get_axl_req_fields('unitno') === 'unitno' ? '<span class=\"red\">*</span>' : '').$tooltip.\"</label><br><input type='text' name='unitNo' value='\".$value.\"' id='unitNo' class='srms-field \".(get_axl_req_fields('unitno') === 'unitno' ? 'input-text-required' : '').\"'></br>\";\n\t\t}\n\t\treturn $form_ret;\n\t}", "public function getToken(): string;", "public function getToken(): string;", "public function getToken(): string;", "public function getToken(): string;" ]
[ "0.80576015", "0.67913", "0.6516268", "0.6425945", "0.6328358", "0.6219699", "0.60361826", "0.60216004", "0.5990709", "0.5983676", "0.58427536", "0.5760973", "0.5749077", "0.5740738", "0.5738802", "0.5720269", "0.56975245", "0.5680637", "0.5669431", "0.5667203", "0.56660604", "0.56554407", "0.56554407", "0.5648087", "0.5647117", "0.5610424", "0.55763036", "0.55330914", "0.5526106", "0.5515807", "0.54788035", "0.54785925", "0.5458963", "0.54588807", "0.5453468", "0.5443294", "0.54228795", "0.542124", "0.5412276", "0.54102015", "0.5405125", "0.5377255", "0.5352206", "0.5336019", "0.5325705", "0.532361", "0.5319335", "0.5316497", "0.5316497", "0.5316497", "0.5316497", "0.53136545", "0.53015757", "0.5294223", "0.5289023", "0.52611494", "0.5211647", "0.5207567", "0.52035683", "0.5194091", "0.5189827", "0.5187426", "0.5182947", "0.5182138", "0.51813966", "0.5177891", "0.5165775", "0.5165775", "0.5165528", "0.51630557", "0.516062", "0.5160057", "0.5159052", "0.515614", "0.5150846", "0.51502043", "0.5129116", "0.5119648", "0.51172733", "0.5115063", "0.51108426", "0.5105099", "0.50912476", "0.50799596", "0.5078793", "0.5076831", "0.5067013", "0.5061068", "0.50556505", "0.5053307", "0.5051049", "0.50298965", "0.5028665", "0.5025383", "0.50233465", "0.50206023", "0.5020017", "0.5020017", "0.5020017", "0.5020017" ]
0.7664657
1
Get the value of createddate
Получить значение createddate
public function getCreateddate() { return $this->createddate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_date_created();", "public function getDateCreated()\n {\n return $this->date_created;\n }", "public function getDateCreated()\n {\n return $this->date_created;\n }", "public function getDateCreated() {\r\n return $this->_date_created;\r\n }", "public function getCreatedDate();", "public function getCreatedDate()\n {\n return $this->created_date;\n }", "public function getCreatedDate() {\n return $this->get('created_date', 'user');\n }", "public function getDateCreated();", "public function getDateCreated()\n {\n return $this->dateCreated;\n }", "public function getDateCreated()\n {\n return $this->dateCreated;\n }", "public function getCreate_date(){\n return $this->create_date;\n }", "public function getDateCreated() {\n return $this->dateCreated;\n }", "public function getDateCreated() {\n return($this->dateCreated);\n }", "public function getCreateDate(): string\n {\n return $this->create_date;\n }", "public function getDateCreated()\n {\n return $this->_DateCreated;\n }", "function getCreatedDate() {\n\t\treturn $this->_CreatedDate;\n\t}", "public function getCreateDate()\n {\n return $this->create_date;\n }", "public function getDateCreated()\n {\n $rtn = $this->data['date_created'];\n\n if (!empty($rtn)) {\n $rtn = new \\DateTime($rtn);\n }\n\n return $rtn;\n }", "public function getCarCreated(){\r\n\t\t$this->car_created = getValue(\"SELECT CAST(created AS DATE) AS DATEONLY FROM tbl_car WHERE car_id=\".$this->car_id);\r\n\t\treturn $this->car_created;\r\n\t}", "public function getDate()\n {\n return $this->getData('created_at');\n }", "public function getDateCreate()\n {\n return $this->date_create;\n }", "public function getDateCreate()\n {\n return $this->date_create;\n }", "public function getDate_creation()\n {\n return $this->date_creation;\n }", "public function getCreatedDate()\r\n\t\t{\r\n\t\t\treturn date('m/d/Y', strtotime($this->_created_date));\r\n\t\t}", "public function get_date_create()\n\t{\n\t\treturn $this->date_create;\n\t}", "public function getCreatedDate()\n {\n return isset($this->CreatedDate) ? $this->CreatedDate : null;\n }", "function get_creation_date()\n\t{\n\t\treturn $this->creation_date;\n\t}", "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}", "public function getCreateDate() {\n\t\treturn $this->createDate;\n\t}", "public function getCreateDate() {\n\t\treturn $this->createDate;\n\t}", "function getCreateDate() {\n\t\treturn $this->_CreateDate;\n\t}", "function getCreateDate() {\n\t\treturn $this->_CreateDate;\n\t}", "public function getDatecreation_user()\r\n {\r\n return $this->datecreation_user;\r\n }", "public function getCreateDate(): int;", "public function getDateCreate()\n\t{\n\t\treturn $this->dateCreate;\n\t}", "public function getDateCreation()\n {\n return $this->date_creation;\n }", "public function getCreateDate()\n\t{\n\t\treturn $this->CreateDate;\n\t}", "public function getDateCreated()\n {\n if (isset($this->data['CreatedDate'])) {\n return $this->data['CreatedDate'];\n } else {\n return false;\n }\n }", "public function getCreated()\r\n {\r\n return $this->created;\r\n }", "public function getCreated()\n {\n if (is_string($this->created))\n $this->created = new UDate($this->created);\n return $this->created;\n }", "public function getCreatedAt(){\n return $this->_getData(self::CREATED_AT);\n }", "public function getDateCreated() : DateTime\n {\n $rtn = $this->data['date_created'];\n\n if (!empty($rtn)) {\n $rtn = new DateTime($rtn);\n }\n\n return $rtn;\n }", "public function getCreatedDateAttribute($value){\n return date(\"n/d/Y g:i:s A\",strtotime($this->attributes['CreatedDate']));\n }", "private function GetCreated()\n\t\t{\n\t\t\treturn $this->created;\n\t\t}", "public function getCreated()\n {\n return $this->_created;\n }", "public function getCreated()\n {\n return $this->_created;\n }", "public function getCreationDate()\n {\n return $this->created;\n }", "public function getDateCreation()\n {\n return $this->dateCreation;\n }", "public function getDateCreation()\n {\n return $this->dateCreation;\n }", "public function getDateCreation()\n {\n return $this->dateCreation;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "public function getCreated()\n {\n return $this->created;\n }", "function created() {\n return date('Y-m-d H:i:s');\n }", "public function getCreated() \n\t{\n\t\treturn $this->created;\n\t}", "public function getCreatedAt(){\n return $this->createdAt;\n }", "protected static function created_at(): mixed\n\t{\n\t\treturn self::$query->created_at;\n\t}", "protected static function created_at(): mixed\n\t{\n\t\treturn self::$query->created_at;\n\t}", "public function getCreated() {\n\t\treturn $this->created;\n\t}", "public function get_time_created(){\n\t\treturn $this->time_created;\n\t}", "function get_timecreated() {\n return $this->timecreated;\n }", "public function getCreationDate();", "public function getTimestampCreated()\n {\n return $this->_getData(self::TIMESTAMP_CREATED);\n }", "public function getCreatedAt()\n {\n return $this->data['fields']['created_at'];\n }", "public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}", "public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}", "public function created_at()\n\t{\n\t\treturn $this->date($this->created_at);\n\t}", "public function _getCreatedOn() {\n\t\treturn $this->_createdOn;\n\t}", "public function getTimeCreated(){\n return $this->TIME_CREATED;\n }", "public function created_at()\n {\n return $this->date($this->created_at);\n }", "public function getDateCreatedAttribute()\n {\n return Carbon::parse($this->created_at)->format('d-m-Y');\n }", "public function getDateCreatedAttribute()\n {\n return Carbon::parse($this->created_at)->format('d-m-Y');\n }", "public function get_creation_date()\n {\n return $this->get_default_property(self::PROPERTY_CREATION_DATE);\n }", "public function getCreatedAt() \r\n {\r\n return $this->createdAt;\r\n }", "public function getDateCreated()\n\t{\n\t\t$date = new Precurio_Date($this->date_created);\n\t\tif($date->isYesterday()) return 'Yesterday';\n\t\tif($date->isToday()) return 'Today';\n\t\t\n\t\treturn $date->get(Precurio_Date::DATE_SHORT);\n\t}", "public function getCreated()\n {\n if (! isset($this->created)) {\n $this->created = new DateTime($this->getXPath($this->getDom())->query($this->getCreatedQuery())->item(0)->value);\n }\n return $this->created;\n }", "public function getDateCreated()\n {\n return $this->getDateModified();\n }", "function getCreatedTime() {\n\t\tif (is_null($this->created_time)) {\n\t\t\t$this->created_time = new \\MongoDate();\n\t\t}\n\t\treturn $this->created_time;\n\t}", "public function getCreated(): DateTime\n {\n return $this->created;\n }", "public function getCreated() : string\n {\n return $this->created;\n }" ]
[ "0.8287308", "0.8039385", "0.8039385", "0.8028678", "0.8009091", "0.79696393", "0.7950722", "0.7914252", "0.78919524", "0.78919524", "0.7880056", "0.78777224", "0.7831243", "0.78251636", "0.7813254", "0.78037477", "0.7763138", "0.7716699", "0.7708515", "0.7707672", "0.76845294", "0.76845294", "0.7671696", "0.7645418", "0.7641551", "0.76278573", "0.7594633", "0.75639826", "0.75578135", "0.75578135", "0.75426805", "0.75426805", "0.75392383", "0.7520631", "0.75020146", "0.7500639", "0.74698234", "0.7456691", "0.7443138", "0.7441983", "0.7424046", "0.74003905", "0.7392864", "0.73812884", "0.7375008", "0.7375008", "0.7374532", "0.7365159", "0.7365159", "0.7365159", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.73611027", "0.7358539", "0.7336549", "0.733351", "0.73306453", "0.73306453", "0.7327514", "0.7321253", "0.7303032", "0.72986245", "0.7289159", "0.72754586", "0.727515", "0.727515", "0.727515", "0.7274822", "0.72509015", "0.7249561", "0.7248362", "0.7248362", "0.72469705", "0.72217774", "0.7189179", "0.718738", "0.71865374", "0.7171161", "0.7169308", "0.7158914" ]
0.8082222
1
See if a Given Session code looks valid
Проверьте, выглядит ли код заданной сессии корректно
function validCode($request_code): bool { # Test to See Session Code is 32 character hexadecimal if (preg_match("/^[0-9a-f]{64}$/i",$request_code)) return true; #error_log("Invalid session code: $request_code"); return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function check($code) {\n\t\t\n\t\t//isset($_SESSION) || session_start();\t\t\n\t\t//Verify code can not be empty\n\t\tif(empty($code) || empty($_SESSION[self::$seKey])) {\n\t\t\treturn false;\n\t\t}\n\t\t//session expired\n\t\tif(time() - $_SESSION[self::$seKey]['time'] > self::$expire) {\n\t\t\tunset($_SESSION[self::$seKey]);\n\t\t\treturn false;\n\t\t}\n\n\t\tif(strtolower($code) == strtolower($_SESSION[self::$seKey]['code'])) {\n\t\t\treturn true;\n\t\t}\t\t\n\n\t\treturn false;\n\t}", "private function verifySession()\n {\n if ((isset($this->session['id']))\n && (is_numeric($this->session['id']))\n && (isset($this->session['legit']))\n && ($this->session['legit'] === $this->sessionHash())\n ) {\n return true;\n }\n return false;\n }", "public function validate() {\n \n $session_id = 0;\n\t\t$session_hash = '';\n\t\n if (isset($GLOBALS[\"_COOKIE\"][\"sessionid\"])) { \n \t $cookie_array = explode('|', $GLOBALS[\"_COOKIE\"][\"sessionid\"]);\n\t\t\tif ($cookie_array[0]) {\n\t\t\t\t$session_id = $cookie_array[0];\n\t\t\t\t$session_hash = $cookie_array[1];\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t\n if (!($session_id && $session_hash)) { return false; }\n\n /* Pull the information for the SessionID out of the database. */\n\n $this->load($session_id);\n\t\tif ($this->sessionid == 0 || $this->expired == 1) {\n\t\t\treturn false;\n\t\t}\n\n $ipaddress = $_SERVER['REMOTE_ADDR'];\n $session_string = $this->session;\n\n if ($session_hash == md5($session_string . $ipaddress . 'scfgshatfk')) {\n return true;\n } elseif ($session_hash == md5($session_string . 'scfgshatfk')) {\n return true; \n } else {\n\t\t\t$this->clear();\n\t\t\treturn false;\n\t\t}\n }", "function _session_is_valid(){\n\t\treturn session_is_valid($this->_state_session_id);\n\t}", "public function sessionIsValid()\n {\n return $this->authClient->sessionIsValid();\n }", "private function checkSessionId() {\r\n\r\n $hijackTest = FALSE;\r\n \r\n if ($this->hijackBlock) {\r\n $this->SQLStatement_GetSessionInfos->bindParam(':sid', $this->sessionId, PDO::PARAM_STR, $this->sid_len);\r\n $this->SQLStatement_GetSessionInfos->execute();\r\n $val = $this->SQLStatement_GetSessionInfos->fetchAll(PDO::FETCH_ASSOC);\r\n //var_dump($val);\r\n //echo \"<br> UA:\".$this->getUa().\"<br>\";\r\n if ($val[0][\"ua\"] ==$this->getUa()) {\r\n $hijackTest = TRUE;\r\n } else {\r\n $hijackTest = FALSE;\r\n }\r\n } else {\r\n $hijackTest = TRUE;\r\n }\r\n\r\n if ($hijackTest==TRUE) return true;\r\n else return false;\r\n \r\n }", "public function isValidSession(string $token):bool;", "public function session_valid()\n\t{\n\t\t$ip_address = $_SERVER['REMOTE_ADDR'];\n\t\t$user_agent = $_SERVER['HTTP_USER_AGENT'];\n\n\t\t$ip_blacklist = [\n\t\t\t'0.0.0.0',\n\t\t\t'127.0.0.1'\n\t\t];\n\n\t\t$ua_blacklist = [\n\t\t\t'false',\n\t\t\tFALSE,\n\t\t\t'',\n\t\t\t'PHPUnit'\n\t\t];\n\n\t\tif (in_array($ip_address, $ip_blacklist) || in_array($user_agent, $ua_blacklist))\n\t\t{\n\t\t\t$this->sess_destroy();\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn TRUE;\n\t}", "function checkSession()\n{\n if(sha1(md5($_SERVER['REMOTE_ADDR'].'ahsh').md5($_SERVER['HTTP_USER_AGENT'].'afke'))\n != @$_SESSION['fingerprint'])\n {\n Flash::create('Session check failed');\n return false;\n }\n if(mt_rand(1, 20) == 1)\n {\n regenerateSession();\n }\n return true;\n}", "public function isValid()\n {\n // Initialize\n $bReturn = false;\n\n // Session should be started\n if (($this->_pStorage->status() == PHP_SESSION_ACTIVE )) {\n // Get stored UID\n $uidSaved = $this->_pStorage->getOffset(self::UID, APPLICATION_NAME);\n\n // Compare with the client uid\n $bReturn = ( $this->_iCRC == $uidSaved );\n } else {\n throw new \\Foundation\\Exception\\BadMethodCallException('The session was not successfully started.');\n }//if(...\n\n return $bReturn;\n }", "static public function sessionIsValid()\n {\n try {\n $ret = false;\n\n session_start();\n\n // TODO: Make sure this is correct\n if (isset($_SESSION) && $_SESSION['sessionkey']) {\n $ret = true;\n\n // Update last activity time stamp\n $_SESSION['LAST_ACTIVITY'] = time();\n } else {\n session_unset();\n session_destroy();\n }\n\n return $ret;\n } catch (Exception $e) {\n return false;\n }\n }", "public function verify_code($name, $code)\n {\n if (!$this->ci->config->item('captchas_enabled')) return true;\n\n $session_code = $this->ci->session->userdata('captcha_' . $name);\n\n if ($session_code !== null)\n {\n // delete the old image from cache\n $this->redis->del('captcha:' . $session_code);\n\n // the code matches\n if ($session_code == $code)\n {\n return true;\n }\n\n // generate a new code and image\n $new_code = $this->generate_code();\n $captcha_image = $this->generate_image($new_code);\n\n // code doesn't match, store the new captcha\n $this->ci->session->set_tempdata('captcha_' . $name, $new_code, 600);\n $this->redis->set('captcha:' . $new_code, serialize($captcha_image), ['ex'=> 120]);\n }\n else\n {\n return $session_code;\n }\n return false;\n }", "public function isValid()\n {\n return ($this->_code > 0) ? true : false;\n }", "public static function get_session_code(){\n\t\t$limit = ModelBruno::getMStime() - (24*3600*1000); //Cut 24H\n\t\t//For session where user_id exists, it means it's a fix session (no time limit!)\n\t\tSession::WhereNotNull('code')->where('u_at', '<', $limit)->whereNull('question_hashid')->getQuery()->update(['code' => null]);\n\n\t\t//Get a unique code number\n\t\t$length = 4;\n\t\t$tries = 5000;\n\t\t$code = null;\n\t\t$loop = true;\n\t\twhile($loop){\n\t\t\t$loop = false;\n\t\t\t$code = rand( pow(10, $length-1), pow(10, $length)-1 ); //for length 4, min is 1000, max is 9999\n\t\t\t//Find a unique md5\n\t\t\tif(Session::Where('code', $code)->first(array('id'))){\n\t\t\t\t$loop = true;\n\t\t\t\t$tries--;\n\t\t\t\tif($tries<=0){\n\t\t\t\t\t$tries = 5000;\n\t\t\t\t\t$length = $length + 2; //It's easier for user to insert a even number length, 4 6 8\n\t\t\t\t}\n\t\t\t\tif($length>8){\n\t\t\t\t\t$code = null;\n\t\t\t\t\t$loop = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $code;\n\t}", "private function isSessionValid($session)\n {\n return is_null(self::getSecurityToken()) || !$session || $session != self::getSecurityToken();\n }", "public function validateCurrentSession(){$this->lhDB->connect('ibdlhsession');self::getCurrentPhpSid();self::validatePhpSid();$this->lhDB->disconnect();if($this->valid){$uid=$this->uid;return $uid;}else{return false;}}", "public function verifySessionIntegrity() {\n if (!$this->isValidSession()) {\n $this->end();\n $this->restart();\n }\n }", "protected function IsValidCode($code)\n\t\t{\n\t\t\tif (preg_match('/^[a-z]{3}$/i', $code)) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}", "function isValidCodeMachine($codeMachine) {\n\tglobal $DB_DB;\n\t$request = $DB_DB->prepare(\"SELECT * FROM Machine WHERE codeMachine LIKE :codeMachine\");\n\n\ttry {\n\t\t$request->execute(array(\n\t\t\t'codeMachine' => $codeMachine\n\t\t));\n\t}\n\tcatch(Exception $e) {\n\t\tif($DEBUG_MODE)\n\t\t\techo $e;\n\t\treturn -2;\n\t}\n\n\tif($request->rowCount() != 0)\n\t\treturn false;\n\treturn true;\n}", "static public function isCurrentSessionValid() {\n\t\t$session = self::getCurrentSession();\n\t\t\n\t\tif (!empty($session)) {\n\t\t\t\n\t\t\t$now = new DateTime('now', new DateTimeZone('UTC'));\n\t\t\t$ssoSessionExpires = new DateTime($session->SSOSessionExpires);\n\t\t\t\n\t\t\tif ($ssoSessionExpires > $now) \n\t\t\t\treturn true;\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t\tself::clearCurrentSession();\n\t\t\t}\n\t\t} \n\t\t\n\t\treturn false;\n\t}", "protected final function is_still_valid($session)\n {\n }", "public function hasVerificationCode(){\n return $this->_has(3);\n }", "public function hasVerificationCode(){\n return $this->_has(3);\n }", "private function check()\n\t{\n\t\tif (!session_id())\n\t\t{\n\t\t\tsession_start();\n\t\t}\n\t}", "protected function isSessionValid() {\n if(empty($this->metadata)) {\n throw new \\RuntimeException(\n \"Session metadata key is missing from SESSION superglobal.\"\n );\n }\n return (\n $this->isValidFingerprint() === true &&\n (\n $this->metadata->isActive === true ||\n $this->isForwardedSession()\n )\n );\n }", "private static function verify() {\r\n\t\t// create code object for the given code we will be verifying\r\n\t\tif (!isset($_SESSION['user'])) {\r\n\t\t\tself::alertMessage('danger', 'Unable to find session user data. Try logging out and logging in again.');\r\n\t\t\tVerificationView::show();\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t$userID = $_POST['userID'] = $_SESSION['user']->getUserID();\r\n\t\t$code = new VerificationCode($_POST);\r\n\r\n\t\t// load and validate expected code from database\r\n\t\t$codeInDatabase = VerificationCodesDB::get($userID);\r\n\t\tif (is_null($codeInDatabase)) {\r\n\t\t\tself::alertMessage('danger', 'No active verification code found. Your code may have expired. Click \"Resend Code\" to send a new code to your phone.');\r\n\t\t\tVerificationView::show();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// compare given/expected codes\r\n\t\tif ($code->getCode() !== $codeInDatabase->getCode()) {\r\n\t\t\tself::alertMessage('danger', 'The code you entered is incorrect. Please check your code and try again.');\r\n\t\t\tVerificationView::show();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// verification successful. mark phone number as verified\r\n\t\t$user = UsersDB::getUser($userID);\r\n\t\t$user->setIsPhoneVerified(true);\r\n\t\tUsersDB::edit($user);\r\n\t\t$_SESSION['user'] = $user;\r\n\r\n\t\t// clean up and show dashboard\r\n\t\tVerificationCodesDB::clear($userID);\r\n\t\tDashboardView::show();\r\n\t}", "function hasValidUid()\n{\n return isset($_SESSION[\"state\"]) && isUid($_SESSION[\"state\"]);\n}", "protected function checkSession($args) {\n\n if ($args['ent_user_type'] == '' || $args['ent_date_time'] == '')\n return $this->_getStatusMessage(1, 15);\n\n $this->curr_date_time = urldecode($args['ent_date_time']);\n\n $returned = $this->_validate_token($args['ent_sess_token'], $args['ent_dev_id'], $args['ent_user_type']);\n\n if (is_array($returned))\n return $returned;\n else\n return $this->_getStatusMessage(73, 15);\n }", "protected function checkSessionToken() {}", "function is_validlogin($sessionID, $debug = false) {\n\t\t$q = (new QueryBuilder())->table('logperm');\n\t\t$q->field($q->expr(\"IF(validlogin = 'Y', 1, 0)\"));\n\t\t$q->where('sessionid', $sessionID);\n\t\t$sql = DplusWire::wire('database')->prepare($q->render());\n\n\t\tif ($debug) {\n\t\t\treturn $q->generate_sqlquery();\n\t\t} else {\n\t\t\t$sql->execute($q->params);\n\t\t\treturn $sql->fetchColumn();\n\t\t}\n\t}", "public function validationSha($code){\r\n\t\t//variables\r\n\t\t$error = '';\r\n\t\t$user_browser = $_SERVER['HTTP_USER_AGENT']; //navegador\r\n\t\t$ip = $_SERVER['REMOTE_ADDR']; //ip\r\n\t\r\n\t\t$this->where('macro_sha', $code);\r\n\t\tif($salida = $this->getOne('solicitudes_clave')){\r\n\t\t\t\r\n\t\t\tif($salida['navegador'] != $user_browser){\t$error = 'navegador no concide';\t}\r\n\t\t\tif($salida['ip'] != $ip){\t\t\t\t\t$error = 'remote ip no concide';\t}\r\n\t\t\t\r\n\t\t\tif($error != ''){\r\n\t\t\t\t$this->rewrite_attempt($ip, $error);\r\n\t\t\t\treturn false;\r\n\t\t\t}else{\r\n\t\t\t\t$nuevo_sha = hash('sha512', $salida['email'].$user_browser.$salida['telefono'].$ip);\r\n\t\t\t\tif($nuevo_sha != $salida['macro_sha']){\r\n\t\t\t\t\t$error = 'Shas no coinciden';\r\n\t\t\t\t\t$this->rewrite_attempt($ip, $error);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//succes!!\r\n\t\t\t\t\t$_SESSION['email_val'] = $salida['email'];\r\n\t\t\t\t\t$_SESSION['corrector'] = $salida['salt'];\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\r\n\t\t}else{\r\n\t\t\t$error = 'no hubo conexion a db';\r\n\t\t\t$this->rewrite_attempt($ip, $error);\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "function check_captcha(){\n\t\t$captcha = FSInput::get('txtCaptcha');\n if ( $captcha == $_SESSION[\"security_code\"]){\n return true;\n } \n return false;\n\t}", "public function check_php_session() {\n global $db;\n\n $now = new Zend_Date();\n\n $random_string_exists = True;\n while ($random_string_exists) {\n $random_string = $this->rand_str();\n $data = array(\n 'random_string' => $random_string,\n 'date_created' => $now->toString(\"yyyy-MM-dd HH:mm:ss\"),\n 'session_data' => sprintf('client_id=%s', $this->client_id),\n 'redirect' => 'from ClientJSONRedirectService.php django redirect',\n );\n\n try {\n $db->insert('django_session_transfer', $data);\n $random_string_exists = False;\n }\n catch (Exception $e) {\n $random_string_exists = True;\n }\n }\n\n return $random_string;\n\n }", "public function valid() {\n\t\t$key = key($this->session);\n\n\t\treturn ($key == null || $key == false) ? false : true;\n\t}", "public function hasCode(){\n return $this->_has(3);\n }", "public function testInvalidSessionHandling() {\n\t\t$session = $this->getSession('nonexistent');\n\t\t$session->loadSession();\n\t\t$this->assertNotEquals('nonexistent', $session->getId(), 'The session ID was not changed');\n\t}", "private function checkCode(Int $code) {\n if ($code === 200) :\n return true;\n endif;\n\n return false;\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}", "private function getCurrentPhpSid(){if($this->phpsid=$this->MakeSafe->thisData(\"PHPSESSID\",\"PARANOID_STRING\",26,32,\"COOKIE\")){$this->valid=true;}else{$this->valid=false;}}", "function damm32Check($code) {\r\n\tglobal $base32;\r\n\treturn (damm32Encode($code) == $base32[0]) ? 1 : 0;\r\n\t}", "function Validate($sUserCode, $bCaseInsensitive = true) {\n if ($bCaseInsensitive) {\n $sUserCode = strtoupper($sUserCode);\n }\n \n if (!empty($_SESSION[CAPTCHA_SESSION_ID]) && $sUserCode == $_SESSION[CAPTCHA_SESSION_ID]) {\n // clear to prevent re-use\n unset($_SESSION[CAPTCHA_SESSION_ID]);\n \n return true;\n }\n \n return false;\n }", "function session_check() {\n\tif (!isset($_POST['session'])) {\n\t\tsend_message('error', array('reason' => 'no_session_token','message' => 'No session token passed'));\n\t}\n}", "public function verify_actcode($member_email, $code){\n\t\t//$newCode = $this->make_activation_code();\n\t\t$mysql = New Mysql();\n\t\treturn($mysql->update_activation_code($member_email, $code));\n\t}", "function checkSession()\n {\n if(isset($_COOKIE['sessionId']))\n {\n $response = callApi('GET', 'session', ['sessionid' => $_COOKIE['sessionId']]);\n if($response['code'] == '200')\n return true;\n else\n return false;\n }\n }", "function check() \n\t{\n\t\t//On creation store the useragent fingerprint\n\t\tif(empty($_SESSION['fingerprint'])) \n\t\t{\n\t\t\t$_SESSION['fingerprint'] = $this->generate_fingerprint();\n\t\t} \n\t\t//If we should verify user agent fingerprints (and this one doesn't match!)\n\t\telseif($this->match_fingerprint && $_SESSION['fingerprint'] != $this->generate_fingerprint()) \n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t//If an IP address is present and we should check to see if it matches\n\t\tif(isset($_SESSION['ip_address']) && $this->match_ip) \n\t\t{\n\t\t\t//If the IP does NOT match\n\t\t\tif($_SESSION['ip_address'] != ip_address()) \n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t//Set the users IP Address\n\t\t$_SESSION['ip_address'] = ip_address();\n\n\t\t//If a token was given for this session to match\n\t\tif($this->match_token) \n\t\t{\n\t\t\tif(empty($_SESSION['token']) OR $_SESSION['token'] != $this->match_token) \n\t\t\t{\n\t\t\t\t//Remove token check\n\t\t\t\t$this->match_token = FALSE;\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t//Set the session start time so we can track when to regenerate the session\n\t\tif(empty($_SESSION['last_activity'])) \n\t\t{\n\t\t\t$_SESSION['last_activity'] = time();\n\t\t}\n\t\t//Check to see if the session needs to be regenerated\n\t\telseif($_SESSION['last_activity'] + $this->expiration < time()) \n\t\t{\n\t\t\t//Generate a new session id and a new cookie with the updated id\n//\t\t\tsession_regenerate_id(TRUE);\n session_regenerate_id();\n\n\t\t\t//Store new time that the session was generated\n\t\t\t$_SESSION['last_activity'] = time();\n\n\t\t}\n\t\treturn TRUE;\n\t}", "public static function verifyCode(string $secretKey, string $code) : bool\n {\n $time = time();\n $result = 0;\n\n // Timing attack safe iteration and code comparison\n for ($i = -1; $i <= 1; $i++) {\n $timeSlice = floor($time / self::TIME_WINDOW + $i);\n $result = hash_equals(self::getCode($secretKey, $timeSlice), $code) ? $timeSlice : $result;\n }\n\n return ($result > 0);\n }", "public function verifyCode($secret, $code)\n {\n if (strlen($code) != 6) {\n return false;\n }\n return ($this->getCode($secret) == $code) ? true : false;\n }", "public function hasCodeType(){\n return $this->_has(3);\n }", "protected function isValidSession()\n {\n //Login check\n $this->_consumidor = Extra_UserSession::getUserLogged();\n if ($this->_consumidor === null) {\n Extra_ErrorREST::setUserNotLoggedIn($this->getResponse());\n return false;\n }\n return true;\n }", "protected function validateCode(string|int $code): bool\n {\n return $this->twoFactorAuth->validateCode($code);\n }", "public static function verifyCode($code){\n\n if(!is_string($code) && !is_int($code)){\n\n return false;\n }\n\n $code=trim(''.$code);\n $codeLen=strlen($code);\n\n $totalW=array_sum(self::$WIDTH_SETTING);\n if($codeLen>$totalW){\n\n return false;\n }\n\n $flagInvalid=true;\n $curW=0;\n for($i=0; $i<count(self::$WIDTH_SETTING); $i++){\n\n $curW+=self::$WIDTH_SETTING[$i];\n if($curW==$codeLen){\n $flagInvalid=false;\n break;\n }\n }\n\n return !$flagInvalid;\n\n }", "public function hasCodeType(){\n return $this->_has(4);\n }", "public function hasCodeType(){\n return $this->_has(4);\n }", "function verify_code($rec_num, $checkstr)\n\t{\n\t\tif ($user_func = e107::getOverride()->check($this,'verify_code'))\n\t\t{\n\t \t\treturn call_user_func($user_func,$rec_num,$checkstr);\n\t\t}\n\t\t\n\t\t$sql = e107::getDb();\n\t\t$tp = e107::getParser();\n\n\t\tif ($sql->db_Select(\"tmp\", \"tmp_info\", \"tmp_ip = '\".$tp -> toDB($rec_num).\"'\")) {\n\t\t\t$row = $sql->db_Fetch();\n\t\t\t$sql->db_Delete(\"tmp\", \"tmp_ip = '\".$tp -> toDB($rec_num).\"'\");\n\t\t\t//list($code, $path) = explode(\",\", $row['tmp_info']);\n\t\t\t$code = intval($row['tmp_info']);\n\t\t\treturn ($checkstr == $code);\n\t\t}\n\t\treturn FALSE;\n\t}", "public function verifySession() {\n\t\t$this->reload();\n\t\tif ($this->getSession() == session_id())\n\t\t\treturn true;\n\t\telse {\n\t\t\tif($_SESSION[\"loginUser\"])\n\t\t\t\tunset($_SESSION[\"loginUser\"]);\n\t\t\treturn false;\n\t\t}\n\t}", "function reservedCodes($data) {\n\t\tif(in_array($data['code'], Configure::read('InvalidCodes'))) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public function authenticate_code($classname, $code){\n $query = \"SELECT classcode FROM classes where classname = $1;\";\n $query_result = pg_prepare($this->con, \"myquery15\", $query);\n $query_result = pg_execute($this->con, \"myquery15\", array($classname));\n $row = pg_fetch_row($query_result);\n if($row[0] == $code){ //Accesscode matched\n echo(\"Access Code matched\");\n return True;\n }\n else{return False;}\n\n\n }", "function isValidatedCaptcha(){\n\n\t$CI = &get_instance();\n\t$bReturn = false;\n\tif( $CI->session->userdata('validated_captcha_code') == $CI->input->post('validated_captcha_code') ){\n\t\t$bReturn = true;\n\t}\n\n\t$CI->session->unset_userdata('validated_captcha_code');\n\treturn $bReturn;\n}", "public function checkResetCode()\n {\n return $this->resetCode()->isValid();\n }", "function _check_captcha($code) {\r\n $word = $this->session->flashdata('captcha_word');\r\n if (($this->config->item('captcha_case_sensitive') AND $code != $word) OR\r\n strtolower($code) != strtolower($word)) {\r\n return FALSE;\r\n }\r\n return TRUE;\r\n }", "function authenticate_user($email_a, $passcode){\r\n\t//QUERY DATABASE/ACTIVE DIRECTORY TO SEE IF USER IS VALID\r\nif ($email == \"insert valid email b4 testing\") {\r\n\t/*** set a form token ***/\r\n\t$form_token = md5( uniqid('auth', true) );\r\n\t/*** set the session form token ***/\r\n\t$_SESSION['form_token'] = $form_token;\r\n\t$_SESSION['email_a'] = $email_a;\r\n\t$_SESSION['start_timestamp'] = date('Y-m-d HH:mm:s');\r\n\t$code = \"valid\";\r\n}else{\r\n\t$code = \"invalid\";\r\n\t}\r\necho return $code \"We were unable to validate your information, Please try again\";\r\n /*RETURNED TO CALLING CODE */\r\n\t}", "function validate_session($id, $key)\n{\n $dir = VAR_FOLDER;\n $filename = DEFAULT_SESSIONSFILE;\n if (!file_exists($dir)) {\n return false;\n }\n if (file_exists($filename)) {\n $content = file_get_contents($filename);\n $sessions = parse_sessions($content);\n if (($index = getindex_sessionbykey($id, $key, $sessions)) > -1) {\n if (((int)(new \\DateTime())->getTimestamp() - (int)$sessions[$index]->time) / (60 * 60) < SESSION_MAXDURATION) {\n return true;\n }\n }\n }\n return false;\n}", "private function checkSession()\n\t\t{\n\t\t\tif(!empty($_SESSION['auth_username']) && !empty($_SESSION['auth_password']))\n\t\t\t\treturn $this->check($_SESSION['auth_username'], $_SESSION['auth_password']);\n\t\t}", "function verify_codename($codename) // Colorize: green\n { // Colorize: green\n return isset($codename) // Colorize: green\n && // Colorize: green\n is_string($codename) // Colorize: green\n && // Colorize: green\n preg_match(CODENAME_REGEXP, $codename); // Colorize: green\n }", "function sys_session_test(){\n session_name(\"MELOLSESSION\");\n session_start();\n if (isset($_SESSION[\"userId\"]) && isset($_SESSION[\"sessionId\"]) && isset($_REQUEST[\"sessionId\"])) {\n if ($_SESSION[\"sessionId\"] == $_REQUEST[\"sessionId\"]) {\n return TRUE;\n }\n }\n return FALSE;\n}", "public function check_authorization_response(){\n if(!isset($_SESSION))\n session_start();\n\n // no LINE_CRSF is set in session\n if(!isset($_SESSION['LINE_CRSF']))\n throw new Exception('Fail to check CRSF token');\n\n // CRSF token not match\n $state = isset($_GET['state']) ? $_GET['state'] : null;\n // equalty check can be rewrite with hash_equals()\n if($_SESSION['LINE_CRSF'] !== $state)\n throw new Exception('CRSF token not match');\n\n unset($_SESSION['LINE_CRSF']);\n\n // user denies the premissions requested\n // NOTICE:\n // LINE server redirect user who does not have\n // developer role with following error (in GET data)\n // error=access_denied\n // error_description=The+authorization+server+denied+the+request.+This+channel+is+now+developing+status.+User+need+to+have+developer+role\n // To solve this, go to your LINE Login channel then\n // click the Developing label on the top right to proceed\n // publish your channel\n if(isset($_GET['error'])){\n throw new Exception(json_encode(array(\n 'error' => $_GET['error'],\n 'error_description' => $_GET['error_description'],\n )));\n }\n\n $this->authorization_code = $_GET['code'];\n return $this->authorization_code;\n }", "function browserCredentials() {\n if(isset($_GET['code'])) return true;\n\n return false;\n}", "public function isSessionMessage() {}", "function _check_captcha($code)\n {\n $time = $this->session->flashdata('captcha_time');\n $word = $this->session->flashdata('captcha_word');\n\n list($usec, $sec) = explode(\" \", microtime());\n $now = ((float)$usec + (float)$sec);\n\n if ($now - $time > $this->config->item('captcha_expire', 'tank_auth')) {\n $this->form_validation->set_message('_check_captcha', $this->lang->line('auth_captcha_expired'));\n return FALSE;\n\n } elseif (($this->config->item('captcha_case_sensitive', 'tank_auth') AND\n $code != $word) OR\n strtolower($code) != strtolower($word)) {\n $this->form_validation->set_message('_check_captcha', $this->lang->line('auth_incorrect_captcha'));\n return FALSE;\n }\n return TRUE;\n }", "public function verifyTwoFACode($code) {\n $verification = Yii::app()->db->createCommand()\n ->select('code')\n ->from('x2_twofactor_auth')\n ->where('userId = :id AND requested >= :requested', array(\n ':id' => $this->id,\n ':requested' => time() - (60 * 5), // within the past 5 minutes\n ))->queryScalar();\n return $code === $verification;\n }", "private\n function checkAuth()\n {\n if (!isset($_SESSION['artiste_id'])) {\n return false;\n }\n return true;\n }", "public function hasNextgoodsid(){\n return $this->_has(36);\n }", "public function getCodeSession() {\n return $this->codeSession;\n }", "protected static function sessionExists() {\n return session_status() == 2;\n }", "function check_session_status() {\n\n\n $ret = 0;\n @session_start ();\n\n #if (!session_is_registered (\"svn_sessid\")) {\n if (! isset($_SESSION['svn_sessid']) ) {\n\n $ret = 0;\n\n } else {\n\n $ret = 1;\n $SESSID_USERNAME = $_SESSION['svn_sessid']['username'];\n\n }\n\n return array( $ret, $SESSID_USERNAME );\n}", "public function checkSession ($session_id) {\n $i = new folksoDBinteract($this->dbc);\n if ($i->db_error()) {\n trigger_error(\"Database connection error: \" . $i->error_info(), \n E_USER_ERROR);\n } \n if ($this->validateSid($session_id) === false){\n trigger_error(\"Bad session id\", E_USER_WARNING);\n }\n\n $i->query(\"select userid, started from sessions where token = '\"\n . $i->dbescape($session_id) . \"' and started > now() - 1209600\");\n if( $i->result_status == 'OK') {\n return true;\n }\n elseif ($i->result_status == 'NOROWS'){\n return false;\n }\n else {\n trigger_error(\"DB query error: \" . $i->error_info(),\n E_USER_ERROR);\n }\n }", "public function verifySession()\n\t{\n\t\t$userData = array(\n\t\t\t'email' \t=> $this->input->post('email'),\n\t\t\t'password' \t=> sha1($this->input->post('password'))\n \t\t);\n\n\t\treturn $this->assistant_model->verifySession($userData);\n\t}", "private function validateCode($code, $updateCount = false)\n {\n $invitationCodes = InvitationCode::active()->pluck('id','code');\n\n if( ! empty($invitationCodes[$code])){\n\n if($updateCount){\n $invitationCode = InvitationCode::find($invitationCodes[$code]);\n $invitationCode->current_count += 1;\n $invitationCode->save();\n }\n\n return true;\n } else {\n return false;\n }\n }", "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}", "public function codeIsValid(string $code): bool\n {\n return $this->constantValueExists($code);\n }", "public function checkCode(TwoFactorInterface $user, $code);", "public function session_validate(){\n\t\tif(!empty($this->data['Leave']['leave_from']) && !empty($this->data['Leave']['leave_to'])){\n\t\t\t$leave_from = $this->format_date_save($this->data['Leave']['leave_from']);\n\t\t\t$leave_to = $this->format_date_save($this->data['Leave']['leave_to']);\n\t\t\t$diff = $this->diff_date($leave_from, $leave_to);\t\t\t\n\t\t\tif($diff > 0 && $this->data['Leave']['session'] != 'D'){\n\t\t\t\treturn false;\n\t\t\t}else{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}else{\n\t\t\treturn true;\n\t\t}\n\t}", "private function _checkIdent()\n {\n $auth = Zend_Auth::getInstance();\n $auth->setStorage(new Zend_Auth_Storage_Session('hl_connect'));\n \n if ($auth->hasIdentity())\n $this->_agentSchemeNumber = $auth->getStorage()->read()->agentschemeno;\n \n return $auth->hasIdentity();\n }", "function _check_captcha($code)\n\t{\n\t\t$time = $this->session->flashdata('captcha_time');\n\t\t$word = $this->session->flashdata('captcha_word');\n\n\t\tlist($usec, $sec) = explode(\" \", microtime());\n\t\t$now = ((float)$usec + (float)$sec);\n\n\t\tif ($now - $time > $this->config->item('captcha_expire', 'tank_auth')) {\n\t\t\t$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_captcha_expired'));\n\t\t\treturn FALSE;\n\n\t\t} elseif (($this->config->item('captcha_case_sensitive', 'tank_auth') AND\n\t\t\t\t$code != $word) OR\n\t\t\t\tstrtolower($code) != strtolower($word)) {\n\t\t\t$this->form_validation->set_message('_check_captcha', $this->lang->line('auth_incorrect_captcha'));\n\t\t\treturn FALSE;\n\t\t}\n\t\treturn TRUE;\n\t}", "function details(): bool {\n\t\t\t$cache_key = \"session[\".$this->id.\"]\";\n\n\t\t\t# Cached Customer Object, Yay!\n\t\t\t$cache = new \\Cache\\Item($GLOBALS['_CACHE_'],$cache_key);\n\t\t\tif ($cache->error()) app_log(\"Cache error in Site::Session::get(): \".$cache->error(),'error',__FILE__,__LINE__);\n\t\t\t\n\t\t\telseif (($this->id) and ($session = $cache->get())) {\n\t\t\t\tif ($session->code) {\n\t\t\t\t\t$this->code = $session->code;\n\t\t\t\t\t$this->company = new \\Company\\Company($session->company_id);\n\t\t\t\t\t$this->customer = new \\Register\\Customer($session->customer_id);\n\t\t\t\t\t$this->timezone = $session->timezone;\n\t\t\t\t\t$this->browser = $session->browser;\n\t\t\t\t\t$this->first_hit_date = $session->first_hit_date;\n\t\t\t\t\t$this->last_hit_date = $session->last_hit_date;\n\t\t\t\t\t$this->super_elevation_expires = $session->super_elevation_expires;\n\t\t\t\t\t$this->oauth2_state = $session->oauth2_state;\n if (isset($session->isMobile)) $this->isMobile = $session->isMobile;\n if (empty($session->csrfToken)) {\n $session->csrfToken = $this->generateCSRFToken();\n $cache->set($session,600);\n }\n\t\t\t\t\t$this->csrfToken = $session->csrfToken;\n\t\t\t\t\t$this->cached(true);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$get_session_query = \"\n\t\t\t\tSELECT\tid,\n\t\t\t\t\t\tcode,\n\t\t\t\t\t\tcompany_id,\n\t\t\t\t\t\tuser_id customer_id,\n\t\t\t\t\t\ttimezone,\n\t\t\t\t\t\tbrowser,\n\t\t\t\t\t\tfirst_hit_date,\n\t\t\t\t\t\tlast_hit_date,\n\t\t\t\t\t\tsuper_elevation_expires,\n\t\t\t\t\t\toauth2_state\n\t\t\t\tFROM\tsession_sessions\n\t\t\t\tWHERE\tid = ?\n\t\t\t\";\n\t\t\t$rs = $GLOBALS['_database']->Execute(\n\t\t\t\t$get_session_query,\n\t\t\t\tarray($this->id)\n\t\t\t);\n\t\t\tif (! $rs) {\n\t\t\t\t$this->SQLError($GLOBALS['_database']->ErrorMsg());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tif ($rs->RecordCount()) {\n\t\t\t\t$session = $rs->FetchNextObject(false);\n\t\t\t\tif (empty($session->customer_id)) $session->customer_id = 0;\n\n\t\t\t\t$this->code = $session->code;\n\t\t\t\t$this->company = new \\Company\\Company($session->company_id);\n\t\t\t\t$this->customer = new \\Register\\Customer($session->customer_id);\n\t\t\t\t$this->timezone = $session->timezone;\n\t\t\t\t$this->browser = $session->browser;\n\t\t\t\t$this->first_hit_date = $session->first_hit_date;\n\t\t\t\t$this->last_hit_date = $session->last_hit_date;\n\t\t\t\t$this->super_elevation_expires = $session->super_elevation_expires;\n\t\t\t\t$this->oauth2_state = $session->oauth2_state;\n\n require_once THIRD_PARTY.'/mobiledetect/mobiledetectlib/Mobile_Detect.php';\n $detect = new \\Mobile_Detect;\n\n if ($detect->isMobile())\n $this->isMobile = true;\n else\n $this->isMobile = false;\n\n\t\t\t\t$session->csrfToken = $this->generateCSRFToken();\n\t\t\t\t$this->csrfToken = $session->csrfToken;\n\n\t\t\t\tif ($session->id) $cache->set($session,600);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}", "public function checkCode(User $user, $code);", "public function testIsVerificationCodeValidForUser()\n {\n $this->ensurePasswordValidationReturns(true);\n Craft::$app->getConfig()->getGeneral()->verificationCodeDuration = 172800;\n\n $this->updateUser([\n // The past.\n 'verificationCodeIssuedDate' => '2018-06-06 20:00:00',\n ], ['id' => $this->activeUser->id]);\n\n $this->assertFalse(\n $this->users->isVerificationCodeValidForUser($this->activeUser, 'irrelevant_code')\n );\n\n // Now the code should be present - within 2 day window\n $this->updateUser([\n // The present.\n 'verificationCodeIssuedDate' => Db::prepareDateForDb(new DateTime('now')),\n ], ['id' => $this->activeUser->id]);\n\n $this->assertTrue(\n $this->users->isVerificationCodeValidForUser($this->activeUser, 'irrelevant_code')\n );\n }", "public function hasError(int $code): bool;", "private function sesion_iniciada()\n\t{\n\t\t$this->load->library(\"session\");\n\t\tif($this->session->userdata(\"isess\")){\n\t\t\treturn TRUE;\n\t\t}\n\t\treturn FALSE;\n\t}", "public static function prepareSession($params) {\n\n if ((isset($params['total']) && $params['total'] == 1) || $params['2fa']->default == 1 || (isset($params['test']) && $params['test'] === true)) {\n try {\n\n $diff = (time() - $params['2fa']->lsend);\n if ($diff < self::TIMEOUT_RESEND) {\n throw new Exception('Please wait a little while before trying again!');\n }\n\n $params['2fa']->lsend = time();\n $params['2fa']->saveThis();\n\n $code = '';\n for ($i = 1; $i <= 6; $i++) {\n $code .= mt_rand(1,9);\n }\n\n $params['session']->setAttribute('code',$code);\n\n $user = erLhcoreClassModelUser::fetch($params['2fa']->user_id);\n\n if ($user instanceof erLhcoreClassModelUser) {\n\n $t2faOptions = erLhcoreClassModelChatConfig::fetch('2fa_options');\n $dataOptions = (array)$t2faOptions->data;\n\n $mail = new PHPMailer(true);\n $mail->CharSet = \"UTF-8\";\n $mail->Subject = isset($dataOptions['email_subject']) ? $dataOptions['email_subject'] : erTranslationClassLhTranslation::getInstance()->getTranslation('2fa/admin','Your code');\n $mail->Body = str_replace('{code}', $code, (isset($dataOptions['email_body']) ? $dataOptions['email_body'] : erTranslationClassLhTranslation::getInstance()->getTranslation('2fa/admin','Verification code: {code}')));\n $mail->FromName = isset($dataOptions['email_subject']) ? $dataOptions['email_subject'] : erTranslationClassLhTranslation::getInstance()->getTranslation('2fa/admin','2FA Verification');\n $mail->AddAddress( $user->email );\n\n erLhcoreClassChatMail::setupSMTP($mail);\n\n try {\n $mail->Send();\n } catch (Exception $e) {\n throw $e;\n }\n\n $mail->ClearAddresses();\n\n } else {\n throw new Exception('User could not be found');\n }\n\n $params['session']->removeAttribute('email_error');\n\n } catch (Exception $e) {\n $params['session']->setAttribute('email_error',$e->getMessage());\n }\n }\n }", "public static function checkActive () {\n\t\tif ( trim( session_id() ) == FALSE ) {\n\t\t\treturn FALSE;\n\t\t} else {\n\t\t\treturn TRUE;\n\t\t}\n\t}", "public function checkSessionStatus(){\t\t\n\t\tif(isset($_SESSION[self::$session])){\n\t\t\treturn $_SESSION[self::$session];\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "private function code_exists($code) {\n\t\t$code = $this->db->escape_str($code);\n\t\t$query = $this->db->query(\"SELECT COUNT(id) as num_rows FROM exp_shortee_urls WHERE BINARY code = '$code'\");\n\n\t\t$row = $query->row_array();\n\n\t\treturn ($row['num_rows'] > 0) ? true : false;\n\t}", "public function handleCode()\n {\n if (isset($_GET['code'])) {\n Session::put('spotify_code', $_GET['code']);\n $this->requestToken();\n }\n\n return Session::get('spotify_code');\n }", "public function verifyCode($code,$id)\n\t{\n\t\ttry{\n\t\t\t$select = $this->getDbTable()->select();\n\t\t\t$select->from('rd.location_boundaries',array('COUNT(id) as count'))\n\t\t\t->where('code ILIKE ?',$code);\n\t\t\tif($id != 0){\n\t\t\t\t$select->where('id <> ?',$id);\n\t\t\t}\n\t\t\t$rowset = $this->getDbTable()->fetchAll($select);\n\t\t\t$count = 0;\n\n\t\t\tforeach($rowset as $row){\n\t\t\t\t$count = $row->count;\n\t\t\t}\n\t\t\tif($count == 0){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch (Exception $ex){\n\t\t\tthrow new Exception($ex->getMessage()) ;\n\t\t}\n\n\t}", "private function validateForgotPasswordCode($code)\n {\n try {\n $db_request = $this->db->prepare(\"SELECT forgot_password_code \n FROM users WHERE forgot_password_code=:forgot_password_code LIMIT 1\");\n $db_request->bindParam(':forgot_password_code', $code);\n $db_request->execute();\n if ($db_request->rowCount()) {\n return true;\n } else {\n $this->user_status_message = 'Enter the appropriate code to change the password.';\n return false;\n }\n } catch (PDOException $e) {\n DBErrorLog::loggingErrors($e);\n }\n }", "function _check_security_code($value)\n\t{\n\t\t$this->load->library('captcha_library');\n\t\t\n\t\tif ( ! $this->captcha_library->check($value, 'four'))\n\t\t{\n\t\t\t$this->form_validation->set_message(__FUNCTION__, lang('notice_value_incorrect'));\n\t\t\treturn FALSE;\n\t\t}\n\t\t\n\t\treturn TRUE;\n\t}", "public function authenticate($code){\n\t\t$this->client->authenticate($_GET['code']);\n\t\t$_SESSION['token'] = $this->_token = $this->client->getAccessToken();\n\n\t\tif (isset($_SESSION['token'])) {\n\t\t\t$this->client->setAccessToken($_SESSION['token']);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\n\t}", "protected function doGetSession() {\r\n\t\t$code = $this->getCode ();\r\n\t\t// check whether it is a CSRF attack request\r\n\t\tif ($code && $code != $this->store->get ( 'code' )) {\r\n\t\t\t$session = $this->getAccessTokenByAuthorizationCode ( $code );\r\n\t\t\tif ($session) {\r\n\t\t\t\t\r\n\t\t\t\t$this->store->set ( 'code', $code );\r\n\t\t\t\t$this->setSession ( $session );\r\n\t\t\t\t$user = $this->api ( 'passport/users/getLoggedInUser' );\r\n\t\t\t\tif ($user) {\r\n\t\t\t\t\t$session = array_merge ( $session, $user );\r\n\t\t\t\t\t$this->setSession ( $session );\r\n\t\t\t\t}\r\n\t\t\t\treturn $session;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// code was bogus, so everything based on it should be invalidated.\r\n\t\t\t$this->store->removeAll ();\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\t// as a fallback, just return whatever is in the persistent store\r\n\t\t$session = $this->store->get ( 'session' );\r\n\t\t$this->setSession ( $session );\r\n\t\tif ($session && ! isset ( $session ['uid'] )) {\r\n\t\t\t$user = $this->api ( 'passport/users/getLoggedInUser' );\r\n\t\t\tif ($user) {\r\n\t\t\t\t$session = array_merge ( $session, $user );\r\n\t\t\t\t$this->setSession ( $session );\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn $session;\r\n\t}", "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}" ]
[ "0.7383039", "0.63376766", "0.6312602", "0.63003135", "0.6235491", "0.6204099", "0.60853755", "0.60826063", "0.6047968", "0.60451895", "0.6043378", "0.60299194", "0.59063065", "0.5809733", "0.57624805", "0.57618713", "0.5720451", "0.5712945", "0.57014513", "0.567079", "0.56607014", "0.5660554", "0.5660554", "0.5635909", "0.5611238", "0.5610962", "0.56086946", "0.5601638", "0.55925125", "0.5578522", "0.55718887", "0.5562262", "0.5559908", "0.5554186", "0.5541595", "0.5535041", "0.5532923", "0.55315447", "0.55287373", "0.55091566", "0.5508326", "0.55050665", "0.5501348", "0.55001616", "0.5492839", "0.54855174", "0.5479974", "0.54794973", "0.54612565", "0.54594", "0.5442286", "0.5438708", "0.5438708", "0.54246306", "0.54213184", "0.5413449", "0.5409838", "0.54058504", "0.5392557", "0.53897876", "0.5387157", "0.53807527", "0.5364855", "0.5343655", "0.5337375", "0.5330948", "0.53268254", "0.5325528", "0.5324978", "0.5322653", "0.5322388", "0.5322351", "0.5311493", "0.5308154", "0.52892756", "0.5280815", "0.52710533", "0.5266953", "0.52649903", "0.52597815", "0.52595663", "0.52521515", "0.5251788", "0.525102", "0.5248824", "0.5247005", "0.52431685", "0.5243095", "0.5241448", "0.52399653", "0.52344537", "0.5233179", "0.5230876", "0.52263296", "0.522524", "0.52136564", "0.52116287", "0.52098435", "0.52038085", "0.5202684" ]
0.7858994
0
function GenArray($mode = NULL, $params = NULL)
function GenArray($mode = NULL, $params = NULL)
function GenArray($params = []) { if ($this->templateName == "admin_desktop"){ if (!isset($params[1])){ $mode = "users"; } else { $mode = $params[1]; } if ($mode === "qq_categories"){ $result = $this->genArrayCategories(); }elseif ($mode === "users"){ $result = $this->genArrayUsers(); }elseif ($mode === "qq"){ $currentCategoryId = $params[2]; $result = $this->genArrayQQ($currentCategoryId); }elseif ($mode === "qq_without_answer"){ $result = $this->genArrayQQWitoutAnswer(); }elseif ($mode === "answers"){ $currentQuestionId = $params[2]; $result = $this->genArrayAnswers($currentQuestionId); } } return $result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function maker(): array;", "public function generate(): array;", "function getArray();", "abstract public function getArray();", "public function aArray() {}", "public function build(): array;", "public function build(): array;", "public function getArrayParameters(): array;", "function InicializaArray($Limite){\n\t\tfor($i = 1; $i <= $Limite; $i++) \n\t\t{ \n\t\t ${'array'}[$i] = 0; \n\t\t} \n\treturn $array;\n}", "function aarr(&$R,$nn,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"int8\",$n,$m);\t\t\t\n\t\t}", "public static function arrayWithObjects()\n {\n return new RsoArray(func_get_args());\n }", "public function generateArray()\r\n\t{\t\r\n\t\t$data = array('logID'=>$this->logID,'text'=>$this->Text,'timestamp'=>$this->timestamp, 'textid'=>$this->textID);\r\n\t\tif($this->user!=null)\r\n\t\t\t$data['user'] = $this->user->generateArray();\r\n\t\tif($this->building!=null)\r\n\t\t\t$data['building'] = $this->building->generateArray('normal');\r\n\t\tif($this->card!=null)\r\n\t\t\t$data['card']=$this->card->generateArray();\r\n\t\tif($this->location!=null)\r\n\t\t\t$data['location']=$this->location->generateArray();\r\n\t\tif($this->icon!=null)\r\n\t\t\t$data['icon']=$this->icon;\r\n\t\tif($this->game!=null)\r\n\t\t\t$data['game']=$this->game;\r\n\t\treturn $data;\r\n\t\r\n\t}", "function crearArray($ind1,$ind2,$val1,$val2,$n=5){\n\t\t$v=array();\n\t\t//Primero construyo el array\n\t\tfor($i=0;count($v)<$n;$i++){\n\t\t\t//Un random para el indice y otro para el valor contenido\n\t\t\t$indice=\"X\".rand($ind1,$ind2);//calcular un numero aleatorio entre ind1 y ind2\n\t\t\t$valor=rand($val1,$val2);\n\t\t\t$v[$indice]=$valor;\n\t\t}\n\t\t//Ahora que ya esta construido puede consultarla\n\t\t/*Se pueden devolver dos valores en el return?*/\n\t\tglobal $max; //La variable tiene que ser global\n\t\t$max=max($v); //El maximo del array\n\treturn $v; //Devuelve el array\n\t}", "function GenerateData(){\r\n\t\r\n\t$data = array();\r\n\r\n\tfor($i=0; $i<10000; $i++){\r\n\r\n\t\t$data[$i] = array(rand(0,6),rand(0,4),rand(0,4),rand(0,6),rand(0,3));\r\n \r\n\t}\r\n\r\nreturn $data;\t\r\n\t\r\n}", "public function params(): array;", "public function creataTypeArray()\n\t{\n\t\t$this->db->creataTypeArray();\n\t}", "function dynamicArray($n, $queries) {\n\n}", "public function AsArray();", "public function getArray($create = false) {}", "public function getArray($create = false) {}", "public function getParams() :array;", "function make()\n{\n return [];\n}", "abstract public function definition(): array;", "private function _paramArrGenerator( $funcParam, $args )\n\t{\n\t\t$paramArray = array();\n\n\t\tforeach ($funcParam as $key => $value) \n\t\t{\n\t\t\tif( isset( $args[ $value ] ) )\n\t\t\t\t$paramArray[] = $args[ $value ];\n\t\t}\n\n\t\treturn $paramArray;\n\t}", "abstract public function values(): array;", "protected function buildJSAbbreviationArray() {}", "public function parameters(): array;", "function createLibClassArray(){\n return array(\n \"MA2090\",\n \"ED3700\",\n \"ML4220\",\n \"EL1000\",\n \"VA2010\",\n \"PY2010\",\n \"HI2681\",\n \"BS2400\",\n \"BS2401\",\n \"MA2310\",\n \"ED3820\",\n \"ML1100\",\n \"EL2206\",\n \"VA2020\",\n \"PY3410\",\n \"AS2112\",\n \"CP2220\",\n \"CP2221\",\n \"CS2511\",\n \"ED3950\",\n \"ML1101\",\n \"EL4312\",\n \"VA2030\",\n \"PY3420\",\n \"HI3091\",\n \"BS2410\",\n \"BS2411\",\n \"CS2511\",\n \"EL3865\",\n \"VA3100\",\n \"HI2810\",\n \"HI3002\",\n \"HI3011\",\n \"HI3021\"\n );\n }", "public abstract function FetchArray();", "function C() {\n $arr = func_get_args();\n return Carr($arr);\n }", "public function generate() {\n\t\treturn [];\n\t}", "function acf_array($val = array())\n{\n}", "function getArray() {\n\treturn array('Red', 'Green', 'Blue');\n}", "private function generateArray() : array\n {\n $chromosome = [];\n\n for ($i = 0; $i < Settings::CHROMOSOME_SIZE; $i++) {\n $chromosome[$i] = $this->genes[$this->getRandomPosition()];\n }\n\n return $chromosome;\n }", "public function DataGenerateArray() {\n $data = $this->GenerateArray();\n return $data['data']; \n }", "function generate() ;", "function getParameters(): array;", "function buildArrayOfIntegers($arr){\n\t\t\t$arrizzle = array();\n\t\t\tfor ($i = 0; $i < count($arr); $i++){\n\t\t\t\t$arrizzle[] = $i;\n\t\t\t}\n\t\t\treturn $arrizzle;\n\t\t}", "function Tarr(&$R,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"int8\",$n,$m);\t\t\n\t\t}", "public function getInternalArray() {}", "function get_config_array();", "abstract public static function getValues(): array;", "function inicializar_array($numero_elementos, $min, $max) {\n $lista = array();\n \n \n\n for($i = 0; $i < $numero_elementos; $i++) {\n \n $lista[$i] = rand($min, $max);\n \n \n }\n\n return $lista;\n \n\n\n}", "function ae_arr(&$arr)\n {\n return $arr[rand(0, sizeof($arr) - 1)];\n }", "public function getParams(): array;", "abstract public function generateData(array $data);", "abstract public function init(array $input);", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "public function asArray();", "function buildArray(&$A) {\n\t\t\t$cant = count($A);\n\t\t\t$B = [];\n\t\t\t\n\t\t\t$B[] = $A;\n\t\n\t\t\treturn $B;\n\t\t}", "public function __invoke() : array;", "public function __invoke() : array;", "function farr(&$R,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"uint32\",$n,$m);\n\t\t}", "public function getGen();", "public function arrayStructure()\n\t{\n\t\treturn array();\n\t}", "function params(array $data);", "private function createArray()\n {\n $this->makeGroupBy()->makeSearch()->normalize();\n }", "abstract protected function getIteratorArray();", "abstract protected function inputs(): array;", "public function values() : array;", "function earr(&$R,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"uint16\",$n,$m);\n\t\t}", "public static function crear(array $data);", "function garr(&$R,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"f32\",$n,$m);\n\t\t}", "public function init()\n {\n $ar = array();\n for ($i = 0; $i < 20; $i++)\n {\n $ar[] = $i;\n }\n }", "public function getParameters(): array;", "function _random_array_($size, $min, $max) {\n $a = [];\n for ($i = 1; $i <= $size; $i++) {\n $a[] = rand($min, $max);\n }\n return $a;\n}", "function __constructor() {\n $arr = array();\n }", "function array_parallel(){\n\t$r = array();\n\t$args = func_get_args();\n\t$keys = array();\n\tforeach ($args as $a)\n\t\t$keys = array_merge($keys, array_keys($a));\n\t$keys = array_unique($keys);\n\n\tforeach ($keys as $k){\n\t\t$i = array();\n\t\tforeach ($args as $a)\n\t\t\t$i[] = nu($a[$k]);\n\t\t$r[$k] = $i;\n\t}\n\treturn $r;\n}", "public static function arraysOf(self $gen)\n {\n $sized = self::sized(function ($s) {\n return self::choose(0, $s);\n });\n return $sized->bindGen(function (RoseTree $numRose) use ($gen) {\n $seq = self::sequence(FP::repeat($numRose->getRoot(), $gen));\n return $seq->bindGen(function ($roses) {\n return self::pureGen(RoseTree::shrink(FP::args(), $roses));\n });\n });\n }", "public function randArray()\n{\n\t$rand = rand(1,3);\n\treturn $rand;\n}", "abstract public function getArguments(): array;", "public static function make_array($lang)\n\t{\n\t\t$out = '<?php '.\"\\nreturn array(\\n\";\n\t\t$out .= static::build_array($lang);\n\t\treturn $out.');';\n\t}", "function toArray() ;", "function toArray() ;", "public function createKeyArray(){\n\t$keyArray = array();\n\tif (isset($this->id)) $keyArray[\"id\"] = $this->id;\n\tif (isset($this->codice_categoria)) $keyArray[\"codice_categoria\"] = $this->codice_categoria;\n\tif (isset($this->codice)) $keyArray[\"codice\"] = $this->codice;\n\tif (isset($this->descrizione)) $keyArray[\"descrizione\"] = $this->descrizione;\n\treturn $keyArray;\n}", "public function create(array $input);", "abstract public function to_array();", "function cre_random_array($random,$i){\n srand((float) microtime() * 10000000);\n $rand_keys = array_rand($random, $i);\n $res = array();\n if($i > 1){\n for($a=0;$a<$i;$a++){\n $res[] = $random[$rand_keys[$a]];\n }\n }else{\n $res[] = $random[$rand_keys]; \n }\n return $res;\n }", "public function getAsArray();", "public function output(): array;", "function am() {\n\t\t$r = array();\n\t\tforeach(func_get_args()as $a) {\n\t\t\tif (!is_array($a)) {\n\t\t\t\t$a = array($a);\n\t\t\t}\n\t\t\t$r = array_merge($r, $a);\n\t\t}\n\t\treturn $r;\n\t}", "public function getImageArray();", "abstract protected function arguments(): array;", "public function wizardArray() {}", "function CrearArrayOpciones($pParamAAA){\n\t\treturn Array(\n\t\t\tCURLOPT_URL => _PayPal::$URLToken\n\t\t\t,CURLOPT_TIMEOUT => 60\n\t\t\t,CURLOPT_HTTPHEADER => Array(\n\t\t\t\t\t\t\t\"Content-type: application/json\"\n\t\t\t\t\t\t\t,\"Accept: application/json\"\n\t\t\t\t\t\t\t// ,\"Authorization: Basic \" . base64_encode($ClientID . \":\" . $ClientSecret)\n\t\t\t\t\t\t\t,$pParamAAA\n\t\t\t\t\t\t\t)\n\t\t\t,CURLOPT_POST => 1\n ,CURLOPT_RETURNTRANSFER => 1\n );\n\t}", "public function testParameters(): array;", "function helper($param1,$param2,$param3){\n\t\t$array = array();\n\t\t/**\n\t\t * do something...\n\t\t */\n\t\t\n\t\t$array = [3,6,3];\n\t\t\n\t\treturn $array;\n\t}", "function init_C($key_56){\n $C = array();\n for($i=0; $i<28; $i++){\n $C[$i] = $key_56[$i];\n }\n\n return $C;\n }", "function Varr(&$R,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"uint8\",$n,$m);\n\t\t}", "public static function run_all_initializations(): array;", "public function residue () :array\n {\n return [\n\n ];\n }", "function barr(&$R,$n,$m=\"\")\n\t\t{\n\t\treturn $this->Zarr($R,\"int16\",$n,$m);\n\t\t}", "abstract public function create(array $data): array;", "function maquetador_array( $c, $a, $i=\"\" ) {\n $aTemp = array ( \"c\" =>$c, \"a\" => $a );\n if ( $i!=\"\") {\n $aTemp[\"i\"] = $i ;\n }\n return $aTemp;\n}", "protected function initializeResultArray() {}", "public function arguments(): array;" ]
[ "0.69954973", "0.67968947", "0.6660896", "0.6359964", "0.63305676", "0.6174535", "0.6174535", "0.6073001", "0.60497713", "0.5895262", "0.5868703", "0.582139", "0.57906157", "0.5784861", "0.5761005", "0.5758971", "0.57567227", "0.57567203", "0.5749407", "0.57469475", "0.57466054", "0.57312065", "0.56680954", "0.5634927", "0.5616168", "0.5614283", "0.56062675", "0.5594345", "0.55902636", "0.5578601", "0.55706775", "0.5568716", "0.55530614", "0.5547303", "0.55424273", "0.55309165", "0.5517099", "0.55126876", "0.5511382", "0.5507198", "0.54895794", "0.54774815", "0.5460914", "0.54508865", "0.545053", "0.54456455", "0.5444953", "0.54223675", "0.54223675", "0.54223675", "0.54223675", "0.54223675", "0.54223675", "0.54194766", "0.53957367", "0.53957367", "0.5368876", "0.5353123", "0.5349782", "0.5344401", "0.53392476", "0.53217566", "0.5320171", "0.5319132", "0.53089285", "0.5297942", "0.52969444", "0.528529", "0.528148", "0.52715623", "0.5236294", "0.52358824", "0.5221419", "0.5218728", "0.52169394", "0.52121085", "0.5190851", "0.5190851", "0.5188178", "0.51766795", "0.51750445", "0.5174286", "0.51735705", "0.5171155", "0.516545", "0.51630247", "0.51558924", "0.5155044", "0.51531756", "0.51531506", "0.513848", "0.5120453", "0.51084703", "0.50986296", "0.5094765", "0.50863695", "0.5074153", "0.50728464", "0.5071359", "0.5070985" ]
0.7248972
0
Creates a form to delete a role entity.
Создает форму для удаления сущности роли.
private function createDeleteForm(Role $role) { return $this->createFormBuilder() ->setAction($this->generateUrl('role_delete', array('id' => $role->getId()))) ->setMethod('DELETE') ->getForm(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private function createDeleteForm(Roles $role)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('back_roles_delete', array('id' => $role->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function deleteRolesAction(){\n \n $request = $this->getRequest();\n \n if(! isset($request->id)) {\n // TODO Massege (Helper bauen??!)\n $this->_helper->messenger('error', \n Zend_Registry::get('config')->messages->role->invalid);\n return $this->_redirect('/admin/role');\n }\n \n $entity = 'Jbig3\\Entity\\RolesEntity';\n $repositoryFunction = 'findOneById';\n \n $role = $this->em->getRepository($entity)->$repositoryFunction($request->id);\n \n if($role !== null) {\n // TODO Cascade - hier anders gelöst (Kinder vorher manuell löschen)\n if(count($role->rules)) {\n // Masseges\n $this->_helper->messenger('error', \n 'Unable to remove group. Please remove dependencies first (Manual)');\n return $this->_redirect('/admin/role');\n }\n \n $roleName = $role->name;\n \n $this->em->remove($role);\n $this->em->flush();\n \n // TODO Masseges\n $this->_helper->messenger('success', \n sprintf(Zend_Registry::get('config')->messages->role->delete, $roleName));\n return $this->_redirect('/admin/role');\n } else {\n // TODO Masseegs\n $this->_helper->messenger('success', \n Zend_Registry::get('config')->messages->role->invalid);\n return $this->_redirect('/admin/role');\n }\n }", "public function actionDeleteRole ()\n\t\t{\n\n\t\t\t$auth = Yii::$app->getAuthManager();\n\t\t\t$role = $auth->getRole(Yii::$app->request->get('id'));\n\t\t\t$auth->remove($role);\n\t\t\t$url = Yii::$app->request->referrer . '#roles';\n\t\t\tYii::$app->response->redirect($url);\n\n\t\t\tYii::$app->end();\n\t\t}", "function uc_roles_deletion_form($form, &$form_state, $account, $rid) {\n $expiration = db_query(\"SELECT expiration FROM {uc_roles_expirations} WHERE uid = :uid AND rid = :rid\", array(':uid' => $account->uid, ':rid' => $rid))->fetchField();\n if ($expiration) {\n\n $role_name = _uc_roles_get_name($rid);\n\n $form['user'] = array('#type' => 'value', '#value' => format_username($account->name));\n $form['uid'] = array('#type' => 'value', '#value' => $account->uid);\n $form['role'] = array('#type' => 'value', '#value' => $role_name);\n $form['rid'] = array('#type' => 'value', '#value' => $rid);\n\n $form = confirm_form(\n $form,\n t('Delete expiration of %role_name role for the user !user?', array(\n '!user' => theme('username', array(\n 'account' => $account,\n 'name' => check_plain($account->name),\n 'link_path' => 'user/' . $account->uid,\n )),\n '%role_name' => $role_name,\n )),\n 'admin/user/user/expiration',\n t('Deleting the expiration will give !user privileges set by the %role_name role indefinitely unless manually removed.', array(\n '!user' => theme('username', array(\n 'account' => $account,\n 'name' => check_plain($account->name),\n 'link_path' => 'user/' . $account->uid,\n )),\n '%role_name' => $role_name,\n )),\n t('Yes'),\n t('No')\n );\n }\n else {\n $form['error'] = array(\n '#markup' => t('Invalid user id or role id.'),\n );\n }\n\n return $form;\n}", "private function createDeleteForm(Event $event)\n {\n // $this->enforceUserSecurity('ROLE_USER');\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('event_delete', array('slug' => $event->getSlug())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "function roleDelete(Role $role);", "private function createDeleteForm(Efunction $efunction)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('efunction_delete', array('id' => $efunction->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Acte $acte)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('acte_delete', array('id' => $acte->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function postDeleteRole(DeleteRequest $request)\n {\n $id = \\Input::get('id');\n // $student = Student::find($id);\n $gen_user_role = GenUserRole::find($id);\n $gen_user_role->delete();\n return redirect('gen_user');\n }", "public function deleting(Role $role)\n {\n }", "private function createDeleteForm(MostraMizaUllirit $mostraMizaUllirit)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('mostramizaullirit_delete', array('id' => $mostraMizaUllirit->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Event $event)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('event_delete', array('id' => $event->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Event $event)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('event_delete', array('id' => $event->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Event $event)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('event_delete', array('id' => $event->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy(Role $role)\n {\n //\n if($role->name ==\"app-admin\"){\n\n }else{\n $role->delete();\n }\n return redirect('roles');\n }", "public function getForm()\n {\n return new RoleForm;\n }", "private function createDeleteForm(Events $event) {\n\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('events_delete', array('id' => $event->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(ArmasMedico $armasMedico)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('armasmedico_delete', array('id' => $armasMedico->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(RhythmMaterial $rhythmMaterial)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('rhythmmaterial_delete', array('id' => $rhythmMaterial->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm($id) {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('rubrique_delete', array('id' => $id)))\r\n// ->setMethod('DELETE')\r\n ->add('submit', SubmitType::class, array('label' => 'Supprimer la rubrique courante'))\r\n ->getForm()\r\n ;\r\n }", "private function createDeleteForm(Aspirante $aspirante)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('aspirante_delete', array('id' => $aspirante->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Projecte $projecte)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('projecte_delete', array('id' => $projecte->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Musicien $musicien)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('musicien_delete', array('codeMusicien' => $musicien->getCodemusicien())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function postDelete()\n {\n self::getConnection()->delete('@system_user_role', ['user_id' => $this->getId()]);\n }", "private function createDeleteForm(Restricciones $restriccione)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('restricciones_delete', array('id' => $restriccione->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function executeDelete()\n {\n if($this->hasRequestParameter('ids')){\n $roles = array_reverse(RolePeer::retrieveByPKs(json_decode($this->getRequestParameter('ids'))));\n\n foreach($roles as $role){\n\t$role->delete();\n }\n\n }elseif($this->hasRequestParameter('id')){\n $role = RolePeer::retrieveByPk($this->getRequestParameter('id'));\n $role->delete();\n }\n\n $this->msg_alert = array('info', $this->getContext()->getI18N()->__(\"Rol borrado.\"));\n return $this->renderComponent('roles', 'list');\n }", "protected function createComponentDeleteForm()\r\n\t{\r\n\t\t$form = new Form;\r\n\t\t$form->addSubmit('delete', 'Smazat')->setAttribute('class', 'default');\r\n\t\t$form->addSubmit('cancel', 'Storno');\r\n\t\t$form->onSuccess[] = callback($this, 'deleteFormSubmitted');\r\n\t\t$form->addProtection(self::MESS_PROTECT);\r\n\t\treturn $form;\r\n\t}", "private function createDeleteForm(Recette $recette)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('recette_delete', array('id' => $recette->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Team $entity)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('app_team_delete', array('id' => $entity->getId())))\r\n ->setMethod('DELETE')\r\n ->getForm()\r\n ;\r\n }", "function travel_delete_form($form, &$form_state, $entity) {\n // Store the entity in the form.\n $form_state['entity'] = $entity;\n\n // Show confirm dialog.\n $entity_uri = entity_uri('travel', $entity);\n $message = t('Are you sure you want to delete entity %title?', array('%title' => entity_label('travel', $entity)));\n return confirm_form(\n $form,\n $message,\n $entity_uri['path'],\n t('This action cannot be undone.'),\n t('Delete'),\n t('Cancel')\n );\n}", "private function createDeleteForm(Metas $meta)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('admin_crud_metas_delete', array('id' => $meta->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy(Role $role)\n {\n $role->delete();\n return redirect()->route('role.index')->with('success','Role Deleted Successfully');\n }", "function mongo_node_page_delete($form, $form_state, $entity_type, $entity) {\n $form['#entity'] = $entity;\n $uri = entity_uri($entity_type, $entity);\n\n return confirm_form($form,\n t('Are you sure you want to delete %title', array('%title' => $entity->title)),\n $uri['path'],\n t('This action cannot be undone'),\n t('Delete'),\n t('Cancel')\n );\n}", "private function createDeleteForm(ManejoReproductivo $manejoReproductivo)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('manejoreproductivo_delete', array('id' => $manejoReproductivo->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm($id){\n\t\treturn $this->createFormBuilder()\n\t\t\t->setAction($this->generateUrl('reserva_delete', array('id' => $id)))\n\t\t\t->setMethod('DELETE')\n\t\t\t->add('submit', 'submit', array('label' => 'Eliminar Reserva', 'attr' => array('class'=>'btn btn-danger btn-block')))\n\t\t\t->getForm()\n\t\t;\n\t}", "public function destroy(Role $role)\n {\n $role->delete();\n\n return redirect()->route('admin.user_managment.role.index');\n }", "private function createDeleteForm(Reglement $reglement)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('reglement_delete', array('codeRegl' => $reglement->getCoderegl())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Absences $absence)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('student_absences_delete', array('id' => $absence->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy(Role $role)\n {\n $request = request();\n\n if ($request->isMethod('get')) {\n return view('roles.delete', array('role' => $role));\n } elseif ($request->isMethod('delete')) {\n try {\n $role->delete();\n\n return redirect()->route('roles.index')->with('success_messages', array(__('global.delete_success_notify')));\n } catch (\\Exception $e) {\n $errorMessage = formatHandleErrorMessage(__('global.delete_fail_notify'), $e);\n return redirect()->back()->withInput()->withErrors($errorMessage);\n }\n }\n }", "public function destroy(RoleDelete $request, Role $role)\n {\n $data = $request->validated();\n if($data['confirm'] == true) {\n $role->delete();\n return redirect(route('users.index'));\n }\n return back()->withErrors($request);\n }", "private function createDeleteForm(Complect $complect)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('nomenclature_complect_delete', array('id' => $complect->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy(Role $role)\n {\n \n $this->authorize('delete', $role);\n $role->delete();\n return redirect()->route('admin.roles.index')->withFlash('Role eliminado correctamente');\n \n }", "private function createDeleteForm(Evennements $evennement)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('evennements_delete', array('id' => $evennement->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function eliminar(Request $form)\n {\n // Recibe el id de la marca a eliminar\n $marca = Marca::find($form['id']);\n // Elimina la marca de la BBDD\n $marca->delete();\n // Redirije a la ruta /marcas\n return redirect('/marcas');\n }", "public function createRolesAction(){\n \n $request = $this->getRequest();\n \n $form = new Admin_Model_Forms_RolesForm($this->em);\n \n if($request->isPost()) {\n if($form->isValid($request->getParams())) {\n \n $role = new Jbig3\\Entity\\RolesEntity();\n $role->name = $request->name;\n \n if($request->parentRole != '') {\n $role->parent = $this->em->getReference('Jbig3\\Entity\\RolesEntity',\n $request->parentRole);\n }\n \n $this->em->persist($role);\n $this->em->flush();\n \n // TODO Massege\n $this->_helper->messenger('success', \n sprintf(Zend_Registry::get('config')->messages->role->create, \n $request->name));\n return $this->_redirect('/admin/role/create');\n } else {\n $this->view->errors = $form->getErrors();\n }\n }\n $this->view->form = $form;\n }", "public function deleteForm()\n\t{\n\t\t$form = new \\IPS\\Helpers\\Form( 'form', 'delete' );\n\t\t$form->addMessage( 'node_delete_blurb_no_content' );\n\t\t\n\t\treturn $form;\n\t}", "private function createDeleteForm($id)\n {\n \n $form = $this->createFormBuilder(null, array('attr' => array('id' => 'entrada_detalles_eliminar_type')))\n ->setAction('')\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar', 'icon' => 'trash', 'attr' => array('class' => 'btn-danger')))\n ->getForm()\n ;\n \n return $form;\n \n \n }", "private function createDeleteForm(CalendarEvent $event)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('ma_lrm_event_delete', array('id' => $event->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function createDeleteForm($id){\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('rsp_delete',array('id'=>$id)))\n ->setMethod('DELETE')\n ->add('submit','submit',array('label'=>'Delete'))\n ->getForm()\n ;\n }", "public function deleteAction() : object\n {\n if ($_SESSION['permission'] === \"admin\") {\n $form = new DeleteForm($this->di);\n $form->check();\n\n $this->page->add(\"user/crud/delete\", [\n \"form\" => $form->getHTML(),\n ]);\n\n return $this->page->render([\n \"title\" => \"Delete an item\",\n ]);\n }\n $this->di->get(\"response\")->redirect(\"user/login\");\n }", "public function destroy(Model $role)\n {\n $role->delete();\n return redirect()->route('admin.role.index')->with('notificationText', ' Role Destroy Successfully!');\n }", "public function destroy(Role $role)\n {\n //dd($role->toArray());\n $role->detachAllPermissions();\n $role->delete();\n writeLog('刪除 角色',$role->toArray());\n Session::flash('flash_message', '刪除成功!');\n // flash()->overlay('刪除成功!','系統訊息:');\n return redirect('/admin/role');\n }", "public function destroy(Role $role) {\n\t\t$this->authorize('hasaccess', 'roles.destroy');\n\t\t$role->delete();\n\t\treturn redirect()->route('role.index')->with('status_success', 'Role successfully removed');\n\t}", "private function createDeleteForm(Covoiturage $covoiturage)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('personnel_covoiturage_delete', array('id' => $covoiturage->getId())))\n ->setMethod('DELETE')\n ->getForm();\n }", "public function destroy(Request $request, $id) {\n // Fetch the role object\n // $role = $this->roleRepository->findById($id);\n\n // Remove the role\n // $role->delete();\n\n // // All done\n // $message = trans(\"comman.role\").' '.\"'{$role->name}'\".' '.trans(\"comman.removed\");\n // if ($request->ajax()) {\n // return response()->json([$message], 200);\n // }\n\n // session()->flash('success', $message);\n // return redirect()->route('roles.index');\n\n $id = Crypt::decryptString($id);\n $model = Role::find($id);\n if ($model) {\n $dependency = $model->deleteValidate($id);\n if (!$dependency) {\n $model->deleted = '1';\n $model->save();\n Flash::success(trans(\"comman.role_deleted\"));\n }else {\n Flash::error(trans(\"comman.role_dependency_error\",['dependency'=>$dependency]));\n }\n } else {\n Flash::error(trans(\"comman.role_error\"));\n }\n return redirect()->route('roles.index');\n }", "private function createDeleteForm(Claim $claim)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('claim_delete', array('id' => $claim->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy(Role $role)\n {\n //\n DB::beginTransaction();\n try{\n $role->delete();\n DB::commit();\n return redirect('roles');\n }catch(\\Exception $e){\n DB::rollBack();\n return redirect('roles');\n }\n }", "private function createDeleteForm(Eventos $evento)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('eventos_delete', array('id' => $evento->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function create()\n {\n $role = new Role;\n $form = RolePresenter::form($role, 'create');\n\n Site::set('title', trans('orchestra/control::title.roles.create'));\n\n return View::make('orchestra/control::roles.edit', array(\n 'role' => $role,\n 'form' => $form,\n ));\n }", "public function remove(AccountDomainModels\\Role $entity)\n {\n $id = $entity->id()->value();\n\n $this->model->destroy($id);\n }", "private function createDeleteForm(Extra $extra)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('extra_delete', array('id' => $extra->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy($id)\n {\n DB::table(\"roles\")->where('id',$id)->delete();\n return redirect()->route('admin.roles')\n ->with('success','Permissão deletada com sucesso');\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('caracteristicasequipo_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Eliminar','attr' => array('class' => 'btn btn-danger')))\n ->getForm()\n ;\n }", "private function createDeleteForm(Registro $registro)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('registro_delete', array('id' => $registro->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function del_role(){\n\t\textract($_POST);\n\n\t\t//Connection establishment to get data from REST API\n\t\t$path=base_url();\n\t\t$url = $path.'api/manageRoles_api/del_role?role_id='.$role_id;\t\t\n\t\t$ch = curl_init($url);\n\t\tcurl_setopt($ch, CURLOPT_HTTPGET, true);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\t$response_json = curl_exec($ch);\n\t\tcurl_close($ch);\n\t\t$response=json_decode($response_json, true);\n\t\t//api processing ends\n\n\t\tif($response['status']==0){\n\t\t\techo '<div class=\"alert alert-danger\">\n\t\t\t<strong>'.$response['status_message'].'</strong> \n\t\t\t</div>\t\t\t\t\t\t\n\t\t\t';\t\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\techo '<div class=\"alert alert-warning\">\n\t\t\t<strong>'.$response['status_message'].'</strong> \n\t\t\t</div>\t\t\t\t\t\t\n\t\t\t';\t\t\t\t\n\t\t\t\n\t\t}\t\n\t\t\n\t}", "private function createDeleteForm(Partido $partido) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('partido_delete', ['id' => $partido->getId()]))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function confirmDelete(Role $role)\n {\n $this->authorize('delete', Role::class);\n\n return view('laralum::pages.confirmation', [\n 'method' => 'DELETE',\n 'action' => route('laralum::roles.destroy', ['role' => $role]),\n ]);\n }", "public function destroy(Role $role)\n {\n try{\n $role->delete();\n return redirect()->back()\n ->with('success', 'Role Deleted successfully.');\n }catch(\\Exception $e){\n DB::rollback();\n return Redirect::back()->with('error',$e->getMessage());\n }\n }", "private function createDeleteForm(Materials $material)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('materials_delete', array('id' => $material->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('userman_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm();\n }", "public function create()\n {\n $role = new Role();\n\n return View::make('pvadmin.roles.form')\n ->with('title', 'Create Role')\n ->with('action', 'pvadmin.roles.store')\n ->with('method', 'post')\n ->with('permissions', Permission::optionsList())\n ->with('role', $role);\n }", "private function createDeleteForm(Brand $brand)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('brand_delete', array('id' => $brand->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function newAction()\n {\n $journal = $this->get('ojs.journal_service')->getSelectedJournal();\n if (!$this->isGranted('CREATE', $journal, 'userRole')) {\n throw new AccessDeniedException(\"You are not authorized for view this page\");\n }\n $entity = new JournalRole();\n $entity->setJournal($journal);\n $em = $this->getDoctrine()->getManager();\n $em->persist($entity);\n $form = $this->createCreateForm($entity);\n\n return $this->render(\n 'OjsJournalBundle:JournalRole:new.html.twig',\n array(\n 'entity' => $entity,\n 'form' => $form->createView(),\n )\n );\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('empleado_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "private function createDeleteForm(Recipe $recipe)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('recipe_delete', array('id' => $recipe->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy($id)\n {\n $role=Role::find($id);\n\n $role->delete();\n\n return view('admin.pages.index_role');\n\n }", "private function createDeleteForm(Proprietaire $proprietaire) {\n return $this->createFormBuilder\n ->setAction($this->generateUrl('post_admin_delete', array('id' => $proprietaire->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(ModelMenu $modelMenu) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('modelmenu_delete', array('id' => $modelMenu->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(SkipMode $skipMode)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('skipmode_delete', array('id' => $skipMode->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private\n function createAgenceeDeleteForm(Agence $agence)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('agencee_delete', array('id' => $agence->getAgenceId())))\n ->setMethod('DELETE')\n ->getForm();\n }", "private function createDeleteForm(Tblyear $tblyear)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('tblyear_delete', array('id' => $tblyear->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function deleteAction(Request $request, $id)\n {\n $em = $this->getDoctrine()->getManager();\n $journal = $this->get('ojs.journal_service')->getSelectedJournal();\n if (!$this->isGranted('DELETE', $journal, 'userRole')) {\n throw new AccessDeniedException(\"You are not authorized for view this page\");\n }\n $entity = $em->getRepository('OjsJournalBundle:JournalRole')->findOneBy(\n array('id' => $id, 'journal' => $journal)\n );\n $this->throw404IfNotFound($entity);\n\n $csrf = $this->get('security.csrf.token_manager');\n $token = $csrf->getToken('ojs_journal_role'.$entity->getId());\n if($token!=$request->get('_token'))\n throw new TokenNotFoundException(\"Token Not Found!\");\n\n $em->remove($entity);\n $em->flush();\n $this->successFlashBag('successful.remove');\n\n return $this->redirectToRoute('ojs_journal_role_index');\n }", "private function createDeleteForm(Livr $livr)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('livr_delete', array('idv' => $livr->getIdv())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(Examenrealizado $examenrealizado)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('examenrealizado_delete', array('idexamenrealizado' => $examenrealizado->getIdexamenrealizado())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('solmantenimientoidentificacion_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Borrar','attr'=>array('class'=>'btn btn-danger btn btn-danger btn-lg btn-block')))\n ->getForm()\n ;\n }", "private function createDeleteForm(Demandados $demandado)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('demandados_delete', array('id' => $demandado->getIdDemandado())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(AbsenceEmploye $absenceEmploye)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('absenceemploye_delete', array('idAbsenceE' => $absenceEmploye->getIdabsencee())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('utente_delete', array('id' => $id)))\n ->setMethod('DELETE')\n ->add('submit', 'submit', array('label' => 'Delete'))\n ->getForm()\n ;\n }", "public function destroy(Role $role)\n {\n if(Auth::user()->can('destroy-roles')){\n ActivityLogger::activity(\"Suppression du role ID:\".$role->id.'('.$role->name.') par l\\'utilisateur ID:'.Auth::id().\"(\".Auth::user()->name.\")\");\n $role->delete();\n return redirect()->route(\"roles.index\")->with('success', 'Role supprimé avec succès'); \n }else{\n return back()->with('error',\"Vous n'avez pas ce droit\");\n } \n }", "private function createDeleteForm(Orden $orden)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('orden_delete', array('id' => $orden->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm($id)\r\n {\r\n return $this->createFormBuilder()\r\n ->setAction($this->generateUrl('admin_consulta_delete', array('id' => $id)))\r\n ->setMethod('DELETE')\r\n ->add('submit', 'submit', array('label' => 'Delete'))\r\n ->getForm()\r\n ;\r\n }", "private function createDeleteForm(RelationUserEntite $relationUserEntite)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('relationuserentite_delete', array('id' => $relationUserEntite->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function create()\n {\n return view('admin.crud_admin.role.create');\n\n }", "private function createDeleteForm(NomDpa $nomdpa)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('dpa_delete', array('id' => $nomdpa->getIddpa())))\n ->setMethod('DELETE')\n ->getForm();\n }", "private function createDeleteForm(Materiel $materiel) {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('materieladmin_delete', array('id' => $materiel->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "private function createDeleteForm(m_employee $m_employee)\n {\n return $this->createFormBuilder()\n ->setAction($this->generateUrl('prefix_update_delete', array('id' => $m_employee->getId())))\n ->setMethod('DELETE')\n ->getForm()\n ;\n }", "public function destroy(Role $role)\n {\n $role->permissions()->detach();\n $role->delete();\n return redirect(\\Config::get(\"admin\").\"/roles/\");\n }", "public function destroy(Role $role)\n {\n //\n }", "public function destroy(Role $role)\n {\n //\n }", "public function destroy(Role $role)\n {\n //\n }" ]
[ "0.80152273", "0.69734687", "0.69086474", "0.6816056", "0.6799801", "0.6702436", "0.6464739", "0.64358765", "0.6387753", "0.6355804", "0.63335204", "0.63201606", "0.63201606", "0.63201606", "0.63067895", "0.6303177", "0.62701714", "0.62513304", "0.6242807", "0.62261164", "0.6204073", "0.6181939", "0.6166027", "0.61537284", "0.6152475", "0.61454445", "0.61361235", "0.6128081", "0.6126932", "0.61123484", "0.6107838", "0.6103415", "0.61018616", "0.61011076", "0.6099849", "0.6091326", "0.6086391", "0.60771734", "0.60728484", "0.60676986", "0.6058282", "0.6054362", "0.60534006", "0.60469866", "0.6045603", "0.6042272", "0.60394025", "0.603542", "0.6026519", "0.60126567", "0.60051036", "0.5993625", "0.598668", "0.5986051", "0.5986045", "0.5981605", "0.59770197", "0.59741086", "0.597211", "0.59630615", "0.5962608", "0.59591365", "0.59555876", "0.59529865", "0.59521836", "0.5950867", "0.594558", "0.5944002", "0.5943067", "0.5938623", "0.59327376", "0.59314084", "0.5924978", "0.5922755", "0.5912167", "0.5910964", "0.59099144", "0.5909664", "0.59052587", "0.59040177", "0.5903883", "0.5902486", "0.5901408", "0.5899902", "0.58946943", "0.5894359", "0.5893648", "0.5891216", "0.5891048", "0.58888006", "0.58851737", "0.58844495", "0.5882836", "0.58820194", "0.5877036", "0.58758235", "0.5873056", "0.58717364", "0.58717364", "0.58717364" ]
0.79986936
1
Public methods Initializes the server with the given configuration. This method will also spawn any configured FastCGI processes required at startup, and load the configured request handlers. Once initialized, it starts the main server loop.
Публичный метод инициализирует сервер с заданной конфигурацией. Этот метод также запускает любые настроенные процессы FastCGI, необходимые при запуске, и загружает настроенные обработчики запросов. После инициализации он запускает основной цикл сервера.
public static function start($config) { // Add the config if (!is_array($config)) { trigger_error("Cannot start server, invalid configuration settings", E_USER_ERROR); } MHTTPD::addConfig($config); // Load the mime types info $mimes = @parse_ini_file(MHTTPD::getExepath().'lib\minihttpd\config\mimes.ini', true); MHTTPD::$config['Mimes'] = array_map('listToArray', $mimes['Mimes']); // Set the initial server info values MHTTPD::$info['software'] = 'MiniHTTPD/'.MHTTPD::VERSION.' ('.php_uname('s').')'; $addr = $config['Server']['address']; $port = $config['Server']['port']; MHTTPD::$info['signature'] = 'MiniHTTPD/'.MHTTPD::VERSION.' ('.php_uname('s').") Server at {$addr} Port {$port}"; MHTTPD::$info['launched'] = time(); // Spawn any FCGI processes MFCGI::$debug = MHTTPD::$debug; MFCGI::spawn(null, MHTTPD::$config); // Load the configured request handlers if (MHTTPD::$debug) {cecho(chrule()."\n");} foreach (MHTTPD::$config['Handlers'] as $type=>$handler) { if (class_exists($handler)) { if (MHTTPD::$debug) {cecho("Handler loaded ... $type\n");} MHTTPD::$handlers[$type] = new $handler; } } // Create the queue object for the handlers MHTTPD::$handlersQueue = new MHTTPD_Handlers_Queue(MHTTPD::$handlers); // Start running the main loop MHTTPD::$running = true; MHTTPD::main(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function start()\n {\n $this->registerDefaultServices();\n\n $this->handle($this->request->createFromGlobals());\n }", "private function run()\n {\n error_reporting(E_ALL|E_STRICT);\n $namespace = 'cli';\n if (defined('NAMESPACE')) {\n $namespace = constant('NAMESPACE');\n }\n elseif (isset($_SERVER, $_SERVER['SERVER_NAME'])) {\n $namespace = $_SERVER['SERVER_NAME'];\n }\n if (!defined('BOOTSTRAP_FILE')) {\n die('Please define BOOTSTRAP_FILE before calling Init::run()');\n }\n Zend_Registry::set('namespace', $namespace);\n try {\n $this->startTimer();\n $this->loadConfig(str_replace(array('.','-'), '_', $namespace));\n $this->setDebug();\n $this->initResources();\n $this->initTimezone();\n $this->initRequest(constant('BOOTSTRAP_FILE'), $namespace);\n $this->initLocale();\n $this->initTranslate();\n $this->initLogging($namespace);\n $this->parseRequest($namespace);\n } catch (WrappedException $we) {\n $this->spawnInitError($we);\n }\n }", "public function run()\n {\n $this->server->start();\n }", "public static function start()\n {\n if (self::$config === null) {\n self::$config = Config::get('routes');\n self::$mimeTypes = Config::get('mimetypes');\n }\n\n foreach (self::$config['routes'] as $route) {\n include self::$config['path'].$route.'.php';\n }\n }", "public function start()\n\t{\n\t\t$this->define_home_dir_constant();\n\t\t$this->register_root_namespace();\n\t\tspl_autoload_register(array($this, 'autoload'));\n\t}", "public function run()\n {\n $this->run_configuration();\n\n $this->request->plugins = $this->pluggins;\n\n $app = $this;\n\n $this->router->start($app);\n }", "public function init()\n\t{\n\t\t$this->update();\n\t\t\n\t\tif ($this->config->enable->value)\n\t\t{\n\t\t\t$this->bindSockets(\n\t\t\t\t$this->config->listen->value,\n\t\t\t\t$this->config->listenport->value\n\t\t\t);\n\t\t}\n\t}", "protected function setupServers()\n\t{\n\t\t$docRoot = realpath(__DIR__ . '/..') . '/web';\n $serverPort = self::choosePort(\n self::URL_SERVER_PORT_MIN,\n self::URL_SERVER_PORT_MAX\n );\n self::$webServerUrl = self::URL_SERVER_BASE . ':' . $serverPort;\n\t\t$server = new Server($docRoot, self::$webServerUrl);\n\n\t\t// Wait for an alive response\n $integrationRoot = realpath(__DIR__ . '/..');\n\t\t$server->setRouterScriptPath($integrationRoot . '/scripts/router.php');\n\t\t$server->setCheckAliveUri('/server-check');\n\n\t\t$this->addServer($server);\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 }", "protected function initialize()\n {\n $this->setupLogger();\n $this->writePidfile();\n $this->addDefaultHandlers();\n }", "public function init(ServerConfigurationInterface $serverConfig);", "private function serveStart()\n {\n if (static::$run) {\n return;\n }\n\n static::$run = true;\n\n print \"Running dev/build...\\n\";\n @exec(\"framework/sake dev/build flush=1 > /dev/null 2> /dev/null\");\n\n print \"Finding open port...\\n\";\n\n while (!$this->addressAvailable($this->getHost(), $this->getPort())) {\n $this->setPort($this->getPort() + 1);\n }\n\n if (!$this->running) {\n $host = $this->getHost();\n $port = $this->getPort();\n\n $hash = spl_object_hash($this);\n\n print \"Starting development server...\\n\";\n $command = \"framework/sake dev/tasks/SilverStripe-Serve-Task hash={$hash} host={$host} port={$port} > /dev/null 2> /dev/null &\";\n\n exec($command, $output);\n\n $command = \"ps -o pid,command | grep {$hash}\";\n @exec($command, $output);\n\n if (count($output) > 0) {\n foreach ($output as $line) {\n $parts = explode(\" \", $line);\n $this->pid[] = $parts[0];\n }\n }\n\n sleep(1);\n }\n }", "public function init()\n\t{\n\t\t$this->serversInit();\n\t}", "public function __construct()\n\t{\n\t\tself::$classRouter\t= RecursiveRouter::class;\n\t\tself::$configFile\t= \"config/config.ini\";\n\t\t$this->detectSelf( FALSE );\n\t\t$this->uri\t= getCwd().'/';\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// hack for console jobs\n\t\t$this->initClock();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup clock\n\t\t$this->initConfiguration();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup configuration\n\t\t$this->initModules();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup module support\n\t\t$this->initDatabase();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup database connection\n\t\t$this->initCache();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup cache support\n\t\t$this->initRequest();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup HTTP request handler\n\t\t$this->initResponse();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup HTTP response handler\n\t\t$this->initRouter();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setup request router\n\t\t$this->initLanguage();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// [DO NOT] setup language support\n\t\t$this->initPage();\n\t\t$this->__onInit();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// call init event (implemented by extending classes)\n\t\tif( $this->getModules()->has( 'Resource_Database' ) )\n\t\t\t$this->dbc->query( 'SET NAMES \"utf8\"' );\t\t\t\t\t\t\t\t\t\t\t\t// ...\n\t}", "public static function start($config) {\n\t\ttry {\n\n\t\t\tset_error_handler(function ($err_severity, $err_msg, $err_file, $err_line, array $err_context) {\n\t\t\t if (0 === error_reporting()) { return false;}\n\t\t\t if(!self::_initError($err_msg, $err_file, $err_line)) {\n\t\t\t \tthrow new Exception ($err_msg . \" | File: \". $err_file .\"(\". $err_line .\")\", 0);\n\t\t\t }\n\t\t\t\t\n\t\t\t});\n\n\t\t\tself::$_config = include $config;\n\n\t\t\t// Missing htaccess web server files\n\t\t\tself::_initHtaccess();\n\t\t\t\n\t\t\t// Checks if PHP is greater than 7\n\t\t\tself::_initPHP();\n\n\t\t\tdefine(\"FRAMEWORK\", __DIR__);\n\t\t\tdefine('APP', self::config('appDir'));\n\t\t\tdefine(\"RUNTIME\", $_SERVER[\"DOCUMENT_ROOT\"] . \"/\" . SBJ::config(\"runtimeDir\"));\n\t\t\tdefine(\"ROOT\", $_SERVER[\"DOCUMENT_ROOT\"]);\n\t\t\tdefine(\"CONFIG_DIR\", dirname($config));\n\t\t\tdefine(\"CONFIG_PATH\", $config);\n\n\t\t\tif (!defined( \"PATH_SEPARATOR\" )) { \n\t\t\t\tif (strpos( $_ENV[ \"OS\" ], \"Win\") !== false ) \n\t\t\t\t\tdefine( \"PATH_SEPARATOR\", \";\" ); \n\t\t\t\telse define( \"PATH_SEPARATOR\", \":\" ); \n\t\t\t} \n\t\t\tset_include_path(APP . self::config('controllerDir') .'/'. PATH_SEPARATOR . APP . self::config('modelDir') .'/'. PATH_SEPARATOR. FRAMEWORK . '/'. PATH_SEPARATOR . FRAMEWORK . '/base/');\n\t\t\tspl_autoload_register(function ($class) {\n\t\t\t\tinclude $class . '.class.php';\n\t\t\t});\n\n\t\t\t// Parse URL and write controller and action to constants (CONTROLLER, ACTION)\n\t\t\tURL::init();\n\n\t\t\t$error = explode(\"/\", self::config(\"error_404\"));\n\n\n\t\t\tif(false === self::_initAction(CONTROLLER, ACTION) && false == self::_initAction($error[0], $error[1])) {\n\t\t\t\tthrow new Exception(\"Not Found \". CONTROLLER . \" / \" . ACTION, 404);\n\t\t\t};\n\n\t\t} catch (Exception $e) {\n\t\t\tself::_displayError($e);\n\t\t} catch (Error $e) {\n\t\t\tself::_displayError($e);\n\t\t} catch (Throwable $e) {\n\t\t\tself::_displayError($e);\n\n\t\t}\n\t}", "function start_application() {\n\t// The SAPI type is cgi-fcgi when accessed from the browser.\n\tif (PHP_SAPI === 'cgi-fcgi') {\n\t\t// Force secure site.\n\t\tif (FORCE_SECURE) {\n\t\t\tredirect_to_https();\n\t\t}\n\t}\n\n\trequire ABSPATH . 'vendor/autoload.php';\n\n\t// Make sure OpenOffice is running.\n\t// start_openoffice();\n\n\t// Include base classes.\n\tinclude_classes();\n\n\t// Include controllers.\n\tinclude_controllers();\n\n\t// Activate query string parameters.\n\tinclude_query_string();\n}", "public function __construct()\n\t{\n\t\t$configuration = new Config();\n\t\t// Configure socket server\n\t\tparent::__construct($configuration->socket_host, $configuration->socket_controller_port);\n\n\t\t// Run the server\n\t\t$this->run();\n\t}", "public function __construct()\n {\n $this->http = new swoole_http_server(self::HOST, self::PORT);\n\n $this->http->set([\n \"enable_static_handler\" => true,\n \"document_root\" => \"/home/alex/study/thinkphp/public/static/\",\n 'worker_num' => 2,\n 'task_worker_num' => 2,\n\n ]);\n\n $this->http->on(\"WorkerStart\", [$this, 'onWorkerStart']);\n $this->http->on(\"request\", [$this, 'onRequest']);\n $this->http->on(\"task\", [$this, 'onTask']);\n $this->http->on(\"finish\", [$this, 'onFinish']);\n $this->http->on(\"close\", [$this, 'onClose']);\n\n\n $this->http->start();\n }", "public function init() {\n #Get bootstrap object.\n $bootstrap = $this->getInvokeArg('bootstrap');\n #Get Logger\n $this->log = $bootstrap->getResource('Log');\n #Get Doctrine Entity Manager\n $this->em = $bootstrap->getContainer()->get('entity.manager');\n #Get config\n $this->config = $bootstrap->getContainer()->get('config');\n\n #Init REST Server\n $this->_server = new Server($this->getRequest());\n $aliases = array(\n 'resources' \t=> self::RESOURCES,\n 'variations' \t=> self::VARIATIONS,\n 'galleries' \t=> self::GALLERIES,\n 'pages' \t\t=> self::PAGES,\n 'menuitems' => self::MenuItems,\n 'templates' \t=> self::TEMPLATES,\n 'tvars' \t\t=> self::TVARS,\n 'tvarconts' \t=> self::TVARCONTENTS,\n 'users' \t\t=> self::USERS,\n 'blog' \t\t=> self::BLOGITEMS,\n 'discounts' \t=> self::DISCOUNTS,\n 'vcard' \t\t=> self::HCARDS,\n 'categories' \t=> self::CATEGORIES,\n 'tags' \t\t=> self::TAGS,\n 'settings' \t\t=> self::SETTINGS,\n 'addresses' \t=> self::ADDRESSES,\n 'metadata' \t\t=> self::METADATA,\n 'homepageitems' => self::HOMEPAGEITEMS,\n 'homepage' \t\t=> self::HOMEPAGE,\n 'brands'\t\t=> self::BRANDS,\n 'products'\t\t=> self::PRODUCTS,\n 'looks'\t\t\t=> self::LOOKS,\n 'grids'\t\t\t=> self::GRIDS,\n 'acluserroles'\t=> self::ACLUSERROLES,\n 'collections' => self::COLLECTIONS,\n );\n $actions = array(\n 'auth' => self::AUTH,\n 'mediabrowser' => self::MEDIABROWSER,\n 'mediavariations' => self::MEDIA_VARIATIONS,\n 'search' => self::SEARCH,\n 'videos' => self::RESOURCES_VIDEOS\n );\n $this->_server->setAliases($aliases);\n $this->_server->setActions($actions);\n $this->method = $this->_server->getResponseActionName();\n $this->_repo = $this->_server->execute();\n\n #Enable Context Switching\n $contextSwitch = $this->_helper->getHelper('contextSwitch');\n $contextSwitch\n ->addActionContext('index', array('xml', 'json'))\n ->addActionContext('get', array('xml', 'json'))\n ->addActionContext('put', array('xml', 'json'))\n ->addActionContext('post', array('xml', 'json'))\n ->addActionContext('delete', array('xml', 'json'))\n ->addActionContext('head', array('xml', 'json'))\n ->addActionContext('option', array('xml', 'json'))\n ->setAutoJsonSerialization(true)\n ->initContext();\n #disable view rendering\n //$this->_helper->viewRenderer->setNeverRender(true);\n $this->_helper->viewRenderer->setNoRender(true);\n $this->_helper->layout->disableLayout();\n #Set Action Name for Request.\n if ($this->_server->getActionType() == 'action') {\n $this->method = 'method';\n }\n #Authentication\n// $this->_server->setPassword($password)->setUsername($username);\n #Security Options ::\n #Get Acl Object\n #TODO Set auth request inside server to allow you to use auth\n #Get Zend Auth.\n// $this->auth = Zend_Auth::getInstance();\n// if(!$this->auth->hasIdentity()) {\n// $this->_redirect('/admin/auth/login/');\n// }\n $this->getRequest()->setActionName($this->method);\n $this->view->response = \"\";\n $this->log->info(get_class($this) . '::init(' . $this->method . ')');\n #Allow xml to use view rendering.\n if ($this->getRequest()->getParam('format') == 'xml') {\n $this->_helper->viewRenderer->setNoRender(false);\n }\n// #TODO Find a way to allow entity to decide how it should interact with REST?\n// $reader = new AnnotationReader();\n// $reflClass = new \\ReflectionClass($this->_server->getActiveNamespace());\n// $classAnnotations = $reader->getClassAnnotations($reflClass);\n// $reflProperties = $reflClass->getProperties();\n// $mappedConstants = $reflClass->getConstants();\n// $this->log->info($classAnnotations);\n// foreach($reflProperties as $property) {\n// $reflProperties = new \\ReflectionProperty($property->class, $property->name);\n// $annotations = $reader->getPropertyAnnotations($reflProperties);\n// $this->log->info($property);\n// $this->log->info($annotations);\n// }\n// $this->log->info(\"EO Props\");\n\n $this->messageQueue = $this->_helper->getHelper('FlashMessenger');\n $this->view->messages = $this->messageQueue->getMessages();\n\n $frontendOptions = array(\n 'lifetime' => self::CACHE_LIFETIME, // cache lifetime of 2 hours\n 'automatic_serialization' => true\n );\n\n $backendOptions = array(\n 'cache_dir' => WEB_PATH . self::CACHE_DIR // Directory where to put the cache files\n );\n\n // getting a Zend_Cache_Core object\n $this->cache = \\Zend_Cache::factory('Core',\n 'File',\n $frontendOptions,\n $backendOptions);\n }", "private function start()\n {\n // CSRF Watchdog\n $this->csrfWatchdog();\n\n // Retrieve and other services\n $this->retriever->watchdog();\n\n // Router Templater Hybrid\n $this->renderer->route();\n }", "public function init()\n {\n parent::init();\n\n $this->command('serve', Serve::class);\n }", "private function startup()\n\t{\n\t\t$this->registerSigHandlers();\n\t\t$this->pruneDeadWorkers();\n\t\tEvent::trigger('beforeFirstFork', $this);\n\t\t$this->registerWorker();\n\t}", "public static function Init ()\r\n\t{\r\n\t\t$sessions = config('sessions');\r\n\r\n\t\tif ($sessions) {\r\n\t\t\tforeach ($sessions as $sid => $cfg)\r\n\t\t\t{\r\n\t\t\t\t// We are creating a new session based on our config file definitions,\r\n\t\t\t\t// so its safer to use createSession than getSession, since we're sure\r\n\t\t\t\t// there's no session in the instances container with same SID.\r\n\t\t\t\tself::$instances->$sid = self::createSession($sid, $cfg);\r\n\t\t\t\tif (true == self::$instances->$sid->autostart) {\r\n\t\t\t\t\tself::$instances->$sid->start();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static function Initialize()\n\t\t{\n\t\t\tself::SetIniDirectives();\n\t\t\tself::AddRoutes();\n\t\t}", "protected function configureSwooleServer()\n {\n $config = $this->container['config']->get('swoole.server');\n\n $this->server->set($config);\n }", "private function init($serverData = null)\n {\n //Use global most of the time\n if (is_null($serverData)) {\n $serverData = $_SERVER;\n }\n\n //Get the protocol and port\n $this->port = (strpos($serverData['HTTP_HOST'], ':'))\n ? end(explode(':', $serverData['HTTP_HOST']))\n : $serverData['SERVER_PORT'];\n $this->protocol = ($this->port == 443 || ( ! empty($serverData['HTTPS']) && $serverData['HTTPS'] == 'on')) ? 'https' : 'http';\n $this->https = ($this->protocol == 'https');\n\n //Get the server name\n $this->hostname = (isset($serverData['SERVER_NAME'])) ? $serverData['SERVER_NAME'] : $serverData['HTTP_HOST'];\n $this->hostIP = $serverData['SERVER_ADDR'];\n\n //Get the base URL path & script name\n $scriptname = basename($serverData['SCRIPT_FILENAME']);\n $this->basepath = str_replace($scriptname, '', $serverData['SCRIPT_NAME']);\n\n //Set the script name.\n if (strpos($serverData['REQUEST_URI'], $scriptname) !== false) {\n $this->scriptname = $scriptname;\n }\n else {\n $this->scriptname = '';\n }\n\n //Set the request_uri\n $reqURI = explode('?', $serverData['REQUEST_URI'], 2);\n $reqURI = $this->reduceDoubleSlashes(array_shift($reqURI));\n\n //The query string\n $this->query = $serverData['QUERY_STRING'];\n\n //Get the PATH\n $pathinfo = substr($reqURI, strlen($this->basepath . $this->scriptname));\n\n $segments = array();\n if ( ! empty($pathinfo)) {\n $arr = array_values(array_filter(explode('/', $pathinfo)));\n for($i = 0; $i < count($arr); $i++)\n $segments[($i+1)] = $arr[$i];\n }\n $this->path = implode('/', $segments);\n\n //Build the baseurl and currenturl\n if (($this->protocol == 'https' && $this->port != 443) OR ($this->protocol == 'http' && $this->port != 80))\n $port = ':' . $this->port;\n else\n $port = '';\n\n $this->baseurl = $this->reduceDoubleSlashes($this->protocol . '://' . $this->hostname . $port . '/' . $this->basepath . '/');\n $this->appurl = $this->reduceDoubleSlashes($this->baseurl . $this->scriptname . '/');\n\n $this->currenturl = $this->reduceDoubleSlashes($this->appurl . '/' . $this->path);\n $this->fullurl = ( ! empty($this->query)) ? $this->currenturl . '?' . $serverData['QUERY_STRING'] : $this->currenturl;\n }", "public static function initialize()\n {\n // Load Global Functions\n self::loadGlobalFunctions();\n\n // Load the configuration into system\n if (! IOFunctions::loadConfig()) {\n exit();\n }\n\n // Enabele error reporting\n ini_set('display_errors', 0);\n ini_set('display_startup_errors', 0);\n error_reporting(E_ALL);\n if (sf_conf('system.display_errors')) {\n ini_set('display_errors', 1);\n ini_set('display_startup_errors', 1);\n }\n\n // Set error handler and shutdown hook\n set_error_handler('\\\\Synful\\\\IO\\\\IOFunctions::catchError', E_ALL);\n register_shutdown_function('\\\\Synful\\\\IO\\\\IOFunctions::onShutDown');\n\n // Check Cross Origin Resource Sharing\n if (sf_conf('system.cors_enabled')) {\n if (in_array('all', sf_conf('system.cors_domains'))) {\n header('Access-Control-Allow-Origin: *');\n } else {\n foreach (sf_conf('system.cors_domains') as $domain) {\n if ($_SERVER['HTTP_ORIGIN'] == $domain) {\n header('Access-Control-Allow-Origin: '.$domain);\n break;\n }\n }\n }\n }\n\n // Check global rate limiter\n if (sf_conf('rate.global')) {\n if (! RateLimit::global()->isUnlimited()) {\n if (RateLimit::global()->isLimited(self::getClientIP())) {\n $response = (new SynfulException(500, 1028))->response;\n sf_respond($response->code, $response->serialize());\n exit;\n }\n }\n }\n\n // Load Template Plugins\n if (sf_conf('templating.enabled')) {\n self::loadTemplatePlugins();\n }\n\n // Initialize the Database Connections\n self::initializeDatabases();\n\n // Load routes\n self::loadRoutes();\n\n // Parse Command Line\n if (self::isCommandLineInterface()) {\n global $argv;\n $commandLine = new CommandLine();\n $results = $commandLine->parse($argv);\n\n // Output Results\n if ((array_key_exists('hc', $results) && ! $results['hc']) ||\n ! array_key_exists('hc', $results)) {\n if (array_key_exists('cl', $results)) {\n $str = (sf_conf('system.color')) ? 'true' : 'false';\n sf_note('CONFIG: Set console color to \\''.$str.'\\'.');\n }\n\n if (array_key_exists('o', $results)) {\n sf_note('CONFIG: Set output level to \\''.$results['o'].'\\'.');\n }\n }\n\n if ((count($argv) < 2 || substr($argv[1], 0, 7) == '-output' ||\n substr($argv[1], 0, 2) == '-o')) {\n $commandLine->printUsage();\n exit(3);\n }\n\n self::$command_results = $results;\n }\n\n // Initialize WebListener\n (new WebListener())->initialize();\n }", "public static function setUpBeforeClass()\n {\n /*\n * First, start the PHP build-in server:\n * php -S 127.0.0.1:8000 -t PHP/Compound/MVC/Public\n */\n self::$process = new Process('php -S 127.0.0.1:8000 -t PHP/Compound/MVC/Public');\n self::$process->start();\n\n /*\n * Wait for server\n */\n usleep(100000);\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}", "public function setup() {\n $this->socket = socket_create(AF_INET, SOCK_STREAM, 0);\n if (!socket_bind($this->socket, $this->ip, $this->port)) {\n $errno = socket_last_error();\n $this->error(sprintf('Could not bind to address %s:%s [%s] %s', $this->ip, $this->port, $errno, socket_strerror($errno)));\n throw new Exception('Could not start server.');\n }\n\n socket_listen($this->socket);\n $this->daemon->on(Daemon::ON_POSTEXECUTE, array($this, 'run'));\n }", "public function start()\n {\n Session::start();\n\n Environment::start();\n \n Database::start($withDatabase = true);\n \n Router::start();\n }", "private function init()\n {\n $this->registerSignalHandlers();\n $this->checkUndefinedQueues();\n\n $this->consumerProcesses = $this->createConfiguredConsumers();\n\n $defaultConsumer = $this->createDefaultConsumer();\n if (isset($defaultConsumer)) {\n $this->consumerProcesses[] = $defaultConsumer;\n }\n\n if (empty($this->consumerProcesses)) {\n die('Supervisor has nothing to do');\n }\n\n }", "protected function startUp()\n {\n if (file_exists(APPDIR . '/Config/Bootstrap.php')) {\n try {\n include_once APPDIR . '/Config/Bootstrap.php';\n } catch (Exception $exc) {\n throw new Exception($exc->getMessage() . PHP_EOL . $exc->getTraceAsString());\n }\n }\n $config = new Config\\ParseConfig();\n $this->config = $config->getConfigData();\n System::getInstance()->configuration($this->config);\n $this->viewConfigData = new View\\ConfigData();\n\n $this->setController($this->getRequest()->getControllerName())\n ->setAction($this->getRequest()->getAction())\n ->prepareDatabase();\n $this->viewConfigData->addJavascriptFilesFromConfig();\n $this->viewConfigData->addCssFilesFromConfig();\n $this->viewConfigData->addExternalDataToView();\n }", "function start_dev_server(): void\n{\n if (optional(this()->server)->isRunning()) {\n return;\n }\n\n this()->server = new Process([\n 'php',\n '-S',\n 'localhost:3000',\n $directory = __DIR__ . '/Server',\n $directory . '/index.php',\n ]);\n\n this()->server->start();\n this()->server->waitUntil(fn ($_, $output) => str_contains($output, 'started'));\n}", "private function startServer() {\n\t\t$serverLog = PHPUNIT_TEMP_DIR . '/socketServer.log';\n\t\t$descriptorspec = array(\n\t\t\t0 => array(\"pipe\", \"r\"), // stdin\n\t\t\t1 => array(\"file\", $serverLog, \"a\"),// stdout\n\t\t\t2 => array(\"file\", $serverLog, \"a\") // stderr\n\t\t);\n\n\t\t$cmd = \"php \" . dirname(__FILE__) . '/socketServer.php';\n\t\t$this->server = proc_open($cmd, $descriptorspec, $this->pipes);\n\t\tif ($this->server === false) {\n\t\t\tthrow new Exception(\"Failed starting the socket server process.\");\n\t\t}\n\t\t\n\t\t// Sleep a bit to allow server to start\n\t\tusleep(200000);\n\t\t\n\t\t// Verify the server is running\n\t\t$status = proc_get_status($this->server);\n\t\tif (!$status['running']) {\n\t\t\tthrow new Exception(\"Socket server process failed to start. Check the log at [$serverLog].\");\n\t\t}\n\t}", "public function startup(): void\n {\n $this->handleOnBootListeners();\n $this->initialize();\n $this->handleOnRunListeners();\n }", "public function startup(): void\n {\n $this->handleOnBootListeners();\n $this->initialize();\n $this->handleOnRunListeners();\n }", "public static function start()\n\t{\n\t\tspl_autoload_register('Autoloader::init', true, true);\n\t}", "public static function initialize()\n {\n if (static::$isConfigurationLoaded === true) {\n return;\n }\n \n foreach (static::$handlers as $handler) {\n EventManager::getInstance()->addEventHandler($handler[0], $handler[1], $handler[2], $handler[3]);\n }\n\n static::$isConfigurationLoaded = true;\n }", "public function run()\n {\n $serv = new \\swoole_server($this->host, $this->port);\n $serv->set(\n array(\n 'process_name' => 'ershoufang_crawler', //swoole 进程名称\n 'worker_num' => 2,//开启的worker进程数\n 'task_worker_num' => 2,//开启的task进程数\n 'open_cpu_affinity' => true,\n 'daemonize' => false,\n 'max_request' => 10000,\n 'dispatch_mode' => 2,\n 'debug_mode' => 0,\n 'log_file' => 'swoole.log',\n 'open_tcp_nodelay' => true,\n \"task_ipc_mode\" => 2,\n 'task_max_request' => 10000\n )\n );\n\n $serv->on('Start', array($this, 'onStart'));\n $serv->on('Connect', array($this, 'onConnect'));\n $serv->on('Receive', array($this, 'onReceive'));\n $serv->on('WorkerStart', array($this, 'onWorkerStart'));\n $serv->on('Task', array($this, 'onTask'));\n $serv->on('Finish', array($this, 'onFinish'));\n $serv->on('Close', array($this, 'onClose'));\n $serv->start();\n }", "protected function setupServers()\n\t{\n\t\t// Create a server definition\n\t\t$testFolder = realpath(__DIR__ . '/../../../test');\n\t\t$port = 8094;\n\t\t$server = new Server($testFolder . '/browser/docroot', 'http://127.0.0.1:' . $port);\n\n\t\t// Device to ensure the two clashing server classes use different PID files\n\t\t$suffix = $this->getSuffix();\n\t\t$server->setServerPidPath(\"/tmp/spiderling-phantom-{$port}-{$suffix}.server.pid\");\n\n\t\t// Delete any existing error notifications\n\t\t@unlink($this->getErrorPathName());\n\n\t\t// Add the server to the list of servers to start\n\t\t$this->addServer($server);\n\t}", "public function run(): void\n {\n // missing routing\n // missing proper controller/model system\n // missing middleware framework\n // hacks incoming :)\n\n self::$config['httpMethod'] = $_SERVER['REQUEST_METHOD'];\n self::$config['uri'] = parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH);\n\n echo $this->handleRequest(self::$config['uri'] === '/' ? '/site/index' : self::$config['uri']);\n }", "protected function startup()\n {\n $this->init(self::INIT_WITH_DB | self::INIT_WITH_PLUGINS);\n\n // start session\n $this->session_init();\n\n // create user object\n $this->set_user(new rcube_user($_SESSION['user_id']));\n\n // configure session (after user config merge!)\n $this->session_configure();\n\n // set task and action properties\n $this->set_task(rcube_ui::get_input_value('_task', rcube_ui::INPUT_GPC));\n $this->action = asciiwords(rcube_ui::get_input_value('_action', rcube_ui::INPUT_GPC));\n\n // reset some session parameters when changing task\n if ($this->task != 'utils') {\n if ($this->session && $_SESSION['task'] != $this->task)\n $this->session->remove('page');\n // set current task to session\n $_SESSION['task'] = $this->task;\n }\n\n // init output class\n if (!empty($_REQUEST['_remote']))\n $GLOBALS['OUTPUT'] = $this->json_init();\n else\n $GLOBALS['OUTPUT'] = $this->load_gui(!empty($_REQUEST['_framed']));\n\n // load plugins\n $this->plugins->init($this, $this->task);\n $this->plugins->load_plugins((array)$this->config->get('plugins', array()), array('filesystem_attachments', 'jqueryui'));\n }", "function init ($server, $query, $data, $files, $data_stream, $cookie, $request_started) {\n\t\t++static::$id;\n\t\t$this->init_server($server);\n\t\t$this->init_query($query);\n\t\t$this->init_data_and_files($data, $files, $data_stream);\n\t\t$this->init_cookie($cookie);\n\t\t$this->init_route();\n\t\t$this->started = $request_started;\n\t}", "public function serversInit()\n\t{\n\t\t$api_root=$this->getPath();\n\t\t$p=opendir($api_root);\n\t\twhile(false!==($d=readdir($p)))\n\t\t{\n\t\t\tif($d!='.' && $d!='..' && is_dir($api_root.'/'.$d))\n\t\t\t{\n\t\t\t\tif(file_exists($api_root.'/'.$d.'/init.php') && file_exists($api_root.'/'.$d.'/config.xml'))\n\t\t\t\t{\n\t\t\t\t\t$settings=@simplexml_load_file($api_root.'/'.$d.'/config.xml');\n\t\t\t\t\tif(!$settings){\n\t\t\t\t\t\t$this->setError('Not inited: '.$d.'; wrong config file.');\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\n\t\t\t\t\t\t#die_r($settings->api->name);\n\t\t\t\t\t\t$this->registerEngine((String)$settings->api->name,$settings->api->protocols);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static function init() {\n set_error_handler(array(\"app\\core\\ErrorHandler\", \"handleError\"));\n set_exception_handler(array(\"app\\core\\ErrorHandler\", \"handleException\"));\n }", "protected function setupServer()\n {\n $serverVars = $this->router->getServerVarsForUri();\n $_SERVER = array_merge($_SERVER, $serverVars);\n }", "public function __construct()\n {\n // Store the instance statically\n static::$instance = $this;\n\n // Load the app's config\n $this->loadConfig();\n\n // Register the error handler\n $this->registerErrorHandler();\n\n // Create our request and response objects\n $this->request = new Request;\n $this->response = new Response;\n\n // Bootstrap the database\n Database::bootstrap($this->config->db->toArray());\n\n // Convert relative store paths to absolute, and bootstrap the cache\n foreach ($this->config->cache as $instance => $config) {\n $cacheStorePath = $config->store_path;\n if ($cacheStorePath !== null) {\n if (!is_dir($cacheStorePath) && is_dir(APP_ROOT.$cacheStorePath)) {\n $this->config->cache->{$instance}->store_path = APP_ROOT.$cacheStorePath;\n }\n }\n }\n Cache::bootstrap($this->config->cache->toArray());\n\n // Convert relative store paths to absolute, and bootstrap the session\n $sessionStorePath = $this->config->session->store_path;\n if ($sessionStorePath !== null) {\n if (!is_dir($sessionStorePath) && is_dir(APP_ROOT.$sessionStorePath)) {\n $this->config->session->store_path = APP_ROOT.$sessionStorePath;\n }\n }\n Session::bootstrap($this->config->session);\n\n // Include the app routes\n require APP_ROOT.'routes.php';\n\n // Register global view variables\n View::addGlobal('appName', $this->config->app->name);\n View::addGlobal('app', $this);\n View::addGlobal('input', $this->request->input);\n\n $this->compileAssets();\n\n // Execute routes\n Router::execute();\n\n if (PHP_SAPI !== 'cli') {\n $this->checkRoute();\n }\n }", "public static function run(): void\n {\n global $containerBuilder, $errorHandler, $config, $server, $dbi, $request;\n global $lang, $cfg, $isConfigLoading, $auth_plugin, $route, $theme;\n global $urlParams, $isMinimumCommon, $sql_query, $token_mismatch;\n\n $request = ServerRequestFactory::createFromGlobals();\n\n $route = Routing::getCurrentRoute();\n\n if ($route === '/import-status') {\n $isMinimumCommon = true;\n }\n\n $containerBuilder = Core::getContainerBuilder();\n\n /** @var ErrorHandler $errorHandler */\n $errorHandler = $containerBuilder->get('error_handler');\n\n self::checkRequiredPhpExtensions();\n self::configurePhpSettings();\n self::cleanupPathInfo();\n\n /* parsing configuration file LABEL_parsing_config_file */\n\n /** @var bool $isConfigLoading Indication for the error handler */\n $isConfigLoading = false;\n\n register_shutdown_function([Config::class, 'fatalErrorHandler']);\n\n /**\n * Force reading of config file, because we removed sensitive values\n * in the previous iteration.\n *\n * @var Config $config\n */\n $config = $containerBuilder->get('config');\n\n /**\n * include session handling after the globals, to prevent overwriting\n */\n if (! defined('PMA_NO_SESSION')) {\n Session::setUp($config, $errorHandler);\n }\n\n $request = Core::populateRequestWithEncryptedQueryParams($request);\n\n /**\n * init some variables LABEL_variables_init\n */\n\n /**\n * holds parameters to be passed to next page\n *\n * @global array $urlParams\n */\n $urlParams = [];\n $containerBuilder->setParameter('url_params', $urlParams);\n\n self::setGotoAndBackGlobals($containerBuilder, $config);\n self::checkTokenRequestParam();\n self::setDatabaseAndTableFromRequest($containerBuilder, $request);\n\n /**\n * SQL query to be executed\n *\n * @global string $sql_query\n */\n $sql_query = '';\n if ($request->isPost()) {\n $sql_query = $request->getParsedBodyParam('sql_query', '');\n }\n\n $containerBuilder->setParameter('sql_query', $sql_query);\n\n //$_REQUEST['set_theme'] // checked later in this file LABEL_theme_setup\n //$_REQUEST['server']; // checked later in this file\n //$_REQUEST['lang']; // checked by LABEL_loading_language_file\n\n /* loading language file LABEL_loading_language_file */\n\n /**\n * lang detection is done here\n */\n $language = LanguageManager::getInstance()->selectLanguage();\n $language->activate();\n\n /**\n * check for errors occurred while loading configuration\n * this check is done here after loading language files to present errors in locale\n */\n $config->checkPermissions();\n $config->checkErrors();\n\n self::checkServerConfiguration();\n self::checkRequest();\n\n /* setup servers LABEL_setup_servers */\n\n $config->checkServers();\n\n /**\n * current server\n *\n * @global integer $server\n */\n $server = $config->selectServer();\n $urlParams['server'] = $server;\n $containerBuilder->setParameter('server', $server);\n $containerBuilder->setParameter('url_params', $urlParams);\n\n $cfg = $config->settings;\n\n /* setup themes LABEL_theme_setup */\n\n $theme = ThemeManager::initializeTheme();\n\n /** @var DatabaseInterface $dbi */\n $dbi = null;\n\n if (isset($isMinimumCommon)) {\n $config->loadUserPreferences();\n $containerBuilder->set('theme_manager', ThemeManager::getInstance());\n Tracker::enable();\n\n return;\n }\n\n /**\n * save some settings in cookies\n *\n * @todo should be done in PhpMyAdmin\\Config\n */\n $config->setCookie('pma_lang', (string) $lang);\n\n ThemeManager::getInstance()->setThemeCookie();\n\n $dbi = DatabaseInterface::load();\n $containerBuilder->set(DatabaseInterface::class, $dbi);\n $containerBuilder->setAlias('dbi', DatabaseInterface::class);\n\n if (! empty($cfg['Server'])) {\n $config->getLoginCookieValidityFromCache($server);\n\n $auth_plugin = Plugins::getAuthPlugin();\n $auth_plugin->authenticate();\n\n /* Enable LOAD DATA LOCAL INFILE for LDI plugin */\n if ($route === '/import' && ($_POST['format'] ?? '') === 'ldi') {\n // Switch this before the DB connection is done\n // phpcs:disable PSR1.Files.SideEffects\n define('PMA_ENABLE_LDI', 1);\n // phpcs:enable\n }\n\n self::connectToDatabaseServer($dbi, $auth_plugin);\n\n $auth_plugin->rememberCredentials();\n\n $auth_plugin->checkTwoFactor();\n\n /* Log success */\n Logging::logUser($cfg['Server']['user']);\n\n if ($dbi->getVersion() < $cfg['MysqlMinVersion']['internal']) {\n Core::fatalError(\n __('You should upgrade to %s %s or later.'),\n [\n 'MySQL',\n $cfg['MysqlMinVersion']['human'],\n ]\n );\n }\n\n // Sets the default delimiter (if specified).\n $sqlDelimiter = $request->getParam('sql_delimiter', '');\n if (strlen($sqlDelimiter) > 0) {\n // phpcs:ignore Squiz.NamingConventions.ValidVariableName.MemberNotCamelCaps\n Lexer::$DEFAULT_DELIMITER = $sqlDelimiter;\n }\n\n // TODO: Set SQL modes too.\n } else { // end server connecting\n $response = ResponseRenderer::getInstance();\n $response->getHeader()->disableMenuAndConsole();\n $response->getFooter()->setMinimal();\n }\n\n $response = ResponseRenderer::getInstance();\n\n /**\n * There is no point in even attempting to process\n * an ajax request if there is a token mismatch\n */\n if ($response->isAjax() && $request->isPost() && $token_mismatch) {\n $response->setRequestStatus(false);\n $response->addJSON(\n 'message',\n Message::error(__('Error: Token mismatch'))\n );\n exit;\n }\n\n Profiling::check($dbi, $response);\n\n $containerBuilder->set('response', ResponseRenderer::getInstance());\n\n // load user preferences\n $config->loadUserPreferences();\n\n $containerBuilder->set('theme_manager', ThemeManager::getInstance());\n\n /* Tell tracker that it can actually work */\n Tracker::enable();\n\n if (empty($server) || ! isset($cfg['ZeroConf']) || $cfg['ZeroConf'] !== true) {\n return;\n }\n\n /** @var Relation $relation */\n $relation = $containerBuilder->get('relation');\n $dbi->postConnectControl($relation);\n }", "public function __construct()\n {\n // initialize the default configuration\n $this->initDefaultDirectories();\n $this->initDefaultLoggers();\n $this->initDefaultScanners();\n $this->initDefaultExtractors();\n $this->initDefaultProvisioners();\n $this->initDefaultInitialContext();\n }", "public function initialize()\n {\n // Ensure that session cookies are not available to JavaScript\n ini_set(\"session.cookie_httponly\", 1);\n // Set the include path\n set_include_path(\n self::$_base_path . DIRECTORY_SEPARATOR . 'library'\n . PATH_SEPARATOR\n . self::$_base_path. DIRECTORY_SEPARATOR . \"app\"\n . PATH_SEPARATOR\n . get_include_path()\n );\n\n require_once \"Zend/Loader/Autoloader.php\";\n $autoloader = Zend_Loader_Autoloader::getInstance();\n $autoloader->setFallbackAutoloader(true);\n\n $locale = new Zend_Locale();\n Zend_Registry::set('Zend_Locale', $locale);\n\n /*\n * Create an instance of the frontcontroller\n */\n $frontController = Zend_Controller_Front::getInstance();\n if (file_exists(self::$_data_path . '/etc/config.ini')) {\n /*\n * Load the given stage from our configuration file,\n * and store it into the registry for later usage.\n */\n $config = new Zend_Config_Ini(self::$_data_path . '/etc/config.ini');\n Zend_Registry::set('config', $config);\n\n $frontController->throwExceptions((bool) $config->mvc->exceptions);\n\n if (PHP_SAPI != \"cli\") {\n self::$_environment = $config->mode;\n $frontController->registerPlugin(new Zoo_Plugin_Boot_Http(), 1);\n }\n else {\n $frontController->throwExceptions(true);\n self::$_environment = \"cli\";\n $frontController->registerPlugin(new Zoo_Plugin_Boot_Cli(), 1);\n\n Zend_Registry::set(\"Zend_Locale\", new Zend_Locale(\"en_US\"));\n $frontController->setResponse(new Zend_Controller_Response_Cli());\n }\n\n // Add plugins from plugins.ini\n if (file_exists(self::$_data_path . '/etc/plugins.ini')) {\n $pluginconfig = new Zend_Config_Ini(self::$_data_path . '/etc/plugins.ini', self::$_environment);\n foreach ($pluginconfig->plugins as $name => $plugin) {\n $pluginClass = $plugin->class;\n $frontController->registerPlugin(new $pluginClass(), $plugin->priority);\n }\n }\n if ($config->module->default) {\n $frontController->setDefaultModule($config->module->default);\n }\n else {\n $frontController->setDefaultModule('zoo');\n }\n }\n else {\n /**\n * System not installed, go to staging mode, add the default module\n * and register the Http boot plugin\n */\n self::$_environment = \"staging\";\n $frontController->addControllerDirectory(self::$_base_path . \"/app/Zoo/Controllers\", \"Zoo\");\n $frontController->registerPlugin(new Zoo_Plugin_Boot_Http(), 1);\n $frontController->setDefaultModule('Zoo');\n }\n return $frontController;\n }", "public function initRequestHandlers()\n {\n\n // initialize the storage for the request handlers\n $this->requestHandlers = new GenericStackable();\n\n // iterate over the applications and initialize a pool of request handlers for each\n foreach ($this->applications as $application) {\n // initialize the pool\n $pool = new GenericStackable();\n\n // initialize 10 request handlers per for each application\n for ($i = 0; $i < 10; $i++) {\n // create a mutex\n $mutex = \\Mutex::create();\n\n // initialize the request handler\n $requestHandler = new RequestHandler();\n $requestHandler->injectMutex($mutex);\n $requestHandler->injectValves($this->valves);\n $requestHandler->injectApplication($application);\n $requestHandler->start();\n\n // add it to the pool\n $pool[] = $requestHandler;\n }\n\n // add the pool to the pool of request handlers\n $this->requestHandlers[$application->getName()] = $pool;\n }\n }", "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 }", "public static function init() {\n\t\t\tself::initErrorHandler();\n\t\t\tself::loadAppConfig();\n\t\t\tself::initDatabase();\n\t\t\tHttpCore::initSession();\n\t\t\tAuth::init();\n\t\t\tself::$baseUrl = HttpCore::getBaseUrl();\n\t\t\tself::loadRoutes();\n\t\t\tself::loadWidgets();\n\t\t}", "public function run() {\n\n if(!$this->server) {\n\n try {\n\n // initialize socket server\n $this->server = new AppServer($this->config->socket->host, $this->config->socket->port);\n\n // create application with dependencies\n $app = new Sonar(\n new StorageService($this->config->storage),\n new QueueService($this->config->beanstalk),\n new GeoService(),\n new CacheService()\n );\n $this->server->route('/sonar', $app, ['*']);\n }\n catch(QueueServiceException $e) {\n throw new AppServiceException($e->getMessage());\n }\n catch(ConnectionException $e) {\n throw new SocketServiceException($e->getMessage());\n }\n catch(StorageServiceException $e) {\n throw new AppServiceException($e->getMessage());\n }\n catch(CacheServiceException $e) {\n throw new AppServiceException($e->getMessage());\n }\n\n }\n\n if(isset($this->config->storage) === false) {\n throw new AppServiceException('There is no option `storage` in your configurations');\n }\n\n $this->server->run();\n }", "protected function setUp(): void\n {\n $this->server['SERVER_PROTOCOL'] = '1.1';\n $this->server['HTTP_ACCEPT'] = 'application/json';\n $this->server['REQUEST_METHOD'] = 'POST';\n $this->server['REQUEST_URI'] = '';\n $this->server['QUERY_STRING'] = '';\n $this->server['HTTP_HOST'] = 'subdomain.example.com';\n $this->server['HTTPS'] = 'Off';\n $this->server['SERVER_PORT'] = '';\n $this->server['PHP_AUTH_USER'] = '';\n $this->server['PHP_AUTH_PW'] = '';\n $this->server['PHP_SELF'] = '/index.php/index/var';\n $this->server['SCRIPT_NAME'] = '/index.php';\n $this->server['REMOTE_ADDR'] = '192.168.56.1';\n $this->server['PATH'] = '';\n $this->server['argv'] = array();\n $this->server['argc'] = 0;\n }", "public static function run() {\n if(self::$_init) {\n $route = static::requestRoute();\n if($route && $controller = static::createController($route['controller'])) {\n /** session started */\n App::sessionStart();\n /** running application */\n try {\n /* @var Controller $controller */\n $controller->run($route['action']);\n } catch (\\Exception $e) {\n static::error500('', \"Exception: [{$e->getMessage()}] in {$e->getFile()} at #{$e->getLine()}.\");\n }\n /** on success */\n static::end();\n } else {\n static::error404('Requested invalid resource.');\n }\n } else {\n static::error500('Application was not set up.');\n }\n }", "public function start () {\n $this->cache = new Memcache;\n $this->cache->addServer($this->server, $this->port);\n }", "protected function _start_listening(){\r\n\t\t\tset_error_handler(array($this->_reporter, 'handle_error'));\r\n\t\t\tset_exception_handler(array($this->_reporter, 'handle_exception'));\r\n\t\t\terror_reporting(-1);\r\n\t\t\tini_set('display_errors', false);\r\n\t\t}", "public static function run()\n\t{\n\t\tself::initialize(__class__);\n\t\t# Add post-init hooks here\n\t}", "public static function _init() \n\t{\t\n\t\t// create new instance from default input\n\t\tCCServer::$_instance = CCIn::create( $_GET, $_POST, $_COOKIE, $_FILES, $_SERVER );\n\t\t\n\t\t// unset default http holder to safe mem\n\t\t//unset( $_GET, $_POST, $_COOKIE, $_SERVER, $_FILES );\n\t}", "public function __construct()\n {\n Socket::$isServer = true;\n self::$server = new sockbase();\n self::$server->onmsg(__NAMESPACE__ . '\\SqlPool::inmsg');\n self::$server->dismsg(__NAMESPACE__ . '\\SqlPool::dis');\n $poolconf = ng169\\lib\\Option::get('pool');\n self::$pwd = $poolconf['pwd'];\n\n self::$server->start($poolconf['ip'], $poolconf['port']);\n\n // self::$server->start(\"127.0.0.1\", \"4563\");\n }", "public function dispatchLoopStartup()\n {\n //...\n }", "public static function init()\n {\n self::$browsers = new Browser_Manager();\n self::$users = new User_Manager();\n self::$routes = new Routing_Manager();\n self::$pages = new Page_Manager();\n self::$themes = new Theme_Manager();\n self::$debug = new Debug_Manager();\n\n // disable debugging if we are unit testing\n if (defined('UNIT_TEST') && UNIT_TEST)\n {\n self::$debug->setEnabled(false);\n }\n\n\t\t// with the general environment loaded, we can now load\n\t\t// the modules that are app-specific\n self::$request = new App_Request();\n self::$response = new App_Response();\n self::$conditions = new App_Conditions();\n }", "public function initialize() {\n parent::initialize();\n $this->loadComponent('RequestHandler');\n }", "public function setupServers()\n\t{\n\t\t$browserTestsRoot = realpath(__DIR__ . '/../../..') . '/browser';\n\t\t$server = new \\halfer\\SpiderlingUtils\\Server($browserTestsRoot . '/docroot');\n\n\t\t// Re-use the Spiderling routing script (it contains the check-alive response)\n\t\t$server->setRouterScriptPath($browserTestsRoot . '/scripts/router.php');\n\t\t$server->setCheckAliveUri('/server-check');\n\n\t\t$this->addServer($server);\n\t}", "function initFramework()\r\n{\r\n\t$config = parse_ini_file('./config.ini',true);\r\n\t\r\n\tdate_default_timezone_set('America/New_York');\r\n\t\r\n\t/* Error reporting is set to show all except notices */\r\n\terror_reporting(E_ALL ^ E_NOTICE);\r\n\t\r\n\t// define site name\r\n\tdefine(\"PF_SITE_NAME\", $config['siteName']);\r\n\t\r\n\t/*\r\n\t* Turn on error reporting for testing purposes. However, make sure this is off \r\n\t* when the site is live as it could possibly be a security issue.\r\n\t*/\r\n\tini_set('display_errors', $config['debugMode']);\r\n\t\r\n\t// Define some paths\r\n\tdefine(\"PF_ROOT_PATH\", $config['paths']['rootDir']);\r\n\tdefine(\"PF_ROOT_URL\", $config['paths']['url']);\r\n}", "public static function main()\n {\n self::initConfig(); \n \n /* Configuracion de manejo de error y Locale */\n self::initEnvironmet();\n \n /* Inicializa Layout */\n self::initLayout();\n \n /* Base de Datos*/\n self::initDataBase();\n \n /*Lenjuaje*/\n self::initLanguaje();\n \n /* Front Controller y Dispatch */\n /*Agregar cualquier otra función antes de esta*/\n self::initFrontController();\n \n \n }", "public function run()\n {\n $this->router->listen();\n }", "public function run()\n {\n $routes = new Routes($this->router);\n $routes->start();\n $this->router->start();\n }", "static function Init()\n {\n Phoenix::$phoenix_dir = dirname(__FILE__);\n Phoenix::$app_dir = Phoenix::$phoenix_dir . '/../App';\n Phoenix::$debug = false;\n Phoenix::$_dblog = new MemoryLogger();\n Database::AddLogger(Phoenix::$_dblog);\n }", "public function __construct() {\n // Autoload Dependencies & Helpers\n spl_autoload_register([$this, 'loadBones']);\n // Load in Core Components\n foreach (glob(SKELETON_PATH . 'core/*.php') as $file) {\n list($filePath, $className) = [$file, 'Skeleton_' . basename($file, EXT)];\n if(file_exists($filePath)) {\n include $filePath;\n $this->{strtolower(basename($filePath, EXT))} = new $className($this);\n $this->coreComponents[] = strtolower(basename($filePath, EXT));\n }\n }\n // Core Components Loaded!\n foreach($this->coreComponents as $component) {\n if(method_exists($this->{$component}, '_onLoadFinish')) {\n $this->{$component}->_onLoadFinish();\n }\n }\n // Set environment\n $this->environment = ENVIRONMENT;\n if(!$this->environment) {\n exit(JSON::out('error', 'No environment set!'));\n }\n // Preload stuff is over\n $this->router->setPreloadFlag(false);\n // Run App\n try {\n $skeleton = $this;\n include $this->router->go();\n // the end\n die();\n } catch(NoRouteFoundException $e) {\n JSON::out(array(\n 'status' => 'error', \n 'message' => $e->getMessage()\n ));\n } catch(Exception $e) {\n JSON::out(array(\n 'status' => 'error', \n 'message' => $e->getMessage()\n ));\n }\n }", "public static function init()\n {\n if (is_readable(__DIR__ . '/config/test.config.php')) {\n $testConfig = include __DIR__ . '/config/test.config.php';\n } else {\n $testConfig = include __DIR__ . '/config/test.config.php.dist';\n }\n \n $zf2ModulePaths = array();\n \n if (isset($testConfig['module_listener_options']['module_paths'])) {\n $modulePaths = $testConfig['module_listener_options']['module_paths'];\n foreach ($modulePaths as $modulePath) {\n if (($path = static::findParentPath($modulePath)) ) {\n $zf2ModulePaths[] = $path;\n }\n }\n }\n \n $zf2ModulePaths = implode(PATH_SEPARATOR, $zf2ModulePaths) . PATH_SEPARATOR;\n $zf2ModulePaths .= getenv('ZF2_MODULES_TEST_PATHS') ?: (defined('ZF2_MODULES_TEST_PATHS') ? ZF2_MODULES_TEST_PATHS : '');\n \n static::initAutoloader();\n \n // use ModuleManager to load this module and it's dependencies\n $baseConfig = array(\n 'module_listener_options' => array(\n 'module_paths' => explode(PATH_SEPARATOR, $zf2ModulePaths),\n ),\n );\n \n $config = ArrayUtils::merge($baseConfig, $testConfig);\n $serviceManager = new ServiceManager(new ServiceManagerConfig());\n $serviceManager->setService('ApplicationConfig', $config);\n $serviceManager->get('ModuleManager')->loadModules();\n \n static::$serviceManager = $serviceManager;\n static::$config = $config;\n }", "private function setupDispatcher()\n {\n $callback = function (\\FastRoute\\RouteCollector $r) {\n foreach ($this->routes as $route) {\n $r->addRoute($route[0], $route[1], $route[2]);\n }\n };\n\n $this->dispatcher = \\FastRoute\\simpleDispatcher($callback);\n }", "public function start() {\n\t\t$this->invoke(\"start\");\n\t}", "public function __construct(StandaloneServer\\Config $config, LoggerInterface $logger = null)\n {\n $this->config = $config;\n\n $curl_available = function_exists('curl_version');\n\n $this->portTester = new PortTester([\n 'backend' => $curl_available ? PortTester::BACKEND_CURL : PortTester::BACKEND_STREAM_SOCKET,\n // Close timout ms could be adjusted for your system\n // It prevent that port availability testing does\n // not close quickly enough to allow standalone server binding\n 'close_timeout_ms' => $curl_available ? null : 300\n ]);\n if ($logger === null) {\n $logger = new NullLogger();\n }\n $this->logger = $logger;\n\n $this->process = new Process();\n }", "public function createServer($config = array()) {\n $this->server = new LimelightServer($config);\n }", "static public function Boot() {\n\t\t// Get the time of the start of page parsing\n\t\t// Required for Debug reasons\n\t\t// Replaced by xdebug functions\n\t\t// self::$debug_time = microtime( true );\n\t\t// Setting up the error handler - first thing to do\n\t\tset_error_handler(array('Page', 'errorHandler'));\n\n\t\tself::CheckCorrectHost();\n\t\tself::$request_headers = apache_request_headers();\n\t\tself::DetectLanguage();\n\t\tself::DetectBrowser();\n\t\tmb_internal_encoding('UTF-8');\n\t\tif (self::isGerman()) {\n\t\t\tsetlocale(LC_ALL, 'de_DE.UTF-8');\n\t\t}else {\n\t\t\tsetlocale(LC_ALL, 'en_US.UTF-8');\n\t\t}\n\n\t\tIllaUser::init();\n\n\t\tif ((defined('NO_DEBUG') || !IllaUser::auth('errors')) && !isset($_GET['FORCE_ERROR_OUTPUT'])) {\n\t\t\tif (function_exists('xdebug_disable')) {\n\t\t\t\txdebug_disable();\n\t\t\t}\n\t\t} else {\n\t\t\tini_set('xdebug.collect_params', '4');\n\t\t\tini_set('xdebug.collect_vars', 'on');\n\t\t\tini_set('xdebug.collect_params', '4');\n\t\t\tini_set('xdebug.dump_globals', 'on');\n\t\t\tini_set('xdebug.dump.SERVER', 'REQUEST_URI,REQUEST_METHOD');\n\t\t\tini_set('xdebug.show_local_vars', 'on');\n\t\t}\n\t}", "public function run(HttpServer $server = null): void\n {\n $this->startup();\n if ($server) {\n $server->addListener($this);\n $server->start();\n } else {\n $response = $this->handle(ServerRequest::fromGlobals());\n $this->emitter->emit($response);\n if ($response instanceof Response) {\n $response->end();\n }\n }\n\n $this->shutdown();\n }", "public function __construct() {\n $this->start();\n }", "protected function setUp()\n {\n $_SERVER['DOCUMENT_ROOT'] = '/var/www';\n $_SERVER['SCRIPT_FILENAME'] = '/var/www/zepto/index.php';\n $_SERVER['SERVER_NAME'] = 'zepto';\n $_SERVER['SERVER_PORT'] = '80';\n $_SERVER['SCRIPT_NAME'] = '/zepto/index.php';\n $_SERVER['REQUEST_URL'] = '/zepto/index.php/bar/xyz';\n $_SERVER['REQUEST_URI'] = '/zepto/index.php/bar/xyz';\n $_SERVER['PATH_INFO'] = '/bar/xyz';\n $_SERVER['REQUEST_METHOD'] = 'GET';\n $_SERVER['QUERY_STRING'] = 'one=1&two=2&three=3';\n $_SERVER['HTTPS'] = '';\n $_SERVER['REMOTE_ADDR'] = '127.0.0.1';\n unset($_SERVER['CONTENT_TYPE'], $_SERVER['CONTENT_LENGTH']);\n }", "public static function init()\n\t{\n\t\tstatic $run;\n\n\t\t// This function can only be run once\n\t\tif ($run === TRUE)\n\t\t\treturn;\n\t\t\n\t\t// Load configuration object\n\t\tTC::$config = new TC_Config();\n\t\t\n\t\t// Load cache\n\t\tTC::$cache = new TC_Cache(TC::$config->get('tc.config_driver'));\n\t}", "public static function Initialize($autoload_routes = true)\n {\n self::$env = self::loadEnvSettings();\n self::$folders = self::$env['folders'];\n self::$files = self::$env['files'];\n self::$debug = self::$env['debug'];\n self::$vendors = self::$env['vendor'];\n\n // initialize our services\n Autoloader::Register();\n ErrorHandler::Register(self::$debug);\n Database::LoadInfo();\n Session::start();\n\n // auto create the view cache folder if neccessary\n if (isset(self::$env['viewcache'])) {\n if (!is_dir(self::$env['viewcache'])) {\n mkdir(self::$env['viewcache'], 0777, true);\n }\n }\n\n if ($autoload_routes) {\n try {\n Router::LoadRoutes();\n Router::Run();\n } catch (Exception $exception) {\n $class_bits = get_class($exception);\n $parts = explode('\\\\', $class_bits);\n $class = end($parts);\n\n if (ErrorHandler::HasHook($class)) {\n ErrorHandler::ExecuteHook($class, $exception);\n } elseif (self::$debug) {\n \\Library\\Printout::write($exception);\n }\n }\n }\n }", "final static function init(array $inOptions = array()) {\n\t\t/*\n\t\t * Set up global static vars\n\t\t */\n\t\tself::setIsCli();\n\t\tself::setScriptFilename();\n\t\tself::setScriptPath();\n\t\t\n\t\t/*\n\t\t * Initialise autoload system\n\t\t */\n\t\tself::registerAutoloader('systemAutoload::autoload');\n\t\t\n\t\t/*\n\t\t * Initialise object registry system\n\t\t */\n\t\tself::initRegistry($inOptions);\n\t\tsystemAutoload::addPath(self::getConfig()->getPathLibraries());\n\t\tsystemAutoload::addPath(self::getConfig()->getPathClasses());\n\t\t\n\t\t/*\n\t\t * Must come after config is loaded \n\t\t */\n\t\tself::setScriptRelativePath();\n\t\t\n\t\t/*\n\t\t * Check that the temp and log folders can be written to; if required\n\t\t */\n\t\tif ( self::getConfig()->checkFolderPermissions() ) {\n\t\t\tself::checkPermissions();\n\t\t}\n\t\t\n\t\t/*\n\t\t * Set-up CLI environment, if required\n\t\t */\n\t\tif ( self::getIsCli() ) {\n\t\t\t/*\n\t\t\t * Include patch files if pcntl or posix is missing regardless of platform\n\t\t\t */\n\t\t\tif ( !extension_loaded('pcntl') ) {\n\t\t\t\trequire_once(self::getConfig()->getPathLibraries().DIRECTORY_SEPARATOR.'pcntl_patch.php');\n\t\t\t}\n\t\t\tif ( !extension_loaded('posix') ) {\n\t\t\t\trequire_once(self::getConfig()->getPathLibraries().DIRECTORY_SEPARATOR.'posix_patch.php');\n\t\t\t}\n\t\t\t\n\t\t\t/*\n\t\t\t * This protects stdout from getting duplicate messages from CHILD_PROCESS processes\n\t\t\t */\n\t\t\t@ob_end_flush();\n\t\t\tset_time_limit(0);\n\t\t\terror_reporting(E_ALL);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Set new error handler to our systemLog class\n\t\t */\n\t\tif ( self::getConfig()->registerErrorHandler() ) {\n\t\t\tset_error_handler(array('systemLog', 'errorHandler'));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Set a global exception handler\n\t\t */\n\t\tif ( self::getConfig()->registerExceptionHandler() ) {\n\t\t\tset_exception_handler(array('systemLog', 'exceptionHandler'));\n\t\t}\n\t\t\n\t\t/*\n\t\t * Set a default DSN, if required\n\t\t */\n\t\tif ( self::getConfig()->registerDefaultDatabaseDsn() ) {\n\t\t\ttry {\n\t\t\t\tdbManager::setDefaultDsn(\n\t\t\t\t\tdbOptions::getInstance(\n\t\t\t\t\t\tself::getConfig()->getDatabaseDsn()->getParamValue()\n\t\t\t\t\t)\n\t\t\t\t);\n\t\t\t} catch ( Exception $e ) {\n\t\t\t\tsystemLog::info(\"Attempted to set system default DSN but failed: \".$e->getMessage());\n\t\t\t}\n\t\t}\n\t\t\n\t\t/*\n\t\t * Set default timezone - will raise an E_NOTICE if invalid\n\t\t */\n\t\tif ( self::getConfig()->getSystemTimeZone()->getParamValue() ) {\n\t\t\t@date_default_timezone_set(self::getConfig()->getSystemTimeZone()->getParamValue());\n\t\t}\n\t}", "public function start()\n {\n try {\n $this->registerProvider(Dependents::class);\n $route = Router::match();\n $response = $this->startAction($route);\n }\n catch (\\Throwable $e) {\n $response = $this->handleException($e);\n }\n catch (\\Exception $e) {\n $response = $this->handleException($e);\n }\n\n if ($response instanceof Response) {\n $this->accept($response);\n }\n }", "public function __construct(){\n\t\t//e.g. /benGallery/gallery/admin.php ( after the domain in the url)\n\t\t$this->uri=substr($_SERVER['REQUEST_URI'],0,(strpos($_SERVER['REQUEST_URI'],'?')?strpos($_SERVER['REQUEST_URI'],'?'):strlen($_SERVER['REQUEST_URI'])));\n\t\t\n\t\t$this->http_server='http'.(isset($_SERVER['HTTPS']) ? 's' : '').'://'.$_SERVER['HTTP_HOST'];\n\t\t\n\t\tif(isset($_SERVER['HTTP_REFERER'])){\n\t\t\tif(substr($_SERVER['HTTP_REFERER'],0,strlen($this->http_server))==$this->http_server){\n\t\t\t\t$this->referer=substr($_SERVER['HTTP_REFERER'],strlen($this->http_server));\n\t\t\t}else{\n\t\t\t\t$this->referer=$_SERVER['HTTP_REFERER'];\n\t\t\t}\n\t\t}\n\t\t\n\t\t//e.g. /var/www/benGallery/gallery/ ( absolute path to the gallery script)\n\t\t$this->fs_path=$_SERVER['DOCUMENT_ROOT'].substr($_SERVER[\"SCRIPT_NAME\"],0,strrpos($_SERVER[\"SCRIPT_NAME\"],'/')+1);\n\t\n\t\t//load params from url\n\t\tparse_str($_SERVER['QUERY_STRING'],$this->query);\n\t\t\n\t\t//subtract query string from uri to end up with the http path to the app on this server\n\t\tif(isset($this->query['page']) && !empty($this->query['page'])){\n\t\t\t$this->root_http_path=substr($this->uri,0,-strlen(str_replace(array(' '),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t array('%20'),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t $this->query['page'])));\n\t\t}else{\n\t\t\t$this->root_http_path=$this->uri;\n\t\t}\n\t\t\n\t\t//BEGIN SESSION!\n\t\tsession_set_cookie_params(0,$this->root_http_path);\n\t\t$a = session_id();\n\t\tif ($a == '') session_start();\n\t\tif (!isset($_SESSION['safety'])) {\n\t\t\tsession_regenerate_id(true);\n\t\t\t$_SESSION['safety'] = true;\n\t\t}\n\t\t$_SESSION['sessionid'] = session_id();\n\n\t\t//LOAD CONFIGURATION\n\t\t$this->ini=parse_ini_string(file_get_contents($this->config_name),true);\n\n\t\t//determine which page to view\n\t\t$this->page=array('uri'=>$this->ini['front']['default'],'params'=>array(),'template'=>false);\n\t\tif(isset($this->query['page'])) \n\t\t\t$this->page=$this->determine_uri_split($this->query['page']);\n\t\t\t\n\t\t$this->page['template']=$this->determine_tpl($this->page['uri']);\n\t\t\n\t\t//load cascading extra config\n\t\t$this->page['extra_config']=array_reverse($this->determine_cfg($this->page['uri']));\n\t\tforeach($this->page['extra_config'] as $extra_config){\n\t\t\t$this->load_cfg($extra_config);\n\t\t}\n\t\t\n\t\t//load package configs\n\t\twhile(isset($this->ini['front']) && isset($this->ini['front']['config']) && \n\t\t\t\tis_array($this->ini['front']['config']) && count($this->ini['front']['config'])){\n\t\t\t\t\n\t\t\tforeach($this->ini['front']['config'] as $pkgId=>$pkg){\n\t\t\t\t$this->load_cfg($this->ini['front']['template_dir'].$pkg.'/'.$this->config_name);\n\t\t\t\tunset($this->ini['front']['config'][$pkgId]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//load header html code from the config file!\n\t\tif(isset($this->ini['front']['headerHTML'])) $this->page['headerHTML']=$this->ini['front']['headerHTML'];\n\t\telse $this->page['headerHTML']=array();\n\t\t\n\n\t\t//load database driver module\n\t\tif(isset($this->ini['db']['driver'])) $this->db=$this->load($this->ini['db']['driver']);\t\n\t\t\t\n\t\t//load initial modules in ascending order of keys\n\t\tksort($this->ini['init']);\n\t\tforeach($this->ini['init'] as $mod_array){\n\t\t\tforeach($mod_array as $mod){\n\t\t\t\t$this->load($mod);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private function init() {\n\n\t\tif ( ! $this->should_load() ) {\n\t\t\treturn;\n\t\t}\n\t\t$this->setup_admin();\n\t\t$this->setup_api();\n\t}", "function __construct() {\n global $urlpatterns,$errorhandler;\n //Initialize config object\n $this->config=new Config();\n //Get all URLs Routes\n $this->routes=$this->config->urlpatterns;\n //Get all ErrorHandler\n $this->error_routes=$this->config->errorhandler;\n //Check for server error\n $this->server_error();\n //Route URLs\n $this->router($this->config->request_path, $this->routes);\n }", "public static function init($config) {\n if (self::$_app === null) {\n self::$_app = new App();\n self::$_app->setFilesystem(new Filesystem(new SftpAdapter(array_merge($config, ['timeout' => 10]))));\n }\n }", "public function startServer()\n {\n // fork\n $pid = pcntl_fork();\n\n // if we're in the child process, start the server and listen for data\n if ($pid > 0)\n {\n return $pid;\n }\n elseif ($pid === 0)\n {\n return $this->listen();\n }\n }", "public function run(Server $server = null): void\n {\n $this->startup();\n if ($server) {\n $server->addListener($this);\n $server->start();\n } else {\n $response = $this->handle(ServerRequest::fromGlobals());\n $this->emitter->emit($response);\n if ($response instanceof Response) {\n $response->end();\n }\n }\n\n $this->shutdown();\n }", "public function init()\n\t{\n\t\t$this->loader->init();\n\t\t$this->routing->init();\n\t}", "protected function __construct(array $hConfig = [])\n {\n $oServer = \\Limbonia\\Input::singleton('server');\n $this->sCliName = preg_replace(\"/^limbonia_/\", '', basename($oServer['argv'][0]));\n\n $hOptions = getopt('', ['mode::']);\n $this->sMode = empty($hOptions) ? $this->sCliName : $hOptions['mode'];\n\n $this->oRouter = \\Limbonia\\Router::fromUri(strtolower(preg_replace(\"#_#\", '/', $this->sMode)));\n parent::__construct($hConfig);\n }", "protected function Init() \n {\n // Load the APP config.php and add the defined vars\n $this->load($this->files['app']['file_path'], 'app');\n \n // Load the core.config.php and add the defined vars\n $this->load($this->files['core']['file_path'], 'core', 'config');\n \n // Load the database.config.php and add the defined vars\n $this->load($this->files['db']['file_path'], 'db', 'DB_configs');\n }", "public function initAndDispatch() {\n\t\treturn $this->initTypoScriptFrontendController()\n\t\t\t->initTypoScriptConfiguration()\n\t\t\t->initLanguage()\n\t\t\t->initCallArguments()\n\t\t\t->dispatch();\n\t}", "function start()\n {\n $this->startService();\n $this->startSession();\n }", "public static function start()\n {\n if (static::$isRegistered)\n return;\n \n register_shutdown_function(array(get_called_class(), 'checkForFatalErrors'));\n static::$isRegistered = true;\n }", "public static function initRequest() {\n spl_autoload_register(function ($class) {\n require_once '/Users/Anders/Sites/tasty/classes/App/' . \\str_replace('\\\\', '/', $class) . '.php';\n });\n\n session_start();\n }", "private function configureRouting()\n {\n // Setup the router.\n $router = new FastRoute([]);\n\n // Add routes.\n $router->addRoutes([\n new Route('/', Controller\\Home::class, 'home'),\n ]);\n\n // Set the router object.\n $this->setRouter($router);\n }", "function __construct($config, $adminList) {\n\t\t$this->config = $config;\n\t\t$this->admins = $adminList;\n\t\tif($this->config['serverPassword'] == \"\") $this->config['serverPassword'] = \"NOPASS\";\n\t\t$this->log(\"ircBot - starting up...\\n\");\n\n\t\t# Load modules\n\t\trequire_once(\"class.ircModule.php\");\n\t\t$this->log(\"[INIT]: Loading modules...\");\n\t\tforeach($config['modules'] as $module) {\n\t\t\t$this->loadModule($module);\n\t\t}\n\t\t$this->log(\"[INIT]: Module load finished\");\n\n\t\t# Generate a new connection\n\t\ttry {\n\t\t\t$this->connectToServer($config);\n\t\t} catch (Exception $e) {\n\t\t\tdie(\"Exception caught, terminating. Could not connect to server: \".$e->getMessage());\n\t\t}\n\n\t\t# Should now have a connection in $this->socket, lets initialise\n\t\ttry {\n\t\t\t$this->sendCommand(\"PASS \".$this->config['serverPassword']);\n\t\t\t$this->sendCommand(\"NICK \".$this->config['username']);\n\t\t\t$this->sendCommand(\"USER \".$this->config['username'].\" 0 * :\".$this->config['realname']);\n\t\t} catch (Exception $e) {\n /** @var $this ircBot */\n die($this->log(\"Exception caught while negotiating server join: \".$e->getMessage()));\n\t\t}\n\n\t\t# Now pass off control to the main controller\n\t\t$this->controller();\n\t}" ]
[ "0.6591059", "0.61278903", "0.6025732", "0.5967823", "0.59510744", "0.5892644", "0.58199817", "0.57597095", "0.5740682", "0.5739555", "0.5731995", "0.56559885", "0.56442", "0.563607", "0.563023", "0.56243163", "0.56119245", "0.5531699", "0.5523953", "0.55203754", "0.55101335", "0.549272", "0.549171", "0.54651946", "0.54648703", "0.54593694", "0.54515976", "0.544827", "0.5442842", "0.5440654", "0.543457", "0.5432526", "0.54250306", "0.54224545", "0.54071206", "0.5404711", "0.5404711", "0.5403823", "0.5384215", "0.53679985", "0.5355995", "0.5328021", "0.52653646", "0.5256349", "0.52423143", "0.52227247", "0.5211068", "0.520504", "0.5202747", "0.5193365", "0.5192526", "0.5191303", "0.5188673", "0.51568747", "0.5150859", "0.5131707", "0.5123891", "0.51234305", "0.5121835", "0.5113249", "0.50936216", "0.50922734", "0.5090479", "0.50852656", "0.50678676", "0.5057186", "0.50542766", "0.50478697", "0.50448555", "0.5038091", "0.5031592", "0.50296617", "0.50258327", "0.5020593", "0.50152576", "0.5013961", "0.50109065", "0.5008782", "0.50071764", "0.49983716", "0.4994018", "0.4992445", "0.49854597", "0.49831185", "0.49718288", "0.49691853", "0.49602464", "0.49525213", "0.49514136", "0.49488586", "0.4948768", "0.49481252", "0.49471688", "0.49271005", "0.49224344", "0.4916428", "0.4915637", "0.49122193", "0.4910174", "0.49040857" ]
0.7307075
0
Returns the configured public docroot path.
Возвращает настроенный публичный путь корня документа.
public static function getDocroot() { return MHTTPD::$config['Paths']['docroot']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getPublicRoot()\n {\n $this->initializeVendorDir();\n return realpath($this->public_root);\n }", "function public_path()\n {\n $paths = getPaths();\n\n return $paths['public'];\n }", "public function rootPath()\n {\n return public_path() . $this->helper->ds();\n }", "public static function getServerDocroot() \n\t{\n\t\treturn MHTTPD::$config['Paths']['server_docroot'];\n\t}", "public function getPublicDir():string {\n return $this->getProjectDir() . '/public';\n }", "public function publicPath()\n {\n return $this->basePath . DIRECTORY_SEPARATOR . 'public';\n }", "public function publicPath()\n {\n return $this->basePath . DIRECTORY_SEPARATOR . 'public';\n }", "public function getPublicBasePath();", "public function root(): string\n {\n return $this->instances->demo()->config()->root() . '/public/' . $this->name;\n }", "public function publicPath()\n {\n return rtrim($this->publicPath, '/') .'/';\n }", "public function getPublicDirectory(): string\n {\n return config('theme-system.public', 'public') ?? 'public';\n }", "public function getPublicPath()\n {\n return $this->getSettingArray()[\"public_path\"];\n }", "function public_path()\n {\n return base_path() . '/public';\n }", "protected static function getDocumentRoot() {\n\t\treturn BootstrapConfig::getParam(\"document_root\", $_SERVER['DOCUMENT_ROOT']);\n\t}", "private static function getWebRoot() {\n if (file_exists(realpath(__DIR__ . '/../../../../../public_html'))) {\n return self::addlSash(\"public_html\");\n } else {\n return self::addlSash(\"web\");\n }\n }", "public function getDocumentRoot()\n {\n $documentRoot = '';\n $normalized = $this->getNormalized();\n if (empty($normalized['web']['locations'])) {\n return $documentRoot;\n }\n foreach ($this->getNormalized()['web']['locations'] as $path => $location) {\n if (isset($location['root'])) {\n $documentRoot = $location['root'];\n }\n if ($path === '/') {\n break;\n }\n }\n\n return ltrim($documentRoot, '/');\n }", "public function getPublicPath(): string\n {\n return Path::unifyPath(Environment::getPublicPath());\n }", "public function getPublicDir()\n\t{\n\t\treturn $this->_publicDir;\n\t}", "public function public_path();", "public static function getDocumentRoot()\r\n\t{\r\n\t\tstatic $documentRoot = null;\r\n\t\tif ($documentRoot != null)\r\n\t\t\treturn $documentRoot;\r\n\r\n\t\t$context = Application::getInstance()->getContext();\r\n\t\tif ($context != null)\r\n\t\t{\r\n\t\t\t$server = $context->getServer();\r\n\t\t\tif ($server != null)\r\n\t\t\t\treturn $documentRoot = $server->getDocumentRoot();\r\n\t\t}\r\n\r\n\t\treturn rtrim($_SERVER[\"DOCUMENT_ROOT\"], \"\\\\/\");\r\n\t}", "public function publicPath(): string\n {\n return $this->basePath.DIRECTORY_SEPARATOR.'public';\n }", "function public_path($path=null)\n\t{\n\t\treturn rtrim(app()->basePath('../public_html/'.$path), '/');\n\t}", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../../web/'.$this->getUploadDir();\n }", "public function getRootDir()\n {\n return $this->server['DOCUMENT_ROOT'];\n }", "function getWebsiteRootPath()\n {\n // Check that the absolute path to the current directory is accessible\n // (some webhosts denies access this way)\n if ( file_exists (FCPATH) ) {\n return FCPATH;\n } else {\n // Fake relative path by using subdirectory\n return 'js/../';\n }\n }", "public function getWebroot() {\n return Yii::getAlias('@static') .DIRECTORY_SEPARATOR. 'web' .DIRECTORY_SEPARATOR.$this->module.DIRECTORY_SEPARATOR. $this->parent_id .DIRECTORY_SEPARATOR;\n }", "public function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir().\"/\".$this->getHash();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\r\n {\r\n // documents should be saved\r\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\r\n }", "function public_url() {\n return url(\"/\");\n }", "protected function getUploadRootDir()\n {\n \t// documents should be saved\n \treturn __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "public function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "public function getPath()\n {\n return $this->getCommonOptions()->getPublicPath();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n\n return __DIR__.'/../../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir(): string\n {\n // documents should be saved\n return __DIR__.'/../../public/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../public_html/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "public function getWebroot() {\n return $this->webroot;\n }", "public function getPhotoUploadRootDir()\n {\n // documents should be saved\n return __DIR__ . '/../../../web/' . $this->getPhotoUploadDir();\n }", "protected function getUploadRootDir()\n {\n// documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir() {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getWebRoot() {}", "protected function getWebRoot() {}", "public function getWebRoot() {\n return $GLOBALS['registry']->config[\"siteUrl\"];\n }", "function base_path() {\n return (new Server)->get('DOCUMENT_ROOT');\n }", "protected function getUploadRootDir() {\n // documents should be saved\n return __DIR__ . '/../../../../web/' . $this -> getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return '/home/meriem/therlab/web/'.$this->getUploadDir();\n }", "public function getImagePublicBasePath()\n {\n return $this->getSettingArray()[\"image_public_base_path\"];\n }", "protected function getUploadRootDir() {\n // documents should be saved\n return __DIR__ . '/../../../web/' . $this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__ . '/../../../../web/' . $this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__ . '/../../../../web/' . $this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__ . '/../../../../web/' . $this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__ . '/../../../../web/' . $this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // le chemin absolu du répertoire où les documents uploadés doivent être sauvegardés\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir() {\n // documents should be saved\n return __DIR__ . '/../../../../web/' . $this->getUploadDir();\n }", "protected function getUploadRootDir()\r\n {\r\n // the absolute directory path where uploaded documents should be saved\r\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\r\n }", "public static function publicPath(){\n return \\Illuminate\\Foundation\\Application::publicPath();\n }", "protected function getUploadRootDir()\n {\n return __DIR__.'/../../public/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n return dirname(__DIR__).'/../public/'.$this->getUploadDir();\n }", "public function rootDir(): string\n {\n return $this->root;\n }", "public function getRootDir(){\n\t\treturn str_replace(realpath($_SERVER['DOCUMENT_ROOT']), \"\", realpath(dirname(__DIR__ . \"/../core.php\")));\n\t}", "protected function getWebRoot()\n {\n return trim($this->web_root, \"/\");\n }", "protected function getRootDir()\n {\n return $this->appConfig->getRootDir();\n }", "public function publicPath($path = '')\n\t{\n\t\treturn $this['path.public'].ltrim($path, '/');\n\t}", "static public function getRootPath() {\n\t\treturn Page::$base_path;\n\t}", "private function getPathToRootDir()\n {\n return '%kernel.project_dir%';\n }", "protected function getUploadRootDir()\n {\n return __DIR__ . '/../../../../web/' . self::UPLOAD_ROOT;\n }", "public static function getDocsDirectory()\n {\n $dir = BaseSystem::getDataDir('Help').'/Docs/';\n return $dir;\n\n }", "private function getUploadRootDir(){\n \treturn __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "public function getDocBaseUrl() {\n\t\treturn 'https://docs.nextcloud.com';\n\t}", "protected function getUploadRootDirPdf() {\n // guardar los archivos cargados\n return __DIR__ . '/../../../../web/uploads/portafolios/' . $this->getId() . '/pdf';\n }", "protected function getUploadRootDir()\n {\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\r\n\t{\r\n\t\treturn __DIR__.'/../../../../web/'.$this->getUploadDir();\r\n\t}" ]
[ "0.79588366", "0.7954139", "0.78660136", "0.7685791", "0.76250887", "0.76140064", "0.76140064", "0.7585091", "0.75733835", "0.75661373", "0.7545899", "0.7538565", "0.74869585", "0.7439908", "0.7412197", "0.7378347", "0.73596746", "0.73179036", "0.73125345", "0.7305334", "0.7296336", "0.71790713", "0.7158245", "0.71551245", "0.7151778", "0.71511805", "0.71384805", "0.7128773", "0.7123866", "0.71237427", "0.7102652", "0.7101226", "0.7099528", "0.7092801", "0.70908624", "0.70771503", "0.706616", "0.706616", "0.706616", "0.706616", "0.706616", "0.706616", "0.706616", "0.70642495", "0.7062732", "0.7058412", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.7055165", "0.70468676", "0.70154566", "0.7014058", "0.7006392", "0.69909996", "0.6987533", "0.6972643", "0.696997", "0.69666046", "0.6959508", "0.6959508", "0.6959508", "0.6959508", "0.69513845", "0.69458914", "0.6943454", "0.69298834", "0.69231266", "0.6912652", "0.68962336", "0.6855787", "0.68348503", "0.6830533", "0.67936444", "0.67758733", "0.6773407", "0.6756248", "0.6744887", "0.67448384", "0.67390233", "0.67362636", "0.6735267", "0.6735267", "0.6733238" ]
0.80986744
0
Returns the private server docroot path.
Возвращает приватный путь к корню документа сервера.
public static function getServerDocroot() { return MHTTPD::$config['Paths']['server_docroot']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static function getDocroot() \n\t{\n\t\treturn MHTTPD::$config['Paths']['docroot'];\n\t}", "public function getRootDir()\n {\n return $this->server['DOCUMENT_ROOT'];\n }", "function base_path() {\n return (new Server)->get('DOCUMENT_ROOT');\n }", "public static function getDocumentRoot()\r\n\t{\r\n\t\tstatic $documentRoot = null;\r\n\t\tif ($documentRoot != null)\r\n\t\t\treturn $documentRoot;\r\n\r\n\t\t$context = Application::getInstance()->getContext();\r\n\t\tif ($context != null)\r\n\t\t{\r\n\t\t\t$server = $context->getServer();\r\n\t\t\tif ($server != null)\r\n\t\t\t\treturn $documentRoot = $server->getDocumentRoot();\r\n\t\t}\r\n\r\n\t\treturn rtrim($_SERVER[\"DOCUMENT_ROOT\"], \"\\\\/\");\r\n\t}", "public function rootPath()\n {\n return public_path() . $this->helper->ds();\n }", "public function getConfiguredServerRoot()\n {\n return $this->server_root;\n }", "static public function getSecureRootPath() {\n\t\treturn Page::$base_ssl_path;\n\t}", "public function getRootPath(): string\n {\n return $this->rootPath;\n }", "protected static function getDocumentRoot() {\n\t\treturn BootstrapConfig::getParam(\"document_root\", $_SERVER['DOCUMENT_ROOT']);\n\t}", "public function getPublicRoot()\n {\n $this->initializeVendorDir();\n return realpath($this->public_root);\n }", "private static function getWebRoot() {\n if (file_exists(realpath(__DIR__ . '/../../../../../public_html'))) {\n return self::addlSash(\"public_html\");\n } else {\n return self::addlSash(\"web\");\n }\n }", "public function getFileRootPath(): string\n {\n return str_replace(\n ':',\n '.',\n $this->getDatasetSubmission()->getDataset()->getUdi()\n ) . DIRECTORY_SEPARATOR;\n }", "public function root(): string\n {\n return $this->instances->demo()->config()->root() . '/public/' . $this->name;\n }", "public function getRootPath()\r\n\t{\r\n\t\treturn $this->rootPath;\r\n\t}", "public static function getSiteRoot() {\n if (strtolower($_SERVER['SERVER_NAME'])=='www.palmettonewmedia.com') {\n return Config::getHTTPS() . '://www.palmettonewmedia.com/foodfinder';\n }\n else {\n return Config::getHTTPS() . '://' . $_SERVER['SERVER_NAME'];\n }\n }", "public function rootDir(): string\n {\n return $this->root;\n }", "function public_path()\n {\n $paths = getPaths();\n\n return $paths['public'];\n }", "public function root()\n {\n if ($this['environment']->has('SCRIPT_FILENAME') === false) {\n throw new \\RuntimeException(\n 'The \"`\"SCRIPT_FILENAME\" server variable could not be found.\n It is required by \"Workbench::root()\".'\n );\n }\n\n return dirname($this['environment']->get('SCRIPT_FILENAME'));\n }", "protected function privateAbsolutePath() : string {\n return $this->privateFolder['absolute'];\n }", "public function getDocumentRoot()\n {\n $documentRoot = '';\n $normalized = $this->getNormalized();\n if (empty($normalized['web']['locations'])) {\n return $documentRoot;\n }\n foreach ($this->getNormalized()['web']['locations'] as $path => $location) {\n if (isset($location['root'])) {\n $documentRoot = $location['root'];\n }\n if ($path === '/') {\n break;\n }\n }\n\n return ltrim($documentRoot, '/');\n }", "function getDocumentRoot(){\n\t\t$document_root = isset($_SERVER[\"DOCUMENT_ROOT\"]) ? $_SERVER[\"DOCUMENT_ROOT\"] : \"\";\n\t\t#get env variables under IIS\n\t\tif( !$document_root ){\n\t\t $sf = str_replace(\"\\\\\",\"/\",$_SERVER[\"SCRIPT_FILENAME\"]);\n\t\t $sn = $_SERVER[\"SCRIPT_NAME\"];\n\t\t $document_root = str_replace( $sn, \"\", $sf );\n\t\t}\n\t\treturn $document_root;\n}", "public function getRootPath()\n {\n return $this->rootPath;\n }", "public function get_server_http_root()\n {\n\t\t$split = explode('.',$_SERVER['HTTP_HOST']);\n\t\t\n\t\t$root=$split[0];\n\t\t//makes it devbrad from just brad\n\t\tif( in_array($root,array('sam','ryan','brad'))) $root = \"dev\".$root;\n\t\t//else it is just stage or live, leave it alone\n\t\t\n\t\treturn \"endeavor/\".$root.\"/\";\n\t\t\n }", "public static function privateFilesDirectory() {\n $status = static::parseStatus();\n $path = $status->get('private');\n\n if (!empty($path)) {\n return $path;\n }\n\n return NULL;\n }", "public function getRootPath()\n {\n return $this->root_path;\n }", "public function public_path();", "public function get_root_path()\n\t{\n\t\treturn $this->ext_root_path;\n\t}", "protected function getUploadRootDir(): string\n {\n // documents should be saved\n return __DIR__.'/../../public/'.$this->getUploadDir();\n }", "public function getPublicBasePath();", "public function getWebroot() {\n return Yii::getAlias('@static') .DIRECTORY_SEPARATOR. 'web' .DIRECTORY_SEPARATOR.$this->module.DIRECTORY_SEPARATOR. $this->parent_id .DIRECTORY_SEPARATOR;\n }", "protected function getWebRoot() {}", "protected function getWebRoot() {}", "public function getPublicPath(): string\n {\n return Path::unifyPath(Environment::getPublicPath());\n }", "function parcelcheckout_getRootPath()\n\t{\n\t\t$sRootPath = dirname(dirname(dirname(__FILE__)));\n\n\t\tif(strpos($sRootPath, '\\\\') !== false)\n\t\t{\n\t\t\t$sRootPath .= '\\\\';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$sRootPath .= '/';\n\t\t}\n\n\t\treturn $sRootPath;\n\t}", "public function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir().\"/\".$this->getHash();\n }", "public function getWwwDir(): string\n\t{\n\t\treturn $this->wwwDir;\n\t}", "protected function getUploadRootDir()\n {\n \t// documents should be saved\n \treturn __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "public function getServerRelativePath()\n {\n return $this->getProperty(\"ServerRelativePath\");\n }", "protected function getUploadRootDir()\r\n {\r\n // documents should be saved\r\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\r\n }", "public function getRootPath() {\r\n\t\treturn $this->getFramework()->getPath(Core::PATH_ROOT);\r\n\t}", "function getServerFilePath($fileName) {\n return $_SERVER['DOCUMENT_ROOT'].PATHS[$fileName];\n}", "protected function getUploadRootDir()\n {\n // documents should be saved\n return '/home/meriem/therlab/web/'.$this->getUploadDir();\n }", "static public function getRootPath() {\n\t\treturn Page::$base_path;\n\t}", "protected function rootPath()\n {\n return Pi::path('upload') . '/' . $this->getModule();\n }", "protected function getPackageRootPath(): string\n {\n return getcwd() . '/';\n }", "protected function getWebRoot()\n {\n return trim($this->web_root, \"/\");\n }", "protected function getUploadRootDir()\n {\n// documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "function getWebsiteRootPath()\n {\n // Check that the absolute path to the current directory is accessible\n // (some webhosts denies access this way)\n if ( file_exists (FCPATH) ) {\n return FCPATH;\n } else {\n // Fake relative path by using subdirectory\n return 'js/../';\n }\n }", "function get_root_url() {\n return \"http://\" . $_SERVER['HTTP_HOST'] . '/' . ROOT_PATH;\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../../web/'.$this->getUploadDir();\n }", "public function getWebRoot() {\n return $GLOBALS['registry']->config[\"siteUrl\"];\n }", "protected function getRootPath()\n {\n return base_path() . '/CertificateBuilder/events';\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../web/'.$this->getUploadDir();\n }", "public function getRootDir(){\n\t\treturn str_replace(realpath($_SERVER['DOCUMENT_ROOT']), \"\", realpath(dirname(__DIR__ . \"/../core.php\")));\n\t}", "protected function getUploadRootDir()\n {\n // documents should be saved\n\n return __DIR__.'/../../../../../web/'.$this->getUploadDir();\n }", "public function getPhotoUploadRootDir()\n {\n // documents should be saved\n return __DIR__ . '/../../../web/' . $this->getPhotoUploadDir();\n }", "public function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "public function getPath()\n {\n return $this->getCommonOptions()->getPublicPath();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "public static function getApplicationPath() \r\n {\r\n if (!isset(self::$appPath)) \r\n {\r\n switch ($_SERVER['HTTP_HOST']) {\r\n case 'localhost':\r\n self::$appPath = 'http://' . $_SERVER['HTTP_HOST'] . '/Progetto/';\r\n break;\r\n case 'spano.sc.unica.it':\r\n // configurazione pubblica\r\n self::$appPath = 'http://' . $_SERVER['HTTP_HOST'] . '/amm2015/meloniFabrizio/';\r\n break;\r\n default:\r\n self::$appPath = '';\r\n break;\r\n }\r\n }\r\n \r\n return self::$appPath;\r\n }", "private function getPath()\n\t{\n\t\treturn $this->_sys_path;\n\t}", "protected function privateRelativePath() : string {\n return $this->privateFolder['relative'];\n }", "protected function getUploadRootDir()\n {\n // documents should be saved\n return __DIR__.'/../../../../public_html/'.$this->getUploadDir();\n }", "public function getFullPath()\n\t{\n\t\treturn $this->getServerName() . $this->getScriptDirectory();\n\t}", "protected function getUploadRootDir() {\n // documents should be saved\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\n }", "public static function getRoot(): string {\n if (! self::$_root) {\n self::$_root = dirname(dirname(dirname(__FILE__)));\n }\n \n return self::$_root;\n }", "public static function getDocsDirectory()\n {\n $dir = BaseSystem::getDataDir('Help').'/Docs/';\n return $dir;\n\n }", "protected function getUploadRootDir()\r\n {\r\n // the absolute directory path where uploaded documents should be saved\r\n return __DIR__.'/../../../../web/'.$this->getUploadDir();\r\n }", "protected function getRootDir()\n {\n return $this->appConfig->getRootDir();\n }", "private function buildRootPath()\n {\n // In Windows script path uses backslash, convert it:\n $scriptPath = str_replace('\\\\', '/', $_SERVER['PHP_SELF']);\n $rootPath = str_replace(' ', '%20', rtrim(substr($scriptPath, 0, strpos($scriptPath, 'index.php')), '/'));\n\n return $rootPath;\n }", "public function getWwwPath()\n\t{\n\t\treturn $this->www_path;\n\t}", "public function getPublicPath()\n {\n return $this->getSettingArray()[\"public_path\"];\n }", "public function get_doc_root($path = '')\n\t{\n\t\t$server_doc_root = str_replace('\\\\', '/', $_SERVER['DOCUMENT_ROOT']);\n\t\t$wp_doc_root = $this->get_wp_doc_root();\n\n\t\t$doc_root = empty($server_doc_root) || 0 !== strpos($wp_doc_root, $server_doc_root)\n\t\t\t? $wp_doc_root : $server_doc_root;\n\n\t\t$doc_root = !empty($this->options['input_doc_root'])\n\t\t\t? $this->options['input_doc_root']\n\t\t\t: $doc_root;\n\n\t\treturn !empty($path)\n\t\t\t? trailingslashit($doc_root) . ltrim($path, '/')\n\t\t\t: $doc_root;\n\t}", "public function getWebroot() {\n return $this->webroot;\n }" ]
[ "0.74405473", "0.7284044", "0.7262614", "0.71985906", "0.7049879", "0.6978768", "0.69082654", "0.68648136", "0.6806023", "0.6805294", "0.67474943", "0.6711657", "0.6694753", "0.667781", "0.6663147", "0.663424", "0.6625719", "0.66089225", "0.66029876", "0.65919304", "0.658228", "0.6561938", "0.65338635", "0.6522999", "0.65055597", "0.6503516", "0.6487183", "0.64792436", "0.6476283", "0.6467108", "0.6455016", "0.64544886", "0.64518785", "0.6447172", "0.6440059", "0.64285666", "0.6422533", "0.64115196", "0.6401316", "0.6400776", "0.63985676", "0.63977826", "0.63909316", "0.63796544", "0.63757634", "0.63672304", "0.6363502", "0.63577604", "0.6357392", "0.63515353", "0.6351531", "0.63480425", "0.6344673", "0.63378096", "0.63378096", "0.63378096", "0.63378096", "0.63378096", "0.63378096", "0.63378096", "0.63349533", "0.6330824", "0.63282484", "0.63264173", "0.6320078", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.631943", "0.63151824", "0.6312317", "0.6303306", "0.62920743", "0.6280171", "0.6277376", "0.627733", "0.62699276", "0.6261823", "0.6261261", "0.6260658", "0.6260042", "0.62468636", "0.62458557", "0.6243783" ]
0.8346813
0
Returns the list of paths from which XSendFile requests may be served.
Возвращает список путей, с которых могут быть обслужены запросы XSendFile.
public static function getSendFilePaths() { if (!empty(MHTTPD::$send_file_paths)) { return MHTTPD::$send_file_paths; } // Store the absolute paths $paths = listToArray(MHTTPD::$config['Paths']['send_file']); $real_paths = array(); foreach ($paths as $path) { if (($rpath = realpath(MHTTPD::getInipath().$path)) || ($rpath = realpath($path))) { $real_paths[] = $rpath; } } MHTTPD::$send_file_paths = $real_paths; return $real_paths; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/trickstr.php',\n 'sources_custom/programe/.htaccess',\n 'sources_custom/programe/aiml/.htaccess',\n 'sources_custom/programe/aiml/index.html',\n 'sources_custom/programe/index.html',\n 'sources_custom/hooks/modules/chat_bots/knowledge.txt',\n 'sources_custom/hooks/modules/chat_bots/trickstr.php',\n 'sources_custom/programe/aiml/readme.txt',\n 'sources_custom/programe/aiml/startup.xml',\n 'sources_custom/programe/aiml/std-65percent.aiml',\n 'sources_custom/programe/aiml/std-pickup.aiml',\n 'sources_custom/programe/botloaderfuncs.php',\n 'sources_custom/programe/customtags.php',\n 'sources_custom/programe/db.sql',\n 'sources_custom/programe/graphnew.php',\n 'sources_custom/programe/respond.php',\n 'sources_custom/programe/util.php',\n );\n }", "public function getCopyFileUrls() {\n if (!$this->copyFilePaths) return [];\n\n $urls = [];\n\n foreach($this->copyFilePaths as $filePath) {\n $url = FileService::getInstance()->getUrlForPathUnderUploadsDir($filePath);\n if (!$url) continue;\n\n $urls[] = $url;\n }\n\n return $urls;\n }", "public function get_paths()\n\t{\n\t\tif ( ! ee()->session->cache(__CLASS__, 'paths'))\n\t\t{\n\t\t\t$paths = array();\n\t\t\t$upload_prefs = $this->get_file_upload_preferences(NULL, NULL, TRUE);\n\n\t\t\tif (count($upload_prefs) == 0)\n\t\t\t{\n\t\t\t\treturn $paths;\n\t\t\t}\n\n\t\t\tforeach ($upload_prefs as $row)\n\t\t\t{\n\t\t\t\t$paths[$row['id']] = $row['url'];\n\t\t\t}\n\n\t\t\tee()->session->set_cache(__CLASS__, 'paths', $paths);\n\t\t}\n\n\t\treturn ee()->session->cache(__CLASS__, 'paths');\n\t}", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/wiki_sync.php',\n '_tests/tests/unit_tests/wiki_sync.php',\n 'lang_custom/EN/wiki_sync.ini',\n 'sources_custom/wiki_sync.php',\n 'sources_custom/hooks/systems/config/wiki_alt_changes_link_stub.php',\n 'sources_custom/hooks/systems/config/wiki_enable_git_sync.php',\n 'sources_custom/hooks/systems/config/wiki_enable_wysiwyg.php',\n 'sources_custom/hooks/systems/config/wiki_sync_media_directory.php',\n 'sources_custom/hooks/systems/config/wiki_sync_page_directory.php',\n 'sources_custom/hooks/systems/cron/wiki_sync_git.php',\n 'sources_custom/hooks/systems/notifications/wiki_failed_git_pull.php',\n 'sources_custom/wiki.php',\n 'site/pages/modules_custom/wiki.php',\n 'cms/pages/modules_custom/cms_wiki.php',\n );\n }", "function getPaths()\n {\n $paths = array();\n foreach ($this->names as $name) {\n $paths[] = $this->dir.$name.$this->ext;\n }\n return $paths;\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/idolisr.php',\n 'sources_custom/hooks/modules/members/idolisr.php',\n 'sources_custom/miniblocks/main_stars.php',\n 'sources_custom/miniblocks/side_recent_points.php',\n 'themes/default/templates_custom/POINTS_GIVE.tpl',\n 'themes/default/templates_custom/BLOCK_MAIN_STARS.tpl',\n 'themes/default/templates_custom/BLOCK_SIDE_RECENT_POINTS.tpl',\n );\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/google_search.php',\n 'lang_custom/EN/google_search.ini',\n 'sources_custom/blocks/side_google_search.php',\n 'sources_custom/blocks/main_google_results.php',\n 'themes/default/templates_custom/BLOCK_SIDE_GOOGLE_SEARCH.tpl',\n 'themes/default/templates_custom/BLOCK_MAIN_GOOGLE_SEARCH_RESULTS.tpl',\n 'themes/default/css_custom/google_search.css',\n 'pages/comcode_custom/EN/_google_search.txt',\n );\n }", "public function fileList()\n {\n return array_values(array_diff(scandir($this->location), ['.', '..']));\n }", "public function getLocalPaths()\n {\n return array_map(\n function (LocalResource $r) { return $r->getLocalPath(); },\n $this->toArray()\n );\n }", "final public function get_paths() {\n return array();\n }", "public function getFiles()\n {\n $request = $this->getRequest();\n return (array)$request->getFiles();\n }", "public function getPaths(): array\n {\n return $this->paths;\n }", "public function getPaths(): array\n {\n return $this->paths;\n }", "private function _getRequestPaths()\n {\n $paths = array();\n \n // Find maxPages with the ceil of the total properties / the maximum\n // pageSize\n $maxPages = ceil($this->getTotal() / $this->getMaxPageSize());\n \n // Use plus one as the first page will have already be requested\n for ($i = $this->getPage() + 1; $i <= $maxPages; $i++) {\n $paths[] = $this->getRequestPath($i, $this->getMaxPageSize());\n }\n \n return $paths;\n }", "protected function sourceFiles()\n {\n static $files;\n\n if ($files === null) {\n $basePath = $this->basePath();\n $includedPaths = $this->includedPaths();\n $excludedPaths = $this->excludedPaths();\n\n $included = [];\n foreach ($includedPaths as $relPath) {\n $included = array_merge($included, $this->globRecursive($basePath.'/'.$relPath, GLOB_BRACE));\n }\n\n $excluded = [];\n foreach ($excludedPaths as $relPath) {\n $excluded = array_merge($excluded, $this->globRecursive($basePath.'/'.$relPath, GLOB_BRACE));\n }\n\n $files = array_diff($included, $excluded);\n }\n\n return $files;\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/jestr.php',\n 'sources_custom/forum/cns.php',\n 'lang_custom/EN/jestr.ini',\n 'themes/default/templates_custom/EMOTICON_IMG_CODE_THEMED.tpl',\n 'forum/pages/modules_custom/topicview.php',\n 'sources_custom/hooks/systems/config/jestr_avatar_switch_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_emoticon_magnet_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_leet_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_name_changes.php',\n 'sources_custom/hooks/systems/config/jestr_name_changes_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_piglatin_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_string_changes.php',\n 'sources_custom/hooks/systems/config/jestr_string_changes_shown_for.php',\n );\n }", "private function attachmentPaths(): array\n {\n $sql = \"SELECT meta_value FROM {$this->wpdb->postmeta} WHERE meta_key = %s\";\n /** @var \\stdClass[] $metadata */\n $metadata = $this->wpdb->get_results($this->wpdb->prepare($sql, '_wp_attachment_metadata'));\n\n if (!$metadata) {\n return [];\n }\n\n $paths = [];\n foreach ($metadata as $metadataValue) {\n list($dir, $files) = $this->attachmentPathFiles($metadataValue);\n if ($dir && $files) {\n array_key_exists($dir, $paths)\n ? $paths[$dir] = array_merge($paths[$dir], $files)\n : $paths[$dir] = $files;\n }\n }\n\n return $paths;\n }", "public function getPaths();", "public static function getIndexFiles()\n\t{\n\t\tif (empty(MHTTPD::$config['Server']['index_files'])) {\n\t\t\treturn array();\n\t\t}\n\t\treturn MHTTPD::$config['Server']['index_files'];\n\t}", "public function getSrcFiles()\n\t{\n\t\t// src files are cached to be less calls on the fs\n\t\tif (!$this->srcFiles) {\n\t\t\t$this->srcFiles = $this->getFiles($this->config['src']);\n\t\t}\n\n\t\treturn $this->srcFiles;\n\t}", "public function getFiles() {\r\n\r\n $files = array();\r\n\r\n $userId= $this->userId;\r\n $trackingId = $this->trackingFormId;\r\n $dir = FILEPATH . $userId. '/' . $trackingId;\r\n\r\n if (is_dir($dir)) {\r\n if ($dh = opendir($dir)) {\r\n while (($file = readdir($dh)) !== false) {\r\n if($file != '.' && $file != '..') {\r\n $size = $this->Size($dir . '/' . $file);\r\n array_push($files, array('name'=>$file,\r\n 'urlfilename'=>urlencode($file),\r\n 'size'=>$size));\r\n }\r\n }\r\n closedir($dh);\r\n }\r\n }\r\n\r\n return $files;\r\n }", "public function getDeviceFiles()\n {\n return [$this->getPreferredDeviceFile()];\n }", "public static final function paths()\n {\n\treturn self::$_paths;\n }", "public function getPaths()\n {\n return $this->paths;\n }", "public function getPaths()\n {\n return $this->_paths;\n }", "function list_files () {\n\t\t$root = $this->get_root();\n\t\t\n\t\treturn $this->_list_files($root);\n\t}", "public function getPrintFiles()\n {\n $key = $this->specification->key;\n\n $files = glob(storage_path('prints' . DIRECTORY_SEPARATOR . $key . DIRECTORY_SEPARATOR . '*.docx'));\n $file_names = array_map('basename', $files);\n\n return $file_names;\n }", "protected function getAvailableFiles() {\n\t\t$sql = \"SELECT\tfilename\n\t\t\tFROM\twcf\".WCF_N.'_'.$this->tableName.\"\n\t\t\tWHERE\tpackageID = \".$this->installation->getPackageID();\n\t\t$result = WCF::getDB()->sendQuery($sql);\n\t\t\n\t\t$availableFiles = array();\n\t\twhile ($row = WCF::getDB()->fetchArray($result)) {\n\t\t\t$availableFiles[] = $row['filename'];\n\t\t}\n\t\t\n\t\treturn $availableFiles;\n\t}", "public function getAvailablePaths()\n {\n $paths = [];\n $datasources = array_reverse($this->datasources);\n foreach ($datasources as $datasource) {\n $paths = array_merge($paths, $datasource->getAvailablePaths());\n }\n return $paths;\n }", "public function listApplicationFiles() {\r\n\t\t$preload = array(\r\n\t\t\t\"config/main.js\"\r\n\t\t);\r\n\t\t\r\n\t\t$return = array();\r\n\t\t$fullPath = $this->applicationPath;\r\n\t\r\n\t\tforeach($preload as $file) {\r\n\t\t\t$return[] = $fullPath.\"/\".$file;\r\n\t\t}\r\n\t\t\r\n\t\t$options = array(\r\n\t\t\t\"fileTypes\" => array(\"js\"),\r\n\t\t\t\"exclude\" => array_merge($preload, array(\r\n\t\t\t\t\"data\", \"messages\", \"compiled.js\"\r\n\t\t\t))\r\n\t\t);\r\n\t\t\r\n\t\t$return = array_merge($return, CFileHelper::findFiles($fullPath,$options));\r\n\t\t\r\n\t\t\r\n\t\treturn $return;\r\n\t}", "private function get_svg_files_path() {\n\t\t$custom_svg_path_icons = apply_filters( 'acf_svg_icon_filepath', array() );\n\n\t\treturn array_map( function ( $val ) {\n\t\t\treturn [\n\t\t\t\t'type' => 'custom',\n\t\t\t\t'file' => $val,\n\t\t\t];\n\t\t}, (array) $custom_svg_path_icons );\n\t}", "public function getFiles() {\n return $this->getPartFiles(0);\n }", "private function getUploadedFiles()\n {\n $list = array();\n \n if(isset($_REQUEST['files']))\n {\n $files = explode('::', $_REQUEST['files']);\n foreach($files as $index => $item)\n {\n list($name, $src, $size) = explode(':', $item);\n \n $list[] = array(\n 'name' => $name,\n 'src' => $src,\n 'size' => $size \n );\n }\n }\n \n return $list;\n }", "public function getHandledPaths();", "public function getFiles(): array\n {\n return [$this->file];\n }", "public function getAllPaths(): array\n {\n return [\n 'all_users_profile' => $this->getAllUsersProfilePath(),\n 'app_data' => $this->getAppDataPath(),\n 'com_spec' => $this->getComSpecPath(),\n 'common_program_files' => $this->getCommonProgramFilesPath(),\n 'common_program_files_x86' => $this->getCommonProgramFilesX86Path(),\n 'driver_data' => $this->getDriverDataPath(),\n 'home_drive' => $this->getHomeDrivePath(),\n 'home' => $this->getHomePath(),\n 'local_app_data' => $this->getLocalAppDataPath(),\n 'logon_server' => $this->getLogonServerPath(),\n 'one_drive' => $this->getOneDrivePath(),\n 'path' => $this->getPath(),\n 'program_data' => $this->getProgramDataPath(),\n 'program_files' => $this->getProgramFilesPath(),\n 'program_files_x86' => $this->getProgramFilesX86Path(),\n 'public' => $this->getPublicPath(),\n 'system_drive' => $this->getSystemDrivePath(),\n 'system_root' => $this->getSystemRootPath(),\n 'temp' => $this->getTempPath(),\n 'user_profile' => $this->getUserProfilePath(),\n 'win_dir' => $this->getWindirPath(),\n ];\n }", "public function getSettingFiles() {\n $aOut = array();\n foreach ($this->getBasePaths('setting') as $aPaths) {\n foreach ($aPaths as $aInfo) {\n $aOut[] = $aInfo['path'];\n }\n }\n return $aOut;\n }", "public function getScriptPaths()\n {\n return array( $this->_getSmartyParams('template_dir') );\n }", "public function getFiles(): array\n {\n return $this->pluginRepository->config('stubs.files');\n }", "public function getFiles(): array\n {\n return $this->files;\n }", "public function requestPaths() {\n\t\treturn array(\n\t\t\tarray('homepage', 'homepage'),\n\t\t\tarray('homepage.html', 'homepage'),\n\t\t\tarray('homepage/subpage.html', 'homepage/subpage'),\n\t\t\tarray('homepage/subpage.rss.xml', 'homepage/subpage')\n\t\t);\n\t}", "protected function getFiles(): array\n {\n return [];\n }", "private function getFilenames() {\n $result = [];\n $files = scandir($this->tmpFolder);\n foreach ($files as $v) {\n if($v != '.' && $v != '..' && '__MACOSX') {\n $result[] = $v;\n }\n }\n\n return $result;\n }", "public function getFiles()\n {\n return $this->getConfig('stubs.files');\n }", "public function getFiles ();", "public function getFiles();", "public function getFiles();", "public function getFiles();", "public function getDeviceFileSymlinks()\n {\n return [];\n }", "protected static function getPathsInternal() {}", "public function get_all_svg_files() {\n\t\t// First try to load files list from the cache.\n\t\t$files = get_transient( $this->cache_key );\n\t\tif ( ! empty( $files ) ) {\n\t\t\treturn $files;\n\t\t}\n\n\t\t/**\n\t\t * Get WP Media SVGs\n\t\t *\n\t\t * @since 2.0.0\n\t\t */\n\t\t$media_svg_files = $this->get_medias_svg();\n\n\t\t/**\n\t\t * The path to the svg file.\n\t\t *\n\t\t * @since 1.0.0\n\t\t */\n\t\t$custom_svg_files = $this->get_svg_files_path();\n\n\t\t$files = array_merge( $media_svg_files, $custom_svg_files );\n\n\t\t// Cache 24 hours.\n\t\tset_transient( $this->cache_key, $files, HOUR_IN_SECONDS * 24 );\n\n\t\treturn $files;\n\t}", "public function getFiles() : array\n {\n return $this->files;\n }", "protected function getPaths(): array\n {\n $paths = array_merge([\n base_path('app'),\n base_path('modules'),\n base_path('resources'),\n base_path('routes'),\n ], (array)config('laradium.additional_translation_scan_paths', []));\n\n foreach ($paths as $i => $path) {\n if (!File::isDirectory($path)) {\n unset($paths[$i]);\n }\n }\n return $paths;\n }", "public function getFileList()\n {\n return array_map(\n function (FileEntry $file) {\n return $file->getFilename();\n },\n $this->pharchive->getFiles()\n );\n }", "public function loadFiles()\n\t{\n\t\t$files = array();\n\t\t\n\t\t$searchPath = $this->getLocalFolder().\"/*.*\";\n\t\t$filesArray = glob($searchPath);\n\t\t\n\t\tforeach($filesArray as $file)\n\t\t{\n\t\t\t$files[] = new File($file);\n\t\t}\n\t\t\n\t\treturn $files;\n\t}", "function rex_com_mediaaccess_getExtensionsSendfile()\n{\n global $REX;\n\n $classes = array();\n\n foreach($REX['ADDON']['community']['plugin_mediaaccess']['extension_sendfile_dir'] as $path)\n {\n if($dir = opendir($path))\n {\n while($file = readdir($dir))\n {\n if(!is_dir($file))\n {\n $classname = explode(\".\", $file);\n $class = $classname[1];\n\n if(file_exists($path.$file))\n {\n include_once($path.$file);\n $classes[] = $class;\n }\n }\n }\n closedir($dir);\n }\n }\n\n return $classes;\n}", "public function getFiles() {}", "public function get_file_list() {\n\t\tset_time_limit( 0 );\n\n\t\t$this->image_dir = self::_add_trailing_slash( $this->image_dir );\n\n\t\tif ( is_dir( $this->image_dir ) ) {\n $result = array();\n\t\t\t$iterator = new \\RecursiveDirectoryIterator( $this->image_dir, \\FileSystemIterator::SKIP_DOTS );\n\t\t\t$iterator = new \\RecursiveIteratorIterator( $iterator );\n\t\t\t$iterator = new \\RegexIterator( $iterator, '/^.+\\.(jpe?g|png|gif|svg)$/i', \\RecursiveRegexIterator::MATCH );\n\n\t\t\tforeach ( $iterator as $info ) {\n\t\t\t if ( $info->isFile() ) {\n $result[] = $info->getPathname();\n }\n\t\t\t}\n\n\t\t\tunset( $iterator );\n\t\t} else {\n $result = false;\n }\n\n\t\treturn $result;\n\t}", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/mediaelement.php',\n 'data_custom/mediaelement/flashmediaelement.swf',\n 'data_custom/mediaelement/silverlightmediaelement.xap',\n 'themes/default/css_custom/mediaelementplayer.css',\n 'themes/default/images_custom/mediaelement/background.png',\n 'themes/default/images_custom/mediaelement/bigplay.png',\n 'themes/default/images_custom/mediaelement/bigplay_svg.svg',\n 'themes/default/images_custom/mediaelement/controls.png',\n 'themes/default/images_custom/mediaelement/controls_svg.svg',\n 'themes/default/images_custom/mediaelement/jumpforward.png',\n 'themes/default/images_custom/mediaelement/loading.gif',\n 'themes/default/images_custom/mediaelement/skipback.png',\n 'themes/default/javascript_custom/mediaelement-and-player.js',\n 'themes/default/templates_custom/MEDIA_AUDIO_WEBSAFE.tpl',\n 'themes/default/templates_custom/MEDIA_VIDEO_WEBSAFE.tpl',\n );\n }", "public static function get_file_list() {\n\t\t$new_file_list = array();\n\t\t$files = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( ABSPATH ), RecursiveIteratorIterator::SELF_FIRST );\n\t\tforeach ( $files as $file ) {\n\t\t\t$file = realpath( $file );\n\t\t\tif ( File_List::in_ignore_list( $file ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( is_dir( $file) ) {\n\t\t\t\t$file .= '/';\n\t\t\t}\n\t\t\t$new_file_list[] = array( $file, File_List::INCLUDED ) ;\n\t\t}\n\t\tasort( $new_file_list );\n\t\treturn array_values( $new_file_list );\n\t}", "public function getFiles()\n {\n return isset($this->source['files']) && is_array($this->source['files']) ? $this->source['files'] : [];\n }", "public function getPaths()\n {\n return array_map(function (ScriptBranch $branch) {\n return $branch->getPath();\n }, $this->descriptorMap);\n }", "public function getFiles()\n {\n return array_keys($this->files);\n }", "function _generateFilesList() {\n return array();\n }", "public function getIncludePaths()\n\t{\n\t\tif (!is_array($this->_includePaths)) {\n\t\t\t$this->_includePaths = explode(PATH_SEPARATOR, (string)$this->_includePaths);\n\t\t}\n\t\t$paths = array();\n\t\tforeach ($this->_includePaths as $path) {\n\t\t\t$paths[] = $this->_isAbsolute($path)\n\t\t\t\t? $path\n\t\t\t\t: ($this->getAppPath() . '/' . $path);\n\t\t}\n\t\treturn $paths;\n\t}", "public function includedPaths()\n {\n if ($this->includedPaths === null) {\n return $this->defaultIncludedPaths();\n }\n\n return $this->includedPaths;\n }", "public static function files($filePath)\n\t{\n\t\t$files = [];\n\t\tforeach(scandir($filePath) as $check){\n\t\t\tif(self::isFile($check)){\n\t\t\t\t$files[] = $check;\n\t\t\t}\n\t\t}\n\n\t\treturn $files;\n\t}", "private static function file_list($d,$x){ \r\n\t\treturn array_diff(scandir(__DIR__.'/../../'.$d),array('.','..'));\r\n\t}", "function getllxmlFiles($extPath)\t{\n\n\t\t// Initialize:\n\t\t$files = array();\n\n\t\tif (!$extPath) {\n\t\t\t// Traverse extension locations:\n\t\t\tforeach($this->extPathList as $path)\t{\n\t\t\t\tif (is_dir(PATH_site . $path))\t{\n\t\t\t\t\t$files = t3lib_div::getAllFilesAndFoldersInPath($files, PATH_site . $path, 'xml');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t$files = t3lib_div::getAllFilesAndFoldersInPath($files, $extPath . '/', 'xml');\n\t\t}\n\n\t\t// Remove prefixes\n\t\t$files = t3lib_div::removePrefixPathFromList($files, PATH_site);\n\n\t\t// Remove all non-locallang files (looking at the prefix)\n\t\tforeach($files as $key => $value)\t{\n\t\t\tif (substr(basename($value), 0, 9) != 'locallang')\t{\n\t\t\t\tunset($files[$key]);\n\t\t\t}\n\t\t}\n\n\t\treturn $files;\n\t}", "protected function getSearchPaths() {}", "public function getFiles()\n {\n return R::findAll('upload');\n }", "public function getLogFiles()\n {\n // Check if path exists\n $path = Mage::getBaseDir('var') . DS . 'log' . DS;\n if (!file_exists($path)) {\n return array();\n }\n\n // Return file list\n $io = new Varien_Io_File();\n $io->open(\n array(\n 'path' => $path\n )\n );\n return $io->ls(Varien_Io_File::GREP_FILES);\n }", "public function getXSLFiles(){\r\n\t\tif(isset($this->xsl_path)){\r\n\t\t\t$files = t3lib_div::getFilesInDir($this->xsl_path,'xsl');\r\n\t\t\treturn $files;\r\n\t\t}else{\r\n\t\t\t//error: no xsl_path set\r\n\t\t}\r\n\t}", "public function getFileList() {\n return $this->fileList;\n }", "public function getFiles()\n {\n return $this->_files;\n }", "public function getPaths()\n\t{\n\t\treturn [\n '/containers/winnative/api/context',\n\t\t];\n\t}", "public function getPaths()\n {\n $out = array();\n $pluginsDir = $this->baseDir . '/modules';\n foreach (scandir($pluginsDir) as $f) {\n if ($f[0] != '.' && is_dir($pluginsDir . '/' . $f)) {\n $out[$f] = realpath($pluginsDir . '/' . $f);\n }\n }\n return $out;\n }", "public function files()\n {\n return $this->_array[\"files\"];\n }", "public function on_cap_xsl_get_xmlfiles ()\n {\n return $this->xmlfiles;\n }", "private function getFilenames()\n\t{\n\t\t$filenames = array();\n\n\t\tforeach ($this->filesets as $fileset)\n\t\t{\n\t\t\t$ds = $fileset->getDirectoryScanner($this->project);\n\t\t\t$ds->scan();\n\n\t\t\t$files = $ds->getIncludedFiles();\n\n\t\t\tforeach ($files as $file)\n\t\t\t{\n\t\t\t\t$filenames[] = $ds->getBaseDir() . \"/\" . $file;\n\t\t\t}\n\t\t}\n\n\t\treturn $filenames;\n\t}", "public function getIncludePaths()\n {\n return $this->filterPaths($this->includePaths);\n }", "public static function all()\n {\n return array_merge(self::$__request, self::$__files);\n }", "public function provideRealFiles()\n {\n return [\n [__FILE__]\n ];\n }", "public function listAll()\n {\n $files = \\Core\\File\\System::listFiles($this->_getPath(), \\Core\\File\\System::EXCLUDE_DIRS);\n $result = [];\n foreach (array_keys($files) as $file) {\n $result[] = pathinfo($file, PATHINFO_FILENAME);\n }\n return $result;\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/geshi.php',\n 'sources_custom/geshi/.htaccess',\n 'sources_custom/geshi/index.html',\n 'sources_custom/geshi/4cs.php',\n 'sources_custom/geshi/abap.php',\n 'sources_custom/geshi/actionscript.php',\n 'sources_custom/geshi/actionscript3.php',\n 'sources_custom/geshi/ada.php',\n 'sources_custom/geshi/apache.php',\n 'sources_custom/geshi/applescript.php',\n 'sources_custom/geshi/apt_sources.php',\n 'sources_custom/geshi/asm.php',\n 'sources_custom/geshi/asp.php',\n 'sources_custom/geshi/autohotkey.php',\n 'sources_custom/geshi/autoit.php',\n 'sources_custom/geshi/avisynth.php',\n 'sources_custom/geshi/awk.php',\n 'sources_custom/geshi/bash.php',\n 'sources_custom/geshi/basic4gl.php',\n 'sources_custom/geshi/bf.php',\n 'sources_custom/geshi/bibtex.php',\n 'sources_custom/geshi/blitzbasic.php',\n 'sources_custom/geshi/bnf.php',\n 'sources_custom/geshi/boo.php',\n 'sources_custom/geshi/c.php',\n 'sources_custom/geshi/c_mac.php',\n 'sources_custom/geshi/caddcl.php',\n 'sources_custom/geshi/cadlisp.php',\n 'sources_custom/geshi/cfdg.php',\n 'sources_custom/geshi/cfm.php',\n 'sources_custom/geshi/cil.php',\n 'sources_custom/geshi/clojure.php',\n 'sources_custom/geshi/cmake.php',\n 'sources_custom/geshi/cobol.php',\n 'sources_custom/geshi/cpp-qt.php',\n 'sources_custom/geshi/cpp.php',\n 'sources_custom/geshi/csharp.php',\n 'sources_custom/geshi/css.php',\n 'sources_custom/geshi/cuesheet.php',\n 'sources_custom/geshi/d.php',\n 'sources_custom/geshi/dcs.php',\n 'sources_custom/geshi/delphi.php',\n 'sources_custom/geshi/diff.php',\n 'sources_custom/geshi/div.php',\n 'sources_custom/geshi/dos.php',\n 'sources_custom/geshi/dot.php',\n 'sources_custom/geshi/eiffel.php',\n 'sources_custom/geshi/email.php',\n 'sources_custom/geshi/erlang.php',\n 'sources_custom/geshi/fo.php',\n 'sources_custom/geshi/fortran.php',\n 'sources_custom/geshi/freebasic.php',\n 'sources_custom/geshi/fsharp.php',\n 'sources_custom/geshi/gambas.php',\n 'sources_custom/geshi/gdb.php',\n 'sources_custom/geshi/genero.php',\n 'sources_custom/geshi/gettext.php',\n 'sources_custom/geshi/glsl.php',\n 'sources_custom/geshi/gml.php',\n 'sources_custom/geshi/gnuplot.php',\n 'sources_custom/geshi/groovy.php',\n 'sources_custom/geshi/haskell.php',\n 'sources_custom/geshi/hq9plus.php',\n 'sources_custom/geshi/html4strict.php',\n 'sources_custom/geshi/idl.php',\n 'sources_custom/geshi/ini.php',\n 'sources_custom/geshi/inno.php',\n 'sources_custom/geshi/intercal.php',\n 'sources_custom/geshi/io.php',\n 'sources_custom/geshi/java.php',\n 'sources_custom/geshi/java5.php',\n 'sources_custom/geshi/javascript.php',\n 'sources_custom/geshi/jquery.php',\n 'sources_custom/geshi/kixtart.php',\n 'sources_custom/geshi/klonec.php',\n 'sources_custom/geshi/klonecpp.php',\n 'sources_custom/geshi/latex.php',\n 'sources_custom/geshi/lisp.php',\n 'sources_custom/geshi/locobasic.php',\n 'sources_custom/geshi/logtalk.php',\n 'sources_custom/geshi/lolcode.php',\n 'sources_custom/geshi/lotusformulas.php',\n 'sources_custom/geshi/lotusscript.php',\n 'sources_custom/geshi/lscript.php',\n 'sources_custom/geshi/lsl2.php',\n 'sources_custom/geshi/lua.php',\n 'sources_custom/geshi/m68k.php',\n 'sources_custom/geshi/make.php',\n 'sources_custom/geshi/mapbasic.php',\n 'sources_custom/geshi/matlab.php',\n 'sources_custom/geshi/mirc.php',\n 'sources_custom/geshi/mmix.php',\n 'sources_custom/geshi/modula3.php',\n 'sources_custom/geshi/mpasm.php',\n 'sources_custom/geshi/mxml.php',\n 'sources_custom/geshi/mysql.php',\n 'sources_custom/geshi/newlisp.php',\n 'sources_custom/geshi/nsis.php',\n 'sources_custom/geshi/oberon2.php',\n 'sources_custom/geshi/objc.php',\n 'sources_custom/geshi/ocaml-brief.php',\n 'sources_custom/geshi/ocaml.php',\n 'sources_custom/geshi/oobas.php',\n 'sources_custom/geshi/oracle11.php',\n 'sources_custom/geshi/oracle8.php',\n 'sources_custom/geshi/pascal.php',\n 'sources_custom/geshi/per.php',\n 'sources_custom/geshi/perl.php',\n 'sources_custom/geshi/perl6.php',\n 'sources_custom/geshi/php-brief.php',\n 'sources_custom/geshi/php.php',\n 'sources_custom/geshi/pic16.php',\n 'sources_custom/geshi/pike.php',\n 'sources_custom/geshi/pixelbender.php',\n 'sources_custom/geshi/plsql.php',\n 'sources_custom/geshi/povray.php',\n 'sources_custom/geshi/powerbuilder.php',\n 'sources_custom/geshi/powershell.php',\n 'sources_custom/geshi/progress.php',\n 'sources_custom/geshi/prolog.php',\n 'sources_custom/geshi/properties.php',\n 'sources_custom/geshi/providex.php',\n 'sources_custom/geshi/purebasic.php',\n 'sources_custom/geshi/python.php',\n 'sources_custom/geshi/qbasic.php',\n 'sources_custom/geshi/rails.php',\n 'sources_custom/geshi/rebol.php',\n 'sources_custom/geshi/reg.php',\n 'sources_custom/geshi/robots.php',\n 'sources_custom/geshi/rsplus.php',\n 'sources_custom/geshi/ruby.php',\n 'sources_custom/geshi/sas.php',\n 'sources_custom/geshi/scala.php',\n 'sources_custom/geshi/scheme.php',\n 'sources_custom/geshi/scilab.php',\n 'sources_custom/geshi/sdlbasic.php',\n 'sources_custom/geshi/smalltalk.php',\n 'sources_custom/geshi/smarty.php',\n 'sources_custom/geshi/sql.php',\n 'sources_custom/geshi/systemverilog.php',\n 'sources_custom/geshi/tcl.php',\n 'sources_custom/geshi/teraterm.php',\n 'sources_custom/geshi/text.php',\n 'sources_custom/geshi/thinbasic.php',\n 'sources_custom/geshi/tsql.php',\n 'sources_custom/geshi/typoscript.php',\n 'sources_custom/geshi/vb.php',\n 'sources_custom/geshi/vbnet.php',\n 'sources_custom/geshi/verilog.php',\n 'sources_custom/geshi/vhdl.php',\n 'sources_custom/geshi/vim.php',\n 'sources_custom/geshi/visualfoxpro.php',\n 'sources_custom/geshi/visualprolog.php',\n 'sources_custom/geshi/whitespace.php',\n 'sources_custom/geshi/whois.php',\n 'sources_custom/geshi/winbatch.php',\n 'sources_custom/geshi/xml.php',\n 'sources_custom/geshi/xorg_conf.php',\n 'sources_custom/geshi/xpp.php',\n 'sources_custom/geshi/z80.php',\n 'sources_custom/geshi.php',\n 'sources_custom/geshi/.gitignore',\n 'sources_custom/geshi/6502acme.php',\n 'sources_custom/geshi/6502kickass.php',\n 'sources_custom/geshi/6502tasm.php',\n 'sources_custom/geshi/68000devpac.php',\n 'sources_custom/geshi/aimms.php',\n 'sources_custom/geshi/algol68.php',\n 'sources_custom/geshi/arm.php',\n 'sources_custom/geshi/asymptote.php',\n 'sources_custom/geshi/autoconf.php',\n 'sources_custom/geshi/bascomavr.php',\n 'sources_custom/geshi/c_loadrunner.php',\n 'sources_custom/geshi/c_winapi.php',\n 'sources_custom/geshi/chaiscript.php',\n 'sources_custom/geshi/chapel.php',\n 'sources_custom/geshi/coffeescript.php',\n 'sources_custom/geshi/cpp-winapi.php',\n 'sources_custom/geshi/dart.php',\n 'sources_custom/geshi/dcl.php',\n 'sources_custom/geshi/dcpu16.php',\n 'sources_custom/geshi/e.php',\n 'sources_custom/geshi/ecmascript.php',\n 'sources_custom/geshi/epc.php',\n 'sources_custom/geshi/euphoria.php',\n 'sources_custom/geshi/ezt.php',\n 'sources_custom/geshi/f1.php',\n 'sources_custom/geshi/falcon.php',\n 'sources_custom/geshi/freeswitch.php',\n 'sources_custom/geshi/genie.php',\n 'sources_custom/geshi/go.php',\n 'sources_custom/geshi/gwbasic.php',\n 'sources_custom/geshi/haxe.php',\n 'sources_custom/geshi/hicest.php',\n 'sources_custom/geshi/html5.php',\n 'sources_custom/geshi/icon.php',\n 'sources_custom/geshi/ispfpanel.php',\n 'sources_custom/geshi/j.php',\n 'sources_custom/geshi/jcl.php',\n 'sources_custom/geshi/lb.php',\n 'sources_custom/geshi/ldif.php',\n 'sources_custom/geshi/llvm.php',\n 'sources_custom/geshi/magiksf.php',\n 'sources_custom/geshi/modula2.php',\n 'sources_custom/geshi/nagios.php',\n 'sources_custom/geshi/netrexx.php',\n 'sources_custom/geshi/nginx.php',\n 'sources_custom/geshi/nimrod.php',\n 'sources_custom/geshi/objeck.php',\n 'sources_custom/geshi/octave.php',\n 'sources_custom/geshi/oorexx.php',\n 'sources_custom/geshi/oxygene.php',\n 'sources_custom/geshi/oz.php',\n 'sources_custom/geshi/parasail.php',\n 'sources_custom/geshi/parigp.php',\n 'sources_custom/geshi/pcre.php',\n 'sources_custom/geshi/pf.php',\n 'sources_custom/geshi/pli.php',\n 'sources_custom/geshi/postgresql.php',\n 'sources_custom/geshi/postscript.php',\n 'sources_custom/geshi/proftpd.php',\n 'sources_custom/geshi/pycon.php',\n 'sources_custom/geshi/pys60.php',\n 'sources_custom/geshi/q.php',\n 'sources_custom/geshi/qml.php',\n 'sources_custom/geshi/racket.php',\n 'sources_custom/geshi/rbs.php',\n 'sources_custom/geshi/rexx.php',\n 'sources_custom/geshi/rpmspec.php',\n 'sources_custom/geshi/rust.php',\n 'sources_custom/geshi/scl.php',\n 'sources_custom/geshi/spark.php',\n 'sources_custom/geshi/sparql.php',\n 'sources_custom/geshi/standardml.php',\n 'sources_custom/geshi/stonescript.php',\n 'sources_custom/geshi/unicon.php',\n 'sources_custom/geshi/upc.php',\n 'sources_custom/geshi/urbi.php',\n 'sources_custom/geshi/uscript.php',\n 'sources_custom/geshi/vala.php',\n 'sources_custom/geshi/vbscript.php',\n 'sources_custom/geshi/vedit.php',\n 'sources_custom/geshi/xbasic.php',\n 'sources_custom/geshi/yaml.php',\n 'sources_custom/geshi/zxbasic.php',\n );\n }", "public function getTestFilePaths() {\n return $this->testFilePaths;\n }", "public function getRemoteExtListFile() {}", "public function getUserFiles()\n {\n $user_files = Helper::getUserFiles();\n return $user_files;\n }", "public function getFiles(): array\n {\n try {\n if (count($this->_filesCollection) === 0) {\n $path = $this->_flysystemHelper->getCurrentPath();\n\n $contents = $this->_flysystemManager->getAdapter()->listContents($path);\n foreach ($contents as $file) {\n if ($this->validateFile($file)) {\n $this->_filesCollection[] = $file;\n }\n }\n }\n } catch (\\Exception $e) {\n $this->_messageManager->addErrorMessage($e->getMessage());\n return [];\n }\n\n return $this->_filesCollection;\n }", "public function getFiles()\n {\n return $this->_configFiles;\n }", "public function getFiles()\n {\n $result = array();\n foreach ($this->_subdirectories as $directory) {\n $result = array_merge(\n $result,\n array_map(\n array($this, '_prependDirectory'),\n $directory->getFiles()\n )\n );\n }\n $result = array_merge(\n $result,\n array_map(\n array($this, '_prependDirectory'),\n array_keys($this->_files)\n )\n );\n return $result;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }", "public function getFiles()\n {\n return $this->files;\n }" ]
[ "0.66162944", "0.6567059", "0.6561348", "0.6464385", "0.6464098", "0.6408907", "0.6354905", "0.6340888", "0.63334733", "0.6308133", "0.6256872", "0.62493", "0.62493", "0.6247828", "0.6246778", "0.6213495", "0.6192444", "0.61869603", "0.61307496", "0.61296743", "0.61213833", "0.60838926", "0.6079984", "0.6065066", "0.60512614", "0.60485893", "0.604116", "0.6038561", "0.6030427", "0.60059184", "0.59914106", "0.59786", "0.59783244", "0.5977139", "0.5971822", "0.59692574", "0.59598136", "0.5959173", "0.59533536", "0.5953152", "0.59518075", "0.59458566", "0.5942487", "0.5941192", "0.59300643", "0.59166515", "0.59166515", "0.59166515", "0.59158266", "0.5908232", "0.5900134", "0.5898591", "0.589595", "0.5887016", "0.5876824", "0.5875774", "0.58653075", "0.58604467", "0.58595884", "0.58587766", "0.58568496", "0.5853061", "0.58462757", "0.58457017", "0.5836338", "0.58301944", "0.58262557", "0.58241236", "0.5822247", "0.5813958", "0.5811494", "0.5806894", "0.5792505", "0.57882977", "0.5784367", "0.57835335", "0.578307", "0.57772446", "0.57741207", "0.57682085", "0.5767266", "0.5764626", "0.5763906", "0.5763714", "0.5762561", "0.5755737", "0.5754486", "0.5754434", "0.5744845", "0.57367516", "0.5736437", "0.57349527", "0.57349527", "0.57349527", "0.57349527", "0.57349527", "0.57349527", "0.57349527", "0.57349527", "0.57349527" ]
0.808459
0
Returns the maximum number of requests allowed for KeepAlive connections.
Возвращает максимальное количество запросов, разрешенных для соединений KeepAlive.
public static function getMaxRequests() { return MHTTPD::$config['Server']['keep_alive_max_requests']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function max_connections()\n {\n $channel = ChannelRepository::getPublic($this);\n\n return $channel->max_connections;\n }", "public function getMaxConnections() {\n return @$this->attributes['max_connections'];\n }", "public function getMaxInstanceRequestConcurrency()\n {\n return $this->max_instance_request_concurrency;\n }", "public static function getAliveTimeout()\n\t{\n\t\treturn MHTTPD::$config['Server']['keep_alive_timeout'];\n\t}", "public function getServerFailureLimit()\n {\n return $this->serverFailureLimit;\n }", "public function maxTries() {\n\t\treturn 1;\n\t}", "public function getMaxConnectionsPerIp()\n {\n return $this->_maxConnectionsPerIp;\n }", "public function count() {\n return sizeof(self::$connections);\n }", "public function getMaxRetries()\n {\n return $this->_maxRetries;\n }", "public function getconnectioncount()\n\t{\n\t\treturn $this->connect('getconnectioncount');\n\t}", "public function get_maximum_tries() {\n $max = 1;\n foreach ($this->get_response_class_ids() as $responseclassid) {\n $max = max($max, $this->get_response_class($responseclassid)->get_maximum_tries());\n }\n return $max;\n }", "public function getMaxClients()\n {\n return $this->_maxClients;\n }", "public function getRequestCount()\n {\n return $this->requestCount;\n }", "final public static function HpsMaximumNumberOfRetryTransactionWasBreached()\n {\n return self::get(822);\n }", "function get_number_of_requests() {\n return CourseRequestManager::count_course_requests(COURSE_REQUEST_REJECTED);\n}", "public function getIdleWorkerCount(): int;", "protected function maxLoginAttempts()\n {\n return Arr::get(static::$config, 'attempts', 5);\n }", "public function getMaxConfs()\n {\n return $this->max_confs;\n }", "public function getRateLimitLimit(): int\n {\n return $this->httpClient->getRateLimitLimit();\n }", "public function getNotificationCounterMax()\n {\n return self::NOTIFICATIONS_COUNTER_MAX;\n }", "public function getMaxAllowedPacket(): int\n {\n if (!isset($this->maxAllowedPacket))\n {\n $query = \"show variables like 'max_allowed_packet'\";\n $max_allowed_packet = $this->executeRow1($query);\n\n $this->maxAllowedPacket = $max_allowed_packet['Value'];\n\n // Note: When setting $chunkSize equal to $maxAllowedPacket it is not possible to transmit a LOB\n // with size $maxAllowedPacket bytes (but only $maxAllowedPacket - 8 bytes). But when setting the size of\n // $chunkSize less than $maxAllowedPacket than it is possible to transmit a LOB with size\n // $maxAllowedPacket bytes.\n $this->chunkSize = (int)min($this->maxAllowedPacket - 8, 1024 * 1024);\n }\n\n return (int)$this->maxAllowedPacket;\n }", "public function getConnectionCount();", "public function getNumberOfRequests()\n {\n return array_sum($this->numberOfRequestsByPattern);\n }", "public function maxTries();", "public function getHttpHeartbeatTimeout()\n {\n return $this->httpHeartbeatTimeout;\n }", "public function getHeartbeatInterval(): int\n {\n }", "public function getconnectioncount() {\n return $this->bitcoin->getconnectioncount();\n }", "function http_persistent_handles_count() {}", "public function getMaxReplicas(): int {\n return $this->maxReplicas;\n }", "function rate_limit($key, $interval, $max, $error = 'Slow down a bit, yo.')\n{\n $unit = round(time() / $interval);\n $key .= '-'.$unit;\n $count = 0;\n\n if (apcu_exists($key)) {\n $count = apcu_fetch($key);\n if ($count >= $max) {\n throw new Exception($error);\n }\n }\n\n $count++;\n apcu_store($key, $count, $interval);\n\n return $count;\n}", "function rate_limit($key, $interval, $max, $error = 'Slow down a bit, yo.')\n{\n $unit = round(time() / $interval);\n $key .= '-'.$unit;\n $count = 0;\n\n if (apcu_exists($key)) {\n $count = apcu_fetch($key);\n if ($count >= $max) {\n throw new Exception($error);\n }\n }\n\n $count++;\n apcu_store($key, $count, $interval);\n\n return $count;\n}", "function bump_request_timeout() {\n\t\treturn 60;\n\t}", "public function httpConnections()\n {\n if (function_exists('exec')) {\n $www_total_count = 0;\n $unique = [];\n $command = 'netstat -an '\n . '| egrep \\':80|:443\\' '\n . '| awk \\'{print $5}\\' '\n . '| grep -v \\':::\\*\\' '\n . '| grep -v \\'0.0.0.0\\'';\n @exec($command, $results);\n foreach ($results as $result) {\n $array = explode(':', $result);\n $www_total_count ++;\n if (preg_match('/^::/', $result)) {\n $ipaddr = $array[3];\n } else {\n $ipaddr = $array[0];\n }\n if (!in_array($ipaddr, $unique)) {\n $unique[] = $ipaddr;\n $www_unique_count ++;\n }\n }\n unset($results);\n $this->httpconnections = count($unique);\n return $this->httpconnections;\n }\n return 0;\n }", "public function getMaxOpenHandles() {}", "public function getMaxNodeCount()\n {\n return $this->max_node_count;\n }", "protected function limit()\n {\n if (count($this->clients) > $this->limit)\n {\n $this->log->info(\"Limit connection exceeded!\");\n\n $this->conn->send('Limit connection exceeded!');\n\n $this->conn->close();\n }\n }", "public function maxAttempts()\n {\n return property_exists($this, 'maxAttempts') ? $this->maxAttempts : 5;\n }", "public function maxAttempts(): int\n {\n return 5;\n }", "function max_allowed_packet() {\n\t\treturn 850000;\n\t}", "public function getMaxAllowedPacket()\n\t{\n\t\treturn PHP_INT_MAX;\n\t}", "public function limit(): int\n {\n return $this->limit;\n }", "public function getLimitReached() {\n return $this->_limitReached = (((int) self::model()->countByAttributes(array('ip'=>$this->ipAddr))) >= self::MAX_REQUESTS);\n }", "public function get_limit() {\n\t\t// This matches the maximum number of indexables created by this action.\n\t\treturn 4;\n\t}", "public function getMaxLimit()\n {\n return $this->max_limit;\n }", "protected function getPostMaxSize(): int\n {\n if (is_numeric($postMaxSize = ini_get('post_max_size'))) {\n return (int) $postMaxSize;\n }\n \n $metric = strtoupper(substr($postMaxSize, -1));\n $postMaxSize = (int) $postMaxSize;\n \n return match ($metric) {\n 'K', 'k' => $postMaxSize * 1024,\n 'M', 'm' => $postMaxSize * 1048576,\n 'G', 'g' => $postMaxSize * 1073741824,\n default => $postMaxSize,\n };\n }", "function getRequestTimeout()\n {\n return $this->_props['RequestTimeout'];\n }", "public function setMaxConnections($cons)\n {\n if (function_exists('curl_multi_setopt')) {\n $this->_multi->setopt(CURLMOPT_MAXCONNECTS, $cons);\n }\n $this->_threshold = $cons;\n return $this;\n }", "public function getRateLimitRemaining(): int\n {\n return $this->httpClient->getRateLimitRemaining();\n }", "public function getMaximumAttempts();", "public function numberOfHostEntries()\n {\n return (int)$this->prepareRequest()->GetHostNumberOfEntries();\n }", "public function getMaxAttemptTimes(): int\n {\n return 3;\n }", "public function get_request_timeout(): float {\n $duration = get_config('realtimeplugin_phppoll', 'requesttimeout');\n return (isset($duration) && $duration !== false) ? (float)$duration : 30;\n }", "public function getPoolSize();", "public function getIdleTimeoutMs()\n {\n return $this->IdleTimeoutMs;\n }", "public function count()\n {\n return count($this->requests);\n }", "public function getCookiesTimeOut() \n {\n $cookiesTimeout = Mage::getStoreConfig(self::XML_PATH_COOKIES_TIMEOUT);\n return $cookiesTimeout;\n }", "protected function maxFiles()\n {\n if ($this->app->bound('config')) {\n return $this->app->make('config')->get('app.log_max_files', 5);\n }\n\n return 0;\n }", "public function getMaxcount()\n {\n return $this->maxCount;\n }", "public function getMaxStaleAge(): ?int\n {\n return $this->max_stale;\n }", "protected function getMaxAge(): int\r\n {\r\n $maxAge = $this->expire - time();\r\n\r\n return 0 >= $maxAge ? 0 : $maxAge;\r\n }", "public function getLimit() : int\n {\n return $this->limit;\n }", "public static function getRemainingRequests()\n {\n return self::$db->fetchOne(self::REQUESTS_REMAINING_SQL, self::getRemainingRequestsParams())['remaining'];\n }", "protected function getPostMaxSize()\n {\n if (is_numeric($postMaxSize = ini_get('post_max_size'))) {\n return (int)$postMaxSize;\n }\n\n $metric = strtoupper(substr($postMaxSize, -1));\n\n switch ($metric) {\n case 'K':\n return (int)$postMaxSize * 1024;\n case 'M':\n return (int)$postMaxSize * 1048576;\n default:\n return (int)$postMaxSize;\n }\n }", "public function getConnectTimeout();", "public static function getPostMaxSize(): int\n {\n $result = static::getIniValue('post_max_size');\n $result = Convert::valueToBytes($result);\n\n return $result;\n }", "private function _getChannelLimit()\n {\n return Yii::$app->params['channelLimit'];\n }", "public static function getDefaultLimit()\n {\n return config('consts.DefaultLimit');\n }", "public function getCachedServersCountAttribute(): int\n {\n return Cache::remember($this->cacheKey().':servers_count', 10, function () {\n return $this->servers()->count();\n });\n }", "public function getMaxTtl()\n {\n return isset($this->max_ttl) ? $this->max_ttl : 0;\n }", "public function get_blinkSeqMaxSize(): int\n {\n // $res is a int;\n if ($this->_cacheExpiration == 0) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::BLINKSEQMAXSIZE_INVALID;\n }\n }\n $res = $this->_blinkSeqMaxSize;\n return $res;\n }", "public function limit($client_limit = NULL) {\n\n return 1000;\n }", "public function getConnectTimeout(): float\n {\n }", "public function getPrefetchSize()\n {\n return $this->prefetchSize;\n }", "public function getPrefetchSize()\n {\n return $this->prefetchSize;\n }", "public function getPostDeliveryLimit(){\n\n return $this->client->makeRequest('PostDeliveryLimit', 'GET');\n }", "public function count(): int\n {\n return count($this->pool);\n }", "protected function getFuturesLimit() {\n // Sample set: Champo's macbook\n return 8;\n }", "public function getAutoInterval() {\n $interval = PHP_INT_MAX;\n $hosts = $this->getHosts();\n foreach ($hosts as $nick => $host) {\n if ($host->exists() && $host->getInterval() < $interval) {\n $interval = $host->getInterval();\n }\n }\n return $interval;\n }", "function get_number_of_sessions()\n {\n\t\treturn count($this->sessions);\n\t}", "public function getHeartbeatTimeout()\n {\n return $this->heartbeatTimeout;\n }", "static public function GetExpectedConnectionTimeout() {\n // Different vendors implement different connection timeouts.\n // In order to optimize processing, we return a specific time for the major\n // classes currently known (feedback welcome).\n // The amount of time returned is somehow lower than the max timeout so we have\n // time for processing.\n\n if (!isset(self::$expectedConnectionTimeout)) {\n // Apple and Windows Phone have higher timeouts (4min = 240sec)\n if (stripos(SYNC_TIMEOUT_LONG_DEVICETYPES, self::GetDeviceType()) !== false) {\n self::$expectedConnectionTimeout = 210;\n }\n // Samsung devices have a intermediate timeout (90sec)\n else if (stripos(SYNC_TIMEOUT_MEDIUM_DEVICETYPES, self::GetDeviceType()) !== false) {\n self::$expectedConnectionTimeout = 85;\n }\n else {\n // for all other devices, a timeout of 30 seconds is expected\n self::$expectedConnectionTimeout = 28;\n }\n }\n return self::$expectedConnectionTimeout;\n }", "public function get_pingInterval(): int\n {\n // $res is a int;\n if ($this->_cacheExpiration <= YAPI::GetTickCount()) {\n if ($this->load(YAPI::$_yapiContext->GetCacheValidity()) != YAPI::SUCCESS) {\n return self::PINGINTERVAL_INVALID;\n }\n }\n $res = $this->_pingInterval;\n return $res;\n }", "public function get_logger_limit() {\n\t\treturn $this->get_option('ring_logger_limit', 20);\n\t}", "public function getMaxProcesses(): int\n {\n return $this->maxProcesses;\n }", "public function getTimeout(): int\n {\n return $this->timeout;\n }", "public function getMaxHashCount() {}", "public function getMaxHashCount() {}", "private static function get_timeout() {\n\t\t$timeout = absint( ini_get( 'max_execution_time' ) );\n\t\tif ( $timeout <= 1 ) {\n\t\t\t// allow for -1 or 0 for unlimited\n\t\t\t$timeout = 5000 * 1000;\n\t\t} elseif ( $timeout > 30 ) {\n\t\t\t$timeout = $timeout * 1000;\n\t\t} else {\n\t\t\t$timeout = 30000;\n\t\t}\n\t\treturn $timeout;\n\t}", "protected function resolveMaxAttempts($request, $maxAttempts)\n {\n return (int) config('api.requests_per_minute');\n }", "public function getWorkerCount(): int;", "public function count (): int {\n return count($this->clients);\n }", "public function getSessionLimit()\n {\n // Get the security policy for this user.\n $profile = $this->getProfile();\n $policy = $profile->getSecurityPolicy();\n\n return $policy->getFieldValue(DSecurityPolicy::FIELD_SESSION_LIMIT);\n }", "public function getMaxSize(): int\n {\n return $this->maxSize;\n }", "private function validateMaxConnections($max_connections)\n {\n return ChannelRepository::validateMaxConnections($max_connections);\n }", "public function getRequestTimeOut() {\n return $this->requestTimeOut;\n }", "public function getLimit()\n {\n return self::LIMIT;\n }", "public function getRequestsWithErrorsCount()\n {\n return $this->requests_with_errors_count;\n }", "public function getRequestsWithErrorsCount()\n {\n return $this->requests_with_errors_count;\n }", "public function requests() : int;", "protected function getLimit()\n {\n return (int)$this->getSettingsValue('limit');\n }" ]
[ "0.7217943", "0.6995841", "0.684907", "0.68140244", "0.63810813", "0.6331577", "0.62962025", "0.62707025", "0.62273926", "0.6217283", "0.6155623", "0.60660195", "0.60581654", "0.5992669", "0.5967646", "0.59664196", "0.596065", "0.59484506", "0.5941985", "0.5936001", "0.587745", "0.58446", "0.5806039", "0.57867473", "0.5786745", "0.57789755", "0.57525545", "0.5752373", "0.5740867", "0.5734335", "0.5734335", "0.5730552", "0.5716779", "0.5707332", "0.5689619", "0.56737876", "0.5672043", "0.56719023", "0.5664076", "0.56185985", "0.56075406", "0.55868137", "0.55773956", "0.5573535", "0.55697274", "0.5562158", "0.5559", "0.5555649", "0.5543234", "0.55333555", "0.5521076", "0.54787", "0.54738784", "0.54554206", "0.5453383", "0.5449292", "0.5444015", "0.54393226", "0.5434958", "0.54345864", "0.5434542", "0.5433955", "0.54318345", "0.5430586", "0.542571", "0.5424123", "0.5417247", "0.54129046", "0.54099965", "0.54050976", "0.53943384", "0.5389065", "0.5379365", "0.5379365", "0.53734106", "0.53542954", "0.53542054", "0.5342905", "0.5337749", "0.5334647", "0.5324347", "0.5311014", "0.530943", "0.5306134", "0.53044426", "0.5304391", "0.5304391", "0.52993566", "0.5291363", "0.5291013", "0.5288995", "0.52885085", "0.5285634", "0.5280743", "0.5275483", "0.5274317", "0.5264292", "0.5264292", "0.52626455", "0.5260849" ]
0.8511005
0
Returns the configured timeout for KeepAlive connections.
Возвращает настроенный таймаут для подключений KeepAlive.
public static function getAliveTimeout() { return MHTTPD::$config['Server']['keep_alive_timeout']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getConnectTimeout();", "public function getConnectionTimeout();", "public function getHeartbeatTimeout()\n {\n return $this->heartbeatTimeout;\n }", "public function getConnectTimeout() {\n\t\treturn $this->connectionTimeout;\n\t}", "public static function getTimeout()\n {\n return static::$timeout;\n }", "public function getTimeout()\n {\n return self::$timeout;\n }", "public function getConnectTimeout()\n {\n return $this->connectTimeout;\n }", "public function getTimeout(): int\n {\n return $this->timeout;\n }", "public function getTimeout()\n {\n return $this->timeout;\n }", "public function getTimeout()\n {\n return $this->timeout;\n }", "public function getTimeout()\n {\n return $this->timeout;\n }", "public function getTimeout()\n {\n return $this->timeout;\n }", "public function getTimeout()\n {\n return $this->timeout;\n }", "public function getTimeout() {\r\n\t\treturn $this->timeout;\r\n\t}", "public function getTimeout()\n {\n return $this->getHttpClient()->getTimeout();\n }", "public function getConnectTimeout(): float\n {\n }", "public function getTimeout() {\r\n return $this->timeout;\r\n }", "public function getTimeout()\n {\n return $this->timeout;\n }", "public function getTimeout()\n\t{\n\t\treturn $this->timeout;\n\t}", "public function getHttpHeartbeatTimeout()\n {\n return $this->httpHeartbeatTimeout;\n }", "public function getTimeout() {\n return $this->_timeout;\n }", "public function getTimeout()\n {\n return $this->Timeout;\n }", "public function getTimeout()\n {\n return $this->get(self::_TIMEOUT);\n }", "public function getTimeout()\n {\n return $this->_timeout;\n }", "public function getTimeout()\n {\n return $this->_timeout;\n }", "public function getTimeout()\n {\n return isset($this->timeout) ? $this->timeout : 0;\n }", "public function getCurlConnectTimeout()\n {\n return $this->curlConnectTimeout;\n }", "public function timeout(): int\n {\n return $this->timeout;\n }", "public function timeout()\n\t{\n\t\treturn $this->timeout;\n\t}", "public function getCookiesTimeOut() \n {\n $cookiesTimeout = Mage::getStoreConfig(self::XML_PATH_COOKIES_TIMEOUT);\n return $cookiesTimeout;\n }", "public function getTimeout();", "public function getTimeout();", "public function getTimeout();", "public function getTimeout();", "public function getTimeout();", "public function getTimeout();", "function prepare_remote_connection_timeout( $timeout ) {\n\t\treturn 30;\n\t}", "public function timeout()\n {\n return 300;\n }", "public function getCurlTimeout()\n {\n return $this->curlTimeout;\n }", "public function getCurlTimeout()\n {\n return $this->curlTimeout;\n }", "public function getTimeout()\n {\n return ($this->timeout / 1000000);\n }", "public function getCurlTimeout() {\n return $this->curlTimeout;\n }", "function getRequestTimeout()\n {\n return $this->_props['RequestTimeout'];\n }", "public function getTimeOut()\n {\n return self::$timeOut;\n }", "public function getRecvTimeout()\n {\n return $this->recvTimeout;\n }", "public function getPollTimeout()\n {\n return $this->pollTimeout;\n }", "public function getCacheTimeout()\n {\n return $this->cacheTimeout;\n }", "public function getSessionTimeout() {\n if ($this->sessionTimeout === null) {\n $this->sessionTimeout = self::DEFAULT_SESSION_TIMEOUT;\n }\n\n return $this->sessionTimeout;\n }", "public function getConnectionTimeoutOptions()\n {\n $options = array();\n \n if(null !== $this->_requestConnectTimeout) {\n $options[CURLOPT_CONNECTTIMEOUT] = $this->_requestConnectTimeout;\n }\n if(null !== $this->_requestTimeout) {\n $options[CURLOPT_TIMEOUT] = $this->_requestTimeout;\n }\n \n return empty($options) ? false : $options;\n }", "public function getTimeout()\n {\n return ($this->container->getParameter('g4_timeout_reswebdefault'));\n }", "static public function GetExpectedConnectionTimeout() {\n // Different vendors implement different connection timeouts.\n // In order to optimize processing, we return a specific time for the major\n // classes currently known (feedback welcome).\n // The amount of time returned is somehow lower than the max timeout so we have\n // time for processing.\n\n if (!isset(self::$expectedConnectionTimeout)) {\n // Apple and Windows Phone have higher timeouts (4min = 240sec)\n if (stripos(SYNC_TIMEOUT_LONG_DEVICETYPES, self::GetDeviceType()) !== false) {\n self::$expectedConnectionTimeout = 210;\n }\n // Samsung devices have a intermediate timeout (90sec)\n else if (stripos(SYNC_TIMEOUT_MEDIUM_DEVICETYPES, self::GetDeviceType()) !== false) {\n self::$expectedConnectionTimeout = 85;\n }\n else {\n // for all other devices, a timeout of 30 seconds is expected\n self::$expectedConnectionTimeout = 28;\n }\n }\n return self::$expectedConnectionTimeout;\n }", "private static function get_timeout() {\n\t\t$timeout = absint( ini_get( 'max_execution_time' ) );\n\t\tif ( $timeout <= 1 ) {\n\t\t\t// allow for -1 or 0 for unlimited\n\t\t\t$timeout = 5000 * 1000;\n\t\t} elseif ( $timeout > 30 ) {\n\t\t\t$timeout = $timeout * 1000;\n\t\t} else {\n\t\t\t$timeout = 30000;\n\t\t}\n\t\treturn $timeout;\n\t}", "function getTimeoutOption() {\r\n\t\treturn $this->getOptionsSet()->getOptions(self::OPTION_TIMEOUT, 20);\r\n\t}", "public function setConnectionTimeout($timeout);", "public function getIdleTimeoutMs()\n {\n return $this->IdleTimeoutMs;\n }", "public function getTimeoutValue() \r\n\t{\r\n\t\t$timeout = (int) Mage::getStoreConfig('ec/blocker/eventTimeout');\r\n\t\t\r\n\t\tif (!$timeout)\r\n\t\t{\r\n\t\t\t$timeout = 2000;\r\n\t\t}\r\n\t\t\r\n\t\treturn $timeout;\r\n\t}", "function getTimeout() {\r\n\t\treturn ftp_get_option($this->_handle, FTP_TIMEOUT_SEC);\r\n\t}", "public function getRetryTimeout()\n {\n return $this->retryTimeout;\n }", "public function getRequestTimeOut() {\n return $this->requestTimeOut;\n }", "public function get_request_timeout(): float {\n $duration = get_config('realtimeplugin_phppoll', 'requesttimeout');\n return (isset($duration) && $duration !== false) ? (float)$duration : 30;\n }", "public function getAttackTimeout()\n {\n return $this->get(self::_ATTACK_TIMEOUT);\n }", "protected function lockoutTime()\n {\n return Arr::get(static::$config, 'locked_for', 60);\n }", "function Timeout ( $nTimeout )\n{\n if ( isset($nTimeout) ) {\n $this->_Timeout = ($nTimeout < 5) ? 5 : (int)$nTimeout;\n return true;\n } else {\n return $this->_Timeout;\n }\n}", "public function getWriteTimeout()\n {\n return $this->writeTimeout;\n }", "public function getReadTimeout() {\n return $this->readTimeout;\n }", "public function getTimeout(): ?int;", "public function getSendTimeout()\n {\n return $this->sendTimeout;\n }", "public function getGracefulDecommissionTimeout()\n {\n return $this->graceful_decommission_timeout;\n }", "public function getTimeoutMinutes()\n {\n return $this->timeout_minutes;\n }", "public function getReadTimeout()\n {\n return $this->readTimeout;\n }", "public function getReadTimeout(): float\n {\n return $this->readTimeout;\n }", "public function cacheTimeout($value = NULL) {\n $class_name = get_class($this);\n return variable_get($class_name . TingClientRequest::cache_lifetime, '1');\n }", "public function cacheTimeout($value = NULL) {\n $class_name = get_class($this);\n\n return variable_get($class_name . TingClientRequest::cache_lifetime, '1');\n }", "public function getMakeApiCallTimeout()\n {\n $returnValue = 40; // default value\n $configValue = strval(Mage::getConfig()->getNode('stores/default/innobyte_payu_lite_make_api_call_timeout'));\n if (is_numeric($configValue) && $configValue >= 0) {\n $returnValue = intval($configValue);\n }\n return $returnValue;\n }", "public function getSessionTimeoutSecs(): ?int\n {\n return $this->getParameter('sessionTimeoutSecs');\n }", "public function getJsTimeout()\n {\n return $this->jsTimeout ?: static::DEFAULT_JS_TIMEOUT;\n }", "private function getMiniCartAutoOpenTimeout()\n {\n return (int)$this->_scopeConfig->getValue(\n self::XML_PATH_CHECKOUT_SIDEBAR_AUTO_OPEN_TIMEOUT,\n ScopeInterface::SCOPE_STORE\n );\n }", "public function getTimeout(): float\n {\n }", "public function setConnectionTimeout($timeout)\n {\n // do nothing\n }", "public function openSearchTimeout(): string\n {\n return config('scout.opensearch.timeout');\n }", "public function getHeartbeatIntervalMs()\n {\n return $this->HeartbeatIntervalMs;\n }", "public function timeout() {\n\t\treturn null;\n\t}", "public function getReadTimeout(): float\n {\n }", "public function getHeartbeatInterval(): int\n {\n }", "protected function checkTimeout()\n {\n $timestamp = time();\n if (($timestamp - $this->connectionTime) > $this->reconnectTimeout) {\n $this->disconnect();\n }\n }", "public function getRpcTimeout(): float\n {\n }", "public function setConnectTimeout($seconds);", "public function getJobLockoutTime()\n {\n return $this->job_lock_timeout;\n }", "private function chooseWaitTimeout(): int\n {\n if ($this->gracefulMaxExecutionDateTime) {\n $allowedExecutionDateInterval = $this->gracefulMaxExecutionDateTime->diff(new \\DateTime());\n $allowedExecutionSeconds = $allowedExecutionDateInterval->days * 86400\n + $allowedExecutionDateInterval->h * 3600\n + $allowedExecutionDateInterval->i * 60\n + $allowedExecutionDateInterval->s;\n\n if (!$allowedExecutionDateInterval->invert) {\n $allowedExecutionSeconds *= -1;\n }\n\n /*\n * Respect the idle timeout if it's set and if it's less than\n * the remaining allowed execution.\n */\n if ($this->getIdleTimeout()\n && $this->getIdleTimeout() < $allowedExecutionSeconds\n ) {\n $waitTimeout = $this->getIdleTimeout();\n } else {\n $waitTimeout = $allowedExecutionSeconds;\n }\n } else {\n $waitTimeout = $this->getIdleTimeout();\n }\n\n if (!is_null($this->getTimeoutWait()) && $this->getTimeoutWait() > 0) {\n $waitTimeout = min($waitTimeout, $this->getTimeoutWait());\n }\n return $waitTimeout;\n }", "public static function getMaxRequests()\n\t{\n\t\treturn MHTTPD::$config['Server']['keep_alive_max_requests'];\n\t}", "public function timeout($timeout);", "public function getWriteTimeout(): float\n {\n }", "public function getConnectionTime()\n {\n return $this->info->connect_time * 1000;\n }", "public function http_timeout( $req ) {\n\t\t$req['timeout'] = 300;\n\t\treturn $req;\n\t}", "public function getClientTtl()\n {\n return isset($this->client_ttl) ? $this->client_ttl : 0;\n }", "protected function expirationTime()\n {\n $ttl = $this->getOptions()->getTtl();\n if ($ttl > 2592000) {\n return time() + $ttl;\n }\n return $ttl;\n }", "public function timeout();", "public function getMaxTtl()\n {\n return isset($this->max_ttl) ? $this->max_ttl : 0;\n }", "public function setConnectTimeoutMs(int $timeout): void;", "final public static function HpsSessionTimedOut()\n {\n return self::get(823);\n }" ]
[ "0.7273374", "0.7048277", "0.69791263", "0.6954576", "0.68341064", "0.6831145", "0.67914665", "0.6779526", "0.6732166", "0.6732166", "0.6732166", "0.6732166", "0.6732166", "0.67231953", "0.6705623", "0.6700998", "0.6695791", "0.6689187", "0.6688377", "0.6670053", "0.661954", "0.66130584", "0.6596779", "0.65816903", "0.65816903", "0.6580486", "0.65546197", "0.6514409", "0.6426698", "0.64258796", "0.64123887", "0.64123887", "0.64123887", "0.64123887", "0.64123887", "0.64123887", "0.6395045", "0.6319239", "0.62950015", "0.62950015", "0.62777525", "0.62775964", "0.62102544", "0.6193767", "0.61717683", "0.6161325", "0.61392593", "0.61336267", "0.6097693", "0.60545254", "0.60337436", "0.5998203", "0.59419113", "0.59413016", "0.58803564", "0.5858184", "0.5854024", "0.58514714", "0.58428866", "0.5811505", "0.5790947", "0.57732487", "0.57669705", "0.5697057", "0.56915873", "0.56681526", "0.5657453", "0.56310827", "0.56271136", "0.5602098", "0.54885316", "0.54213554", "0.54091895", "0.53686386", "0.53561175", "0.5342447", "0.53168964", "0.53106517", "0.52954316", "0.52801794", "0.5279837", "0.52783865", "0.52621233", "0.5256449", "0.5250348", "0.5245265", "0.5241851", "0.52395624", "0.5233431", "0.5222386", "0.52206206", "0.52003783", "0.5170624", "0.5159716", "0.51560193", "0.51226526", "0.5095839", "0.5092775", "0.5090228", "0.5063762" ]
0.78974396
0
Returns the list of default directory index files.
Возвращает список файлов индекса директории по умолчанию.
public static function getIndexFiles() { if (empty(MHTTPD::$config['Server']['index_files'])) { return array(); } return MHTTPD::$config['Server']['index_files']; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public function getDefaultIndexDirectoryPath();", "public function getIndexDirectoryPath();", "public function hasDefaultIndexDirectoryPath();", "function index($dir = '.') {\n\t\t$index = array();\n\t\tif ($handle = opendir($dir)) {\n\t\t\twhile (false !== ($file = readdir($handle))) {\n\t\t\t\tif ($file != \".\" && $file != \"..\") {\n\t\t\t\t\tif (isAllowedFile($dir.'/'.$file)) $index[preg_replace(\"/^\\.\\//i\",\"\",$dir.'/'.$file)] = filemtime($dir.'/'.$file);\n\t\t\t\t\telseif (is_dir($dir.'/'.$file)) $index = array_merge($index, index($dir.'/'.$file));\n\t\t\t\t}\n\t\t\t}\n\t\t\tclosedir($handle);\n\t\t}\n\t\treturn $index;\n\t}", "public function index() {\n\t\treturn array_keys($this->info->centralDirectory);\n\t}", "protected function getIndexDefaults() {\n return array(\n 'page_id' => 0,\n 'page_size' => 25,\n 'sort_by' => 'update_date',\n 'sort_order' => 'asc'\n );\n }", "public static function get_default_dirs() {\n\t\t// Always include default admin and include directories.\n\t\t$defaults = [ '/wp-admin/', '/wp-includes/' ];\n\n\t\t// Include directories set by dependencies classes if parent directory not already included.\n\t\treturn array_unique( array_merge( $defaults, (array) wp_scripts()->default_dirs, (array) wp_styles()->default_dirs ) );\n\t}", "static function getDirectoryListing();", "public function getFallbackDirs();", "function list_files () {\n\t\t$root = $this->get_root();\n\t\t\n\t\treturn $this->_list_files($root);\n\t}", "public function listAll()\n {\n $files = \\Core\\File\\System::listFiles($this->_getPath(), \\Core\\File\\System::EXCLUDE_DIRS);\n $result = [];\n foreach (array_keys($files) as $file) {\n $result[] = pathinfo($file, PATHINFO_FILENAME);\n }\n return $result;\n }", "public function fileList()\n {\n return array_values(array_diff(scandir($this->location), ['.', '..']));\n }", "function _generateFilesList() {\n return array();\n }", "public function actionIndexFiles()\n {\n $manager = new Manager(['module' => $this->module]);\n $manager->indexAll();\n }", "public function getDefaultIndex()\n {\n return $this->defaultIndex;\n }", "public function getDefaultFolder() {}", "public function getDefaultFolder() {}", "function getDefaultFolder() ;", "public static function get_log_index() {\n\t\t$server = WD_Utils::determine_server( content_url( 'index.php' ) );\n\t\tif ( $server == 'apache' ) {\n\t\t\t$is_apache = true;\n\t\t} else {\n\t\t\t$is_apache = false;\n\t\t}\n\n\t\t$result = array();\n\t\tif ( $is_apache ) {\n\t\t\t$upload_dirs = wp_upload_dir();\n\t\t\t$log_dir = $upload_dirs['basedir'] . DIRECTORY_SEPARATOR . 'wp-defender/';\n\t\t\t$result = WD_Utils::get_dir_tree( $log_dir, true, false, array(), array(\n\t\t\t\t'ext' => array( 'log' )\n\t\t\t) );\n\t\t} else {\n\t\t\tglobal $wpdb;\n\t\t\t$table = is_multisite() ? $wpdb->sitemeta : $wpdb->options;\n\t\t\t$key = is_multisite() ? 'meta_key' : 'option_name';\n\t\t\t$sql = \"SELECT $key FROM $table WHERE $key LIKE %s\";\n\t\t\t$result = $wpdb->get_col( $wpdb->prepare( $sql, 'wd_log%' ) );\n\t\t}\n\n\t\treturn $result;\n\t}", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/wiki_sync.php',\n '_tests/tests/unit_tests/wiki_sync.php',\n 'lang_custom/EN/wiki_sync.ini',\n 'sources_custom/wiki_sync.php',\n 'sources_custom/hooks/systems/config/wiki_alt_changes_link_stub.php',\n 'sources_custom/hooks/systems/config/wiki_enable_git_sync.php',\n 'sources_custom/hooks/systems/config/wiki_enable_wysiwyg.php',\n 'sources_custom/hooks/systems/config/wiki_sync_media_directory.php',\n 'sources_custom/hooks/systems/config/wiki_sync_page_directory.php',\n 'sources_custom/hooks/systems/cron/wiki_sync_git.php',\n 'sources_custom/hooks/systems/notifications/wiki_failed_git_pull.php',\n 'sources_custom/wiki.php',\n 'site/pages/modules_custom/wiki.php',\n 'cms/pages/modules_custom/cms_wiki.php',\n );\n }", "public function initDefaultDirectories()\n {\n $this->setParam(DirectoryKeys::TMP, ParamNode::TYPE_STRING, '/tmp');\n $this->setParam(DirectoryKeys::DEPLOY, ParamNode::TYPE_STRING, '/deploy');\n $this->setParam(DirectoryKeys::WEBAPPS, ParamNode::TYPE_STRING, '/webapps');\n $this->setParam(DirectoryKeys::VAR_LOG, ParamNode::TYPE_STRING, '/var/log');\n $this->setParam(DirectoryKeys::VAR_RUN, ParamNode::TYPE_STRING, '/var/run');\n $this->setParam(DirectoryKeys::VAR_TMP, ParamNode::TYPE_STRING, '/var/tmp');\n $this->setParam(DirectoryKeys::ETC_APPSERVER, ParamNode::TYPE_STRING, '/etc/appserver');\n $this->setParam(DirectoryKeys::ETC_APPSERVER_CONFD, ParamNode::TYPE_STRING, '/etc/appserver/conf.d');\n }", "public static function getIndexFile() {\n return self::$config->index_file;\n }", "protected function getFileList()\n\t\t{\n\t\t\t$dirname=opendir($this->ruta);\n\t\t\t$files=scandir($this->ruta);\n\t\t\tclosedir ($dirname);\t\n\t\t\t\n\t\t\treturn $files;\t\t\n\t\t}", "public function index()\n {\n $files = $this->files\n ->getFilesPaginated(config('core.sys.file.default_per_page'))\n ->items();\n return $this->handler\n ->apiResponse($files);\n }", "protected function getFileIndexRepository() {}", "protected function getFileIndexRepository() {}", "protected function getFileIndexRepository() {}", "protected function getFileIndexRepository() {}", "protected function getFileIndexRepository() {}", "function ft_hook_dirlist() {}", "public function getIniFiles()\n {\n // initialize array of ini files\n $iniFiles = array();\n \n // loop over directories\n foreach ($this->configDirs as $dir) {\n \n if (is_dir($dir)) {\n\n // open directory ...\n if ($dirHandle = opendir($dir)) {\n \n // ... and iterate of the file therein\n while (($file = readdir($dirHandle)) !== FALSE) {\n \n // check file extension\n $pathParts = pathinfo($dir . DIRECTORY_SEPARATOR . $file);\n if ($pathParts['extension'] == 'ini') {\n \n // we found a .ini file\n $iniFiles[] = $dir . DIRECTORY_SEPARATOR . $file;\n }\n }\n closedir($dirHandle);\n }\n }\n }\n\n return $iniFiles;\n }", "function getDefaultRootFolder() {\n\t\treturn\tarray(\n\t\t\t\t\t\t1,\t\t\t\t\t\t\t// folderID\t\t\t\t\t\t[0]\n\t\t\t\t\t\t'root',\t\t\t\t\t// in folder (#id)\t\t\t[1]\n\t\t\t\t\t\t'',\t\t\t\t\t\t// folder name\t\t\t\t\t[2]\n\t\t\t\t\t\t'',\t\t\t\t\t\t// introtext\t\t\t\t\t[3]\n\t\t\t\t\t\t$this->installdate,\t// timestamp (publish off)\t[4]\n\t\t\t\t\t\t1,\t\t\t\t\t\t\t// folder position\t\t\t[5]\n\t\t\t\t\t\t0,\t\t\t\t\t\t\t// imageID for folder icon\t[6]\n\t\t\t\t\t\t6,\t\t\t\t\t\t\t// folder sort mode\t\t\t[7]\n\t\t\t\t\t\t'',\t\t\t\t\t\t// password\t\t\t\t\t\t[8]\n\t\t\t\t\t\t0,\t\t\t\t\t\t\t// number of cols\t\t\t\t[9]\n\t\t\t\t\t\t0,\t\t\t\t\t\t\t// number of rows\t\t\t\t[10]\n\t\t\t\t\t\t0\t\t\t\t\t\t\t// folder type\t\t\t\t\t[11]\n\t\t\t\t\t);\n\t}", "protected function getDefaultConfigPaths(): array\n {\n $paths = [];\n foreach ($this->getAcceptedExtensions() as $extension) {\n $path = 'phpunitgen.'.$extension;\n $paths[] = $path;\n $paths[] = $path.'.dist';\n }\n\n return $paths;\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/trickstr.php',\n 'sources_custom/programe/.htaccess',\n 'sources_custom/programe/aiml/.htaccess',\n 'sources_custom/programe/aiml/index.html',\n 'sources_custom/programe/index.html',\n 'sources_custom/hooks/modules/chat_bots/knowledge.txt',\n 'sources_custom/hooks/modules/chat_bots/trickstr.php',\n 'sources_custom/programe/aiml/readme.txt',\n 'sources_custom/programe/aiml/startup.xml',\n 'sources_custom/programe/aiml/std-65percent.aiml',\n 'sources_custom/programe/aiml/std-pickup.aiml',\n 'sources_custom/programe/botloaderfuncs.php',\n 'sources_custom/programe/customtags.php',\n 'sources_custom/programe/db.sql',\n 'sources_custom/programe/graphnew.php',\n 'sources_custom/programe/respond.php',\n 'sources_custom/programe/util.php',\n );\n }", "public function get_directory_list() {\n\t\treturn $this->directory_list;\n\t}", "public function listFiles($dir);", "public function install_get_path_search_list()\n {\n return array(\n 0 => '/',\n 1 => 'mybb',\n 2 => 'forum',\n 3 => 'forums',\n 4 => 'board',\n 5 => 'boards',\n 6 => 'upload',\n 7 => 'uploads',\n 8 => '../forums',\n 9 => '../forum',\n 10 => '../boards',\n 11 => '../board',\n 12 => '../mybb',\n 13 => '../upload',\n 14 => '../uploads',\n 15 => '../themes',\n 16 => '../theme',\n 17 => '../main'\n );\n }", "public static function get_file_list() {\n\t\t$new_file_list = array();\n\t\t$files = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( ABSPATH ), RecursiveIteratorIterator::SELF_FIRST );\n\t\tforeach ( $files as $file ) {\n\t\t\t$file = realpath( $file );\n\t\t\tif ( File_List::in_ignore_list( $file ) ) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif ( is_dir( $file) ) {\n\t\t\t\t$file .= '/';\n\t\t\t}\n\t\t\t$new_file_list[] = array( $file, File_List::INCLUDED ) ;\n\t\t}\n\t\tasort( $new_file_list );\n\t\treturn array_values( $new_file_list );\n\t}", "public function Get(){\n\n // TODO: this is horrible - try to use glob or RecursiveIteratorIterator - no time\n $fileList = [];\n\n if (!is_dir($this->currentPath)) {\n return $fileList;\n }\n\n $files = $this->scanFolder($this->currentPath);\n\n // up one level link\n if ($this->currentPath != $this->rootPath) {\n $fileList[] = array(\n 'file_name' => \"&uarr;\",\n 'directory' => true,\n 'extension' => '',\n 'size' => \"\",\n 'link' => $this->oneLevelUp(),\n );\n }\n\n foreach ($files as $file) {\n if($file == \".\" || $file == \"..\"){\n continue;\n }\n\n if ($this->isDir($file)) {\n $fileList[] = array(\n 'file_name' => $file,\n 'directory' => true,\n 'extension' => 'folder',\n 'size' => \"\",\n 'link' => $this->currentPath . $file,\n );\n } else {\n // filter on the fly\n $ext = $this->fileExtension($file);\n if(!empty($this->extensionFilter)){\n if(!in_array($ext, $this->extensionFilter)){\n continue;\n }\n }\n $fileList[] = [\n 'file_name' => $file,\n 'directory' => false,\n 'extension' => $ext,\n 'size' => $this->fileSize($file),\n 'link' => \"\",\n ];\n\n }\n }\n\n return $fileList;\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/idolisr.php',\n 'sources_custom/hooks/modules/members/idolisr.php',\n 'sources_custom/miniblocks/main_stars.php',\n 'sources_custom/miniblocks/side_recent_points.php',\n 'themes/default/templates_custom/POINTS_GIVE.tpl',\n 'themes/default/templates_custom/BLOCK_MAIN_STARS.tpl',\n 'themes/default/templates_custom/BLOCK_SIDE_RECENT_POINTS.tpl',\n );\n }", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/google_search.php',\n 'lang_custom/EN/google_search.ini',\n 'sources_custom/blocks/side_google_search.php',\n 'sources_custom/blocks/main_google_results.php',\n 'themes/default/templates_custom/BLOCK_SIDE_GOOGLE_SEARCH.tpl',\n 'themes/default/templates_custom/BLOCK_MAIN_GOOGLE_SEARCH_RESULTS.tpl',\n 'themes/default/css_custom/google_search.css',\n 'pages/comcode_custom/EN/_google_search.txt',\n );\n }", "public static function getIndexPage() {\n chdir(ROOTDIR);\n\n //FIXME: move to Request class\n $queryString = $_SERVER['REQUEST_URI'];\n $filePath = realpath(ROOTDIR . parse_url($queryString)['path']);\n\n $res = [];\n if ($filePath && is_dir($filePath)){\n // attempt to find an index file\n// function getRendererName($rendererName) { return \"index.$rendererName\";};\n $availableRenderers = array_values(array_intersect(\n Renderer::getRenderersPriority(),\n Renderer::getRenderersNames()\n ));\n// $renderers = array_map(function($rendererName) { return \"index.$rendererName\";}, $availableRenderers);\n foreach ($availableRenderers as $rname){\n if ($indexFilePath = realpath($filePath . DIRECTORY_SEPARATOR . \"index.\" . $rname)){\n $res['renderer'] = $rname;\n $res['path'] = $indexFilePath;\n break;\n }\n }\n }\n return $res;\n }", "protected function getBasicDirectories(): array\n {\n return [\n $this->folderPaths['logs'],\n $this->folderPaths['framework'],\n $this->folderPaths['app'] . DIRECTORY_SEPARATOR . 'Provider',\n $this->folderPaths['tests'] . DIRECTORY_SEPARATOR . 'Unit',\n ];\n }", "function sed_diskcache_list()\n{\n\tglobal $cfg;\n\n\t$dir_a = array();\n\n\t$a = sed_diskcache_calc($cfg['cache_dir'], false);\n\tif ($a[0])\n\t{\n\t\t$dir_a[SED_DISKCACHE_ONLYFILES] = $a;\n\t}\n\n\t$pos = mb_strlen($cfg['cache_dir']) + 1;\n\tforeach (glob(\"{$cfg['cache_dir']}/*\", GLOB_ONLYDIR) as $dir)\n\t{\n\t\t$a = sed_diskcache_calc($dir);\n\t\tif ($a[0])\n\t\t{\n\t\t\t$dir_a[mb_substr($dir, $pos)] = $a;\n\t\t}\n\t}\n\n\treturn $dir_a;\n}", "public function getInitFiles() {\n $aOut = array();\n foreach ($this->getBasePaths('init') as $aPaths) {\n foreach ($aPaths as $aInfo) {\n $aOut[] = $aInfo['path'];\n }\n }\n foreach ($this->getBasePaths('include') as $aPaths) {\n foreach ($aPaths as $aInfo) {\n $aOut[] = $aInfo['path'];\n }\n }\n return $aOut;\n }", "public function defaultExcludedPaths()\n {\n return [];\n }", "protected function getModuleFileNames()\n {\n $results = db_query('SELECT name, filename FROM {system} WHERE status = 1 ORDER BY weight ASC, name ASC')->fetchAllAssoc('name');\n\n return array_map(function ($value) {\n return DRUPAL_ROOT.DIRECTORY_SEPARATOR.$value->filename;\n }, $results);\n }", "abstract function list_files($path = '.');", "public function getIndexFile() {\n return $this->index_file;\n }", "protected function getBasicFiles(): array\n {\n $array = [\n $this->folderPaths['logs'] . DIRECTORY_SEPARATOR . '.gitignore' => \"!.gitignore\\n\",\n $this->folderPaths['framework'] . DIRECTORY_SEPARATOR . '.gitignore' => 'down' . \"\\n\",\n $this->folderPaths['tests'] . DIRECTORY_SEPARATOR . 'AbstractTestCase.php' => $this->generateAbstractTestCaseClass(),\n $this->folderPaths['tests'] . DIRECTORY_SEPARATOR . 'bootstrap.php' => $this->generateBootstrapFile(),\n ];\n\n if (! self::$isTest) {\n $array['phpunit.xml'] = $this->getPhpunitXml();\n }\n\n return $array;\n }", "public function defaultStatic() {\n return array();\n }", "public function index(array $directories, array $extensions = []);", "public function getDefaultDirectory(): string|null;", "public function getDirectoryTreeList();", "public function dir_readdir() {}", "function listDir() {\n\t\t$header = $this->getHeader($this->_pageId);\n\t\t$output = \"\n\t\t\t<h1>$header</h1>\n\t\t\";\n\t\t$lp = $this->listPages();\n\t\tif ($lp == \"empty\") {\n\t\t\t$output .= \"<p><i>Denne mappen er tom eller den inneholder bare bilder.</i></p>\";\n\t\t} else if ($lp == \"hidden\") {\n\t\t\tif ($this->isLoggedIn()) {\n\t\t\t\t$output .= \"<p><i>Beklager, denne mappen inneholder kun skjulte elementer.</i></p>\";\n\t\t\t} else {\n\t\t\t\t$output = innlogging::printNoAccessNotLoggedInDlg();\n\t\t\t}\n\t\t} else {\n\t\t\t$output .= $lp;\n\t\t}\n\t\t/*\n\t\t$li = $this->listImages();\n\t\t$li = \"empty\";\n\t\tif (($lp == \"empty\") && ($li == \"empty\")){\n\t\t\tprint \"<p><i>Mappen er tom</i></p>\";\n\t\t}\n\t\t*/\n\t\t//$this->notSoFatalError(\"Denne mappen har ingen index-side.\");\n\t\treturn $output;\n\t}", "private static function defaultFiles($dir){\n\n //gerando o model\n $model = \"<?php\\nnamespace modules\\\\\".strtolower(self::$pathName).\"\\\\model;\\n\\nclass \".self::$pathName.\"s implements \\\\libs\\\\database\\\\model\\n{\\n\\tpublic function create()\\n\\t{\\n\\t\\treturn array(\\n\\n);\\t\\n}\\n}\\n\";\n \\libs\\kernel\\File::newFile($dir.\"/model/\".self::$pathName.\"s.php\", $model);\n \n \n //gerando o controller\n $controller = \"<?php\\nnamespace modules\\\\\".strtolower(self::$pathName).\"\\\\controller;\\nuse \\\\libs\\\\kernel\\\\ControllerBase as CB;\\n\\nclass Controller\".self::$pathName.\" extends CB{\\n\\n\\tpublic function index(\\$app, \\$response){\\n // resposta que vem do servidor => \\$response. \\n // url onde esta o arquivo que vai ser renderizado. \\n // argumento a serem passados para a pagina. => \\$args \\n\\n return \\$app->view->render(\\$response, \\\"/\".ucfirst(self::$pathName).\"/index.php\\\");\\n\\t}\\n}\";\n \\libs\\kernel\\File::newFile($dir.\"/controller/Controller\".self::$pathName.\".php\", $controller);\n\n //gerando o manifest json\n $manifestJson = \"{\\n\\\"dad\\\": \\\"this\\\",\\n\\\"dadsName\\\": \\\"master\\\",\\n\\\"acessLevel\\\": \\\"0\\\",\\n\\\"title\\\": \\\"\".self::$pathName.\"\\\",\\n\\\"url\\\": \".strtolower(self::$pathName).\"\\\",\\n\\\"submenu\\\": []\\n}\";\n \\libs\\kernel\\File::newFile($dir.\"/manifest.json\", $manifestJson);\n \n \n //gerando o index\n \\libs\\kernel\\File::newFile($dir.\"/index.php\", \"\");\n }", "static function getList()\n {\n $out = array();\n\n if ($dh = opendir(__DIR__ . '/../img/')) {\n while (($file = readdir($dh)) !== false) {\n if (substr($file, -4) === '.jpg') {\n $filename = substr($file, 0, -4);\n $out[$filename] = realpath(__DIR__ . '/../img/' . $file);\n }\n }\n\n closedir($dh);\n }\n\n return $out;\n }", "public function getList() {\n\t\treturn Cgn_Module_Manager_File::getListStatic();\n\t}", "public function get_file_list()\n {\n return array(\n 'sources_custom/hooks/systems/addon_registry/jestr.php',\n 'sources_custom/forum/cns.php',\n 'lang_custom/EN/jestr.ini',\n 'themes/default/templates_custom/EMOTICON_IMG_CODE_THEMED.tpl',\n 'forum/pages/modules_custom/topicview.php',\n 'sources_custom/hooks/systems/config/jestr_avatar_switch_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_emoticon_magnet_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_leet_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_name_changes.php',\n 'sources_custom/hooks/systems/config/jestr_name_changes_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_piglatin_shown_for.php',\n 'sources_custom/hooks/systems/config/jestr_string_changes.php',\n 'sources_custom/hooks/systems/config/jestr_string_changes_shown_for.php',\n );\n }", "public function defaultIncludedPaths()\n {\n return [\n 'templates/*.mustache',\n 'src/*.php'\n ];\n }", "function GetDir($filedata, &$options) \n\t\t{\t\t\t\n\t\t\t$format = \"%15s %-19s %-s\\n\";\n\t\t\t\n\t\t\techo \"<html><head><title>Index of \".htmlspecialchars($options['path']).\"</title></head>\\n\";\n\t\t\t \n\t\t\techo \"<h1>Index of \".htmlspecialchars($options['path']).\"</h1>\\n\";\n\t\t\t \n\t\t\techo \"<pre>\";\n\t\t\tprintf($format, \"Size\", \"Last modified\", \"Filename\");\n\t\t\techo \"<hr>\";\n\t\t\t$path_explode = explode(\"/\",$options['path']);\n\t\t\t$path = $path_explode[count($path_explode)-1];\n\t\t\tforeach ($filedata[\"file_list\"] as $key => $value) {\n\t\t\t\t$fullpath = $path.\"/\".$value[\"name\"];\n\t\t $name = htmlspecialchars($value[\"name\"]);\n\t\t printf($format, \n\t\t number_format(filesize($fullpath)),\n\t\t strftime(\"%Y-%m-%d %H:%M:%S\", filemtime($fullpath)), \n\t\t '<a href=\"' . $fullpath . '\">' . $name . '</a>');\n\t\t\t}\n\t\t echo \"</pre>\\n\";\n\t\t\t\n\t\t echo \"</html>\\n\";\n\t\t\n\t\t exit;\n\t\t}", "public function get_file_list() {\n\t\tset_time_limit( 0 );\n\n\t\t$this->image_dir = self::_add_trailing_slash( $this->image_dir );\n\n\t\tif ( is_dir( $this->image_dir ) ) {\n $result = array();\n\t\t\t$iterator = new \\RecursiveDirectoryIterator( $this->image_dir, \\FileSystemIterator::SKIP_DOTS );\n\t\t\t$iterator = new \\RecursiveIteratorIterator( $iterator );\n\t\t\t$iterator = new \\RegexIterator( $iterator, '/^.+\\.(jpe?g|png|gif|svg)$/i', \\RecursiveRegexIterator::MATCH );\n\n\t\t\tforeach ( $iterator as $info ) {\n\t\t\t if ( $info->isFile() ) {\n $result[] = $info->getPathname();\n }\n\t\t\t}\n\n\t\t\tunset( $iterator );\n\t\t} else {\n $result = false;\n }\n\n\t\treturn $result;\n\t}", "private function getFileList()\n {\n\n $count = $this->getFileCount();\n $size = $this->getSize() + 4;\n\n $this->seek(\n $this->offset\n + 18\n + $this->getAliasSize()\n + 4\n + $this->getMetadataSize()\n );\n\n return $this->readFileList($count, $size);\n }", "private function getArchiveFiles(): array\n {\n $list = [];\n\n for ($i = 0; $i < $this->getArchive()->numFiles; $i++) {\n\n $file = $this->getArchive()->statIndex($i);\n if ($file === false) {\n continue;\n }\n\n $name = str_replace('\\\\', '/', $file['name']);\n if (\n ($name[0] == \".\" &&\n in_array($this->getSkipMode(), [\"HIDDEN\", \"ALL\"])) ||\n ($name[0] == \".\" &&\n @$name[1] == \"_\" &&\n in_array($this->getSkipMode(), [\"COMODOJO\", \"ALL\"]))\n ) {\n continue;\n }\n\n $list[] = $name;\n }\n\n return $list;\n }", "public function hasIndexDirectoryPath();", "public function get_default_images() {\n $this->load->model('app_images_model');\n $data = array();\n if ($data['default_images'] = $this->app_images_model->fields(array('image', 'location'))->get_all()) {\n if (count($data['default_images']) === 0) {\n return $this->send_error('NO_RESULTS');\n }\n return $this->send_response($data);\n }\n return $this->send_error('ERROR');\n }", "public static function filelist()\n\t{\n\t\tglobal $g_relative_file_directory;\t// '../../UPLOADS/';\n\t\tglobal $g_relative_root_directory;\t// 'UPLOADS/';\n\n\t\t$actualdirectory = $_POST['actualdir'];\n\t\tif(!$actualdirectory)\n\t\t\t$actualdirectory='';\n\n\t\t$result = [];\n\t\t$result['directory'] = $g_relative_root_directory;\n\t\t$result['actualdir'] = $actualdirectory;\n\n\t\tif(strlen($actualdirectory)>0)\n\t\t\t$actualdirectory.=\"/\";\n\n\t\t$reldir = $g_relative_file_directory.$actualdirectory;\n\t\t$dirs=[];\n\t\tforeach(glob($reldir.'*', GLOB_ONLYDIR) as $d)\n\t\t{\n\t\t\t$fn=str_replace($reldir,'',$d);\n\t\t\t$dirs[] = $fn;\n\t\t}\n\t\t$result['dirs']=$dirs;\n\t\t//$result['reldir']=$reldir;\n\n\t\t$filenames = [];\n\t\tforeach(array_filter(glob($reldir.'*.*'), 'is_file') as $file)\n\t\t{\n\t\t\t$farray = [];\n\t\t\t$fn=str_replace($reldir,'',$file);\n\n\t\t\t$f=filesize($file);\n\t\t\t$fe=\"bytes\";\n\t\t\tif($f/1024 > 1)\n\t\t\t{\n\t\t\t\t$f/=1024;\n\t\t\t\t$fe=\"kb\";\n\t\t\t\tif($f/1024 > 1)\n\t\t\t\t{\n\t\t\t\t\t$f/=1024;\n\t\t\t\t\t$fe=\"Mb\";\n\t\t\t\t\tif($f/1024 > 1)\n\t\t\t\t\t{\n\t\t\t\t\t\t$f/=1024;\n\t\t\t\t\t\t$fe=\"GB\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$farray['Filename'] = $fn;\n\t\t\t$farray['Filesize'] = number_format($f,1);\n\t\t\t$farray['FilesizeDeterminant'] = $fe;\n\n\t\t\t$filenames[] = $farray;\n\t\t}\n\t\t$result['files']=$filenames;\n\n\t\theader('Content-Type: application/json');\n\t\techo(json_encode($result));\n\t}", "public function index()\n {\n $folders = Storage::directories('public');\n\n return view('admin.edit.audiofilelist', [\n 'folders' => $folders\n ]);\n\n return $folders;\n\n\n }", "public function getDefaultOrderDir() ;", "function papi_get_all_core_type_files() {\n\treturn papi()->once( __FUNCTION__, function() {\n\t\t$directories = papi_filter_settings_directories();\n\t\t$result = [];\n\n\t\tforeach ( $directories as $directory ) {\n\t\t\t$result = array_merge( $result, papi_get_all_files_in_directory( $directory ) );\n\t\t}\n\n\t\t// Get the last file path from directories.\n\t\t$result = array_map( 'papi_get_core_type_file_path', $result );\n\n\t\t// Only unique path, no duplicated path is allowed.\n\t\treturn array_unique( $result );\n\t} );\n}", "public function getFiles ();", "public function getFiles()\n {\n $result = array();\n foreach ($this->_subdirectories as $directory) {\n $result = array_merge(\n $result,\n array_map(\n array($this, '_prependDirectory'),\n $directory->getFiles()\n )\n );\n }\n $result = array_merge(\n $result,\n array_map(\n array($this, '_prependDirectory'),\n array_keys($this->_files)\n )\n );\n return $result;\n }", "public function listDirPaths(callable $filter = null): array\n {\n return iterator_to_array($this->scanDirPaths($filter));\n }", "public function listFiles($start_dir)\n\t{\n\t\t$files = array();\n\t\t$dir = opendir($start_dir);\n\t\twhile(($myfile = readdir($dir)) !== false)\n\t\t\t{\n\t\t\tif($myfile != '.' && $myfile != '..' && !is_file($myfile) && $myfile != 'resource.frk' && $myfile != 'index.php' && $myfile != '.htaccess' )\n\t\t\t\t{\n\t\t\t\t$files[] = $myfile;\n\t\t\t\t}\n\t\t\t}\n\t\tclosedir($dir);\n\t\treturn $files;\n\t}", "public static function getDefaults()\n {\n return [];\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 uses_file_indexing() {\n return true;\n }", "protected function get_default_file_vars()\n\t{\n\t\treturn array(\n\t\t\t'U_DOWNLOAD_LINK'\t=> $this->get_url(),\n\t\t\t'L_DOWNLOAD_COUNT'\t=> 'DOWNLOAD_COUNTS',\n\t\t\t'S_FILE'\t\t\t=> true,\n\t\t);\n\t}", "protected function getApplicationDirectoreis(): array\n {\n return $this->directories;\n }", "public function getFiles();", "public function getFiles();", "public function getFiles();", "public function browse_files()\n {\n // Scan file directory, render the images.\n if (is_dir($this->file_path)) {\n $files = preg_grep('/^([^.])/', scandir($this->file_path));\n return $files;\n }\n \n }", "public function loadFiles()\n\t{\n\t\t$files = array();\n\t\t\n\t\t$searchPath = $this->getLocalFolder().\"/*.*\";\n\t\t$filesArray = glob($searchPath);\n\t\t\n\t\tforeach($filesArray as $file)\n\t\t{\n\t\t\t$files[] = new File($file);\n\t\t}\n\t\t\n\t\treturn $files;\n\t}", "function list_dir($chdir) {\r\n\t/* some globals, some cleaning */\r\n\tglobal $root, $prefix, $PHP_SELF, $SERVER_NAME, $showsize, $display, $excludedir, $excludefile;\r\n\tunset($sdirs);\r\n\tunset($sfiles);\r\n\tchdir($chdir);\r\n\t$self = basename($PHP_SELF);\r\n\r\n\t/* open current directory */\r\n\t$handle = opendir('.');\r\n\t/* read directory. If the item is a directory, place it in $sdirs, if it's a filetype we want\r\n\t * and not this file, put it in $sfiles */\r\n\twhile ($file = readdir($handle))\r\n\t{\r\n\t\tif(is_dir($file) && $file != \".\" && $file != \"..\" && !in_array($file, $excludedir))\r\n\t\t{ $sdirs[] = $file; }\r\n\t\telseif(is_file($file) && $file != \"$self\" && array_key_exists(get_extension($file), $display)\r\n\t\t\t&& !in_array($file, $excludefile))\r\n\t\t{ $sfiles[] = $file; }\r\n\t}\r\n\r\n\t/* count the slashes to determine how deep we're in the directory tree and how many\r\n\t * nice bars we need to add */\r\n\t$dir = getcwd();\r\n\t$dir1 = str_replace($root, \"\", $dir.\"/\");\r\n\t$count = substr_count($dir1, \"/\") + substr_count($dir1, \"\\\\\") - (substr_count($root, \"/\")-1);\r\n\r\n\t/* display directory names and recursively list all of them */\r\n\tif(isset($sdirs) && is_array($sdirs)) {\r\n\t\tsort($sdirs);\r\n\t\treset($sdirs);\r\n\r\n\t\tfor($y=0; $y<sizeof($sdirs); $y++) {\r\n\t\t\techo \"<tr><td>\";\r\n\t\t\tfor($z=1; $z<=$count; $z++)\r\n\t\t \t{ echo \"<img align=absmiddle src=comu/sitemap/vertical.gif>&nbsp;&nbsp;&nbsp;\"; }\r\n\t\t\tif((isset($sfiles) && is_array($sfiles)) || $y<sizeof($sdirs)-1)\r\n\t\t\t{ echo \"<img align=absmiddle src=comu/sitemap/verhor.gif>\"; }\r\n\t\t\telse\r\n\t\t\t{ echo \"<img align=absmiddle src=comu/sitemap/verhor1.gif>\"; }\r\n\t\t\techo \"<img align=absmiddle src=comu/sitemap/folder.gif> <a href=\\\"http://$SERVER_NAME$prefix/$dir1$sdirs[$y]\\\" target=\\\"_blank\\\" class=\\\"blau10b\\\">$sdirs[$y]</a>\";\r\n\t\t\tlist_dir($dir.\"/\".$sdirs[$y]);\r\n\t\t}\r\n\t}\r\n\r\n\tchdir($chdir);\r\n\r\n\t/* iterate through the array of files and display them */\r\n\tif(isset($sfiles) && is_array($sfiles)) {\r\n\t\tsort($sfiles);\r\n\t\treset($sfiles);\r\n\r\n\t\t$sizeof = sizeof($sfiles);\r\n\r\n\t\t/* what file types shall be displayed? */\r\n\t\tfor($y=0; $y<$sizeof; $y++) {\r\n\t\t\techo \"<tr><td>\";\r\n\t\t\tfor($z=1; $z<=$count; $z++)\r\n\t\t\t{ echo \"<img align=absmiddle src=comu/sitemap/vertical.gif>&nbsp;&nbsp;&nbsp;\"; }\r\n\t\t\tif($y == ($sizeof -1))\r\n\t\t\t{ echo \"<img align=absmiddle src=comu/sitemap/verhor1.gif>\"; }\r\n\t\t\telse\r\n\t\t\t{ echo \"<img align=absmiddle src=comu/sitemap/verhor.gif>\"; }\r\n\t\t\techo \"<img align=absmiddle src=comu/sitemap/\";\r\n\t\t\techo $display[get_extension($sfiles[$y])];\r\n\t\t\techo \"> \";\r\n\r\n\r\n\t\t\t\t$valorlink=\"$prefix/$dir1$sfiles[$y]\";\r\n\t\t\t\t//echo \"<a href=\\\"$valorlink\\\" class=\\\"blau10\\\" target=\\\"_blank\\\">$sfiles[$y]</a>\";\r\n\t\t\t\techo '<a href=\"#\" class=\"blau10\" onclick=\"OpenFile(\\''.$valorlink.'\\');return false;\">'.$sfiles[$y].'</a>';\r\n\r\n\t\t\t/*if (!isset($_GET['nocopy'])) {\r\n\t\t\t\t//per copiar link\r\n\t\t\t\techo \"<input type=hidden name=\\\"$dir1$sfiles[$y]\\\" id=\\\"$dir1$sfiles[$y]\\\" value=\\\"$valorlink\\\">\";\r\n\t\t\t\techo \"&nbsp;&nbsp;&nbsp;<a href=\\\"javascript:CopyClipboard('$dir1$sfiles[$y]')\\\" title=\\\"copiar el vincle al portapapers\\\">copiar vincle</a>\";\r\n\t\t\t\t//fi\r\n\t\t\t}*/\r\n\r\n\t\t\tif($showsize) {\r\n\t\t\t\t$fsize = @filesize($sfiles[$y])/1024;\r\n\t\t\t\tprintf(\" (%.2f kB)\", $fsize);\r\n\t\t\t}\r\n\t\t\techo \"</td></tr>\";\r\n\r\n\r\n\r\n\t\t}\r\n\t\techo \"<tr><td>\";\r\n\t\tfor($z=1; $z<=$count; $z++)\r\n\t\t{ echo \"<img align=absmiddle src=comu/sitemap/vertical.gif>&nbsp;&nbsp;&nbsp;\"; }\r\n\t\techo \"</td></tr>\\n\";\r\n\t}\r\n}", "public function getAll() : Array\n\t{\n\t\tif ($this->exists() && $this->isReadable()) {\n\t\t\treturn scandir($this->directory);\n\t\t}\n\n\t\treturn [];\n\t}", "public function getFileList(): array\n {\n return [\n app_path('User.php'),\n app_path('Http/Controllers/Auth/RegisterController.php'),\n config_path('auth.php'),\n config_path('services.php'),\n base_path('database/factories/UserFactory.php'),\n ];\n }", "public function getDataFilesList(){\r\n $data_dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'Data';\r\n $files = scandir($data_dir);\r\n\r\n $files_list = array();\r\n $index = 0;\r\n foreach ($files as $file) {\r\n if($file != '.' && $file != '..'){\r\n $files_list[$index]['name'] = $file;\r\n $files_list[$index]['update_time'] = filemtime($data_dir . DIRECTORY_SEPARATOR . $file);\r\n $files_list[$index]['type'] = $this->getFileType($file);\r\n $index++;\r\n }\r\n }\r\n\r\n $update_times = array();\r\n foreach($files_list as $data){\r\n $update_times[] = $data['update_time'];\r\n }\r\n array_multisort($update_times, SORT_DESC, $files_list);\r\n return $files_list;\r\n }", "public static function find_all()\n\t{\n\t\t# TODO: return WikirPage instances\n\t\treturn file_list_dir(option('pages_dir'));\n\t}", "function scanDir() {\r\n $returnArray = array();\r\n \r\n if ($handle = opendir($this->uploadDirectory)) {\r\n \r\n while (false !== ($file = readdir($handle))) {\r\n if (is_file($this->uploadDirectory.\"/\".$file)) {\r\n $returnArray[] = $file;\r\n }\r\n }\r\n \r\n closedir($handle);\r\n }\r\n else {\r\n die(\"<b>ERROR: </b> No se puede leer el directorio <b>\". $this->uploadDirectory.'</b>');\r\n }\r\n return $returnArray; \r\n }", "private static function file_list($d,$x){ \r\n\t\treturn array_diff(scandir(__DIR__.'/../../'.$d),array('.','..'));\r\n\t}", "private function createFolderIndex(){\n //Just testing the command\n //$this->info('Starting to search the folder: '.$this->file_storage);\n $this->folders = array();\n $this->invalid_files = array();\n $this->count = 0;\n\n //Tagging all files to be able to find removed files at the end\n $SQL = \"UPDATE files SET found = '0'\";\n DB::connection('mysql')->update($SQL);\n $SQL = \"UPDATE folders SET found = '0'\";\n DB::connection('mysql')->update($SQL);\n\n //Checking if cache file exist, if not just create all the index on ES\n $this->checkCacheFolder();\n //Loop through the directories to get files ad folders\n $this->listFolderFiles($this->file_storage);//$_ENV['EBT_FILE_STORAGE']);\n //Check if any folder is missing from cache and try to create on ES\n $this->compareCacheFolders();\n\n //Remove files/folders that hasn't been found\n //if ($this->confirm('Do you wish to remove missing files? [y|N]')) {\n $this->removeMissingFiles();\n //}\n }", "public function directory() {\n $config = \\Drupal::config('webspark_isearch.settings');\n $directory_url = $config->get('directory_path');\n return $this->retriveJsonFromService($directory_url);\n }", "public function defaultStatKeys()\n {\n \treturn $this->defaultKeys;\n }", "public function getFiles() : Array\n\t{\n\t\t$files = [];\n\n\t\tif ($this->exists() && $this->isReadable()) {\n\n\t\t\t$directory = opendir($this->directory);\n\t\t\twhile($opened = readdir($directory)) {\n\t\t\t\n\t\t\t\tif (is_file($this->directory . DIRECTORY_SEPARATOR . $opened) && !Directory::isBlockListed($opened)) {\n\t\t\t\t\t$files[] = $opened;\n\t\t\t\t}\n\t\t\n\t\t\t}\n\n\t\t\tclosedir($directory);\n\t\t}\n\n\t\treturn $files;\n\t}", "protected function getMainFiles()\n {\n $mainFiles = [];\n foreach ($this->getCssFilesFromConfig() as $scss) {\n $mainFiles[] = realpath($this->getConfig()->getUnglueConfigFolderPath($scss));\n }\n\n return $mainFiles;\n }", "protected function _default_segments()\n\t{\n\t\t// Check for default controller\n\t\tif (empty($this->default_controller))\n\t\t{\n\t\t\t// Return empty array\n\t\t\treturn array();\n\t\t}\n\n\t\t// Break out default controller\n\t\t$default = explode('/', $this->default_controller);\n\t\tif ( ! isset($default[1]))\n\t\t{\n\t\t\t// Add default method\n\t\t\t$default[] = 'index';\n\t\t}\n\n\t\treturn $default;\n\t}", "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 getFallbackDirs()\n\t{\n\t\treturn $this->fallbackDirs;\n\t}" ]
[ "0.81148845", "0.687959", "0.66285294", "0.65067387", "0.6299508", "0.6262346", "0.6238817", "0.6220107", "0.61614054", "0.61104447", "0.6050074", "0.6044287", "0.5988231", "0.5980011", "0.5911843", "0.5888357", "0.5887802", "0.5885508", "0.58421993", "0.5833251", "0.58232915", "0.5811206", "0.574451", "0.5737928", "0.5732788", "0.5732788", "0.5732693", "0.5732693", "0.5732693", "0.57107276", "0.5684354", "0.5681995", "0.56794274", "0.567878", "0.566618", "0.56605786", "0.56547195", "0.5652952", "0.56404126", "0.56368977", "0.56349397", "0.5632312", "0.5629598", "0.5620664", "0.56102717", "0.5597567", "0.55686194", "0.5542063", "0.5535914", "0.5525476", "0.5521592", "0.5520119", "0.5503657", "0.55022496", "0.5490041", "0.5488878", "0.5484472", "0.5452609", "0.54332894", "0.54325545", "0.5428185", "0.5427585", "0.542541", "0.5422502", "0.54148716", "0.5414477", "0.5406621", "0.5406331", "0.53991723", "0.5389768", "0.5373563", "0.53579754", "0.534512", "0.53425443", "0.534159", "0.5336989", "0.53329664", "0.5331059", "0.53275895", "0.5326565", "0.53234696", "0.53234696", "0.53234696", "0.53195524", "0.5317214", "0.5314919", "0.5307803", "0.5298466", "0.5297786", "0.5295457", "0.5287951", "0.52858394", "0.5284901", "0.5273611", "0.5269463", "0.52692205", "0.5266208", "0.5266082", "0.52649987", "0.52612823" ]
0.7434387
1